@transferwise/components 0.0.0-experimental-aa84e4b → 0.0.0-experimental-586f96f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/types/WithId/_stories/source.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/Accordion/{Accordion.story.tsx → _stories/Accordion.story.tsx} +6 -6
- package/src/ActionButton/{ActionButton.story.tsx → _stories/ActionButton.story.tsx} +2 -2
- package/src/ActionButton/{ActionButton.test.story.tsx → _stories/ActionButton.test.story.tsx} +2 -2
- package/src/ActionOption/{ActionOption.story.tsx → _stories/ActionOption.story.tsx} +2 -2
- package/src/Alert/{Alert.story.tsx → _stories/Alert.story.tsx} +5 -5
- package/src/Alert/{Alert.test.story.tsx → _stories/Alert.test.story.tsx} +2 -2
- package/src/Avatar/{Avatar.story.tsx → _stories/Avatar.story.tsx} +3 -3
- package/src/AvatarLayout/{AvatarLayout.story.tsx → _stories/AvatarLayout.story.tsx} +4 -4
- package/src/AvatarLayout/{AvatarLayout.test.story.tsx → _stories/AvatarLayout.test.story.tsx} +1 -1
- package/src/AvatarView/{AvatarView.story.tsx → _stories/AvatarView.story.tsx} +5 -5
- package/src/AvatarView/{AvatarView.test.story.tsx → _stories/AvatarView.test.story.tsx} +4 -4
- package/src/AvatarWrapper/{AvatarWrapper.story.tsx → _stories/AvatarWrapper.story.tsx} +2 -2
- package/src/Badge/{Badge.story.tsx → _stories/Badge.story.tsx} +3 -3
- package/src/Body/{Body.story.tsx → _stories/Body.story.tsx} +4 -4
- package/src/Button/{LegacyButton.story.tsx → _stories/LegacyButton.story.tsx} +2 -2
- package/src/Button/{LegacyButton.test.story.tsx → _stories/LegacyButton.test.story.tsx} +2 -2
- package/src/Calendar/{Calendar.story.tsx → _stories/Calendar.story.tsx} +4 -4
- package/src/Card/{Card.story.tsx → _stories/Card.story.tsx} +1 -1
- package/src/Carousel/{Carousel.story.tsx → _stories/Carousel.story.tsx} +3 -3
- package/src/Checkbox/{Checkbox.story.tsx → _stories/Checkbox.story.tsx} +5 -5
- package/src/Checkbox/{Checkbox.test.story.tsx → _stories/Checkbox.test.story.tsx} +3 -3
- package/src/CheckboxButton/{CheckboxButton.story.tsx → _stories/CheckboxButton.story.tsx} +4 -4
- package/src/CheckboxButton/{CheckboxButton.test.story.tsx → _stories/CheckboxButton.test.story.tsx} +2 -2
- package/src/CheckboxOption/{CheckboxOption.story.tsx → _stories/CheckboxOption.story.tsx} +2 -2
- package/src/Chevron/{Chevron.story.tsx → _stories/Chevron.story.tsx} +2 -2
- package/src/Chips/{Chips.story.tsx → _stories/Chips.story.tsx} +6 -3
- package/src/Chips/{Chips.test.story.tsx → _stories/Chips.test.story.tsx} +2 -2
- package/src/CircularButton/{CircularButton.story.tsx → _stories/CircularButton.story.tsx} +4 -4
- package/src/CircularButton/{CircularButton.test.story.tsx → _stories/CircularButton.test.story.tsx} +4 -4
- package/src/Container/{Container.story.tsx → _stories/Container.story.tsx} +7 -4
- package/src/CriticalBanner/{CriticalCommsBanner.story.tsx → _stories/CriticalCommsBanner.story.tsx} +1 -1
- package/src/CriticalBanner/{CriticalCommsBanner.test.story.tsx → _stories/CriticalCommsBanner.test.story.tsx} +2 -2
- package/src/DateInput/{DateInput.story.tsx → _stories/DateInput.story.tsx} +2 -2
- package/src/DateInput/{DateInput.test.story.tsx → _stories/DateInput.test.story.tsx} +5 -5
- package/src/DateLookup/{DateLookup.story.tsx → _stories/DateLookup.story.tsx} +4 -4
- package/src/DateLookup/{DateLookup.test.story.tsx → _stories/DateLookup.test.story.tsx} +4 -4
- package/src/Decision/{Decision.story.tsx → _stories/Decision.story.tsx} +4 -4
- package/src/DefinitionList/{DefinitionList.story.tsx → _stories/DefinitionList.story.tsx} +9 -6
- package/src/Dimmer/{Dimmer.story.tsx → _stories/Dimmer.story.tsx} +2 -2
- package/src/Display/{Display.story.tsx → _stories/Display.story.tsx} +5 -5
- package/src/Divider/{Divider.story.tsx → _stories/Divider.story.tsx} +2 -2
- package/src/Drawer/{Drawer.story.tsx → _stories/Drawer.story.tsx} +5 -5
- package/src/DropFade/{DropFade.story.tsx → _stories/DropFade.story.tsx} +3 -3
- package/src/Emphasis/{Emphasis.story.tsx → _stories/Emphasis.story.tsx} +2 -2
- package/src/ExpressiveMoneyInput/{ExpressiveMoneyInput.story.tsx → _stories/ExpressiveMoneyInput.story.tsx} +15 -12
- package/src/ExpressiveMoneyInput/{ExpressiveMoneyInput.test.story.tsx → _stories/ExpressiveMoneyInput.test.story.tsx} +1 -1
- package/src/Field/{Field.story.tsx → _stories/Field.story.tsx} +12 -9
- package/src/Field/{Field.test.story.tsx → _stories/Field.test.story.tsx} +3 -3
- package/src/FlowNavigation/{FlowNavigation.story.tsx → _stories/FlowNavigation.story.tsx} +12 -12
- package/src/FlowNavigation/{FlowNavigation.test.story.tsx → _stories/FlowNavigation.test.story.tsx} +5 -5
- package/src/Header/{Header.story.tsx → _stories/Header.story.tsx} +2 -2
- package/src/Header/{Header.test.story.tsx → _stories/Header.test.story.tsx} +2 -2
- package/src/IconButton/{IconButton.story.tsx → _stories/IconButton.story.tsx} +3 -3
- package/src/IconButton/{IconButton.test.story.tsx → _stories/IconButton.test.story.tsx} +3 -3
- package/src/Icons/{Icons.story.tsx → _stories/Icons.story.tsx} +4 -4
- package/src/Image/{Image.story.tsx → _stories/Image.story.tsx} +2 -2
- package/src/Info/{Info.story.tsx → _stories/Info.story.tsx} +4 -4
- package/src/Info/{Info.test.story.tsx → _stories/Info.test.story.tsx} +3 -3
- package/src/InlineAlert/{InlineAlert.story.tsx → _stories/InlineAlert.story.tsx} +3 -3
- package/src/InputWithDisplayFormat/{InputWithDisplayFormat.story.tsx → _stories/InputWithDisplayFormat.story.tsx} +7 -5
- package/src/InputWithDisplayFormat/{InputWithDisplayFormat.test.story.tsx → _stories/InputWithDisplayFormat.test.story.tsx} +2 -2
- package/src/Inputs/{InputGroup.story.tsx → _stories/InputGroup.story.tsx} +10 -7
- package/src/Inputs/{SearchInput.story.tsx → _stories/SearchInput.story.tsx} +4 -4
- package/src/Inputs/{TextArea.story.tsx → _stories/TextArea.story.tsx} +7 -4
- package/src/Inputs/{TextArea.test.story.tsx → _stories/TextArea.test.story.tsx} +2 -2
- package/src/InstructionsList/{InstructionsList.story.tsx → _stories/InstructionsList.story.tsx} +6 -5
- package/src/Label/{Label.story.tsx → _stories/Label.story.tsx} +3 -3
- package/src/LegacyListItem/{LegacyListItem.story.tsx → _stories/LegacyListItem.story.tsx} +5 -5
- package/src/LegacyListItem/{LegacyListItem.test.story.tsx → _stories/LegacyListItem.test.story.tsx} +4 -4
- package/src/Link/{Link.story.tsx → _stories/Link.story.tsx} +6 -6
- package/src/List/{List.story.tsx → _stories/List.story.tsx} +3 -3
- package/src/ListItem/AdditionalInfo/{ListItemAdditionalInfo.story.tsx → _stories/ListItemAdditionalInfo.story.tsx} +7 -7
- package/src/ListItem/AvatarLayout/{ListItemAvatarLayout.story.tsx → _stories/ListItemAvatarLayout.story.tsx} +6 -6
- package/src/ListItem/AvatarView/{ListItemAvatarView.story.tsx → _stories/ListItemAvatarView.story.tsx} +7 -7
- package/src/ListItem/Button/{ListItemButton.story.tsx → _stories/ListItemButton.story.tsx} +5 -5
- package/src/ListItem/Checkbox/{ListItemCheckbox.story.tsx → _stories/ListItemCheckbox.story.tsx} +4 -4
- package/src/ListItem/IconButton/{ListItemIconButton.story.tsx → _stories/ListItemIconButton.story.tsx} +5 -5
- package/src/ListItem/Image/{ListItemImage.story.tsx → _stories/ListItemImage.story.tsx} +6 -6
- package/src/ListItem/Navigation/{ListItemNavigation.story.tsx → _stories/ListItemNavigation.story.tsx} +4 -6
- package/src/ListItem/Prompt/{ListItemPrompt.story.tsx → _stories/ListItemPrompt.story.tsx} +9 -9
- package/src/ListItem/Radio/{ListItemRadio.story.tsx → _stories/ListItemRadio.story.tsx} +6 -5
- package/src/ListItem/Switch/{ListItemSwitch.story.tsx → _stories/ListItemSwitch.story.tsx} +6 -6
- package/src/Loader/{Loader.story.tsx → _stories/Loader.story.tsx} +2 -2
- package/src/Logo/{Logo.story.tsx → _stories/Logo.story.tsx} +5 -5
- package/src/Logo/{Logo.test.story.tsx → _stories/Logo.test.story.tsx} +5 -5
- package/src/Markdown/{Markdown.story.tsx → _stories/Markdown.story.tsx} +2 -2
- package/src/Modal/{Modal.story.tsx → _stories/Modal.story.tsx} +4 -4
- package/src/Modal/{Modal.test.story.tsx → _stories/Modal.test.story.tsx} +4 -4
- package/src/Money/{Money.story.tsx → _stories/Money.story.tsx} +2 -2
- package/src/MoneyInput/{MoneyInput.story.tsx → _stories/MoneyInput.story.tsx} +8 -5
- package/src/MoneyInput/{MoneyInput.test.story.tsx → _stories/MoneyInput.test.story.tsx} +5 -5
- package/src/NavigationOption/{NavigationOption.story.tsx → _stories/NavigationOption.story.tsx} +3 -3
- package/src/NavigationOptionsList/{NavigationOptionsList.story.tsx → _stories/NavigationOptionsList.story.tsx} +2 -2
- package/src/Nudge/{Nudge.story.tsx → _stories/Nudge.story.tsx} +6 -3
- package/src/OverlayHeader/{OverlayHeader.story.tsx → _stories/OverlayHeader.story.tsx} +8 -5
- package/src/PhoneNumberInput/{PhoneNumberInput.story.tsx → _stories/PhoneNumberInput.story.tsx} +6 -3
- package/src/PocketSurface/{PocketSurface.story.tsx → _stories/PocketSurface.story.tsx} +7 -5
- package/src/Popover/{Popover.story.tsx → _stories/Popover.story.tsx} +7 -4
- package/src/Popover/{Popover.test.story.tsx → _stories/Popover.test.story.tsx} +4 -4
- package/src/ProcessIndicator/{ProcessIndicator.story.tsx → _stories/ProcessIndicator.story.tsx} +3 -3
- package/src/Progress/{Progress.story.tsx → _stories/Progress.story.tsx} +2 -2
- package/src/ProgressBar/{ProgressBar.story.tsx → _stories/ProgressBar.story.tsx} +3 -3
- package/src/PromoCard/{PromoCard.story.tsx → _stories/PromoCard.story.tsx} +2 -2
- package/src/PromoCard/{PromoCardGroup.story.tsx → _stories/PromoCardGroup.story.tsx} +3 -3
- package/src/Prompt/ActionPrompt/{ActionPrompt.story.tsx → _stories/ActionPrompt.story.tsx} +5 -5
- package/src/Prompt/ActionPrompt/{ActionPrompt.test.story.tsx → _stories/ActionPrompt.test.story.tsx} +5 -5
- package/src/Prompt/CriticalBanner/{CriticalBanner.story.tsx → _stories/CriticalBanner.story.tsx} +3 -3
- package/src/Prompt/CriticalBanner/{CriticalBanner.test.story.tsx → _stories/CriticalBanner.test.story.tsx} +3 -3
- package/src/Prompt/InfoPrompt/{InfoPrompt.story.tsx → _stories/InfoPrompt.story.tsx} +6 -6
- package/src/Prompt/InfoPrompt/{InfoPrompt.test.story.tsx → _stories/InfoPrompt.test.story.tsx} +3 -3
- package/src/Prompt/InlinePrompt/{InlinePrompt.story.tsx → _stories/InlinePrompt.story.tsx} +4 -4
- package/src/Prompt/InlinePrompt/{InlinePrompt.test.story.tsx → _stories/InlinePrompt.test.story.tsx} +2 -2
- package/src/Provider/{Provider.story.tsx → _stories/Provider.story.tsx} +2 -2
- package/src/Provider/theme/{ThemeProvider.story.tsx → _stories/ThemeProvider.story.tsx} +9 -9
- package/src/Radio/{Radio.story.tsx → _stories/Radio.story.tsx} +3 -3
- package/src/RadioGroup/{RadioGroup.story.tsx → _stories/RadioGroup.story.tsx} +7 -4
- package/src/RadioGroup/{RadioGroup.test.story.tsx → _stories/RadioGroup.test.story.tsx} +2 -2
- package/src/RadioOption/{RadioOption.story.tsx → _stories/RadioOption.story.tsx} +2 -2
- package/src/Section/{Section.story.tsx → _stories/Section.story.tsx} +9 -6
- package/src/SegmentedControl/{SegmentedControl.story.tsx → _stories/SegmentedControl.story.tsx} +3 -3
- package/src/Select/{Select.story.tsx → _stories/Select.story.tsx} +1 -1
- package/src/Select/{Select.test.story.tsx → _stories/Select.test.story.tsx} +2 -2
- package/src/SentimentSurface/{SentimentSurface.story.tsx → _stories/SentimentSurface.story.tsx} +12 -10
- package/src/SentimentSurface/{SentimentSurface.test.story.tsx → _stories/SentimentSurface.test.story.tsx} +3 -3
- package/src/SlidingPanel/{SlidingPanel.story.tsx → _stories/SlidingPanel.story.tsx} +3 -3
- package/src/Snackbar/{Snackbar.story.tsx → _stories/Snackbar.story.tsx} +6 -6
- package/src/Snackbar/{Snackbar.test.story.tsx → _stories/Snackbar.test.story.tsx} +7 -7
- package/src/StatusIcon/{StatusIcon.story.tsx → _stories/StatusIcon.story.tsx} +4 -4
- package/src/StatusIcon/{StatusIcon.test.story.tsx → _stories/StatusIcon.test.story.tsx} +4 -5
- package/src/Stepper/{Stepper.story.tsx → _stories/Stepper.story.tsx} +2 -2
- package/src/Stepper/{Stepper.test.story.tsx → _stories/Stepper.test.story.tsx} +1 -1
- package/src/Sticky/{Sticky.story.tsx → _stories/Sticky.story.tsx} +3 -3
- package/src/Summary/{Summary.story.tsx → _stories/Summary.story.tsx} +3 -4
- package/src/Summary/{Summary.test.story.tsx → _stories/Summary.test.story.tsx} +2 -2
- package/src/Switch/{Switch.story.tsx → _stories/Switch.story.tsx} +8 -5
- package/src/Switch/{Switch.test.story.tsx → _stories/Switch.test.story.tsx} +3 -3
- package/src/SwitchOption/{SwitchOption.story.tsx → _stories/SwitchOption.story.tsx} +2 -2
- package/src/Table/{Table.story.tsx → _stories/Table.story.tsx} +4 -4
- package/src/Tabs/{Tabs.story.tsx → _stories/Tabs.story.tsx} +3 -3
- package/src/TextareaWithDisplayFormat/{TextareaWithDisplayFormat.story.tsx → _stories/TextareaWithDisplayFormat.story.tsx} +6 -3
- package/src/Tile/{Tile.story.tsx → _stories/Tile.story.tsx} +5 -5
- package/src/Title/{Title.story.tsx → _stories/Title.story.tsx} +3 -3
- package/src/Title/{Title.test.story.tsx → _stories/Title.test.story.tsx} +3 -3
- package/src/Tooltip/{Tooltip.story.tsx → _stories/Tooltip.story.tsx} +3 -3
- package/src/Tooltip/{Tooltip.test.story.tsx → _stories/Tooltip.test.story.tsx} +3 -3
- package/src/Typeahead/{Typeahead.story.tsx → _stories/Typeahead.story.tsx} +11 -8
- package/src/Typeahead/{Typeahead.test.story.tsx → _stories/Typeahead.test.story.tsx} +3 -3
- package/src/Upload/{Upload.story.tsx → _stories/Upload.story.tsx} +3 -3
- package/src/Upload/{Upload.test.story.tsx → _stories/Upload.test.story.tsx} +2 -2
- package/src/UploadInput/{UploadInput.story.tsx → _stories/UploadInput.story.tsx} +7 -4
- package/src/UploadInput/{UploadInput.test.story.tsx → _stories/UploadInput.test.story.tsx} +3 -3
- package/src/WithId/{withId.docs.mdx → _stories/withId.docs.mdx} +1 -1
- package/src/WithId/{withId.story.tsx → _stories/withId.story.tsx} +1 -1
- package/src/{DisabledComponents.test.story.tsx → _stories/DisabledComponents.test.story.tsx} +7 -7
- package/src/common/BaseCard/{BaseCard.story.tsx → _stories/BaseCard.story.tsx} +7 -7
- package/src/common/BottomSheet/{BottomSheet.story.tsx → _stories/BottomSheet.story.tsx} +8 -8
- package/src/common/BottomSheet/{BottomSheet.test.story.tsx → _stories/BottomSheet.test.story.tsx} +9 -9
- package/src/common/Circle/{Circle.story.tsx → _stories/Circle.story.tsx} +4 -5
- package/build/types/WithId/story/source.d.ts.map +0 -1
- /package/build/types/WithId/{story → _stories}/source.d.ts +0 -0
- /package/src/Divider/{Divider.accessibility.docs.mdx → _stories/Divider.accessibility.docs.mdx} +0 -0
- /package/src/ExpressiveMoneyInput/{ExpressiveMoneyInput.autofocus.docs.mdx → _stories/ExpressiveMoneyInput.autofocus.docs.mdx} +0 -0
- /package/src/Header/{Header.accessibility.docs.mdx → _stories/Header.accessibility.docs.mdx} +0 -0
- /package/src/MoneyInput/{MoneyInput.docs.mdx → _stories/MoneyInput.docs.mdx} +0 -0
- /package/src/PocketSurface/{PocketSurface.docs.mdx → _stories/PocketSurface.docs.mdx} +0 -0
- /package/src/Primitives/PrimitiveAnchor/{stories → _stories}/PrimitiveAnchor.story.tsx +0 -0
- /package/src/Primitives/PrimitiveAnchor/{stories → _stories}/PrimitiveAnchor.test.story.tsx +0 -0
- /package/src/Primitives/PrimitiveButton/{stories → _stories}/PrimitiveButton.story.tsx +0 -0
- /package/src/Primitives/PrimitiveButton/{stories → _stories}/PrimitiveButton.test.story.tsx +0 -0
- /package/src/Prompt/ActionPrompt/{ActionPrompt.accessibility.docs.mdx → _stories/ActionPrompt.accessibility.docs.mdx} +0 -0
- /package/src/Prompt/CriticalBanner/{CriticalBanner.accessibility.docs.mdx → _stories/CriticalBanner.accessibility.docs.mdx} +0 -0
- /package/src/Prompt/InfoPrompt/{InfoPrompt.accessibility.docs.mdx → _stories/InfoPrompt.accessibility.docs.mdx} +0 -0
- /package/src/Prompt/InlinePrompt/{InlinePrompt.accessibility.docs.mdx → _stories/InlinePrompt.accessibility.docs.mdx} +0 -0
- /package/src/SentimentSurface/{SentimentSurface.docs.mdx → _stories/SentimentSurface.docs.mdx} +0 -0
- /package/src/StatusIcon/{StatusIcon.docs.mdx → _stories/StatusIcon.docs.mdx} +0 -0
- /package/src/WithId/{story → _stories}/source.tsx +0 -0
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
useTheme,
|
|
6
6
|
} from '@wise/components-theming';
|
|
7
7
|
|
|
8
|
-
import Button from '
|
|
9
|
-
import { lorem100 } from '
|
|
10
|
-
import Display from '
|
|
11
|
-
import Body from '
|
|
12
|
-
import FlowNavigation from '
|
|
13
|
-
import AvatarView from '
|
|
14
|
-
import SegmentedControl from '
|
|
15
|
-
import Sticky from '
|
|
16
|
-
import { Field } from '
|
|
8
|
+
import Button from '../../../Button';
|
|
9
|
+
import { lorem100 } from '../../../test-utils';
|
|
10
|
+
import Display from '../../../Display';
|
|
11
|
+
import Body from '../../../Body';
|
|
12
|
+
import FlowNavigation from '../../../FlowNavigation/FlowNavigation';
|
|
13
|
+
import AvatarView from '../../../AvatarView';
|
|
14
|
+
import SegmentedControl from '../../../SegmentedControl';
|
|
15
|
+
import Sticky from '../../../Sticky';
|
|
16
|
+
import { Field } from '../../../Field/Field';
|
|
17
17
|
|
|
18
18
|
// ThemeProvider external component, this mock makes Storybook generate Props Table
|
|
19
19
|
function ThemeProvider(props: ThemeProviderProps) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
-
import Radio, { type RadioProps } from '
|
|
5
|
-
import AvatarView from '
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
|
+
import Radio, { type RadioProps } from '../';
|
|
5
|
+
import { AvatarView } from '../../ListItem/AvatarView';
|
|
6
6
|
import { Flag } from '@wise/art';
|
|
7
7
|
import { fn } from 'storybook/test';
|
|
8
8
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Flag } from '@wise/art';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import {
|
|
3
|
+
createSandboxStory,
|
|
4
|
+
globalScope,
|
|
5
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
|
+
import RadioGroup, { RadioGroupProps, RadioGroupRadio } from '..';
|
|
7
|
+
import { Field } from '../../Field/Field';
|
|
5
8
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
6
9
|
import { fn } from 'storybook/test';
|
|
7
10
|
import { useState } from 'react';
|
|
8
|
-
import AvatarView from '
|
|
11
|
+
import AvatarView from '../../AvatarView';
|
|
9
12
|
|
|
10
13
|
const meta = {
|
|
11
14
|
component: RadioGroup,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import RadioGroup, { RadioGroupProps } from '
|
|
2
|
-
import { Field } from '
|
|
1
|
+
import RadioGroup, { RadioGroupProps } from '../RadioGroup';
|
|
2
|
+
import { Field } from '../../Field/Field';
|
|
3
3
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
import { fn } from 'storybook/test';
|
|
5
5
|
|
|
@@ -2,8 +2,8 @@ import { useState } from 'react';
|
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
3
|
import { fn } from 'storybook/test';
|
|
4
4
|
import { FastFlag as FastFlagIcon } from '@transferwise/icons';
|
|
5
|
-
import { Header, Nudge, Section, Title, Typography } from '
|
|
6
|
-
import RadioOption, { RadioOptionProps } from '
|
|
5
|
+
import { Header, Nudge, Section, Title, Typography } from '../..';
|
|
6
|
+
import RadioOption, { RadioOptionProps } from '../RadioOption';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* > ⚠️ This component is **deprecated** and superseded by the [new ListItem component](?path=/docs/content-listitem--docs) with the [ListItem.Radio control](?path=/docs/content-listitem-listitem-radio--docs)
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { FastFlag as FastFlagIcon } from '@transferwise/icons';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { action } from 'storybook/actions';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
|
+
import Accordion from '../../Accordion';
|
|
9
|
+
import Card from '../../Card';
|
|
10
|
+
import Header from '../../Header';
|
|
11
|
+
import ListItem from '../../ListItem';
|
|
12
|
+
import Section from '../Section';
|
|
10
13
|
|
|
11
14
|
export default {
|
|
12
15
|
component: Section,
|
package/src/SegmentedControl/{SegmentedControl.story.tsx → _stories/SegmentedControl.story.tsx}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StoryFn, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import Button from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import Button from '../../Button';
|
|
6
6
|
|
|
7
|
-
import SegmentedControl from '
|
|
7
|
+
import SegmentedControl from '../';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
component: SegmentedControl,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Person, Globe as GlobeIcon } from '@transferwise/icons';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import Select, { SelectItem, SelectOptionItem } from '
|
|
4
|
+
import Select, { SelectItem, SelectOptionItem } from '..';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use **`SelectInput`** instead <br/> [https://neptune.wise.design/blog/2023-11-28-adopting-our-new-selectinput](https://neptune.wise.design/blog/2023-11-28-adopting-our-new-selectinput)
|
|
@@ -2,8 +2,8 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { expect, screen, userEvent, waitFor, within } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { withVariantConfig } from '
|
|
6
|
-
import Select, { SelectOptionItem } from '
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
|
+
import Select, { SelectOptionItem } from '../Select';
|
|
7
7
|
|
|
8
8
|
const meta = {
|
|
9
9
|
title: 'Forms/Select/Tests',
|
package/src/SentimentSurface/{SentimentSurface.story.tsx → _stories/SentimentSurface.story.tsx}
RENAMED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Bank, Defrost } from '@transferwise/icons';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
3
|
+
import {
|
|
4
|
+
createSandboxStory,
|
|
5
|
+
globalScope,
|
|
6
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
|
+
import Body from '../../Body';
|
|
8
|
+
import Button from '../../Button';
|
|
9
|
+
import Header from '../../Header';
|
|
10
|
+
import Link from '../../Link';
|
|
11
|
+
import IconButton from '../../IconButton';
|
|
12
|
+
import StatusIcon from '../../StatusIcon';
|
|
13
|
+
import AvatarView from '../../AvatarView';
|
|
14
|
+
import SentimentSurface, { Emphasis, Sentiment } from '..';
|
|
13
15
|
|
|
14
16
|
const withComponentGrid = (Story: () => JSX.Element) => (
|
|
15
17
|
<div
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { ThemeProvider, type Theming } from '@wise/components-theming';
|
|
3
|
-
import Button from '
|
|
4
|
-
import SentimentSurface from '
|
|
5
|
-
import type { Sentiment, Emphasis } from '
|
|
3
|
+
import Button from '../../Button';
|
|
4
|
+
import SentimentSurface from '../SentimentSurface';
|
|
5
|
+
import type { Sentiment, Emphasis } from '../SentimentSurface.types';
|
|
6
6
|
|
|
7
7
|
const sentiments: Sentiment[] = ['negative', 'success', 'proposition', 'warning', 'neutral'];
|
|
8
8
|
const emphasisLevels: Emphasis[] = ['base', 'elevated'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Button from '
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
-
import SlidingPanel, { type SlidingPanelProps } from '
|
|
2
|
+
import Button from '../../Button';
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
|
+
import SlidingPanel, { type SlidingPanelProps } from '../';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: SlidingPanel,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn, userEvent, within } from 'storybook/test';
|
|
3
|
-
import { wait } from '
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import Button from '
|
|
6
|
-
import { Snackbar } from '
|
|
7
|
-
import { SnackbarConsumer } from '
|
|
8
|
-
import SnackbarProvider from '
|
|
3
|
+
import { wait } from '../../test-utils/wait';
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import Button from '../../Button';
|
|
6
|
+
import { Snackbar } from '../Snackbar';
|
|
7
|
+
import { SnackbarConsumer } from '../SnackbarContext';
|
|
8
|
+
import SnackbarProvider from '../SnackbarProvider';
|
|
9
9
|
|
|
10
10
|
const meta: Meta = {
|
|
11
11
|
component: Snackbar,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { userEvent, within, expect } from 'storybook/test';
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
|
-
import { withVariantConfig } from '
|
|
4
|
-
import { lorem20 } from '
|
|
5
|
-
import { wait } from '
|
|
6
|
-
import Button from '
|
|
7
|
-
import { Snackbar, type SnackbarProps } from '
|
|
8
|
-
import { SnackbarConsumer } from '
|
|
9
|
-
import SnackbarProvider from '
|
|
3
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
4
|
+
import { lorem20 } from '../../test-utils';
|
|
5
|
+
import { wait } from '../../test-utils/wait';
|
|
6
|
+
import Button from '../../Button';
|
|
7
|
+
import { Snackbar, type SnackbarProps } from '../Snackbar';
|
|
8
|
+
import { SnackbarConsumer } from '../SnackbarContext';
|
|
9
|
+
import SnackbarProvider from '../SnackbarProvider';
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
12
|
title: 'Dialogs/Snackbar/Tests',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { createSandboxStory } from '
|
|
2
|
+
import { createSandboxStory } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
3
|
|
|
4
|
-
import { Sentiment } from '
|
|
5
|
-
import SentimentSurface from '
|
|
4
|
+
import { Sentiment } from '../../common';
|
|
5
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
6
6
|
|
|
7
|
-
import StatusIcon, { StatusIconSentiment } from '
|
|
7
|
+
import StatusIcon, { StatusIconSentiment } from '../';
|
|
8
8
|
|
|
9
9
|
const sentiments = [
|
|
10
10
|
Sentiment.POSITIVE,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import { Sentiment, Size } from '
|
|
4
|
-
import SentimentSurface from '
|
|
5
|
-
import { withVariantConfig } from '
|
|
6
|
-
import { allModes } from '../../.storybook/modes';
|
|
3
|
+
import { Sentiment, Size } from '../../common';
|
|
4
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
7
6
|
|
|
8
|
-
import StatusIcon, { StatusIconSentiment } from '
|
|
7
|
+
import StatusIcon, { StatusIconSentiment } from '../StatusIcon';
|
|
9
8
|
|
|
10
9
|
export default {
|
|
11
10
|
title: 'Other/StatusIcon/Tests',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
-
import Stepper from '
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
|
+
import Stepper from '../Stepper';
|
|
5
5
|
|
|
6
6
|
const STEPS = [
|
|
7
7
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
-
import Sticky from '
|
|
5
|
-
import { allModes } from '
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
|
+
import Sticky from '../Sticky';
|
|
5
|
+
import { allModes } from '../../../.storybook/modes';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Sticky> = {
|
|
8
8
|
component: Sticky,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { action } from 'storybook/actions';
|
|
3
2
|
import { House } from '@transferwise/icons';
|
|
4
|
-
import { Status } from '
|
|
5
|
-
import { InfoPresentation } from '
|
|
6
|
-
import Summary, { type
|
|
3
|
+
import { Status } from '../../common';
|
|
4
|
+
import { InfoPresentation } from '../../Info';
|
|
5
|
+
import Summary, { type SummaryProps } from '..';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* > ⚠️ This component is **deprecated** and superseded by the [new ListItem component](?path=/docs/content-listitem--docs) (run codemod to migrate: **`npx @wise/wds-codemods@latest list-item`**).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { House } from '@transferwise/icons';
|
|
2
|
-
import { Status } from '
|
|
3
|
-
import Summary, { type SummaryProps } from '
|
|
2
|
+
import { Status } from '../../common';
|
|
3
|
+
import Summary, { type SummaryProps } from '..';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
component: Summary,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import { storySourceWithoutNoise } from '
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { storySourceWithoutNoise } from '../../../.storybook/helpers';
|
|
5
|
+
import {
|
|
6
|
+
createSandboxStory,
|
|
7
|
+
globalScope,
|
|
8
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
9
|
+
import Switch, { SwitchProps } from '..';
|
|
8
10
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
9
|
-
import { Label } from '
|
|
11
|
+
import { Label } from '../../Label';
|
|
12
|
+
import { Field } from '../../Field/Field';
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
15
|
* **Design guidance**: <a href="https://docs.wise.design/components/switch" target="_blank">wise.design/components/switch</a>
|
|
@@ -2,9 +2,9 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { expect, userEvent, within } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { withVariantConfig } from '
|
|
6
|
-
import { Field } from '
|
|
7
|
-
import Switch from '
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
|
+
import { Field } from '../../Field/Field';
|
|
7
|
+
import Switch from '../Switch';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
component: Switch,
|
|
@@ -2,9 +2,9 @@ import { action } from 'storybook/actions';
|
|
|
2
2
|
import { FastFlag as FastFlagIcon } from '@transferwise/icons';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { Nudge, Title, Typography } from '
|
|
5
|
+
import { Nudge, Title, Typography } from '../..';
|
|
6
6
|
|
|
7
|
-
import SwitchOption, { type SwitchOptionProps } from '
|
|
7
|
+
import SwitchOption, { type SwitchOptionProps } from '..';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* > ⚠️ This component is **deprecated** and superseded by the [new ListItem component](?path=/docs/content-listitem--docs) with the [ListItem.Switch control](?path=/docs/content-listitem-listitem-switch--docs)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
-
import Table from '
|
|
4
|
-
import { TableHeaderType } from '
|
|
5
|
-
import { TableRowType, TableRowClickableType } from '
|
|
2
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
|
+
import Table from '../';
|
|
4
|
+
import { TableHeaderType } from '../TableHeader';
|
|
5
|
+
import { TableRowType, TableRowClickableType } from '../TableRow';
|
|
6
6
|
import { DirectDebits } from '@transferwise/icons';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { createSandboxStory, globalScope } from '
|
|
2
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
3
|
|
|
4
|
-
import { Width } from '
|
|
4
|
+
import { Width } from '../../common';
|
|
5
5
|
|
|
6
|
-
import Tabs from '
|
|
6
|
+
import Tabs from '../';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: Tabs,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { userEvent, within } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
|
+
import TextareaWithDisplayFormat from '..';
|
|
9
|
+
import { Field } from '../../Field/Field';
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
component: TextareaWithDisplayFormat,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
-
import { Size } from '
|
|
5
|
-
import AvatarView from '
|
|
6
|
-
import Tile from '
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
|
+
import { Size } from '../../common';
|
|
5
|
+
import AvatarView from '../../AvatarView';
|
|
6
|
+
import Tile from '../';
|
|
7
7
|
import { Illustration, type IllustrationProps } from '@wise/art';
|
|
8
|
-
import Image from '
|
|
8
|
+
import Image from '../../Image';
|
|
9
9
|
|
|
10
10
|
const LabelledIllustration = (props: IllustrationProps) => <Illustration {...props} />;
|
|
11
11
|
LabelledIllustration.displayName = 'Illustration';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Typography } from '
|
|
1
|
+
import { Typography } from '../../common/PropsValues/typography';
|
|
2
2
|
|
|
3
|
-
import Title from '
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
+
import Title from '../';
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Title,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Typography } from '
|
|
2
|
-
import { lorem1000 } from '
|
|
1
|
+
import { Typography } from '../../common/PropsValues/typography';
|
|
2
|
+
import { lorem1000 } from '../../test-utils';
|
|
3
3
|
|
|
4
|
-
import Title from '
|
|
4
|
+
import Title from '../Title';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Title,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
-
import Button from '
|
|
4
|
-
import Tooltip from '
|
|
2
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
|
+
import Button from '../../Button';
|
|
4
|
+
import Tooltip from '../Tooltip';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Tooltip,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { userEvent, within } from 'storybook/test';
|
|
3
|
-
import Button from '
|
|
4
|
-
import Tooltip from '
|
|
5
|
-
import { withVariantConfig } from '
|
|
3
|
+
import Button from '../../Button';
|
|
4
|
+
import Tooltip from '../Tooltip';
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Tooltip> = {
|
|
8
8
|
component: Tooltip,
|
|
@@ -3,14 +3,17 @@ import { Search as SearchIcon } from '@transferwise/icons';
|
|
|
3
3
|
import { userEvent, within, fn } from 'storybook/test';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
|
+
import { Sentiment, Size } from '../../common';
|
|
11
|
+
import { Input } from '../../Inputs/Input';
|
|
12
|
+
import { Field } from '../../Field/Field';
|
|
13
|
+
import Button from '../../Button';
|
|
14
|
+
import Modal from '../../Modal';
|
|
15
|
+
import { InlinePromptProps } from '../../Prompt';
|
|
16
|
+
import Typeahead, { type TypeaheadOption } from '..';
|
|
14
17
|
|
|
15
18
|
// needed for SB to display correct name in the docs
|
|
16
19
|
(Typeahead as React.FC).displayName = 'Typeahead';
|
|
@@ -2,9 +2,9 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { Search as SearchIcon } from '@transferwise/icons';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import Button from '
|
|
6
|
-
import Modal from '
|
|
7
|
-
import Typeahead from '
|
|
5
|
+
import Button from '../../Button';
|
|
6
|
+
import Modal from '../../Modal';
|
|
7
|
+
import Typeahead from '../Typeahead';
|
|
8
8
|
|
|
9
9
|
// needed for SB to display correct name in the docs
|
|
10
10
|
(Typeahead as React.FC).displayName = 'Typeahead';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import Upload from '
|
|
6
|
-
import { MAX_SIZE_DEFAULT } from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import Upload from '..';
|
|
6
|
+
import { MAX_SIZE_DEFAULT } from '../Upload';
|
|
7
7
|
|
|
8
8
|
const meta = {
|
|
9
9
|
component: Upload,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { userEvent, within, waitFor } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import Upload from '
|
|
5
|
-
import { Field } from '
|
|
4
|
+
import Upload from '..';
|
|
5
|
+
import { Field } from '../../Field/Field';
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
8
|
component: Upload,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { StoryFn, Meta } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
createSandboxStory,
|
|
5
|
+
globalScope,
|
|
6
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
|
+
import { Field } from '../../Field/Field';
|
|
5
8
|
|
|
6
|
-
import UploadInput,
|
|
7
|
-
import { UploadResponse } from '
|
|
9
|
+
import { UploadInput, UploadInputProps } from '../..';
|
|
10
|
+
import { UploadResponse } from '../types';
|
|
8
11
|
|
|
9
12
|
const meta: Meta<typeof UploadInput> = {
|
|
10
13
|
title: 'Forms/UploadInput',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { action } from 'storybook/actions';
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
|
|
4
|
-
import { Status } from '
|
|
5
|
-
import UploadInput, { UploadInputProps } from '
|
|
6
|
-
import { UploadedFile, UploadResponse } from '
|
|
4
|
+
import { Status } from '../../common';
|
|
5
|
+
import UploadInput, { UploadInputProps } from '../UploadInput';
|
|
6
|
+
import { UploadedFile, UploadResponse } from '../types';
|
|
7
7
|
import { userEvent } from 'storybook/test';
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof UploadInput> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, Canvas, Source } from '@storybook/addon-docs/blocks';
|
|
2
2
|
import { WithoutId, WithCustomId, WithEmptyId } from './withId.story';
|
|
3
|
-
import { withIdSource } from './
|
|
3
|
+
import { withIdSource } from './source';
|
|
4
4
|
|
|
5
5
|
<Meta title="HoCs/withId" />
|
|
6
6
|
|