@transferwise/components 0.0.0-experimental-35d73f4 → 0.0.0-experimental-b6ae643

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 (38) hide show
  1. package/build/main.css +2 -1
  2. package/build/styles/css/neptune.css +2 -1
  3. package/build/styles/main.css +2 -1
  4. package/build/styles/styles/less/neptune.css +2 -1
  5. package/package.json +4 -4
  6. package/src/alert/Alert.story.tsx +0 -6
  7. package/src/button/_stories/Button.story.tsx +0 -5
  8. package/src/checkboxButton/CheckboxButton.story.tsx +0 -1
  9. package/src/circularButton/CircularButton.story.tsx +0 -1
  10. package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -1
  11. package/src/header/Header.story.tsx +0 -5
  12. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +0 -1
  13. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +0 -5
  14. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +0 -5
  15. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +0 -5
  16. package/src/listItem/Button/ListItemButton.story.tsx +0 -5
  17. package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +0 -5
  18. package/src/listItem/IconButton/ListItemIconButton.story.tsx +0 -5
  19. package/src/listItem/Image/ListItemImage.story.tsx +0 -5
  20. package/src/listItem/Navigation/ListItemNavigation.story.tsx +0 -5
  21. package/src/listItem/Prompt/ListItemPrompt.story.tsx +1 -5
  22. package/src/listItem/Radio/ListItemRadio.story.tsx +0 -5
  23. package/src/listItem/Switch/ListItemSwitch.story.tsx +0 -5
  24. package/src/listItem/_stories/ListItem.disabled.story.tsx +0 -1
  25. package/src/listItem/_stories/ListItem.scenarios.story.tsx +0 -1
  26. package/src/listItem/_stories/ListItem.story.tsx +0 -5
  27. package/src/main.css +2 -1
  28. package/src/modal/Modal.story.tsx +0 -1
  29. package/src/popover/Popover.story.tsx +0 -1
  30. package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +0 -5
  31. package/src/prompt/InfoPrompt/InfoPrompt.story.tsx +0 -5
  32. package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +0 -5
  33. package/src/provider/theme/ThemeProvider.story.tsx +8 -0
  34. package/src/sentimentSurface/SentimentSurface.story.tsx +0 -5
  35. package/src/sticky/Sticky.story.tsx +0 -1
  36. package/src/styles/less/core/_typography.less +1 -1
  37. package/src/styles/less/neptune.css +2 -1
  38. package/src/tokens/tokens.story.tsx +1 -1
package/build/main.css CHANGED
@@ -3560,7 +3560,8 @@ a,
3560
3560
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3561
3561
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3562
3562
  */
3563
- font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
3563
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3564
+ font-family: var(--font-family-regular);
3564
3565
  }
3565
3566
 
3566
3567
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -3560,7 +3560,8 @@ a,
3560
3560
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3561
3561
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3562
3562
  */
3563
- font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
3563
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3564
+ font-family: var(--font-family-regular);
3564
3565
  }
3565
3566
 
3566
3567
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -3560,7 +3560,8 @@ a,
3560
3560
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3561
3561
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3562
3562
  */
3563
- font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
3563
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3564
+ font-family: var(--font-family-regular);
3564
3565
  }
3565
3566
 
3566
3567
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -3560,7 +3560,8 @@ a,
3560
3560
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3561
3561
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3562
3562
  */
3563
- font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
3563
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3564
+ font-family: var(--font-family-regular);
3564
3565
  }
3565
3566
 
3566
3567
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-35d73f4",
3
+ "version": "0.0.0-experimental-b6ae643",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -87,9 +87,9 @@
87
87
  "storybook-addon-tag-badges": "^3.0.6",
88
88
  "storybook-addon-test-codegen": "^3.0.1",
89
89
  "@transferwise/less-config": "3.1.2",
90
- "@transferwise/neptune-css": "0.0.0-experimental-35d73f4",
91
- "@wise/components-theming": "1.10.1",
92
- "@wise/wds-configs": "0.0.0"
90
+ "@transferwise/neptune-css": "0.0.0-experimental-b6ae643",
91
+ "@wise/wds-configs": "0.0.0",
92
+ "@wise/components-theming": "1.10.1"
93
93
  },
