@transferwise/components 0.0.0-experimental-4f2af7f → 0.0.0-experimental-8bbf3ee

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 (263) 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/index.js +0 -2
  6. package/build/index.js.map +1 -1
  7. package/build/index.mjs +0 -1
  8. package/build/index.mjs.map +1 -1
  9. package/build/legacylistItem/LegacyListItem.js.map +1 -1
  10. package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
  11. package/build/main.css +1 -771
  12. package/build/navigationOption/NavigationOption.js.map +1 -1
  13. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  14. package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
  15. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  16. package/build/radioOption/RadioOption.js.map +1 -1
  17. package/build/radioOption/RadioOption.mjs.map +1 -1
  18. package/build/styles/button/Button.css +1 -1
  19. package/build/styles/main.css +1 -771
  20. package/build/summary/Summary.js +0 -8
  21. package/build/summary/Summary.js.map +1 -1
  22. package/build/summary/Summary.mjs +0 -8
  23. package/build/summary/Summary.mjs.map +1 -1
  24. package/build/switchOption/SwitchOption.js +0 -8
  25. package/build/switchOption/SwitchOption.js.map +1 -1
  26. package/build/switchOption/SwitchOption.mjs +0 -8
  27. package/build/switchOption/SwitchOption.mjs.map +1 -1
  28. package/build/types/actionOption/ActionOption.d.ts +0 -8
  29. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  30. package/build/types/checkboxOption/CheckboxOption.d.ts +0 -8
  31. package/build/types/checkboxOption/CheckboxOption.d.ts.map +1 -1
  32. package/build/types/index.d.ts +0 -2
  33. package/build/types/index.d.ts.map +1 -1
  34. package/build/types/legacylistItem/LegacyListItem.d.ts +0 -8
  35. package/build/types/legacylistItem/LegacyListItem.d.ts.map +1 -1
  36. package/build/types/navigationOption/NavigationOption.d.ts +0 -8
  37. package/build/types/navigationOption/NavigationOption.d.ts.map +1 -1
  38. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +0 -9
  39. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -1
  40. package/build/types/radioOption/RadioOption.d.ts +0 -8
  41. package/build/types/radioOption/RadioOption.d.ts.map +1 -1
  42. package/build/types/summary/Summary.d.ts +0 -8
  43. package/build/types/summary/Summary.d.ts.map +1 -1
  44. package/build/types/switchOption/SwitchOption.d.ts +0 -8
  45. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/src/actionButton/ActionButton.story.tsx +1 -1
  48. package/src/actionOption/ActionOption.story.tsx +0 -4
  49. package/src/actionOption/ActionOption.tsx +0 -8
  50. package/src/avatar/Avatar.story.tsx +1 -1
  51. package/src/avatarWrapper/AvatarWrapper.story.tsx +1 -1
  52. package/src/badge/Badge.story.tsx +1 -1
  53. package/src/button/Button.css +1 -1
  54. package/src/button/Button.less +1 -1
  55. package/src/button/Button.story.tsx +46 -10
  56. package/src/button/LegacyButton.story.tsx +1 -1
  57. package/src/checkboxOption/CheckboxOption.story.tsx +0 -4
  58. package/src/checkboxOption/CheckboxOption.tsx +0 -8
  59. package/src/index.ts +0 -15
  60. package/src/legacylistItem/LegacyListItem.story.tsx +1 -5
  61. package/src/legacylistItem/LegacyListItem.tests.story.tsx +1 -2
  62. package/src/legacylistItem/LegacyListItem.tsx +0 -8
  63. package/src/list/List.story.tsx +3 -13
  64. package/src/main.css +1 -771
  65. package/src/main.less +0 -1
  66. package/src/navigationOption/NavigationOption.story.tsx +1 -4
  67. package/src/navigationOption/NavigationOption.tsx +0 -8
  68. package/src/navigationOptionsList/NavigationOptionsList.story.tsx +0 -4
  69. package/src/navigationOptionsList/NavigationOptionsList.tsx +0 -9
  70. package/src/radioOption/RadioOption.story.tsx +0 -4
  71. package/src/radioOption/RadioOption.tsx +0 -8
  72. package/src/select/Select.story.tsx +1 -1
  73. package/src/summary/Summary.story.tsx +0 -4
  74. package/src/summary/Summary.tsx +0 -8
  75. package/src/switchOption/SwitchOption.story.tsx +1 -4
  76. package/src/switchOption/SwitchOption.tsx +0 -8
  77. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +0 -56
  78. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +0 -1
  79. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +0 -54
  80. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +0 -1
  81. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +0 -23
  82. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +0 -1
  83. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +0 -21
  84. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +0 -1
  85. package/build/listItem/AvatarView/ListItemAvatarView.js +0 -23
  86. package/build/listItem/AvatarView/ListItemAvatarView.js.map +0 -1
  87. package/build/listItem/AvatarView/ListItemAvatarView.mjs +0 -21
  88. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +0 -1
  89. package/build/listItem/Button/ListItemButton.js +0 -43
  90. package/build/listItem/Button/ListItemButton.js.map +0 -1
  91. package/build/listItem/Button/ListItemButton.mjs +0 -41
  92. package/build/listItem/Button/ListItemButton.mjs.map +0 -1
  93. package/build/listItem/Checkbox/ListItemCheckbox.js +0 -30
  94. package/build/listItem/Checkbox/ListItemCheckbox.js.map +0 -1
  95. package/build/listItem/Checkbox/ListItemCheckbox.mjs +0 -28
  96. package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +0 -1
  97. package/build/listItem/IconButton/ListItemIconButton.js +0 -56
  98. package/build/listItem/IconButton/ListItemIconButton.js.map +0 -1
  99. package/build/listItem/IconButton/ListItemIconButton.mjs +0 -54
  100. package/build/listItem/IconButton/ListItemIconButton.mjs.map +0 -1
  101. package/build/listItem/Image/ListItemImage.js +0 -31
  102. package/build/listItem/Image/ListItemImage.js.map +0 -1
  103. package/build/listItem/Image/ListItemImage.mjs +0 -29
  104. package/build/listItem/Image/ListItemImage.mjs.map +0 -1
  105. package/build/listItem/ListItem.js +0 -309
  106. package/build/listItem/ListItem.js.map +0 -1
  107. package/build/listItem/ListItem.mjs +0 -304
  108. package/build/listItem/ListItem.mjs.map +0 -1
  109. package/build/listItem/ListItemContext.js +0 -8
  110. package/build/listItem/ListItemContext.js.map +0 -1
  111. package/build/listItem/ListItemContext.mjs +0 -6
  112. package/build/listItem/ListItemContext.mjs.map +0 -1
  113. package/build/listItem/Navigation/ListItemNavigation.js +0 -44
  114. package/build/listItem/Navigation/ListItemNavigation.js.map +0 -1
  115. package/build/listItem/Navigation/ListItemNavigation.mjs +0 -42
  116. package/build/listItem/Navigation/ListItemNavigation.mjs.map +0 -1
  117. package/build/listItem/Prompt/ListItemPrompt.js +0 -59
  118. package/build/listItem/Prompt/ListItemPrompt.js.map +0 -1
  119. package/build/listItem/Prompt/ListItemPrompt.mjs +0 -54
  120. package/build/listItem/Prompt/ListItemPrompt.mjs.map +0 -1
  121. package/build/listItem/Radio/ListItemRadio.js +0 -30
  122. package/build/listItem/Radio/ListItemRadio.js.map +0 -1
  123. package/build/listItem/Radio/ListItemRadio.mjs +0 -28
  124. package/build/listItem/Radio/ListItemRadio.mjs.map +0 -1
  125. package/build/listItem/Switch/ListItemSwitch.js +0 -30
  126. package/build/listItem/Switch/ListItemSwitch.js.map +0 -1
  127. package/build/listItem/Switch/ListItemSwitch.mjs +0 -28
  128. package/build/listItem/Switch/ListItemSwitch.mjs.map +0 -1
  129. package/build/listItem/useListItemControl.js +0 -22
  130. package/build/listItem/useListItemControl.js.map +0 -1
  131. package/build/listItem/useListItemControl.mjs +0 -20
  132. package/build/listItem/useListItemControl.mjs.map +0 -1
  133. package/build/listItem/useListItemMedia.js +0 -21
  134. package/build/listItem/useListItemMedia.js.map +0 -1
  135. package/build/listItem/useListItemMedia.mjs +0 -19
  136. package/build/listItem/useListItemMedia.mjs.map +0 -1
  137. package/build/styles/listItem/ListItem.css +0 -770
  138. package/build/styles/listItem/ListItem.grid.css +0 -370
  139. package/build/styles/listItem/Prompt/ListItemPrompt.css +0 -157
  140. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts +0 -15
  141. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +0 -1
  142. package/build/types/listItem/AdditionalInfo/index.d.ts +0 -3
  143. package/build/types/listItem/AdditionalInfo/index.d.ts.map +0 -1
  144. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +0 -18
  145. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +0 -1
  146. package/build/types/listItem/AvatarLayout/index.d.ts +0 -3
  147. package/build/types/listItem/AvatarLayout/index.d.ts.map +0 -1
  148. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +0 -16
  149. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +0 -1
  150. package/build/types/listItem/AvatarView/index.d.ts +0 -3
  151. package/build/types/listItem/AvatarView/index.d.ts.map +0 -1
  152. package/build/types/listItem/Button/ListItemButton.d.ts +0 -20
  153. package/build/types/listItem/Button/ListItemButton.d.ts.map +0 -1
  154. package/build/types/listItem/Button/index.d.ts +0 -3
  155. package/build/types/listItem/Button/index.d.ts.map +0 -1
  156. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +0 -14
  157. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts.map +0 -1
  158. package/build/types/listItem/Checkbox/index.d.ts +0 -3
  159. package/build/types/listItem/Checkbox/index.d.ts.map +0 -1
  160. package/build/types/listItem/IconButton/ListItemIconButton.d.ts +0 -18
  161. package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +0 -1
  162. package/build/types/listItem/IconButton/index.d.ts +0 -3
  163. package/build/types/listItem/IconButton/index.d.ts.map +0 -1
  164. package/build/types/listItem/Image/ListItemImage.d.ts +0 -25
  165. package/build/types/listItem/Image/ListItemImage.d.ts.map +0 -1
  166. package/build/types/listItem/Image/index.d.ts +0 -3
  167. package/build/types/listItem/Image/index.d.ts.map +0 -1
  168. package/build/types/listItem/ListItem.d.ts +0 -111
  169. package/build/types/listItem/ListItem.d.ts.map +0 -1
  170. package/build/types/listItem/ListItemContext.d.ts +0 -21
  171. package/build/types/listItem/ListItemContext.d.ts.map +0 -1
  172. package/build/types/listItem/Navigation/ListItemNavigation.d.ts +0 -15
  173. package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +0 -1
  174. package/build/types/listItem/Navigation/index.d.ts +0 -3
  175. package/build/types/listItem/Navigation/index.d.ts.map +0 -1
  176. package/build/types/listItem/Prompt/ListItemPrompt.d.ts +0 -16
  177. package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +0 -1
  178. package/build/types/listItem/Prompt/index.d.ts +0 -3
  179. package/build/types/listItem/Prompt/index.d.ts.map +0 -1
  180. package/build/types/listItem/Radio/ListItemRadio.d.ts +0 -14
  181. package/build/types/listItem/Radio/ListItemRadio.d.ts.map +0 -1
  182. package/build/types/listItem/Radio/index.d.ts +0 -3
  183. package/build/types/listItem/Radio/index.d.ts.map +0 -1
  184. package/build/types/listItem/Switch/ListItemSwitch.d.ts +0 -14
  185. package/build/types/listItem/Switch/ListItemSwitch.d.ts.map +0 -1
  186. package/build/types/listItem/Switch/index.d.ts +0 -3
  187. package/build/types/listItem/Switch/index.d.ts.map +0 -1
  188. package/build/types/listItem/_stories/helpers.d.ts +0 -27
  189. package/build/types/listItem/_stories/helpers.d.ts.map +0 -1
  190. package/build/types/listItem/_stories/subcomponents.d.ts +0 -18
  191. package/build/types/listItem/_stories/subcomponents.d.ts.map +0 -1
  192. package/build/types/listItem/index.d.ts +0 -14
  193. package/build/types/listItem/index.d.ts.map +0 -1
  194. package/build/types/listItem/test-utils.d.ts +0 -7
  195. package/build/types/listItem/test-utils.d.ts.map +0 -1
  196. package/build/types/listItem/useListItemControl.d.ts +0 -5
  197. package/build/types/listItem/useListItemControl.d.ts.map +0 -1
  198. package/build/types/listItem/useListItemMedia.d.ts +0 -6
  199. package/build/types/listItem/useListItemMedia.d.ts.map +0 -1
  200. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.spec.tsx +0 -56
  201. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +0 -198
  202. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.tsx +0 -36
  203. package/src/listItem/AdditionalInfo/index.ts +0 -2
  204. package/src/listItem/AvatarLayout/ListItemAvatarLayout.spec.tsx +0 -59
  205. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +0 -124
  206. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +0 -27
  207. package/src/listItem/AvatarLayout/index.ts +0 -2
  208. package/src/listItem/AvatarView/ListItemAvatarView.spec.tsx +0 -75
  209. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +0 -339
  210. package/src/listItem/AvatarView/ListItemAvatarView.tsx +0 -27
  211. package/src/listItem/AvatarView/index.ts +0 -2
  212. package/src/listItem/Button/ListItemButton.spec.tsx +0 -68
  213. package/src/listItem/Button/ListItemButton.story.tsx +0 -473
  214. package/src/listItem/Button/ListItemButton.tsx +0 -56
  215. package/src/listItem/Button/index.ts +0 -2
  216. package/src/listItem/Checkbox/ListItemCheckbox.spec.tsx +0 -82
  217. package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +0 -128
  218. package/src/listItem/Checkbox/ListItemCheckbox.tsx +0 -33
  219. package/src/listItem/Checkbox/index.ts +0 -2
  220. package/src/listItem/IconButton/ListItemIconButton.spec.tsx +0 -119
  221. package/src/listItem/IconButton/ListItemIconButton.story.tsx +0 -284
  222. package/src/listItem/IconButton/ListItemIconButton.tsx +0 -73
  223. package/src/listItem/IconButton/index.ts +0 -2
  224. package/src/listItem/Image/ListItemImage.spec.tsx +0 -30
  225. package/src/listItem/Image/ListItemImage.story.tsx +0 -80
  226. package/src/listItem/Image/ListItemImage.tsx +0 -46
  227. package/src/listItem/Image/index.ts +0 -2
  228. package/src/listItem/ListItem.css +0 -770
  229. package/src/listItem/ListItem.grid.css +0 -370
  230. package/src/listItem/ListItem.grid.less +0 -622
  231. package/src/listItem/ListItem.less +0 -287
  232. package/src/listItem/ListItem.spec.tsx +0 -1511
  233. package/src/listItem/ListItem.tsx +0 -438
  234. package/src/listItem/ListItemContext.tsx +0 -26
  235. package/src/listItem/Navigation/ListItemNavigation.spec.tsx +0 -59
  236. package/src/listItem/Navigation/ListItemNavigation.story.tsx +0 -112
  237. package/src/listItem/Navigation/ListItemNavigation.tsx +0 -39
  238. package/src/listItem/Navigation/index.ts +0 -2
  239. package/src/listItem/Prompt/ListItemPrompt.css +0 -157
  240. package/src/listItem/Prompt/ListItemPrompt.less +0 -134
  241. package/src/listItem/Prompt/ListItemPrompt.spec.tsx +0 -36
  242. package/src/listItem/Prompt/ListItemPrompt.story.tsx +0 -204
  243. package/src/listItem/Prompt/ListItemPrompt.tsx +0 -32
  244. package/src/listItem/Prompt/index.ts +0 -2
  245. package/src/listItem/Radio/ListItemRadio.spec.tsx +0 -66
  246. package/src/listItem/Radio/ListItemRadio.story.tsx +0 -111
  247. package/src/listItem/Radio/ListItemRadio.tsx +0 -33
  248. package/src/listItem/Radio/index.ts +0 -2
  249. package/src/listItem/Switch/ListItemSwitch.spec.tsx +0 -47
  250. package/src/listItem/Switch/ListItemSwitch.story.tsx +0 -79
  251. package/src/listItem/Switch/ListItemSwitch.tsx +0 -33
  252. package/src/listItem/Switch/index.ts +0 -2
  253. package/src/listItem/_stories/ListItem.focus.test.story.tsx +0 -265
  254. package/src/listItem/_stories/ListItem.layout.test.story.tsx +0 -354
  255. package/src/listItem/_stories/ListItem.scenarios.story.tsx +0 -228
  256. package/src/listItem/_stories/ListItem.story.tsx +0 -774
  257. package/src/listItem/_stories/ListItem.variants.test.story.tsx +0 -271
  258. package/src/listItem/_stories/helpers.tsx +0 -53
  259. package/src/listItem/_stories/subcomponents.tsx +0 -139
  260. package/src/listItem/index.ts +0 -14
  261. package/src/listItem/test-utils.tsx +0 -33
  262. package/src/listItem/useListItemControl.tsx +0 -18
  263. package/src/listItem/useListItemMedia.tsx +0 -16
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationOption.js","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\n/**\n * @deprecated Please use `<ListItem />` instead.\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 NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,gBAAgB,gBAAGC,gBAAU,CACjC,CAAC;EAAEC,EAAE,EAAEC,SAAS,GAAG,QAAQ;AAAEC,EAAAA,QAAQ,GAAG,KAAK;EAAEC,OAAO;EAAEC,SAAS;EAAE,GAAGC;AAAI,CAAE,EAAEC,SAAS,KAAI;AACzF,EAAA,IAAI,MAAM,IAAID,IAAI,IAAIA,IAAI,CAACE,IAAI,EAAE;AAC/BN,IAAAA,SAAS,GAAG,GAAG;AACjB,EAAA;EAEA,oBACEO,cAAA,CAACC,cAAM,EAAA;AAAA,IAAA,GACDJ,IAAI;AACRK,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,EAAE,EAAEC,SAAU;AACdG,IAAAA,SAAS,EAAEO,SAAI,CAAC,sBAAsB,EAAEP,SAAS,CAAE;IACnDQ,MAAM,eAAEJ,cAAA,CAACK,eAAO,EAAA;MAACC,WAAW,EAAEC,iBAAQ,CAACC,KAAM;AAACd,MAAAA,QAAQ,EAAEA,QAAS;AAACE,MAAAA,SAAS,EAAC;AAAS,KAAA,CAAI;AACzFF,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAGc,KAAK,IAAI;AACjB,MAAA,IAAIf,QAAQ,EAAE;QACZe,KAAK,CAACC,cAAc,EAAE;AACtB,QAAA;AACF,MAAA;AAEA,MAAA,IAAIf,OAAO,EAAE;QACXA,OAAO,CAACc,KAAK,CAAC;AAChB,MAAA;AACF,IAAA;AAAE,GAAA,CACF;AAEN,CAAC;;;;"}
1
+ {"version":3,"file":"NavigationOption.js","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\nconst NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,gBAAgB,gBAAGC,gBAAU,CACjC,CAAC;EAAEC,EAAE,EAAEC,SAAS,GAAG,QAAQ;AAAEC,EAAAA,QAAQ,GAAG,KAAK;EAAEC,OAAO;EAAEC,SAAS;EAAE,GAAGC;AAAI,CAAE,EAAEC,SAAS,KAAI;AACzF,EAAA,IAAI,MAAM,IAAID,IAAI,IAAIA,IAAI,CAACE,IAAI,EAAE;AAC/BN,IAAAA,SAAS,GAAG,GAAG;AACjB,EAAA;EAEA,oBACEO,cAAA,CAACC,cAAM,EAAA;AAAA,IAAA,GACDJ,IAAI;AACRK,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,EAAE,EAAEC,SAAU;AACdG,IAAAA,SAAS,EAAEO,SAAI,CAAC,sBAAsB,EAAEP,SAAS,CAAE;IACnDQ,MAAM,eAAEJ,cAAA,CAACK,eAAO,EAAA;MAACC,WAAW,EAAEC,iBAAQ,CAACC,KAAM;AAACd,MAAAA,QAAQ,EAAEA,QAAS;AAACE,MAAAA,SAAS,EAAC;AAAS,KAAA,CAAI;AACzFF,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAGc,KAAK,IAAI;AACjB,MAAA,IAAIf,QAAQ,EAAE;QACZe,KAAK,CAACC,cAAc,EAAE;AACtB,QAAA;AACF,MAAA;AAEA,MAAA,IAAIf,OAAO,EAAE;QACXA,OAAO,CAACc,KAAK,CAAC;AAChB,MAAA;AACF,IAAA;AAAE,GAAA,CACF;AAEN,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationOption.mjs","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\n/**\n * @deprecated Please use `<ListItem />` instead.\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 NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,gBAAgB,gBAAGC,UAAU,CACjC,CAAC;EAAEC,EAAE,EAAEC,SAAS,GAAG,QAAQ;AAAEC,EAAAA,QAAQ,GAAG,KAAK;EAAEC,OAAO;EAAEC,SAAS;EAAE,GAAGC;AAAI,CAAE,EAAEC,SAAS,KAAI;AACzF,EAAA,IAAI,MAAM,IAAID,IAAI,IAAIA,IAAI,CAACE,IAAI,EAAE;AAC/BN,IAAAA,SAAS,GAAG,GAAG;AACjB,EAAA;EAEA,oBACEO,GAAA,CAACC,MAAM,EAAA;AAAA,IAAA,GACDJ,IAAI;AACRK,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,EAAE,EAAEC,SAAU;AACdG,IAAAA,SAAS,EAAEO,IAAI,CAAC,sBAAsB,EAAEP,SAAS,CAAE;IACnDQ,MAAM,eAAEJ,GAAA,CAACK,OAAO,EAAA;MAACC,WAAW,EAAEC,QAAQ,CAACC,KAAM;AAACd,MAAAA,QAAQ,EAAEA,QAAS;AAACE,MAAAA,SAAS,EAAC;AAAS,KAAA,CAAI;AACzFF,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAGc,KAAK,IAAI;AACjB,MAAA,IAAIf,QAAQ,EAAE;QACZe,KAAK,CAACC,cAAc,EAAE;AACtB,QAAA;AACF,MAAA;AAEA,MAAA,IAAIf,OAAO,EAAE;QACXA,OAAO,CAACc,KAAK,CAAC;AAChB,MAAA;AACF,IAAA;AAAE,GAAA,CACF;AAEN,CAAC;;;;"}
1
+ {"version":3,"file":"NavigationOption.mjs","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\nconst NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,gBAAgB,gBAAGC,UAAU,CACjC,CAAC;EAAEC,EAAE,EAAEC,SAAS,GAAG,QAAQ;AAAEC,EAAAA,QAAQ,GAAG,KAAK;EAAEC,OAAO;EAAEC,SAAS;EAAE,GAAGC;AAAI,CAAE,EAAEC,SAAS,KAAI;AACzF,EAAA,IAAI,MAAM,IAAID,IAAI,IAAIA,IAAI,CAACE,IAAI,EAAE;AAC/BN,IAAAA,SAAS,GAAG,GAAG;AACjB,EAAA;EAEA,oBACEO,GAAA,CAACC,MAAM,EAAA;AAAA,IAAA,GACDJ,IAAI;AACRK,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,EAAE,EAAEC,SAAU;AACdG,IAAAA,SAAS,EAAEO,IAAI,CAAC,sBAAsB,EAAEP,SAAS,CAAE;IACnDQ,MAAM,eAAEJ,GAAA,CAACK,OAAO,EAAA;MAACC,WAAW,EAAEC,QAAQ,CAACC,KAAM;AAACd,MAAAA,QAAQ,EAAEA,QAAS;AAACE,MAAAA,SAAS,EAAC;AAAS,KAAA,CAAI;AACzFF,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAGc,KAAK,IAAI;AACjB,MAAA,IAAIf,QAAQ,EAAE;QACZe,KAAK,CAACC,cAAc,EAAE;AACtB,QAAA;AACF,MAAA;AAEA,MAAA,IAAIf,OAAO,EAAE;QACXA,OAAO,CAACc,KAAK,CAAC;AAChB,MAAA;AACF,IAAA;AAAE,GAAA,CACF;AAEN,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationOptionsList.js","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\n/**\n * @deprecated Please use `<List />` and `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [List source](../list/List.tsx)\n * @see [ListItem 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 NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;;;;;AAgBA,MAAMA,oBAAoB,GAAGA,CAAC;AAAEC,EAAAA;AAAQ,CAA6B,KAAI;AACvE,EAAA,oBACEC,cAAA,CAAA,IAAA,EAAA;AAAIC,IAAAA,SAAS,EAAC,4BAA4B;IAAAF,QAAA,EACvCG,cAAQ,CAACC,GAAG,CAACJ,QAAQ,EAAGK,KAAK,iBAC5BJ,cAAA,CAAA,IAAA,EAAA;AAA4BC,MAAAA,SAAS,EAAC,kCAAkC;AAAAF,MAAAA,QAAA,EACrEK;AAAK,KAAA,EADCA,KAAK,EAAEC,QAAQ,EAEpB,CACL;AAAC,GACA,CAAC;AAET;;;;"}
1
+ {"version":3,"file":"NavigationOptionsList.js","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\nconst NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;;;;;AAOA,MAAMA,oBAAoB,GAAGA,CAAC;AAAEC,EAAAA;AAAQ,CAA6B,KAAI;AACvE,EAAA,oBACEC,cAAA,CAAA,IAAA,EAAA;AAAIC,IAAAA,SAAS,EAAC,4BAA4B;IAAAF,QAAA,EACvCG,cAAQ,CAACC,GAAG,CAACJ,QAAQ,EAAGK,KAAK,iBAC5BJ,cAAA,CAAA,IAAA,EAAA;AAA4BC,MAAAA,SAAS,EAAC,kCAAkC;AAAAF,MAAAA,QAAA,EACrEK;AAAK,KAAA,EADCA,KAAK,EAAEC,QAAQ,EAEpB,CACL;AAAC,GACA,CAAC;AAET;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationOptionsList.mjs","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\n/**\n * @deprecated Please use `<List />` and `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [List source](../list/List.tsx)\n * @see [ListItem 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 NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;AAgBA,MAAMA,oBAAoB,GAAGA,CAAC;AAAEC,EAAAA;AAAQ,CAA6B,KAAI;AACvE,EAAA,oBACEC,GAAA,CAAA,IAAA,EAAA;AAAIC,IAAAA,SAAS,EAAC,4BAA4B;IAAAF,QAAA,EACvCG,QAAQ,CAACC,GAAG,CAACJ,QAAQ,EAAGK,KAAK,iBAC5BJ,GAAA,CAAA,IAAA,EAAA;AAA4BC,MAAAA,SAAS,EAAC,kCAAkC;AAAAF,MAAAA,QAAA,EACrEK;AAAK,KAAA,EADCA,KAAK,EAAEC,QAAQ,EAEpB,CACL;AAAC,GACA,CAAC;AAET;;;;"}
1
+ {"version":3,"file":"NavigationOptionsList.mjs","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\nconst NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;AAOA,MAAMA,oBAAoB,GAAGA,CAAC;AAAEC,EAAAA;AAAQ,CAA6B,KAAI;AACvE,EAAA,oBACEC,GAAA,CAAA,IAAA,EAAA;AAAIC,IAAAA,SAAS,EAAC,4BAA4B;IAAAF,QAAA,EACvCG,QAAQ,CAACC,GAAG,CAACJ,QAAQ,EAAGK,KAAK,iBAC5BJ,GAAA,CAAA,IAAA,EAAA;AAA4BC,MAAAA,SAAS,EAAC,kCAAkC;AAAAF,MAAAA,QAAA,EACrEK;AAAK,KAAA,EADCA,KAAK,EAAEC,QAAQ,EAEpB,CACL;AAAC,GACA,CAAC;AAET;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioOption.js","sources":["../../src/radioOption/RadioOption.tsx"],"sourcesContent":["import Option from '../common/Option';\nimport RadioButton from '../common/RadioButton';\nimport { RadioButtonProps } from '../common/RadioButton/RadioButton';\n\nexport interface RadioOptionProps<T extends string | number = string>\n extends Required<Pick<RadioButtonProps<T>, 'id' | 'name' | 'onChange'>>,\n Omit<RadioButtonProps<T>, 'readOnly' | 'id' | 'name' | 'onChange'> {\n 'aria-label'?: string;\n media?: React.ReactNode;\n title: React.ReactNode;\n content?: React.ReactNode;\n complex?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n}\n\n/**\n * @deprecated Please use `<ListItem />` instead.\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 */\nfunction RadioOption<T extends string | number = ''>({\n 'aria-label': ariaLabel,\n media,\n title,\n content,\n id,\n name,\n checked,\n onChange,\n complex,\n disabled,\n value = '' as T,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n}: RadioOptionProps<T>) {\n return (\n <Option\n aria-label={ariaLabel}\n media={media}\n title={title}\n content={content}\n name={name}\n complex={complex}\n disabled={disabled}\n showMediaCircle={showMediaCircle}\n showMediaAtAllSizes={showMediaAtAllSizes}\n isContainerAligned={isContainerAligned}\n button={\n <RadioButton\n id={id}\n name={name}\n checked={checked}\n disabled={disabled}\n value={value}\n onChange={onChange}\n />\n }\n />\n );\n}\n\nexport default RadioOption;\n"],"names":["RadioOption","ariaLabel","media","title","content","id","name","checked","onChange","complex","disabled","value","showMediaCircle","showMediaAtAllSizes","isContainerAligned","_jsx","Option","button","RadioButton"],"mappings":";;;;;;;;AAyBA,SAASA,WAAWA,CAAiC;AACnD,EAAA,YAAY,EAAEC,SAAS;EACvBC,KAAK;EACLC,KAAK;EACLC,OAAO;EACPC,EAAE;EACFC,IAAI;EACJC,OAAO;EACPC,QAAQ;EACRC,OAAO;EACPC,QAAQ;AACRC,EAAAA,KAAK,GAAG,EAAO;EACfC,eAAe;EACfC,mBAAmB;AACnBC,EAAAA;AAAkB,CACE,EAAA;EACpB,oBACEC,cAAA,CAACC,cAAM,EAAA;AACL,IAAA,YAAA,EAAYf,SAAU;AACtBC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBE,IAAAA,IAAI,EAAEA,IAAK;AACXG,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,eAAe,EAAEA,eAAgB;AACjCC,IAAAA,mBAAmB,EAAEA,mBAAoB;AACzCC,IAAAA,kBAAkB,EAAEA,kBAAmB;IACvCG,MAAM,eACJF,cAAA,CAACG,mBAAW,EAAA;AACVb,MAAAA,EAAE,EAAEA,EAAG;AACPC,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnBC,MAAAA,KAAK,EAAEA,KAAM;AACbH,MAAAA,QAAQ,EAAEA;KAAS;AAEtB,GAAA,CACD;AAEN;;;;"}
1
+ {"version":3,"file":"RadioOption.js","sources":["../../src/radioOption/RadioOption.tsx"],"sourcesContent":["import Option from '../common/Option';\nimport RadioButton from '../common/RadioButton';\nimport { RadioButtonProps } from '../common/RadioButton/RadioButton';\n\nexport interface RadioOptionProps<T extends string | number = string>\n extends Required<Pick<RadioButtonProps<T>, 'id' | 'name' | 'onChange'>>,\n Omit<RadioButtonProps<T>, 'readOnly' | 'id' | 'name' | 'onChange'> {\n 'aria-label'?: string;\n media?: React.ReactNode;\n title: React.ReactNode;\n content?: React.ReactNode;\n complex?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n}\n\nfunction RadioOption<T extends string | number = ''>({\n 'aria-label': ariaLabel,\n media,\n title,\n content,\n id,\n name,\n checked,\n onChange,\n complex,\n disabled,\n value = '' as T,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n}: RadioOptionProps<T>) {\n return (\n <Option\n aria-label={ariaLabel}\n media={media}\n title={title}\n content={content}\n name={name}\n complex={complex}\n disabled={disabled}\n showMediaCircle={showMediaCircle}\n showMediaAtAllSizes={showMediaAtAllSizes}\n isContainerAligned={isContainerAligned}\n button={\n <RadioButton\n id={id}\n name={name}\n checked={checked}\n disabled={disabled}\n value={value}\n onChange={onChange}\n />\n }\n />\n );\n}\n\nexport default RadioOption;\n"],"names":["RadioOption","ariaLabel","media","title","content","id","name","checked","onChange","complex","disabled","value","showMediaCircle","showMediaAtAllSizes","isContainerAligned","_jsx","Option","button","RadioButton"],"mappings":";;;;;;;;AAiBA,SAASA,WAAWA,CAAiC;AACnD,EAAA,YAAY,EAAEC,SAAS;EACvBC,KAAK;EACLC,KAAK;EACLC,OAAO;EACPC,EAAE;EACFC,IAAI;EACJC,OAAO;EACPC,QAAQ;EACRC,OAAO;EACPC,QAAQ;AACRC,EAAAA,KAAK,GAAG,EAAO;EACfC,eAAe;EACfC,mBAAmB;AACnBC,EAAAA;AAAkB,CACE,EAAA;EACpB,oBACEC,cAAA,CAACC,cAAM,EAAA;AACL,IAAA,YAAA,EAAYf,SAAU;AACtBC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBE,IAAAA,IAAI,EAAEA,IAAK;AACXG,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,eAAe,EAAEA,eAAgB;AACjCC,IAAAA,mBAAmB,EAAEA,mBAAoB;AACzCC,IAAAA,kBAAkB,EAAEA,kBAAmB;IACvCG,MAAM,eACJF,cAAA,CAACG,mBAAW,EAAA;AACVb,MAAAA,EAAE,EAAEA,EAAG;AACPC,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnBC,MAAAA,KAAK,EAAEA,KAAM;AACbH,MAAAA,QAAQ,EAAEA;KAAS;AAEtB,GAAA,CACD;AAEN;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioOption.mjs","sources":["../../src/radioOption/RadioOption.tsx"],"sourcesContent":["import Option from '../common/Option';\nimport RadioButton from '../common/RadioButton';\nimport { RadioButtonProps } from '../common/RadioButton/RadioButton';\n\nexport interface RadioOptionProps<T extends string | number = string>\n extends Required<Pick<RadioButtonProps<T>, 'id' | 'name' | 'onChange'>>,\n Omit<RadioButtonProps<T>, 'readOnly' | 'id' | 'name' | 'onChange'> {\n 'aria-label'?: string;\n media?: React.ReactNode;\n title: React.ReactNode;\n content?: React.ReactNode;\n complex?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n}\n\n/**\n * @deprecated Please use `<ListItem />` instead.\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 */\nfunction RadioOption<T extends string | number = ''>({\n 'aria-label': ariaLabel,\n media,\n title,\n content,\n id,\n name,\n checked,\n onChange,\n complex,\n disabled,\n value = '' as T,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n}: RadioOptionProps<T>) {\n return (\n <Option\n aria-label={ariaLabel}\n media={media}\n title={title}\n content={content}\n name={name}\n complex={complex}\n disabled={disabled}\n showMediaCircle={showMediaCircle}\n showMediaAtAllSizes={showMediaAtAllSizes}\n isContainerAligned={isContainerAligned}\n button={\n <RadioButton\n id={id}\n name={name}\n checked={checked}\n disabled={disabled}\n value={value}\n onChange={onChange}\n />\n }\n />\n );\n}\n\nexport default RadioOption;\n"],"names":["RadioOption","ariaLabel","media","title","content","id","name","checked","onChange","complex","disabled","value","showMediaCircle","showMediaAtAllSizes","isContainerAligned","_jsx","Option","button","RadioButton"],"mappings":";;;;AAyBA,SAASA,WAAWA,CAAiC;AACnD,EAAA,YAAY,EAAEC,SAAS;EACvBC,KAAK;EACLC,KAAK;EACLC,OAAO;EACPC,EAAE;EACFC,IAAI;EACJC,OAAO;EACPC,QAAQ;EACRC,OAAO;EACPC,QAAQ;AACRC,EAAAA,KAAK,GAAG,EAAO;EACfC,eAAe;EACfC,mBAAmB;AACnBC,EAAAA;AAAkB,CACE,EAAA;EACpB,oBACEC,GAAA,CAACC,MAAM,EAAA;AACL,IAAA,YAAA,EAAYf,SAAU;AACtBC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBE,IAAAA,IAAI,EAAEA,IAAK;AACXG,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,eAAe,EAAEA,eAAgB;AACjCC,IAAAA,mBAAmB,EAAEA,mBAAoB;AACzCC,IAAAA,kBAAkB,EAAEA,kBAAmB;IACvCG,MAAM,eACJF,GAAA,CAACG,WAAW,EAAA;AACVb,MAAAA,EAAE,EAAEA,EAAG;AACPC,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnBC,MAAAA,KAAK,EAAEA,KAAM;AACbH,MAAAA,QAAQ,EAAEA;KAAS;AAEtB,GAAA,CACD;AAEN;;;;"}
1
+ {"version":3,"file":"RadioOption.mjs","sources":["../../src/radioOption/RadioOption.tsx"],"sourcesContent":["import Option from '../common/Option';\nimport RadioButton from '../common/RadioButton';\nimport { RadioButtonProps } from '../common/RadioButton/RadioButton';\n\nexport interface RadioOptionProps<T extends string | number = string>\n extends Required<Pick<RadioButtonProps<T>, 'id' | 'name' | 'onChange'>>,\n Omit<RadioButtonProps<T>, 'readOnly' | 'id' | 'name' | 'onChange'> {\n 'aria-label'?: string;\n media?: React.ReactNode;\n title: React.ReactNode;\n content?: React.ReactNode;\n complex?: boolean;\n showMediaCircle?: boolean;\n showMediaAtAllSizes?: boolean;\n isContainerAligned?: boolean;\n}\n\nfunction RadioOption<T extends string | number = ''>({\n 'aria-label': ariaLabel,\n media,\n title,\n content,\n id,\n name,\n checked,\n onChange,\n complex,\n disabled,\n value = '' as T,\n showMediaCircle,\n showMediaAtAllSizes,\n isContainerAligned,\n}: RadioOptionProps<T>) {\n return (\n <Option\n aria-label={ariaLabel}\n media={media}\n title={title}\n content={content}\n name={name}\n complex={complex}\n disabled={disabled}\n showMediaCircle={showMediaCircle}\n showMediaAtAllSizes={showMediaAtAllSizes}\n isContainerAligned={isContainerAligned}\n button={\n <RadioButton\n id={id}\n name={name}\n checked={checked}\n disabled={disabled}\n value={value}\n onChange={onChange}\n />\n }\n />\n );\n}\n\nexport default RadioOption;\n"],"names":["RadioOption","ariaLabel","media","title","content","id","name","checked","onChange","complex","disabled","value","showMediaCircle","showMediaAtAllSizes","isContainerAligned","_jsx","Option","button","RadioButton"],"mappings":";;;;AAiBA,SAASA,WAAWA,CAAiC;AACnD,EAAA,YAAY,EAAEC,SAAS;EACvBC,KAAK;EACLC,KAAK;EACLC,OAAO;EACPC,EAAE;EACFC,IAAI;EACJC,OAAO;EACPC,QAAQ;EACRC,OAAO;EACPC,QAAQ;AACRC,EAAAA,KAAK,GAAG,EAAO;EACfC,eAAe;EACfC,mBAAmB;AACnBC,EAAAA;AAAkB,CACE,EAAA;EACpB,oBACEC,GAAA,CAACC,MAAM,EAAA;AACL,IAAA,YAAA,EAAYf,SAAU;AACtBC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBE,IAAAA,IAAI,EAAEA,IAAK;AACXG,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,eAAe,EAAEA,eAAgB;AACjCC,IAAAA,mBAAmB,EAAEA,mBAAoB;AACzCC,IAAAA,kBAAkB,EAAEA,kBAAmB;IACvCG,MAAM,eACJF,GAAA,CAACG,WAAW,EAAA;AACVb,MAAAA,EAAE,EAAEA,EAAG;AACPC,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,OAAO,EAAEA,OAAQ;AACjBG,MAAAA,QAAQ,EAAEA,QAAS;AACnBC,MAAAA,KAAK,EAAEA,KAAM;AACbH,MAAAA,QAAQ,EAAEA;KAAS;AAEtB,GAAA,CACD;AAEN;;;;"}
@@ -53,7 +53,7 @@
53
53
  justify-content: center;
54
54
  vertical-align: middle;
55
55
  text-align: center;
56
- white-space: normal;
56
+ white-space: nowrap;
57
57
  word-wrap: break-word;
58
58
  -webkit-appearance: none;
59
59
  -moz-appearance: none;