@transferwise/components 0.0.0-experimental-aa84e4b → 0.0.0-experimental-f64dd5e
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/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.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/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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { Position, Priority } from '
|
|
3
|
-
import { Section, Button, Input, Modal, type DrawerProps, Body } from '
|
|
4
|
-
import Drawer from '
|
|
5
|
-
import { lorem10, lorem20, lorem40, lorem5 } from '
|
|
6
|
-
import { createSandboxStory, globalScope } from '
|
|
2
|
+
import { Position, Priority } from '../../common';
|
|
3
|
+
import { Section, Button, Input, Modal, type DrawerProps, Body } from '../..';
|
|
4
|
+
import Drawer from '..';
|
|
5
|
+
import { lorem10, lorem20, lorem40, lorem5 } from '../../test-utils';
|
|
6
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: Drawer,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { action } from 'storybook/actions';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import { Button, Nudge } from '
|
|
5
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
+
import { Button, Nudge } from '../..';
|
|
5
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
6
|
|
|
7
|
-
import DropFade from '
|
|
7
|
+
import DropFade from '../DropFade';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
title: 'Dialogs/DropFade',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import Emphasis from '
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
+
import Emphasis from '../Emphasis';
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Emphasis,
|
|
@@ -3,19 +3,22 @@ import { Meta, StoryObj, Decorator } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { fn } from 'storybook/test';
|
|
4
4
|
import { Flag } from '@wise/art';
|
|
5
5
|
import { Rewards, Tags } from '@transferwise/icons';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
import
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
|
+
import { storySourceWithoutNoise } from '../../../.storybook/helpers';
|
|
11
|
+
import { lorem10, lorem5 } from '../../test-utils';
|
|
12
|
+
import { Sentiment } from '../../common';
|
|
13
|
+
import Link from '../../Link';
|
|
14
|
+
import Money from '../../Money';
|
|
12
15
|
import React from 'react';
|
|
13
|
-
import Button from '
|
|
14
|
-
import Modal from '
|
|
15
|
-
import ListItem from '
|
|
16
|
-
import List from '
|
|
17
|
-
import ExpressiveMoneyInput, {
|
|
18
|
-
import type { Props as CurrencySelectorProps } from '
|
|
16
|
+
import Button from '../../Button';
|
|
17
|
+
import Modal from '../../Modal';
|
|
18
|
+
import ListItem from '../../ListItem';
|
|
19
|
+
import List from '../../List';
|
|
20
|
+
import ExpressiveMoneyInput, { type ExpressiveMoneyInputProps } from '..';
|
|
21
|
+
import type { Props as CurrencySelectorProps } from '../CurrencySelector/CurrencySelector';
|
|
19
22
|
|
|
20
23
|
const getCurrencySelectorProps = ({
|
|
21
24
|
logEvents = false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
|
-
import ExpressiveMoneyInput, { Props as ExpressiveMoneyInputProps } from '
|
|
3
|
+
import ExpressiveMoneyInput, { Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof ExpressiveMoneyInput> = {
|
|
6
6
|
component: ExpressiveMoneyInput,
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
|
+
import { Input } from '../../Inputs/Input';
|
|
9
|
+
import { Field, FieldProps } from '../..';
|
|
10
|
+
import { Sentiment } from '../../common';
|
|
11
|
+
import DateInput from '../../DateInput';
|
|
12
|
+
import { lorem10, lorem40 } from '../../test-utils';
|
|
13
|
+
import { TextArea } from '../../Inputs/TextArea';
|
|
14
|
+
import { SearchInput } from '../../Inputs/SearchInput';
|
|
15
|
+
import Info from '../../Info';
|
|
13
16
|
|
|
14
17
|
export default {
|
|
15
18
|
component: Field,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
|
-
import { Input } from '
|
|
4
|
-
import { Field, FieldProps } from '
|
|
5
|
-
import { Sentiment } from '
|
|
3
|
+
import { Input } from '../../Inputs/Input';
|
|
4
|
+
import { Field, FieldProps } from '../Field';
|
|
5
|
+
import { Sentiment } from '../../common';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Field> = {
|
|
8
8
|
component: Field,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Breakpoint } from '@transferwise/neptune-tokens';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import AvatarView from '
|
|
6
|
-
import Body from '
|
|
7
|
-
import Button from '
|
|
8
|
-
import { ProfileType, Typography } from '
|
|
9
|
-
import Logo from '
|
|
10
|
-
import OverlayHeader from '
|
|
11
|
-
import { lorem10 } from '
|
|
12
|
-
import Display from '
|
|
13
|
-
import Sticky from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import AvatarView from '../../AvatarView';
|
|
6
|
+
import Body from '../../Body';
|
|
7
|
+
import Button from '../../Button';
|
|
8
|
+
import { ProfileType, Typography } from '../../common';
|
|
9
|
+
import Logo from '../../Logo';
|
|
10
|
+
import OverlayHeader from '../../OverlayHeader';
|
|
11
|
+
import { lorem10 } from '../../test-utils';
|
|
12
|
+
import Display from '../../Display';
|
|
13
|
+
import Sticky from '../../Sticky';
|
|
14
14
|
|
|
15
|
-
import FlowNavigation, { FlowNavigationProps } from '
|
|
16
|
-
import Container from '
|
|
15
|
+
import FlowNavigation, { FlowNavigationProps } from '..';
|
|
16
|
+
import Container from '../../Container';
|
|
17
17
|
|
|
18
18
|
interface CustomControls {
|
|
19
19
|
showCloseButton: boolean;
|
package/src/FlowNavigation/{FlowNavigation.test.story.tsx → _stories/FlowNavigation.test.story.tsx}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import AvatarView from '
|
|
3
|
-
import { ProfileType } from '
|
|
4
|
-
import Logo from '
|
|
5
|
-
import { allModes } from '
|
|
2
|
+
import AvatarView from '../../AvatarView';
|
|
3
|
+
import { ProfileType } from '../../common';
|
|
4
|
+
import Logo from '../../Logo';
|
|
5
|
+
import { allModes } from '../../../.storybook/modes';
|
|
6
6
|
|
|
7
|
-
import FlowNavigation, { FlowNavigationProps } from '
|
|
7
|
+
import FlowNavigation, { FlowNavigationProps } from '../FlowNavigation';
|
|
8
8
|
|
|
9
9
|
const noop = () => {};
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import Header, { HeaderProps } from '
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
2
|
+
import Header, { HeaderProps } from '../';
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
4
|
|
|
5
5
|
const withContainer = (Story: any) => (
|
|
6
6
|
<div style={{ display: 'flex', justifyContent: 'center' }}>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import Header, { type HeaderProps } from '
|
|
3
|
-
import { withVariantConfig } from '
|
|
2
|
+
import Header, { type HeaderProps } from '../Header';
|
|
3
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Header> = {
|
|
6
6
|
component: Header,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
Freeze,
|
|
14
14
|
} from '@transferwise/icons';
|
|
15
15
|
import { fn } from 'storybook/test';
|
|
16
|
-
import { createSandboxStory, globalScope } from '
|
|
17
|
-
import IconButton, { Props } from '
|
|
18
|
-
import SentimentSurface from '
|
|
16
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
17
|
+
import IconButton, { Props } from '../IconButton';
|
|
18
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* **Design guidance**: <a href="https://docs.wise.design/components/icon-button" target="_blank">wise.design/components/icon-button</a>
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
Freeze,
|
|
13
13
|
} from '@transferwise/icons';
|
|
14
14
|
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
15
|
-
import IconButton from '
|
|
16
|
-
import { withVariantConfig } from '
|
|
17
|
-
import SentimentSurface from '
|
|
15
|
+
import IconButton from '../IconButton';
|
|
16
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
17
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
18
18
|
|
|
19
19
|
const wait = async (ms: number) =>
|
|
20
20
|
new Promise<void>((resolve) => {
|
|
@@ -4,10 +4,10 @@ import * as AllIcons from '@transferwise/icons';
|
|
|
4
4
|
import iconsPkg from '@transferwise/icons/package.json';
|
|
5
5
|
import { ThemeProvider } from '@wise/components-theming';
|
|
6
6
|
|
|
7
|
-
import Chips, { type ChipValue } from '
|
|
8
|
-
import { SearchInput } from '
|
|
9
|
-
import SnackbarProvider from '
|
|
10
|
-
import useSnackbar from '
|
|
7
|
+
import Chips, { type ChipValue } from '../../Chips/Chips';
|
|
8
|
+
import { SearchInput } from '../../Inputs/SearchInput';
|
|
9
|
+
import SnackbarProvider from '../../Snackbar/SnackbarProvider';
|
|
10
|
+
import useSnackbar from '../../Snackbar/useSnackbar';
|
|
11
11
|
|
|
12
12
|
const ICONS_VERSION: string = iconsPkg.version;
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { action } from 'storybook/actions';
|
|
2
|
-
import { createSandboxStory } from '
|
|
3
|
-
import Image, { type ImageProps } from '
|
|
2
|
+
import { createSandboxStory } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
|
+
import Image, { type ImageProps } from '../Image';
|
|
4
4
|
|
|
5
5
|
const meta = {
|
|
6
6
|
component: Image,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
-
import { lorem10 } from '
|
|
4
|
-
import Info from '
|
|
5
|
-
import { withVariantConfig } from '
|
|
2
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
|
+
import { lorem10 } from '../../test-utils';
|
|
4
|
+
import Info from '..';
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
8
|
component: Info,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { userEvent, within } from 'storybook/test';
|
|
3
|
-
import { lorem10 } from '
|
|
4
|
-
import Info, { InfoPresentation } from '
|
|
5
|
-
import { withVariantConfig } from '
|
|
3
|
+
import { lorem10 } from '../../test-utils';
|
|
4
|
+
import Info, { InfoPresentation } from '..';
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Info> = {
|
|
8
8
|
component: Info,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import InlineAlert, { InlineAlertProps } from '
|
|
4
|
-
import { lorem10, lorem40 } from '
|
|
5
|
-
import Link from '
|
|
3
|
+
import InlineAlert, { InlineAlertProps } from '../';
|
|
4
|
+
import { lorem10, lorem40 } from '../../test-utils';
|
|
5
|
+
import Link from '../../Link';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* > **DEPRECATED** Use [InlinePrompt](?path=/docs/prompts-inlineprompt--docs) or [Field](?path=/docs/forms-field--docs) instead.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
createSandboxStory,
|
|
3
|
+
globalScope,
|
|
4
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import InputWithDisplayFormat, { InputWithDisplayFormatProps } from '..';
|
|
6
|
+
import { Field, FieldProps } from '../../Field/Field';
|
|
6
7
|
import { Meta, type StoryObj } from '@storybook/react-webpack5';
|
|
8
|
+
import { fn } from 'storybook/test';
|
|
7
9
|
|
|
8
10
|
type Story = StoryObj<InputWithDisplayFormatProps & { label: string }>;
|
|
9
11
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { userEvent, within } from 'storybook/test';
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
|
|
4
|
-
import InputWithDisplayFormat, { InputWithDisplayFormatProps } from '
|
|
5
|
-
import { Field, FieldProps } from '
|
|
4
|
+
import InputWithDisplayFormat, { InputWithDisplayFormatProps } from '..';
|
|
5
|
+
import { Field, FieldProps } from '../../Field/Field';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof InputWithDisplayFormat> = {
|
|
8
8
|
title: 'Forms/InputWithDisplayFormat/Tests',
|
|
@@ -2,15 +2,18 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { Search } from '@transferwise/icons';
|
|
3
3
|
import { useRef, useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import {
|
|
6
|
+
createSandboxStory,
|
|
7
|
+
globalScope,
|
|
8
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
9
|
+
import { Field } from '../../Field/Field';
|
|
8
10
|
|
|
9
|
-
import { Input } from '
|
|
11
|
+
import { Input } from '../Input';
|
|
10
12
|
import { Flag } from '@wise/art';
|
|
11
|
-
import { InputGroup } from '
|
|
12
|
-
import AvatarView from '
|
|
13
|
-
import PhoneNumberInput from '
|
|
13
|
+
import { InputGroup } from '../InputGroup';
|
|
14
|
+
import AvatarView from '../../AvatarView';
|
|
15
|
+
import PhoneNumberInput from '../../PhoneNumberInput';
|
|
16
|
+
import Button from '../../Button';
|
|
14
17
|
|
|
15
18
|
export default {
|
|
16
19
|
component: InputGroup,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import { Size } from '
|
|
6
|
-
import { Field } from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import { Size } from '../../common';
|
|
6
|
+
import { Field } from '../../Field/Field';
|
|
7
7
|
|
|
8
|
-
import { SearchInput } from '
|
|
8
|
+
import { SearchInput } from '../SearchInput';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
component: SearchInput,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
|
+
import { Field } from '../../Field/Field';
|
|
9
|
+
import { Sentiment } from '../../common';
|
|
10
|
+
import { TextArea } from '../..';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* TextArea must be the only input with `maxLength` inside a given Field.
|
|
@@ -2,8 +2,8 @@ import { useState } from 'react';
|
|
|
2
2
|
import { userEvent, within } from 'storybook/test';
|
|
3
3
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
|
|
5
|
-
import { Field } from '
|
|
6
|
-
import { TextArea } from '
|
|
5
|
+
import { Field } from '../../Field/Field';
|
|
6
|
+
import { TextArea } from '../TextArea';
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof TextArea> = {
|
|
9
9
|
title: 'Forms/TextArea/Tests',
|
package/src/InstructionsList/{InstructionsList.story.tsx → _stories/InstructionsList.story.tsx}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import
|
|
2
|
+
import Link from '../../Link';
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import InstructionsList from '../InstructionsList';
|
|
5
|
+
import {
|
|
6
|
+
createSandboxStory,
|
|
7
|
+
globalScope,
|
|
8
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
9
|
|
|
9
10
|
export default {
|
|
10
11
|
component: InstructionsList,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createSandboxStory, globalScope } from '
|
|
2
|
-
import Info from '
|
|
3
|
-
import { Label } from '
|
|
1
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
2
|
+
import Info from '../../Info';
|
|
3
|
+
import { Label } from '..';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
component: Label,
|
|
@@ -2,11 +2,11 @@ import { action } from 'storybook/actions';
|
|
|
2
2
|
import { Documents, FastFlag } from '@transferwise/icons';
|
|
3
3
|
import { ComponentProps } from 'react';
|
|
4
4
|
|
|
5
|
-
import { Button, IconButton, List } from '
|
|
6
|
-
import AvatarView from '
|
|
7
|
-
import Info from '
|
|
8
|
-
import Title from '
|
|
9
|
-
import LegacyListItem from '
|
|
5
|
+
import { Button, IconButton, List } from '../..';
|
|
6
|
+
import AvatarView from '../../AvatarView';
|
|
7
|
+
import Info from '../../Info';
|
|
8
|
+
import Title from '../../Title/Title';
|
|
9
|
+
import LegacyListItem from '..';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* > ⚠️ This component is **deprecated** and superseded by the [new ListItem component](?path=/docs/content-listitem--docs)
|
package/src/LegacyListItem/{LegacyListItem.test.story.tsx → _stories/LegacyListItem.test.story.tsx}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FastFlag } from '@transferwise/icons';
|
|
2
|
-
import Button from '
|
|
3
|
-
import AvatarView from '
|
|
4
|
-
import LegacyListItem, { type LegacyListItemProps } from '
|
|
5
|
-
import List from '
|
|
2
|
+
import Button from '../../Button';
|
|
3
|
+
import AvatarView from '../../AvatarView';
|
|
4
|
+
import LegacyListItem, { type LegacyListItemProps } from '..';
|
|
5
|
+
import List from '../../List';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
component: LegacyListItem,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Body from '
|
|
2
|
-
import { Typography } from '
|
|
3
|
-
import Title from '
|
|
1
|
+
import Body from '../../Body/Body';
|
|
2
|
+
import { Typography } from '../../common';
|
|
3
|
+
import Title from '../../Title/Title';
|
|
4
4
|
|
|
5
|
-
import SentimentSurface from '
|
|
6
|
-
import Link from '
|
|
7
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
6
|
+
import Link from '..';
|
|
7
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
component: Link,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
-
import ListItem from '
|
|
4
|
-
import List from '
|
|
2
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
3
|
+
import ListItem from '../../ListItem';
|
|
4
|
+
import List from '../';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: List,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { ListItem } from '../ListItem';
|
|
3
|
+
import { lorem20 } from '../../../test-utils';
|
|
4
|
+
import List from '../../../List';
|
|
5
|
+
import { ListItem } from '../../..';
|
|
7
6
|
import {
|
|
8
7
|
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
9
8
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
10
|
-
} from '
|
|
11
|
-
import { disableControls } from '
|
|
12
|
-
import type { ListItemAdditionalInfoProps } from '
|
|
9
|
+
} from '../../_stories/subcomponents';
|
|
10
|
+
import { disableControls } from '../../_stories/helpers';
|
|
11
|
+
import type { ListItemAdditionalInfoProps } from '..';
|
|
12
|
+
import { action } from 'storybook/actions';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Use additional information to add extra details that help make the information clearer for users. Use additional information only after you've used the subtitle.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Flag } from '@wise/art';
|
|
3
|
-
import { lorem10 } from '
|
|
4
|
-
import { ListItem } from '
|
|
5
|
-
import List from '
|
|
3
|
+
import { lorem10 } from '../../../test-utils';
|
|
4
|
+
import { ListItem } from '../../..';
|
|
5
|
+
import List from '../../../List';
|
|
6
6
|
import {
|
|
7
7
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
8
8
|
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
9
|
-
} from '
|
|
10
|
-
import { disableControls } from '
|
|
11
|
-
import type { ListItemAvatarLayoutProps } from '
|
|
9
|
+
} from '../../_stories/subcomponents';
|
|
10
|
+
import { disableControls } from '../../_stories/helpers';
|
|
11
|
+
import type { ListItemAvatarLayoutProps } from '..';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
14
|
component: ListItem.AvatarLayout,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Leaf, Taxi } from '@transferwise/icons';
|
|
3
|
-
import { lorem10 } from '
|
|
4
|
-
import { ProfileType } from '
|
|
5
|
-
import List from '
|
|
6
|
-
import { ListItem } from '
|
|
3
|
+
import { lorem10 } from '../../../test-utils';
|
|
4
|
+
import { ProfileType } from '../../../common';
|
|
5
|
+
import List from '../../../List';
|
|
6
|
+
import { ListItem } from '../../ListItem';
|
|
7
7
|
import {
|
|
8
8
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
9
9
|
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
10
|
-
} from '
|
|
11
|
-
import { disableControls } from '
|
|
12
|
-
import type { ListItemAvatarViewProps } from '
|
|
10
|
+
} from '../../_stories/subcomponents';
|
|
11
|
+
import { disableControls } from '../../_stories/helpers';
|
|
12
|
+
import type { ListItemAvatarViewProps } from '../ListItemAvatarView';
|
|
13
13
|
|
|
14
14
|
const hideControls = disableControls(['badge', 'children']);
|
|
15
15
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
import { Freeze, ArrowRight } from '@transferwise/icons';
|
|
4
|
-
import List from '
|
|
5
|
-
import { ListItem } from '
|
|
4
|
+
import List from '../../../List';
|
|
5
|
+
import { ListItem } from '../../..';
|
|
6
6
|
import {
|
|
7
7
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
8
8
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
9
|
-
} from '
|
|
10
|
-
import { disableControls } from '
|
|
11
|
-
import type { ListItemButtonProps } from '
|
|
9
|
+
} from '../../_stories/subcomponents';
|
|
10
|
+
import { disableControls } from '../../_stories/helpers';
|
|
11
|
+
import type { ListItemButtonProps } from '..';
|
|
12
12
|
|
|
13
13
|
const hideControls = disableControls([
|
|
14
14
|
'onClick',
|
package/src/ListItem/Checkbox/{ListItemCheckbox.story.tsx → _stories/ListItemCheckbox.story.tsx}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import List from '
|
|
4
|
-
import { ListItem } from '
|
|
3
|
+
import List from '../../../List';
|
|
4
|
+
import { ListItem } from '../../..';
|
|
5
5
|
import {
|
|
6
6
|
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
7
7
|
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
8
|
-
} from '
|
|
9
|
-
import type { ListItemCheckboxProps } from '
|
|
8
|
+
} from '../../_stories/subcomponents';
|
|
9
|
+
import type { ListItemCheckboxProps } from '..';
|
|
10
10
|
import { fn } from 'storybook/test';
|
|
11
11
|
|
|
12
12
|
const meta: Meta<ListItemCheckboxProps> = {
|