@transferwise/components 46.148.0 → 46.149.0

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.
Files changed (104) hide show
  1. package/build/container/Container.js.map +1 -1
  2. package/build/container/Container.mjs.map +1 -1
  3. package/build/flowNavigation/FlowNavigation.js +56 -42
  4. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  5. package/build/flowNavigation/FlowNavigation.mjs +56 -42
  6. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  7. package/build/main.css +41 -20
  8. package/build/overlayHeader/OverlayHeader.js +3 -0
  9. package/build/overlayHeader/OverlayHeader.js.map +1 -1
  10. package/build/overlayHeader/OverlayHeader.mjs +3 -0
  11. package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
  12. package/build/prompt/CriticalBanner/CriticalBanner.js +4 -1
  13. package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -1
  14. package/build/prompt/CriticalBanner/CriticalBanner.mjs +4 -1
  15. package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -1
  16. package/build/prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
  17. package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
  18. package/build/styles/css/neptune.css +11 -11
  19. package/build/styles/flowNavigation/FlowNavigation.css +16 -2
  20. package/build/styles/less/legacy-variables.less +1 -1
  21. package/build/styles/less/neptune-tokens.less +2 -2
  22. package/build/styles/main.css +41 -20
  23. package/build/styles/prompt/ActionPrompt/ActionPrompt.css +2 -1
  24. package/build/styles/prompt/CriticalBanner/CriticalBanner.css +2 -1
  25. package/build/styles/prompt/InfoPrompt/InfoPrompt.css +2 -1
  26. package/build/styles/prompt/InlinePrompt/InlinePrompt.css +2 -1
  27. package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +2 -2
  28. package/build/styles/props/custom-media.css +1 -1
  29. package/build/styles/props/neptune-tokens.css +1 -1
  30. package/build/styles/sentimentSurface/SentimentSurface.css +1 -1
  31. package/build/styles/styles/less/neptune.css +11 -11
  32. package/build/types/container/Container.d.ts +2 -2
  33. package/build/types/container/Container.d.ts.map +1 -1
  34. package/build/types/flowNavigation/FlowNavigation.d.ts +15 -3
  35. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
  36. package/build/types/iconButton/IconButton.d.ts +1 -1
  37. package/build/types/overlayHeader/OverlayHeader.d.ts +6 -0
  38. package/build/types/overlayHeader/OverlayHeader.d.ts.map +1 -1
  39. package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts.map +1 -1
  40. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts +1 -1
  41. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -1
  42. package/package.json +15 -15
  43. package/src/body/Body.story.tsx +1 -5
  44. package/src/calendar/Calendar.story.tsx +1 -4
  45. package/src/checkbox/Checkbox.story.tsx +1 -4
  46. package/src/chevron/Chevron.story.tsx +1 -1
  47. package/src/container/Container.story.tsx +1 -4
  48. package/src/container/Container.tsx +2 -2
  49. package/src/dateInput/DateInput.story.tsx +1 -4
  50. package/src/dateLookup/DateLookup.story.tsx +1 -4
  51. package/src/decision/Decision.story.tsx +1 -4
  52. package/src/definitionList/DefinitionList.story.tsx +1 -4
  53. package/src/dimmer/Dimmer.story.tsx +1 -5
  54. package/src/display/Display.story.tsx +1 -4
  55. package/src/emphasis/Emphasis.story.tsx +1 -5
  56. package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +1 -4
  57. package/src/field/Field.story.tsx +1 -4
  58. package/src/flowNavigation/FlowNavigation.css +16 -2
  59. package/src/flowNavigation/FlowNavigation.less +20 -4
  60. package/src/flowNavigation/FlowNavigation.story.tsx +249 -0
  61. package/src/flowNavigation/FlowNavigation.tsx +91 -58
  62. package/src/header/Header.story.tsx +1 -4
  63. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +1 -4
  64. package/src/inputs/InputGroup.story.tsx +1 -4
  65. package/src/inputs/SearchInput.story.tsx +1 -4
  66. package/src/inputs/TextArea.story.tsx +1 -4
  67. package/src/instructionsList/InstructionsList.story.tsx +1 -4
  68. package/src/label/Label.story.tsx +1 -4
  69. package/src/link/Link.story.tsx +1 -4
  70. package/src/loader/Loader.story.tsx +1 -1
  71. package/src/main.css +41 -20
  72. package/src/markdown/Markdown.story.tsx +1 -5
  73. package/src/money/Money.story.tsx +0 -1
  74. package/src/moneyInput/MoneyInput.story.tsx +1 -4
  75. package/src/overlayHeader/OverlayHeader.story.tsx +4 -0
  76. package/src/overlayHeader/OverlayHeader.tsx +6 -0
  77. package/src/phoneNumberInput/PhoneNumberInput.story.tsx +1 -4
  78. package/src/promoCard/PromoCard.story.tsx +1 -4
  79. package/src/promoCard/PromoCardGroup.story.tsx +1 -4
  80. package/src/prompt/ActionPrompt/ActionPrompt.css +2 -1
  81. package/src/prompt/ActionPrompt/ActionPrompt.less +2 -1
  82. package/src/prompt/CriticalBanner/CriticalBanner.css +2 -1
  83. package/src/prompt/CriticalBanner/CriticalBanner.less +2 -1
  84. package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +1 -1
  85. package/src/prompt/CriticalBanner/CriticalBanner.tsx +6 -3
  86. package/src/prompt/InfoPrompt/InfoPrompt.css +2 -1
  87. package/src/prompt/InfoPrompt/InfoPrompt.less +2 -1
  88. package/src/prompt/InlinePrompt/InlinePrompt.css +2 -1
  89. package/src/prompt/InlinePrompt/InlinePrompt.less +2 -1
  90. package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +2 -2
  91. package/src/prompt/PrimitivePrompt/PrimitivePrompt.less +1 -1
  92. package/src/prompt/PrimitivePrompt/PrimitivePrompt.tsx +1 -1
  93. package/src/radio/Radio.story.tsx +1 -4
  94. package/src/radioGroup/RadioGroup.story.tsx +1 -4
  95. package/src/segmentedControl/SegmentedControl.story.tsx +1 -4
  96. package/src/sentimentSurface/SentimentSurface.css +1 -1
  97. package/src/statusIcon/StatusIcon.story.tsx +1 -1
  98. package/src/styles/less/neptune.css +11 -11
  99. package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.story.tsx +1 -4
  100. package/src/title/Title.story.tsx +1 -5
  101. package/src/typeahead/Typeahead.story.tsx +1 -4
  102. package/src/upload/Upload.story.tsx +1 -4
  103. package/src/uploadInput/UploadInput.story.tsx +1 -4
  104. package/src/flowNavigation/FlowNavigation.test.js +0 -190
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 Wed, 27 May 2026 15:50:09 GMT
3
+ * Generated on Tue, 09 Jun 2026 08:11:03 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 Wed, 27 May 2026 15:50:10 GMT
147
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
331
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
515
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
699
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
883
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1067
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1251
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1436
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1621
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:11 GMT
1806
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:11 GMT
1993
+ * Generated on Tue, 09 Jun 2026 08:11:04 GMT
1994
1994
  */
