@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.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/alert/Alert.story.tsx +0 -6
  3. package/src/button/_stories/Button.story.tsx +0 -5
  4. package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -1
  5. package/src/header/Header.story.tsx +0 -5
  6. package/src/inputs/SelectInput/_stories/SelectInput.story.tsx +0 -1
  7. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +1 -5
  8. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +1 -5
  9. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +1 -5
  10. package/src/listItem/Button/ListItemButton.story.tsx +1 -5
  11. package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +1 -5
  12. package/src/listItem/IconButton/ListItemIconButton.story.tsx +1 -5
  13. package/src/listItem/Image/ListItemImage.story.tsx +1 -5
  14. package/src/listItem/Navigation/ListItemNavigation.story.tsx +1 -5
  15. package/src/listItem/Prompt/ListItemPrompt.story.tsx +1 -5
  16. package/src/listItem/Radio/ListItemRadio.story.tsx +1 -5
  17. package/src/listItem/Switch/ListItemSwitch.story.tsx +1 -5
  18. package/src/listItem/_stories/ListItem.disabled.story.tsx +0 -1
  19. package/src/listItem/_stories/ListItem.scenarios.story.tsx +0 -1
  20. package/src/listItem/_stories/ListItem.story.tsx +1 -5
  21. package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +0 -5
  22. package/src/prompt/InfoPrompt/InfoPrompt.story.tsx +0 -5
  23. package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +0 -5
  24. package/src/provider/theme/ThemeProvider.story.tsx +8 -0
  25. package/src/sentimentSurface/SentimentSurface.story.tsx +0 -5
  26. package/src/tokens/tokens.story.tsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-032a077",
3
+ "version": "0.0.0-experimental-ff96697",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -42,12 +42,6 @@ export default {
42
42
  },
43
43
  },
44
44
  },
45
-
46
- parameters: {
47
- docs: {
48
- toc: true,
49
- },
50
- },
51
45
  } satisfies Meta<typeof Alert>;
52
46
 
53
47
  type Story = StoryObj<typeof Alert>;
@@ -276,11 +276,6 @@ const meta: Meta<typeof Button> = {
276
276
  },
277
277
 
278
278
  decorators: [withContainer],
279
- parameters: {
280
- docs: {
281
- toc: true,
282
- },
283
- },
284
279
  };
285
280
 
286
281
  export default meta;
@@ -55,7 +55,6 @@ export default {
55
55
  tags: ['contribution'],
56
56
  parameters: {
57
57
  docs: {
58
- toc: true,
59
58
  canvas: {
60
59
  sourceState: 'hidden',
61
60
  },
@@ -63,11 +63,6 @@ const meta: Meta<typeof Header> = {
63
63
  },
64
64
  tags: ['autodocs'],
65
65
  decorators: [withContainer],
66
- parameters: {
67
- docs: {
68
- toc: true,
69
- },
70
- },
71
66
  };
72
67
 
73
68
  export default meta;
@@ -36,7 +36,6 @@ const meta = {
36
36
  },
37
37
  },
38
38
  parameters: {
39
- docs: { toc: true },
40
39
  actions: { argTypesRegex: '' },
41
40
  },
42
41
  } satisfies Meta<typeof SelectInput>;
@@ -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
- parameters: {
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
- parameters: {
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',
@@ -54,11 +54,7 @@ const BADGES = {
54
54
  export default {
55
55
  component: ListItem.AvatarView,
56
56
  title: 'Content/ListItem/ListItem.AvatarView',
57
- parameters: {
58
- docs: {
59
- toc: true,
60
- },
61
- },
57
+
62
58
  args: {
63
59
  size: 48,
64
60
  selected: false,
@@ -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
- parameters: {
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
- parameters: {
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
- parameters: {
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
- parameters: {
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
- parameters: {
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
- parameters: {
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
- parameters: {
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
- parameters: {
16
- docs: {
17
- toc: true,
18
- },
19
- },
15
+
20
16
  args: {
21
17
  checked: false,
22
18
  onClick: fn(),
@@ -62,7 +62,6 @@ export default {
62
62
  canvas: {
63
63
  sourceState: 'hidden',
64
64
  },
65
- toc: true,
66
65
  page: () => (
67
66
  <>
68
67
  <Title>Disabled state</Title>
@@ -43,7 +43,6 @@ export default {
43
43
  },
44
44
  parameters: {
45
45
  docs: {
46
- toc: true,
47
46
  page: () => (
48
47
  <>
49
48
  <Title>Common scenarios</Title>
@@ -47,11 +47,7 @@ export default {
47
47
  'ListItem.Image': ListItem.Image,
48
48
  },
49
49
  title: 'Content/ListItem',
50
- parameters: {
51
- docs: {
52
- toc: true,
53
- },
54
- },
50
+
55
51
  args: {
56
52
  title: 'List item title',
57
53
  subtitle: 'Subtitle goes here',
@@ -82,11 +82,6 @@ const meta: Meta<typeof ActionPrompt> = {
82
82
  },
83
83
  },
84
84
  },
85
- parameters: {
86
- docs: {
87
- toc: true,
88
- },
89
- },
90
85
  };
91
86
 
92
87
  export default meta;
@@ -66,11 +66,6 @@ export default {
66
66
  },
67
67
  },
68
68
  },
69
- parameters: {
70
- docs: {
71
- toc: true,
72
- },
73
- },
74
69
  } satisfies Meta<InfoPromptProps>;
75
70
 
76
71
  /**
@@ -53,11 +53,6 @@ export default {
53
53
  },
54
54
  },
55
55
  },
56
- parameters: {
57
- docs: {
58
- toc: true,
59
- },
60
- },
61
56
  } satisfies Meta<InlinePromptProps>;
62
57
 
63
58
  /**
@@ -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>;
@@ -102,11 +102,6 @@ const meta: Meta<typeof SentimentSurface> = {
102
102
  'data-testid': undefined,
103
103
  children: 'This is a sentiment surface',
104
104
  },
105
- parameters: {
106
- docs: {
107
- toc: true,
108
- },
109
- },
110
105
  };
111
106
 
112
107
  export default meta;
@@ -7,7 +7,7 @@ import IconButton from '../iconButton';
7
7
  import Body from '../body';
8
8
 
9
9
  const meta: Meta = {
10
- title: 'Foundations/tokens',
10
+ title: 'Foundations/Tokens',
11
11
  tags: ['!autodocs', '!manifest'],
12
12
  };
13
13