From bb327ddd4de218ad11105e68b25f29ed2cb6c4a9 Mon Sep 17 00:00:00 2001 From: Ehsan Heydari Date: Fri, 7 Jul 2023 15:26:11 +0200 Subject: [PATCH 1/4] fix(notifier): fix standalone notifier BREAKING CHANGE: pass standalnoe toast to createNotifier --- src/components/button/stories.tsx | 5 +++-- src/components/dropdown-button/stories.tsx | 5 +++-- src/components/embedded-tabs/stories.tsx | 8 ++------ .../file-item-explorer/stories.tsx | 9 ++++----- .../file-system-explorer/folder/stories.tsx | 3 ++- .../file-system-explorer/footer/stories.tsx | 5 +++-- src/components/form-summary-container/stories.tsx | 5 +++-- src/components/freshness-bar/stories.tsx | 5 +++-- src/components/graphs/split-graph/stories.tsx | 5 +++-- src/components/header/stories.tsx | 5 +++-- src/components/holy-table/stories.tsx | 5 +++-- src/components/icon/stories.tsx | 5 +++-- src/components/input/input.styles.ts | 7 ++----- src/components/list/item/list-item.styles.ts | 4 ++-- src/components/notifier/notifier.tsx | 15 +++++++++++---- src/components/notifier/stories.tsx | 3 ++- src/components/pagination/pagination.styles.ts | 4 ++-- src/components/performance-bar/stories.tsx | 5 +++-- src/components/performance-card/stories.tsx | 5 +++-- src/components/range-slider/stories.tsx | 5 +++-- src/components/spinner/stories.tsx | 5 +++-- src/components/typography/typography.stories.tsx | 5 +++-- src/components/user/stories.tsx | 5 +++-- src/theme-chakra/ChakraThemeProvider.tsx | 3 +-- src/theme/callout/error.ts | 4 ++-- src/theme/callout/neutral.ts | 4 ++-- src/theme/callout/valid.ts | 4 ++-- src/theme/callout/warning.ts | 4 ++-- src/theme/input-info/default.ts | 4 ++-- src/theme/input-info/error.ts | 4 ++-- src/theme/select-info/default.ts | 4 ++-- src/theme/select-info/error.ts | 4 ++-- src/theme/types.ts | 4 ++-- src/theme/useColorMode.ts | 9 +++++++-- tsconfig.json | 6 +++++- 35 files changed, 103 insertions(+), 79 deletions(-) diff --git a/src/components/button/stories.tsx b/src/components/button/stories.tsx index 2610eb0e8..104ee26ec 100644 --- a/src/components/button/stories.tsx +++ b/src/components/button/stories.tsx @@ -4,7 +4,7 @@ import { StoryObj, Meta } from '@storybook/react'; import { Button } from './Button'; import { IconName } from '../icon'; -export default { +const meta: Meta = { title: 'Buttons', component: Button, args: { @@ -29,7 +29,8 @@ export default { }, }, }, -} as Meta; +}; +export default meta; export const Default: StoryObj = { render: (props) =>