1995
1995
 
1996
1996
  .wds-sentiment-negative-light-base {
@@ -28754,12 +28754,15 @@ button.np-option {
28754
28754
  }
28755
28755
 
28756
28756
  .np-flow-navigation {
28757
+ display: flex;
28758
+ align-items: center;
28759
+ justify-content: center;
28757
28760
  width: 100%;
28758
- min-height: 97px;
28761
+ box-sizing: border-box;
28762
+ min-height: 96px;
28759
28763
  }
28760
28764
 
28761
28765
  .np-flow-navigation--border-bottom {
28762
- min-height: 96px;
28763
28766
  border-bottom: 1px solid rgba(0,0,0,0.10196);
28764
28767
  border-bottom: 1px solid var(--color-border-neutral);
28765
28768
  }
@@ -28844,6 +28847,20 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
28844
28847
  visibility: hidden;
28845
28848
  }
28846
28849
 
28850
+ .np-flow-navigation--composable {
28851
+ min-height: 80px;
28852
+ }
28853
+
28854
+ @media (min-width: 320.02px) {
28855
+ .np-flow-navigation--composable {
28856
+ min-height: 128px;
28857
+ }
28858
+ }
28859
+
28860
+ .np-flow-navigation--composable .np-flow-navigation__content {
28861
+ max-width: none;
28862
+ }
28863
+
28847
28864
  .np-theme-personal--forest-green .np-flow-navigation .np-flow-header__left path,
28848
28865
  .np-theme-personal--bright-green .np-flow-navigation .np-flow-header__left path,
