@transferwise/components 0.0.0-experimental-c6e51c3 → 0.0.0-experimental-575dca7

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 (136) hide show
  1. package/build/actionOption/ActionOption.js.map +1 -1
  2. package/build/actionOption/ActionOption.mjs.map +1 -1
  3. package/build/checkboxOption/CheckboxOption.js.map +1 -1
  4. package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
  5. package/build/container/Container.js.map +1 -1
  6. package/build/container/Container.mjs.map +1 -1
  7. package/build/legacylistItem/LegacyListItem.js.map +1 -1
  8. package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
  9. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
  10. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
  11. package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
  12. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
  13. package/build/listItem/Button/ListItemButton.js.map +1 -1
  14. package/build/listItem/Button/ListItemButton.mjs.map +1 -1
  15. package/build/listItem/Checkbox/ListItemCheckbox.js.map +1 -1
  16. package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +1 -1
  17. package/build/listItem/IconButton/ListItemIconButton.js.map +1 -1
  18. package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -1
  19. package/build/listItem/Image/ListItemImage.js.map +1 -1
  20. package/build/listItem/Image/ListItemImage.mjs.map +1 -1
  21. package/build/listItem/ListItem.js.map +1 -1
  22. package/build/listItem/ListItem.mjs.map +1 -1
  23. package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
  24. package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
  25. package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
  26. package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
  27. package/build/listItem/Radio/ListItemRadio.js.map +1 -1
  28. package/build/listItem/Radio/ListItemRadio.mjs.map +1 -1
  29. package/build/listItem/Switch/ListItemSwitch.js.map +1 -1
  30. package/build/listItem/Switch/ListItemSwitch.mjs.map +1 -1
  31. package/build/loader/Loader.js +1 -1
  32. package/build/loader/Loader.js.map +1 -1
  33. package/build/loader/Loader.mjs +1 -1
  34. package/build/loader/Loader.mjs.map +1 -1
  35. package/build/logo/Logo.js +1 -1
  36. package/build/logo/Logo.js.map +1 -1
  37. package/build/logo/Logo.mjs +1 -1
  38. package/build/logo/Logo.mjs.map +1 -1
  39. package/build/navigationOption/NavigationOption.js.map +1 -1
  40. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  41. package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
  42. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  43. package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
  44. package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
  45. package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -1
  46. package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -1
  47. package/build/prompt/InfoPrompt/InfoPrompt.js.map +1 -1
  48. package/build/prompt/InfoPrompt/InfoPrompt.mjs.map +1 -1
  49. package/build/radioOption/RadioOption.js.map +1 -1
  50. package/build/radioOption/RadioOption.mjs.map +1 -1
  51. package/build/segmentedControl/SegmentedControl.js +1 -1
  52. package/build/segmentedControl/SegmentedControl.js.map +1 -1
  53. package/build/segmentedControl/SegmentedControl.mjs +1 -1
  54. package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
  55. package/build/summary/Summary.js +1 -1
  56. package/build/summary/Summary.js.map +1 -1
  57. package/build/summary/Summary.mjs +1 -1
  58. package/build/summary/Summary.mjs.map +1 -1
  59. package/build/switchOption/SwitchOption.js +1 -1
  60. package/build/switchOption/SwitchOption.js.map +1 -1
  61. package/build/switchOption/SwitchOption.mjs +1 -1
  62. package/build/switchOption/SwitchOption.mjs.map +1 -1
  63. package/build/types/actionOption/ActionOption.d.ts +1 -1
  64. package/build/types/checkboxOption/CheckboxOption.d.ts +1 -1
  65. package/build/types/container/Container.d.ts +1 -1
  66. package/build/types/legacylistItem/LegacyListItem.d.ts +1 -1
  67. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +1 -1
  68. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +1 -1
  69. package/build/types/listItem/Button/ListItemButton.d.ts +1 -1
  70. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +1 -1
  71. package/build/types/listItem/IconButton/ListItemIconButton.d.ts +1 -1
  72. package/build/types/listItem/Image/ListItemImage.d.ts +1 -1
  73. package/build/types/listItem/ListItem.d.ts +1 -1
  74. package/build/types/listItem/Navigation/ListItemNavigation.d.ts +1 -1
  75. package/build/types/listItem/Prompt/ListItemPrompt.d.ts +1 -1
  76. package/build/types/listItem/Radio/ListItemRadio.d.ts +1 -1
  77. package/build/types/listItem/Switch/ListItemSwitch.d.ts +1 -1
  78. package/build/types/logo/Logo.d.ts +1 -1
  79. package/build/types/navigationOption/NavigationOption.d.ts +1 -1
  80. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +1 -1
  81. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +1 -1
  82. package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts +1 -1
  83. package/build/types/prompt/InfoPrompt/InfoPrompt.d.ts +1 -1
  84. package/build/types/radioOption/RadioOption.d.ts +1 -1
  85. package/build/types/summary/Summary.d.ts +1 -1
  86. package/build/types/switchOption/SwitchOption.d.ts +1 -1
  87. package/package.json +1 -1
  88. package/src/actionButton/ActionButton.story.tsx +1 -1
  89. package/src/actionOption/ActionOption.tsx +1 -1
  90. package/src/button/_stories/Button.accessibility.docs.mdx +1 -1
  91. package/src/button/_stories/Button.story.tsx +6 -6
  92. package/src/checkboxButton/CheckboxButton.story.tsx +1 -1
  93. package/src/checkboxOption/CheckboxOption.tsx +1 -1
  94. package/src/chips/Chips.story.tsx +3 -3
  95. package/src/circularButton/CircularButton.story.tsx +4 -4
  96. package/src/container/Container.tsx +1 -1
  97. package/src/divider/Divider.story.tsx +2 -2
  98. package/src/header/Header.accessibility.docs.mdx +1 -1
  99. package/src/header/Header.story.tsx +1 -1
  100. package/src/iconButton/IconButton.story.tsx +4 -4
  101. package/src/legacylistItem/LegacyListItem.tsx +1 -1
  102. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +1 -1
  103. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +1 -1
  104. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +1 -1
  105. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +3 -3
  106. package/src/listItem/AvatarView/ListItemAvatarView.tsx +1 -1
  107. package/src/listItem/Button/ListItemButton.story.tsx +3 -3
  108. package/src/listItem/Button/ListItemButton.tsx +1 -1
  109. package/src/listItem/Checkbox/ListItemCheckbox.tsx +1 -1
  110. package/src/listItem/IconButton/ListItemIconButton.story.tsx +4 -4
  111. package/src/listItem/IconButton/ListItemIconButton.tsx +1 -1
  112. package/src/listItem/Image/ListItemImage.tsx +1 -1
  113. package/src/listItem/ListItem.tsx +1 -1
  114. package/src/listItem/Navigation/ListItemNavigation.tsx +1 -1
  115. package/src/listItem/Prompt/ListItemPrompt.tsx +1 -1
  116. package/src/listItem/Radio/ListItemRadio.tsx +1 -1
  117. package/src/listItem/Switch/ListItemSwitch.tsx +1 -1
  118. package/src/listItem/_stories/ListItem.disabled.story.tsx +1 -1
  119. package/src/listItem/_stories/ListItem.story.tsx +5 -5
  120. package/src/loader/Loader.tsx +1 -1
  121. package/src/logo/Logo.story.tsx +1 -1
  122. package/src/logo/Logo.tsx +1 -1
  123. package/src/navigationOption/NavigationOption.tsx +1 -1
  124. package/src/navigationOptionsList/NavigationOptionsList.tsx +1 -1
  125. package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +1 -1
  126. package/src/prompt/ActionPrompt/ActionPrompt.tsx +1 -1
  127. package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +1 -1
  128. package/src/prompt/CriticalBanner/CriticalBanner.tsx +1 -1
  129. package/src/prompt/InfoPrompt/InfoPrompt.story.tsx +1 -1
  130. package/src/prompt/InfoPrompt/InfoPrompt.tsx +1 -1
  131. package/src/radioOption/RadioOption.tsx +1 -1
  132. package/src/segmentedControl/SegmentedControl.test.tsx +1 -1
  133. package/src/segmentedControl/SegmentedControl.tsx +1 -1
  134. package/src/summary/Summary.tsx +1 -1
  135. package/src/switch/Switch.story.tsx +1 -1
  136. package/src/switchOption/SwitchOption.tsx +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchOption.js","sources":["../../src/switchOption/SwitchOption.tsx"],"sourcesContent":["import { MouseEvent } from 'react';\n\nimport Option from '../common/Option';\nimport Switch from '../switch';\n\nexport type SwitchOptionProps = {\n checked?: boolean;\n complex?: boolean;\n content?: React.ReactNode;\n disabled?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n id?: string;\n media?: React.ReactNode;\n onChange: (newValue: boolean) => void;\n title: React.ReactNode;\n 'aria-label': string;\n};\n\nconst stopPropagation = (event?: MouseEvent<HTMLSpanElement>) => {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n event.nativeEvent?.stopImmediatePropagation?.();\n }\n};\n\n/**\n * @deprecated Use `<ListItem />` instead (run codemod to migrate: **`npx @wise/wds-codemods@latest list-item`**).\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst SwitchOption = ({\n checked,\n complex,\n content,\n disabled,\n id,\n media,\n onChange,\n title,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n 'aria-label': ariaLabel,\n}: SwitchOptionProps) => {\n const sharedProps = {\n media,\n title,\n content,\n complex,\n disabled,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n };\n const toggle = (event?: MouseEvent<HTMLSpanElement>) => {\n stopPropagation(event);\n if (disabled) {\n return;\n }\n\n onChange(!checked);\n };\n\n return (\n <Option\n {...sharedProps}\n className=\"np-switch-option\"\n button={\n <Switch\n id={id}\n checked={checked}\n disabled={disabled}\n aria-label={ariaLabel}\n onClick={toggle}\n />\n }\n onClick={toggle}\n />\n );\n};\n\nexport default SwitchOption;\n"],"names":["stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation","SwitchOption","checked","complex","content","disabled","id","media","onChange","title","showMediaCircle","showMediaAtAllSizes","isContainerAligned","ariaLabel","sharedProps","toggle","_jsx","Option","className","button","Switch","onClick"],"mappings":";;;;;;;;AAoBA,MAAMA,eAAe,GAAIC,KAAmC,IAAI;AAC9D,EAAA,IAAIA,KAAK,EAAE;IACTA,KAAK,CAACD,eAAe,EAAE;IACvBC,KAAK,CAACC,cAAc,EAAE;AACtBD,IAAAA,KAAK,CAACE,WAAW,EAAEC,wBAAwB,IAAI;AACjD,EAAA;AACF,CAAC;AAED;;;;;;;AAOG;AACH,MAAMC,YAAY,GAAGA,CAAC;EACpBC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,QAAQ;EACRC,EAAE;EACFC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,eAAe;EACfC,mBAAmB;EACnBC,kBAAkB;AAClB,EAAA,YAAY,EAAEC;AAAS,CACL,KAAI;AACtB,EAAA,MAAMC,WAAW,GAAG;IAClBP,KAAK;IACLE,KAAK;IACLL,OAAO;IACPD,OAAO;IACPE,QAAQ;IACRK,eAAe;IACfC,mBAAmB;AACnBC,IAAAA;GACD;EACD,MAAMG,MAAM,GAAIlB,KAAmC,IAAI;IACrDD,eAAe,CAACC,KAAK,CAAC;AACtB,IAAA,IAAIQ,QAAQ,EAAE;AACZ,MAAA;AACF,IAAA;IAEAG,QAAQ,CAAC,CAACN,OAAO,CAAC;EACpB,CAAC;EAED,oBACEc,cAAA,CAACC,cAAM,EAAA;AAAA,IAAA,GACDH,WAAW;AACfI,IAAAA,SAAS,EAAC,kBAAkB;IAC5BC,MAAM,eACJH,cAAA,CAACI,cAAM,EAAA;AACLd,MAAAA,EAAE,EAAEA,EAAG;AACPJ,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnB,MAAA,YAAA,EAAYQ,SAAU;AACtBQ,MAAAA,OAAO,EAAEN;AAAO,KAAA,CAEnB;AACDM,IAAAA,OAAO,EAAEN;AAAO,GAAA,CAChB;AAEN;;;;"}
1
+ {"version":3,"file":"SwitchOption.js","sources":["../../src/switchOption/SwitchOption.tsx"],"sourcesContent":["import { MouseEvent } from 'react';\n\nimport Option from '../common/Option';\nimport Switch from '../switch';\n\nexport type SwitchOptionProps = {\n checked?: boolean;\n complex?: boolean;\n content?: React.ReactNode;\n disabled?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n id?: string;\n media?: React.ReactNode;\n onChange: (newValue: boolean) => void;\n title: React.ReactNode;\n 'aria-label': string;\n};\n\nconst stopPropagation = (event?: MouseEvent<HTMLSpanElement>) => {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n event.nativeEvent?.stopImmediatePropagation?.();\n }\n};\n\n/**\n * @deprecated Use `<ListItem />` instead (run codemod to migrate: **`npx @wise/wds-codemods@latest list-item`**).\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://docs.wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst SwitchOption = ({\n checked,\n complex,\n content,\n disabled,\n id,\n media,\n onChange,\n title,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n 'aria-label': ariaLabel,\n}: SwitchOptionProps) => {\n const sharedProps = {\n media,\n title,\n content,\n complex,\n disabled,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n };\n const toggle = (event?: MouseEvent<HTMLSpanElement>) => {\n stopPropagation(event);\n if (disabled) {\n return;\n }\n\n onChange(!checked);\n };\n\n return (\n <Option\n {...sharedProps}\n className=\"np-switch-option\"\n button={\n <Switch\n id={id}\n checked={checked}\n disabled={disabled}\n aria-label={ariaLabel}\n onClick={toggle}\n />\n }\n onClick={toggle}\n />\n );\n};\n\nexport default SwitchOption;\n"],"names":["stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation","SwitchOption","checked","complex","content","disabled","id","media","onChange","title","showMediaCircle","showMediaAtAllSizes","isContainerAligned","ariaLabel","sharedProps","toggle","_jsx","Option","className","button","Switch","onClick"],"mappings":";;;;;;;;AAoBA,MAAMA,eAAe,GAAIC,KAAmC,IAAI;AAC9D,EAAA,IAAIA,KAAK,EAAE;IACTA,KAAK,CAACD,eAAe,EAAE;IACvBC,KAAK,CAACC,cAAc,EAAE;AACtBD,IAAAA,KAAK,CAACE,WAAW,EAAEC,wBAAwB,IAAI;AACjD,EAAA;AACF,CAAC;AAED;;;;;;;AAOG;AACH,MAAMC,YAAY,GAAGA,CAAC;EACpBC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,QAAQ;EACRC,EAAE;EACFC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,eAAe;EACfC,mBAAmB;EACnBC,kBAAkB;AAClB,EAAA,YAAY,EAAEC;AAAS,CACL,KAAI;AACtB,EAAA,MAAMC,WAAW,GAAG;IAClBP,KAAK;IACLE,KAAK;IACLL,OAAO;IACPD,OAAO;IACPE,QAAQ;IACRK,eAAe;IACfC,mBAAmB;AACnBC,IAAAA;GACD;EACD,MAAMG,MAAM,GAAIlB,KAAmC,IAAI;IACrDD,eAAe,CAACC,KAAK,CAAC;AACtB,IAAA,IAAIQ,QAAQ,EAAE;AACZ,MAAA;AACF,IAAA;IAEAG,QAAQ,CAAC,CAACN,OAAO,CAAC;EACpB,CAAC;EAED,oBACEc,cAAA,CAACC,cAAM,EAAA;AAAA,IAAA,GACDH,WAAW;AACfI,IAAAA,SAAS,EAAC,kBAAkB;IAC5BC,MAAM,eACJH,cAAA,CAACI,cAAM,EAAA;AACLd,MAAAA,EAAE,EAAEA,EAAG;AACPJ,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnB,MAAA,YAAA,EAAYQ,SAAU;AACtBQ,MAAAA,OAAO,EAAEN;AAAO,KAAA,CAEnB;AACDM,IAAAA,OAAO,EAAEN;AAAO,GAAA,CAChB;AAEN;;;;"}
@@ -14,7 +14,7 @@ const stopPropagation = event => {
14
14
  * @deprecatedSince 46.104.0
15
15
  * @see [Source](../listItem/ListItem.tsx)
16
16
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
17
- * @see [Design docs](https://wise.design/components/list-item)
17
+ * @see [Design docs](https://docs.wise.design/components/list-item)
18
18
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
19
19
  */
