@transferwise/components 0.0.0-experimental-032a077 → 0.0.0-experimental-ff96697
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/alert/Alert.story.tsx +0 -6
- package/src/button/_stories/Button.story.tsx +0 -5
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -1
- package/src/header/Header.story.tsx +0 -5
- package/src/inputs/SelectInput/_stories/SelectInput.story.tsx +0 -1
- package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +1 -5
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +1 -5
- package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +1 -5
- package/src/listItem/Button/ListItemButton.story.tsx +1 -5
- package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +1 -5
- package/src/listItem/IconButton/ListItemIconButton.story.tsx +1 -5
- package/src/listItem/Image/ListItemImage.story.tsx +1 -5
- package/src/listItem/Navigation/ListItemNavigation.story.tsx +1 -5
- package/src/listItem/Prompt/ListItemPrompt.story.tsx +1 -5
- package/src/listItem/Radio/ListItemRadio.story.tsx +1 -5
- package/src/listItem/Switch/ListItemSwitch.story.tsx +1 -5
- package/src/listItem/_stories/ListItem.disabled.story.tsx +0 -1
- package/src/listItem/_stories/ListItem.scenarios.story.tsx +0 -1
- package/src/listItem/_stories/ListItem.story.tsx +1 -5
- package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +0 -5
- package/src/prompt/InfoPrompt/InfoPrompt.story.tsx +0 -5
- package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +0 -5
- package/src/provider/theme/ThemeProvider.story.tsx +8 -0
- package/src/sentimentSurface/SentimentSurface.story.tsx +0 -5
- package/src/tokens/tokens.story.tsx +1 -1
package/package.json
CHANGED
|
@@ -19,11 +19,7 @@ import type { ListItemAdditionalInfoProps } from './ListItemAdditionalInfo';
|
|
|
19
19
|
export default {
|
|
20
20
|
component: ListItem.AdditionalInfo,
|
|
21
21
|
title: 'Content/ListItem/ListItem.AdditionalInfo',
|
|
22
|
-
|
|
23
|
-
docs: {
|
|
24
|
-
toc: true,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
22
|
+
|
|
27
23
|
args: {
|
|
28
24
|
children: lorem20,
|
|
29
25
|
},
|
|
@@ -13,11 +13,7 @@ import type { ListItemAvatarLayoutProps } from './ListItemAvatarLayout';
|
|
|
13
13
|
export default {
|
|
14
14
|
component: ListItem.AvatarLayout,
|
|
15
15
|
title: 'Content/ListItem/ListItem.AvatarLayout',
|
|
16
|
-
|
|
17
|
-
docs: {
|
|
18
|
-
toc: true,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
16
|
+
|
|
21
17
|
args: {
|
|
22
18
|
avatars: [{ asset: <Flag code="gb" /> }, { asset: <Flag code="eur" /> }],
|
|
23
19
|
orientation: 'horizontal',
|
|
@@ -77,11 +77,7 @@ const getPropsForPreview = (args: PreviewStoryArgs) => {
|
|
|
77
77
|
const meta: Meta<typeof ListItem.Button> = {
|
|
78
78
|
component: ListItem.Button,
|
|
79
79
|
title: 'Content/ListItem/ListItem.Button',
|
|
80
|
-
|
|
81
|
-
docs: {
|
|
82
|
-
toc: true,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
80
|
+
|
|
85
81
|
args: {
|
|
86
82
|
partiallyInteractive: false,
|
|
87
83
|
priority: 'secondary-neutral',
|
|
@@ -12,11 +12,7 @@ import { fn } from 'storybook/test';
|
|
|
12
12
|
const meta: Meta<ListItemCheckboxProps> = {
|
|
13
13
|
component: ListItem.Checkbox,
|
|
14
14
|
title: 'Content/ListItem/ListItem.Checkbox',
|
|
15
|
-
|
|
16
|
-
docs: {
|
|
17
|
-
toc: true,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
15
|
+
|
|
20
16
|
args: {
|
|
21
17
|
checked: false,
|
|
22
18
|
indeterminate: false,
|
|
@@ -27,11 +27,7 @@ const hideControls = disableControls([
|
|
|
27
27
|
const meta: Meta<ListItemIconButtonProps> = {
|
|
28
28
|
component: ListItem.IconButton,
|
|
29
29
|
title: 'Content/ListItem/ListItem.IconButton',
|
|
30
|
-
|
|
31
|
-
docs: {
|
|
32
|
-
toc: true,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
30
|
+
|
|
35
31
|
args: {
|
|
36
32
|
partiallyInteractive: false,
|
|
37
33
|
priority: undefined,
|
|
@@ -12,11 +12,7 @@ import type { ListItemImageProps } from './ListItemImage';
|
|
|
12
12
|
export default {
|
|
13
13
|
component: ListItem.Image,
|
|
14
14
|
title: 'Content/ListItem/ListItem.Image',
|
|
15
|
-
|
|
16
|
-
docs: {
|
|
17
|
-
toc: true,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
15
|
+
|
|
20
16
|
args: {
|
|
21
17
|
size: 48,
|
|
22
18
|
loading: undefined,
|
|
@@ -13,11 +13,7 @@ import type { ListItemNavigationProps } from './ListItemNavigation';
|
|
|
13
13
|
const meta: Meta<ListItemNavigationProps> = {
|
|
14
14
|
component: ListItem.Navigation,
|
|
15
15
|
title: 'Content/ListItem/ListItem.Navigation',
|
|
16
|
-
|
|
17
|
-
docs: {
|
|
18
|
-
toc: true,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
16
|
+
|
|
21
17
|
args: {
|
|
22
18
|
href: 'https://wise.com',
|
|
23
19
|
onClick: fn(),
|
|
@@ -16,11 +16,7 @@ import { Clock } from '@transferwise/icons';
|
|
|
16
16
|
const meta: Meta<ListItemPromptProps> = {
|
|
17
17
|
component: Prompt,
|
|
18
18
|
title: 'Content/ListItem/ListItem.Prompt',
|
|
19
|
-
|
|
20
|
-
docs: {
|
|
21
|
-
toc: true,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
19
|
+
|
|
24
20
|
decorators: [withoutKey],
|
|
25
21
|
args: {
|
|
26
22
|
sentiment: undefined,
|
|
@@ -13,11 +13,7 @@ import { ProfileType } from '../../common';
|
|
|
13
13
|
const meta: Meta<ListItemRadioProps> = {
|
|
14
14
|
component: ListItem.Radio,
|
|
15
15
|
title: 'Content/ListItem/ListItem.Radio',
|
|
16
|
-
|
|
17
|
-
docs: {
|
|
18
|
-
toc: true,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
16
|
+
|
|
21
17
|
args: {
|
|
22
18
|
name: 'radio-group',
|
|
23
19
|
value: 'option1',
|
|
@@ -12,11 +12,7 @@ import type { ListItemSwitchProps } from './ListItemSwitch';
|
|
|
12
12
|
const meta: Meta<ListItemSwitchProps> = {
|
|
13
13
|
component: ListItem.Switch,
|
|
14
14
|
title: 'Content/ListItem/ListItem.Switch',
|
|
15
|
-
|
|
16
|
-
docs: {
|
|
17
|
-
toc: true,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
15
|
+
|
|
20
16
|
args: {
|
|
21
17
|
checked: false,
|
|
22
18
|
onClick: fn(),
|
|
@@ -24,6 +24,14 @@ export default {
|
|
|
24
24
|
component: ThemeProvider,
|
|
25
25
|
title: 'Foundations/ThemeProvider',
|
|
26
26
|
tags: ['!manifest'],
|
|
27
|
+
parameters: {
|
|
28
|
+
docs: {
|
|
29
|
+
description: {
|
|
30
|
+
component:
|
|
31
|
+
'Components require `ThemeProvider` from `@wise/components-theming` to be wrapped around your application for theming support. Available themes include: `personal`, `business`, `platform`, and variants with different color schemes.',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
27
35
|
} satisfies Meta<typeof ThemeProvider>;
|
|
28
36
|
|
|
29
37
|
type Story = StoryObj<typeof ThemeProvider>;
|