@transferwise/components 0.0.0-experimental-975c35d → 0.0.0-experimental-acbc541

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 CHANGED
@@ -29148,7 +29148,7 @@ button.np-option {
29148
29148
  .np-flow-navigation__content {
29149
29149
  width: 100%;
29150
29150
  min-width: 320px;
29151
- max-width: 1164px;
29151
+ max-width: calc(100% - 36px);
29152
29152
  }
29153
29153
 
29154
29154
  .np-flow-navigation__stepper {
@@ -10,7 +10,7 @@
10
10
  .np-flow-navigation__content {
11
11
  width: 100%;
12
12
  min-width: 320px;
13
- max-width: 1164px;
13
+ max-width: calc(100% - 36px);
14
14
  }
15
15
  .np-flow-navigation__stepper {
16
16
  padding-bottom: 0 !important;
@@ -29148,7 +29148,7 @@ button.np-option {
29148
29148
  .np-flow-navigation__content {
29149
29149
  width: 100%;
29150
29150
  min-width: 320px;
29151
- max-width: 1164px;
29151
+ max-width: calc(100% - 36px);
29152
29152
  }
29153
29153
 
29154
29154
  .np-flow-navigation__stepper {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-975c35d",
3
+ "version": "0.0.0-experimental-acbc541",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -87,7 +87,7 @@
87
87
  "storybook-addon-tag-badges": "^3.1.0",
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-975c35d",
90
+ "@transferwise/neptune-css": "0.0.0-experimental-acbc541",
91
91
  "@wise/components-theming": "1.10.1",
92
92
  "@wise/wds-configs": "0.0.0"
93
93
  },
@@ -0,0 +1,85 @@
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
+ };
@@ -10,7 +10,7 @@
10
10
  .np-flow-navigation__content {
11
11
  width: 100%;
12
12
  min-width: 320px;
13
- max-width: 1164px;
13
+ max-width: calc(100% - 36px);
14
14
  }
15
15
  .np-flow-navigation__stepper {
16
16
  padding-bottom: 0 !important;
@@ -14,7 +14,7 @@
14
14
  &__content {
15
15
  width: 100%;
16
16
  min-width: 320px;
17
- max-width: 1164px;
17
+ max-width: calc(100% - 36px);
18
18
  }
19
19
 
20
20
  &__stepper {
@@ -309,6 +309,9 @@ export const WithOverlayHeaderComparison: Story = {
309
309
  done: false,
310
310
  avatarURL: '../tapestry-01.png',
311
311
  },
312
+ parameters: {
313
+ padding: '0',
314
+ },
312
315
  render: (args) => {
313
316
  const [activeStep, setActiveStep] = useState(4);
314
317
  const [closed, setClosed] = useState(false);
package/src/main.css CHANGED
@@ -29148,7 +29148,7 @@ button.np-option {
29148
29148
  .np-flow-navigation__content {
29149
29149
  width: 100%;
29150
29150
  min-width: 320px;
29151
- max-width: 1164px;
29151
+ max-width: calc(100% - 36px);
29152
29152
  }
29153
29153
 
29154
29154
  .np-flow-navigation__stepper {