20
20
  const SwitchOption = ({
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchOption.mjs","sources":["../../src/switchOption/SwitchOption.tsx"],"sourcesContent":["import { MouseEvent } from 'react';\n\nimport Option from '../common/Option';\nimport Switch from '../switch';\n\nexport type SwitchOptionProps = {\n checked?: boolean;\n complex?: boolean;\n content?: React.ReactNode;\n disabled?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n id?: string;\n media?: React.ReactNode;\n onChange: (newValue: boolean) => void;\n title: React.ReactNode;\n 'aria-label': string;\n};\n\nconst stopPropagation = (event?: MouseEvent<HTMLSpanElement>) => {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n event.nativeEvent?.stopImmediatePropagation?.();\n }\n};\n\n/**\n * @deprecated Use `<ListItem />` instead (run codemod to migrate: **`npx @wise/wds-codemods@latest list-item`**).\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst SwitchOption = ({\n checked,\n complex,\n content,\n disabled,\n id,\n media,\n onChange,\n title,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n 'aria-label': ariaLabel,\n}: SwitchOptionProps) => {\n const sharedProps = {\n media,\n title,\n content,\n complex,\n disabled,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n };\n const toggle = (event?: MouseEvent<HTMLSpanElement>) => {\n stopPropagation(event);\n if (disabled) {\n return;\n }\n\n onChange(!checked);\n };\n\n return (\n <Option\n {...sharedProps}\n className=\"np-switch-option\"\n button={\n <Switch\n id={id}\n checked={checked}\n disabled={disabled}\n aria-label={ariaLabel}\n onClick={toggle}\n />\n }\n onClick={toggle}\n />\n );\n};\n\nexport default SwitchOption;\n"],"names":["stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation","SwitchOption","checked","complex","content","disabled","id","media","onChange","title","showMediaCircle","showMediaAtAllSizes","isContainerAligned","ariaLabel","sharedProps","toggle","_jsx","Option","className","button","Switch","onClick"],"mappings":";;;;AAoBA,MAAMA,eAAe,GAAIC,KAAmC,IAAI;AAC9D,EAAA,IAAIA,KAAK,EAAE;IACTA,KAAK,CAACD,eAAe,EAAE;IACvBC,KAAK,CAACC,cAAc,EAAE;AACtBD,IAAAA,KAAK,CAACE,WAAW,EAAEC,wBAAwB,IAAI;AACjD,EAAA;AACF,CAAC;AAED;;;;;;;AAOG;AACH,MAAMC,YAAY,GAAGA,CAAC;EACpBC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,QAAQ;EACRC,EAAE;EACFC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,eAAe;EACfC,mBAAmB;EACnBC,kBAAkB;AAClB,EAAA,YAAY,EAAEC;AAAS,CACL,KAAI;AACtB,EAAA,MAAMC,WAAW,GAAG;IAClBP,KAAK;IACLE,KAAK;IACLL,OAAO;IACPD,OAAO;IACPE,QAAQ;IACRK,eAAe;IACfC,mBAAmB;AACnBC,IAAAA;GACD;EACD,MAAMG,MAAM,GAAIlB,KAAmC,IAAI;IACrDD,eAAe,CAACC,KAAK,CAAC;AACtB,IAAA,IAAIQ,QAAQ,EAAE;AACZ,MAAA;AACF,IAAA;IAEAG,QAAQ,CAAC,CAACN,OAAO,CAAC;EACpB,CAAC;EAED,oBACEc,GAAA,CAACC,MAAM,EAAA;AAAA,IAAA,GACDH,WAAW;AACfI,IAAAA,SAAS,EAAC,kBAAkB;IAC5BC,MAAM,eACJH,GAAA,CAACI,MAAM,EAAA;AACLd,MAAAA,EAAE,EAAEA,EAAG;AACPJ,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnB,MAAA,YAAA,EAAYQ,SAAU;AACtBQ,MAAAA,OAAO,EAAEN;AAAO,KAAA,CAEnB;AACDM,IAAAA,OAAO,EAAEN;AAAO,GAAA,CAChB;AAEN;;;;"}
1
+ {"version":3,"file":"SwitchOption.mjs","sources":["../../src/switchOption/SwitchOption.tsx"],"sourcesContent":["import { MouseEvent } from 'react';\n\nimport Option from '../common/Option';\nimport Switch from '../switch';\n\nexport type SwitchOptionProps = {\n checked?: boolean;\n complex?: boolean;\n content?: React.ReactNode;\n disabled?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n id?: string;\n media?: React.ReactNode;\n onChange: (newValue: boolean) => void;\n title: React.ReactNode;\n 'aria-label': string;\n};\n\nconst stopPropagation = (event?: MouseEvent<HTMLSpanElement>) => {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n event.nativeEvent?.stopImmediatePropagation?.();\n }\n};\n\n/**\n * @deprecated Use `<ListItem />` instead (run codemod to migrate: **`npx @wise/wds-codemods@latest list-item`**).\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://docs.wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst SwitchOption = ({\n checked,\n complex,\n content,\n disabled,\n id,\n media,\n onChange,\n title,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n 'aria-label': ariaLabel,\n}: SwitchOptionProps) => {\n const sharedProps = {\n media,\n title,\n content,\n complex,\n disabled,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n };\n const toggle = (event?: MouseEvent<HTMLSpanElement>) => {\n stopPropagation(event);\n if (disabled) {\n return;\n }\n\n onChange(!checked);\n };\n\n return (\n <Option\n {...sharedProps}\n className=\"np-switch-option\"\n button={\n <Switch\n id={id}\n checked={checked}\n disabled={disabled}\n aria-label={ariaLabel}\n onClick={toggle}\n />\n }\n onClick={toggle}\n />\n );\n};\n\nexport default SwitchOption;\n"],"names":["stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation","SwitchOption","checked","complex","content","disabled","id","media","onChange","title","showMediaCircle","showMediaAtAllSizes","isContainerAligned","ariaLabel","sharedProps","toggle","_jsx","Option","className","button","Switch","onClick"],"mappings":";;;;AAoBA,MAAMA,eAAe,GAAIC,KAAmC,IAAI;AAC9D,EAAA,IAAIA,KAAK,EAAE;IACTA,KAAK,CAACD,eAAe,EAAE;IACvBC,KAAK,CAACC,cAAc,EAAE;AACtBD,IAAAA,KAAK,CAACE,WAAW,EAAEC,wBAAwB,IAAI;AACjD,EAAA;AACF,CAAC;AAED;;;;;;;AAOG;AACH,MAAMC,YAAY,GAAGA,CAAC;EACpBC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,QAAQ;EACRC,EAAE;EACFC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,eAAe;EACfC,mBAAmB;EACnBC,kBAAkB;AAClB,EAAA,YAAY,EAAEC;AAAS,CACL,KAAI;AACtB,EAAA,MAAMC,WAAW,GAAG;IAClBP,KAAK;IACLE,KAAK;IACLL,OAAO;IACPD,OAAO;IACPE,QAAQ;IACRK,eAAe;IACfC,mBAAmB;AACnBC,IAAAA;GACD;EACD,MAAMG,MAAM,GAAIlB,KAAmC,IAAI;IACrDD,eAAe,CAACC,KAAK,CAAC;AACtB,IAAA,IAAIQ,QAAQ,EAAE;AACZ,MAAA;AACF,IAAA;IAEAG,QAAQ,CAAC,CAACN,OAAO,CAAC;EACpB,CAAC;EAED,oBACEc,GAAA,CAACC,MAAM,EAAA;AAAA,IAAA,GACDH,WAAW;AACfI,IAAAA,SAAS,EAAC,kBAAkB;IAC5BC,MAAM,eACJH,GAAA,CAACI,MAAM,EAAA;AACLd,MAAAA,EAAE,EAAEA,EAAG;AACPJ,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnB,MAAA,YAAA,EAAYQ,SAAU;AACtBQ,MAAAA,OAAO,EAAEN;AAAO,KAAA,CAEnB;AACDM,IAAAA,OAAO,EAAEN;AAAO,GAAA,CAChB;AAEN;;;;"}
@@ -20,7 +20,7 @@ export type ActionOptionProps = {
20
20
  * @deprecatedSince 46.104.0
21
21
  * @see [Source](../listItem/ListItem.tsx)
22
22
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
23
- * @see [Design docs](https://wise.design/components/list-item)
23
+ * @see [Design docs](https://docs.wise.design/components/list-item)
24
24
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
25
25
  */
26
26
  declare const ActionOption: ({ action, priority, disabled, onClick, media, title, content, additionalContent, complex, className, showMediaAtAllSizes, showMediaCircle, isContainerAligned, as, "aria-label": ariaLabel, }: ActionOptionProps) => import("react").JSX.Element;
@@ -14,7 +14,7 @@ export type CheckboxOptionProps = Omit<BaseOptionProps, 'onChange'> & {
14
14
  * @deprecatedSince 46.104.0
15
15
  * @see [Source](../listItem/ListItem.tsx)
16
16
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
17
- * @see [Design docs](https://wise.design/components/list-item)
17
+ * @see [Design docs](https://docs.wise.design/components/list-item)
18
18
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
19
19
  */
20
20
  declare const CheckboxOption: import("react").ForwardRefExoticComponent<Omit<BaseOptionProps, "onChange"> & {
@@ -9,7 +9,7 @@ export type ContainerProps<T extends ElementType = 'div'> = PropsWithChildren<Co
9
9
  /**
10
10
  * Centers page content within a responsive max-width boundary, with automatic horizontal padding that adapts to the viewport size.
11
11
  *
12
- * **Design guidance**: <a href="https://wise.design/foundations/grid" target="_blank">wise.design/foundations/grid</a>
12
+ * **Design guidance**: <a href="https://docs.wise.design/foundations/grid" target="_blank">wise.design/foundations/grid</a>
13
13
  */
14
14
  declare const Container: <T extends ElementType = "div">({ size, as, className, children, ...otherProps }: ContainerProps<T>) => import("react").JSX.Element;
15
15
  export default Container;
@@ -13,7 +13,7 @@ export type LegacyListItemProps = {
13
13
  * @deprecatedSince 46.104.0
14
14
  * @see [Source](../listItem/ListItem.tsx)
15
15
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
16
- * @see [Design docs](https://wise.design/components/list-item)
16
+ * @see [Design docs](https://docs.wise.design/components/list-item)
17
17
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
18
18
  */
19
19
  declare const LegacyListItem: FC<LegacyListItemProps>;
@@ -8,7 +8,7 @@ export type ListItemAvatarLayoutProps = Omit<AvatarLayoutProps, 'size' | 'intera
8
8
  * [AvatarLayout component](https://storybook.wise.design/?path=/docs/content-avatarlayout--docs), but offers only
9
9
  * a subset of its sizes, and disallows interactive mode, in line with the ListItem's constraints. <br />
10
10
  * <br />
11
- * Please refer to the [Design documentation](https://wise.design/components/list-item#avatar) for details.
11
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item#avatar) for details.
12
12
  */
13
13
  export declare const AvatarLayout: {
14
14
  ({ className, size, ...props }: ListItemAvatarLayoutProps): import("react").JSX.Element;
@@ -8,7 +8,7 @@ export type ListItemAvatarViewProps = Omit<AvatarViewProps, 'size' | 'interactiv
8
8
  * [AvatarView component](https://storybook.wise.design/?path=/docs/content-avatarview--docs), but offers only
9
9
  * a subset of its sizes, in line with the ListItem's constraints. <br />
10
10
  * <br />
11
- * Please refer to the [Design documentation](https://wise.design/components/list-item#avatar) for details.
11
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item#avatar) for details.
12
12
  */
13
13
  export declare const AvatarView: {
14
14
  ({ className, size, ...props }: ListItemAvatarViewProps): import("react").JSX.Element;
@@ -13,7 +13,7 @@ export type ListItemButtonProps = Omit<NewButtonProps, 'v2' | 'size' | 'disabled
13
13
  * [Button component](https://storybook.wise.design/?path=/docs/content-button--docs), but offers only
14
14
  * a subset of its features in line with the ListItem's constraints. <br />
15
15
  * <br />
16
- * Please refer to the [Design documentation](https://wise.design/components/list-item---button) for details.
16
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---button) for details.
17
17
  */
18
18
  export declare const Button: import("react").ForwardRefExoticComponent<Omit<NewButtonProps, "block" | "disabled" | "size" | "v2" | "addonStart"> & {
19
19
  /**
@@ -5,7 +5,7 @@ export type ListItemCheckboxProps = Pick<CheckboxButtonProps, 'checked' | 'indet
5
5
  * [CheckboxButton component](https://storybook.wise.design/?path=/docs/actions-checkboxbutton--docs),
6
6
  * but offers only a subset of its features in line with the ListItem's constraints. <br />
7
7
  *
8
- * Please refer to the [Design documentation](https://wise.design/components/list-item---checkbox) for details.
8
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---checkbox) for details.
9
9
  */
10
10
  export declare const Checkbox: {
11
11
  (props: ListItemCheckboxProps): import("react").JSX.Element;
@@ -11,7 +11,7 @@ export type ListItemIconButtonProps = Pick<IconButtonProps, 'type' | 'onClick' |
11
11
  * [IconButton component](https://storybook.wise.design/?path=/docs/actions-iconbutton--docs), but offers only
12
12
  * a subset of its features in line with the ListItem's constraints. <br />
13
13
  * <br />
14
- * Please refer to the [Design documentation](https://wise.design/components/list-item---icon-button) for details.
14
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---icon-button) for details.
15
15
  */
16
16
  export declare const IconButton: {
17
17
  ({ priority, "aria-label": ariaLabel, ...props }: ListItemIconButtonProps): import("react").JSX.Element;
@@ -19,7 +19,7 @@ export type ListItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' |
19
19
  * [Image component](https://storybook.wise.design/?path=/docs/content-image--docs), but offers only
20
20
  * a subset of its props, in line with the ListItem's constraints.
21
21
  *
22
- * > **NB**: This component is [not intended for use with illustrations](https://wise.design/foundations/illustration#scale).
22
+ * > **NB**: This component is [not intended for use with illustrations](https://docs.wise.design/foundations/illustration#scale).
23
23
  */
24
24
  export declare const Image: {
25
25
  ({ alt, size, className, ...props }: ListItemImageProps): import("react").JSX.Element;
@@ -68,7 +68,7 @@ export type ListItemProps = {
68
68
  id?: string;
69
69
  };
70
70
  /**
71
- * @see [Design documentation](https://wise.design/components/list-item)
71
+ * @see [Design documentation](https://docs.wise.design/components/list-item)
72
72
  * @see [Storybook documentation](https://storybook.wise.design/?path=/docs/content-listitem--docs)
73
73
  */
74
74
  export declare const ListItem: {
@@ -6,7 +6,7 @@ export type ListItemNavigationProps = Pick<ButtonProps, 'onClick' | 'href' | 'ta
6
6
  * step in a flow. It offers only a subset of features of the HTML element in line with the
7
7
  * ListItem's constraints.<br />
8
8
  * <br />
9
- * Please refer to the [Design documentation](https://wise.design/components/list-item---navigation) for details.
9
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---navigation) for details.
10
10
  */
11
11
  export declare const Navigation: {
12
12
  ({ href, ...props }: ListItemNavigationProps): import("react").JSX.Element;
@@ -4,7 +4,7 @@ export type ListItemPromptProps = Pick<InlinePromptProps, 'children' | 'sentimen
4
4
  * This component allows for rendering an Inline Prompt. <br />
5
5
  * In the future it will be a thin wrapper around a standalone component.<br />
6
6
  *
7
- * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.
7
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item#prompt) for details.
8
8
  */
9
9
  export declare const Prompt: {
10
10
  ({ sentiment, mediaLabel, children, media, loading, }: ListItemPromptProps): import("react").JSX.Element;
@@ -5,7 +5,7 @@ export type ListItemRadioProps = Omit<RadioButtonProps, 'disabled' | 'readOnly'
5
5
  * [Button component](https://storybook.wise.design/?path=/docs/content-button--docs), but offers only
6
6
  * a subset of its features in line with the ListItem's constraints. <br />
7
7
  * <br />
8
- * Please refer to the [Design documentation](https://wise.design/components/list-item---button) for details.
8
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---button) for details.
9
9
  */
10
10
  export declare const Radio: {
11
11
  (props: ListItemRadioProps): import("react").JSX.Element;
@@ -5,7 +5,7 @@ export type ListItemSwitchProps = Omit<SwitchProps, 'disabled' | 'id' | 'aria-la
5
5
  * [CheckboxButton component](https://storybook.wise.design/?path=/docs/actions-switch--docs),
6
6
  * but offers only a subset of its features in line with the ListItem's constraints. <br />
7
7
  *
8
- * Please refer to the [Design documentation](https://wise.design/components/list-item---switch) for details.
8
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---switch) for details.
9
9
  */
10
10
  export declare const Switch: {
11
11
  (props: ListItemSwitchProps): import("react").JSX.Element;
@@ -59,7 +59,7 @@ export interface LogoProps {
59
59
  * Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports
60
60
  * and the full wordmark on ≥600px (small breakpoint and above).
61
61
  *
62
- * @see {@link https://wise.design/foundations/logo Design Spec}
62
+ * @see {@link https://docs.wise.design/foundations/logo Design Spec}
63
63
  */
64
64
  export default function Logo({ className, type, format, display, size, 'aria-label': ariaLabel, }: LogoProps): import("react").JSX.Element;
65
65
  //# sourceMappingURL=Logo.d.ts.map
@@ -5,7 +5,7 @@ export type NavigationOptionProps = OptionProps;
5
5
  * @deprecatedSince 46.104.0
6
6
  * @see [Source](../listItem/ListItem.tsx)
7
7
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
8
- * @see [Design docs](https://wise.design/components/list-item)
8
+ * @see [Design docs](https://docs.wise.design/components/list-item)
9
9
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
10
10
  */
11
11
  declare const NavigationOption: import("react").ForwardRefExoticComponent<OptionProps & import("react").RefAttributes<ReferenceType>>;
@@ -8,7 +8,7 @@ export interface NavigationOptionListProps {
8
8
  * @see [List source](../list/List.tsx)
9
9
  * @see [ListItem source](../listItem/ListItem.tsx)
10
10
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
11
- * @see [Design docs](https://wise.design/components/list-item)
11
+ * @see [Design docs](https://docs.wise.design/components/list-item)
12
12
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
13
13
  */
14
14
  declare const NavigationOptionList: ({ children }: NavigationOptionListProps) => React.JSX.Element;
@@ -26,7 +26,7 @@ export type ActionPromptProps = {
26
26
  *
27
27
  * If your message is about immediate user feedback (e.g., form submission errors, download failures, missing data warnings), use an [info prompt](https://storybook.wise.design/?path=/docs/prompts-infoprompt--docs) instead.
28
28
  *
29
- * Guidance can be found in the [design system](https://wise.design/components/action-prompt).
29
+ * Guidance can be found in the [design system](https://docs.wise.design/components/action-prompt).
30
30
  */
31
31
  export declare const ActionPrompt: ({ sentiment, title, description, onDismiss, media, action, actionSecondary, id, className, "data-testid": testId, "aria-label": ariaLabel, }: ActionPromptProps) => import("react").JSX.Element;
32
32
  export default ActionPrompt;
@@ -32,7 +32,7 @@ export type CriticalBannerProps = {
32
32
  * A full-width, non-dismissible banner for critical messages such as account blocks or
33
33
  * time-sensitive actions that require immediate user attention.
34
34
 
35
- * @see {@link https://wise.design/components/critical-banner Design Spec}
35
+ * @see {@link https://docs.wise.design/components/critical-banner Design Spec}
36
36
  */
37
37
  export declare const CriticalBanner: ({ sentiment, title, description, media, action, actionSecondary, expanded: expandedProp, onToggle, id, className, "data-testid": testId, }: CriticalBannerProps) => import("react").JSX.Element;
38
38
  export default CriticalBanner;
@@ -61,7 +61,7 @@ export type InfoPromptProps = Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'ar
61
61
  *
62
62
  * Use this component to replace the deprecated `Alert` component (run codemod to migrate: **`npx \@wise/wds-codemods@latest info-prompt`**).
63
63
  *
64
- * Guidance can be found in the [design system](https://wise.design/components/info-prompt).
64
+ * Guidance can be found in the [design system](https://docs.wise.design/components/info-prompt).
65
65
  */
66
66
  export declare const InfoPrompt: ({ sentiment, onDismiss, media, action, title, description, className, "aria-live": ariaLive, "data-testid": dataTestId, ...restProps }: InfoPromptProps) => import("react").JSX.Element;
67
67
  //# sourceMappingURL=InfoPrompt.d.ts.map
@@ -14,7 +14,7 @@ export interface RadioOptionProps<T extends string | number = string> extends Re
14
14
  * @deprecatedSince 46.104.0
15
15
  * @see [Source](../listItem/ListItem.tsx)
16
16
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
17
- * @see [Design docs](https://wise.design/components/list-item)
17
+ * @see [Design docs](https://docs.wise.design/components/list-item)
18
18
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
19
19
  */
20
20
  declare function RadioOption<T extends string | number = ''>({ 'aria-label': ariaLabel, media, title, content, id, name, checked, onChange, complex, disabled, value, showMediaCircle, showMediaAtAllSizes, isContainerAligned, }: RadioOptionProps<T>): import("react").JSX.Element;
@@ -59,7 +59,7 @@ export interface Props {
59
59
  * @deprecatedSince 46.104.0
60
60
  * @see [Source](../listItem/ListItem.tsx)
61
61
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
62
- * @see [Design docs](https://wise.design/components/list-item)
62
+ * @see [Design docs](https://docs.wise.design/components/list-item)
63
63
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
64
64
  */
65
65
  declare const Summary: ({ action, as: Element, className, content, description, help, icon, illustration, info, status, title, }: Props) => import("react").JSX.Element;
@@ -17,7 +17,7 @@ export type SwitchOptionProps = {
17
17
  * @deprecatedSince 46.104.0
18
18
  * @see [Source](../listItem/ListItem.tsx)
19
19
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
20
- * @see [Design docs](https://wise.design/components/list-item)
20
+ * @see [Design docs](https://docs.wise.design/components/list-item)
21
21
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
22
22
  */
23
23
  declare const SwitchOption: ({ checked, complex, content, disabled, id, media, onChange, title, showMediaCircle, showMediaAtAllSizes, isContainerAligned, "aria-label": ariaLabel, }: SwitchOptionProps) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-c6e51c3",
3
+ "version": "0.0.0-experimental-575dca7",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -7,7 +7,7 @@ import { withVariantConfig } from '../../.storybook/helpers';
7
7
  /**
8
8
  * This component is deprecated please use new [Button](?path=/docs/actions-button--docs).
9
9
  *
10
- * For more details please refer to the [release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3542158737/Button+Updates+New+sizes+Loader+and+Cue) and the [design spec](https://wise.design/components/button).
10
+ * For more details please refer to the [release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3542158737/Button+Updates+New+sizes+Loader+and+Cue) and the [design spec](https://docs.wise.design/components/button).
11
11
  */
12
12
  export default {
13
13
  component: ActionButton,
@@ -40,7 +40,7 @@ export type ActionOptionProps = {
40
40
  * @deprecatedSince 46.104.0
41
41
  * @see [Source](../listItem/ListItem.tsx)
42
42
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
43
- * @see [Design docs](https://wise.design/components/list-item)
43
+ * @see [Design docs](https://docs.wise.design/components/list-item)
44
44
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
45
45
  */
46
46
  const ActionOption = ({
@@ -12,7 +12,7 @@ Given the `Button` is a widely used and highly sensitive component, there are so
12
12
  <ListItem
13
13
  title="Design guidance"
14
14
  subtitle="Before you start, familiarise yourself with the dedicated accessibility documentation."
15
- control={<ListItem.Navigation href="https://wise.design/components/button#accessibility" />}
15
+ control={<ListItem.Navigation href="https://docs.wise.design/components/button#accessibility" />}
16
16
  media={
17
17
  <ListItem.AvatarView>
18
18
  <Bulb />
@@ -149,7 +149,7 @@ const getPropsForPreview = (args: PreviewStoryArgs) => {
149
149
  };
150
150
 
151
151
  /**
152
- * The stories below document the new Button API, which requires `v2` prop to function. <br />For more details please refer to the [release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3542158737/Button+Updates+New+sizes+Loader+and+Cue) and the [design spec](https://wise.design/components/button). <br />
152
+ * The stories below document the new Button API, which requires `v2` prop to function. <br />For more details please refer to the [release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3542158737/Button+Updates+New+sizes+Loader+and+Cue) and the [design spec](https://docs.wise.design/components/button). <br />
153
153
  * You can still find the old Button documentation under [Legacy Button](?path=/docs/actions-button-legacy--docs)
154
154
  *
155
155
  *
@@ -331,7 +331,7 @@ export const Sandbox = createSandboxStory({
331
331
  /**
332
332
  * There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
333
333
  * **NB:** Sentiment only applies to `primary` and `secondary` priorities. <br />
334
- * [Design documentation](https://wise.design/components/button#types)
334
+ * [Design documentation](https://docs.wise.design/components/button#types)
335
335
  */
336
336
  export const Sentiment: StoryObj<PreviewStoryArgs> = {
337
337
  render: function Render(args: PreviewStoryArgs) {
@@ -377,7 +377,7 @@ export const Sentiment: StoryObj<PreviewStoryArgs> = {
377
377
  /**
378
378
  * Priorities set a visual hierarchy amongst the buttons displayed on the
379
379
  * screen to help more important buttons to take precedence over others. <br />
380
- * [Design documentation](https://wise.design/components/button#priorities)
380
+ * [Design documentation](https://docs.wise.design/components/button#priorities)
381
381
  */
382
382
  export const Priority: StoryObj<PreviewStoryArgs> = {
383
383
  render: function Render(args: PreviewStoryArgs) {
@@ -413,7 +413,7 @@ export const Priority: StoryObj<PreviewStoryArgs> = {
413
413
 
414
414
  /**
415
415
  * There are three different button sizes – small (`sm`), medium (`md`) and large (`lg`) – each used for different purposes. <br />
416
- * [Design documentation](https://wise.design/components/button#sizes)
416
+ * [Design documentation](https://docs.wise.design/components/button#sizes)
417
417
  */
418
418
  export const Size: StoryObj<PreviewStoryArgs> = {
419
419
  render: function Render(args: PreviewStoryArgs) {
@@ -536,7 +536,7 @@ export const DisplayBlock: StoryObj<PreviewStoryArgs> = {
536
536
 
537
537
  /**
538
538
  * Icons are only supported for `sm` and `md` size Buttons. <br />
539
- * [Design documentation](https://wise.design/components/button#accessories)
539
+ * [Design documentation](https://docs.wise.design/components/button#accessories)
540
540
  */
541
541
  export const WithIcons: StoryObj<PreviewStoryArgs> = {
542
542
  render: function Render(args: PreviewStoryArgs) {
@@ -595,7 +595,7 @@ export const WithIcons: StoryObj<PreviewStoryArgs> = {
595
595
 
596
596
  /**
597
597
  * Avatars are only supported by the `md` size Buttons and are only allowed before the label. <br />
598
- * [Design documentation](https://wise.design/components/button#accessories)
598
+ * [Design documentation](https://docs.wise.design/components/button#accessories)
599
599
  */
600
600
  export const WithAvatars: StoryObj<PreviewStoryArgs> = {
601
601
  render: function Render(args: PreviewStoryArgs) {
@@ -9,7 +9,7 @@ import { Label } from '../label/Label';
9
9
  /**
10
10
  * Use <a href="?path=/docs/forms-checkbox--docs">Checkbox</a> component instead when pairing with a label. Only use CheckboxButton when you need a standalone checkbox (e.g. settings matrix) and provide an `aria-label`.
11
11
  *
12
- * **Design guidance**: <a href="https://wise.design/components/checkbox" target="_blank">wise.design/components/checkbox</a>
12
+ * **Design guidance**: <a href="https://docs.wise.design/components/checkbox" target="_blank">wise.design/components/checkbox</a>
13
13
  */
14
14
  export default {
15
15
  component: CheckboxButton,
@@ -20,7 +20,7 @@ export type CheckboxOptionProps = Omit<BaseOptionProps, 'onChange'> & {
20
20
  * @deprecatedSince 46.104.0
21
21
  * @see [Source](../listItem/ListItem.tsx)
22
22
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
23
- * @see [Design docs](https://wise.design/components/list-item)
23
+ * @see [Design docs](https://docs.wise.design/components/list-item)
24
24
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
25
25
  */
26
26
  const CheckboxOption = forwardRef<ReferenceType, CheckboxOptionProps>(
@@ -8,7 +8,7 @@ import { storySourceWithoutNoise } from '../../.storybook/helpers';
8
8
  /**
9
9
  * Can be used for making a <a href="?path=/story/actions-chips--choice">choice</a>, or as a <a href="?path=/story/actions-chips--filter">filter</a> with multiple options.
10
10
  *
11
- * **Design guidance**: <a href="https://wise.design/components/chip" target="_blank">wise.design/components/chip</a>
11
+ * **Design guidance**: <a href="https://docs.wise.design/components/chip" target="_blank">wise.design/components/chip</a>
12
12
  */
13
13
  export default {
14
14
  component: Chips,
@@ -93,7 +93,7 @@ export const Playground: Story = storySourceWithoutNoise<typeof Chips>({
93
93
 
94
94
  /**
95
95
  * The user can select any number of chips with the selected prop as an array (`multiple` prop set to `true`). <br />
96
- * <a href="https://wise.design/components/chip#filter-chips" target="_blank">Design documentation</a>
96
+ * <a href="https://docs.wise.design/components/chip#filter-chips" target="_blank">Design documentation</a>
97
97
  */
98
98
  export const Filter: Story = storySourceWithoutNoise<typeof Chips>({
99
99
  args: {
@@ -124,7 +124,7 @@ export const Filter: Story = storySourceWithoutNoise<typeof Chips>({
124
124
 
125
125
  /**
126
126
  * The user can only select one chip with the selected prop as a single value (`multiple` prop set to `false`). <br />
127
- * <a href="https://wise.design/components/chip#choice-chips" target="_blank">Design documentation</a>
127
+ * <a href="https://docs.wise.design/components/chip#choice-chips" target="_blank">Design documentation</a>
128
128
  */
129
129
  export const Choice: Story = storySourceWithoutNoise<typeof Chips>({
130
130
  args: {
@@ -9,7 +9,7 @@ import SentimentSurface from '../sentimentSurface';
9
9
  /**
10
10
  * An <a href="?path=/docs/actions-iconbutton--docs">IconButton</a> with a text label below it.
11
11
  *
12
- * **Design guidance**: <a href="https://wise.design/components/circular-button" target="_blank">wise.design/components/circular-button</a>
12
+ * **Design guidance**: <a href="https://docs.wise.design/components/circular-button" target="_blank">wise.design/components/circular-button</a>
13
13
  */
14
14
  export default {
15
15
  component: CircularButton,
@@ -45,7 +45,7 @@ export const Playground: Story = {};
45
45
  /**
46
46
  * Priorities set a visual hierarchy amongst the buttons displayed on the
47
47
  * screen to help more important buttons to take precedence over others. <br />
48
- * [Design documentation](https://wise.design/components/circular-button#priority)
48
+ * [Design documentation](https://docs.wise.design/components/circular-button#priority)
49
49
  */
50
50
  export const Priority: Story = {
51
51
  args: {
@@ -83,7 +83,7 @@ export const Priority: Story = {
83
83
 
84
84
  /**
85
85
  * There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
86
- * [Design documentation](https://wise.design/components/circular-button#types)
86
+ * [Design documentation](https://docs.wise.design/components/circular-button#types)
87
87
  */
88
88
  export const Type: Story = {
89
89
  args: {
@@ -163,7 +163,7 @@ export const Disabled: Story = {
163
163
  /**
164
164
  * `CircularButton` is sentiment-aware and will automatically adjust its colours if wrapped inside
165
165
  * the <a href="?path=/docs/foundations-sentimentsurface--docs">SentimentSurface</a> component. <br />
166
- * [Design documentation](https://wise.design/components/circular-button)
166
+ * [Design documentation](https://docs.wise.design/components/circular-button)
167
167
  */
168
168
  export const SentimentAwareness: Story = {
169
169
  render: () => {
@@ -17,7 +17,7 @@ export type ContainerProps<T extends ElementType = 'div'> = PropsWithChildren<
17
17
  /**
18
18
  * Centers page content within a responsive max-width boundary, with automatic horizontal padding that adapts to the viewport size.
19
19
  *
20
- * **Design guidance**: <a href="https://wise.design/foundations/grid" target="_blank">wise.design/foundations/grid</a>
20
+ * **Design guidance**: <a href="https://docs.wise.design/foundations/grid" target="_blank">wise.design/foundations/grid</a>
21
21
  */
22
22
  const Container = <T extends ElementType = 'div'>({
23
23
  size = 'standard',
@@ -24,7 +24,7 @@ const hideControls = (args: string[]) => {
24
24
  * The stories below document the `<Divider />` component, which can be rendered as either a semantic `<hr>` or a non-semantic `<div>`.
25
25
  * levels allow customization for different visual separation needs.
26
26
  *
27
- * For more details, please refer to the [design documentation](https://wise.design/components/divider).
27
+ * For more details, please refer to the [design documentation](https://docs.wise.design/components/divider).
28
28
  */
29
29
  const meta: Meta<typeof Divider> = {
30
30
  component: Divider,
@@ -89,7 +89,7 @@ export const Playground: Story = {
89
89
  /**
90
90
  * There are three different types of divider – `section`, `subsection`, and `content` –
91
91
  * each designed to visually separate or group content. <br />
92
- * [Design documentation](https://wise.design/components/divider)
92
+ * [Design documentation](https://docs.wise.design/components/divider)
93
93
  */
94
94
  export const Level: Story = {
95
95
  argTypes: {
@@ -12,7 +12,7 @@ Given the `Header` is a key component for structuring content and conveying hier
12
12
  <ListItem
13
13
  title="Design guidance"
14
14
  subtitle="Before you start, familiarise yourself with the provided guidance."
15
- control={<ListItem.Navigation href="https://wise.design/components/section-header" />}
15
+ control={<ListItem.Navigation href="https://docs.wise.design/components/section-header" />}
16
16
  media={
17
17
  <ListItem.AvatarView>
18
18
  <Bulb />
@@ -15,7 +15,7 @@ const hideControls = (args: string[]) =>
15
15
 
16
16
  /**
17
17
  * The stories below document the `Header` component, which is used to structure content and convey hierarchy. <br />
18
- * For more details, refer to the [design documentation](https://wise.design/components/section-header).
18
+ * For more details, refer to the [design documentation](https://docs.wise.design/components/section-header).
19
19
  */
20
20
  const meta: Meta<typeof Header> = {
21
21
  component: Header,
@@ -17,7 +17,7 @@ import IconButton, { Props } from './IconButton';
17
17
  import SentimentSurface from '../sentimentSurface';
18
18
 
19
19
  /**
20
- * **Design guidance**: <a href="https://wise.design/components/icon-button" target="_blank">wise.design/components/icon-button</a>
20
+ * **Design guidance**: <a href="https://docs.wise.design/components/icon-button" target="_blank">wise.design/components/icon-button</a>
21
21
  */
22
22
  export default {
23
23
  title: 'Actions/IconButton',
@@ -64,7 +64,7 @@ export const Playground: Story = {
64
64
  /**
65
65
  * Priorities set a visual hierarchy amongst the buttons displayed on the
66
66
  * screen to help more important buttons to take precedence over others. <br />
67
- * <a href="https://wise.design/components/icon-button#priorities" target="_blank">Design documentation</a>
67
+ * <a href="https://docs.wise.design/components/icon-button#priorities" target="_blank">Design documentation</a>
68
68
  */
69
69
  export const Priority: Story = {
70
70
  args: {
@@ -109,7 +109,7 @@ export const Priority: Story = {
109
109
 
110
110
  /**
111
111
  * There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
112
- * <a href="https://wise.design/components/icon-button#types" target="_blank">Design documentation</a>
112
+ * <a href="https://docs.wise.design/components/icon-button#types" target="_blank">Design documentation</a>
113
113
  */
114
114
  export const Type: Story = {
115
115
  args: {
@@ -148,7 +148,7 @@ export const Type: Story = {
148
148
 
149
149
  /**
150
150
  * IconButton is available in 7 sizes: 16, 24, 32, 40, 48, 56, 72. <br />
151
- * <a href="https://wise.design/components/icon-button#sizes" target="_blank">Design documentation</a>
151
+ * <a href="https://docs.wise.design/components/icon-button#sizes" target="_blank">Design documentation</a>
152
152
  */
153
153
  export const Size: Story = {
154
154
  args: {
@@ -18,7 +18,7 @@ export type LegacyListItemProps = {
18
18
  * @deprecatedSince 46.104.0
19
19
  * @see [Source](../listItem/ListItem.tsx)
20
20
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
21
- * @see [Design docs](https://wise.design/components/list-item)
21
+ * @see [Design docs](https://docs.wise.design/components/list-item)
22
22
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
23
23
  */
24
24
  const LegacyListItem: FC<LegacyListItemProps> = ({
@@ -14,7 +14,7 @@ import type { ListItemAdditionalInfoProps } from './ListItemAdditionalInfo';
14
14
  /**
15
15
  * Use additional information to add extra details that help make the information clearer for users. Use additional information only after you've used the subtitle.
16
16
  *
17
- * Refer to the [design documentation](https://wise.design/components/list-item#content:~:text=StatusIcon.iconLabel.error-,Additional%20information,-Use%20additional%20information) for more details.
17
+ * Refer to the [design documentation](https://docs.wise.design/components/list-item#content:~:text=StatusIcon.iconLabel.error-,Additional%20information,-Use%20additional%20information) for more details.
18
18
  */
19
19
  export default {
20
20
  component: ListItem.AdditionalInfo,
@@ -58,7 +58,7 @@ export const Playground: Story = {
58
58
 
59
59
  /**
60
60
  * AvatarLayout supports two orientations: horizontal (default) and diagonal. <br />
61
- * Please refer to the [design documentation](https://wise.design/components/avatar#double) for more details.
61
+ * Please refer to the [design documentation](https://docs.wise.design/components/avatar#double) for more details.
62
62
  */
63
63
  export const Orientations: Story = {
64
64
  argTypes: disableControls()(['orientation']),