@transferwise/components 46.97.4 → 46.97.5

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 (699) hide show
  1. package/build/accordion/Accordion.js.map +1 -1
  2. package/build/accordion/Accordion.mjs.map +1 -1
  3. package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
  4. package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
  5. package/build/actionButton/ActionButton.js.map +1 -1
  6. package/build/actionButton/ActionButton.mjs.map +1 -1
  7. package/build/actionOption/ActionOption.js.map +1 -1
  8. package/build/actionOption/ActionOption.mjs.map +1 -1
  9. package/build/alert/Alert.js.map +1 -1
  10. package/build/alert/Alert.mjs.map +1 -1
  11. package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
  12. package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
  13. package/build/avatar/Avatar.js.map +1 -1
  14. package/build/avatar/Avatar.mjs.map +1 -1
  15. package/build/avatar/avatarTypes.js.map +1 -1
  16. package/build/avatar/avatarTypes.mjs.map +1 -1
  17. package/build/avatarLayout/AvatarLayout.js.map +1 -1
  18. package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
  19. package/build/avatarView/AvatarView.js.map +1 -1
  20. package/build/avatarView/AvatarView.mjs.map +1 -1
  21. package/build/avatarView/NotificationDot.js.map +1 -1
  22. package/build/avatarView/NotificationDot.mjs.map +1 -1
  23. package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
  24. package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
  25. package/build/badge/Badge.js.map +1 -1
  26. package/build/badge/Badge.mjs.map +1 -1
  27. package/build/badge/BadgeAssets.js.map +1 -1
  28. package/build/badge/BadgeAssets.mjs.map +1 -1
  29. package/build/body/Body.js.map +1 -1
  30. package/build/body/Body.mjs.map +1 -1
  31. package/build/button/Button.js.map +1 -1
  32. package/build/button/Button.mjs.map +1 -1
  33. package/build/button/Button.resolver.js.map +1 -1
  34. package/build/button/Button.resolver.mjs.map +1 -1
  35. package/build/button/LegacyButton.js.map +1 -1
  36. package/build/button/LegacyButton.mjs +1 -1
  37. package/build/button/LegacyButton.mjs.map +1 -1
  38. package/build/button/classMap.js.map +1 -1
  39. package/build/button/classMap.mjs.map +1 -1
  40. package/build/button/legacyUtils/legacyUtils.js.map +1 -1
  41. package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
  42. package/build/card/Card.js.map +1 -1
  43. package/build/card/Card.mjs.map +1 -1
  44. package/build/carousel/Carousel.js.map +1 -1
  45. package/build/carousel/Carousel.mjs.map +1 -1
  46. package/build/checkbox/Checkbox.js.map +1 -1
  47. package/build/checkbox/Checkbox.mjs.map +1 -1
  48. package/build/checkboxButton/CheckboxButton.js.map +1 -1
  49. package/build/checkboxButton/CheckboxButton.mjs.map +1 -1
  50. package/build/checkboxOption/CheckboxOption.js.map +1 -1
  51. package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
  52. package/build/chevron/Chevron.js.map +1 -1
  53. package/build/chevron/Chevron.mjs.map +1 -1
  54. package/build/chips/Chip.js.map +1 -1
  55. package/build/chips/Chip.mjs.map +1 -1
  56. package/build/chips/Chips.js.map +1 -1
  57. package/build/chips/Chips.messages.js.map +1 -1
  58. package/build/chips/Chips.messages.mjs.map +1 -1
  59. package/build/chips/Chips.mjs.map +1 -1
  60. package/build/circularButton/CircularButton.js.map +1 -1
  61. package/build/circularButton/CircularButton.mjs.map +1 -1
  62. package/build/common/DOMOperations/DOMOperations.js.map +1 -1
  63. package/build/common/DOMOperations/DOMOperations.mjs.map +1 -1
  64. package/build/common/Option/Option.js.map +1 -1
  65. package/build/common/Option/Option.mjs.map +1 -1
  66. package/build/common/RadioButton/RadioButton.js.map +1 -1
  67. package/build/common/RadioButton/RadioButton.mjs.map +1 -1
  68. package/build/common/bottomSheet/BottomSheet.js.map +1 -1
  69. package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
  70. package/build/common/card/Card.js.map +1 -1
  71. package/build/common/card/Card.mjs.map +1 -1
  72. package/build/common/circle/Circle.js.map +1 -1
  73. package/build/common/circle/Circle.mjs.map +1 -1
  74. package/build/common/closeButton/CloseButton.js.map +1 -1
  75. package/build/common/closeButton/CloseButton.messages.js.map +1 -1
  76. package/build/common/closeButton/CloseButton.messages.mjs.map +1 -1
  77. package/build/common/closeButton/CloseButton.mjs.map +1 -1
  78. package/build/common/colors.js.map +1 -1
  79. package/build/common/colors.mjs.map +1 -1
  80. package/build/common/dateUtils/getDateView/getDateView.js.map +1 -1
  81. package/build/common/dateUtils/getDateView/getDateView.mjs.map +1 -1
  82. package/build/common/dateUtils/getDayNames/getDayNames.js.map +1 -1
  83. package/build/common/dateUtils/getDayNames/getDayNames.mjs.map +1 -1
  84. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js.map +1 -1
  85. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs.map +1 -1
  86. package/build/common/dateUtils/getMonthNames/getMonthNames.js.map +1 -1
  87. package/build/common/dateUtils/getMonthNames/getMonthNames.mjs.map +1 -1
  88. package/build/common/dateUtils/isDateValid/isDateValid.js.map +1 -1
  89. package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +1 -1
  90. package/build/common/dateUtils/isWithinRange/isWithinRange.js.map +1 -1
  91. package/build/common/dateUtils/isWithinRange/isWithinRange.mjs.map +1 -1
  92. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js.map +1 -1
  93. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs.map +1 -1
  94. package/build/common/deviceDetection/deviceDetection.js.map +1 -1
  95. package/build/common/deviceDetection/deviceDetection.mjs.map +1 -1
  96. package/build/common/direction.js.map +1 -1
  97. package/build/common/direction.mjs.map +1 -1
  98. package/build/common/domHelpers/documentIosClick.js.map +1 -1
  99. package/build/common/domHelpers/documentIosClick.mjs.map +1 -1
  100. package/build/common/fileType.js.map +1 -1
  101. package/build/common/fileType.mjs.map +1 -1
  102. package/build/common/flowHeader/FlowHeader.js.map +1 -1
  103. package/build/common/flowHeader/FlowHeader.mjs.map +1 -1
  104. package/build/common/focusBoundary/FocusBoundary.js.map +1 -1
  105. package/build/common/focusBoundary/FocusBoundary.mjs.map +1 -1
  106. package/build/common/historyNavigator/historyNavigator.js.map +1 -1
  107. package/build/common/historyNavigator/historyNavigator.mjs.map +1 -1
  108. package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +1 -1
  109. package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +1 -1
  110. package/build/common/hooks/useDirection/useDirection.js.map +1 -1
  111. package/build/common/hooks/useDirection/useDirection.mjs.map +1 -1
  112. package/build/common/hooks/useEffectEvent.js.map +1 -1
  113. package/build/common/hooks/useEffectEvent.mjs.map +1 -1
  114. package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
  115. package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +1 -1
  116. package/build/common/hooks/useLayout/useLayout.js.map +1 -1
  117. package/build/common/hooks/useLayout/useLayout.mjs.map +1 -1
  118. package/build/common/hooks/useMedia.js.map +1 -1
  119. package/build/common/hooks/useMedia.mjs.map +1 -1
  120. package/build/common/hooks/useResizeObserver.js.map +1 -1
  121. package/build/common/hooks/useResizeObserver.mjs.map +1 -1
  122. package/build/common/hooks/useScreenSize.js.map +1 -1
  123. package/build/common/hooks/useScreenSize.mjs.map +1 -1
  124. package/build/common/hooks/useVirtualKeyboard.js.map +1 -1
  125. package/build/common/hooks/useVirtualKeyboard.mjs.map +1 -1
  126. package/build/common/initials.js +3 -0
  127. package/build/common/initials.js.map +1 -1
  128. package/build/common/initials.mjs +3 -0
  129. package/build/common/initials.mjs.map +1 -1
  130. package/build/common/locale/index.js.map +1 -1
  131. package/build/common/locale/index.mjs.map +1 -1
  132. package/build/common/panel/Panel.js.map +1 -1
  133. package/build/common/panel/Panel.mjs.map +1 -1
  134. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +1 -1
  135. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs.map +1 -1
  136. package/build/common/preventScroll/PreventScroll.js.map +1 -1
  137. package/build/common/preventScroll/PreventScroll.mjs.map +1 -1
  138. package/build/common/propsValues/breakpoint.js.map +1 -1
  139. package/build/common/propsValues/breakpoint.mjs.map +1 -1
  140. package/build/common/propsValues/control.js.map +1 -1
  141. package/build/common/propsValues/control.mjs.map +1 -1
  142. package/build/common/propsValues/dateMode.js.map +1 -1
  143. package/build/common/propsValues/dateMode.mjs.map +1 -1
  144. package/build/common/propsValues/layouts.js.map +1 -1
  145. package/build/common/propsValues/layouts.mjs.map +1 -1
  146. package/build/common/propsValues/markdownNodeType.js.map +1 -1
  147. package/build/common/propsValues/markdownNodeType.mjs.map +1 -1
  148. package/build/common/propsValues/monthFormat.js.map +1 -1
  149. package/build/common/propsValues/monthFormat.mjs.map +1 -1
  150. package/build/common/propsValues/position.js.map +1 -1
  151. package/build/common/propsValues/position.mjs.map +1 -1
  152. package/build/common/propsValues/profileType.js.map +1 -1
  153. package/build/common/propsValues/profileType.mjs.map +1 -1
  154. package/build/common/propsValues/scroll.js.map +1 -1
  155. package/build/common/propsValues/scroll.mjs.map +1 -1
  156. package/build/common/propsValues/sentiment.js.map +1 -1
  157. package/build/common/propsValues/sentiment.mjs.map +1 -1
  158. package/build/common/propsValues/size.js.map +1 -1
  159. package/build/common/propsValues/size.mjs.map +1 -1
  160. package/build/common/propsValues/status.js.map +1 -1
  161. package/build/common/propsValues/status.mjs.map +1 -1
  162. package/build/common/propsValues/type.js.map +1 -1
  163. package/build/common/propsValues/type.mjs.map +1 -1
  164. package/build/common/propsValues/typography.js.map +1 -1
  165. package/build/common/propsValues/typography.mjs.map +1 -1
  166. package/build/common/propsValues/variant.js.map +1 -1
  167. package/build/common/propsValues/variant.mjs.map +1 -1
  168. package/build/common/propsValues/width.js.map +1 -1
  169. package/build/common/propsValues/width.mjs.map +1 -1
  170. package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
  171. package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
  172. package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +1 -1
  173. package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs.map +1 -1
  174. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +1 -1
  175. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +1 -1
  176. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +1 -1
  177. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +1 -1
  178. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +1 -1
  179. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +1 -1
  180. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +1 -1
  181. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs.map +1 -1
  182. package/build/common/theme.js.map +1 -1
  183. package/build/common/theme.mjs.map +1 -1
  184. package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
  185. package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
  186. package/build/dateInput/DateInput.js.map +1 -1
  187. package/build/dateInput/DateInput.messages.js.map +1 -1
  188. package/build/dateInput/DateInput.messages.mjs.map +1 -1
  189. package/build/dateInput/DateInput.mjs.map +1 -1
  190. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +1 -1
  191. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +1 -1
  192. package/build/dateLookup/DateLookup.js +4 -4
  193. package/build/dateLookup/DateLookup.js.map +1 -1
  194. package/build/dateLookup/DateLookup.messages.js.map +1 -1
  195. package/build/dateLookup/DateLookup.messages.mjs.map +1 -1
  196. package/build/dateLookup/DateLookup.mjs +4 -4
  197. package/build/dateLookup/DateLookup.mjs.map +1 -1
  198. package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
  199. package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
  200. package/build/dateLookup/dateTrigger/DateTrigger.js.map +1 -1
  201. package/build/dateLookup/dateTrigger/DateTrigger.messages.js.map +1 -1
  202. package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs.map +1 -1
  203. package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +1 -1
  204. package/build/dateLookup/dayCalendar/DayCalendar.js.map +1 -1
  205. package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +1 -1
  206. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +3 -3
  207. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
  208. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +3 -3
  209. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +1 -1
  210. package/build/dateLookup/getFocusableTime/getFocusableTime.js.map +1 -1
  211. package/build/dateLookup/getFocusableTime/getFocusableTime.mjs.map +1 -1
  212. package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +1 -1
  213. package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +1 -1
  214. package/build/dateLookup/monthCalendar/MonthCalendar.js.map +1 -1
  215. package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +1 -1
  216. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +1 -1
  217. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +1 -1
  218. package/build/dateLookup/tableLink/TableLink.js.map +1 -1
  219. package/build/dateLookup/tableLink/TableLink.mjs.map +1 -1
  220. package/build/dateLookup/yearCalendar/YearCalendar.js.map +1 -1
  221. package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +1 -1
  222. package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +1 -1
  223. package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +1 -1
  224. package/build/decision/Decision.js.map +1 -1
  225. package/build/decision/Decision.mjs.map +1 -1
  226. package/build/definitionList/DefinitionList.js.map +1 -1
  227. package/build/definitionList/DefinitionList.mjs.map +1 -1
  228. package/build/dimmer/Dimmer.js.map +1 -1
  229. package/build/dimmer/Dimmer.mjs.map +1 -1
  230. package/build/dimmer/dimmerManager/DimmerManager.js.map +1 -1
  231. package/build/dimmer/dimmerManager/DimmerManager.mjs.map +1 -1
  232. package/build/display/Display.js.map +1 -1
  233. package/build/display/Display.mjs.map +1 -1
  234. package/build/divider/Divider.js.map +1 -1
  235. package/build/divider/Divider.mjs.map +1 -1
  236. package/build/drawer/Drawer.js.map +1 -1
  237. package/build/drawer/Drawer.mjs.map +1 -1
  238. package/build/dropFade/DropFade.js.map +1 -1
  239. package/build/dropFade/DropFade.mjs.map +1 -1
  240. package/build/emphasis/Emphasis.js.map +1 -1
  241. package/build/emphasis/Emphasis.mjs.map +1 -1
  242. package/build/emphasis/EmphasisHtmlTransformer.js.map +1 -1
  243. package/build/emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
  244. package/build/field/Field.js.map +1 -1
  245. package/build/field/Field.mjs.map +1 -1
  246. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  247. package/build/flowNavigation/FlowNavigation.messages.js.map +1 -1
  248. package/build/flowNavigation/FlowNavigation.messages.mjs.map +1 -1
  249. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  250. package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +1 -1
  251. package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +1 -1
  252. package/build/header/Header.js.map +1 -1
  253. package/build/header/Header.mjs.map +1 -1
  254. package/build/i18n/commonMessages/Button.messages.js.map +1 -1
  255. package/build/i18n/commonMessages/Button.messages.mjs.map +1 -1
  256. package/build/i18n/cs.json +9 -9
  257. package/build/i18n/cs.json.js +9 -9
  258. package/build/i18n/cs.json.mjs +9 -9
  259. package/build/i18n/index.js.map +1 -1
  260. package/build/i18n/index.mjs.map +1 -1
  261. package/build/iconButton/IconButton.js.map +1 -1
  262. package/build/iconButton/IconButton.mjs.map +1 -1
  263. package/build/image/Image.js.map +1 -1
  264. package/build/image/Image.mjs.map +1 -1
  265. package/build/info/Info.js.map +1 -1
  266. package/build/info/Info.messages.js.map +1 -1
  267. package/build/info/Info.messages.mjs.map +1 -1
  268. package/build/info/Info.mjs.map +1 -1
  269. package/build/info/infoPresentations.js.map +1 -1
  270. package/build/info/infoPresentations.mjs.map +1 -1
  271. package/build/inlineAlert/InlineAlert.js.map +1 -1
  272. package/build/inlineAlert/InlineAlert.mjs.map +1 -1
  273. package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +1 -1
  274. package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs.map +1 -1
  275. package/build/inputs/Input.js.map +1 -1
  276. package/build/inputs/Input.mjs.map +1 -1
  277. package/build/inputs/InputGroup.js +16 -20
  278. package/build/inputs/InputGroup.js.map +1 -1
  279. package/build/inputs/InputGroup.mjs +17 -21
  280. package/build/inputs/InputGroup.mjs.map +1 -1
  281. package/build/inputs/SearchInput.js.map +1 -1
  282. package/build/inputs/SearchInput.mjs.map +1 -1
  283. package/build/inputs/SelectInput.js +6 -1
  284. package/build/inputs/SelectInput.js.map +1 -1
  285. package/build/inputs/SelectInput.messages.js.map +1 -1
  286. package/build/inputs/SelectInput.messages.mjs.map +1 -1
  287. package/build/inputs/SelectInput.mjs +6 -1
  288. package/build/inputs/SelectInput.mjs.map +1 -1
  289. package/build/inputs/TextArea.js.map +1 -1
  290. package/build/inputs/TextArea.mjs.map +1 -1
  291. package/build/inputs/_BottomSheet.js.map +1 -1
  292. package/build/inputs/_BottomSheet.mjs.map +1 -1
  293. package/build/inputs/_ButtonInput.js.map +1 -1
  294. package/build/inputs/_ButtonInput.mjs.map +1 -1
  295. package/build/inputs/_Popover.js.map +1 -1
  296. package/build/inputs/_Popover.mjs +1 -1
  297. package/build/inputs/_Popover.mjs.map +1 -1
  298. package/build/inputs/_common.js.map +1 -1
  299. package/build/inputs/_common.mjs.map +1 -1
  300. package/build/inputs/contexts.js.map +1 -1
  301. package/build/inputs/contexts.mjs.map +1 -1
  302. package/build/instructionsList/InstructionsList.js.map +1 -1
  303. package/build/instructionsList/InstructionsList.mjs.map +1 -1
  304. package/build/label/Label.js.map +1 -1
  305. package/build/label/Label.messages.js.map +1 -1
  306. package/build/label/Label.messages.mjs.map +1 -1
  307. package/build/label/Label.mjs.map +1 -1
  308. package/build/legacylistItem/LegacyListItem.js.map +1 -1
  309. package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
  310. package/build/legacylistItem/List.js.map +1 -1
  311. package/build/legacylistItem/List.mjs.map +1 -1
  312. package/build/link/Link.js.map +1 -1
  313. package/build/link/Link.messages.js.map +1 -1
  314. package/build/link/Link.messages.mjs.map +1 -1
  315. package/build/link/Link.mjs.map +1 -1
  316. package/build/loader/Loader.js.map +1 -1
  317. package/build/loader/Loader.mjs.map +1 -1
  318. package/build/logo/Logo.js.map +1 -1
  319. package/build/logo/Logo.mjs +1 -1
  320. package/build/logo/Logo.mjs.map +1 -1
  321. package/build/logo/logo-assets.js.map +1 -1
  322. package/build/logo/logo-assets.mjs.map +1 -1
  323. package/build/main.css +15 -0
  324. package/build/markdown/Markdown.js +20 -4
  325. package/build/markdown/Markdown.js.map +1 -1
  326. package/build/markdown/Markdown.mjs +1 -1
  327. package/build/markdown/Markdown.mjs.map +1 -1
  328. package/build/mocks.js.map +1 -1
  329. package/build/mocks.mjs.map +1 -1
  330. package/build/modal/Modal.js.map +1 -1
  331. package/build/modal/Modal.mjs.map +1 -1
  332. package/build/money/Money.js.map +1 -1
  333. package/build/money/Money.mjs.map +1 -1
  334. package/build/moneyInput/MoneyInput.js +2 -2
  335. package/build/moneyInput/MoneyInput.js.map +1 -1
  336. package/build/moneyInput/MoneyInput.messages.js.map +1 -1
  337. package/build/moneyInput/MoneyInput.messages.mjs.map +1 -1
  338. package/build/moneyInput/MoneyInput.mjs +2 -2
  339. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  340. package/build/moneyInput/currencyFormatting.js.map +1 -1
  341. package/build/moneyInput/currencyFormatting.mjs.map +1 -1
  342. package/build/navigationOption/NavigationOption.js.map +1 -1
  343. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  344. package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
  345. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  346. package/build/nudge/Nudge.js.map +1 -1
  347. package/build/nudge/Nudge.mjs.map +1 -1
  348. package/build/overlayHeader/OverlayHeader.js.map +1 -1
  349. package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
  350. package/build/phoneNumberInput/PhoneNumberInput.js +2 -2
  351. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  352. package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
  353. package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +1 -1
  354. package/build/phoneNumberInput/PhoneNumberInput.mjs +2 -2
  355. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  356. package/build/phoneNumberInput/data/countries.js.map +1 -1
  357. package/build/phoneNumberInput/data/countries.mjs.map +1 -1
  358. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js.map +1 -1
  359. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs.map +1 -1
  360. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +1 -1
  361. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +1 -1
  362. package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +1 -1
  363. package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +1 -1
  364. package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +1 -1
  365. package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +1 -1
  366. package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +1 -1
  367. package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +1 -1
  368. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +1 -1
  369. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +1 -1
  370. package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +1 -1
  371. package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs.map +1 -1
  372. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +1 -1
  373. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +1 -1
  374. package/build/popover/Popover.js.map +1 -1
  375. package/build/popover/Popover.mjs +1 -1
  376. package/build/popover/Popover.mjs.map +1 -1
  377. package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
  378. package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs.map +1 -1
  379. package/build/primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
  380. package/build/primitives/PrimitiveButton/PrimitiveButton.mjs.map +1 -1
  381. package/build/processIndicator/ProcessIndicator.js.map +1 -1
  382. package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
  383. package/build/progress/Progress.js.map +1 -1
  384. package/build/progress/Progress.mjs.map +1 -1
  385. package/build/progressBar/ProgressBar.js.map +1 -1
  386. package/build/progressBar/ProgressBar.mjs.map +1 -1
  387. package/build/promoCard/PromoCard.js.map +1 -1
  388. package/build/promoCard/PromoCard.mjs.map +1 -1
  389. package/build/promoCard/PromoCardContext.js.map +1 -1
  390. package/build/promoCard/PromoCardContext.mjs.map +1 -1
  391. package/build/promoCard/PromoCardGroup.js +1 -1
  392. package/build/promoCard/PromoCardGroup.js.map +1 -1
  393. package/build/promoCard/PromoCardGroup.mjs +1 -1
  394. package/build/promoCard/PromoCardGroup.mjs.map +1 -1
  395. package/build/promoCard/PromoCardIndicator.js.map +1 -1
  396. package/build/promoCard/PromoCardIndicator.mjs +1 -1
  397. package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
  398. package/build/provider/Provider.js.map +1 -1
  399. package/build/provider/Provider.mjs.map +1 -1
  400. package/build/provider/direction/DirectionProvider.js.map +1 -1
  401. package/build/provider/direction/DirectionProvider.mjs.map +1 -1
  402. package/build/provider/language/LanguageProvider.js.map +1 -1
  403. package/build/provider/language/LanguageProvider.mjs.map +1 -1
  404. package/build/provider/overlay/OverlayIdProvider.js.map +1 -1
  405. package/build/provider/overlay/OverlayIdProvider.mjs +1 -1
  406. package/build/provider/overlay/OverlayIdProvider.mjs.map +1 -1
  407. package/build/radio/Radio.js.map +1 -1
  408. package/build/radio/Radio.mjs.map +1 -1
  409. package/build/radioGroup/RadioGroup.js.map +1 -1
  410. package/build/radioGroup/RadioGroup.mjs.map +1 -1
  411. package/build/radioOption/RadioOption.js.map +1 -1
  412. package/build/radioOption/RadioOption.mjs.map +1 -1
  413. package/build/section/Section.js.map +1 -1
  414. package/build/section/Section.mjs.map +1 -1
  415. package/build/segmentedControl/SegmentedControl.js.map +1 -1
  416. package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
  417. package/build/select/Select.js +14 -22
  418. package/build/select/Select.js.map +1 -1
  419. package/build/select/Select.messages.js.map +1 -1
  420. package/build/select/Select.messages.mjs.map +1 -1
  421. package/build/select/Select.mjs +14 -22
  422. package/build/select/Select.mjs.map +1 -1
  423. package/build/select/option/Option.js.map +1 -1
  424. package/build/select/option/Option.mjs.map +1 -1
  425. package/build/select/searchBox/SearchBox.js.map +1 -1
  426. package/build/select/searchBox/SearchBox.mjs.map +1 -1
  427. package/build/selectOption/SelectOption.js.map +1 -1
  428. package/build/selectOption/SelectOption.messages.js.map +1 -1
  429. package/build/selectOption/SelectOption.messages.mjs.map +1 -1
  430. package/build/selectOption/SelectOption.mjs +1 -1
  431. package/build/selectOption/SelectOption.mjs.map +1 -1
  432. package/build/slidingPanel/SlidingPanel.js.map +1 -1
  433. package/build/slidingPanel/SlidingPanel.mjs.map +1 -1
  434. package/build/snackbar/Snackbar.js +1 -1
  435. package/build/snackbar/Snackbar.js.map +1 -1
  436. package/build/snackbar/Snackbar.mjs +1 -1
  437. package/build/snackbar/Snackbar.mjs.map +1 -1
  438. package/build/snackbar/SnackbarContext.js.map +1 -1
  439. package/build/snackbar/SnackbarContext.mjs.map +1 -1
  440. package/build/snackbar/SnackbarProvider.js.map +1 -1
  441. package/build/snackbar/SnackbarProvider.mjs.map +1 -1
  442. package/build/snackbar/useSnackbar.js.map +1 -1
  443. package/build/snackbar/useSnackbar.mjs.map +1 -1
  444. package/build/statusIcon/StatusIcon.js.map +1 -1
  445. package/build/statusIcon/StatusIcon.messages.js.map +1 -1
  446. package/build/statusIcon/StatusIcon.messages.mjs.map +1 -1
  447. package/build/statusIcon/StatusIcon.mjs +1 -1
  448. package/build/statusIcon/StatusIcon.mjs.map +1 -1
  449. package/build/stepper/Stepper.js.map +1 -1
  450. package/build/stepper/Stepper.mjs.map +1 -1
  451. package/build/stepper/deviceDetection.js.map +1 -1
  452. package/build/stepper/deviceDetection.mjs.map +1 -1
  453. package/build/sticky/Sticky.js.map +1 -1
  454. package/build/sticky/Sticky.mjs.map +1 -1
  455. package/build/styles/inputs/Input.css +10 -0
  456. package/build/styles/inputs/TextArea.css +10 -0
  457. package/build/styles/main.css +15 -0
  458. package/build/styles/upload/Upload.css +3 -0
  459. package/build/summary/Summary.js.map +1 -1
  460. package/build/summary/Summary.messages.js.map +1 -1
  461. package/build/summary/Summary.messages.mjs.map +1 -1
  462. package/build/summary/Summary.mjs +1 -1
  463. package/build/summary/Summary.mjs.map +1 -1
  464. package/build/switch/Switch.js.map +1 -1
  465. package/build/switch/Switch.mjs.map +1 -1
  466. package/build/switchOption/SwitchOption.js.map +1 -1
  467. package/build/switchOption/SwitchOption.mjs.map +1 -1
  468. package/build/table/Table.js.map +1 -1
  469. package/build/table/Table.messages.js.map +1 -1
  470. package/build/table/Table.messages.mjs.map +1 -1
  471. package/build/table/Table.mjs.map +1 -1
  472. package/build/table/TableCell.js.map +1 -1
  473. package/build/table/TableCell.mjs.map +1 -1
  474. package/build/table/TableHeader.js.map +1 -1
  475. package/build/table/TableHeader.mjs.map +1 -1
  476. package/build/table/TableRow.js.map +1 -1
  477. package/build/table/TableRow.mjs.map +1 -1
  478. package/build/table/TableStatusText.js.map +1 -1
  479. package/build/table/TableStatusText.mjs.map +1 -1
  480. package/build/tabs/Tab.js.map +1 -1
  481. package/build/tabs/Tab.mjs.map +1 -1
  482. package/build/tabs/TabList.js.map +1 -1
  483. package/build/tabs/TabList.mjs.map +1 -1
  484. package/build/tabs/TabPanel.js.map +1 -1
  485. package/build/tabs/TabPanel.mjs.map +1 -1
  486. package/build/tabs/Tabs.js +3 -3
  487. package/build/tabs/Tabs.js.map +1 -1
  488. package/build/tabs/Tabs.mjs +4 -4
  489. package/build/tabs/Tabs.mjs.map +1 -1
  490. package/build/tabs/utils.js +1 -1
  491. package/build/tabs/utils.js.map +1 -1
  492. package/build/tabs/utils.mjs +1 -1
  493. package/build/tabs/utils.mjs.map +1 -1
  494. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +1 -1
  495. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +1 -1
  496. package/build/tile/Tile.js.map +1 -1
  497. package/build/tile/Tile.mjs.map +1 -1
  498. package/build/title/Title.js.map +1 -1
  499. package/build/title/Title.mjs.map +1 -1
  500. package/build/tooltip/Tooltip.js.map +1 -1
  501. package/build/tooltip/Tooltip.mjs.map +1 -1
  502. package/build/typeahead/Typeahead.js +57 -61
  503. package/build/typeahead/Typeahead.js.map +1 -1
  504. package/build/typeahead/Typeahead.messages.js.map +1 -1
  505. package/build/typeahead/Typeahead.messages.mjs.map +1 -1
  506. package/build/typeahead/Typeahead.mjs +57 -61
  507. package/build/typeahead/Typeahead.mjs.map +1 -1
  508. package/build/typeahead/typeaheadInput/TypeaheadInput.js +2 -2
  509. package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +1 -1
  510. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs +2 -2
  511. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +1 -1
  512. package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +1 -1
  513. package/build/typeahead/typeaheadOption/TypeaheadOption.mjs.map +1 -1
  514. package/build/typeahead/util/highlight.js.map +1 -1
  515. package/build/typeahead/util/highlight.mjs.map +1 -1
  516. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  517. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
  518. package/build/types/badge/Badge.d.ts.map +1 -1
  519. package/build/types/chevron/Chevron.d.ts.map +1 -1
  520. package/build/types/chips/Chip.d.ts.map +1 -1
  521. package/build/types/chips/Chips.d.ts.map +1 -1
  522. package/build/types/circularButton/CircularButton.d.ts.map +1 -1
  523. package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
  524. package/build/types/common/colors.d.ts.map +1 -1
  525. package/build/types/common/dateUtils/getDateView/getDateView.d.ts.map +1 -1
  526. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -1
  527. package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -1
  528. package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -1
  529. package/build/types/common/fakeEvents.d.ts.map +1 -1
  530. package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -1
  531. package/build/types/common/historyNavigator/historyNavigator.d.ts.map +1 -1
  532. package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +1 -1
  533. package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -1
  534. package/build/types/common/initials.d.ts.map +1 -1
  535. package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -1
  536. package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -1
  537. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -1
  538. package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -1
  539. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -1
  540. package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -1
  541. package/build/types/common/theme.d.ts.map +1 -1
  542. package/build/types/dateInput/DateInput.d.ts.map +1 -1
  543. package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -1
  544. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  545. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -1
  546. package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -1
  547. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -1
  548. package/build/types/decision/Decision.d.ts.map +1 -1
  549. package/build/types/dimmer/Dimmer.d.ts.map +1 -1
  550. package/build/types/dropFade/DropFade.d.ts.map +1 -1
  551. package/build/types/emphasis/Emphasis.d.ts.map +1 -1
  552. package/build/types/field/Field.d.ts.map +1 -1
  553. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
  554. package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +1 -1
  555. package/build/types/header/Header.d.ts.map +1 -1
  556. package/build/types/image/Image.d.ts.map +1 -1
  557. package/build/types/info/Info.d.ts.map +1 -1
  558. package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -1
  559. package/build/types/inputs/SelectInput.d.ts.map +1 -1
  560. package/build/types/instructionsList/InstructionsList.d.ts.map +1 -1
  561. package/build/types/link/Link.d.ts.map +1 -1
  562. package/build/types/loader/Loader.d.ts.map +1 -1
  563. package/build/types/markdown/Markdown.d.ts.map +1 -1
  564. package/build/types/modal/Modal.d.ts.map +1 -1
  565. package/build/types/money/Money.d.ts.map +1 -1
  566. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -1
  567. package/build/types/nudge/Nudge.d.ts.map +1 -1
  568. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  569. package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -1
  570. package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -1
  571. package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -1
  572. package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -1
  573. package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -1
  574. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -1
  575. package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -1
  576. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -1
  577. package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -1
  578. package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -1
  579. package/build/types/progress/Progress.d.ts.map +1 -1
  580. package/build/types/progressBar/ProgressBar.d.ts.map +1 -1
  581. package/build/types/provider/direction/DirectionProvider.d.ts.map +1 -1
  582. package/build/types/provider/language/LanguageProvider.d.ts.map +1 -1
  583. package/build/types/provider/overlay/OverlayIdProvider.d.ts.map +1 -1
  584. package/build/types/section/Section.d.ts.map +1 -1
  585. package/build/types/segmentedControl/SegmentedControl.d.ts.map +1 -1
  586. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  587. package/build/types/stepper/Stepper.d.ts.map +1 -1
  588. package/build/types/summary/Summary.d.ts.map +1 -1
  589. package/build/types/switch/Switch.d.ts.map +1 -1
  590. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  591. package/build/types/table/Table.d.ts.map +1 -1
  592. package/build/types/table/TableCell.d.ts.map +1 -1
  593. package/build/types/table/TableHeader.d.ts.map +1 -1
  594. package/build/types/table/TableRow.d.ts.map +1 -1
  595. package/build/types/table/TableStatusText.d.ts.map +1 -1
  596. package/build/types/tabs/Tabs.d.ts.map +1 -1
  597. package/build/types/tabs/utils.d.ts.map +1 -1
  598. package/build/types/test-utils/story-config.d.ts.map +1 -1
  599. package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -1
  600. package/build/types/tooltip/Tooltip.d.ts.map +1 -1
  601. package/build/types/upload/Upload.d.ts.map +1 -1
  602. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -0
  603. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -1
  604. package/build/types/uploadInput/UploadInput.d.ts.map +1 -1
  605. package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -1
  606. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -1
  607. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
  608. package/build/types/withNextPortal/withNextPortal.d.ts.map +1 -1
  609. package/build/upload/Upload.js +2 -2
  610. package/build/upload/Upload.js.map +1 -1
  611. package/build/upload/Upload.messages.js.map +1 -1
  612. package/build/upload/Upload.messages.mjs.map +1 -1
  613. package/build/upload/Upload.mjs +2 -2
  614. package/build/upload/Upload.mjs.map +1 -1
  615. package/build/upload/steps/completeStep/completeStep.js.map +1 -1
  616. package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
  617. package/build/upload/steps/processingStep/processingStep.js.map +1 -1
  618. package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
  619. package/build/upload/steps/uploadImageStep/uploadImageStep.js +8 -1
  620. package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
  621. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +8 -1
  622. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
  623. package/build/upload/utils/asyncFileRead/asyncFileRead.js.map +1 -1
  624. package/build/upload/utils/asyncFileRead/asyncFileRead.mjs.map +1 -1
  625. package/build/upload/utils/getFileType/getFileType.js.map +1 -1
  626. package/build/upload/utils/getFileType/getFileType.mjs.map +1 -1
  627. package/build/upload/utils/isSizeValid/isSizeValid.js.map +1 -1
  628. package/build/upload/utils/isSizeValid/isSizeValid.mjs.map +1 -1
  629. package/build/upload/utils/isTypeValid/isTypeValid.js.map +1 -1
  630. package/build/upload/utils/isTypeValid/isTypeValid.mjs.map +1 -1
  631. package/build/upload/utils/postData/postData.js.map +1 -1
  632. package/build/upload/utils/postData/postData.mjs.map +1 -1
  633. package/build/uploadInput/UploadInput.js.map +1 -1
  634. package/build/uploadInput/UploadInput.messages.js.map +1 -1
  635. package/build/uploadInput/UploadInput.messages.mjs.map +1 -1
  636. package/build/uploadInput/UploadInput.mjs +2 -2
  637. package/build/uploadInput/UploadInput.mjs.map +1 -1
  638. package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
  639. package/build/uploadInput/uploadButton/UploadButton.messages.js.map +1 -1
  640. package/build/uploadInput/uploadButton/UploadButton.messages.mjs.map +1 -1
  641. package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
  642. package/build/uploadInput/uploadButton/defaults.js.map +1 -1
  643. package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
  644. package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
  645. package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
  646. package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
  647. package/build/uploadInput/uploadItem/UploadItem.messages.js.map +1 -1
  648. package/build/uploadInput/uploadItem/UploadItem.messages.mjs.map +1 -1
  649. package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
  650. package/build/uploadInput/uploadItem/UploadItemLink.js.map +1 -1
  651. package/build/uploadInput/uploadItem/UploadItemLink.mjs.map +1 -1
  652. package/build/utilities/cssValueWithUnit.js.map +1 -1
  653. package/build/utilities/cssValueWithUnit.mjs.map +1 -1
  654. package/build/utilities/logActionRequired.js.map +1 -1
  655. package/build/utilities/logActionRequired.mjs.map +1 -1
  656. package/build/withDisplayFormat/WithDisplayFormat.js +3 -5
  657. package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
  658. package/build/withDisplayFormat/WithDisplayFormat.mjs +3 -5
  659. package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
  660. package/build/withId/withId.js.map +1 -1
  661. package/build/withId/withId.mjs.map +1 -1
  662. package/build/withNextPortal/withNextPortal.js +1 -1
  663. package/build/withNextPortal/withNextPortal.js.map +1 -1
  664. package/build/withNextPortal/withNextPortal.mjs +1 -1
  665. package/build/withNextPortal/withNextPortal.mjs.map +1 -1
  666. package/package.json +52 -52
  667. package/src/alert/Alert.spec.tsx +2 -4
  668. package/src/card/Card.story.tsx +4 -2
  669. package/src/checkbox/Checkbox.story.tsx +3 -2
  670. package/src/common/initials.spec.tsx +42 -0
  671. package/src/common/initials.ts +4 -0
  672. package/src/dateInput/DateInput.story.tsx +2 -2
  673. package/src/dateInput/DateInput.tests.story.tsx +11 -10
  674. package/src/i18n/cs.json +9 -9
  675. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +1 -1
  676. package/src/inputs/Input.css +10 -0
  677. package/src/inputs/SelectInput.tsx +11 -2
  678. package/src/inputs/TextArea.css +10 -0
  679. package/src/inputs/_common.less +6 -0
  680. package/src/main.css +15 -0
  681. package/src/markdown/Markdown.tsx +2 -1
  682. package/src/phoneNumberInput/PhoneNumberInput.tsx +2 -2
  683. package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +3 -2
  684. package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +3 -2
  685. package/src/radioGroup/RadioGroup.story.tsx +2 -2
  686. package/src/tabs/Tabs.spec.tsx +137 -0
  687. package/src/tabs/Tabs.story.tsx +1 -0
  688. package/src/tabs/Tabs.tsx +0 -1
  689. package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.spec.js +9 -8
  690. package/src/typeahead/Typeahead.story.tsx +3 -2
  691. package/src/upload/Upload.css +3 -0
  692. package/src/upload/Upload.less +7 -1
  693. package/src/upload/Upload.story.tsx +1 -1
  694. package/src/upload/steps/uploadImageStep/uploadImageStep.spec.tsx +15 -0
  695. package/src/upload/steps/uploadImageStep/uploadImageStep.tsx +8 -0
  696. package/src/withDisplayFormat/WithDisplayFormat.spec.js +120 -209
  697. package/src/withDisplayFormat/WithDisplayFormat.tsx +4 -6
  698. package/src/tabs/Tabs.spec.js +0 -423
  699. package/src/withDisplayFormat/WithDisplayFormat.state.spec.js +0 -42
