@transferwise/components 0.0.0-experimental-5ed87ca → 0.0.0-experimental-50a2b68

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-5ed87ca",
3
+ "version": "0.0.0-experimental-50a2b68",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -92,13 +92,13 @@
92
92
  "storybook-addon-test-codegen": "^3.0.1",
93
93
  "@transferwise/less-config": "3.1.2",
94
94
  "@transferwise/neptune-css": "14.27.1",
95
- "@wise/components-theming": "0.0.0-experimental-5ed87ca",
95
+ "@wise/components-theming": "0.0.0-experimental-50a2b68",
96
96
  "@wise/wds-configs": "0.0.0"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "@transferwise/icons": "^3 || ^4",
100
100
  "@wise/art": "^2.30",
101
- "@wise/components-theming": "0.0.0-experimental-5ed87ca",
101
+ "@wise/components-theming": "0.0.0-experimental-50a2b68",
102
102
  "framer-motion": "^12.23.26",
103
103
  "react": ">=18",
104
104
  "react-dom": ">=18",
@@ -112,7 +112,7 @@
112
112
  "@react-aria/overlays": "^3.32.0",
113
113
  "@transferwise/formatting": "^2.14.1",
114
114
  "@transferwise/neptune-tokens": "^8.21.0",
115
- "@transferwise/neptune-validation": "0.0.0-experimental-5ed87ca",
115
+ "@transferwise/neptune-validation": "0.0.0-experimental-50a2b68",
116
116
  "clsx": "^2.1.1",
117
117
  "commonmark": "^0.31.2",
118
118
  "core-js": "^3.49.0",
@@ -1,85 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-webpack5';
2
-
3
- import CriticalCommsBanner from '.';
4
- import { withVariantConfig } from '../../.storybook/helpers';
5
-
6
- export default {
7
- component: CriticalCommsBanner,
8
- title: 'Prompts/CriticalCommsBanner/Tests',
9
- tags: ['!autodocs', 'deprecated'],
10
- } satisfies Meta<typeof CriticalCommsBanner>;
11
-
12
- type Story = StoryObj<typeof CriticalCommsBanner>;
13
-
14
- export const Sentiments: Story = {
15
- render: (args) => (
16
- <>
17
- <CriticalCommsBanner {...args} sentiment="negative" />
18
- <CriticalCommsBanner {...args} sentiment="warning" />
19
- <CriticalCommsBanner {...args} sentiment="neutral" />
20
- </>
21
- ),
22
- args: {
23
- subtitle: 'Add money within the next 30 days',
24
- action: { label: 'Take action', href: 'https://wise.com' },
25
- className: 'm-b-1',
26
- },
27
- ...withVariantConfig([
28
- 'default',
29
- 'dark',
30
- 'bright-green',
31
- 'forest-green',
32
- 'business',
33
- 'business--forest-green',
34
- 'business--bright-green',
35
- ]),
36
- };
37
-
38
- export const RTL: Story = {
39
- render: (args) => (
40
- <>
41
- <CriticalCommsBanner {...args} sentiment="negative" />
42
- <CriticalCommsBanner {...args} sentiment="warning" />
43
- <CriticalCommsBanner {...args} sentiment="neutral" />
44
- </>
45
- ),
46
- args: {
47
- subtitle: 'Add money within the next 30 days',
48
- action: { label: 'Take action', href: 'https://wise.com' },
49
- className: 'm-b-1',
50
- },
51
- ...withVariantConfig(['rtl']),
52
- };
53
-
54
- export const Mobile: Story = {
55
- args: {
56
- subtitle: 'Add money within the next 30 days',
57
- action: { label: 'Take action', href: 'https://wise.com' },
58
- className: 'm-b-1',
59
- },
60
- ...withVariantConfig(['mobile']),
61
- };
62
-
63
- export const Zoom: Story = {
64
- args: {
65
- subtitle: 'Add money within the next 30 days',
66
- action: { label: 'Take action', href: 'https://wise.com' },
67
- className: 'm-b-1',
68
- },
69
- ...withVariantConfig(['400%']),
70
- };
71
-
72
- export const WithoutAction: Story = {
73
- render: (args) => (
74
- <>
75
- <CriticalCommsBanner {...args} sentiment="negative" />
76
- <CriticalCommsBanner {...args} sentiment="warning" />
77
- <CriticalCommsBanner {...args} sentiment="neutral" />
78
- </>
79
- ),
80
- args: {
81
- subtitle: 'Add money within the next 30 days',
82
- className: 'm-b-1',
83
- },
84
- ...withVariantConfig(['default']),
85
- };