@transferwise/components 46.77.0 → 46.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (503) hide show
  1. package/build/accordion/AccordionItem/AccordionItem.js +22 -3
  2. package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
  3. package/build/accordion/AccordionItem/AccordionItem.mjs +22 -3
  4. package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
  5. package/build/actionButton/ActionButton.js +22 -1
  6. package/build/actionButton/ActionButton.js.map +1 -1
  7. package/build/actionButton/ActionButton.mjs +22 -1
  8. package/build/actionButton/ActionButton.mjs.map +1 -1
  9. package/build/actionOption/ActionOption.js +24 -2
  10. package/build/actionOption/ActionOption.js.map +1 -1
  11. package/build/actionOption/ActionOption.mjs +24 -2
  12. package/build/actionOption/ActionOption.mjs.map +1 -1
  13. package/build/alert/Alert.js +22 -6
  14. package/build/alert/Alert.js.map +1 -1
  15. package/build/alert/Alert.mjs +22 -6
  16. package/build/alert/Alert.mjs.map +1 -1
  17. package/build/alert/inlineMarkdown/InlineMarkdown.js +25 -2
  18. package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
  19. package/build/alert/inlineMarkdown/InlineMarkdown.mjs +25 -2
  20. package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
  21. package/build/avatar/Avatar.js +25 -9
  22. package/build/avatar/Avatar.js.map +1 -1
  23. package/build/avatar/Avatar.mjs +25 -9
  24. package/build/avatar/Avatar.mjs.map +1 -1
  25. package/build/avatarWrapper/AvatarWrapper.js +23 -3
  26. package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
  27. package/build/avatarWrapper/AvatarWrapper.mjs +23 -3
  28. package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
  29. package/build/badge/Badge.js +24 -12
  30. package/build/badge/Badge.js.map +1 -1
  31. package/build/badge/Badge.mjs +24 -12
  32. package/build/badge/Badge.mjs.map +1 -1
  33. package/build/button/Button.js +22 -6
  34. package/build/button/Button.js.map +1 -1
  35. package/build/button/Button.messages.js.map +1 -1
  36. package/build/button/Button.messages.mjs.map +1 -1
  37. package/build/button/Button.mjs +22 -6
  38. package/build/button/Button.mjs.map +1 -1
  39. package/build/button/classMap.js +24 -0
  40. package/build/button/classMap.js.map +1 -1
  41. package/build/button/classMap.mjs +24 -0
  42. package/build/button/classMap.mjs.map +1 -1
  43. package/build/button/legacyUtils/legacyUtils.js +30 -7
  44. package/build/button/legacyUtils/legacyUtils.js.map +1 -1
  45. package/build/button/legacyUtils/legacyUtils.mjs +30 -7
  46. package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
  47. package/build/card/Card.js +23 -3
  48. package/build/card/Card.js.map +1 -1
  49. package/build/card/Card.mjs +23 -3
  50. package/build/card/Card.mjs.map +1 -1
  51. package/build/checkbox/Checkbox.js +23 -1
  52. package/build/checkbox/Checkbox.js.map +1 -1
  53. package/build/checkbox/Checkbox.mjs +23 -1
  54. package/build/checkbox/Checkbox.mjs.map +1 -1
  55. package/build/checkboxOption/CheckboxOption.js +1 -1
  56. package/build/checkboxOption/CheckboxOption.mjs +1 -1
  57. package/build/chevron/Chevron.js +21 -1
  58. package/build/chevron/Chevron.js.map +1 -1
  59. package/build/chevron/Chevron.mjs +21 -1
  60. package/build/chevron/Chevron.mjs.map +1 -1
  61. package/build/chips/Chip.js +19 -1
  62. package/build/chips/Chip.js.map +1 -1
  63. package/build/chips/Chip.mjs +19 -1
  64. package/build/chips/Chip.mjs.map +1 -1
  65. package/build/circularButton/CircularButton.js +24 -5
  66. package/build/circularButton/CircularButton.js.map +1 -1
  67. package/build/circularButton/CircularButton.mjs +24 -5
  68. package/build/circularButton/CircularButton.mjs.map +1 -1
  69. package/build/common/bottomSheet/BottomSheet.js +3 -2
  70. package/build/common/bottomSheet/BottomSheet.js.map +1 -1
  71. package/build/common/bottomSheet/BottomSheet.mjs +3 -2
  72. package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
  73. package/build/common/circle/Circle.js +15 -2
  74. package/build/common/circle/Circle.js.map +1 -1
  75. package/build/common/circle/Circle.mjs +15 -2
  76. package/build/common/circle/Circle.mjs.map +1 -1
  77. package/build/common/hooks/useHasIntersected/useHasIntersected.js +10 -10
  78. package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
  79. package/build/common/hooks/useHasIntersected/useHasIntersected.mjs +10 -10
  80. package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +1 -1
  81. package/build/common/locale/index.js +24 -0
  82. package/build/common/locale/index.js.map +1 -1
  83. package/build/common/locale/index.mjs +24 -0
  84. package/build/common/locale/index.mjs.map +1 -1
  85. package/build/common/panel/Panel.js +23 -2
  86. package/build/common/panel/Panel.js.map +1 -1
  87. package/build/common/panel/Panel.mjs +23 -2
  88. package/build/common/panel/Panel.mjs.map +1 -1
  89. package/build/common/responsivePanel/ResponsivePanel.js +27 -3
  90. package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
  91. package/build/common/responsivePanel/ResponsivePanel.mjs +27 -3
  92. package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
  93. package/build/criticalBanner/CriticalCommsBanner.js +22 -3
  94. package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
  95. package/build/criticalBanner/CriticalCommsBanner.mjs +22 -3
  96. package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
  97. package/build/dateInput/DateInput.js +22 -5
  98. package/build/dateInput/DateInput.js.map +1 -1
  99. package/build/dateInput/DateInput.mjs +22 -5
  100. package/build/dateInput/DateInput.mjs.map +1 -1
  101. package/build/dateLookup/DateLookup.js +24 -6
  102. package/build/dateLookup/DateLookup.js.map +1 -1
  103. package/build/dateLookup/DateLookup.mjs +24 -6
  104. package/build/dateLookup/DateLookup.mjs.map +1 -1
  105. package/build/dateLookup/dateHeader/DateHeader.js +26 -5
  106. package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
  107. package/build/dateLookup/dateHeader/DateHeader.mjs +26 -5
  108. package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
  109. package/build/dateLookup/dateTrigger/DateTrigger.js +19 -3
  110. package/build/dateLookup/dateTrigger/DateTrigger.js.map +1 -1
  111. package/build/dateLookup/dateTrigger/DateTrigger.mjs +19 -3
  112. package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +1 -1
  113. package/build/decision/Decision.js +24 -3
  114. package/build/decision/Decision.js.map +1 -1
  115. package/build/decision/Decision.mjs +24 -3
  116. package/build/decision/Decision.mjs.map +1 -1
  117. package/build/definitionList/DefinitionList.js +23 -1
  118. package/build/definitionList/DefinitionList.js.map +1 -1
  119. package/build/definitionList/DefinitionList.mjs +23 -1
  120. package/build/definitionList/DefinitionList.mjs.map +1 -1
  121. package/build/dimmer/Dimmer.js +24 -2
  122. package/build/dimmer/Dimmer.js.map +1 -1
  123. package/build/dimmer/Dimmer.mjs +24 -2
  124. package/build/dimmer/Dimmer.mjs.map +1 -1
  125. package/build/display/Display.js +23 -1
  126. package/build/display/Display.js.map +1 -1
  127. package/build/display/Display.mjs +23 -1
  128. package/build/display/Display.mjs.map +1 -1
  129. package/build/drawer/Drawer.js +23 -4
  130. package/build/drawer/Drawer.js.map +1 -1
  131. package/build/drawer/Drawer.mjs +23 -4
  132. package/build/drawer/Drawer.mjs.map +1 -1
  133. package/build/field/Field.js +23 -2
  134. package/build/field/Field.js.map +1 -1
  135. package/build/field/Field.mjs +23 -2
  136. package/build/field/Field.mjs.map +1 -1
  137. package/build/flowNavigation/FlowNavigation.js +19 -2
  138. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  139. package/build/flowNavigation/FlowNavigation.mjs +19 -2
  140. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  141. package/build/header/Header.js +24 -2
  142. package/build/header/Header.js.map +1 -1
  143. package/build/header/Header.mjs +24 -2
  144. package/build/header/Header.mjs.map +1 -1
  145. package/build/i18n/de.json +5 -0
  146. package/build/i18n/de.json.js +5 -0
  147. package/build/i18n/de.json.js.map +1 -1
  148. package/build/i18n/de.json.mjs +5 -0
  149. package/build/i18n/de.json.mjs.map +1 -1
  150. package/build/i18n/es.json +5 -0
  151. package/build/i18n/es.json.js +5 -0
  152. package/build/i18n/es.json.js.map +1 -1
  153. package/build/i18n/es.json.mjs +5 -0
  154. package/build/i18n/es.json.mjs.map +1 -1
  155. package/build/i18n/fr.json +5 -0
  156. package/build/i18n/fr.json.js +5 -0
  157. package/build/i18n/fr.json.js.map +1 -1
  158. package/build/i18n/fr.json.mjs +5 -0
  159. package/build/i18n/fr.json.mjs.map +1 -1
  160. package/build/i18n/hu.json +5 -0
  161. package/build/i18n/hu.json.js +5 -0
  162. package/build/i18n/hu.json.js.map +1 -1
  163. package/build/i18n/hu.json.mjs +5 -0
  164. package/build/i18n/hu.json.mjs.map +1 -1
  165. package/build/i18n/id.json +5 -0
  166. package/build/i18n/id.json.js +5 -0
  167. package/build/i18n/id.json.js.map +1 -1
  168. package/build/i18n/id.json.mjs +5 -0
  169. package/build/i18n/id.json.mjs.map +1 -1
  170. package/build/i18n/it.json +5 -0
  171. package/build/i18n/it.json.js +5 -0
  172. package/build/i18n/it.json.js.map +1 -1
  173. package/build/i18n/it.json.mjs +5 -0
  174. package/build/i18n/it.json.mjs.map +1 -1
  175. package/build/i18n/ja.json +5 -0
  176. package/build/i18n/ja.json.js +5 -0
  177. package/build/i18n/ja.json.js.map +1 -1
  178. package/build/i18n/ja.json.mjs +5 -0
  179. package/build/i18n/ja.json.mjs.map +1 -1
  180. package/build/i18n/pl.json +5 -0
  181. package/build/i18n/pl.json.js +5 -0
  182. package/build/i18n/pl.json.js.map +1 -1
  183. package/build/i18n/pl.json.mjs +5 -0
  184. package/build/i18n/pl.json.mjs.map +1 -1
  185. package/build/i18n/pt.json +5 -0
  186. package/build/i18n/pt.json.js +5 -0
  187. package/build/i18n/pt.json.js.map +1 -1
  188. package/build/i18n/pt.json.mjs +5 -0
  189. package/build/i18n/pt.json.mjs.map +1 -1
  190. package/build/i18n/ro.json +5 -0
  191. package/build/i18n/ro.json.js +5 -0
  192. package/build/i18n/ro.json.js.map +1 -1
  193. package/build/i18n/ro.json.mjs +5 -0
  194. package/build/i18n/ro.json.mjs.map +1 -1
  195. package/build/i18n/ru.json +5 -0
  196. package/build/i18n/ru.json.js +5 -0
  197. package/build/i18n/ru.json.js.map +1 -1
  198. package/build/i18n/ru.json.mjs +5 -0
  199. package/build/i18n/ru.json.mjs.map +1 -1
  200. package/build/i18n/tr.json +5 -0
  201. package/build/i18n/tr.json.js +5 -0
  202. package/build/i18n/tr.json.js.map +1 -1
  203. package/build/i18n/tr.json.mjs +5 -0
  204. package/build/i18n/tr.json.mjs.map +1 -1
  205. package/build/image/Image.js +4 -1
  206. package/build/image/Image.js.map +1 -1
  207. package/build/image/Image.mjs +4 -1
  208. package/build/image/Image.mjs.map +1 -1
  209. package/build/index.js +69 -62
  210. package/build/index.js.map +1 -1
  211. package/build/index.mjs +27 -20
  212. package/build/index.mjs.map +1 -1
  213. package/build/info/Info.js +21 -3
  214. package/build/info/Info.js.map +1 -1
  215. package/build/info/Info.mjs +21 -3
  216. package/build/info/Info.mjs.map +1 -1
  217. package/build/inlineAlert/InlineAlert.js +24 -3
  218. package/build/inlineAlert/InlineAlert.js.map +1 -1
  219. package/build/inlineAlert/InlineAlert.mjs +24 -3
  220. package/build/inlineAlert/InlineAlert.mjs.map +1 -1
  221. package/build/inputs/SearchInput.js +23 -2
  222. package/build/inputs/SearchInput.js.map +1 -1
  223. package/build/inputs/SearchInput.mjs +23 -2
  224. package/build/inputs/SearchInput.mjs.map +1 -1
  225. package/build/instructionsList/InstructionsList.js +22 -1
  226. package/build/instructionsList/InstructionsList.js.map +1 -1
  227. package/build/instructionsList/InstructionsList.mjs +22 -1
  228. package/build/instructionsList/InstructionsList.mjs.map +1 -1
  229. package/build/loader/Loader.js +22 -1
  230. package/build/loader/Loader.js.map +1 -1
  231. package/build/loader/Loader.mjs +22 -1
  232. package/build/loader/Loader.mjs.map +1 -1
  233. package/build/main.css +46 -22
  234. package/build/markdown/Markdown.js +24 -1
  235. package/build/markdown/Markdown.js.map +1 -1
  236. package/build/markdown/Markdown.mjs +24 -1
  237. package/build/markdown/Markdown.mjs.map +1 -1
  238. package/build/modal/Modal.js +22 -5
  239. package/build/modal/Modal.js.map +1 -1
  240. package/build/modal/Modal.mjs +22 -5
  241. package/build/modal/Modal.mjs.map +1 -1
  242. package/build/moneyInput/MoneyInput.js +22 -3
  243. package/build/moneyInput/MoneyInput.js.map +1 -1
  244. package/build/moneyInput/MoneyInput.mjs +22 -3
  245. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  246. package/build/navigationOption/NavigationOption.js +23 -2
  247. package/build/navigationOption/NavigationOption.js.map +1 -1
  248. package/build/navigationOption/NavigationOption.mjs +23 -2
  249. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  250. package/build/nudge/Nudge.js +19 -1
  251. package/build/nudge/Nudge.js.map +1 -1
  252. package/build/nudge/Nudge.mjs +19 -1
  253. package/build/nudge/Nudge.mjs.map +1 -1
  254. package/build/overlayHeader/OverlayHeader.js +19 -1
  255. package/build/overlayHeader/OverlayHeader.js.map +1 -1
  256. package/build/overlayHeader/OverlayHeader.mjs +19 -1
  257. package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
  258. package/build/phoneNumberInput/PhoneNumberInput.js +23 -2
  259. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  260. package/build/phoneNumberInput/PhoneNumberInput.mjs +23 -2
  261. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  262. package/build/popover/Popover.js +24 -4
  263. package/build/popover/Popover.js.map +1 -1
  264. package/build/popover/Popover.mjs +24 -4
  265. package/build/popover/Popover.mjs.map +1 -1
  266. package/build/processIndicator/ProcessIndicator.js +22 -1
  267. package/build/processIndicator/ProcessIndicator.js.map +1 -1
  268. package/build/processIndicator/ProcessIndicator.mjs +22 -1
  269. package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
  270. package/build/progressBar/ProgressBar.js +24 -2
  271. package/build/progressBar/ProgressBar.js.map +1 -1
  272. package/build/progressBar/ProgressBar.mjs +24 -2
  273. package/build/progressBar/ProgressBar.mjs.map +1 -1
  274. package/build/promoCard/PromoCard.js +22 -2
  275. package/build/promoCard/PromoCard.js.map +1 -1
  276. package/build/promoCard/PromoCard.mjs +22 -2
  277. package/build/promoCard/PromoCard.mjs.map +1 -1
  278. package/build/promoCard/PromoCardIndicator.js +22 -1
  279. package/build/promoCard/PromoCardIndicator.js.map +1 -1
  280. package/build/promoCard/PromoCardIndicator.mjs +22 -1
  281. package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
  282. package/build/provider/Provider.js +25 -2
  283. package/build/provider/Provider.js.map +1 -1
  284. package/build/provider/Provider.mjs +25 -2
  285. package/build/provider/Provider.mjs.map +1 -1
  286. package/build/radio/Radio.js +24 -2
  287. package/build/radio/Radio.js.map +1 -1
  288. package/build/radio/Radio.mjs +24 -2
  289. package/build/radio/Radio.mjs.map +1 -1
  290. package/build/segmentedControl/SegmentedControl.js +22 -1
  291. package/build/segmentedControl/SegmentedControl.js.map +1 -1
  292. package/build/segmentedControl/SegmentedControl.mjs +22 -1
  293. package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
  294. package/build/select/Select.js +26 -4
  295. package/build/select/Select.js.map +1 -1
  296. package/build/select/Select.mjs +26 -4
  297. package/build/select/Select.mjs.map +1 -1
  298. package/build/select/option/Option.js +22 -1
  299. package/build/select/option/Option.js.map +1 -1
  300. package/build/select/option/Option.mjs +22 -1
  301. package/build/select/option/Option.mjs.map +1 -1
  302. package/build/selectOption/SelectOption.js +24 -6
  303. package/build/selectOption/SelectOption.js.map +1 -1
  304. package/build/selectOption/SelectOption.mjs +24 -6
  305. package/build/selectOption/SelectOption.mjs.map +1 -1
  306. package/build/statusIcon/StatusIcon.js +26 -8
  307. package/build/statusIcon/StatusIcon.js.map +1 -1
  308. package/build/statusIcon/StatusIcon.mjs +26 -8
  309. package/build/statusIcon/StatusIcon.mjs.map +1 -1
  310. package/build/stepper/Stepper.js +25 -3
  311. package/build/stepper/Stepper.js.map +1 -1
  312. package/build/stepper/Stepper.mjs +25 -3
  313. package/build/stepper/Stepper.mjs.map +1 -1
  314. package/build/stepper/deviceDetection.js +2 -3
  315. package/build/stepper/deviceDetection.js.map +1 -1
  316. package/build/stepper/deviceDetection.mjs +2 -3
  317. package/build/stepper/deviceDetection.mjs.map +1 -1
  318. package/build/sticky/Sticky.js +25 -2
  319. package/build/sticky/Sticky.js.map +1 -1
  320. package/build/sticky/Sticky.mjs +25 -2
  321. package/build/sticky/Sticky.mjs.map +1 -1
  322. package/build/styles/avatar/Avatar.css +29 -0
  323. package/build/styles/badge/Badge.css +6 -0
  324. package/build/styles/circularButton/CircularButton.css +2 -2
  325. package/build/styles/common/circle/Circle.css +4 -0
  326. package/build/styles/main.css +46 -22
  327. package/build/styles/statusIcon/StatusIcon.css +0 -20
  328. package/build/summary/Summary.js +21 -5
  329. package/build/summary/Summary.js.map +1 -1
  330. package/build/summary/Summary.mjs +21 -5
  331. package/build/summary/Summary.mjs.map +1 -1
  332. package/build/tabs/Tabs.js +23 -3
  333. package/build/tabs/Tabs.js.map +1 -1
  334. package/build/tabs/Tabs.mjs +23 -3
  335. package/build/tabs/Tabs.mjs.map +1 -1
  336. package/build/tile/Tile.js +24 -2
  337. package/build/tile/Tile.js.map +1 -1
  338. package/build/tile/Tile.mjs +24 -2
  339. package/build/tile/Tile.mjs.map +1 -1
  340. package/build/title/Title.js +23 -1
  341. package/build/title/Title.js.map +1 -1
  342. package/build/title/Title.mjs +23 -1
  343. package/build/title/Title.mjs.map +1 -1
  344. package/build/tooltip/Tooltip.js +22 -1
  345. package/build/tooltip/Tooltip.js.map +1 -1
  346. package/build/tooltip/Tooltip.mjs +22 -1
  347. package/build/tooltip/Tooltip.mjs.map +1 -1
  348. package/build/typeahead/Typeahead.js +22 -4
  349. package/build/typeahead/Typeahead.js.map +1 -1
  350. package/build/typeahead/Typeahead.mjs +22 -4
  351. package/build/typeahead/Typeahead.mjs.map +1 -1
  352. package/build/types/avatar/Avatar.d.ts.map +1 -1
  353. package/build/types/badge/Badge.d.ts.map +1 -1
  354. package/build/types/button/Button.d.ts.map +1 -1
  355. package/build/types/button/Button.messages.d.ts +7 -7
  356. package/build/types/button/Button.messages.d.ts.map +1 -1
  357. package/build/types/button/classMap.d.ts +10 -10
  358. package/build/types/button/classMap.d.ts.map +1 -1
  359. package/build/types/button/legacyUtils/index.d.ts +1 -1
  360. package/build/types/button/legacyUtils/index.d.ts.map +1 -1
  361. package/build/types/button/legacyUtils/legacyUtils.d.ts +20 -6
  362. package/build/types/button/legacyUtils/legacyUtils.d.ts.map +1 -1
  363. package/build/types/checkboxButton/index.d.ts +1 -1
  364. package/build/types/checkboxButton/index.d.ts.map +1 -1
  365. package/build/types/common/circle/Circle.d.ts +1 -1
  366. package/build/types/common/circle/Circle.d.ts.map +1 -1
  367. package/build/types/common/fakeEvents.d.ts +23 -0
  368. package/build/types/common/fakeEvents.d.ts.map +1 -0
  369. package/build/types/common/hooks/index.d.ts +4 -4
  370. package/build/types/common/hooks/index.d.ts.map +1 -1
  371. package/build/types/common/hooks/useConditionalListener/index.d.ts +1 -1
  372. package/build/types/common/hooks/useConditionalListener/index.d.ts.map +1 -1
  373. package/build/types/common/hooks/useDirection/index.d.ts +1 -1
  374. package/build/types/common/hooks/useDirection/index.d.ts.map +1 -1
  375. package/build/types/common/hooks/useHasIntersected/index.d.ts +1 -1
  376. package/build/types/common/hooks/useHasIntersected/index.d.ts.map +1 -1
  377. package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts +15 -4
  378. package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -1
  379. package/build/types/common/index.d.ts +28 -28
  380. package/build/types/common/index.d.ts.map +1 -1
  381. package/build/types/common/responsivePanel/index.d.ts +1 -1
  382. package/build/types/common/responsivePanel/index.d.ts.map +1 -1
  383. package/build/types/index.d.ts +1 -0
  384. package/build/types/index.d.ts.map +1 -1
  385. package/build/types/navigationOption/NavigationOption.d.ts +1 -0
  386. package/build/types/navigationOption/NavigationOption.d.ts.map +1 -1
  387. package/build/types/statusIcon/StatusIcon.d.ts +7 -3
  388. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  389. package/build/types/stepper/deviceDetection.d.ts +1 -1
  390. package/build/types/stepper/deviceDetection.d.ts.map +1 -1
  391. package/build/types/test-utils/style-mock.d.ts +1 -0
  392. package/build/types/test-utils/style-mock.d.ts.map +1 -0
  393. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts +8 -6
  394. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -1
  395. package/build/types/utilities/deprecatedProperty/index.d.ts +1 -1
  396. package/build/types/utilities/deprecatedProperty/index.d.ts.map +1 -1
  397. package/build/types/utilities/index.d.ts +2 -2
  398. package/build/types/utilities/index.d.ts.map +1 -1
  399. package/build/types/utilities/logActionRequired.d.ts +2 -2
  400. package/build/types/utilities/logActionRequired.d.ts.map +1 -1
  401. package/build/upload/Upload.js +21 -2
  402. package/build/upload/Upload.js.map +1 -1
  403. package/build/upload/Upload.mjs +21 -2
  404. package/build/upload/Upload.mjs.map +1 -1
  405. package/build/upload/steps/processingStep/processingStep.js +25 -3
  406. package/build/upload/steps/processingStep/processingStep.js.map +1 -1
  407. package/build/upload/steps/processingStep/processingStep.mjs +25 -3
  408. package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
  409. package/build/upload/steps/uploadImageStep/uploadImageStep.js +23 -3
  410. package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
  411. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +23 -3
  412. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
  413. package/build/uploadInput/UploadInput.js +22 -3
  414. package/build/uploadInput/UploadInput.js.map +1 -1
  415. package/build/uploadInput/UploadInput.mjs +22 -3
  416. package/build/uploadInput/UploadInput.mjs.map +1 -1
  417. package/build/uploadInput/uploadButton/UploadButton.js +21 -2
  418. package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
  419. package/build/uploadInput/uploadButton/UploadButton.mjs +21 -2
  420. package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
  421. package/build/uploadInput/uploadButton/defaults.js +24 -0
  422. package/build/uploadInput/uploadButton/defaults.js.map +1 -1
  423. package/build/uploadInput/uploadButton/defaults.mjs +24 -0
  424. package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
  425. package/build/uploadInput/uploadItem/UploadItem.js +21 -4
  426. package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
  427. package/build/uploadInput/uploadItem/UploadItem.mjs +21 -4
  428. package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
  429. package/build/utilities/logActionRequired.js.map +1 -1
  430. package/build/utilities/logActionRequired.mjs.map +1 -1
  431. package/build/withDisplayFormat/WithDisplayFormat.js +25 -1
  432. package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
  433. package/build/withDisplayFormat/WithDisplayFormat.mjs +25 -1
  434. package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
  435. package/package.json +3 -3
  436. package/src/avatar/Avatar.css +29 -0
  437. package/src/avatar/Avatar.less +12 -0
  438. package/src/avatar/Avatar.tsx +4 -8
  439. package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.tsx.snap +11 -22
  440. package/src/badge/Badge.css +6 -0
  441. package/src/badge/Badge.less +6 -0
  442. package/src/badge/Badge.tsx +1 -11
  443. package/src/button/Button.tsx +0 -3
  444. package/src/button/legacyUtils/legacyUtils.ts +74 -0
  445. package/src/circularButton/CircularButton.css +2 -2
  446. package/src/circularButton/CircularButton.less +1 -1
  447. package/src/circularButton/CircularButton.story.tsx +3 -0
  448. package/src/circularButton/CircularButton.tsx +1 -1
  449. package/src/circularButton/__snapshots__/CircularButton.spec.tsx.snap +10 -10
  450. package/src/common/circle/Circle.css +4 -0
  451. package/src/common/circle/Circle.less +6 -0
  452. package/src/common/circle/Circle.story.tsx +2 -2
  453. package/src/common/circle/Circle.tsx +25 -2
  454. package/src/common/{fakeEvents.js → fakeEvents.ts} +1 -1
  455. package/src/common/hooks/useHasIntersected/{useHasIntersected.js → useHasIntersected.ts} +20 -11
  456. package/src/flowNavigation/{FlowNavigation.story.js → FlowNavigation.story.tsx} +34 -16
  457. package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +4 -8
  458. package/src/i18n/de.json +5 -0
  459. package/src/i18n/es.json +5 -0
  460. package/src/i18n/fr.json +5 -0
  461. package/src/i18n/hu.json +5 -0
  462. package/src/i18n/id.json +5 -0
  463. package/src/i18n/it.json +5 -0
  464. package/src/i18n/ja.json +5 -0
  465. package/src/i18n/pl.json +5 -0
  466. package/src/i18n/pt.json +5 -0
  467. package/src/i18n/ro.json +5 -0
  468. package/src/i18n/ru.json +5 -0
  469. package/src/i18n/tr.json +5 -0
  470. package/src/index.ts +1 -0
  471. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +78 -0
  472. package/src/main.css +46 -22
  473. package/src/navigationOption/{NavigationOption.story.js → NavigationOption.story.tsx} +23 -5
  474. package/src/navigationOption/NavigationOption.tsx +1 -1
  475. package/src/overlayHeader/__snapshots__/OverlayHeader.spec.tsx.snap +2 -4
  476. package/src/promoCard/PromoCard.spec.tsx +1 -1
  477. package/src/radio/__snapshots__/Radio.rtl.spec.tsx.snap +2 -4
  478. package/src/select/{Select.story.js → Select.story.tsx} +97 -47
  479. package/src/statusIcon/StatusIcon.css +0 -20
  480. package/src/statusIcon/StatusIcon.less +0 -17
  481. package/src/statusIcon/StatusIcon.spec.tsx +2 -21
  482. package/src/statusIcon/StatusIcon.story.tsx +32 -1
  483. package/src/statusIcon/StatusIcon.tsx +11 -10
  484. package/src/stepper/{deviceDetection.js → deviceDetection.ts} +2 -6
  485. package/src/utilities/deprecatedProperty/{deprecatedProperty.spec.js → deprecatedProperty.spec.ts} +7 -13
  486. package/src/utilities/deprecatedProperty/{deprecatedProperty.js → deprecatedProperty.ts} +23 -4
  487. package/src/utilities/{logActionRequired.js → logActionRequired.ts} +2 -2
  488. package/src/button/legacyUtils/legacyUtils.js +0 -54
  489. package/src/common/requirements.js +0 -440
  490. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.js +0 -85
  491. /package/src/button/{Button.messages.js → Button.messages.ts} +0 -0
  492. /package/src/button/{classMap.js → classMap.ts} +0 -0
  493. /package/src/button/legacyUtils/{index.js → index.ts} +0 -0
  494. /package/src/checkboxButton/{index.js → index.ts} +0 -0
  495. /package/src/common/hooks/{index.js → index.ts} +0 -0
  496. /package/src/common/hooks/useConditionalListener/{index.js → index.ts} +0 -0
  497. /package/src/common/hooks/useDirection/{index.js → index.ts} +0 -0
  498. /package/src/common/hooks/useHasIntersected/{index.js → index.ts} +0 -0
  499. /package/src/common/{index.js → index.ts} +0 -0
  500. /package/src/common/responsivePanel/{index.js → index.ts} +0 -0
  501. /package/src/test-utils/{style-mock.js → style-mock.ts} +0 -0
  502. /package/src/utilities/deprecatedProperty/{index.js → index.ts} +0 -0
  503. /package/src/utilities/{index.js → index.ts} +0 -0
