@transferwise/components 0.0.0-experimental-cc11279 → 0.0.0-experimental-5bcac43
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-5bcac43",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@testing-library/react-hooks": "^8.0.0",
|
|
68
68
|
"@testing-library/user-event": "^13.2.1",
|
|
69
69
|
"@transferwise/icons": "^3.7.0",
|
|
70
|
-
"@transferwise/neptune-tokens": "^8.
|
|
70
|
+
"@transferwise/neptune-tokens": "^8.9.0",
|
|
71
71
|
"@tsconfig/recommended": "^1.0.2",
|
|
72
72
|
"@types/babel__core": "^7.20.1",
|
|
73
73
|
"@types/commonmark": "^0.27.9",
|
|
@@ -95,14 +95,14 @@
|
|
|
95
95
|
"rollup": "^3.28.1",
|
|
96
96
|
"storybook": "^7.6.17",
|
|
97
97
|
"@transferwise/less-config": "3.1.0",
|
|
98
|
-
"@transferwise/neptune-css": "
|
|
99
|
-
"@wise/components-theming": "
|
|
98
|
+
"@transferwise/neptune-css": "0.0.0-experimental-5bcac43",
|
|
99
|
+
"@wise/components-theming": "0.0.0-experimental-5bcac43"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"@transferwise/icons": "^3.7.0",
|
|
103
|
-
"@transferwise/neptune-css": "
|
|
103
|
+
"@transferwise/neptune-css": "0.0.0-experimental-5bcac43",
|
|
104
104
|
"@wise/art": "^2.7.0",
|
|
105
|
-
"@wise/components-theming": "
|
|
105
|
+
"@wise/components-theming": "0.0.0-experimental-5bcac43",
|
|
106
106
|
"react": ">=16.14",
|
|
107
107
|
"react-dom": ">=16.14",
|
|
108
108
|
"react-intl": "^5.10.0 || ^6"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ThemeProvider } from '@wise/components-theming';
|
|
3
|
+
|
|
4
|
+
import Button from '../../button';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: ThemeProvider,
|
|
8
|
+
title: 'Other/ThemeProvider',
|
|
9
|
+
} satisfies Meta<typeof ThemeProvider>;
|
|
10
|
+
|
|
11
|
+
type Story = StoryObj<typeof ThemeProvider>;
|
|
12
|
+
|
|
13
|
+
export const PlatformTheme: Story = {
|
|
14
|
+
render: () => (
|
|
15
|
+
<>
|
|
16
|
+
<ThemeProvider theme="platform">
|
|
17
|
+
<Button>Button</Button>
|
|
18
|
+
</ThemeProvider>
|
|
19
|
+
</>
|
|
20
|
+
),
|
|
21
|
+
};
|