@@ -0,0 +1,137 @@
1
+ import { Globals } from '@react-spring/web';
2
+ import { render, screen, userEvent } from '../test-utils';
3
+ import Tabs, { TabsProps } from './Tabs';
4
+
5
+ const user = userEvent.setup({ advanceTimers: jest.advanceTimersByTimeAsync });
6
+
7
+ if (typeof performance === 'undefined') {
8
+ global.performance = { now: () => Date.now() } as Performance;
9
+ }
10
+
11
+ const defaultTabsStatus = [false, true, false];
12
+
13
+ function generateTabs(tabsStatus = defaultTabsStatus) {
14
+ return tabsStatus.map((disabled, index) => ({
15
+ disabled,
16
+ title: `Title ${index}`,
17
+ content: <p data-testid={`content-${index}`}>Content {index}</p>,
18
+ }));
19
+ }
20
+
21
+ beforeAll(() => {
22
+ Globals.assign({
23
+ skipAnimation: true,
24
+ });
25
+ });
26
+
27
+ describe('Tabs', () => {
28
+ const initialProps: TabsProps = {
29
+ animatePanelsOnClick: true,
30
+ tabs: generateTabs(),
31
+ changeTabOnSwipe: true,
32
+ name: 'testName',
33
+ headerWidth: 'block',
34
+ selected: 0,
35
+ transitionSpacing: 'default',
36
+ onTabSelect: jest.fn(),
37
+ className: 'custom-class-name',
38
+ };
39
+
40
+ beforeEach(() => {
41
+ jest.clearAllMocks();
42
+ jest.useFakeTimers();
43
+ });
44
+
45
+ afterEach(async () => {
46
+ jest.runOnlyPendingTimers();
47
+ jest.useRealTimers();
48
+ });
49
+
50
+ it('should render a tablist', () => {
51
+ render(<Tabs {...initialProps} />);
52
+ expect(screen.getByRole('tablist')).toBeInTheDocument();
53
+ });
54
+
55
+ it('should respect className', () => {
56
+ render(<Tabs {...initialProps} />);
57
+ expect(screen.getByRole('tablist').parentNode).toHaveClass(String(initialProps.className));
58
+ });
59
+
60
+ it('should respect `name` prop', () => {
61
+ render(<Tabs {...initialProps} />);
62
+ const controlsTarget = screen
63
+ .getByRole('tab', { selected: true })
64
+ .getAttribute('aria-controls');
65
+ expect(screen.getByRole('tabpanel')).toHaveAttribute('id', controlsTarget);
66
+ });
67
+
68
+ describe('transitionSpacing', () => {
69
+ test.each([
70
+ ['default', '100%'],
71
+ ['xs', '8px'],
72
+ ['sm', '16px'],
73
+ ['md', '24px'],
74
+ ['lg', '32px'],
75
+ ] as const)('should respect `%s`', (input, width) => {
76
+ render(<Tabs {...initialProps} transitionSpacing={input} />);
77
+ expect(screen.getByRole('tabpanel').nextSibling).toHaveStyle({ width });
78
+ });
79
+ });
80
+
81
+ it('should render correct number of tabs', () => {
82
+ render(<Tabs {...initialProps} />);
83
+ expect(screen.getAllByRole('tab')).toHaveLength(defaultTabsStatus.length);
84
+ initialProps.tabs.forEach(({ title }) => {
85
+ expect(screen.getByText(title)).toBeInTheDocument();
86
+ });
87
+ });
88
+
89
+ it('should show first tab content by default', () => {
90
+ render(<Tabs {...initialProps} />);
91
+ expect(screen.getAllByRole('tabpanel')).toHaveLength(1);
92
+ expect(screen.getByTestId('content-0')).toBeInTheDocument();
93
+ });
94
+
95
+ describe('tab switch', () => {
96
+ it('should call onTabSelecton on click', async () => {
97
+ render(<Tabs {...initialProps} />);
98
+ const thirdTab = screen.getAllByRole('tab')[2];
99
+ await user.click(thirdTab);
100
+
101
+ // It's called on mount first, that's why the count is at 2
102
+ expect(initialProps.onTabSelect).toHaveBeenCalledTimes(2);
103
+ expect(initialProps.onTabSelect).toHaveBeenCalledWith(2);
104
+ });
105
+
106
+ it('should call onTabSelecton when navigating with keyboard', async () => {
107
+ render(<Tabs {...initialProps} />);
108
+ await user.keyboard('{Tab}{Tab}{Tab}{Enter}');
109
+
110
+ // It's called on mount first, that's why the count is at 2
111
+ expect(initialProps.onTabSelect).toHaveBeenCalledTimes(2);
112
+ expect(initialProps.onTabSelect).toHaveBeenCalledWith(2);
113
+ });
114
+
115
+ it('should call onTabSelecton on swipe', async () => {
116
+ render(<Tabs {...initialProps} />);
117
+ await user.keyboard('{Tab}{Tab}{Tab}{Enter}');
118
+
119
+ // It's called on mount first, that's why the count is at 2
120
+ expect(initialProps.onTabSelect).toHaveBeenCalledTimes(2);
121
+ expect(initialProps.onTabSelect).toHaveBeenCalledWith(2);
122
+ });
123
+
124
+ it('should highlight selected tab', async () => {
125
+ const { rerender } = render(<Tabs {...initialProps} />);
126
+ rerender(<Tabs {...initialProps} selected={2} />);
127
+
128
+ expect(screen.getByRole('tab', { selected: true })).toHaveTextContent('Title 2');
129
+ });
130
+
131
+ it('should switch content tab', async () => {
132
+ const { rerender } = render(<Tabs {...initialProps} />);
133
+ rerender(<Tabs {...initialProps} selected={2} />);
134
+ expect(screen.getByRole('tabpanel')).toHaveTextContent('Content 2');
135
+ });
136
+ });
137
+ });
@@ -7,6 +7,7 @@ import Tabs from './Tabs';
7
7
  export default {
8
8
  component: Tabs,
9
9
  title: 'Navigation/Tabs',
10
+ tags: ['autodocs'],
10
11
  };
