@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.
- package/build/main.css +2 -1
- package/build/styles/css/neptune.css +2 -1
- package/build/styles/main.css +2 -1
- package/build/styles/styles/less/neptune.css +2 -1
- package/package.json +4 -4
- package/src/alert/Alert.story.tsx +0 -6
- package/src/button/_stories/Button.story.tsx +0 -5
- package/src/checkboxButton/CheckboxButton.story.tsx +0 -1
- package/src/circularButton/CircularButton.story.tsx +0 -1
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -1
- package/src/header/Header.story.tsx +0 -5
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +0 -1
- package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +0 -5
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +0 -5
- package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +0 -5
- package/src/listItem/Button/ListItemButton.story.tsx +0 -5
- package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +0 -5
- package/src/listItem/IconButton/ListItemIconButton.story.tsx +0 -5
- package/src/listItem/Image/ListItemImage.story.tsx +0 -5
- package/src/listItem/Navigation/ListItemNavigation.story.tsx +0 -5
- package/src/listItem/Prompt/ListItemPrompt.story.tsx +1 -5
- package/src/listItem/Radio/ListItemRadio.story.tsx +0 -5
- package/src/listItem/Switch/ListItemSwitch.story.tsx +0 -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 +0 -5
- package/src/main.css +2 -1
- package/src/modal/Modal.story.tsx +0 -1
- package/src/popover/Popover.story.tsx +0 -1
- 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/sticky/Sticky.story.tsx +0 -1
- package/src/styles/less/core/_typography.less +1 -1
- package/src/styles/less/neptune.css +2 -1
- 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,
|
|
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,
|
|
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/build/styles/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,
|
|
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,
|
|
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-
|
|
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-
|
|
91
|
-
"@wise/
|
|
92
|
-
"@wise/
|
|
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",
|
|
@@ -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',
|
|
@@ -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
|
-
|
|
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(),
|
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,
|
|
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 */
|
|
@@ -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>;
|
|
@@ -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:
|
|
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,
|
|
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 */
|