28849
28866
  .np-theme-personal--dark .np-flow-navigation .np-flow-header__left path {
@@ -31706,8 +31723,8 @@ html:not([dir="rtl"]) .np-navigation-option {
31706
31723
  gap: 16px;
31707
31724
  gap: var(--Prompt-gap, var(--size-16));
31708
31725
  word-wrap: break-word;
31709
- padding: 8px;
31710
- padding: var(--Prompt-padding, var(--padding-x-small));
31726
+ padding: 8px 8px;
31727
+ padding: var(--Prompt-padding-y, var(--padding-x-small)) var(--Prompt-padding-x, var(--padding-x-small));
31711
31728
  text-align: left;
31712
31729
  word-break: break-word;
31713
31730
  width: 100%;
@@ -31759,7 +31776,8 @@ html:not([dir="rtl"]) .np-navigation-option {
31759
31776
 
31760
31777
  .wds-inline-prompt {
31761
31778
  --Prompt-gap: calc(var(--size-12) / 2);
31762
- --Prompt-padding: calc(var(--padding-x-small) / 2) var(--padding-x-small);
31779
+ --Prompt-padding-x: var(--padding-x-small);
31780
+ --Prompt-padding-y: calc(var(--padding-x-small) / 2);
31763
31781
  display: inline-flex;
31764
31782
  border-radius: 10px;
31765
31783
  border-radius: var(--radius-small);
@@ -31829,7 +31847,8 @@ html:not([dir="rtl"]) .np-navigation-option {
31829
31847
  .wds-info-prompt {
31830
31848
  --Prompt-border-radius: var(--radius-medium);
31831
31849
  --Prompt-gap: var(--size-8);
31832
- --Prompt-padding: var(--size-12);
31850
+ --Prompt-padding-x: var(--size-12);
31851
+ --Prompt-padding-y: var(--size-12);
31833
31852
  }
31834
31853
 
31835
31854
  .wds-info-prompt__content {
@@ -31895,7 +31914,8 @@ html:not([dir="rtl"]) .np-navigation-option {
31895
31914
  }
31896
31915
 
31897
31916
  .wds-action-prompt {
31898
- --Prompt-padding: var(--size-16);
31917
+ --Prompt-padding-x: var(--size-16);
31918
+ --Prompt-padding-y: var(--size-16);
31899
31919
  --Prompt-actions-gap: var(--size-8);
31900
31920
  --Prompt-gap: var(--size-10) var(--size-16);
31901
31921
  --Prompt-border-radius: var(--radius-large);
@@ -31930,7 +31950,8 @@ html:not([dir="rtl"]) .np-navigation-option {
31930
31950
  }
31931
31951
 
31932
31952
  .wds-critical-banner {
31933
- --Prompt-padding: var(--size-16);
31953
+ --Prompt-padding-x: var(--wds-container-padding-inline);
31954
+ --Prompt-padding-y: var(--size-16);
31934
31955
  --Prompt-actions-gap: var(--size-8);
31935
31956
  --Prompt-gap: var(--size-10) var(--size-16);
31936
31957
  --Prompt-border-radius: 0;
@@ -1,10 +1,7 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
 
3
3
  import Markdown from './Markdown';
4
- import {
5
- createSandboxStory,
6
- globalScope,
7
- } from '../../.storybook/components/sandbox/SandboxEditor';
4
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
8
5
 
9
6
  export default {
10
7
  component: Markdown,
@@ -34,4 +31,3 @@ export const Basic: Story = {
34
31
  - sublist`,
35
32
  },
36
33
  };
37
-
@@ -21,4 +21,3 @@ export const Basic: Story = {
21
21
  currency: 'GBP',
22
22
  },
23
23
  };
24
-
@@ -3,10 +3,7 @@ import { within, userEvent, expect } from 'storybook/test';
3
3
  import { Padlock } from '@transferwise/icons';
4
4
  import { useState } from 'react';
5
5
 
6
- import {
7
- createSandboxStory,
8
- globalScope,
9
- } from '../../.storybook/components/sandbox/SandboxEditor';
6
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
10
7
  import MoneyInput, { CurrencyOptionItem } from '.';
11
8
  import { Field } from '../field/Field';
12
9
  import translations from '../i18n/en.json';
@@ -15,9 +15,13 @@ interface CustomControls {
15
15
  }
16
16
  export type StoryArgs = OverlayHeaderProps & CustomControls;
17
17
 
18
+ /**
19
+ * @deprecated Use `FlowNavigation` component instead
20
+ */
18
21
  const meta: Meta<StoryArgs> = {
19
22
  component: OverlayHeader,
20
23
  title: 'Navigation/OverlayHeader',
24
+ tags: ['deprecated'],
21
25
  argTypes: {
22
26
  avatarType: { control: 'select', options: ['', 'Business', 'Profile'] },
23
27
  avatarURL: { control: 'text' },
@@ -5,6 +5,9 @@ import { CloseButton } from '../common/closeButton';
5
5
  import FlowHeader from '../common/flowHeader';
6
6
  import Logo from '../logo';
7
7
 
8
+ /**
9
+ * @deprecated Use `FlowNavigation` component instead, with `steps={[]}`
10
+ */
8
11
  export interface OverlayHeaderProps {
9
12
  /** An Avatar */
10
13
  avatar?: React.ReactNode;
@@ -15,6 +18,9 @@ export interface OverlayHeaderProps {
15
18
 
16
19
  const defaultLogo = <Logo />;
17
20
 
21
+ /**
22
+ * @deprecated Use `FlowNavigation` component instead
23
+ */
18
24
  export default function OverlayHeader({ avatar, onClose, logo = defaultLogo }: OverlayHeaderProps) {
19
25
  const closeButton = onClose && <CloseButton size={Size.LARGE} onClick={onClose} />;
20
26
  return (
@@ -1,9 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
 
3
- import {
4
- createSandboxStory,
5
- globalScope,
6
- } from '../../.storybook/components/sandbox/SandboxEditor';
3
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
7
4
  import { Field } from '../field/Field';
8
5
  import PhoneNumberInput from './PhoneNumberInput';
9
6
 
@@ -2,10 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { StarFill } from '@transferwise/icons';
3
3
 
4
4
  import PromoCard, { type PromoCardCheckedProps, type PromoCardLinkProps } from './PromoCard';
5
- import {
6
- createSandboxStory,
7
- globalScope,
8
- } from '../../.storybook/components/sandbox/SandboxEditor';
5
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
9
6
 
10
7
  const meta: Meta<typeof PromoCard> = {
11
8
  component: PromoCard,
@@ -2,10 +2,7 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
 
3
3
  import PromoCard from './PromoCard';
4
4
  import PromoCardGroup from './PromoCardGroup';
5
- import {
6
- createSandboxStory,
7
- globalScope,
8
- } from '../../.storybook/components/sandbox/SandboxEditor';
5
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
9
6
 
10
7
  const PromoCards = () => {
11
8
  return (
@@ -1,5 +1,6 @@
1
1
  .wds-action-prompt {
2
- --Prompt-padding: var(--size-16);
2
+ --Prompt-padding-x: var(--size-16);
3
+ --Prompt-padding-y: var(--size-16);
3
4
  --Prompt-actions-gap: var(--size-8);
4
5
  --Prompt-gap: var(--size-10) var(--size-16);
5
6
  --Prompt-border-radius: var(--radius-large);
@@ -1,5 +1,6 @@
1
1
  .wds-action-prompt {
2
- --Prompt-padding: var(--size-16);
2
+ --Prompt-padding-x: var(--size-16);
3
+ --Prompt-padding-y: var(--size-16);
3
4
  --Prompt-actions-gap: var(--size-8);
4
5
  --Prompt-gap: var(--size-10) var(--size-16);
5
6
  --Prompt-border-radius: var(--radius-large);
@@ -1,5 +1,6 @@
1
1
  .wds-critical-banner {
2
- --Prompt-padding: var(--size-16);
2
+ --Prompt-padding-x: var(--wds-container-padding-inline);
3
+ --Prompt-padding-y: var(--size-16);
3
4
  --Prompt-actions-gap: var(--size-8);
4
5
  --Prompt-gap: var(--size-10) var(--size-16);
5
6
  --Prompt-border-radius: 0;
@@ -2,7 +2,8 @@
2
2
  @import (reference) "./CriticalBanner.vars.less";
3
3
 
4
4
  .wds-critical-banner {
5
- --Prompt-padding: var(--size-16);
5
+ --Prompt-padding-x: var(--wds-container-padding-inline);
6
+ --Prompt-padding-y: var(--size-16);
6
7
  --Prompt-actions-gap: var(--size-8);
7
8
  --Prompt-gap: var(--size-10) var(--size-16);
8
9
  --Prompt-border-radius: 0;
@@ -19,7 +19,7 @@ const meta = {
19
19
  component: CriticalBanner,
20
20
  title: 'Prompts/CriticalBanner',
21
21
  tags: ['new'],
22
- parameters: { docs: { toc: true } },
22
+ parameters: { docs: { toc: true }, padding: '0' },
23
23
  args: {
24
24
  title: 'Your account requires verification',
25
25
  description: 'Please verify your identity to continue using all features.',
@@ -1,8 +1,9 @@
1
- import { ReactNode, useId, useState } from 'react';
1
+ import { ElementType, ReactNode, useId, useState } from 'react';
2
2
  import { clsx } from 'clsx';
3
3
 
4
4
  import Body from '../../body';
5
5
  import Button from '../../button';
6
+ import Container from '../../container';
6
7
  import { Breakpoint, LiveRegion, Typography } from '../../common';
7
8
  import { ButtonProps } from '../../button/Button.types';
8
9
  import { PrimitivePrompt, PrimitivePromptProps } from '../PrimitivePrompt';
@@ -78,8 +79,10 @@ export const CriticalBanner = ({
78
79
  .join(' ');
79
80
 
80
81
  const bannerSurface = (
81
- <PrimitivePrompt
82
+ <Container
82
83
  ref={containerRef}
84
+ size="fluid"
85
+ as={PrimitivePrompt as ElementType}
83
86
  id={id}
84
87
  sentiment={sentiment}
85
88
  emphasis={sentiment === 'neutral' ? 'base' : 'elevated'}
@@ -162,7 +165,7 @@ export const CriticalBanner = ({
162
165
  className="wds-critical-banner__toggle"
163
166
  onToggle={handleToggle}
164
167
  />
165
- </PrimitivePrompt>
168
+ </Container>
166
169
  );
167
170
 
168
171
  return (
@@ -1,7 +1,8 @@
1
1
  .wds-info-prompt {
2
2
  --Prompt-border-radius: var(--radius-medium);
3
3
  --Prompt-gap: var(--size-8);
4
- --Prompt-padding: var(--size-12);
4
+ --Prompt-padding-x: var(--size-12);
5
+ --Prompt-padding-y: var(--size-12);
5
6
  }
6
7
  .wds-info-prompt__content {
7
8
  display: flex;
@@ -1,7 +1,8 @@
1
1
  .wds-info-prompt {
2
2
  --Prompt-border-radius: var(--radius-medium);
3
3
  --Prompt-gap: var(--size-8);
4
- --Prompt-padding: var(--size-12);
4
+ --Prompt-padding-x: var(--size-12);
5
+ --Prompt-padding-y: var(--size-12);
5
6
 
6
7
  &__content {
7
8
  display: flex;
@@ -1,6 +1,7 @@
1
1
  .wds-inline-prompt {
2
2
  --Prompt-gap: calc(var(--size-12) / 2);
3
- --Prompt-padding: calc(var(--padding-x-small) / 2) var(--padding-x-small);
3
+ --Prompt-padding-x: var(--padding-x-small);
4
+ --Prompt-padding-y: calc(var(--padding-x-small) / 2);
4
5
  display: inline-flex;
5
6
  border-radius: 10px;
6
7
  border-radius: var(--radius-small);
@@ -1,6 +1,7 @@
1
1
  .wds-inline-prompt {
2
2
  --Prompt-gap: calc(var(--size-12) / 2);
3
- --Prompt-padding: calc(var(--padding-x-small) / 2) var(--padding-x-small);
3
+ --Prompt-padding-x: var(--padding-x-small);
4
+ --Prompt-padding-y: calc(var(--padding-x-small) / 2);
4
5
 
5
6
  display: inline-flex;
6
7
  border-radius: var(--radius-small);
@@ -5,8 +5,8 @@
5
5
  gap: 16px;
6
6
  gap: var(--Prompt-gap, var(--size-16));
7
7
  word-wrap: break-word;
8
- padding: 8px;
9
- padding: var(--Prompt-padding, var(--padding-x-small));
8
+ padding: 8px 8px;
9
+ padding: var(--Prompt-padding-y, var(--padding-x-small)) var(--Prompt-padding-x, var(--padding-x-small));
10
10
  text-align: left;
11
11
  word-break: break-word;
12
12
  width: 100%;
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  gap: var(--Prompt-gap, var(--size-16));
5
5
  overflow-wrap: break-word;
6
- padding: var(--Prompt-padding, var(--padding-x-small));
6
+ padding: var(--Prompt-padding-y, var(--padding-x-small)) var(--Prompt-padding-x, var(--padding-x-small));
7
7
  text-align: left;
8
8
  word-break: break-word;
9
9
  width: 100%;
@@ -37,7 +37,7 @@ export type PrimitivePromptProps = HTMLAttributes<HTMLDivElement> & {
37
37
 
38
38
  /**
39
39
  * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.
40
- * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */
40
+ * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding-x. */
41
41
  export const PrimitivePrompt = forwardRef<HTMLDivElement, PrimitivePromptProps>(
42
42
  (
43
43
  {
@@ -1,9 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { useState } from 'react';
3
- import {
4
- createSandboxStory,
5
- globalScope,
6
- } from '../../.storybook/components/sandbox/SandboxEditor';
3
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
7
4
  import Radio, { type RadioProps } from './Radio';
8
5
  import AvatarView from '../avatarView';
9
6
  import { Flag } from '@wise/art';
@@ -1,8 +1,5 @@
1
1
  import { Flag } from '@wise/art';
2
- import {
3
- createSandboxStory,
4
- globalScope,
5
- } from '../../.storybook/components/sandbox/SandboxEditor';
2
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
6
3
  import RadioGroup, { RadioGroupProps, RadioGroupRadio } from './RadioGroup';
7
4
  import { Field } from '../field/Field';
8
5
  import { Meta, StoryObj } from '@storybook/react-webpack5';
@@ -1,10 +1,7 @@
1
1
  import { StoryFn, StoryObj } from '@storybook/react-webpack5';
2
2
  import React from 'react';
3
3
 
4
- import {
5
- createSandboxStory,
6
- globalScope,
7
- } from '../../.storybook/components/sandbox/SandboxEditor';
4
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
8
5
  import Button from '../button';
9
6
 
10
7
  import SegmentedControl from './SegmentedControl';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
- * Generated on Wed, 27 May 2026 15:50:11 GMT
3
+ * Generated on Tue, 09 Jun 2026 08:11:04 GMT
4
4
  */
5
5
 
6
6
 
@@ -39,7 +39,7 @@ export const Playground: Story = {
39
39
 
40
40
  export const Sandbox = createSandboxStory({
41
41
  code: `<StatusIcon sentiment="positive" size={48} />`,
42
- scope: { StatusIcon },
42
+ scope: { StatusIcon },
43
43
  });
44
44
 
45
45
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
- * Generated on Wed, 27 May 2026 15:50:09 GMT
3
+ * Generated on Tue, 09 Jun 2026 08:11:03 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 Wed, 27 May 2026 15:50:10 GMT
147
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
331
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
515
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
699
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
883
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1067
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1251
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1436
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:10 GMT
1621
+ * Generated on Tue, 09 Jun 2026 08:11:04 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 Wed, 27 May 2026 15:50:11 GMT
1806
+ * Generated on Tue, 09 Jun 2026 08:11:04 GMT
1807
1807
  */
1808
1808
 
1809
1809
  .np-theme-business--bright-green {
@@ -1,10 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-webpack5';
2
2
  import { userEvent, within } from 'storybook/test';
3
3
 
4
- import {
5
- createSandboxStory,
6
- globalScope,
7
- } from '../../.storybook/components/sandbox/SandboxEditor';
4
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
8
5
  import TextareaWithDisplayFormat from './TextareaWithDisplayFormat';
9
6
  import { Field } from '../field/Field';
10
7
 
@@ -1,10 +1,7 @@
1
1
  import { Typography } from '../common/propsValues/typography';
2
2
 
3
3
  import Title from './Title';
4
- import {
5
- createSandboxStory,
6
- globalScope,
7
- } from '../../.storybook/components/sandbox/SandboxEditor';
4
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
8
5
 
9
6
  export default {
10
7
  component: Title,
@@ -37,4 +34,3 @@ export const Basic = () => {
37
34
  </>
38
35
  );
39
36
  };
40
-
@@ -3,10 +3,7 @@ import { Search as SearchIcon } from '@transferwise/icons';
3
3
  import { userEvent, within, fn } from 'storybook/test';
4
4
  import { useState } from 'react';
5
5
 
6
- import {
7
- createSandboxStory,
8
- globalScope,
9
- } from '../../.storybook/components/sandbox/SandboxEditor';
6
+ import { createSandboxStory, globalScope } from '../../.storybook/components/sandbox/SandboxEditor';
10
7
  import { Sentiment, Size } from '../common';
11
8
  import { Input } from '../inputs/Input';
12
9
  import { Field } from '../field/Field';