@@ -3,4 +3,10 @@
3
3
  width: var(--circle-size);
4
4
  height: var(--circle-size);
5
5
  flex-shrink: 0;
6
+
7
+ // circle like components has custom icon sizes
8
+ .tw-icon > svg {
9
+ height: var(--circle-icon-size);
10
+ width: var(--circle-icon-size);
11
+ }
6
12
  }
@@ -30,14 +30,14 @@ export const Sizes: Story = storyConfig(
30
30
  {
31
31
  render: () => {
32
32
  const content = <Profile size={16} />;
33
- const sizes: CircleProps['size'][] = [32, 40, 48, 56, 72];
33
+ const sizes: CircleProps['size'][] = [16, 24, 32, 40, 48, 56, 72];
34
34
  return (
35
35
  <div
36
36
  style={{
37
37
  gap: '1em',
38
38
  display: 'grid',
39
39
  justifyContent: 'space-between',
40
- gridTemplate: 'auto auto / repeat(5, min-content)',
40
+ gridTemplate: `auto auto / repeat(${sizes.length}, min-content)`,
41
41
  }}
42
42
  >
43
43
  {sizes.map((size) => (
@@ -1,7 +1,9 @@
1
1
  import { HTMLAttributes, forwardRef } from 'react';
2
2
  import { clsx } from 'clsx';
3
+ import { useMedia } from '../hooks/useMedia';
4
+ import { Breakpoint } from '../propsValues/breakpoint';
3
5
 
4
- export type ShapeSize = 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72;
6
+ export type ShapeSize = 16 | 24 | 32 | 40 | 48 | 56 | 72;
5
7
 
6
8
  export type Props = {
7
9
  /**
@@ -19,6 +21,19 @@ export type Props = {
19
21
  fixedSize?: boolean;
20
22
  } & HTMLAttributes<HTMLDivElement>;
21
23
 
24
+ /**
25
+ * circle like components has custom sizes for icons
26
+ */
27
+ const MAP_ICON_SIZE = {
28
+ 16: 12,
29
+ 24: 16,
30
+ 32: 18,
31
+ 40: 20,
32
+ 48: 24,
33
+ 56: 28,
34
+ 72: 36,
35
+ };
36
+
22
37
  const Circle = forwardRef(function Circle(
23
38
  {
24
39
  as: Element = 'div',
@@ -31,11 +46,19 @@ const Circle = forwardRef(function Circle(
31
46
  }: Props,
32
47
  ref,
33
48
  ) {
49
+ const isTinyViewport = useMedia(`(max-width: ${Breakpoint.ZOOM_400}px)`);
34
50
  return (
35
51
  <Element
36
52
  {...props}
37
53
  ref={ref}
38
- style={{ ...style, '--circle-size': fixedSize ? `${size}px` : `var(--size-${size})` }}
54
+ style={{
55
+ '--circle-size': fixedSize ? `${size}px` : `var(--size-${size})`,
56
+ '--circle-icon-size':
57
+ isTinyViewport && !fixedSize
58
+ ? `${MAP_ICON_SIZE[size] / 2}px`
59
+ : `${MAP_ICON_SIZE[size]}px`,
60
+ ...style,
61
+ }}
39
62
  className={clsx('np-circle', 'd-flex align-items-center justify-content-center', className)}
40
63
  >
41
64
  {children}
@@ -4,7 +4,7 @@ export const fakeEvent = () => ({
4
4
  preventDefault() {},
5
5
  });
6
6
 
7
- export const fakeKeyDownEventForKey = (key) => ({
7
+ export const fakeKeyDownEventForKey = (key: string) => ({
8
8
  ...fakeEvent(),
9
9
  key,
10
10
  });
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useState } from 'react';
2
2
 
3
- const ObserverParams = {
3
+ const ObserverParams: IntersectionObserverInit = {
4
4
  threshold: 0.1,
5
5
  };
6
6
 
@@ -9,13 +9,19 @@ const ObserverParams = {
9
9
  * Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.
10
10
  * Once the intersection has happened the hook will not return false even if the element gets out of the viewport.
11
11
  *
12
- * @param elRef.elRef
13
- * @param {object} [elRef] - node object that contains a react reference to the element that needs to be observed.
14
- * @param {strimng} [loading = 'eager'] - string that contains the type of loading.
12
+ * @param {object} params
13
+ * @param {object} [params.elRef] - node object that contains a react reference to the element that needs to be observed.
14
+ * @param {string} [params.loading = 'eager'] - string that contains the type of loading.
15
15
  * @param elRef.loading
16
16
  * @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`
17
17
  */
18
- export const useHasIntersected = ({ elRef, loading }) => {
18
+ export const useHasIntersected = ({
19
+ elRef,
20
+ loading = 'eager',
21
+ }: {
22
+ elRef: React.RefObject<HTMLElement>;
23
+ loading?: 'eager' | 'lazy';
24
+ }) => {
19
25
  const [hasIntersected, setHasIntersected] = useState(false);
20
26
 
21
27
  const { current } = elRef || {};
@@ -24,29 +30,32 @@ export const useHasIntersected = ({ elRef, loading }) => {
24
30
  return elRef && current;
25
31
  };
26
32
 
27
- const handleOnIntersect = (entries, observer) => {
33
+ const handleOnIntersect: IntersectionObserverCallback = (entries, observer) => {
28
34
  entries.forEach((entry) => {
29
35
  if (entry.isIntersecting) {
30
36
  setHasIntersected(true);
31
- observer.unobserve(current);
37
+
38
+ if (current) {
39
+ observer.unobserve(current);
40
+ }
32
41
  }
33
42
  });
34
43
  };
35
44
 
36
45
  useEffect(() => {
37
- let observer;
46
+ let observer: IntersectionObserver | undefined;
38
47
  let didCancel = false;
39
48
 
40
- // Check if window is define for SSR and Old browsers fallback
49
+ // Check if window is defined for SSR and Old browsers fallback
41
50
  if (typeof window === 'undefined' || !window.IntersectionObserver || !isValidReference()) {
42
51
  setHasIntersected(true);
43
- } else if (!didCancel) {
52
+ } else if (current && !didCancel) {
44
53
  observer = new IntersectionObserver(handleOnIntersect, ObserverParams);
45
54
  observer.observe(current);
46
55
  }
47
56
  return () => {
48
57
  didCancel = true;
49
- if (observer) {
58
+ if (observer && current) {
50
59
  observer.unobserve(current);
51
60
  }
52
61
  };
@@ -24,6 +24,10 @@ const avatarProfiles = {
24
24
  Business: <BriefcaseIcon />,
25
25
  Profile: <ProfileIcon />,
26
26
  };
27
+ type ProfileTypeKeys = keyof typeof ProfileType;
28
+
29
+ const getAvatarProfile = (showAvatar: string) =>
30
+ showAvatar in avatarProfiles ? avatarProfiles[showAvatar as keyof typeof avatarProfiles] : null;
27
31
 
28
32
  export const Variants = () => {
29
33
  const [activeStep, setActiveStep] = useState(2);
@@ -32,7 +36,11 @@ export const Variants = () => {
32
36
  const showCloseButton = boolean('show closeButton', true);
33
37
  const showMobileBackButton = boolean('show mobile backButton', true);
34
38
  const done = boolean('done', false);
35
- const profileType = select('profileType', Object.keys(ProfileType));
39
+ const profileType: ProfileTypeKeys | undefined = select(
40
+ 'profileType',
41
+ Object.keys(ProfileType) as ProfileTypeKeys[],
42
+ undefined,
43
+ );
36
44
  const avatarURL = text(
37
45
  'avatarURL',
38
46
  'https://wise.com/web-art/assets/illustrations/heart-small@2x.webp',
@@ -44,7 +52,7 @@ export const Variants = () => {
44
52
  avatar={
45
53
  !showAvatar ? null : (
46
54
  <Avatar type={AvatarType.ICON} size={Size.MEDIUM}>
47
- {avatarProfiles[showAvatar]}
55
+ {getAvatarProfile(showAvatar)}
48
56
  </Avatar>
49
57
  )
50
58
  }
@@ -70,9 +78,11 @@ export const Variants = () => {
70
78
  onClick: () => setActiveStep(4),
71
79
  },
72
80
  ]}
73
- onClose={showCloseButton && (() => setClosed(true))}
81
+ onClose={showCloseButton ? () => setClosed(true) : undefined}
74
82
  onGoBack={
75
- showMobileBackButton && (() => setActiveStep(activeStep > 0 ? activeStep - 1 : 0))
83
+ showMobileBackButton
84
+ ? () => setActiveStep(activeStep > 0 ? activeStep - 1 : 0)
85
+ : undefined
76
86
  }
77
87
  />
78
88
 
@@ -112,9 +122,11 @@ export const Variants = () => {
112
122
  onClick: () => setActiveStep(4),
113
123
  },
114
124
  ]}
115
- onClose={showCloseButton && (() => setClosed(true))}
125
+ onClose={showCloseButton ? () => setClosed(true) : undefined}
116
126
  onGoBack={
117
- showMobileBackButton && (() => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0))
127
+ showMobileBackButton
128
+ ? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
129
+ : undefined
118
130
  }
119
131
  />
120
132
 
@@ -155,9 +167,11 @@ export const Variants = () => {
155
167
  onClick: () => setActiveStep(4),
156
168
  },
157
169
  ]}
158
- onClose={showCloseButton && (() => setClosed(true))}
170
+ onClose={showCloseButton ? () => setClosed(true) : undefined}
159
171
  onGoBack={
160
- showMobileBackButton && (() => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0))
172
+ showMobileBackButton
173
+ ? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
174
+ : undefined
161
175
  }
162
176
  />
163
177
 
@@ -171,9 +185,11 @@ export const Variants = () => {
171
185
  { label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(1) },
172
186
  { label: 'Pay', hoverLabel: 'Enrico Gusso', onClick: () => setActiveStep(2) },
173
187
  ]}
174
- onClose={showCloseButton && (() => setClosed(true))}
188
+ onClose={showCloseButton ? () => setClosed(true) : undefined}
175
189
  onGoBack={
176
- showMobileBackButton && (() => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0))
190
+ showMobileBackButton
191
+ ? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
192
+ : undefined
177
193
  }
178
194
  />
179
195
 
@@ -216,7 +232,7 @@ export const SendFlow = () => {
216
232
  ...(activeStep > 3 && { onClick: handleStepClick(3) }),
217
233
  },
218
234
  ];
219
- function handleStepClick(step) {
235
+ function handleStepClick(step: number) {
220
236
  return () => {
221
237
  setActiveStep(step);
222
238
  };
@@ -268,16 +284,18 @@ export const WithOverlayHeaderComparison = () => {
268
284
  avatar={
269
285
  showAvatar ? (
270
286
  <Avatar type={AvatarType.ICON} size={Size.MEDIUM}>
271
- {avatarProfiles[showAvatar]}
287
+ {getAvatarProfile(showAvatar)}
272
288
  </Avatar>
273
289
  ) : null
274
290
  }
275
291
  activeStep={activeStep}
276
292
  done={done}
277
293
  steps={[]}
278
- onClose={showCloseButton && (() => setClosed(true))}
294
+ onClose={showCloseButton ? () => setClosed(true) : undefined}
279
295
  onGoBack={
280
- showMobileBackButton && (() => setActiveStep(activeStep > 0 ? activeStep - 1 : 0))
296
+ showMobileBackButton
297
+ ? () => setActiveStep(activeStep > 0 ? activeStep - 1 : 0)
298
+ : undefined
281
299
  }
282
300
  />
283
301
  </div>
@@ -286,11 +304,11 @@ export const WithOverlayHeaderComparison = () => {
286
304
  avatar={
287
305
  showAvatar ? (
288
306
  <Avatar type={AvatarType.ICON} size={Size.MEDIUM}>
289
- {avatarProfiles[showAvatar]}
307
+ {getAvatarProfile(showAvatar)}
290
308
  </Avatar>
291
309
  ) : null
292
310
  }
293
- onClose={showCloseButton && (() => setClosed(true))}
311
+ onClose={showCloseButton ? () => setClosed(true) : undefined}
294
312
  />
295
313
  </div>
296
314
  </>
@@ -21,12 +21,10 @@ exports[`FlowNavigation on mobile renders as expected 1`] = `
21
21
  class="np-flow-header__right d-flex align-items-center justify-content-end order-2--lg"
22
22
  >
23
23
  <div
24
- class="np-circle d-flex align-items-center justify-content-center tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
25
- style="--circle-size: 48px;"
24
+ class="tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
26
25
  >
27
26
  <div
28
- class="np-circle d-flex align-items-center justify-content-center tw-avatar__content"
29
- style="--circle-size: 48px;"
27
+ class="tw-avatar__content"
30
28
  >
31
29
  TM
32
30
  </div>
@@ -138,12 +136,10 @@ exports[`FlowNavigation renders as expected 1`] = `
138
136
  class="np-flow-header__right d-flex align-items-center justify-content-end order-2--lg"
139
137
  >
140
138
  <div
141
- class="np-circle d-flex align-items-center justify-content-center tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
142
- style="--circle-size: 48px;"
139
+ class="tw-avatar tw-avatar--48 tw-avatar--initials np-text-title-body"
143
140
  >
144
141
  <div
145
- class="np-circle d-flex align-items-center justify-content-center tw-avatar__content"
146
- style="--circle-size: 48px;"
142
+ class="tw-avatar__content"
147
143
  >
148
144
  TM
149
145
  </div>
package/src/i18n/de.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Keine Ergebnisse gefunden",
28
28
  "neptune.SelectOption.action.label": "Auswählen",
29
29
  "neptune.SelectOption.selected.action.label": "Ausgewählte Option ändern",
30
+ "neptune.StatusIcon.iconLabel.error": "Fehler:",
31
+ "neptune.StatusIcon.iconLabel.information": "Auskünfte:",
32
+ "neptune.StatusIcon.iconLabel.pending": "Ausstehend:",
33
+ "neptune.StatusIcon.iconLabel.success": "Erfolgreich:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Warnung:",
30
35
  "neptune.Summary.statusDone": "Schritt erledigt",
31
36
  "neptune.Summary.statusNotDone": "Schritt noch zu erledigen",
32
37
  "neptune.Summary.statusPending": "Schritt ausstehend",
package/src/i18n/es.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "No se han encontrado resultados",
28
28
  "neptune.SelectOption.action.label": "Elegir",
29
29
  "neptune.SelectOption.selected.action.label": "Cambiar opción elegida",
30
+ "neptune.StatusIcon.iconLabel.error": "Error:",
31
+ "neptune.StatusIcon.iconLabel.information": "Información:",
32
+ "neptune.StatusIcon.iconLabel.pending": "Pendiente:",
33
+ "neptune.StatusIcon.iconLabel.success": "Éxito:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Advertencia:",
30
35
  "neptune.Summary.statusDone": "Apartado listo",
31
36
  "neptune.Summary.statusNotDone": "Apartado a completar",
32
37
  "neptune.Summary.statusPending": "Apartado pendiente",
package/src/i18n/fr.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Aucun résultat trouvé",
28
28
  "neptune.SelectOption.action.label": "Sélectionner",
29
29
  "neptune.SelectOption.selected.action.label": "Modifier l'option choisie",
30
+ "neptune.StatusIcon.iconLabel.error": "Erreur:",
31
+ "neptune.StatusIcon.iconLabel.information": "Informations:",
32
+ "neptune.StatusIcon.iconLabel.pending": "En attente :",
33
+ "neptune.StatusIcon.iconLabel.success": "Terminé:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Attention:",
30
35
  "neptune.Summary.statusDone": "Validé",
31
36
  "neptune.Summary.statusNotDone": "À compléter",
32
37
  "neptune.Summary.statusPending": "En attente",
package/src/i18n/hu.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Nincs találat",
28
28
  "neptune.SelectOption.action.label": "Kiválasztás",
29
29
  "neptune.SelectOption.selected.action.label": "Kiválasztott opció módosítása",
30
+ "neptune.StatusIcon.iconLabel.error": "Hiba:",
31
+ "neptune.StatusIcon.iconLabel.information": "Információ:",
32
+ "neptune.StatusIcon.iconLabel.pending": "Függőben:",
33
+ "neptune.StatusIcon.iconLabel.success": "Siker:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Figyelmeztetés:",
30
35
  "neptune.Summary.statusDone": "Kész",
31
36
  "neptune.Summary.statusNotDone": "Hátravan",
32
37
  "neptune.Summary.statusPending": "Függőben",
package/src/i18n/id.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Hasil tidak ditemukan",
28
28
  "neptune.SelectOption.action.label": "Pilih",
29
29
  "neptune.SelectOption.selected.action.label": "Ubah opsi yang dipilih",
30
+ "neptune.StatusIcon.iconLabel.error": "Kesalahan:",
31
+ "neptune.StatusIcon.iconLabel.information": "Informasi:",
32
+ "neptune.StatusIcon.iconLabel.pending": "Tertunda:",
33
+ "neptune.StatusIcon.iconLabel.success": "Berhasil:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Peringatan:",
30
35
  "neptune.Summary.statusDone": "Item selesai",
31
36
  "neptune.Summary.statusNotDone": "Item yang harus dilakukan",
32
37
  "neptune.Summary.statusPending": "Item tertunda",
package/src/i18n/it.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Nessun risultato trovato",
28
28
  "neptune.SelectOption.action.label": "Scegli",
29
29
  "neptune.SelectOption.selected.action.label": "Modifica l'opzione scelta",
30
+ "neptune.StatusIcon.iconLabel.error": "Errore:",
31
+ "neptune.StatusIcon.iconLabel.information": "Informazioni:",
32
+ "neptune.StatusIcon.iconLabel.pending": "In attesa:",
33
+ "neptune.StatusIcon.iconLabel.success": "Fatto:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Attenzione:",
30
35
  "neptune.Summary.statusDone": "Completato",
31
36
  "neptune.Summary.statusNotDone": "Da completare",
32
37
  "neptune.Summary.statusPending": "In corso",
package/src/i18n/ja.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "結果が見つかりませんでした",
28
28
  "neptune.SelectOption.action.label": "選択してください",
29
29
  "neptune.SelectOption.selected.action.label": "選択したオプションを変更する",
30
+ "neptune.StatusIcon.iconLabel.error": "エラー:",
31
+ "neptune.StatusIcon.iconLabel.information": "情報:",
32
+ "neptune.StatusIcon.iconLabel.pending": "保留中:",
33
+ "neptune.StatusIcon.iconLabel.success": "完了:",
34
+ "neptune.StatusIcon.iconLabel.warning": "警告:",
30
35
  "neptune.Summary.statusDone": "完了",
31
36
  "neptune.Summary.statusNotDone": "未完了",
32
37
  "neptune.Summary.statusPending": "保留中",
package/src/i18n/pl.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Nie znaleziono wyników",
28
28
  "neptune.SelectOption.action.label": "Wybierz",
29
29
  "neptune.SelectOption.selected.action.label": "Zmień wybraną opcję",
30
+ "neptune.StatusIcon.iconLabel.error": "Błąd:",
31
+ "neptune.StatusIcon.iconLabel.information": "Informacje:",
32
+ "neptune.StatusIcon.iconLabel.pending": "W toku:",
33
+ "neptune.StatusIcon.iconLabel.success": "Gotowe:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Ostrzeżenie:",
30
35
  "neptune.Summary.statusDone": "Czynność wykonana",
31
36
  "neptune.Summary.statusNotDone": "Czynność do wykonania",
32
37
  "neptune.Summary.statusPending": "Czynność oczekująca",
package/src/i18n/pt.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Nenhum resultado encontrado",
28
28
  "neptune.SelectOption.action.label": "Selecionar",
29
29
  "neptune.SelectOption.selected.action.label": "Altere a opção escolhida",
30
+ "neptune.StatusIcon.iconLabel.error": "Erro:",
31
+ "neptune.StatusIcon.iconLabel.information": "Informação:",
32
+ "neptune.StatusIcon.iconLabel.pending": "Pendente:",
33
+ "neptune.StatusIcon.iconLabel.success": "Concluído:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Aviso:",
30
35
  "neptune.Summary.statusDone": "Pronto",
31
36
  "neptune.Summary.statusNotDone": "Não iniciado",
32
37
  "neptune.Summary.statusPending": "Pendente",
package/src/i18n/ro.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Nu s-a găsit niciun rezultat",
28
28
  "neptune.SelectOption.action.label": "Alege",
29
29
  "neptune.SelectOption.selected.action.label": "Schimbă opțiunea aleasă",
30
+ "neptune.StatusIcon.iconLabel.error": "Eroare:",
31
+ "neptune.StatusIcon.iconLabel.information": "Informații:",
32
+ "neptune.StatusIcon.iconLabel.pending": "În așteptare:",
33
+ "neptune.StatusIcon.iconLabel.success": "Gata:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Avertisment:",
30
35
  "neptune.Summary.statusDone": "Finalizat",
31
36
  "neptune.Summary.statusNotDone": "De făcut",
32
37
  "neptune.Summary.statusPending": "În așteptare",
package/src/i18n/ru.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Ничего не найдено",
28
28
  "neptune.SelectOption.action.label": "Выбрать",
29
29
  "neptune.SelectOption.selected.action.label": "Изменить выбранный вариант",
30
+ "neptune.StatusIcon.iconLabel.error": "Ошибка:",
31
+ "neptune.StatusIcon.iconLabel.information": "Информация:",
32
+ "neptune.StatusIcon.iconLabel.pending": "В ожидании:",
33
+ "neptune.StatusIcon.iconLabel.success": "Готово:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Внимание:",
30
35
  "neptune.Summary.statusDone": "Этап завершен",
31
36
  "neptune.Summary.statusNotDone": "Этап к выполнению",
32
37
  "neptune.Summary.statusPending": "Этап в процессе",
package/src/i18n/tr.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
28
28
  "neptune.SelectOption.action.label": "Seç",
29
29
  "neptune.SelectOption.selected.action.label": "Seçilen opsiyonu değiştir",
30
+ "neptune.StatusIcon.iconLabel.error": "Hata:",
31
+ "neptune.StatusIcon.iconLabel.information": "Bilgi:",
32
+ "neptune.StatusIcon.iconLabel.pending": "Bekliyor:",
33
+ "neptune.StatusIcon.iconLabel.success": "Başarılı:",
34
+ "neptune.StatusIcon.iconLabel.warning": "Uyarı:",
30
35
  "neptune.Summary.statusDone": "Tamamlanan aşama",
31
36
  "neptune.Summary.statusNotDone": "Yapılacak",
32
37
  "neptune.Summary.statusPending": "Bekliyor",
package/src/index.ts CHANGED
@@ -59,6 +59,7 @@ export type {
59
59
  MoneyInputProps,
60
60
  } from './moneyInput';
61
61
  export type { NavigationOptionListProps } from './navigationOptionsList';
62
+ export type { NavigationOptionProps } from './navigationOption/NavigationOption';
62
63
  export type { OverlayHeaderProps } from './overlayHeader';
63
64
  export type { PanelProps } from './common/panel';
64
65
  export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
@@ -0,0 +1,78 @@
1
+ import { userEvent, within, fn } from '@storybook/test';
2
+
3
+ import InputWithDisplayFormat, { InputWithDisplayFormatProps } from '.';
4
+ import { Field, FieldProps } from '../field/Field';
5
+ import { Meta, type StoryObj } from '@storybook/react';
6
+
7
+ type Story = StoryObj<InputWithDisplayFormatProps & { label: string }>;
8
+
9
+ const meta = {
10
+ title: 'Forms/InputWithDisplayFormat',
11
+ component: InputWithDisplayFormat,
12
+ render: function Render({ label, ...args }: InputWithDisplayFormatProps & FieldProps) {
13
+ return (
14
+ <Field label={label} id={args.id}>
15
+ <InputWithDisplayFormat id={args.id} {...args} />
16
+ </Field>
17
+ );
18
+ },
19
+ args: {
20
+ onFocus: fn(),
21
+ onBlur: fn(),
22
+ onChange: fn(),
23
+ },
24
+ } satisfies Meta<typeof InputWithDisplayFormat>;
25
+ export default meta;
26
+
27
+ export const Basic: Story = {
28
+ args: {
29
+ label: 'Sort Code',
30
+ placeholder: '**-**-**',
31
+ displayPattern: '**-**-**',
32
+ },
33
+ };
34
+
35
+ export const CardNumber: Story = {
36
+ args: {
37
+ label: 'Card Number',
38
+ placeholder: '**** **** **** **** ***',
39
+ displayPattern: '**** **** **** **** ***',
40
+ },
41
+ };
42
+
43
+ export const CVC: Story = {
44
+ args: {
45
+ label: 'CVC',
46
+ placeholder: '***',
47
+ displayPattern: '***',
48
+ value: '',
49
+ },
50
+ };
51
+
52
+ export const ExpiryDate: Story = {
53
+ args: {
54
+ label: 'Expiry Date',
55
+ placeholder: '** / **',
56
+ displayPattern: '** / **',
57
+ },
58
+ };
59
+
60
+ export const SecurityPin: Story = {
61
+ args: {
62
+ label: 'Security Pin',
63
+ placeholder: '*-*-*-*-*-*',
64
+ displayPattern: '*-*-*-*-*-*',
65
+ },
66
+ };
67
+
68
+ export const SecurityPinPlay: Story = {
69
+ args: {
70
+ label: 'Security Pin Play',
71
+ placeholder: '*-*-*-*-*-*',
72
+ displayPattern: '*-*-*-*-*-*',
73
+ },
74
+ play: async ({ canvasElement }) => {
75
+ const canvas = within(canvasElement);
76
+ await userEvent.type(canvas.getByPlaceholderText('*-*-*-*-*-*'), '123456');
77
+ },
78
+ };