94
94
  "peerDependencies": {
95
95
  "@transferwise/icons": "^3 || ^4",
@@ -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;
@@ -7,7 +7,6 @@ import CheckboxButton from './CheckboxButton';
7
7
  export default {
8
8
  component: CheckboxButton,
9
9
  title: 'Actions/CheckboxButton',
10
-
11
10
  args: {
12
11
  disabled: false,
13
12
  onBlur: action('blur'),
@@ -10,7 +10,6 @@ import Body from '../body';
10
10
  export default {
11
11
  component: CircularButton,
12
12
  title: 'Actions/CircularButton',
13
-
14
13
  args: {
15
14
  children: 'Button text',
16
15
  icon: <Icons.Freeze />,
@@ -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;
@@ -16,7 +16,6 @@ const meta: Meta<typeof InputWithDisplayFormat> = {
16
16
  </Field>
17
17
  );
18
18
  },
19
-
20
19
  args: {
21
20
  onFocus: fn(),
22
21
  onBlur: fn(),
@@ -19,11 +19,6 @@ 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
- },
27
22
  args: {
28
23
  children: lorem20,
29
24
  },
@@ -13,11 +13,6 @@ 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
- },
21
16
  args: {
22
17
  avatars: [{ asset: <Flag code="gb" /> }, { asset: <Flag code="eur" /> }],
23
18
  orientation: 'horizontal',
@@ -54,11 +54,6 @@ 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
- },
62
57
  args: {
63
58
  size: 48,
64
59
  selected: false,
@@ -77,11 +77,6 @@ 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
- },
85
80
  args: {
86
81
  partiallyInteractive: false,
87
82
  priority: 'secondary-neutral',
@@ -12,11 +12,6 @@ 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
- },
20
15
  args: {
21
16
  checked: false,
22
17
  indeterminate: false,
@@ -27,11 +27,6 @@ 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
- },
35
30
  args: {
36
31
  partiallyInteractive: false,
37
32
  priority: undefined,
@@ -12,11 +12,6 @@ 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
- },
20
15
  args: {
21
16
  size: 48,
22
17
  loading: undefined,
@@ -13,11 +13,6 @@ 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
- },
21
16
  args: {
22
17
  href: 'https://wise.com',
23
18
  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,6 @@ 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
- },
21
16
  args: {
22
17
  name: 'radio-group',
23
18
  value: 'option1',
@@ -12,11 +12,6 @@ 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
- },
20
15
  args: {
21
16
  checked: false,
22
17
  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,6 @@ export default {
47
47
  'ListItem.Image': ListItem.Image,
48
48
  },
49
49
  title: 'Content/ListItem',
50
- parameters: {
51
- docs: {
52
- toc: true,
53
- },
54
- },
55
50
  args: {
56
51
  title: 'List item title',
57
52
  subtitle: 'Subtitle goes here',
package/src/main.css CHANGED
@@ -3560,7 +3560,8 @@ a,
3560
3560
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3561
3561
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3562
3562
  */
3563
- font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
3563
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3564
+ font-family: var(--font-family-regular);
3564
3565
  }
3565
3566
 
3566
3567
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -10,7 +10,6 @@ import { lorem10, lorem100, lorem1000 } from '../test-utils';
10
10
  export default {
11
11
  component: Modal,
12
12
  title: 'Dialogs/Modal',
13
-
14
13
  args: {
15
14
  size: 'md',
16
15
  position: 'center',
@@ -26,7 +26,6 @@ const Content = () => (
26
26
  export default {
27
27
  component: Popover,
28
28
  title: 'Dialogs/Popover',
29
-
30
29
  args: {
31
30
  preferredPlacement: Position.BOTTOM,
32
31
  title: 'Guaranteed rate',
@@ -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;
@@ -6,7 +6,6 @@ import { allModes } from '../../.storybook/modes';
6
6
  const meta: Meta<typeof Sticky> = {
7
7
  component: Sticky,
8
8
  title: 'Dialogs/Sticky',
9
-
10
9
  args: {
11
10
  open: true,
12
11
  position: 'bottom', // Default position
@@ -218,7 +218,7 @@ a,
218
218
  * font files are browser-cached and we carried over to launchpad, where it causes issues
219
219
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
220
220
  */
221
- font-family: Inter, system-ui, sans-serif;
221
+ font-family: var(--font-family-regular);
222
222
  }
223
223
  }
224
224
 
@@ -3560,7 +3560,8 @@ a,
3560
3560
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3561
3561
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3562
3562
  */
3563
- font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
3563
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3564
+ font-family: var(--font-family-regular);
3564
3565
  }
3565
3566
 
3566
3567
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -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