@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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import ListItem from '
|
|
2
|
+
import ListItem from '../..';
|
|
3
3
|
import { Edit } from '@transferwise/icons';
|
|
4
4
|
import { fn } from 'storybook/test';
|
|
5
|
-
import List from '
|
|
5
|
+
import List from '../../../List';
|
|
6
6
|
import {
|
|
7
7
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
8
8
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
9
9
|
SB_LIST_ITEM_PROMPTS as PROMPTS,
|
|
10
|
-
} from '
|
|
11
|
-
import { disableControls } from '
|
|
12
|
-
import type { ListItemIconButtonProps } from '
|
|
10
|
+
} from '../../_stories/subcomponents';
|
|
11
|
+
import { disableControls } from '../../_stories/helpers';
|
|
12
|
+
import type { ListItemIconButtonProps } from '../ListItemIconButton';
|
|
13
13
|
|
|
14
14
|
const hideControls = disableControls([
|
|
15
15
|
'onClick',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import List from '
|
|
3
|
-
import { ListItem } from '
|
|
2
|
+
import List from '../../../List';
|
|
3
|
+
import { ListItem } from '../../..';
|
|
4
4
|
import {
|
|
5
5
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
6
6
|
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
7
|
-
} from '
|
|
8
|
-
import landscapeImage from '
|
|
9
|
-
import portraitImage from '
|
|
10
|
-
import type { ListItemImageProps } from '
|
|
7
|
+
} from '../../_stories/subcomponents';
|
|
8
|
+
import landscapeImage from '../../../test-utils/assets/placeholder-landscape.svg';
|
|
9
|
+
import portraitImage from '../../../test-utils/assets/placeholder-portrait.svg';
|
|
10
|
+
import type { ListItemImageProps } from '..';
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
13
|
component: ListItem.Image,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { ListItem } from '../ListItem';
|
|
3
|
+
import List from '../../../List';
|
|
4
|
+
import { ListItem } from '../../..';
|
|
6
5
|
import {
|
|
7
6
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
8
|
-
SB_LIST_ITEM_PROMPTS as PROMPTS,
|
|
9
7
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
10
|
-
} from '
|
|
11
|
-
import type { ListItemNavigationProps } from '
|
|
8
|
+
} from '../../_stories/subcomponents';
|
|
9
|
+
import type { ListItemNavigationProps } from '../ListItemNavigation';
|
|
12
10
|
|
|
13
11
|
const meta: Meta<ListItemNavigationProps> = {
|
|
14
12
|
component: ListItem.Navigation,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
|
-
import { lorem10, lorem5 } from '
|
|
4
|
-
import Link from '
|
|
5
|
-
import List from '
|
|
6
|
-
import { Sentiment as Sentiments } from '
|
|
7
|
-
import {
|
|
3
|
+
import { lorem10, lorem5 } from '../../../test-utils';
|
|
4
|
+
import Link from '../../../Link';
|
|
5
|
+
import List from '../../../List';
|
|
6
|
+
import { Sentiment as Sentiments } from '../../../common';
|
|
7
|
+
import { ListItem } from '../../ListItem';
|
|
8
|
+
import { Prompt, type ListItemPromptProps } from '..';
|
|
9
|
+
import { Clock } from '@transferwise/icons';
|
|
10
|
+
import { withoutKey } from '../../_stories/helpers';
|
|
8
11
|
import {
|
|
9
12
|
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
10
13
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
11
|
-
} from '
|
|
12
|
-
import { ListItem } from '../ListItem';
|
|
13
|
-
import { Prompt, type ListItemPromptProps } from './ListItemPrompt';
|
|
14
|
-
import { Clock } from '@transferwise/icons';
|
|
14
|
+
} from '../../_stories/subcomponents';
|
|
15
15
|
|
|
16
16
|
const meta: Meta<ListItemPromptProps> = {
|
|
17
17
|
component: Prompt,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import List from '
|
|
4
|
-
|
|
3
|
+
import List from '../../../List';
|
|
4
|
+
|
|
5
|
+
import { ListItem } from '../../ListItem';
|
|
5
6
|
import {
|
|
6
7
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
7
8
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
8
|
-
} from '
|
|
9
|
-
import type { ListItemRadioProps } from '
|
|
9
|
+
} from '../../_stories/subcomponents';
|
|
10
|
+
import type { ListItemRadioProps } from '../ListItemRadio';
|
|
10
11
|
import { fn } from 'storybook/test';
|
|
11
|
-
import { ProfileType } from '
|
|
12
|
+
import { ProfileType } from '../../../common';
|
|
12
13
|
|
|
13
14
|
const meta: Meta<ListItemRadioProps> = {
|
|
14
15
|
component: ListItem.Radio,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import List from '../../List';
|
|
5
|
-
import { ListItem } from '../ListItem';
|
|
2
|
+
import { lorem10, lorem5 } from '../../../test-utils';
|
|
3
|
+
import List from '../../../List';
|
|
6
4
|
import {
|
|
7
5
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
8
6
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
9
|
-
} from '
|
|
10
|
-
import type { ListItemSwitchProps } from '
|
|
7
|
+
} from '../../_stories/subcomponents';
|
|
8
|
+
import type { ListItemSwitchProps } from '..';
|
|
9
|
+
import { fn } from 'storybook/test';
|
|
10
|
+
import { ListItem } from '../../ListItem';
|
|
11
11
|
|
|
12
12
|
const meta: Meta<ListItemSwitchProps> = {
|
|
13
13
|
component: ListItem.Switch,
|
|
@@ -1,7 +1,7 @@
|
|
|
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 Loader from '
|
|
4
|
+
import Loader from '../';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Loader,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import Logo, { LogoType, LogoDisplay, LogoFormat } from '
|
|
4
|
-
import type { LogoSize } from '
|
|
5
|
-
import { createSandboxStory } from '
|
|
6
|
-
import { withVariantConfig } from '
|
|
7
|
-
import Body from '
|
|
3
|
+
import Logo, { LogoType, LogoDisplay, LogoFormat } from '../Logo';
|
|
4
|
+
import type { LogoSize } from '../Logo';
|
|
5
|
+
import { createSandboxStory } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
7
|
+
import Body from '../../Body';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* **Design guidance**: <a href="https://docs.wise.design/foundations/logo" target="_blank">wise.design/foundations/logo</a>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import Logo, { LogoType } from '
|
|
4
|
-
import { LogoFormat } from '
|
|
5
|
-
import type { LogoSize } from '
|
|
6
|
-
import { withVariantConfig } from '
|
|
7
|
-
import Body from '
|
|
3
|
+
import Logo, { LogoType } from '..';
|
|
4
|
+
import { LogoFormat } from '../Logo';
|
|
5
|
+
import type { LogoSize } from '../Logo';
|
|
6
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
7
|
+
import Body from '../../Body';
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof Logo> = {
|
|
10
10
|
component: Logo,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import Markdown from '
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
+
import Markdown from '../';
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Markdown,
|
|
@@ -3,10 +3,10 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { ScreenMode, ThemeProvider } from '@wise/components-theming';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
|
|
6
|
-
import { Button, Modal, ModalProps } from '
|
|
7
|
-
import { CommonProps, Scroll } from '
|
|
8
|
-
import { lorem10, lorem100, lorem1000 } from '
|
|
9
|
-
import { createSandboxStory, globalScope } from '
|
|
6
|
+
import { Button, Modal, ModalProps } from '../..';
|
|
7
|
+
import { CommonProps, Scroll } from '../../common';
|
|
8
|
+
import { lorem10, lorem100, lorem1000 } from '../../test-utils';
|
|
9
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
12
|
component: Modal,
|
|
@@ -3,10 +3,10 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { expect, userEvent, within } from 'storybook/test';
|
|
4
4
|
import { ScreenMode, ThemeProvider } from '@wise/components-theming';
|
|
5
5
|
import { useState } from 'react';
|
|
6
|
-
import { Button, Modal, ModalProps } from '
|
|
7
|
-
import { CommonProps, Scroll } from '
|
|
8
|
-
import { lorem10, lorem100, lorem1000 } from '
|
|
9
|
-
import { withVariantConfig } from '
|
|
6
|
+
import { Button, Modal, ModalProps } from '../..';
|
|
7
|
+
import { CommonProps, Scroll } from '../../common';
|
|
8
|
+
import { lorem10, lorem100, lorem1000 } from '../../test-utils';
|
|
9
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof Modal> = {
|
|
12
12
|
component: Modal,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import Money from '
|
|
4
|
-
import { createSandboxStory } from '
|
|
3
|
+
import Money from '../Money';
|
|
4
|
+
import { createSandboxStory } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Money,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { within, userEvent
|
|
2
|
+
import { within, userEvent } from 'storybook/test';
|
|
3
3
|
import { Padlock } from '@transferwise/icons';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
|
+
import MoneyInput, { CurrencyOptionItem } from '..';
|
|
11
|
+
import { Field } from '../../Field/Field';
|
|
12
|
+
import translations from '../../i18n/en.json';
|
|
10
13
|
|
|
11
14
|
export default {
|
|
12
15
|
component: MoneyInput,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { within, userEvent, fireEvent, expect } from 'storybook/test';
|
|
3
|
-
import { allModes } from '
|
|
4
|
-
import { lorem500 } from '
|
|
5
|
-
import { Field } from '
|
|
6
|
-
import Body from '
|
|
7
|
-
import MoneyInput from '
|
|
3
|
+
import { allModes } from '../../../.storybook/modes';
|
|
4
|
+
import { lorem500 } from '../../test-utils';
|
|
5
|
+
import { Field } from '../../Field/Field';
|
|
6
|
+
import Body from '../../Body';
|
|
7
|
+
import MoneyInput from '../MoneyInput';
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
10
|
title: 'Forms/MoneyInput/Tests',
|
package/src/NavigationOption/{NavigationOption.story.tsx → _stories/NavigationOption.story.tsx}
RENAMED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
UpwardGraph as UpwardGraphIcon,
|
|
9
9
|
FastFlag,
|
|
10
10
|
} from '@transferwise/icons';
|
|
11
|
-
import type { AvatarViewBadgeProps } from '
|
|
12
|
-
import { Nudge, Header, Title, Typography, AvatarView
|
|
13
|
-
import NavigationOption from '
|
|
11
|
+
import type { AvatarViewBadgeProps } from '../../AvatarView/AvatarView';
|
|
12
|
+
import { Nudge, Header, Title, Typography, AvatarView } from '../..';
|
|
13
|
+
import NavigationOption, { type NavigationOptionProps } from '../NavigationOption';
|
|
14
14
|
import { fn } from 'storybook/test';
|
|
15
15
|
|
|
16
16
|
type StoryArgs = NavigationOptionProps & { hasTitleOnly?: boolean };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import NavigationOption from '
|
|
1
|
+
import NavigationOption from '../../NavigationOption';
|
|
2
2
|
|
|
3
|
-
import NavigationOptionsList from '
|
|
3
|
+
import NavigationOptionsList from '..';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* > ⚠️ This component is **deprecated** and superseded by the [List](?path=/docs/content-list--docs), [new ListItem component](?path=/docs/content-listitem--docs) with the [ListItem.Navigation control](?path=/docs/content-listitem-listitem-navigation--docs).
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { action } from 'storybook/actions';
|
|
2
1
|
import { Assets } from '@wise/art';
|
|
3
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
createSandboxStory,
|
|
4
|
+
globalScope,
|
|
5
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
6
|
|
|
5
|
-
import
|
|
7
|
+
import Nudge from '../Nudge';
|
|
8
|
+
import { action } from 'storybook/actions';
|
|
6
9
|
|
|
7
10
|
export default {
|
|
8
11
|
component: Nudge,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
3
|
import { Person, Briefcase as BriefcaseIcon } from '@transferwise/icons';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
|
+
import AvatarView from '../../AvatarView';
|
|
9
|
+
import { ProfileType } from '../../common';
|
|
10
|
+
import Logo from '../../Logo';
|
|
8
11
|
|
|
9
|
-
import OverlayHeader, { OverlayHeaderProps } from '
|
|
12
|
+
import OverlayHeader, { OverlayHeaderProps } from '..';
|
|
10
13
|
|
|
11
14
|
interface CustomControls {
|
|
12
15
|
avatarType?: keyof typeof avatarProfiles;
|
package/src/PhoneNumberInput/{PhoneNumberInput.story.tsx → _stories/PhoneNumberInput.story.tsx}
RENAMED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import {
|
|
4
|
+
createSandboxStory,
|
|
5
|
+
globalScope,
|
|
6
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
|
+
import { Field } from '../../Field/Field';
|
|
8
|
+
import PhoneNumberInput from '..';
|
|
6
9
|
|
|
7
10
|
const meta = {
|
|
8
11
|
component: PhoneNumberInput,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
2
|
+
import {
|
|
3
|
+
createSandboxStory,
|
|
4
|
+
globalScope,
|
|
5
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
|
+
import Button from '../../Button';
|
|
7
|
+
import Link from '../../Link';
|
|
8
|
+
import PocketSurface, { type PocketVariant } from '..';
|
|
7
9
|
|
|
8
10
|
const PocketCard = ({ variant }: { variant?: PocketVariant } = {}) => (
|
|
9
11
|
<div className="p-a-2 d-flex flex-column" style={{ gap: '0.75rem', maxWidth: '280px' }}>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { action } from 'storybook/actions';
|
|
2
2
|
|
|
3
|
-
import Button from '
|
|
4
|
-
import { Position } from '
|
|
3
|
+
import Button from '../../Button';
|
|
4
|
+
import { Position } from '../../common';
|
|
5
5
|
|
|
6
|
-
import Popover from '
|
|
6
|
+
import Popover from '../';
|
|
7
7
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
createSandboxStory,
|
|
10
|
+
globalScope,
|
|
11
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
9
12
|
|
|
10
13
|
type Story = StoryObj<typeof Popover>;
|
|
11
14
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { expect, userEvent, within } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import { withVariantConfig } from '
|
|
5
|
-
import { Button } from '
|
|
6
|
-
import { Position } from '
|
|
4
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
5
|
+
import { Button } from '../..';
|
|
6
|
+
import { Position } from '../../common';
|
|
7
7
|
|
|
8
|
-
import Popover, { PopoverPreferredPlacement } from '
|
|
8
|
+
import Popover, { PopoverPreferredPlacement } from '../Popover';
|
|
9
9
|
|
|
10
10
|
const meta = {
|
|
11
11
|
title: 'Dialogs/Popover/Tests',
|
package/src/ProcessIndicator/{ProcessIndicator.story.tsx → _stories/ProcessIndicator.story.tsx}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
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 { Size, Status } from '
|
|
4
|
+
import { Size, Status } from '../../common';
|
|
5
5
|
|
|
6
|
-
import ProcessIndicator from '
|
|
6
|
+
import ProcessIndicator from '../';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: ProcessIndicator,
|
|
@@ -1,7 +1,7 @@
|
|
|
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 Progress from '
|
|
4
|
+
import Progress from '../';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Progress,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { createSandboxStory, globalScope } from '
|
|
2
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
3
|
|
|
4
|
-
import ProgressBar from '
|
|
5
|
-
import Info from '
|
|
4
|
+
import ProgressBar from '../';
|
|
5
|
+
import Info from '../../Info';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
component: ProgressBar,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { StarFill } from '@transferwise/icons';
|
|
3
3
|
|
|
4
|
-
import PromoCard, { type PromoCardCheckedProps, type PromoCardLinkProps } from '
|
|
5
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
+
import PromoCard, { type PromoCardCheckedProps, type PromoCardLinkProps } from '..';
|
|
5
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof PromoCard> = {
|
|
8
8
|
component: PromoCard,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import PromoCard from '
|
|
4
|
-
import PromoCardGroup from '
|
|
5
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
+
import PromoCard from '../PromoCard';
|
|
4
|
+
import PromoCardGroup from '../PromoCardGroup';
|
|
5
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
6
|
|
|
7
7
|
const PromoCards = () => {
|
|
8
8
|
return (
|
|
@@ -2,14 +2,14 @@ import { ReactElement, useState } from 'react';
|
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { fn } from 'storybook/test';
|
|
4
4
|
import { Bank, Star, Suitcase, Briefcase } from '@transferwise/icons';
|
|
5
|
+
import { lorem10, lorem20 } from '../../../test-utils';
|
|
6
|
+
import Button from '../../../Button';
|
|
7
|
+
import Title from '../../../Title';
|
|
8
|
+
import { ActionPrompt, type ActionPromptProps } from '..';
|
|
5
9
|
import {
|
|
6
10
|
createSandboxStory,
|
|
7
11
|
globalScope,
|
|
8
|
-
} from '
|
|
9
|
-
import { lorem10, lorem20 } from '../../test-utils';
|
|
10
|
-
import Button from '../../Button';
|
|
11
|
-
import Title from '../../Title';
|
|
12
|
-
import { ActionPrompt, type ActionPromptProps } from './ActionPrompt';
|
|
12
|
+
} from '../../../../.storybook/components/sandbox/SandboxEditor';
|
|
13
13
|
|
|
14
14
|
const withComponentGrid =
|
|
15
15
|
({ maxWidth = 'auto', gap = '1rem' } = {}) =>
|
package/src/Prompt/ActionPrompt/{ActionPrompt.test.story.tsx → _stories/ActionPrompt.test.story.tsx}
RENAMED
|
@@ -2,12 +2,12 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { Freeze, People, Suitcase } from '@transferwise/icons';
|
|
3
3
|
import { action } from 'storybook/actions';
|
|
4
4
|
import { fn } from 'storybook/test';
|
|
5
|
-
import ActionPrompt from '
|
|
6
|
-
import { Body, Title } from '
|
|
5
|
+
import { ActionPrompt } from '../ActionPrompt';
|
|
6
|
+
import { Body, Title } from '../../..';
|
|
7
7
|
import { StoryObj } from '@storybook/react-webpack5';
|
|
8
|
-
import { allModes } from '
|
|
9
|
-
import { withVariantConfig } from '
|
|
10
|
-
import { lorem10 } from '
|
|
8
|
+
import { allModes } from '../../../../.storybook/modes';
|
|
9
|
+
import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
10
|
+
import { lorem10 } from '../../../test-utils';
|
|
11
11
|
|
|
12
12
|
const withComponentGrid =
|
|
13
13
|
({ gap = '1rem' } = {}) =>
|
package/src/Prompt/CriticalBanner/{CriticalBanner.story.tsx → _stories/CriticalBanner.story.tsx}
RENAMED
|
@@ -6,9 +6,9 @@ import { Bank, Briefcase, Star, Travel } from '@transferwise/icons';
|
|
|
6
6
|
import {
|
|
7
7
|
createSandboxStory,
|
|
8
8
|
globalScope,
|
|
9
|
-
} from '
|
|
10
|
-
import Button from '
|
|
11
|
-
import { CriticalBanner, type CriticalBannerProps } from '
|
|
9
|
+
} from '../../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
|
+
import Button from '../../../Button';
|
|
11
|
+
import { CriticalBanner, type CriticalBannerProps } from '..';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* **Design guidance**: <a href="https://docs.wise.design/components/critical-banner" target="_blank">wise.design/components/critical-banner</a>
|
|
@@ -2,9 +2,9 @@ import { useState } from 'react';
|
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
|
|
4
4
|
import { Bank } from '@transferwise/icons';
|
|
5
|
-
import Button from '
|
|
6
|
-
import { withVariantConfig } from '
|
|
7
|
-
import { CriticalBanner } from '
|
|
5
|
+
import Button from '../../../Button';
|
|
6
|
+
import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
7
|
+
import { CriticalBanner } from '../CriticalBanner';
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof CriticalBanner> = {
|
|
10
10
|
component: CriticalBanner,
|
|
@@ -6,12 +6,12 @@ import { Confetti, GiftBox, Star, Suitcase, Briefcase, Plane } from '@transferwi
|
|
|
6
6
|
import {
|
|
7
7
|
createSandboxStory,
|
|
8
8
|
globalScope,
|
|
9
|
-
} from '
|
|
10
|
-
import { lorem10, lorem20 } from '
|
|
11
|
-
import Button from '
|
|
12
|
-
import Title from '
|
|
13
|
-
import Link from '
|
|
14
|
-
import { InfoPrompt, InfoPromptProps, InfoPromptMedia } from '
|
|
9
|
+
} from '../../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
|
+
import { lorem10, lorem20 } from '../../../test-utils';
|
|
11
|
+
import Button from '../../../Button';
|
|
12
|
+
import Title from '../../../Title';
|
|
13
|
+
import Link from '../../../Link';
|
|
14
|
+
import { InfoPrompt, InfoPromptProps, InfoPromptMedia } from '..';
|
|
15
15
|
|
|
16
16
|
const withComponentGrid =
|
|
17
17
|
({ maxWidth = 'auto', gap = '1rem' } = {}) =>
|
package/src/Prompt/InfoPrompt/{InfoPrompt.test.story.tsx → _stories/InfoPrompt.test.story.tsx}
RENAMED
|
@@ -3,9 +3,9 @@ import { userEvent, within, expect, waitFor } from 'storybook/test';
|
|
|
3
3
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
import { action } from 'storybook/actions';
|
|
5
5
|
import { Star } from '@transferwise/icons';
|
|
6
|
-
import { InfoPrompt, type InfoPromptProps } from '
|
|
7
|
-
import { allModes } from '
|
|
8
|
-
import { withVariantConfig } from '
|
|
6
|
+
import { InfoPrompt, type InfoPromptProps } from '../InfoPrompt';
|
|
7
|
+
import { allModes } from '../../../../.storybook/modes';
|
|
8
|
+
import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
9
9
|
|
|
10
10
|
const withComponentGrid =
|
|
11
11
|
({ gap = '1rem' } = {}) =>
|
|
@@ -5,10 +5,10 @@ import { Clock, Taxi, Suitcase } from '@transferwise/icons';
|
|
|
5
5
|
import {
|
|
6
6
|
createSandboxStory,
|
|
7
7
|
globalScope,
|
|
8
|
-
} from '
|
|
9
|
-
import { lorem5 } from '
|
|
10
|
-
import Link from '
|
|
11
|
-
import { InlinePrompt, InlinePromptProps } from '
|
|
8
|
+
} from '../../../../.storybook/components/sandbox/SandboxEditor';
|
|
9
|
+
import { lorem5 } from '../../../test-utils';
|
|
10
|
+
import Link from '../../../Link';
|
|
11
|
+
import { InlinePrompt, InlinePromptProps } from '../..';
|
|
12
12
|
|
|
13
13
|
const withComponentGrid =
|
|
14
14
|
({ maxWidth = 'auto', gap = '1rem' } = {}) =>
|
package/src/Prompt/InlinePrompt/{InlinePrompt.test.story.tsx → _stories/InlinePrompt.test.story.tsx}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Suitcase } from '@transferwise/icons';
|
|
3
|
-
import { InlinePrompt } from '
|
|
4
|
-
import { withVariantConfig } from '
|
|
3
|
+
import { InlinePrompt } from '../InlinePrompt';
|
|
4
|
+
import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: 'Prompts/InlinePrompt/Tests',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import closeButtonMessages from '
|
|
4
|
+
import Provider from '..';
|
|
5
|
+
import closeButtonMessages from '../../common/CloseButton/CloseButton.messages';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
component: Provider,
|