11
12
 
12
13
  export const Basic = () => {
package/src/tabs/Tabs.tsx CHANGED
@@ -403,7 +403,6 @@ export default class Tabs extends Component<TabsProps, TabsState> {
403
403
 
404
404
  if (isSwiping) {
405
405
  const nextSelected = this.getTabToSelect(currentSelectedFromProps, start, end);
406
-
407
406
  this.animateLine(
408
407
  this.swipedOverHalfOfContainer(difference) ? nextSelected : currentSelectedFromProps,
409
408
  );
@@ -1,17 +1,18 @@
1
- import { shallow } from 'enzyme';
2
-
3
- import { TextArea } from '../inputs/TextArea';
4
-
1
+ import { render, screen, userEvent } from '../test-utils';
5
2
  import TextareaWithDisplayFormat from '.';
6
3
 
7
4
  describe('TextareaWithDisplayFormat', () => {
8
5
  const props = { displayPattern: '**-**', onChange: jest.fn() };
9
6
 
10
7
  it('should render input with value prop', () => {
11
- const view = shallow(<TextareaWithDisplayFormat {...props} />)
12
- .find('WithDisplayFormat')
13
- .renderProp('render')({ value: 'test' });
8
+ render(<TextareaWithDisplayFormat {...props} value="test" />);
9
+ expect(screen.getByRole('textbox')).toHaveValue('te-st');
10
+ });
14
11
 
15
- expect(view.find(TextArea).props('value')).toStrictEqual({ value: 'test' });
12
+ it('should format as you type', async () => {
13
+ render(<TextareaWithDisplayFormat {...props} />);
14
+ await userEvent.tab();
15
+ await userEvent.keyboard('1234');
16
+ expect(screen.getByRole('textbox')).toHaveValue('12-34');
16
17
  });
17
18
  });
@@ -22,7 +22,7 @@ const validateOptionAsEmail = (option: TypeaheadOption) => {
22
22
  );
23
23
  };
24
24
 
25
- export default {
25
+ const meta: Meta<typeof Typeahead> = {
26
26
  component: Typeahead,
27
27
  title: 'Forms/Typeahead',
28
28
  args: {
@@ -54,7 +54,8 @@ export default {
54
54
  options: [Size.MEDIUM, Size.LARGE],
55
55
  },
56
56
  },
57
- } satisfies Meta<typeof Typeahead>;
57
+ };
58
+ export default meta;
58
59
 
59
60
  export const Basic: Story = {
60
61
  render: function Render(args) {
@@ -29,3 +29,6 @@
29
29
  .upload-error-message .alert {
30
30
  min-width: 100px;
31
31
  }
32
+ .np-theme-personal .droppable-dropping .droppable-complete-card {
33
+ display: none;
34
+ }
@@ -35,4 +35,10 @@
35
35
  .alert {
36
36
  min-width: 100px;
37
37
  }
38
- }
38
+ }
39
+
40
+ .np-theme-personal {
41
+ .droppable-dropping .droppable-complete-card {
42
+ display: none;
43
+ }
44
+ }
@@ -22,7 +22,7 @@ const meta = {
22
22
  export default meta;
23
23
  type Story = StoryObj<typeof meta>;
24
24
 
25
- export const Basic = {
25
+ export const Basic: Story = {
26
26
  args: {
27
27
  maxSize: MAX_SIZE_DEFAULT,
28
28
  usAccept: 'image/*',
@@ -76,4 +76,19 @@ describe('uploadImageStep', () => {
76
76
  expect(screen.getByLabelText(errorIconLabel)).toBeInTheDocument();
77
77
  expect(screen.getByText(errorMessage)).toBeInTheDocument();
78
78
  });
79
+
80
+ test('focuses on the upload input when label is clicked', () => {
81
+ const input = screen.getByLabelText(UPLOADIMAGE_STEP_PROPS.usButtonText);
82
+ input.focus();
83
+ expect(input).toHaveFocus();
84
+ });
85
+
86
+ test('triggers file selection on Enter key press', () => {
87
+ const input = screen.getByLabelText(UPLOADIMAGE_STEP_PROPS.usButtonText);
88
+ input.focus();
89
+ const event = new KeyboardEvent('keydown', { key: 'Enter' });
90
+ input.dispatchEvent(event);
91
+ expect(input).toHaveFocus();
92
+ expect(input).toHaveAttribute('type', 'file');
93
+ });
79
94
  });
@@ -28,6 +28,13 @@ export default class UploadImageStep extends PureComponent<UploadImageStepProps>
28
28
  }
29
29
  };
30
30
 
31
+ onKeyDown = (event: React.KeyboardEvent<HTMLLabelElement>) => {
32
+ if (event.key === 'Enter' || event.key === ' ') {
33
+ event.preventDefault();
34
+ this.uploadInputRef.current?.click();
35
+ }
36
+ };
37
+
31
38
  getImage = () => {
32
39
  const { usHelpImage, usLabel } = this.props;
33
40
  const { errorMessage } = this.props;
@@ -78,6 +85,7 @@ export default class UploadImageStep extends PureComponent<UploadImageStepProps>
78
85
  role="button"
79
86
  aria-disabled={usDisabled}
80
87
  tabIndex={0}
88
+ onKeyDown={this.onKeyDown}
81
89
  >
82
90
  {usButtonText ? (
83
91
  <span>{usButtonText}</span>
@@ -1,32 +1,20 @@
1
- import { mount } from 'enzyme/build';
2
- import { act } from 'react';
3
-
4
- import { HistoryNavigator } from '../common';
5
- import { fakeKeyDownEventForKey } from '../common/fakeEvents';
1
+ import React from 'react';
2
+ import { userEvent, render, screen, waitFor } from '../test-utils';
6
3
  import { Input } from '../inputs/Input';
7
-
8
4
  import WithDisplayFormat from '.';
9
5
 
10
- const REDO_EVENT = { ctrlKey: true, charCode: 'z', shiftKey: true, which: 90 };
11
- const UNDO_EVENT = { ctrlKey: true, charCode: 'z', which: 90 };
12
-
13
- const triggerEvent = fakeKeyDownEventForKey();
14
-
15
- const TESTS = [
16
- { value: '123', expectedValue: '12-3', displayPattern: '**-**-**' },
17
- { value: '1234', expectedValue: '12-34', displayPattern: '**-**-**' },
18
- { value: '1234', expectedValue: '+(12) 34', displayPattern: '+(**) *' },
19
- ];
6
+ const user = userEvent.setup({ advanceTimers: jest.advanceTimersByTime });
20
7
 
21
- const mountComponent = (props) => {
22
- return mount(
23
- <WithDisplayFormat {...props} render={(renderProps) => <Input {...renderProps} />} />,
8
+ const setup = (props) =>
9
+ render(
10
+ <WithDisplayFormat
11
+ {...props}
12
+ render={(renderProps) => <Input {...renderProps} name="input" />}
13
+ />,
24
14
  );
25
- };
26
15
 
27
- describe('InputWithTextFormat', () => {
28
- let component;
29
- const props = {
16
+ describe('InputWithTextFormat (React Testing Library)', () => {
17
+ const initialProps = {
30
18
  placeholder: 'a placeholder',
31
19
  displayPattern: '**-**',
32
20
  onChange: jest.fn(),
@@ -36,7 +24,6 @@ describe('InputWithTextFormat', () => {
36
24
 
37
25
  beforeEach(() => {
38
26
  jest.useFakeTimers();
39
- component = mountComponent(props);
40
27
  });
41
28
 
42
29
  afterEach(async () => {
@@ -44,223 +31,147 @@ describe('InputWithTextFormat', () => {
44
31
  jest.useRealTimers();
45
32
  });
46
33
 
47
- TESTS.forEach((test) => {
48
- const { value, expectedValue, displayPattern } = test;
49
- it(`returns ${expectedValue} for ${value} if displayPattern is ${displayPattern} `, () => {
50
- component.setProps({ displayPattern });
51
- component.setState({ triggerEvent });
34
+ [
35
+ { value: '123', expectedValue: '12-3', displayPattern: '**-**-**' },
36
+ { value: '1234', expectedValue: '12-34', displayPattern: '**-**-**' },
37
+ { value: '1234', expectedValue: '+(12) 34', displayPattern: '+(**) *' },
38
+ ].forEach(({ value, expectedValue, displayPattern }) => {
39
+ it(`returns ${expectedValue} for ${value} if displayPattern is ${displayPattern}`, async () => {
40
+ setup({ ...initialProps, displayPattern });
52
41
 
53
- componentInput().simulate('change', { target: { value } });
54
- expect(componentInput().props().value).toStrictEqual(expectedValue);
55
- expect(props.onChange).toHaveBeenCalledWith(value);
42
+ await user.tab();
43
+ await user.keyboard(value);
56
44
 
57
- componentInput().simulate('focus', { target: { value } });
58
- expect(componentInput().props().value).toStrictEqual(expectedValue);
59
- expect(props.onFocus).toHaveBeenCalledWith(value);
45
+ expect(screen.getByRole('textbox')).toHaveValue(expectedValue);
46
+ await waitFor(() => expect(initialProps.onChange).toHaveBeenCalledWith(value));
60
47
 
61
- componentInput().simulate('blur', { target: { value } });
62
- expect(componentInput().props().value).toStrictEqual(expectedValue);
63
- expect(props.onBlur).toHaveBeenCalledWith(value);
48
+ await user.tab();
49
+ expect(initialProps.onBlur).toHaveBeenCalledWith(value);
64
50
  });
65
51
  });
66
52
 
67
- describe('when Undo/Redo is preformed', () => {
68
- it(`goes back/forward in input value's history`, async () => {
69
- component.setProps({ displayPattern: '***' });
70
- await act(async () => {
71
- component.setState({
72
- historyNavigator: new HistoryNavigator(['@', '@@', '@@@']),
73
- });
74
- });
75
-
76
- componentInput().simulate('keyDown', UNDO_EVENT);
77
- expect(componentInput().props().value).toBe('@@');
78
- componentInput().simulate('keyDown', UNDO_EVENT);
79
- expect(componentInput().props().value).toBe('@');
80
- componentInput().simulate('keyDown', UNDO_EVENT);
81
- expect(componentInput().props().value).toBe('@');
82
-
83
- componentInput().simulate('keyDown', REDO_EVENT);
84
- expect(componentInput().props().value).toBe('@@');
85
- componentInput().simulate('keyDown', REDO_EVENT);
86
- expect(componentInput().props().value).toBe('@@@');
87
- componentInput().simulate('keyDown', REDO_EVENT);
88
- expect(componentInput().props().value).toBe('@@@');
53
+ ['Meta', 'Control'].forEach((modifier) => {
54
+ it(`should support undo and redo with "${modifier}" key`, async () => {
55
+ setup({ ...initialProps, displayPattern: '***' });
56
+
57
+ const modifierOpening = `{${modifier}>}`;
58
+ const modifierClosing = `{/${modifier}}`;
59
+ const input = screen.getByRole('textbox');
60
+
61
+ await user.type(input, '123');
62
+ expect(input).toHaveValue('123');
63
+ await user.type(input, `${modifierOpening}z${modifierClosing}`);
64
+ expect(input).toHaveValue('12');
65
+ await user.type(input, `${modifierOpening}z${modifierClosing}`);
66
+ expect(input).toHaveValue('1');
67
+ await user.type(input, `${modifierOpening}z${modifierClosing}`);
68
+ expect(input).toHaveValue('');
69
+ await user.type(input, `{Shift>}${modifierOpening}z${modifierClosing}{/Shift}`);
70
+ expect(input).toHaveValue('1');
71
+ await user.type(input, `{Shift>}${modifierOpening}z${modifierClosing}{/Shift}`);
72
+ expect(input).toHaveValue('12');
73
+ await user.type(input, `{Shift>}${modifierOpening}z${modifierClosing}{/Shift}`);
74
+ expect(input).toHaveValue('123');
89
75
  });
90
76
  });
91
77
 
92
- describe('on "autofill"', () => {
93
- beforeEach(() => {
94
- component = mountComponent(props);
95
- });
96
-
97
- it('tests case with 5 random digits', () => {
98
- componentInput().simulate('change', { target: { value: '12345' } });
99
-
100
- jest.runAllTimers();
101
-
102
- expect(componentInput().props().value).toBe('12-345');
103
- });
78
+ it(`can delete user-entered characters`, async () => {
79
+ setup(initialProps);
80
+ const input = screen.getByRole('textbox');
81
+ await user.type(input, '12345');
82
+ await user.type(input, '{backspace}{backspace}');
83
+ expect(input).toHaveValue('12-3');
104
84
  });
105
85
 
106
- describe('on "autofill" that uses onFocus', () => {
107
- beforeEach(() => {
108
- component = mountComponent(props);
109
- });
110
-
111
- it('tests case with 5 random digits', () => {
112
- componentInput().simulate('focus', { target: { value: '12345' } });
113
-
114
- jest.runAllTimers();
86
+ it(`can select and delete multiple user-entered characters`, async () => {
87
+ setup(initialProps);
88
+ const input = screen.getByRole('textbox');
89
+ await user.type(input, '12345');
90
+ expect(input).toHaveValue('12-345');
115
91
 
116
- expect(componentInput().props().value).toBe('12-345');
92
+ await user.type(input, '{backspace}', {
93
+ initialSelectionStart: 4,
94
+ initialSelectionEnd: 6,
117
95
  });
96
+ expect(input).toHaveValue('12-3');
118
97
  });
119
98
 
120
- describe('when backspace is pressed', () => {
121
- beforeEach(() => {
122
- component = mountComponent(props);
123
- component.setState({
124
- triggerEvent: { ...triggerEvent, key: 'Backspace' },
125
- });
126
- });
127
-
128
- it(`has default behaviour if deleted char is not a symbol`, () => {
129
- component.setState({ selectionStart: 2, selectionEnd: 2 });
99
+ it(`can select and delete multiple user-entered characters, including separators`, async () => {
100
+ setup(initialProps);
101
+ const input = screen.getByRole('textbox');
102
+ await user.type(input, '12345');
103
+ expect(input).toHaveValue('12-345');
130
104
 
131
- componentInput().simulate('change', { target: { value: '12-3' } });
132
- expect(componentInput().props().value).toBe('12-3');
105
+ await user.type(input, '{backspace}', {
106
+ initialSelectionStart: 1,
107
+ initialSelectionEnd: 4,
133
108
  });
109
+ expect(input).toHaveValue('14-5');
110
+ });
134
111
 
135
- it(`has default behaviour for multiple deletion`, () => {
136
- component.setState({ selectionStart: 3, selectionEnd: 1 });
112
+ it(`has default behaviour for multiple deletion`, async () => {
113
+ setup(initialProps);
114
+ const input = screen.getByRole('textbox');
115
+ await user.type(input, '12345');
116
+ expect(input).toHaveValue('12-345');
137
117
 
138
- componentInput().simulate('change', { target: { value: '12-3' } });
139
- expect(componentInput().props().value).toBe('12-3');
118
+ await user.type(input, '{backspace}', {
119
+ initialSelectionStart: 4,
120
+ initialSelectionEnd: 6,
140
121
  });
122
+ expect(input).toHaveValue('12-3');
123
+ });
141
124
 
142
- it(`performs an extra delete if next char is a separator`, async () => {
143
- await act(async () => {
144
- component.setState({ selectionStart: 3, selectionEnd: 3 });
145
- });
125
+ it(`performs an extra delete if previous char is a separator`, async () => {
126
+ setup(initialProps);
127
+ const input = screen.getByRole('textbox');
128
+ await user.type(input, '123');
129
+ expect(input).toHaveValue('12-3');
146
130
 
147
- componentInput().simulate('change', { target: { value: '123' } });
148
- expect(componentInput().props().value).toBe('13');
149
- });
131
+ await user.type(input, '{backspace}');
132
+ expect(input).toHaveValue('12');
150
133
  });
151
134
 
152
- describe('set cursor position', () => {
153
- const triggerEventA = { ...triggerEvent, target: { setSelectionRange: () => {} } };
154
- beforeEach(() => {
155
- component.setState({
156
- triggerEvent: triggerEventA,
157
- });
158
- });
159
-
160
- it(`when entered a char`, async () => {
161
- await act(async () => {
162
- component.setState({ selectionStart: 4, selectionEnd: 4 });
163
- });
164
- componentInput().simulate('change', { target: { value: '13-4@' } });
165
- await act(async () => {
166
- await jest.runOnlyPendingTimersAsync();
167
- });
168
- expect(component.state().selectionStart).toBe(5);
169
- });
135
+ // @FIXME (maybe) Is this behaviour expected? 🤔
136
+ it(`moves to the end, when entered a char in the middle`, async () => {
137
+ setup(initialProps);
138
+ const input = screen.getByRole('textbox');
139
+ await user.type(input, '123');
140
+ expect(input).toHaveValue('12-3');
170
141
 
171
- it(`when entered a char before a symbol`, async () => {
172
- await act(async () => {
173
- component.setState({ selectionStart: 2, selectionEnd: 2 });
174
- });
175
- componentInput().simulate('change', { target: { value: '13-@' } });
176
- await act(async () => {
177
- await jest.runOnlyPendingTimersAsync();
178
- });
179
- expect(component.state().selectionStart).toBe(4);
180
- });
181
- //
182
- it(`when deleted a char before the symbol`, async () => {
183
- await act(async () => {
184
- component.setState({
185
- triggerEvent: { ...triggerEventA, key: 'Backspace' },
186
- });
187
- });
188
- await act(async () => {
189
- component.setState({ selectionStart: 3, selectionEnd: 3 });
190
- });
191
- componentInput().simulate('change', { target: { value: '13-45-6' } });
192
- await act(async () => {
193
- await jest.runOnlyPendingTimersAsync();
194
- });
195
- expect(component.state().selectionStart).toBe(1);
196
- });
142
+ await user.type(input, '{arrowLeft}{arrowLeft}{arrowLeft}@');
143
+ expect(input).toHaveValue('1@-23');
197
144
 
198
- it(`when delete a symbol`, () => {
199
- component.setState({
200
- triggerEvent: { ...triggerEventA, ctrlKey: true, which: 68 },
201
- });
145
+ await user.type(input, 'x');
146
+ expect(input).toHaveValue('1@-23x');
147
+ });
202
148
 
203
- component.setState({ selectionStart: 2, selectionEnd: 2 });
204
- componentInput().simulate('change', { target: { value: '14' } });
205
- jest.runAllTimers();
206
- expect(component.state().selectionStart).toBe(2);
207
- });
149
+ it(`supports pasting`, async () => {
150
+ setup(initialProps);
151
+ const input = screen.getByRole('textbox');
152
+ await user.type(input, '123');
153
+ expect(input).toHaveValue('12-3');
208
154
 
209
- it(`when pasted selection is entered after a symbol`, async () => {
210
- await act(async () => {
211
- component.setState({
212
- triggerType: 'Paste',
213
- pastedLength: 2,
214
- });
215
- });
155
+ await user.type(input, '{arrowLeft}{arrowLeft}{arrowLeft}');
156
+ await user.paste('@@');
216
157
 
217
- await act(async () => {
218
- component.setState({ selectionStart: 2, selectionEnd: 2 });
219
- });
220
- componentInput().simulate('change', { target: { value: '13-@@' } });
221
- await act(async () => {
222
- await jest.runOnlyPendingTimersAsync();
223
- });
224
- expect(component.state().selectionStart).toBe(5);
225
- });
158
+ expect(input).toHaveValue('1@-@23');
159
+ });
226
160
 
227
- it(`when pasted selection is entered before a symbol`, async () => {
228
- await act(async () => {
229
- component.setState({
230
- triggerType: 'Paste',
231
- pastedLength: 2,
232
- });
233
- });
234
- await act(async () => {
235
- component.setState({ selectionStart: 1, selectionEnd: 1 });
236
- });
237
- componentInput().simulate('change', { target: { value: '1@-@' } });
238
- await act(async () => {
239
- await jest.runOnlyPendingTimersAsync();
240
- });
241
- expect(component.state().selectionStart).toBe(4);
242
- });
161
+ it(`supports cutting`, async () => {
162
+ setup(initialProps);
163
+ const input = screen.getByRole('textbox');
164
+ await user.type(input, '12345');
165
+ expect(input).toHaveValue('12-345');
243
166
 
244
- it('cut selection before a symbol', () => {
245
- component.setState({
246
- triggerType: 'Cut',
247
- });
248
- component.setState({ selectionStart: 0, selectionEnd: 2 });
249
- componentInput().simulate('change', { target: { value: '34' } });
250
- jest.runAllTimers();
251
- expect(component.state().selectionStart).toBe(0);
167
+ // this is a workaround to set selection without entering
168
+ // any character (pressing Shift doesn't reset it)
169
+ await user.type(input, '{Shift}', {
170
+ initialSelectionStart: 1,
171
+ initialSelectionEnd: 4,
252
172
  });
173
+ await user.cut();
253
174
 
254
- it('cut another selection before a symbol', () => {
255
- component.setState({
256
- triggerType: 'Cut',
257
- });
258
- component.setState({ selectionStart: 1, selectionEnd: 4 });
259
- componentInput().simulate('change', { target: { value: '14' } });
260
- jest.runAllTimers();
261
- expect(component.state().selectionStart).toBe(1);
262
- });
175
+ expect(input).toHaveValue('14-5');
263
176
  });
264
-
265
- const componentInput = () => component.find('input');
266
177
  });