@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
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { FastFlag as FastFlagIcon, CardWise as CardWiseIcon } from '@transferwise/icons';
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
5
|
|
|
6
|
-
import { Scroll, Size } from '
|
|
7
|
-
import Modal from '
|
|
8
|
-
import { lorem10, lorem40 } from '
|
|
6
|
+
import { Scroll, Size } from '../../common';
|
|
7
|
+
import Modal from '../../Modal';
|
|
8
|
+
import { lorem10, lorem40 } from '../../test-utils';
|
|
9
9
|
|
|
10
|
-
import Accordion from '
|
|
11
|
-
import Button from '
|
|
10
|
+
import Accordion from '../Accordion';
|
|
11
|
+
import Button from '../../Button/Button';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Metadata for the Accordion component story.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Cog } from '@transferwise/icons';
|
|
3
3
|
|
|
4
|
-
import ActionButton from '
|
|
5
|
-
import { withVariantConfig } from '
|
|
4
|
+
import ActionButton from '../ActionButton';
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* This component is deprecated please use new [Button](?path=/docs/actions-button--docs).
|
package/src/ActionButton/{ActionButton.test.story.tsx → _stories/ActionButton.test.story.tsx}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Cog } from '@transferwise/icons';
|
|
3
|
-
import ActionButton from '
|
|
4
|
-
import { withVariantConfig } from '
|
|
3
|
+
import ActionButton from '../ActionButton';
|
|
4
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ActionButton> = {
|
|
7
7
|
component: ActionButton,
|
|
@@ -2,9 +2,9 @@ import { action } from 'storybook/actions';
|
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { FastFlag as FastFlagIcon } from '@transferwise/icons';
|
|
4
4
|
|
|
5
|
-
import { Nudge, Title, Typography } from '
|
|
5
|
+
import { Nudge, Title, Typography } from '../..';
|
|
6
6
|
|
|
7
|
-
import ActionOption from '
|
|
7
|
+
import ActionOption from '../ActionOption';
|
|
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.Button control](?path=/docs/content-listitem-listitem-button--docs)
|
|
@@ -2,12 +2,12 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { action } from 'storybook/actions';
|
|
4
4
|
import { ClockBorderless } from '@transferwise/icons';
|
|
5
|
-
import { createSandboxStory } from '
|
|
5
|
+
import { createSandboxStory } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
6
|
|
|
7
|
-
import { lorem40 } from '
|
|
8
|
-
import { Sentiment, Status } from '
|
|
9
|
-
import { Button, Field, SelectInput } from '
|
|
10
|
-
import Alert, { AlertArrowPosition, type AlertProps as FullAlertProps } from '
|
|
7
|
+
import { lorem40 } from '../../test-utils';
|
|
8
|
+
import { Sentiment, Status } from '../../common';
|
|
9
|
+
import { Button, Field, SelectInput } from '../..';
|
|
10
|
+
import Alert, { AlertArrowPosition, type AlertProps as FullAlertProps } from '../Alert';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* > **DEPRECATED** Use [InfoPrompt](?path=/docs/prompts-infoprompt--docs). Run codemod to migrate: **`npx @wise/wds-codemods@latest info-prompt`**.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { userEvent, within, expect, waitFor } from 'storybook/test';
|
|
4
|
-
import { Button, Field, SelectInput, Sentiment } from '
|
|
5
|
-
import Alert, { type AlertProps } from '
|
|
4
|
+
import { Button, Field, SelectInput, Sentiment } from '../..';
|
|
5
|
+
import Alert, { type AlertProps } from '../Alert';
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
8
|
title: 'Prompts/Alert/Tests',
|
|
@@ -2,10 +2,10 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import * as wiseIcons from '@transferwise/icons';
|
|
3
3
|
import { Flag } from '@wise/art';
|
|
4
4
|
|
|
5
|
-
import { Size } from '
|
|
5
|
+
import { Size } from '../../common';
|
|
6
6
|
|
|
7
|
-
import Avatar, { AvatarType } from '
|
|
8
|
-
import { withVariantConfig } from '
|
|
7
|
+
import Avatar, { AvatarType } from '..';
|
|
8
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated use **`AvatarView`** components instead
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-key */
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
|
-
import AvatarLayout, { AvatarLayoutProps } from '
|
|
3
|
+
import AvatarLayout, { AvatarLayoutProps } from '..';
|
|
4
4
|
import { Freeze } from '@transferwise/icons';
|
|
5
5
|
import { Flag } from '@wise/art';
|
|
6
|
-
import { createSandboxStory, globalScope } from '
|
|
7
|
-
import Body from '
|
|
8
|
-
import SentimentSurface from '
|
|
6
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
|
+
import Body from '../../Body';
|
|
8
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
title: 'Content/AvatarLayout',
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
Water,
|
|
16
16
|
Bank,
|
|
17
17
|
} from '@transferwise/icons';
|
|
18
|
-
import AvatarView, { AvatarViewProps } from '
|
|
18
|
+
import AvatarView, { AvatarViewProps } from '..';
|
|
19
19
|
import { Flag } from '@wise/art';
|
|
20
|
-
import { createSandboxStory, globalScope } from '
|
|
21
|
-
import { ProfileType } from '
|
|
22
|
-
import Body from '
|
|
23
|
-
import SentimentSurface from '
|
|
20
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
21
|
+
import { ProfileType } from '../../common';
|
|
22
|
+
import Body from '../../Body';
|
|
23
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
24
24
|
|
|
25
25
|
export default {
|
|
26
26
|
title: 'Content/AvatarView',
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
PlusCircle,
|
|
10
10
|
Rewards,
|
|
11
11
|
} from '@transferwise/icons';
|
|
12
|
-
import AvatarView from '
|
|
13
|
-
import { getBrandColorFromSeed, getInitials, ProfileType } from '
|
|
14
|
-
import Display from '
|
|
15
|
-
import { withVariantConfig } from '
|
|
12
|
+
import AvatarView from '..';
|
|
13
|
+
import { getBrandColorFromSeed, getInitials, ProfileType } from '../../common';
|
|
14
|
+
import Display from '../../Display';
|
|
15
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
16
16
|
|
|
17
17
|
const meta: Meta<typeof AvatarView> = {
|
|
18
18
|
component: AvatarView,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import { ProfileType, Sentiment, Status } from '
|
|
3
|
+
import { ProfileType, Sentiment, Status } from '../../common';
|
|
4
4
|
|
|
5
|
-
import AvatarWrapper from '
|
|
5
|
+
import AvatarWrapper from '../';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated use **`AvatarView`** components instead
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react-webpack5';
|
|
2
|
-
import { default as AvatarComponent, AvatarType } from '
|
|
3
|
-
import { Size, Theme } from '
|
|
4
|
-
import Badge, { type BadgeProps } from '
|
|
2
|
+
import { default as AvatarComponent, AvatarType } from '../../Avatar';
|
|
3
|
+
import { Size, Theme } from '../../common';
|
|
4
|
+
import Badge, { type BadgeProps } from '../';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated use **`<AvatarView badge={..} />`** components instead
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Typography } from '
|
|
2
|
-
import Title from '
|
|
1
|
+
import { Typography } from '../../common/PropsValues/typography';
|
|
2
|
+
import Title from '../../Title';
|
|
3
3
|
|
|
4
|
-
import Body from '
|
|
5
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
+
import Body from '../Body';
|
|
5
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Typography/Body',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import Button from '
|
|
5
|
-
import LegacyButton from '
|
|
4
|
+
import Button from '..';
|
|
5
|
+
import LegacyButton from '../LegacyButton';
|
|
6
6
|
|
|
7
7
|
// needed for the SB to show correct name in the Source blocks
|
|
8
8
|
LegacyButton.displayName = 'Button';
|
|
@@ -2,8 +2,8 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { userEvent, within, expect } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import Button from '
|
|
6
|
-
import LegacyButton from '
|
|
5
|
+
import Button from '..';
|
|
6
|
+
import LegacyButton from '../LegacyButton';
|
|
7
7
|
|
|
8
8
|
LegacyButton.displayName = 'Button';
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { userEvent, within } from 'storybook/test';
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import Calendar, { type CalendarProps } from '
|
|
6
|
-
import Modal from '
|
|
7
|
-
import Button from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import Calendar, { type CalendarProps } from '../Calendar';
|
|
6
|
+
import Modal from '../../Modal';
|
|
7
|
+
import Button from '../../Button';
|
|
8
8
|
|
|
9
9
|
/** Inline calendar for selecting a single date, with optional min/max bounds. */
|
|
10
10
|
export default {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Args } from '@storybook/react-webpack5';
|
|
2
2
|
import { Illustration } from '@wise/art';
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
4
|
|
|
5
|
-
import Display from '
|
|
5
|
+
import Display from '../../Display';
|
|
6
6
|
|
|
7
|
-
import Carousel, { type CarouselCard } from '
|
|
7
|
+
import Carousel, { type CarouselCard } from '../';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
component: Carousel,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import { Field } from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import { Field } from '../../Field/Field';
|
|
6
6
|
|
|
7
|
-
import Checkbox from '
|
|
8
|
-
import { withVariantConfig } from '
|
|
9
|
-
import { lorem10 } from '
|
|
7
|
+
import Checkbox from '../';
|
|
8
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
9
|
+
import { lorem10 } from '../../test-utils';
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof Checkbox> = {
|
|
12
12
|
component: Checkbox,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
|
-
import { lorem10 } from '
|
|
4
|
-
import Checkbox from '
|
|
5
|
-
import { withVariantConfig } from '
|
|
3
|
+
import { lorem10 } from '../../test-utils';
|
|
4
|
+
import Checkbox from '../Checkbox';
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Checkbox> = {
|
|
8
8
|
component: Checkbox,
|
|
@@ -2,10 +2,10 @@ import { useState, useEffect } from 'react';
|
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
|
|
5
|
-
import { storySourceWithoutNoise } from '
|
|
6
|
-
import { createSandboxStory, globalScope } from '
|
|
7
|
-
import CheckboxButton, { type CheckboxButtonProps } from '
|
|
8
|
-
import { Label } from '
|
|
5
|
+
import { storySourceWithoutNoise } from '../../../.storybook/helpers';
|
|
6
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
|
+
import CheckboxButton, { type CheckboxButtonProps } from '../CheckboxButton';
|
|
8
|
+
import { Label } from '../../Label/Label';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Use <a href="?path=/docs/forms-checkbox--docs">Checkbox</a> component instead when pairing with a label. Only use CheckboxButton when you need a standalone checkbox (e.g. settings matrix) and provide an `aria-label`.
|
package/src/CheckboxButton/{CheckboxButton.test.story.tsx → _stories/CheckboxButton.test.story.tsx}
RENAMED
|
@@ -2,8 +2,8 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { expect, userEvent, within } from 'storybook/test';
|
|
4
4
|
|
|
5
|
-
import { withVariantConfig } from '
|
|
6
|
-
import CheckboxButton from '
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
|
+
import CheckboxButton from '../CheckboxButton';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: CheckboxButton,
|
|
@@ -2,8 +2,8 @@ import { useState } from 'react';
|
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
3
|
import { Meta } from '@storybook/react-webpack5';
|
|
4
4
|
import { FastFlag } from '@transferwise/icons';
|
|
5
|
-
import { Nudge, Title, Typography } from '
|
|
6
|
-
import CheckboxOption, { type CheckboxOptionProps } from '
|
|
5
|
+
import { Nudge, Title, Typography } from '../..';
|
|
6
|
+
import CheckboxOption, { type CheckboxOptionProps } from '../';
|
|
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.Checkbox control](?path=/docs/content-listitem-listitem-checkbox--docs)
|
|
@@ -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 Chevron from '
|
|
4
|
+
import Chevron from '..';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: Chevron,
|
|
@@ -2,9 +2,12 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import Chips, { type ChipValue, type ChipsProps } from '
|
|
6
|
-
import { storySourceWithoutNoise } from '
|
|
7
|
-
import {
|
|
5
|
+
import Chips, { type ChipValue, type ChipsProps } from '..';
|
|
6
|
+
import { storySourceWithoutNoise } from '../../../.storybook/helpers';
|
|
7
|
+
import {
|
|
8
|
+
createSandboxStory,
|
|
9
|
+
globalScope,
|
|
10
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* Can be used for making a <a href="?path=/story/actions-chips--choice">choice</a>, or as a <a href="?path=/story/actions-chips--filter">filter</a> with multiple options.
|
|
@@ -2,8 +2,8 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { userEvent } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { withVariantConfig } from '
|
|
6
|
-
import Chips, { type ChipValue } from '
|
|
5
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
6
|
+
import Chips, { type ChipValue } from '../Chips';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: Chips,
|
|
@@ -2,10 +2,10 @@ import * as Icons from '@transferwise/icons';
|
|
|
2
2
|
|
|
3
3
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
import { fn } from 'storybook/test';
|
|
5
|
-
import { createSandboxStory, globalScope } from '
|
|
6
|
-
import CircularButton, { CircularButtonProps } from '
|
|
7
|
-
import Title from '
|
|
8
|
-
import SentimentSurface from '
|
|
5
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
6
|
+
import CircularButton, { CircularButtonProps } from '../CircularButton';
|
|
7
|
+
import Title from '../../Title';
|
|
8
|
+
import SentimentSurface from '../../SentimentSurface';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* An <a href="?path=/docs/actions-iconbutton--docs">IconButton</a> with a text label below it.
|
package/src/CircularButton/{CircularButton.test.story.tsx → _stories/CircularButton.test.story.tsx}
RENAMED
|
@@ -3,10 +3,10 @@ import { Freeze, Plus, Send, Convert, Card } from '@transferwise/icons';
|
|
|
3
3
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
5
5
|
import { useState } from 'react';
|
|
6
|
-
import CircularButton from '
|
|
7
|
-
import Title from '
|
|
8
|
-
import Body from '
|
|
9
|
-
import { withVariantConfig } from '
|
|
6
|
+
import CircularButton from '../CircularButton';
|
|
7
|
+
import Title from '../../Title';
|
|
8
|
+
import Body from '../../Body';
|
|
9
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
10
10
|
|
|
11
11
|
const wait = async (ms: number) =>
|
|
12
12
|
new Promise<void>((resolve) => {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import Body from '
|
|
4
|
-
import Title from '
|
|
3
|
+
import Body from '../../Body';
|
|
4
|
+
import Title from '../../Title';
|
|
5
5
|
|
|
6
|
-
import Container from '
|
|
7
|
-
import {
|
|
6
|
+
import Container from '../Container';
|
|
7
|
+
import {
|
|
8
|
+
createSandboxStory,
|
|
9
|
+
globalScope,
|
|
10
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
11
|
|
|
9
12
|
export default {
|
|
10
13
|
component: Container,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import CriticalCommsBanner from '
|
|
4
|
-
import { withVariantConfig } from '
|
|
3
|
+
import CriticalCommsBanner from '..';
|
|
4
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: CriticalCommsBanner,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
-
import { DateInput } from '
|
|
4
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
5
|
+
import { DateInput } from '../..';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof DateInput> = {
|
|
8
8
|
component: DateInput,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { userEvent, within, fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import { DateInput, Field } from '
|
|
5
|
-
import { lorem10 } from '
|
|
4
|
+
import { DateInput, Field } from '../..';
|
|
5
|
+
import { lorem10 } from '../../test-utils';
|
|
6
6
|
|
|
7
|
-
import Provider from '
|
|
8
|
-
import translations from '
|
|
9
|
-
import { withVariantConfig } from '
|
|
7
|
+
import Provider from '../../Provider';
|
|
8
|
+
import translations from '../../i18n';
|
|
9
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof DateInput> = {
|
|
12
12
|
component: DateInput,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { StoryObj } from '@storybook/react-webpack5';
|
|
3
|
-
import { createSandboxStory, globalScope } from '
|
|
4
|
-
import { Field } from '
|
|
5
|
-
import { Size } from '
|
|
6
|
-
import DateLookup, { type DateLookupProps } from '
|
|
3
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
|
+
import { Field } from '../..';
|
|
5
|
+
import { Size } from '../../common';
|
|
6
|
+
import DateLookup, { type DateLookupProps } from '..';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: DateLookup,
|
|
@@ -3,10 +3,10 @@ import { expect, userEvent, within } from 'storybook/test';
|
|
|
3
3
|
import { action } from 'storybook/actions';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
|
|
6
|
-
import DateLookup, { type DateLookupProps } from '
|
|
7
|
-
import { Size } from '
|
|
8
|
-
import { withVariantConfig } from '
|
|
9
|
-
import { Field } from '
|
|
6
|
+
import DateLookup, { type DateLookupProps } from '../DateLookup';
|
|
7
|
+
import { Size } from '../../common';
|
|
8
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
9
|
+
import { Field } from '../../Field/Field';
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
12
|
component: DateLookup,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Illustration } from '@wise/art';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
|
-
import { Size } from '
|
|
4
|
-
import AvatarView from '
|
|
5
|
-
import Decision, { DecisionPresentation, DecisionType } from '
|
|
6
|
-
import { createSandboxStory, globalScope } from '
|
|
3
|
+
import { Size } from '../../common';
|
|
4
|
+
import AvatarView from '../../AvatarView';
|
|
5
|
+
import Decision, { DecisionPresentation, DecisionType } from '..';
|
|
6
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: Decision,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { action } from 'storybook/actions';
|
|
2
2
|
|
|
3
|
-
import { Layout } from '
|
|
3
|
+
import { Layout } from '../../common';
|
|
4
4
|
|
|
5
|
-
import DefinitionList, { type DefinitionListLayout } from '
|
|
6
|
-
import { lorem10 } from '
|
|
7
|
-
import Section from '
|
|
8
|
-
import Header from '
|
|
9
|
-
import {
|
|
5
|
+
import DefinitionList, { type DefinitionListLayout } from '..';
|
|
6
|
+
import { lorem10 } from '../../test-utils';
|
|
7
|
+
import Section from '../../Section';
|
|
8
|
+
import Header from '../../Header';
|
|
9
|
+
import {
|
|
10
|
+
createSandboxStory,
|
|
11
|
+
globalScope,
|
|
12
|
+
} from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
13
|
|
|
11
14
|
export default {
|
|
12
15
|
component: DefinitionList,
|
|
@@ -2,8 +2,8 @@ import { action } from 'storybook/actions';
|
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { Button, Dimmer } from '
|
|
6
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
+
import { Button, Dimmer } from '../..';
|
|
6
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
component: Dimmer,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Typography } from '
|
|
2
|
-
import Money from '
|
|
3
|
-
import Title from '
|
|
1
|
+
import { Typography } from '../../common';
|
|
2
|
+
import Money from '../../Money/Money';
|
|
3
|
+
import Title from '../../Title/Title';
|
|
4
4
|
|
|
5
|
-
import Display from '
|
|
6
|
-
import { createSandboxStory, globalScope } from '
|
|
5
|
+
import Display from '../Display';
|
|
6
|
+
import { createSandboxStory, globalScope } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
title: 'Typography/Display',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import Divider from '
|
|
3
|
-
import { createSandboxStory } from '
|
|
2
|
+
import Divider from '../';
|
|
3
|
+
import { createSandboxStory } from '../../../.storybook/components/sandbox/SandboxEditor';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Wraps stories with a container (e.g., centered or padded).
|