From da88329f88e30eb7598933b6c368ffd3b9aa12db Mon Sep 17 00:00:00 2001 From: Victor Bayas Date: Tue, 5 Nov 2024 16:48:22 -0500 Subject: [PATCH] Fix StoryBook Story imports (#1090) --- src/components/Accordion/Accordion.stories.tsx | 4 ++-- src/components/ApplicationLogo/ApplicationLogo.stories.tsx | 4 ++-- src/components/Autocomplete/Autocomplete.stories.tsx | 4 ++-- src/components/BackLink/BackLink.stories.tsx | 4 ++-- src/components/Badge/Badge.stories.tsx | 4 ++-- src/components/Box/Box.stories.tsx | 4 ++-- src/components/BoxedIcon/BoxedIcon.stories.tsx | 4 ++-- src/components/Breadcrumbs/Breadcrumbs.stories.tsx | 4 ++-- src/components/Button/Button.stories.tsx | 4 ++-- src/components/Button/Button.uikit.stories.tsx | 4 ++-- src/components/ButtonGroup/ButtonGroup.stories.tsx | 4 ++-- src/components/Checkbox/Checkbox.stories.tsx | 4 ++-- src/components/CodeEditor/CodeEditor.stories.tsx | 4 ++-- src/components/CodeSnippet/CodeSnippet.stories.tsx | 4 ++-- src/components/DataTable/DataTable.stories.tsx | 4 ++-- src/components/DateTimeInput/DateTimeInput.stories.tsx | 4 ++-- src/components/DateTimeInput/DateTimeSelector.stories.tsx | 4 ++-- .../DropdownSelector/DropdownSelector.stories.tsx | 4 ++-- src/components/ExpandMenu/ExpandMenu.stories.tsx | 4 ++-- .../ExpandOptionsButton/ExpandOptionsButton.stories.tsx | 4 ++-- src/components/FileSelector/FileSelector.stories.tsx | 4 ++-- src/components/FormActionsTray/FormActionsTray.stories.tsx | 4 ++-- src/components/FormLayout/FormLayout.stories.tsx | 4 ++-- src/components/GlobalStyles/Colors.stories.tsx | 4 ++-- src/components/GlobalStyles/GlobalStyles.stories.tsx | 4 ++-- src/components/Grid/Grid.stories.tsx | 4 ++-- src/components/HelpBox/HelpBox.stories.tsx | 4 ++-- src/components/IconButton/IconButton.stories.tsx | 4 ++-- src/components/InputBox/InputBox.stories.tsx | 4 ++-- src/components/InputBox/InputBox.uikit.stories.tsx | 4 ++-- src/components/InputLabel/InputLabel.stories.tsx | 4 ++-- src/components/Link/Link.stories.tsx | 4 ++-- src/components/LinkButton/LinkButton.stories.tsx | 4 ++-- src/components/Loader/Loader.stories.tsx | 4 ++-- src/components/LoginWrapper/LoginWrapper.stories.tsx | 4 ++-- src/components/ModalBox/ModalBox.stories.tsx | 4 ++-- .../NotificationAlert/NotificationAlert.stories.tsx | 6 ++++-- .../NotificationCount/NotificationCount.stories.tsx | 4 ++-- src/components/Notifications/Notifications.stories.tsx | 6 ++++-- src/components/PageHeader/PageHeader.stories.tsx | 4 ++-- src/components/PageLayout/PageLayout.stories.tsx | 4 ++-- src/components/ProgressBar/ProgressBar.stories.tsx | 4 ++-- src/components/RadioGroup/RadioGroup.stories.tsx | 4 ++-- src/components/ScreenTitle/ScreenTitle.stories.tsx | 4 ++-- src/components/SearchBox/SearchBox.stories.tsx | 4 ++-- src/components/SectionTitle/SectionTitle.stories.tsx | 4 ++-- src/components/Select/Select.stories.tsx | 4 ++-- src/components/Select/Select.uikit.stories.tsx | 4 ++-- src/components/SizeChart/SizeChart.stories.tsx | 4 ++-- src/components/Slider/Slider.stories.tsx | 4 ++-- src/components/Table/Table.stories.tsx | 4 ++-- src/components/Tabs/Tabs.stories.tsx | 4 ++-- src/components/Tag/Tag.stories.tsx | 4 ++-- src/components/TextArea/TextArea.stories.tsx | 4 ++-- src/components/ThemedLogo/ThemedLogo.stories.tsx | 4 ++-- src/components/Toggle/Toggle.stories.tsx | 4 ++-- src/components/Tooltip/Tooltip.stories.tsx | 4 ++-- src/components/ValuePair/ValuePair.stories.tsx | 4 ++-- src/components/Wizard/Wizard.stories.tsx | 4 ++-- src/icons/Icons.stories.tsx | 4 ++-- 60 files changed, 124 insertions(+), 120 deletions(-) diff --git a/src/components/Accordion/Accordion.stories.tsx b/src/components/Accordion/Accordion.stories.tsx index 6b3254947..5486f8038 100644 --- a/src/components/Accordion/Accordion.stories.tsx +++ b/src/components/Accordion/Accordion.stories.tsx @@ -16,7 +16,7 @@ import React from "react"; import { useState } from "@storybook/client-api"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import StoryThemeProvider from "../../utils/StoryThemeProvider"; import Accordion from "./"; @@ -29,7 +29,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = ({ +const Template: StoryFn = ({ title, children, disabled, diff --git a/src/components/ApplicationLogo/ApplicationLogo.stories.tsx b/src/components/ApplicationLogo/ApplicationLogo.stories.tsx index 63faa5067..090462498 100644 --- a/src/components/ApplicationLogo/ApplicationLogo.stories.tsx +++ b/src/components/ApplicationLogo/ApplicationLogo.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import ApplicationLogo from "./"; import { ApplicationLogoProps } from "./ApplicationLogo.types"; @@ -28,7 +28,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = (args) => ( +const Template: StoryFn = (args) => (
diff --git a/src/components/Autocomplete/Autocomplete.stories.tsx b/src/components/Autocomplete/Autocomplete.stories.tsx index b1da7ae19..a7f879d6e 100644 --- a/src/components/Autocomplete/Autocomplete.stories.tsx +++ b/src/components/Autocomplete/Autocomplete.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import { useState } from "@storybook/addons"; import Autocomplete from "./"; @@ -34,7 +34,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = ({ +const Template: StoryFn = ({ label, required, tooltip, diff --git a/src/components/BackLink/BackLink.stories.tsx b/src/components/BackLink/BackLink.stories.tsx index 8aeda0d6f..01af12b30 100644 --- a/src/components/BackLink/BackLink.stories.tsx +++ b/src/components/BackLink/BackLink.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import BackLink from "./"; import { BackLinkProps } from "./BackLink.types"; @@ -28,7 +28,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = (args) => ( +const Template: StoryFn = (args) => ( alert("You clicked me!")} /> diff --git a/src/components/Badge/Badge.stories.tsx b/src/components/Badge/Badge.stories.tsx index a4175ec85..46b14793d 100644 --- a/src/components/Badge/Badge.stories.tsx +++ b/src/components/Badge/Badge.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import StoryThemeProvider from "../../utils/StoryThemeProvider"; import Badge from "./"; @@ -30,7 +30,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = ({ label, id, sx, color }) => { +const Template: StoryFn = ({ label, id, sx, color }) => { return ( diff --git a/src/components/Box/Box.stories.tsx b/src/components/Box/Box.stories.tsx index 4c4e3d08c..48ae06496 100644 --- a/src/components/Box/Box.stories.tsx +++ b/src/components/Box/Box.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React, { useEffect, useRef } from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import Box from "./"; import { BoxProps } from "./Box.types"; @@ -29,7 +29,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = (args) => { +const Template: StoryFn = (args) => { const reference = useRef(null); useEffect(() => { diff --git a/src/components/BoxedIcon/BoxedIcon.stories.tsx b/src/components/BoxedIcon/BoxedIcon.stories.tsx index e84a618d0..6fea6f3d9 100644 --- a/src/components/BoxedIcon/BoxedIcon.stories.tsx +++ b/src/components/BoxedIcon/BoxedIcon.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React, { useEffect, useRef } from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import BoxedIcon from "./"; import { IBoxedIconProps } from "./BoxedIcon.types"; @@ -29,7 +29,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = (args) => { +const Template: StoryFn = (args) => { return ( diff --git a/src/components/Breadcrumbs/Breadcrumbs.stories.tsx b/src/components/Breadcrumbs/Breadcrumbs.stories.tsx index 80a7aeb69..684acb581 100644 --- a/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +++ b/src/components/Breadcrumbs/Breadcrumbs.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import { BreadcrumbsOption, BreadcrumbsProps } from "./Breadcrumbs.types"; import Breadcrumbs from "./"; @@ -31,7 +31,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = (args) => ( +const Template: StoryFn = (args) => ( diff --git a/src/components/Button/Button.stories.tsx b/src/components/Button/Button.stories.tsx index 43275a2bd..9ba7da725 100644 --- a/src/components/Button/Button.stories.tsx +++ b/src/components/Button/Button.stories.tsx @@ -15,7 +15,7 @@ // along with this program. If not, see . import React from "react"; -import { Meta, Story } from "@storybook/react"; +import { Meta, StoryFn } from "@storybook/react"; import { ButtonProps } from "./Button.types"; import StoryThemeProvider from "../../utils/StoryThemeProvider"; @@ -29,7 +29,7 @@ export default { argTypes: {}, } as Meta; -const Template: Story = (args) => ( +const Template: StoryFn = (args) => (