@transferwise/components 0.0.0-experimental-6d53d3c → 0.0.0-experimental-7a8cfdb
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 +35 -13
- package/build/prompt/CriticalBanner/CriticalBanner.js +1 -1
- package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -1
- package/build/prompt/CriticalBanner/CriticalBanner.mjs +1 -1
- package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -1
- package/build/styles/css/neptune.css +11 -11
- package/build/styles/less/legacy-variables.less +1 -1
- package/build/styles/less/neptune-tokens.less +2 -2
- package/build/styles/main.css +35 -13
- package/build/styles/prompt/CriticalBanner/CriticalBanner.css +21 -1
- package/build/styles/props/custom-media.css +1 -1
- package/build/styles/props/neptune-tokens.css +1 -1
- package/build/styles/sentimentSurface/SentimentSurface.css +1 -1
- package/build/styles/styles/less/neptune.css +11 -11
- package/package.json +6 -6
- package/src/body/Body.story.tsx +5 -1
- package/src/calendar/Calendar.story.tsx +4 -1
- package/src/checkbox/Checkbox.story.tsx +4 -1
- package/src/chevron/Chevron.story.tsx +1 -1
- package/src/container/Container.story.tsx +4 -1
- package/src/dateInput/DateInput.story.tsx +4 -1
- package/src/dateLookup/DateLookup.story.tsx +4 -1
- package/src/decision/Decision.story.tsx +4 -1
- package/src/definitionList/DefinitionList.story.tsx +4 -1
- package/src/dimmer/Dimmer.story.tsx +5 -1
- package/src/display/Display.story.tsx +4 -1
- package/src/emphasis/Emphasis.story.tsx +5 -1
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +4 -1
- package/src/field/Field.story.tsx +4 -1
- package/src/header/Header.story.tsx +4 -1
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +4 -1
- package/src/inputs/InputGroup.story.tsx +4 -1
- package/src/inputs/SearchInput.story.tsx +4 -1
- package/src/inputs/TextArea.story.tsx +4 -1
- package/src/instructionsList/InstructionsList.story.tsx +4 -1
- package/src/label/Label.story.tsx +4 -1
- package/src/link/Link.story.tsx +4 -1
- package/src/loader/Loader.story.tsx +1 -1
- package/src/main.css +35 -13
- package/src/markdown/Markdown.story.tsx +5 -1
- package/src/money/Money.story.tsx +1 -0
- package/src/moneyInput/MoneyInput.story.tsx +4 -1
- package/src/phoneNumberInput/PhoneNumberInput.story.tsx +4 -1
- package/src/promoCard/PromoCard.story.tsx +4 -1
- package/src/promoCard/PromoCardGroup.story.tsx +4 -1
- package/src/prompt/CriticalBanner/CriticalBanner.css +21 -1
- package/src/prompt/CriticalBanner/CriticalBanner.less +34 -15
- package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +1 -1
- package/src/prompt/CriticalBanner/CriticalBanner.test.story.tsx +58 -0
- package/src/prompt/CriticalBanner/CriticalBanner.tsx +1 -1
- package/src/radio/Radio.story.tsx +4 -1
- package/src/radioGroup/RadioGroup.story.tsx +4 -1
- package/src/segmentedControl/SegmentedControl.story.tsx +4 -1
- package/src/sentimentSurface/SentimentSurface.css +1 -1
- package/src/statusIcon/StatusIcon.story.tsx +1 -1
- package/src/styles/less/neptune.css +11 -11
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.story.tsx +4 -1
- package/src/title/Title.story.tsx +5 -1
- package/src/typeahead/Typeahead.story.tsx +4 -1
- package/src/upload/Upload.story.tsx +4 -1
- package/src/uploadInput/UploadInput.story.tsx +4 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 27 May 2026 15:50:09 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Do not edit directly, this file was auto-generated.
|
|
147
|
-
* Generated on
|
|
147
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
148
148
|
*/
|
|
149
149
|
|
|
150
150
|
.np-theme-personal {
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
330
|
* Do not edit directly, this file was auto-generated.
|
|
331
|
-
* Generated on
|
|
331
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
332
332
|
*/
|
|
333
333
|
|
|
334
334
|
.np-theme-personal--forest-green {
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* Do not edit directly, this file was auto-generated.
|
|
515
|
-
* Generated on
|
|
515
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
516
516
|
*/
|
|
517
517
|
|
|
518
518
|
.np-theme-personal--bright-green {
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
|
|
697
697
|
/**
|
|
698
698
|
* Do not edit directly, this file was auto-generated.
|
|
699
|
-
* Generated on
|
|
699
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
700
700
|
*/
|
|
701
701
|
|
|
702
702
|
.np-theme-personal--dark {
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Do not edit directly, this file was auto-generated.
|
|
883
|
-
* Generated on
|
|
883
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
884
884
|
*/
|
|
885
885
|
|
|
886
886
|
.np-theme-platform {
|
|
@@ -1064,7 +1064,7 @@
|
|
|
1064
1064
|
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Do not edit directly, this file was auto-generated.
|
|
1067
|
-
* Generated on
|
|
1067
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1068
1068
|
*/
|
|
1069
1069
|
|
|
1070
1070
|
.np-theme-platform--forest-green {
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Do not edit directly, this file was auto-generated.
|
|
1251
|
-
* Generated on
|
|
1251
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1252
1252
|
*/
|
|
1253
1253
|
|
|
1254
1254
|
.np-theme-business {
|
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Do not edit directly, this file was auto-generated.
|
|
1436
|
-
* Generated on
|
|
1436
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1437
1437
|
*/
|
|
1438
1438
|
|
|
1439
1439
|
.np-theme-business--dark {
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Do not edit directly, this file was auto-generated.
|
|
1621
|
-
* Generated on
|
|
1621
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1622
1622
|
*/
|
|
1623
1623
|
|
|
1624
1624
|
.np-theme-business--forest-green {
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Do not edit directly, this file was auto-generated.
|
|
1806
|
-
* Generated on
|
|
1806
|
+
* Generated on Wed, 27 May 2026 15:50:11 GMT
|
|
1807
1807
|
*/
|
|
1808
1808
|
|
|
1809
1809
|
.np-theme-business--bright-green {
|
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-7a8cfdb",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"monaco-editor-webpack-plugin": "^7.1.1",
|
|
76
76
|
"@wise/art": "^2.31.1",
|
|
77
77
|
"@wise/eslint-config": "^14.2.1",
|
|
78
|
-
"babel-plugin-formatjs": "^
|
|
78
|
+
"babel-plugin-formatjs": "^10.5.41",
|
|
79
79
|
"eslint": "^9.39.4",
|
|
80
80
|
"eslint-plugin-storybook": "^10.4.2",
|
|
81
81
|
"gulp": "^5.0.1",
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
"storybook-addon-tag-badges": "^3.1.0",
|
|
93
93
|
"storybook-addon-test-codegen": "^3.0.1",
|
|
94
94
|
"@transferwise/less-config": "3.1.2",
|
|
95
|
-
"@wise/components-theming": "
|
|
95
|
+
"@wise/components-theming": "1.10.2",
|
|
96
96
|
"@wise/wds-configs": "0.0.0"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@transferwise/icons": "^3 || ^4",
|
|
100
|
-
"@wise/art": "^2.
|
|
101
|
-
"@wise/components-theming": "
|
|
100
|
+
"@wise/art": "^2.30.3",
|
|
101
|
+
"@wise/components-theming": "^1.10.1",
|
|
102
102
|
"framer-motion": "^12.23.26",
|
|
103
103
|
"react": ">=18",
|
|
104
104
|
"react-dom": ">=18",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@react-aria/focus": "^3.22.1",
|
|
112
112
|
"@react-aria/overlays": "^3.32.1",
|
|
113
113
|
"@transferwise/formatting": "^2.14.1",
|
|
114
|
-
"@transferwise/neptune-tokens": "^8.24.
|
|
114
|
+
"@transferwise/neptune-tokens": "^8.24.0",
|
|
115
115
|
"@transferwise/neptune-validation": "^3.3.4",
|
|
116
116
|
"clsx": "^2.1.1",
|
|
117
117
|
"commonmark": "^0.31.2",
|
package/src/body/Body.story.tsx
CHANGED
|
@@ -2,7 +2,10 @@ import { Typography } from '../common/propsValues/typography';
|
|
|
2
2
|
import Title from '../title';
|
|
3
3
|
|
|
4
4
|
import Body from './Body';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
createSandboxStory,
|
|
7
|
+
globalScope,
|
|
8
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
6
9
|
|
|
7
10
|
export default {
|
|
8
11
|
title: 'Typography/Body',
|
|
@@ -134,3 +137,4 @@ export const Basic = () => {
|
|
|
134
137
|
</>
|
|
135
138
|
);
|
|
136
139
|
};
|
|
140
|
+
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { userEvent, within } from 'storybook/test';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
import Calendar, { type CalendarProps } from './Calendar';
|
|
6
9
|
import Modal from '../modal';
|
|
7
10
|
import Button from '../button';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
import { Field } from '../field/Field';
|
|
6
9
|
|
|
7
10
|
import Checkbox from './Checkbox';
|
|
@@ -4,7 +4,10 @@ import Body from '../body';
|
|
|
4
4
|
import Title from '../title';
|
|
5
5
|
|
|
6
6
|
import Container from './Container';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
createSandboxStory,
|
|
9
|
+
globalScope,
|
|
10
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
8
11
|
|
|
9
12
|
export default {
|
|
10
13
|
component: Container,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { fn } from 'storybook/test';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
import { DateInput } from '..';
|
|
6
9
|
|
|
7
10
|
const meta: Meta<typeof DateInput> = {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { StoryObj } from '@storybook/react-webpack5';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
createSandboxStory,
|
|
5
|
+
globalScope,
|
|
6
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
4
7
|
import { Field } from '..';
|
|
5
8
|
import { Size } from '../common';
|
|
6
9
|
import DateLookup, { type DateLookupProps } from './DateLookup';
|
|
@@ -3,7 +3,10 @@ import { fn } from 'storybook/test';
|
|
|
3
3
|
import { Size } from '../common';
|
|
4
4
|
import AvatarView from '../avatarView';
|
|
5
5
|
import Decision, { DecisionPresentation, DecisionType } from '.';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
component: Decision,
|
|
@@ -6,7 +6,10 @@ import DefinitionList, { type DefinitionListLayout } from './DefinitionList';
|
|
|
6
6
|
import { lorem10 } from '../test-utils';
|
|
7
7
|
import Section from '../section';
|
|
8
8
|
import Header from '../header';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
createSandboxStory,
|
|
11
|
+
globalScope,
|
|
12
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
10
13
|
|
|
11
14
|
export default {
|
|
12
15
|
component: DefinitionList,
|
|
@@ -3,7 +3,10 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
5
|
import { Button, Dimmer } from '..';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
component: Dimmer,
|
|
@@ -57,3 +60,4 @@ export const Basic: Story = {
|
|
|
57
60
|
);
|
|
58
61
|
},
|
|
59
62
|
};
|
|
63
|
+
|
|
@@ -3,7 +3,10 @@ import Money from '../money/Money';
|
|
|
3
3
|
import Title from '../title/Title';
|
|
4
4
|
|
|
5
5
|
import Display from './Display';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
title: 'Typography/Display',
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
3
|
import Emphasis from './Emphasis';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
|
|
6
9
|
export default {
|
|
7
10
|
component: Emphasis,
|
|
@@ -25,3 +28,4 @@ export const Basic: Story = {
|
|
|
25
28
|
'<script>alert("nice try!")</script>',
|
|
26
29
|
},
|
|
27
30
|
};
|
|
31
|
+
|
|
@@ -3,7 +3,10 @@ import { Meta, StoryObj, Decorator } from '@storybook/react-webpack5';
|
|
|
3
3
|
import { fn } from 'storybook/test';
|
|
4
4
|
import { Flag } from '@wise/art';
|
|
5
5
|
import { Rewards, Tags } from '@transferwise/icons';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
7
10
|
import { storySourceWithoutNoise } from '../../.storybook/helpers';
|
|
8
11
|
import { lorem10, lorem5 } from '../test-utils';
|
|
9
12
|
import { Sentiment } from '../common';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
import { Input } from '../inputs/Input';
|
|
6
9
|
import { Field, FieldProps } from './Field';
|
|
7
10
|
import { Sentiment } from '../common';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import Header, { HeaderProps } from './Header';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
createSandboxStory,
|
|
5
|
+
globalScope,
|
|
6
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
4
7
|
|
|
5
8
|
const withContainer = (Story: any) => (
|
|
6
9
|
<div style={{ display: 'flex', justifyContent: 'center' }}>
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { userEvent, within, fn } from 'storybook/test';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
createSandboxStory,
|
|
5
|
+
globalScope,
|
|
6
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
4
7
|
import InputWithDisplayFormat, { InputWithDisplayFormatProps } from '.';
|
|
5
8
|
import { Field, FieldProps } from '../field/Field';
|
|
6
9
|
import { Meta, type StoryObj } from '@storybook/react-webpack5';
|
|
@@ -2,7 +2,10 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { Search } from '@transferwise/icons';
|
|
3
3
|
import { useRef, useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
createSandboxStory,
|
|
7
|
+
globalScope,
|
|
8
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
6
9
|
import { Button } from '..';
|
|
7
10
|
import { Field } from '../field/Field';
|
|
8
11
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
import { Size } from '../common';
|
|
6
9
|
import { Field } from '../field/Field';
|
|
7
10
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
import { Field } from '../field/Field';
|
|
6
9
|
import { Sentiment } from '../common';
|
|
7
10
|
import { TextArea } from './TextArea';
|
|
@@ -4,7 +4,10 @@ import { fn } from 'storybook/test';
|
|
|
4
4
|
import Link from '../link';
|
|
5
5
|
|
|
6
6
|
import InstructionsList, { InstructionsListProps } from './InstructionsList';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
createSandboxStory,
|
|
9
|
+
globalScope,
|
|
10
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
8
11
|
|
|
9
12
|
export default {
|
|
10
13
|
component: InstructionsList,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
createSandboxStory,
|
|
3
|
+
globalScope,
|
|
4
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
2
5
|
import Info from '../info';
|
|
3
6
|
import { Label } from './Label';
|
|
4
7
|
|
package/src/link/Link.story.tsx
CHANGED
|
@@ -4,7 +4,10 @@ import Title from '../title/Title';
|
|
|
4
4
|
|
|
5
5
|
import SentimentSurface from '../sentimentSurface';
|
|
6
6
|
import Link from '.';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
createSandboxStory,
|
|
9
|
+
globalScope,
|
|
10
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
8
11
|
|
|
9
12
|
export default {
|
|
10
13
|
component: Link,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { createSandboxStory }
|
|
2
|
+
import { createSandboxStory } from '../../.storybook/components/sandbox/SandboxEditor';
|
|
3
3
|
|
|
4
4
|
import Loader from './Loader';
|
|
5
5
|
|
package/src/main.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 27 May 2026 15:50:09 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Do not edit directly, this file was auto-generated.
|
|
147
|
-
* Generated on
|
|
147
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
148
148
|
*/
|
|
149
149
|
|
|
150
150
|
.np-theme-personal {
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
330
|
* Do not edit directly, this file was auto-generated.
|
|
331
|
-
* Generated on
|
|
331
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
332
332
|
*/
|
|
333
333
|
|
|
334
334
|
.np-theme-personal--forest-green {
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* Do not edit directly, this file was auto-generated.
|
|
515
|
-
* Generated on
|
|
515
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
516
516
|
*/
|
|
517
517
|
|
|
518
518
|
.np-theme-personal--bright-green {
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
|
|
697
697
|
/**
|
|
698
698
|
* Do not edit directly, this file was auto-generated.
|
|
699
|
-
* Generated on
|
|
699
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
700
700
|
*/
|
|
701
701
|
|
|
702
702
|
.np-theme-personal--dark {
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Do not edit directly, this file was auto-generated.
|
|
883
|
-
* Generated on
|
|
883
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
884
884
|
*/
|
|
885
885
|
|
|
886
886
|
.np-theme-platform {
|
|
@@ -1064,7 +1064,7 @@
|
|
|
1064
1064
|
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Do not edit directly, this file was auto-generated.
|
|
1067
|
-
* Generated on
|
|
1067
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1068
1068
|
*/
|
|
1069
1069
|
|
|
1070
1070
|
.np-theme-platform--forest-green {
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Do not edit directly, this file was auto-generated.
|
|
1251
|
-
* Generated on
|
|
1251
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1252
1252
|
*/
|
|
1253
1253
|
|
|
1254
1254
|
.np-theme-business {
|
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Do not edit directly, this file was auto-generated.
|
|
1436
|
-
* Generated on
|
|
1436
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1437
1437
|
*/
|
|
1438
1438
|
|
|
1439
1439
|
.np-theme-business--dark {
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Do not edit directly, this file was auto-generated.
|
|
1621
|
-
* Generated on
|
|
1621
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1622
1622
|
*/
|
|
1623
1623
|
|
|
1624
1624
|
.np-theme-business--forest-green {
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Do not edit directly, this file was auto-generated.
|
|
1806
|
-
* Generated on
|
|
1806
|
+
* Generated on Wed, 27 May 2026 15:50:11 GMT
|
|
1807
1807
|
*/
|
|
1808
1808
|
|
|
1809
1809
|
.np-theme-business--bright-green {
|
|
@@ -1990,7 +1990,7 @@
|
|
|
1990
1990
|
|
|
1991
1991
|
/**
|
|
1992
1992
|
* Do not edit directly, this file was auto-generated.
|
|
1993
|
-
* Generated on
|
|
1993
|
+
* Generated on Wed, 27 May 2026 15:50:11 GMT
|
|
1994
1994
|
*/
|
|
1995
1995
|
|
|
1996
1996
|
.wds-sentiment-negative-light-base {
|
|
@@ -31955,6 +31955,9 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
31955
31955
|
--Prompt-actions-gap: var(--size-8);
|
|
31956
31956
|
--Prompt-gap: var(--size-10) var(--size-16);
|
|
31957
31957
|
--Prompt-border-radius: 0;
|
|
31958
|
+
--wds-critical-banner-background-base: transparent;
|
|
31959
|
+
--wds-critical-banner-background-surface: var(--color-sentiment-background-surface);
|
|
31960
|
+
--wds-critical-banner-background: linear-gradient(var(--wds-critical-banner-background-surface), var(--wds-critical-banner-background-surface)), var(--wds-critical-banner-background-base);
|
|
31958
31961
|
container-type: inline-size;
|
|
31959
31962
|
position: relative;
|
|
31960
31963
|
--critical-banner-easing: cubic-bezier(0.9, 0, 0.7, 1);
|
|
@@ -31963,6 +31966,14 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
31963
31966
|
actions only go full-width below mobile-max token (container query) */
|
|
31964
31967
|
}
|
|
31965
31968
|
|
|
31969
|
+
.wds-critical-banner.wds-prompt--neutral {
|
|
31970
|
+
--wds-critical-banner-background-base: var(--color-background-elevated);
|
|
31971
|
+
}
|
|
31972
|
+
|
|
31973
|
+
.wds-critical-banner.wds-prompt--neutral.wds-sentiment-surface--hasBaseStyles {
|
|
31974
|
+
background: var(--wds-critical-banner-background);
|
|
31975
|
+
}
|
|
31976
|
+
|
|
31966
31977
|
.wds-critical-banner--media-image {
|
|
31967
31978
|
width: 48px;
|
|
31968
31979
|
width: var(--size-48);
|
|
@@ -32113,6 +32124,15 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
32113
32124
|
@container critical-banner-overhang (max-width: 600px) {
|
|
32114
32125
|
.wds-critical-banner__entry-mask {
|
|
32115
32126
|
--critical-banner-mobile-overhang-size: 32px;
|
|
32127
|
+
--wds-critical-banner-overhang-mask: radial-gradient(circle at 100% 100%, transparent var(--critical-banner-mobile-overhang-size), #000 var(--critical-banner-mobile-overhang-size)) 0 0 / var(--critical-banner-mobile-overhang-size)
|
|
32128
|
+
var(--critical-banner-mobile-overhang-size) no-repeat,
|
|
32129
|
+
radial-gradient(
|
|
32130
|
+
circle at 0% 100%,
|
|
32131
|
+
transparent var(--critical-banner-mobile-overhang-size),
|
|
32132
|
+
#000 var(--critical-banner-mobile-overhang-size)
|
|
32133
|
+
)
|
|
32134
|
+
100% 0 / var(--critical-banner-mobile-overhang-size)
|
|
32135
|
+
var(--critical-banner-mobile-overhang-size) no-repeat;
|
|
32116
32136
|
}
|
|
32117
32137
|
.wds-critical-banner__entry-mask .wds-critical-banner-overhang {
|
|
32118
32138
|
margin-bottom: var(--critical-banner-mobile-overhang-size);
|
|
@@ -32125,7 +32145,9 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
32125
32145
|
left: 0;
|
|
32126
32146
|
height: var(--critical-banner-mobile-overhang-size);
|
|
32127
32147
|
pointer-events: none;
|
|
32128
|
-
background:
|
|
32148
|
+
background: var(--wds-critical-banner-background);
|
|
32149
|
+
-webkit-mask: var(--wds-critical-banner-overhang-mask);
|
|
32150
|
+
mask: var(--wds-critical-banner-overhang-mask);
|
|
32129
32151
|
}
|
|
32130
32152
|
}
|
|
32131
32153
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
3
|
import Markdown from './Markdown';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createSandboxStory,
|
|
6
|
+
globalScope,
|
|
7
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
5
8
|
|
|
6
9
|
export default {
|
|
7
10
|
component: Markdown,
|
|
@@ -31,3 +34,4 @@ export const Basic: Story = {
|
|
|
31
34
|
- sublist`,
|
|
32
35
|
},
|
|
33
36
|
};
|
|
37
|
+
|
|
@@ -3,7 +3,10 @@ import { within, userEvent, expect } from 'storybook/test';
|
|
|
3
3
|
import { Padlock } from '@transferwise/icons';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
createSandboxStory,
|
|
8
|
+
globalScope,
|
|
9
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
7
10
|
import MoneyInput, { CurrencyOptionItem } from '.';
|
|
8
11
|
import { Field } from '../field/Field';
|
|
9
12
|
import translations from '../i18n/en.json';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
createSandboxStory,
|
|
5
|
+
globalScope,
|
|
6
|
+
} from '../../.storybook/components/sandbox/SandboxEditor';
|
|
4
7
|
import { Field } from '../field/Field';
|
|
5
8
|
import PhoneNumberInput from './PhoneNumberInput';
|
|
6
9
|
|