@transferwise/components 46.97.4 → 46.98.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 (869) 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 +8 -0
  10. package/build/alert/Alert.js.map +1 -1
  11. package/build/alert/Alert.mjs +8 -0
  12. package/build/alert/Alert.mjs.map +1 -1
  13. package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
  14. package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
  15. package/build/avatar/Avatar.js.map +1 -1
  16. package/build/avatar/Avatar.mjs.map +1 -1
  17. package/build/avatar/avatarTypes.js.map +1 -1
  18. package/build/avatar/avatarTypes.mjs.map +1 -1
  19. package/build/avatarLayout/AvatarLayout.js.map +1 -1
  20. package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
  21. package/build/avatarView/AvatarView.js.map +1 -1
  22. package/build/avatarView/AvatarView.mjs.map +1 -1
  23. package/build/avatarView/NotificationDot.js.map +1 -1
  24. package/build/avatarView/NotificationDot.mjs.map +1 -1
  25. package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
  26. package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
  27. package/build/badge/Badge.js.map +1 -1
  28. package/build/badge/Badge.mjs.map +1 -1
  29. package/build/badge/BadgeAssets.js.map +1 -1
  30. package/build/badge/BadgeAssets.mjs.map +1 -1
  31. package/build/body/Body.js.map +1 -1
  32. package/build/body/Body.mjs.map +1 -1
  33. package/build/button/Button.js.map +1 -1
  34. package/build/button/Button.mjs.map +1 -1
  35. package/build/button/Button.resolver.js.map +1 -1
  36. package/build/button/Button.resolver.mjs.map +1 -1
  37. package/build/button/LegacyButton.js.map +1 -1
  38. package/build/button/LegacyButton.mjs +1 -1
  39. package/build/button/LegacyButton.mjs.map +1 -1
  40. package/build/button/classMap.js.map +1 -1
  41. package/build/button/classMap.mjs.map +1 -1
  42. package/build/button/legacyUtils/legacyUtils.js.map +1 -1
  43. package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
  44. package/build/card/Card.js.map +1 -1
  45. package/build/card/Card.mjs.map +1 -1
  46. package/build/carousel/Carousel.js.map +1 -1
  47. package/build/carousel/Carousel.mjs.map +1 -1
  48. package/build/checkbox/Checkbox.js.map +1 -1
  49. package/build/checkbox/Checkbox.mjs.map +1 -1
  50. package/build/checkboxButton/CheckboxButton.js.map +1 -1
  51. package/build/checkboxButton/CheckboxButton.mjs.map +1 -1
  52. package/build/checkboxOption/CheckboxOption.js.map +1 -1
  53. package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
  54. package/build/chevron/Chevron.js.map +1 -1
  55. package/build/chevron/Chevron.mjs.map +1 -1
  56. package/build/chips/Chip.js.map +1 -1
  57. package/build/chips/Chip.mjs.map +1 -1
  58. package/build/chips/Chips.js.map +1 -1
  59. package/build/chips/Chips.messages.js.map +1 -1
  60. package/build/chips/Chips.messages.mjs.map +1 -1
  61. package/build/chips/Chips.mjs.map +1 -1
  62. package/build/circularButton/CircularButton.js.map +1 -1
  63. package/build/circularButton/CircularButton.mjs.map +1 -1
  64. package/build/common/DOMOperations/DOMOperations.js.map +1 -1
  65. package/build/common/DOMOperations/DOMOperations.mjs.map +1 -1
  66. package/build/common/Option/Option.js.map +1 -1
  67. package/build/common/Option/Option.mjs.map +1 -1
  68. package/build/common/RadioButton/RadioButton.js.map +1 -1
  69. package/build/common/RadioButton/RadioButton.mjs.map +1 -1
  70. package/build/common/bottomSheet/BottomSheet.js.map +1 -1
  71. package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
  72. package/build/common/card/Card.js.map +1 -1
  73. package/build/common/card/Card.mjs.map +1 -1
  74. package/build/common/circle/Circle.js.map +1 -1
  75. package/build/common/circle/Circle.mjs.map +1 -1
  76. package/build/common/closeButton/CloseButton.js +3 -1
  77. package/build/common/closeButton/CloseButton.js.map +1 -1
  78. package/build/common/closeButton/CloseButton.messages.js.map +1 -1
  79. package/build/common/closeButton/CloseButton.messages.mjs.map +1 -1
  80. package/build/common/closeButton/CloseButton.mjs +3 -1
  81. package/build/common/closeButton/CloseButton.mjs.map +1 -1
  82. package/build/common/colors.js.map +1 -1
  83. package/build/common/colors.mjs.map +1 -1
  84. package/build/common/dateUtils/getDateView/getDateView.js.map +1 -1
  85. package/build/common/dateUtils/getDateView/getDateView.mjs.map +1 -1
  86. package/build/common/dateUtils/getDayNames/getDayNames.js.map +1 -1
  87. package/build/common/dateUtils/getDayNames/getDayNames.mjs.map +1 -1
  88. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js.map +1 -1
  89. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs.map +1 -1
  90. package/build/common/dateUtils/getMonthNames/getMonthNames.js.map +1 -1
  91. package/build/common/dateUtils/getMonthNames/getMonthNames.mjs.map +1 -1
  92. package/build/common/dateUtils/isDateValid/isDateValid.js.map +1 -1
  93. package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +1 -1
  94. package/build/common/dateUtils/isWithinRange/isWithinRange.js.map +1 -1
  95. package/build/common/dateUtils/isWithinRange/isWithinRange.mjs.map +1 -1
  96. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js.map +1 -1
  97. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs.map +1 -1
  98. package/build/common/deviceDetection/deviceDetection.js.map +1 -1
  99. package/build/common/deviceDetection/deviceDetection.mjs.map +1 -1
  100. package/build/common/direction.js.map +1 -1
  101. package/build/common/direction.mjs.map +1 -1
  102. package/build/common/domHelpers/documentIosClick.js.map +1 -1
  103. package/build/common/domHelpers/documentIosClick.mjs.map +1 -1
  104. package/build/common/fileType.js.map +1 -1
  105. package/build/common/fileType.mjs.map +1 -1
  106. package/build/common/flowHeader/FlowHeader.js.map +1 -1
  107. package/build/common/flowHeader/FlowHeader.mjs.map +1 -1
  108. package/build/common/focusBoundary/FocusBoundary.js.map +1 -1
  109. package/build/common/focusBoundary/FocusBoundary.mjs.map +1 -1
  110. package/build/common/historyNavigator/historyNavigator.js.map +1 -1
  111. package/build/common/historyNavigator/historyNavigator.mjs.map +1 -1
  112. package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +1 -1
  113. package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +1 -1
  114. package/build/common/hooks/useDirection/useDirection.js.map +1 -1
  115. package/build/common/hooks/useDirection/useDirection.mjs.map +1 -1
  116. package/build/common/hooks/useEffectEvent.js.map +1 -1
  117. package/build/common/hooks/useEffectEvent.mjs.map +1 -1
  118. package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
  119. package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +1 -1
  120. package/build/common/hooks/useLayout/useLayout.js.map +1 -1
  121. package/build/common/hooks/useLayout/useLayout.mjs.map +1 -1
  122. package/build/common/hooks/useMedia.js.map +1 -1
  123. package/build/common/hooks/useMedia.mjs.map +1 -1
  124. package/build/common/hooks/useResizeObserver.js.map +1 -1
  125. package/build/common/hooks/useResizeObserver.mjs.map +1 -1
  126. package/build/common/hooks/useScreenSize.js.map +1 -1
  127. package/build/common/hooks/useScreenSize.mjs.map +1 -1
  128. package/build/common/hooks/useVirtualKeyboard.js.map +1 -1
  129. package/build/common/hooks/useVirtualKeyboard.mjs.map +1 -1
  130. package/build/common/initials.js +3 -0
  131. package/build/common/initials.js.map +1 -1
  132. package/build/common/initials.mjs +3 -0
  133. package/build/common/initials.mjs.map +1 -1
  134. package/build/common/locale/index.js.map +1 -1
  135. package/build/common/locale/index.mjs.map +1 -1
  136. package/build/common/panel/Panel.js.map +1 -1
  137. package/build/common/panel/Panel.mjs.map +1 -1
  138. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +1 -1
  139. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs.map +1 -1
  140. package/build/common/preventScroll/PreventScroll.js.map +1 -1
  141. package/build/common/preventScroll/PreventScroll.mjs.map +1 -1
  142. package/build/common/propsValues/breakpoint.js.map +1 -1
  143. package/build/common/propsValues/breakpoint.mjs.map +1 -1
  144. package/build/common/propsValues/control.js.map +1 -1
  145. package/build/common/propsValues/control.mjs.map +1 -1
  146. package/build/common/propsValues/dateMode.js.map +1 -1
  147. package/build/common/propsValues/dateMode.mjs.map +1 -1
  148. package/build/common/propsValues/layouts.js.map +1 -1
  149. package/build/common/propsValues/layouts.mjs.map +1 -1
  150. package/build/common/propsValues/markdownNodeType.js.map +1 -1
  151. package/build/common/propsValues/markdownNodeType.mjs.map +1 -1
  152. package/build/common/propsValues/monthFormat.js.map +1 -1
  153. package/build/common/propsValues/monthFormat.mjs.map +1 -1
  154. package/build/common/propsValues/position.js.map +1 -1
  155. package/build/common/propsValues/position.mjs.map +1 -1
  156. package/build/common/propsValues/profileType.js.map +1 -1
  157. package/build/common/propsValues/profileType.mjs.map +1 -1
  158. package/build/common/propsValues/scroll.js.map +1 -1
  159. package/build/common/propsValues/scroll.mjs.map +1 -1
  160. package/build/common/propsValues/sentiment.js.map +1 -1
  161. package/build/common/propsValues/sentiment.mjs.map +1 -1
  162. package/build/common/propsValues/size.js.map +1 -1
  163. package/build/common/propsValues/size.mjs.map +1 -1
  164. package/build/common/propsValues/status.js.map +1 -1
  165. package/build/common/propsValues/status.mjs.map +1 -1
  166. package/build/common/propsValues/type.js.map +1 -1
  167. package/build/common/propsValues/type.mjs.map +1 -1
  168. package/build/common/propsValues/typography.js.map +1 -1
  169. package/build/common/propsValues/typography.mjs.map +1 -1
  170. package/build/common/propsValues/variant.js.map +1 -1
  171. package/build/common/propsValues/variant.mjs.map +1 -1
  172. package/build/common/propsValues/width.js.map +1 -1
  173. package/build/common/propsValues/width.mjs.map +1 -1
  174. package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
  175. package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
  176. package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +1 -1
  177. package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs.map +1 -1
  178. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +1 -1
  179. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +1 -1
  180. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +1 -1
  181. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +1 -1
  182. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +1 -1
  183. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +1 -1
  184. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +1 -1
  185. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs.map +1 -1
  186. package/build/common/theme.js.map +1 -1
  187. package/build/common/theme.mjs.map +1 -1
  188. package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
  189. package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
  190. package/build/dateInput/DateInput.js.map +1 -1
  191. package/build/dateInput/DateInput.messages.js.map +1 -1
  192. package/build/dateInput/DateInput.messages.mjs.map +1 -1
  193. package/build/dateInput/DateInput.mjs.map +1 -1
  194. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +1 -1
  195. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +1 -1
  196. package/build/dateLookup/DateLookup.js +4 -4
  197. package/build/dateLookup/DateLookup.js.map +1 -1
  198. package/build/dateLookup/DateLookup.messages.js.map +1 -1
  199. package/build/dateLookup/DateLookup.messages.mjs.map +1 -1
  200. package/build/dateLookup/DateLookup.mjs +4 -4
  201. package/build/dateLookup/DateLookup.mjs.map +1 -1
  202. package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
  203. package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
  204. package/build/dateLookup/dateTrigger/DateTrigger.js.map +1 -1
  205. package/build/dateLookup/dateTrigger/DateTrigger.messages.js.map +1 -1
  206. package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs.map +1 -1
  207. package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +1 -1
  208. package/build/dateLookup/dayCalendar/DayCalendar.js.map +1 -1
  209. package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +1 -1
  210. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +3 -3
  211. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
  212. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +3 -3
  213. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +1 -1
  214. package/build/dateLookup/getFocusableTime/getFocusableTime.js.map +1 -1
  215. package/build/dateLookup/getFocusableTime/getFocusableTime.mjs.map +1 -1
  216. package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +1 -1
  217. package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +1 -1
  218. package/build/dateLookup/monthCalendar/MonthCalendar.js.map +1 -1
  219. package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +1 -1
  220. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +1 -1
  221. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +1 -1
  222. package/build/dateLookup/tableLink/TableLink.js.map +1 -1
  223. package/build/dateLookup/tableLink/TableLink.mjs.map +1 -1
  224. package/build/dateLookup/yearCalendar/YearCalendar.js.map +1 -1
  225. package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +1 -1
  226. package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +1 -1
  227. package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +1 -1
  228. package/build/decision/Decision.js.map +1 -1
  229. package/build/decision/Decision.mjs.map +1 -1
  230. package/build/definitionList/DefinitionList.js.map +1 -1
  231. package/build/definitionList/DefinitionList.mjs.map +1 -1
  232. package/build/dimmer/Dimmer.js.map +1 -1
  233. package/build/dimmer/Dimmer.mjs.map +1 -1
  234. package/build/dimmer/dimmerManager/DimmerManager.js.map +1 -1
  235. package/build/dimmer/dimmerManager/DimmerManager.mjs.map +1 -1
  236. package/build/display/Display.js.map +1 -1
  237. package/build/display/Display.mjs.map +1 -1
  238. package/build/divider/Divider.js.map +1 -1
  239. package/build/divider/Divider.mjs.map +1 -1
  240. package/build/drawer/Drawer.js.map +1 -1
  241. package/build/drawer/Drawer.mjs.map +1 -1
  242. package/build/dropFade/DropFade.js.map +1 -1
  243. package/build/dropFade/DropFade.mjs.map +1 -1
  244. package/build/emphasis/Emphasis.js.map +1 -1
  245. package/build/emphasis/Emphasis.mjs.map +1 -1
  246. package/build/emphasis/EmphasisHtmlTransformer.js.map +1 -1
  247. package/build/emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
  248. package/build/field/Field.js.map +1 -1
  249. package/build/field/Field.mjs.map +1 -1
  250. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  251. package/build/flowNavigation/FlowNavigation.messages.js.map +1 -1
  252. package/build/flowNavigation/FlowNavigation.messages.mjs.map +1 -1
  253. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  254. package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +1 -1
  255. package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +1 -1
  256. package/build/header/Header.js.map +1 -1
  257. package/build/header/Header.mjs.map +1 -1
  258. package/build/i18n/commonMessages/Button.messages.js.map +1 -1
  259. package/build/i18n/commonMessages/Button.messages.mjs.map +1 -1
  260. package/build/i18n/cs.json +12 -9
  261. package/build/i18n/cs.json.js +12 -9
  262. package/build/i18n/cs.json.js.map +1 -1
  263. package/build/i18n/cs.json.mjs +12 -9
  264. package/build/i18n/cs.json.mjs.map +1 -1
  265. package/build/i18n/de.json +3 -0
  266. package/build/i18n/de.json.js +3 -0
  267. package/build/i18n/de.json.js.map +1 -1
  268. package/build/i18n/de.json.mjs +3 -0
  269. package/build/i18n/de.json.mjs.map +1 -1
  270. package/build/i18n/en.json +3 -0
  271. package/build/i18n/en.json.js +3 -0
  272. package/build/i18n/en.json.js.map +1 -1
  273. package/build/i18n/en.json.mjs +3 -0
  274. package/build/i18n/en.json.mjs.map +1 -1
  275. package/build/i18n/es.json +3 -0
  276. package/build/i18n/es.json.js +3 -0
  277. package/build/i18n/es.json.js.map +1 -1
  278. package/build/i18n/es.json.mjs +3 -0
  279. package/build/i18n/es.json.mjs.map +1 -1
  280. package/build/i18n/fr.json +3 -0
  281. package/build/i18n/fr.json.js +3 -0
  282. package/build/i18n/fr.json.js.map +1 -1
  283. package/build/i18n/fr.json.mjs +3 -0
  284. package/build/i18n/fr.json.mjs.map +1 -1
  285. package/build/i18n/hu.json +3 -0
  286. package/build/i18n/hu.json.js +3 -0
  287. package/build/i18n/hu.json.js.map +1 -1
  288. package/build/i18n/hu.json.mjs +3 -0
  289. package/build/i18n/hu.json.mjs.map +1 -1
  290. package/build/i18n/id.json +3 -0
  291. package/build/i18n/id.json.js +3 -0
  292. package/build/i18n/id.json.js.map +1 -1
  293. package/build/i18n/id.json.mjs +3 -0
  294. package/build/i18n/id.json.mjs.map +1 -1
  295. package/build/i18n/index.js.map +1 -1
  296. package/build/i18n/index.mjs.map +1 -1
  297. package/build/i18n/it.json +3 -0
  298. package/build/i18n/it.json.js +3 -0
  299. package/build/i18n/it.json.js.map +1 -1
  300. package/build/i18n/it.json.mjs +3 -0
  301. package/build/i18n/it.json.mjs.map +1 -1
  302. package/build/i18n/ja.json +3 -0
  303. package/build/i18n/ja.json.js +3 -0
  304. package/build/i18n/ja.json.js.map +1 -1
  305. package/build/i18n/ja.json.mjs +3 -0
  306. package/build/i18n/ja.json.mjs.map +1 -1
  307. package/build/i18n/nl.json +6 -3
  308. package/build/i18n/pl.json +3 -0
  309. package/build/i18n/pl.json.js +3 -0
  310. package/build/i18n/pl.json.js.map +1 -1
  311. package/build/i18n/pl.json.mjs +3 -0
  312. package/build/i18n/pl.json.mjs.map +1 -1
  313. package/build/i18n/pt.json +3 -0
  314. package/build/i18n/pt.json.js +3 -0
  315. package/build/i18n/pt.json.js.map +1 -1
  316. package/build/i18n/pt.json.mjs +3 -0
  317. package/build/i18n/pt.json.mjs.map +1 -1
  318. package/build/i18n/ro.json +3 -0
  319. package/build/i18n/ro.json.js +3 -0
  320. package/build/i18n/ro.json.js.map +1 -1
  321. package/build/i18n/ro.json.mjs +3 -0
  322. package/build/i18n/ro.json.mjs.map +1 -1
  323. package/build/i18n/ru.json +3 -0
  324. package/build/i18n/ru.json.js +3 -0
  325. package/build/i18n/ru.json.js.map +1 -1
  326. package/build/i18n/ru.json.mjs +3 -0
  327. package/build/i18n/ru.json.mjs.map +1 -1
  328. package/build/i18n/th.json +3 -0
  329. package/build/i18n/th.json.js +3 -0
  330. package/build/i18n/th.json.js.map +1 -1
  331. package/build/i18n/th.json.mjs +3 -0
  332. package/build/i18n/th.json.mjs.map +1 -1
  333. package/build/i18n/tr.json +3 -0
  334. package/build/i18n/tr.json.js +3 -0
  335. package/build/i18n/tr.json.js.map +1 -1
  336. package/build/i18n/tr.json.mjs +3 -0
  337. package/build/i18n/tr.json.mjs.map +1 -1
  338. package/build/i18n/zh-CN.json +3 -0
  339. package/build/i18n/zh-CN.json.js +3 -0
  340. package/build/i18n/zh-CN.json.js.map +1 -1
  341. package/build/i18n/zh-CN.json.mjs +3 -0
  342. package/build/i18n/zh-CN.json.mjs.map +1 -1
  343. package/build/i18n/zh-HK.json +3 -0
  344. package/build/i18n/zh-HK.json.js +3 -0
  345. package/build/i18n/zh-HK.json.js.map +1 -1
  346. package/build/i18n/zh-HK.json.mjs +3 -0
  347. package/build/i18n/zh-HK.json.mjs.map +1 -1
  348. package/build/iconButton/IconButton.js.map +1 -1
  349. package/build/iconButton/IconButton.mjs.map +1 -1
  350. package/build/image/Image.js +9 -10
  351. package/build/image/Image.js.map +1 -1
  352. package/build/image/Image.mjs +11 -11
  353. package/build/image/Image.mjs.map +1 -1
  354. package/build/info/Info.js.map +1 -1
  355. package/build/info/Info.messages.js.map +1 -1
  356. package/build/info/Info.messages.mjs.map +1 -1
  357. package/build/info/Info.mjs.map +1 -1
  358. package/build/info/infoPresentations.js.map +1 -1
  359. package/build/info/infoPresentations.mjs.map +1 -1
  360. package/build/inlineAlert/InlineAlert.js.map +1 -1
  361. package/build/inlineAlert/InlineAlert.mjs.map +1 -1
  362. package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +1 -1
  363. package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs.map +1 -1
  364. package/build/inputs/Input.js.map +1 -1
  365. package/build/inputs/Input.mjs.map +1 -1
  366. package/build/inputs/InputGroup.js +16 -20
  367. package/build/inputs/InputGroup.js.map +1 -1
  368. package/build/inputs/InputGroup.mjs +17 -21
  369. package/build/inputs/InputGroup.mjs.map +1 -1
  370. package/build/inputs/SearchInput.js.map +1 -1
  371. package/build/inputs/SearchInput.mjs.map +1 -1
  372. package/build/inputs/SelectInput.js +6 -1
  373. package/build/inputs/SelectInput.js.map +1 -1
  374. package/build/inputs/SelectInput.messages.js.map +1 -1
  375. package/build/inputs/SelectInput.messages.mjs.map +1 -1
  376. package/build/inputs/SelectInput.mjs +6 -1
  377. package/build/inputs/SelectInput.mjs.map +1 -1
  378. package/build/inputs/TextArea.js.map +1 -1
  379. package/build/inputs/TextArea.mjs.map +1 -1
  380. package/build/inputs/_BottomSheet.js.map +1 -1
  381. package/build/inputs/_BottomSheet.mjs.map +1 -1
  382. package/build/inputs/_ButtonInput.js.map +1 -1
  383. package/build/inputs/_ButtonInput.mjs.map +1 -1
  384. package/build/inputs/_Popover.js.map +1 -1
  385. package/build/inputs/_Popover.mjs +1 -1
  386. package/build/inputs/_Popover.mjs.map +1 -1
  387. package/build/inputs/_common.js.map +1 -1
  388. package/build/inputs/_common.mjs.map +1 -1
  389. package/build/inputs/contexts.js.map +1 -1
  390. package/build/inputs/contexts.mjs.map +1 -1
  391. package/build/instructionsList/InstructionsList.js.map +1 -1
  392. package/build/instructionsList/InstructionsList.mjs.map +1 -1
  393. package/build/label/Label.js.map +1 -1
  394. package/build/label/Label.messages.js.map +1 -1
  395. package/build/label/Label.messages.mjs.map +1 -1
  396. package/build/label/Label.mjs.map +1 -1
  397. package/build/legacylistItem/LegacyListItem.js.map +1 -1
  398. package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
  399. package/build/legacylistItem/List.js.map +1 -1
  400. package/build/legacylistItem/List.mjs.map +1 -1
  401. package/build/link/Link.js.map +1 -1
  402. package/build/link/Link.messages.js.map +1 -1
  403. package/build/link/Link.messages.mjs.map +1 -1
  404. package/build/link/Link.mjs.map +1 -1
  405. package/build/loader/Loader.js.map +1 -1
  406. package/build/loader/Loader.mjs.map +1 -1
  407. package/build/logo/Logo.js.map +1 -1
  408. package/build/logo/Logo.mjs +1 -1
  409. package/build/logo/Logo.mjs.map +1 -1
  410. package/build/logo/logo-assets.js.map +1 -1
  411. package/build/logo/logo-assets.mjs.map +1 -1
  412. package/build/main.css +20 -2
  413. package/build/markdown/Markdown.js +20 -4
  414. package/build/markdown/Markdown.js.map +1 -1
  415. package/build/markdown/Markdown.mjs +1 -1
  416. package/build/markdown/Markdown.mjs.map +1 -1
  417. package/build/mocks.js.map +1 -1
  418. package/build/mocks.mjs.map +1 -1
  419. package/build/modal/Modal.js.map +1 -1
  420. package/build/modal/Modal.mjs.map +1 -1
  421. package/build/money/Money.js.map +1 -1
  422. package/build/money/Money.mjs.map +1 -1
  423. package/build/moneyInput/MoneyInput.js +4 -8
  424. package/build/moneyInput/MoneyInput.js.map +1 -1
  425. package/build/moneyInput/MoneyInput.messages.js +3 -0
  426. package/build/moneyInput/MoneyInput.messages.js.map +1 -1
  427. package/build/moneyInput/MoneyInput.messages.mjs +3 -0
  428. package/build/moneyInput/MoneyInput.messages.mjs.map +1 -1
  429. package/build/moneyInput/MoneyInput.mjs +4 -8
  430. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  431. package/build/moneyInput/currencyFormatting.js.map +1 -1
  432. package/build/moneyInput/currencyFormatting.mjs.map +1 -1
  433. package/build/navigationOption/NavigationOption.js.map +1 -1
  434. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  435. package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
  436. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  437. package/build/nudge/Nudge.js.map +1 -1
  438. package/build/nudge/Nudge.mjs.map +1 -1
  439. package/build/overlayHeader/OverlayHeader.js.map +1 -1
  440. package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
  441. package/build/phoneNumberInput/PhoneNumberInput.js +38 -4
  442. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  443. package/build/phoneNumberInput/PhoneNumberInput.messages.js +6 -0
  444. package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
  445. package/build/phoneNumberInput/PhoneNumberInput.messages.mjs +6 -0
  446. package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +1 -1
  447. package/build/phoneNumberInput/PhoneNumberInput.mjs +38 -4
  448. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  449. package/build/phoneNumberInput/data/countries.js.map +1 -1
  450. package/build/phoneNumberInput/data/countries.mjs.map +1 -1
  451. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js.map +1 -1
  452. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs.map +1 -1
  453. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +1 -1
  454. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +1 -1
  455. package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +1 -1
  456. package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +1 -1
  457. package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +1 -1
  458. package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +1 -1
  459. package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +1 -1
  460. package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +1 -1
  461. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +1 -1
  462. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +1 -1
  463. package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +1 -1
  464. package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs.map +1 -1
  465. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +1 -1
  466. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +1 -1
  467. package/build/popover/Popover.js.map +1 -1
  468. package/build/popover/Popover.mjs +1 -1
  469. package/build/popover/Popover.mjs.map +1 -1
  470. package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
  471. package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs.map +1 -1
  472. package/build/primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
  473. package/build/primitives/PrimitiveButton/PrimitiveButton.mjs.map +1 -1
  474. package/build/processIndicator/ProcessIndicator.js.map +1 -1
  475. package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
  476. package/build/progress/Progress.js.map +1 -1
  477. package/build/progress/Progress.mjs.map +1 -1
  478. package/build/progressBar/ProgressBar.js.map +1 -1
  479. package/build/progressBar/ProgressBar.mjs.map +1 -1
  480. package/build/promoCard/PromoCard.js.map +1 -1
  481. package/build/promoCard/PromoCard.mjs.map +1 -1
  482. package/build/promoCard/PromoCardContext.js.map +1 -1
  483. package/build/promoCard/PromoCardContext.mjs.map +1 -1
  484. package/build/promoCard/PromoCardGroup.js +1 -1
  485. package/build/promoCard/PromoCardGroup.js.map +1 -1
  486. package/build/promoCard/PromoCardGroup.mjs +1 -1
  487. package/build/promoCard/PromoCardGroup.mjs.map +1 -1
  488. package/build/promoCard/PromoCardIndicator.js.map +1 -1
  489. package/build/promoCard/PromoCardIndicator.mjs +1 -1
  490. package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
  491. package/build/provider/Provider.js.map +1 -1
  492. package/build/provider/Provider.mjs.map +1 -1
  493. package/build/provider/direction/DirectionProvider.js.map +1 -1
  494. package/build/provider/direction/DirectionProvider.mjs.map +1 -1
  495. package/build/provider/language/LanguageProvider.js.map +1 -1
  496. package/build/provider/language/LanguageProvider.mjs.map +1 -1
  497. package/build/provider/overlay/OverlayIdProvider.js.map +1 -1
  498. package/build/provider/overlay/OverlayIdProvider.mjs +1 -1
  499. package/build/provider/overlay/OverlayIdProvider.mjs.map +1 -1
  500. package/build/radio/Radio.js.map +1 -1
  501. package/build/radio/Radio.mjs.map +1 -1
  502. package/build/radioGroup/RadioGroup.js.map +1 -1
  503. package/build/radioGroup/RadioGroup.mjs.map +1 -1
  504. package/build/radioOption/RadioOption.js.map +1 -1
  505. package/build/radioOption/RadioOption.mjs.map +1 -1
  506. package/build/section/Section.js.map +1 -1
  507. package/build/section/Section.mjs.map +1 -1
  508. package/build/segmentedControl/SegmentedControl.js.map +1 -1
  509. package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
  510. package/build/select/Select.js +14 -22
  511. package/build/select/Select.js.map +1 -1
  512. package/build/select/Select.messages.js.map +1 -1
  513. package/build/select/Select.messages.mjs.map +1 -1
  514. package/build/select/Select.mjs +14 -22
  515. package/build/select/Select.mjs.map +1 -1
  516. package/build/select/option/Option.js.map +1 -1
  517. package/build/select/option/Option.mjs.map +1 -1
  518. package/build/select/searchBox/SearchBox.js.map +1 -1
  519. package/build/select/searchBox/SearchBox.mjs.map +1 -1
  520. package/build/selectOption/SelectOption.js.map +1 -1
  521. package/build/selectOption/SelectOption.messages.js.map +1 -1
  522. package/build/selectOption/SelectOption.messages.mjs.map +1 -1
  523. package/build/selectOption/SelectOption.mjs +1 -1
  524. package/build/selectOption/SelectOption.mjs.map +1 -1
  525. package/build/slidingPanel/SlidingPanel.js.map +1 -1
  526. package/build/slidingPanel/SlidingPanel.mjs.map +1 -1
  527. package/build/snackbar/Snackbar.js +1 -1
  528. package/build/snackbar/Snackbar.js.map +1 -1
  529. package/build/snackbar/Snackbar.mjs +1 -1
  530. package/build/snackbar/Snackbar.mjs.map +1 -1
  531. package/build/snackbar/SnackbarContext.js.map +1 -1
  532. package/build/snackbar/SnackbarContext.mjs.map +1 -1
  533. package/build/snackbar/SnackbarProvider.js.map +1 -1
  534. package/build/snackbar/SnackbarProvider.mjs.map +1 -1
  535. package/build/snackbar/useSnackbar.js.map +1 -1
  536. package/build/snackbar/useSnackbar.mjs.map +1 -1
  537. package/build/statusIcon/StatusIcon.js.map +1 -1
  538. package/build/statusIcon/StatusIcon.messages.js.map +1 -1
  539. package/build/statusIcon/StatusIcon.messages.mjs.map +1 -1
  540. package/build/statusIcon/StatusIcon.mjs +1 -1
  541. package/build/statusIcon/StatusIcon.mjs.map +1 -1
  542. package/build/stepper/Stepper.js.map +1 -1
  543. package/build/stepper/Stepper.mjs.map +1 -1
  544. package/build/stepper/deviceDetection.js.map +1 -1
  545. package/build/stepper/deviceDetection.mjs.map +1 -1
  546. package/build/sticky/Sticky.js.map +1 -1
  547. package/build/sticky/Sticky.mjs.map +1 -1
  548. package/build/styles/circularButton/CircularButton.css +1 -0
  549. package/build/styles/dateInput/DateInput.css +2 -1
  550. package/build/styles/inputs/Input.css +10 -0
  551. package/build/styles/inputs/TextArea.css +10 -0
  552. package/build/styles/main.css +20 -2
  553. package/build/styles/upload/Upload.css +3 -0
  554. package/build/styles/uploadInput/uploadItem/UploadItem.css +2 -1
  555. package/build/summary/Summary.js.map +1 -1
  556. package/build/summary/Summary.messages.js.map +1 -1
  557. package/build/summary/Summary.messages.mjs.map +1 -1
  558. package/build/summary/Summary.mjs +1 -1
  559. package/build/summary/Summary.mjs.map +1 -1
  560. package/build/switch/Switch.js.map +1 -1
  561. package/build/switch/Switch.mjs.map +1 -1
  562. package/build/switchOption/SwitchOption.js.map +1 -1
  563. package/build/switchOption/SwitchOption.mjs.map +1 -1
  564. package/build/table/Table.js.map +1 -1
  565. package/build/table/Table.messages.js.map +1 -1
  566. package/build/table/Table.messages.mjs.map +1 -1
  567. package/build/table/Table.mjs.map +1 -1
  568. package/build/table/TableCell.js.map +1 -1
  569. package/build/table/TableCell.mjs.map +1 -1
  570. package/build/table/TableHeader.js.map +1 -1
  571. package/build/table/TableHeader.mjs.map +1 -1
  572. package/build/table/TableRow.js.map +1 -1
  573. package/build/table/TableRow.mjs.map +1 -1
  574. package/build/table/TableStatusText.js.map +1 -1
  575. package/build/table/TableStatusText.mjs.map +1 -1
  576. package/build/tabs/Tab.js.map +1 -1
  577. package/build/tabs/Tab.mjs.map +1 -1
  578. package/build/tabs/TabList.js.map +1 -1
  579. package/build/tabs/TabList.mjs.map +1 -1
  580. package/build/tabs/TabPanel.js.map +1 -1
  581. package/build/tabs/TabPanel.mjs.map +1 -1
  582. package/build/tabs/Tabs.js +3 -3
  583. package/build/tabs/Tabs.js.map +1 -1
  584. package/build/tabs/Tabs.mjs +4 -4
  585. package/build/tabs/Tabs.mjs.map +1 -1
  586. package/build/tabs/utils.js +1 -1
  587. package/build/tabs/utils.js.map +1 -1
  588. package/build/tabs/utils.mjs +1 -1
  589. package/build/tabs/utils.mjs.map +1 -1
  590. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +1 -1
  591. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +1 -1
  592. package/build/tile/Tile.js.map +1 -1
  593. package/build/tile/Tile.mjs.map +1 -1
  594. package/build/title/Title.js.map +1 -1
  595. package/build/title/Title.mjs.map +1 -1
  596. package/build/tooltip/Tooltip.js.map +1 -1
  597. package/build/tooltip/Tooltip.mjs.map +1 -1
  598. package/build/typeahead/Typeahead.js +57 -61
  599. package/build/typeahead/Typeahead.js.map +1 -1
  600. package/build/typeahead/Typeahead.messages.js.map +1 -1
  601. package/build/typeahead/Typeahead.messages.mjs.map +1 -1
  602. package/build/typeahead/Typeahead.mjs +57 -61
  603. package/build/typeahead/Typeahead.mjs.map +1 -1
  604. package/build/typeahead/typeaheadInput/TypeaheadInput.js +2 -2
  605. package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +1 -1
  606. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs +2 -2
  607. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +1 -1
  608. package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +1 -1
  609. package/build/typeahead/typeaheadOption/TypeaheadOption.mjs.map +1 -1
  610. package/build/typeahead/util/highlight.js.map +1 -1
  611. package/build/typeahead/util/highlight.mjs.map +1 -1
  612. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  613. package/build/types/alert/Alert.d.ts.map +1 -1
  614. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
  615. package/build/types/badge/Badge.d.ts.map +1 -1
  616. package/build/types/chevron/Chevron.d.ts.map +1 -1
  617. package/build/types/chips/Chip.d.ts.map +1 -1
  618. package/build/types/chips/Chips.d.ts.map +1 -1
  619. package/build/types/circularButton/CircularButton.d.ts.map +1 -1
  620. package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
  621. package/build/types/common/closeButton/CloseButton.d.ts +2 -0
  622. package/build/types/common/closeButton/CloseButton.d.ts.map +1 -1
  623. package/build/types/common/colors.d.ts.map +1 -1
  624. package/build/types/common/dateUtils/getDateView/getDateView.d.ts.map +1 -1
  625. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -1
  626. package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -1
  627. package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -1
  628. package/build/types/common/fakeEvents.d.ts.map +1 -1
  629. package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -1
  630. package/build/types/common/historyNavigator/historyNavigator.d.ts.map +1 -1
  631. package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +1 -1
  632. package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -1
  633. package/build/types/common/initials.d.ts.map +1 -1
  634. package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -1
  635. package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -1
  636. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -1
  637. package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -1
  638. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -1
  639. package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -1
  640. package/build/types/common/theme.d.ts.map +1 -1
  641. package/build/types/dateInput/DateInput.d.ts.map +1 -1
  642. package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -1
  643. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  644. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -1
  645. package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -1
  646. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -1
  647. package/build/types/decision/Decision.d.ts.map +1 -1
  648. package/build/types/dimmer/Dimmer.d.ts.map +1 -1
  649. package/build/types/dropFade/DropFade.d.ts.map +1 -1
  650. package/build/types/emphasis/Emphasis.d.ts.map +1 -1
  651. package/build/types/field/Field.d.ts.map +1 -1
  652. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
  653. package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +1 -1
  654. package/build/types/header/Header.d.ts.map +1 -1
  655. package/build/types/image/Image.d.ts +0 -1
  656. package/build/types/image/Image.d.ts.map +1 -1
  657. package/build/types/info/Info.d.ts.map +1 -1
  658. package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -1
  659. package/build/types/inputs/SelectInput.d.ts.map +1 -1
  660. package/build/types/instructionsList/InstructionsList.d.ts.map +1 -1
  661. package/build/types/link/Link.d.ts.map +1 -1
  662. package/build/types/loader/Loader.d.ts.map +1 -1
  663. package/build/types/markdown/Markdown.d.ts.map +1 -1
  664. package/build/types/modal/Modal.d.ts.map +1 -1
  665. package/build/types/money/Money.d.ts.map +1 -1
  666. package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
  667. package/build/types/moneyInput/MoneyInput.messages.d.ts +5 -0
  668. package/build/types/moneyInput/MoneyInput.messages.d.ts.map +1 -1
  669. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -1
  670. package/build/types/nudge/Nudge.d.ts.map +1 -1
  671. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  672. package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts +8 -0
  673. package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts.map +1 -1
  674. package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -1
  675. package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -1
  676. package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -1
  677. package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -1
  678. package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -1
  679. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -1
  680. package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -1
  681. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -1
  682. package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -1
  683. package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -1
  684. package/build/types/progress/Progress.d.ts.map +1 -1
  685. package/build/types/progressBar/ProgressBar.d.ts.map +1 -1
  686. package/build/types/provider/direction/DirectionProvider.d.ts.map +1 -1
  687. package/build/types/provider/language/LanguageProvider.d.ts.map +1 -1
  688. package/build/types/provider/overlay/OverlayIdProvider.d.ts.map +1 -1
  689. package/build/types/section/Section.d.ts.map +1 -1
  690. package/build/types/segmentedControl/SegmentedControl.d.ts.map +1 -1
  691. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  692. package/build/types/stepper/Stepper.d.ts.map +1 -1
  693. package/build/types/summary/Summary.d.ts.map +1 -1
  694. package/build/types/switch/Switch.d.ts.map +1 -1
  695. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  696. package/build/types/table/Table.d.ts.map +1 -1
  697. package/build/types/table/TableCell.d.ts.map +1 -1
  698. package/build/types/table/TableHeader.d.ts.map +1 -1
  699. package/build/types/table/TableRow.d.ts.map +1 -1
  700. package/build/types/table/TableStatusText.d.ts.map +1 -1
  701. package/build/types/tabs/Tabs.d.ts.map +1 -1
  702. package/build/types/tabs/utils.d.ts.map +1 -1
  703. package/build/types/test-utils/index.d.ts +6 -0
  704. package/build/types/test-utils/index.d.ts.map +1 -1
  705. package/build/types/test-utils/story-config.d.ts.map +1 -1
  706. package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -1
  707. package/build/types/tooltip/Tooltip.d.ts.map +1 -1
  708. package/build/types/upload/Upload.d.ts +1 -2
  709. package/build/types/upload/Upload.d.ts.map +1 -1
  710. package/build/types/upload/steps/processingStep/processingStep.d.ts +1 -3
  711. package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -1
  712. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -0
  713. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -1
  714. package/build/types/uploadInput/UploadInput.d.ts.map +1 -1
  715. package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -1
  716. package/build/types/uploadInput/uploadItem/UploadItem.d.ts +1 -1
  717. package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -1
  718. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -1
  719. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
  720. package/build/types/withNextPortal/withNextPortal.d.ts.map +1 -1
  721. package/build/upload/Upload.js +29 -45
  722. package/build/upload/Upload.js.map +1 -1
  723. package/build/upload/Upload.messages.js.map +1 -1
  724. package/build/upload/Upload.messages.mjs.map +1 -1
  725. package/build/upload/Upload.mjs +29 -45
  726. package/build/upload/Upload.mjs.map +1 -1
  727. package/build/upload/steps/completeStep/completeStep.js.map +1 -1
  728. package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
  729. package/build/upload/steps/processingStep/processingStep.js +1 -3
  730. package/build/upload/steps/processingStep/processingStep.js.map +1 -1
  731. package/build/upload/steps/processingStep/processingStep.mjs +1 -3
  732. package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
  733. package/build/upload/steps/uploadImageStep/uploadImageStep.js +8 -1
  734. package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
  735. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +8 -1
  736. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
  737. package/build/upload/utils/asyncFileRead/asyncFileRead.js.map +1 -1
  738. package/build/upload/utils/asyncFileRead/asyncFileRead.mjs.map +1 -1
  739. package/build/upload/utils/getFileType/getFileType.js.map +1 -1
  740. package/build/upload/utils/getFileType/getFileType.mjs.map +1 -1
  741. package/build/upload/utils/isSizeValid/isSizeValid.js.map +1 -1
  742. package/build/upload/utils/isSizeValid/isSizeValid.mjs.map +1 -1
  743. package/build/upload/utils/isTypeValid/isTypeValid.js.map +1 -1
  744. package/build/upload/utils/isTypeValid/isTypeValid.mjs.map +1 -1
  745. package/build/upload/utils/postData/postData.js.map +1 -1
  746. package/build/upload/utils/postData/postData.mjs.map +1 -1
  747. package/build/uploadInput/UploadInput.js +55 -6
  748. package/build/uploadInput/UploadInput.js.map +1 -1
  749. package/build/uploadInput/UploadInput.messages.js.map +1 -1
  750. package/build/uploadInput/UploadInput.messages.mjs.map +1 -1
  751. package/build/uploadInput/UploadInput.mjs +57 -8
  752. package/build/uploadInput/UploadInput.mjs.map +1 -1
  753. package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
  754. package/build/uploadInput/uploadButton/UploadButton.messages.js.map +1 -1
  755. package/build/uploadInput/uploadButton/UploadButton.messages.mjs.map +1 -1
  756. package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
  757. package/build/uploadInput/uploadButton/defaults.js.map +1 -1
  758. package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
  759. package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
  760. package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
  761. package/build/uploadInput/uploadItem/UploadItem.js +12 -6
  762. package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
  763. package/build/uploadInput/uploadItem/UploadItem.messages.js.map +1 -1
  764. package/build/uploadInput/uploadItem/UploadItem.messages.mjs.map +1 -1
  765. package/build/uploadInput/uploadItem/UploadItem.mjs +12 -6
  766. package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
  767. package/build/uploadInput/uploadItem/UploadItemLink.js.map +1 -1
  768. package/build/uploadInput/uploadItem/UploadItemLink.mjs.map +1 -1
  769. package/build/utilities/cssValueWithUnit.js.map +1 -1
  770. package/build/utilities/cssValueWithUnit.mjs.map +1 -1
  771. package/build/utilities/logActionRequired.js.map +1 -1
  772. package/build/utilities/logActionRequired.mjs.map +1 -1
  773. package/build/withDisplayFormat/WithDisplayFormat.js +6 -7
  774. package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
  775. package/build/withDisplayFormat/WithDisplayFormat.mjs +6 -7
  776. package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
  777. package/build/withId/withId.js.map +1 -1
  778. package/build/withId/withId.mjs.map +1 -1
  779. package/build/withNextPortal/withNextPortal.js +1 -1
  780. package/build/withNextPortal/withNextPortal.js.map +1 -1
  781. package/build/withNextPortal/withNextPortal.mjs +1 -1
  782. package/build/withNextPortal/withNextPortal.mjs.map +1 -1
  783. package/package.json +56 -59
  784. package/src/alert/Alert.spec.tsx +13 -4
  785. package/src/alert/Alert.story.tsx +23 -9
  786. package/src/alert/Alert.tsx +14 -1
  787. package/src/card/Card.story.tsx +4 -2
  788. package/src/checkbox/Checkbox.story.tsx +3 -2
  789. package/src/circularButton/CircularButton.css +1 -0
  790. package/src/circularButton/CircularButton.less +1 -0
  791. package/src/circularButton/CircularButton.tests.story.tsx +23 -0
  792. package/src/common/closeButton/CloseButton.spec.tsx +13 -1
  793. package/src/common/closeButton/CloseButton.tsx +3 -0
  794. package/src/common/initials.spec.tsx +42 -0
  795. package/src/common/initials.ts +4 -0
  796. package/src/dateInput/DateInput.css +2 -1
  797. package/src/dateInput/DateInput.less +7 -4
  798. package/src/dateInput/DateInput.story.tsx +2 -2
  799. package/src/dateInput/DateInput.tests.story.tsx +11 -10
  800. package/src/i18n/cs.json +12 -9
  801. package/src/i18n/de.json +3 -0
  802. package/src/i18n/en.json +3 -0
  803. package/src/i18n/es.json +3 -0
  804. package/src/i18n/fr.json +3 -0
  805. package/src/i18n/hu.json +3 -0
  806. package/src/i18n/id.json +3 -0
  807. package/src/i18n/it.json +3 -0
  808. package/src/i18n/ja.json +3 -0
  809. package/src/i18n/nl.json +6 -3
  810. package/src/i18n/pl.json +3 -0
  811. package/src/i18n/pt.json +3 -0
  812. package/src/i18n/ro.json +3 -0
  813. package/src/i18n/ru.json +3 -0
  814. package/src/i18n/th.json +3 -0
  815. package/src/i18n/tr.json +3 -0
  816. package/src/i18n/zh-CN.json +3 -0
  817. package/src/i18n/zh-HK.json +3 -0
  818. package/src/image/Image.spec.tsx +3 -3
  819. package/src/image/Image.tsx +10 -12
  820. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +1 -1
  821. package/src/inputs/Input.css +10 -0
  822. package/src/inputs/SelectInput.tsx +11 -2
  823. package/src/inputs/TextArea.css +10 -0
  824. package/src/inputs/_common.less +6 -0
  825. package/src/main.css +20 -2
  826. package/src/markdown/Markdown.tsx +2 -1
  827. package/src/moneyInput/MoneyInput.messages.ts +5 -0
  828. package/src/moneyInput/MoneyInput.spec.tsx +42 -5
  829. package/src/moneyInput/MoneyInput.story.tsx +11 -2
  830. package/src/moneyInput/MoneyInput.tsx +5 -7
  831. package/src/phoneNumberInput/PhoneNumberInput.messages.ts +8 -0
  832. package/src/phoneNumberInput/PhoneNumberInput.spec.tsx +77 -43
  833. package/src/phoneNumberInput/PhoneNumberInput.tsx +36 -4
  834. package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +3 -2
  835. package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +3 -2
  836. package/src/promoCard/__snapshots__/PromoCard.spec.tsx.snap +1 -0
  837. package/src/promoCard/__snapshots__/PromoCardGroup.spec.tsx.snap +2 -0
  838. package/src/radioGroup/RadioGroup.story.tsx +2 -2
  839. package/src/tabs/Tabs.spec.tsx +137 -0
  840. package/src/tabs/Tabs.story.tsx +1 -0
  841. package/src/tabs/Tabs.tsx +0 -1
  842. package/src/test-utils/jest.setup.ts +0 -4
  843. package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.spec.js +9 -8
  844. package/src/typeahead/Typeahead.spec.tsx +182 -0
  845. package/src/typeahead/Typeahead.story.tsx +3 -2
  846. package/src/typeahead/typeaheadInput/TypeaheadInput.spec.tsx +103 -0
  847. package/src/typeahead/util/highlight.spec.tsx +43 -0
  848. package/src/upload/Upload.css +3 -0
  849. package/src/upload/Upload.less +7 -1
  850. package/src/upload/Upload.spec.tsx +63 -0
  851. package/src/upload/Upload.story.tsx +1 -52
  852. package/src/upload/Upload.tests.story.tsx +93 -0
  853. package/src/upload/Upload.tsx +28 -49
  854. package/src/upload/steps/processingStep/processingStep.tsx +2 -7
  855. package/src/upload/steps/uploadImageStep/uploadImageStep.spec.tsx +15 -0
  856. package/src/upload/steps/uploadImageStep/uploadImageStep.tsx +8 -0
  857. package/src/uploadInput/UploadInput.tsx +81 -8
  858. package/src/uploadInput/uploadItem/UploadItem.css +2 -1
  859. package/src/uploadInput/uploadItem/UploadItem.less +1 -1
  860. package/src/uploadInput/uploadItem/UploadItem.tsx +11 -6
  861. package/src/withDisplayFormat/WithDisplayFormat.spec.js +123 -216
  862. package/src/withDisplayFormat/WithDisplayFormat.tsx +7 -8
  863. package/src/tabs/Tabs.spec.js +0 -423
  864. package/src/typeahead/Typeahead.rtl.spec.tsx +0 -54
  865. package/src/typeahead/Typeahead.spec.js +0 -404
  866. package/src/typeahead/typeaheadInput/TypeaheadInput.spec.js +0 -74
  867. package/src/typeahead/typeaheadOption/TypeaheadOption.spec.js +0 -75
  868. package/src/typeahead/util/highlight.spec.js +0 -34
  869. package/src/withDisplayFormat/WithDisplayFormat.state.spec.js +0 -42
@@ -15,7 +15,8 @@ const CloseButton = /*#__PURE__*/React.forwardRef(function CloseButton({
15
15
  className,
16
16
  onClick,
17
17
  isDisabled,
18
- testId
18
+ testId,
19
+ tabIndex
19
20
  }, reference) {
20
21
  const intl = reactIntl.useIntl();
21
22
  ariaLabel ??= intl.formatMessage(CloseButton_messages.default.ariaLabel);
@@ -32,6 +33,7 @@ const CloseButton = /*#__PURE__*/React.forwardRef(function CloseButton({
32
33
  "aria-disabled": isDisabled,
33
34
  disabled: isDisabled,
34
35
  "data-testid": testId,
36
+ tabIndex: tabIndex,
35
37
  onClick: onClick,
36
38
  children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
37
39
  size: size$1 === size.Size.SMALL || size$1 === size.Size.EXTRA_SMALL ? 16 : 24
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.js","sources":["../../../src/common/closeButton/CloseButton.tsx"],"sourcesContent":["import { Cross, CrossCircleFill } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { forwardRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { Size, SizeLarge, SizeMedium, SizeSmall, SizeExtraSmall } from '../propsValues/size';\n\nimport messages from './CloseButton.messages';\n\nexport type CloseButtonProps = Pick<\n React.ComponentPropsWithoutRef<'button'>,\n 'aria-label' | 'className' | 'onClick'\n> & {\n size?: SizeExtraSmall | SizeSmall | SizeMedium | SizeLarge;\n filled?: boolean;\n isDisabled?: boolean;\n testId?: string;\n};\n\n/**\n * @deprecated Use `<IconButton />` component instead\n */\nexport const CloseButton = forwardRef(function CloseButton(\n {\n 'aria-label': ariaLabel,\n size = Size.MEDIUM,\n filled = false,\n className,\n onClick,\n isDisabled,\n testId,\n }: CloseButtonProps,\n reference: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n const intl = useIntl();\n ariaLabel ??= intl.formatMessage(messages.ariaLabel);\n const Icon = filled ? CrossCircleFill : Cross;\n\n return (\n <button\n ref={reference}\n type=\"button\"\n className={clsx(\n 'np-close-button',\n 'close btn-link',\n 'text-no-decoration',\n {\n 'np-close-button--x-small': size === Size.EXTRA_SMALL,\n 'np-close-button--large': size === Size.MEDIUM,\n 'np-close-button--x-large': size === Size.LARGE,\n },\n className,\n )}\n aria-label={ariaLabel}\n aria-disabled={isDisabled}\n disabled={isDisabled}\n data-testid={testId}\n onClick={onClick}\n >\n <Icon size={size === Size.SMALL || size === Size.EXTRA_SMALL ? 16 : 24} />\n </button>\n );\n});\n"],"names":["CloseButton","forwardRef","ariaLabel","size","Size","MEDIUM","filled","className","onClick","isDisabled","testId","reference","intl","useIntl","formatMessage","messages","Icon","CrossCircleFill","Cross","_jsx","ref","type","clsx","EXTRA_SMALL","LARGE","disabled","children","SMALL"],"mappings":";;;;;;;;;;MAsBaA,WAAW,gBAAGC,gBAAU,CAAC,SAASD,WAAWA,CACxD;AACE,EAAA,YAAY,EAAEE,SAAS;QACvBC,MAAI,GAAGC,SAAI,CAACC,MAAM;AAClBC,EAAAA,MAAM,GAAG,KAAK;EACdC,SAAS;EACTC,OAAO;EACPC,UAAU;AACVC,EAAAA,MAAAA;AAAM,CACW,EACnBC,SAAuD,EAAA;AAEvD,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE,CAAA;EACtBX,SAAS,KAAKU,IAAI,CAACE,aAAa,CAACC,4BAAQ,CAACb,SAAS,CAAC,CAAA;AACpD,EAAA,MAAMc,IAAI,GAAGV,MAAM,GAAGW,qBAAe,GAAGC,WAAK,CAAA;AAE7C,EAAA,oBACEC,cAAA,CAAA,QAAA,EAAA;AACEC,IAAAA,GAAG,EAAET,SAAU;AACfU,IAAAA,IAAI,EAAC,QAAQ;IACbd,SAAS,EAAEe,SAAI,CACb,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB;AACE,MAAA,0BAA0B,EAAEnB,MAAI,KAAKC,SAAI,CAACmB,WAAW;AACrD,MAAA,wBAAwB,EAAEpB,MAAI,KAAKC,SAAI,CAACC,MAAM;AAC9C,MAAA,0BAA0B,EAAEF,MAAI,KAAKC,SAAI,CAACoB,KAAAA;KAC3C,EACDjB,SAAS,CACT;AACF,IAAA,YAAA,EAAYL,SAAU;AACtB,IAAA,eAAA,EAAeO,UAAW;AAC1BgB,IAAAA,QAAQ,EAAEhB,UAAW;AACrB,IAAA,aAAA,EAAaC,MAAO;AACpBF,IAAAA,OAAO,EAAEA,OAAQ;IAAAkB,QAAA,eAEjBP,cAAA,CAACH,IAAI,EAAA;AAACb,MAAAA,IAAI,EAAEA,MAAI,KAAKC,SAAI,CAACuB,KAAK,IAAIxB,MAAI,KAAKC,SAAI,CAACmB,WAAW,GAAG,EAAE,GAAG,EAAA;KACtE,CAAA;AAAA,GAAQ,CAAC,CAAA;AAEb,CAAC;;;;"}
1
+ {"version":3,"file":"CloseButton.js","sources":["../../../src/common/closeButton/CloseButton.tsx"],"sourcesContent":["import { Cross, CrossCircleFill } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { forwardRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { Size, SizeLarge, SizeMedium, SizeSmall, SizeExtraSmall } from '../propsValues/size';\n\nimport messages from './CloseButton.messages';\n\nexport type CloseButtonProps = Pick<\n React.ComponentPropsWithoutRef<'button'>,\n 'aria-label' | 'className' | 'onClick'\n> & {\n size?: SizeExtraSmall | SizeSmall | SizeMedium | SizeLarge;\n filled?: boolean;\n isDisabled?: boolean;\n testId?: string;\n tabIndex?: number;\n};\n\n/**\n * @deprecated Use `<IconButton />` component instead\n */\nexport const CloseButton = forwardRef(function CloseButton(\n {\n 'aria-label': ariaLabel,\n size = Size.MEDIUM,\n filled = false,\n className,\n onClick,\n isDisabled,\n testId,\n tabIndex,\n }: CloseButtonProps,\n reference: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n const intl = useIntl();\n ariaLabel ??= intl.formatMessage(messages.ariaLabel);\n const Icon = filled ? CrossCircleFill : Cross;\n\n return (\n <button\n ref={reference}\n type=\"button\"\n className={clsx(\n 'np-close-button',\n 'close btn-link',\n 'text-no-decoration',\n {\n 'np-close-button--x-small': size === Size.EXTRA_SMALL,\n 'np-close-button--large': size === Size.MEDIUM,\n 'np-close-button--x-large': size === Size.LARGE,\n },\n className,\n )}\n aria-label={ariaLabel}\n aria-disabled={isDisabled}\n disabled={isDisabled}\n data-testid={testId}\n tabIndex={tabIndex}\n onClick={onClick}\n >\n <Icon size={size === Size.SMALL || size === Size.EXTRA_SMALL ? 16 : 24} />\n </button>\n );\n});\n"],"names":["CloseButton","forwardRef","ariaLabel","size","Size","MEDIUM","filled","className","onClick","isDisabled","testId","tabIndex","reference","intl","useIntl","formatMessage","messages","Icon","CrossCircleFill","Cross","_jsx","ref","type","clsx","EXTRA_SMALL","LARGE","disabled","children","SMALL"],"mappings":";;;;;;;;;;MAuBaA,WAAW,gBAAGC,gBAAU,CAAC,SAASD,WAAWA,CACxD;AACE,EAAA,YAAY,EAAEE,SAAS;QACvBC,MAAI,GAAGC,SAAI,CAACC,MAAM;AAClBC,EAAAA,MAAM,GAAG,KAAK;EACdC,SAAS;EACTC,OAAO;EACPC,UAAU;EACVC,MAAM;AACNC,EAAAA;AAAQ,CACS,EACnBC,SAAuD,EAAA;AAEvD,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE;EACtBZ,SAAS,KAAKW,IAAI,CAACE,aAAa,CAACC,4BAAQ,CAACd,SAAS,CAAC;AACpD,EAAA,MAAMe,IAAI,GAAGX,MAAM,GAAGY,qBAAe,GAAGC,WAAK;AAE7C,EAAA,oBACEC,cAAA,CAAA,QAAA,EAAA;AACEC,IAAAA,GAAG,EAAET,SAAU;AACfU,IAAAA,IAAI,EAAC,QAAQ;IACbf,SAAS,EAAEgB,SAAI,CACb,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB;AACE,MAAA,0BAA0B,EAAEpB,MAAI,KAAKC,SAAI,CAACoB,WAAW;AACrD,MAAA,wBAAwB,EAAErB,MAAI,KAAKC,SAAI,CAACC,MAAM;AAC9C,MAAA,0BAA0B,EAAEF,MAAI,KAAKC,SAAI,CAACqB;KAC3C,EACDlB,SAAS,CACT;AACF,IAAA,YAAA,EAAYL,SAAU;AACtB,IAAA,eAAA,EAAeO,UAAW;AAC1BiB,IAAAA,QAAQ,EAAEjB,UAAW;AACrB,IAAA,aAAA,EAAaC,MAAO;AACpBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBH,IAAAA,OAAO,EAAEA,OAAQ;IAAAmB,QAAA,eAEjBP,cAAA,CAACH,IAAI,EAAA;AAACd,MAAAA,IAAI,EAAEA,MAAI,KAAKC,SAAI,CAACwB,KAAK,IAAIzB,MAAI,KAAKC,SAAI,CAACoB,WAAW,GAAG,EAAE,GAAG;KACtE;AAAA,GAAQ,CAAC;AAEb,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.messages.js","sources":["../../../src/common/closeButton/CloseButton.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.CloseButton.ariaLabel',\n defaultMessage: 'Close',\n description: 'Description of close button',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;;;;;AAEA,eAAeA,wBAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA,+BAAA;AAGH,GAAA;AACF,CAAA,CAAC;;;;"}
1
+ {"version":3,"file":"CloseButton.messages.js","sources":["../../../src/common/closeButton/CloseButton.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.CloseButton.ariaLabel',\n defaultMessage: 'Close',\n description: 'Description of close button',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;;;;;AAEA,eAAeA,wBAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;AACF,CAAA,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.messages.mjs","sources":["../../../src/common/closeButton/CloseButton.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.CloseButton.ariaLabel',\n defaultMessage: 'Close',\n description: 'Description of close button',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;AAEA,eAAeA,cAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA,+BAAA;AAGH,GAAA;AACF,CAAA,CAAC;;;;"}
1
+ {"version":3,"file":"CloseButton.messages.mjs","sources":["../../../src/common/closeButton/CloseButton.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.CloseButton.ariaLabel',\n defaultMessage: 'Close',\n description: 'Description of close button',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;AAEA,eAAeA,cAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;AACF,CAAA,CAAC;;;;"}
@@ -13,7 +13,8 @@ const CloseButton = /*#__PURE__*/forwardRef(function CloseButton({
13
13
  className,
14
14
  onClick,
15
15
  isDisabled,
16
- testId
16
+ testId,
17
+ tabIndex
17
18
  }, reference) {
18
19
  const intl = useIntl();
19
20
  ariaLabel ??= intl.formatMessage(messages.ariaLabel);
@@ -30,6 +31,7 @@ const CloseButton = /*#__PURE__*/forwardRef(function CloseButton({
30
31
  "aria-disabled": isDisabled,
31
32
  disabled: isDisabled,
32
33
  "data-testid": testId,
34
+ tabIndex: tabIndex,
33
35
  onClick: onClick,
34
36
  children: /*#__PURE__*/jsx(Icon, {
35
37
  size: size === Size.SMALL || size === Size.EXTRA_SMALL ? 16 : 24
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.mjs","sources":["../../../src/common/closeButton/CloseButton.tsx"],"sourcesContent":["import { Cross, CrossCircleFill } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { forwardRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { Size, SizeLarge, SizeMedium, SizeSmall, SizeExtraSmall } from '../propsValues/size';\n\nimport messages from './CloseButton.messages';\n\nexport type CloseButtonProps = Pick<\n React.ComponentPropsWithoutRef<'button'>,\n 'aria-label' | 'className' | 'onClick'\n> & {\n size?: SizeExtraSmall | SizeSmall | SizeMedium | SizeLarge;\n filled?: boolean;\n isDisabled?: boolean;\n testId?: string;\n};\n\n/**\n * @deprecated Use `<IconButton />` component instead\n */\nexport const CloseButton = forwardRef(function CloseButton(\n {\n 'aria-label': ariaLabel,\n size = Size.MEDIUM,\n filled = false,\n className,\n onClick,\n isDisabled,\n testId,\n }: CloseButtonProps,\n reference: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n const intl = useIntl();\n ariaLabel ??= intl.formatMessage(messages.ariaLabel);\n const Icon = filled ? CrossCircleFill : Cross;\n\n return (\n <button\n ref={reference}\n type=\"button\"\n className={clsx(\n 'np-close-button',\n 'close btn-link',\n 'text-no-decoration',\n {\n 'np-close-button--x-small': size === Size.EXTRA_SMALL,\n 'np-close-button--large': size === Size.MEDIUM,\n 'np-close-button--x-large': size === Size.LARGE,\n },\n className,\n )}\n aria-label={ariaLabel}\n aria-disabled={isDisabled}\n disabled={isDisabled}\n data-testid={testId}\n onClick={onClick}\n >\n <Icon size={size === Size.SMALL || size === Size.EXTRA_SMALL ? 16 : 24} />\n </button>\n );\n});\n"],"names":["CloseButton","forwardRef","ariaLabel","size","Size","MEDIUM","filled","className","onClick","isDisabled","testId","reference","intl","useIntl","formatMessage","messages","Icon","CrossCircleFill","Cross","_jsx","ref","type","clsx","EXTRA_SMALL","LARGE","disabled","children","SMALL"],"mappings":";;;;;;;;MAsBaA,WAAW,gBAAGC,UAAU,CAAC,SAASD,WAAWA,CACxD;AACE,EAAA,YAAY,EAAEE,SAAS;EACvBC,IAAI,GAAGC,IAAI,CAACC,MAAM;AAClBC,EAAAA,MAAM,GAAG,KAAK;EACdC,SAAS;EACTC,OAAO;EACPC,UAAU;AACVC,EAAAA,MAAAA;AAAM,CACW,EACnBC,SAAuD,EAAA;AAEvD,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE,CAAA;EACtBX,SAAS,KAAKU,IAAI,CAACE,aAAa,CAACC,QAAQ,CAACb,SAAS,CAAC,CAAA;AACpD,EAAA,MAAMc,IAAI,GAAGV,MAAM,GAAGW,eAAe,GAAGC,KAAK,CAAA;AAE7C,EAAA,oBACEC,GAAA,CAAA,QAAA,EAAA;AACEC,IAAAA,GAAG,EAAET,SAAU;AACfU,IAAAA,IAAI,EAAC,QAAQ;IACbd,SAAS,EAAEe,IAAI,CACb,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB;AACE,MAAA,0BAA0B,EAAEnB,IAAI,KAAKC,IAAI,CAACmB,WAAW;AACrD,MAAA,wBAAwB,EAAEpB,IAAI,KAAKC,IAAI,CAACC,MAAM;AAC9C,MAAA,0BAA0B,EAAEF,IAAI,KAAKC,IAAI,CAACoB,KAAAA;KAC3C,EACDjB,SAAS,CACT;AACF,IAAA,YAAA,EAAYL,SAAU;AACtB,IAAA,eAAA,EAAeO,UAAW;AAC1BgB,IAAAA,QAAQ,EAAEhB,UAAW;AACrB,IAAA,aAAA,EAAaC,MAAO;AACpBF,IAAAA,OAAO,EAAEA,OAAQ;IAAAkB,QAAA,eAEjBP,GAAA,CAACH,IAAI,EAAA;AAACb,MAAAA,IAAI,EAAEA,IAAI,KAAKC,IAAI,CAACuB,KAAK,IAAIxB,IAAI,KAAKC,IAAI,CAACmB,WAAW,GAAG,EAAE,GAAG,EAAA;KACtE,CAAA;AAAA,GAAQ,CAAC,CAAA;AAEb,CAAC;;;;"}
1
+ {"version":3,"file":"CloseButton.mjs","sources":["../../../src/common/closeButton/CloseButton.tsx"],"sourcesContent":["import { Cross, CrossCircleFill } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { forwardRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { Size, SizeLarge, SizeMedium, SizeSmall, SizeExtraSmall } from '../propsValues/size';\n\nimport messages from './CloseButton.messages';\n\nexport type CloseButtonProps = Pick<\n React.ComponentPropsWithoutRef<'button'>,\n 'aria-label' | 'className' | 'onClick'\n> & {\n size?: SizeExtraSmall | SizeSmall | SizeMedium | SizeLarge;\n filled?: boolean;\n isDisabled?: boolean;\n testId?: string;\n tabIndex?: number;\n};\n\n/**\n * @deprecated Use `<IconButton />` component instead\n */\nexport const CloseButton = forwardRef(function CloseButton(\n {\n 'aria-label': ariaLabel,\n size = Size.MEDIUM,\n filled = false,\n className,\n onClick,\n isDisabled,\n testId,\n tabIndex,\n }: CloseButtonProps,\n reference: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n const intl = useIntl();\n ariaLabel ??= intl.formatMessage(messages.ariaLabel);\n const Icon = filled ? CrossCircleFill : Cross;\n\n return (\n <button\n ref={reference}\n type=\"button\"\n className={clsx(\n 'np-close-button',\n 'close btn-link',\n 'text-no-decoration',\n {\n 'np-close-button--x-small': size === Size.EXTRA_SMALL,\n 'np-close-button--large': size === Size.MEDIUM,\n 'np-close-button--x-large': size === Size.LARGE,\n },\n className,\n )}\n aria-label={ariaLabel}\n aria-disabled={isDisabled}\n disabled={isDisabled}\n data-testid={testId}\n tabIndex={tabIndex}\n onClick={onClick}\n >\n <Icon size={size === Size.SMALL || size === Size.EXTRA_SMALL ? 16 : 24} />\n </button>\n );\n});\n"],"names":["CloseButton","forwardRef","ariaLabel","size","Size","MEDIUM","filled","className","onClick","isDisabled","testId","tabIndex","reference","intl","useIntl","formatMessage","messages","Icon","CrossCircleFill","Cross","_jsx","ref","type","clsx","EXTRA_SMALL","LARGE","disabled","children","SMALL"],"mappings":";;;;;;;;MAuBaA,WAAW,gBAAGC,UAAU,CAAC,SAASD,WAAWA,CACxD;AACE,EAAA,YAAY,EAAEE,SAAS;EACvBC,IAAI,GAAGC,IAAI,CAACC,MAAM;AAClBC,EAAAA,MAAM,GAAG,KAAK;EACdC,SAAS;EACTC,OAAO;EACPC,UAAU;EACVC,MAAM;AACNC,EAAAA;AAAQ,CACS,EACnBC,SAAuD,EAAA;AAEvD,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;EACtBZ,SAAS,KAAKW,IAAI,CAACE,aAAa,CAACC,QAAQ,CAACd,SAAS,CAAC;AACpD,EAAA,MAAMe,IAAI,GAAGX,MAAM,GAAGY,eAAe,GAAGC,KAAK;AAE7C,EAAA,oBACEC,GAAA,CAAA,QAAA,EAAA;AACEC,IAAAA,GAAG,EAAET,SAAU;AACfU,IAAAA,IAAI,EAAC,QAAQ;IACbf,SAAS,EAAEgB,IAAI,CACb,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB;AACE,MAAA,0BAA0B,EAAEpB,IAAI,KAAKC,IAAI,CAACoB,WAAW;AACrD,MAAA,wBAAwB,EAAErB,IAAI,KAAKC,IAAI,CAACC,MAAM;AAC9C,MAAA,0BAA0B,EAAEF,IAAI,KAAKC,IAAI,CAACqB;KAC3C,EACDlB,SAAS,CACT;AACF,IAAA,YAAA,EAAYL,SAAU;AACtB,IAAA,eAAA,EAAeO,UAAW;AAC1BiB,IAAAA,QAAQ,EAAEjB,UAAW;AACrB,IAAA,aAAA,EAAaC,MAAO;AACpBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBH,IAAAA,OAAO,EAAEA,OAAQ;IAAAmB,QAAA,eAEjBP,GAAA,CAACH,IAAI,EAAA;AAACd,MAAAA,IAAI,EAAEA,IAAI,KAAKC,IAAI,CAACwB,KAAK,IAAIzB,IAAI,KAAKC,IAAI,CAACoB,WAAW,GAAG,EAAE,GAAG;KACtE;AAAA,GAAQ,CAAC;AAEb,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","sources":["../../src/common/colors.ts"],"sourcesContent":["/*\n * The colors we support generating an Avatar background color from a \"seed\" for.\n * Changing this array will change the assignment between seeds.\n * Do not change this array.\n */\nconst avatarColors = [\n 'var(--color-bright-blue)',\n 'var(--color-bright-yellow)',\n 'var(--color-bright-pink)',\n 'var(--color-bright-orange)',\n] as const;\n\n/*\n * Takes in a \"seed\" string and spits out an index for the color we should use.\n * This implementation has been synced across all three clients so that we consistently\n * generate branded avatar colors when rendering a list of Avatars.\n * Do not change this implementation.\n */\nconst hashSeed = (seed: string): number => {\n const base = 31;\n const modulo = avatarColors.length;\n\n let hashValue = 0;\n let basePow = 1;\n\n for (let i = 0; i < seed.length; i += 1) {\n hashValue = (hashValue + seed.charCodeAt(i) * basePow) % modulo;\n basePow = (basePow * base) % modulo;\n }\n\n return hashValue;\n};\n\nexport const getBrandColorFromSeed = (seed: string): (typeof avatarColors)[number] => {\n return avatarColors[hashSeed(seed)];\n};\n"],"names":["avatarColors","hashSeed","seed","base","modulo","length","hashValue","basePow","i","charCodeAt","getBrandColorFromSeed"],"mappings":";;AAAA;;;;AAIG;AACH,MAAMA,YAAY,GAAG,CACnB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,CACpB,CAAA;AAEV;;;;;AAKG;AACH,MAAMC,QAAQ,GAAIC,IAAY,IAAY;EACxC,MAAMC,IAAI,GAAG,EAAE,CAAA;AACf,EAAA,MAAMC,MAAM,GAAGJ,YAAY,CAACK,MAAM,CAAA;EAElC,IAAIC,SAAS,GAAG,CAAC,CAAA;EACjB,IAAIC,OAAO,GAAG,CAAC,CAAA;AAEf,EAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGN,IAAI,CAACG,MAAM,EAAEG,CAAC,IAAI,CAAC,EAAE;AACvCF,IAAAA,SAAS,GAAG,CAACA,SAAS,GAAGJ,IAAI,CAACO,UAAU,CAACD,CAAC,CAAC,GAAGD,OAAO,IAAIH,MAAM,CAAA;AAC/DG,IAAAA,OAAO,GAAIA,OAAO,GAAGJ,IAAI,GAAIC,MAAM,CAAA;AACrC,GAAA;AAEA,EAAA,OAAOE,SAAS,CAAA;AAClB,CAAC,CAAA;AAEYI,MAAAA,qBAAqB,GAAIR,IAAY,IAAmC;AACnF,EAAA,OAAOF,YAAY,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"colors.js","sources":["../../src/common/colors.ts"],"sourcesContent":["/*\n * The colors we support generating an Avatar background color from a \"seed\" for.\n * Changing this array will change the assignment between seeds.\n * Do not change this array.\n */\nconst avatarColors = [\n 'var(--color-bright-blue)',\n 'var(--color-bright-yellow)',\n 'var(--color-bright-pink)',\n 'var(--color-bright-orange)',\n] as const;\n\n/*\n * Takes in a \"seed\" string and spits out an index for the color we should use.\n * This implementation has been synced across all three clients so that we consistently\n * generate branded avatar colors when rendering a list of Avatars.\n * Do not change this implementation.\n */\nconst hashSeed = (seed: string): number => {\n const base = 31;\n const modulo = avatarColors.length;\n\n let hashValue = 0;\n let basePow = 1;\n\n for (let i = 0; i < seed.length; i += 1) {\n hashValue = (hashValue + seed.charCodeAt(i) * basePow) % modulo;\n basePow = (basePow * base) % modulo;\n }\n\n return hashValue;\n};\n\nexport const getBrandColorFromSeed = (seed: string): (typeof avatarColors)[number] => {\n return avatarColors[hashSeed(seed)];\n};\n"],"names":["avatarColors","hashSeed","seed","base","modulo","length","hashValue","basePow","i","charCodeAt","getBrandColorFromSeed"],"mappings":";;AAAA;;;;AAIG;AACH,MAAMA,YAAY,GAAG,CACnB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,CACpB;AAEV;;;;;AAKG;AACH,MAAMC,QAAQ,GAAIC,IAAY,IAAY;EACxC,MAAMC,IAAI,GAAG,EAAE;AACf,EAAA,MAAMC,MAAM,GAAGJ,YAAY,CAACK,MAAM;EAElC,IAAIC,SAAS,GAAG,CAAC;EACjB,IAAIC,OAAO,GAAG,CAAC;AAEf,EAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGN,IAAI,CAACG,MAAM,EAAEG,CAAC,IAAI,CAAC,EAAE;AACvCF,IAAAA,SAAS,GAAG,CAACA,SAAS,GAAGJ,IAAI,CAACO,UAAU,CAACD,CAAC,CAAC,GAAGD,OAAO,IAAIH,MAAM;AAC/DG,IAAAA,OAAO,GAAIA,OAAO,GAAGJ,IAAI,GAAIC,MAAM;AACrC;AAEA,EAAA,OAAOE,SAAS;AAClB,CAAC;AAEYI,MAAAA,qBAAqB,GAAIR,IAAY,IAAmC;AACnF,EAAA,OAAOF,YAAY,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"colors.mjs","sources":["../../src/common/colors.ts"],"sourcesContent":["/*\n * The colors we support generating an Avatar background color from a \"seed\" for.\n * Changing this array will change the assignment between seeds.\n * Do not change this array.\n */\nconst avatarColors = [\n 'var(--color-bright-blue)',\n 'var(--color-bright-yellow)',\n 'var(--color-bright-pink)',\n 'var(--color-bright-orange)',\n] as const;\n\n/*\n * Takes in a \"seed\" string and spits out an index for the color we should use.\n * This implementation has been synced across all three clients so that we consistently\n * generate branded avatar colors when rendering a list of Avatars.\n * Do not change this implementation.\n */\nconst hashSeed = (seed: string): number => {\n const base = 31;\n const modulo = avatarColors.length;\n\n let hashValue = 0;\n let basePow = 1;\n\n for (let i = 0; i < seed.length; i += 1) {\n hashValue = (hashValue + seed.charCodeAt(i) * basePow) % modulo;\n basePow = (basePow * base) % modulo;\n }\n\n return hashValue;\n};\n\nexport const getBrandColorFromSeed = (seed: string): (typeof avatarColors)[number] => {\n return avatarColors[hashSeed(seed)];\n};\n"],"names":["avatarColors","hashSeed","seed","base","modulo","length","hashValue","basePow","i","charCodeAt","getBrandColorFromSeed"],"mappings":"AAAA;;;;AAIG;AACH,MAAMA,YAAY,GAAG,CACnB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,CACpB,CAAA;AAEV;;;;;AAKG;AACH,MAAMC,QAAQ,GAAIC,IAAY,IAAY;EACxC,MAAMC,IAAI,GAAG,EAAE,CAAA;AACf,EAAA,MAAMC,MAAM,GAAGJ,YAAY,CAACK,MAAM,CAAA;EAElC,IAAIC,SAAS,GAAG,CAAC,CAAA;EACjB,IAAIC,OAAO,GAAG,CAAC,CAAA;AAEf,EAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGN,IAAI,CAACG,MAAM,EAAEG,CAAC,IAAI,CAAC,EAAE;AACvCF,IAAAA,SAAS,GAAG,CAACA,SAAS,GAAGJ,IAAI,CAACO,UAAU,CAACD,CAAC,CAAC,GAAGD,OAAO,IAAIH,MAAM,CAAA;AAC/DG,IAAAA,OAAO,GAAIA,OAAO,GAAGJ,IAAI,GAAIC,MAAM,CAAA;AACrC,GAAA;AAEA,EAAA,OAAOE,SAAS,CAAA;AAClB,CAAC,CAAA;AAEYI,MAAAA,qBAAqB,GAAIR,IAAY,IAAmC;AACnF,EAAA,OAAOF,YAAY,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC,CAAA;AACrC;;;;"}
1
+ {"version":3,"file":"colors.mjs","sources":["../../src/common/colors.ts"],"sourcesContent":["/*\n * The colors we support generating an Avatar background color from a \"seed\" for.\n * Changing this array will change the assignment between seeds.\n * Do not change this array.\n */\nconst avatarColors = [\n 'var(--color-bright-blue)',\n 'var(--color-bright-yellow)',\n 'var(--color-bright-pink)',\n 'var(--color-bright-orange)',\n] as const;\n\n/*\n * Takes in a \"seed\" string and spits out an index for the color we should use.\n * This implementation has been synced across all three clients so that we consistently\n * generate branded avatar colors when rendering a list of Avatars.\n * Do not change this implementation.\n */\nconst hashSeed = (seed: string): number => {\n const base = 31;\n const modulo = avatarColors.length;\n\n let hashValue = 0;\n let basePow = 1;\n\n for (let i = 0; i < seed.length; i += 1) {\n hashValue = (hashValue + seed.charCodeAt(i) * basePow) % modulo;\n basePow = (basePow * base) % modulo;\n }\n\n return hashValue;\n};\n\nexport const getBrandColorFromSeed = (seed: string): (typeof avatarColors)[number] => {\n return avatarColors[hashSeed(seed)];\n};\n"],"names":["avatarColors","hashSeed","seed","base","modulo","length","hashValue","basePow","i","charCodeAt","getBrandColorFromSeed"],"mappings":"AAAA;;;;AAIG;AACH,MAAMA,YAAY,GAAG,CACnB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,CACpB;AAEV;;;;;AAKG;AACH,MAAMC,QAAQ,GAAIC,IAAY,IAAY;EACxC,MAAMC,IAAI,GAAG,EAAE;AACf,EAAA,MAAMC,MAAM,GAAGJ,YAAY,CAACK,MAAM;EAElC,IAAIC,SAAS,GAAG,CAAC;EACjB,IAAIC,OAAO,GAAG,CAAC;AAEf,EAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGN,IAAI,CAACG,MAAM,EAAEG,CAAC,IAAI,CAAC,EAAE;AACvCF,IAAAA,SAAS,GAAG,CAACA,SAAS,GAAGJ,IAAI,CAACO,UAAU,CAACD,CAAC,CAAC,GAAGD,OAAO,IAAIH,MAAM;AAC/DG,IAAAA,OAAO,GAAIA,OAAO,GAAGJ,IAAI,GAAIC,MAAM;AACrC;AAEA,EAAA,OAAOE,SAAS;AAClB,CAAC;AAEYI,MAAAA,qBAAqB,GAAIR,IAAY,IAAmC;AACnF,EAAA,OAAOF,YAAY,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC;AACrC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDateView.js","sources":["../../../../src/common/dateUtils/getDateView/getDateView.ts"],"sourcesContent":["import { moveToWithinRange } from '../moveToWithinRange/moveToWithinRange';\n\nexport const returnDateView = (selectedDate: Date | null, min: Date | null, max: Date | null) => {\n return selectedDate || ((min || max) && moveToWithinRange(new Date(), min, max)) || new Date();\n};\n"],"names":["returnDateView","selectedDate","min","max","moveToWithinRange","Date"],"mappings":";;;;AAEO,MAAMA,cAAc,GAAGA,CAACC,YAAyB,EAAEC,GAAgB,EAAEC,GAAgB,KAAI;EAC9F,OAAOF,YAAY,IAAK,CAACC,GAAG,IAAIC,GAAG,KAAKC,mCAAiB,CAAC,IAAIC,IAAI,EAAE,EAAEH,GAAG,EAAEC,GAAG,CAAE,IAAI,IAAIE,IAAI,EAAE,CAAA;AAChG;;;;"}
1
+ {"version":3,"file":"getDateView.js","sources":["../../../../src/common/dateUtils/getDateView/getDateView.ts"],"sourcesContent":["import { moveToWithinRange } from '../moveToWithinRange/moveToWithinRange';\n\nexport const returnDateView = (selectedDate: Date | null, min: Date | null, max: Date | null) => {\n return selectedDate || ((min || max) && moveToWithinRange(new Date(), min, max)) || new Date();\n};\n"],"names":["returnDateView","selectedDate","min","max","moveToWithinRange","Date"],"mappings":";;;;AAEO,MAAMA,cAAc,GAAGA,CAACC,YAAyB,EAAEC,GAAgB,EAAEC,GAAgB,KAAI;EAC9F,OAAOF,YAAY,IAAK,CAACC,GAAG,IAAIC,GAAG,KAAKC,mCAAiB,CAAC,IAAIC,IAAI,EAAE,EAAEH,GAAG,EAAEC,GAAG,CAAE,IAAI,IAAIE,IAAI,EAAE;AAChG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDateView.mjs","sources":["../../../../src/common/dateUtils/getDateView/getDateView.ts"],"sourcesContent":["import { moveToWithinRange } from '../moveToWithinRange/moveToWithinRange';\n\nexport const returnDateView = (selectedDate: Date | null, min: Date | null, max: Date | null) => {\n return selectedDate || ((min || max) && moveToWithinRange(new Date(), min, max)) || new Date();\n};\n"],"names":["returnDateView","selectedDate","min","max","moveToWithinRange","Date"],"mappings":";;AAEO,MAAMA,cAAc,GAAGA,CAACC,YAAyB,EAAEC,GAAgB,EAAEC,GAAgB,KAAI;EAC9F,OAAOF,YAAY,IAAK,CAACC,GAAG,IAAIC,GAAG,KAAKC,iBAAiB,CAAC,IAAIC,IAAI,EAAE,EAAEH,GAAG,EAAEC,GAAG,CAAE,IAAI,IAAIE,IAAI,EAAE,CAAA;AAChG;;;;"}
1
+ {"version":3,"file":"getDateView.mjs","sources":["../../../../src/common/dateUtils/getDateView/getDateView.ts"],"sourcesContent":["import { moveToWithinRange } from '../moveToWithinRange/moveToWithinRange';\n\nexport const returnDateView = (selectedDate: Date | null, min: Date | null, max: Date | null) => {\n return selectedDate || ((min || max) && moveToWithinRange(new Date(), min, max)) || new Date();\n};\n"],"names":["returnDateView","selectedDate","min","max","moveToWithinRange","Date"],"mappings":";;AAEO,MAAMA,cAAc,GAAGA,CAACC,YAAyB,EAAEC,GAAgB,EAAEC,GAAgB,KAAI;EAC9F,OAAOF,YAAY,IAAK,CAACC,GAAG,IAAIC,GAAG,KAAKC,iBAAiB,CAAC,IAAIC,IAAI,EAAE,EAAEH,GAAG,EAAEC,GAAG,CAAE,IAAI,IAAIE,IAAI,EAAE;AAChG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDayNames.js","sources":["../../../../src/common/dateUtils/getDayNames/getDayNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport function getDayNames(\n locale: string,\n format: Intl.DateTimeFormatOptions['weekday'] = 'short',\n) {\n const days: string[] = [];\n const date = new Date(2018, 0, 1); // 2018 started with Monday\n while (days.length < 7) {\n days.push(formatDate(date, locale, { weekday: format }));\n date.setDate(date.getDate() + 1);\n }\n return days;\n}\n"],"names":["getDayNames","locale","format","days","date","Date","length","push","formatDate","weekday","setDate","getDate"],"mappings":";;;;SAEgBA,WAAWA,CACzBC,MAAc,EACdC,SAAgD,OAAO,EAAA;EAEvD,MAAMC,IAAI,GAAa,EAAE,CAAA;AACzB,EAAA,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClC,EAAA,OAAOF,IAAI,CAACG,MAAM,GAAG,CAAC,EAAE;IACtBH,IAAI,CAACI,IAAI,CAACC,qBAAU,CAACJ,IAAI,EAAEH,MAAM,EAAE;AAAEQ,MAAAA,OAAO,EAAEP,MAAAA;AAAQ,KAAA,CAAC,CAAC,CAAA;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;AAClC,GAAA;AACA,EAAA,OAAOR,IAAI,CAAA;AACb;;;;"}
1
+ {"version":3,"file":"getDayNames.js","sources":["../../../../src/common/dateUtils/getDayNames/getDayNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport function getDayNames(\n locale: string,\n format: Intl.DateTimeFormatOptions['weekday'] = 'short',\n) {\n const days: string[] = [];\n const date = new Date(2018, 0, 1); // 2018 started with Monday\n while (days.length < 7) {\n days.push(formatDate(date, locale, { weekday: format }));\n date.setDate(date.getDate() + 1);\n }\n return days;\n}\n"],"names":["getDayNames","locale","format","days","date","Date","length","push","formatDate","weekday","setDate","getDate"],"mappings":";;;;SAEgBA,WAAWA,CACzBC,MAAc,EACdC,SAAgD,OAAO,EAAA;EAEvD,MAAMC,IAAI,GAAa,EAAE;AACzB,EAAA,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClC,EAAA,OAAOF,IAAI,CAACG,MAAM,GAAG,CAAC,EAAE;IACtBH,IAAI,CAACI,IAAI,CAACC,qBAAU,CAACJ,IAAI,EAAEH,MAAM,EAAE;AAAEQ,MAAAA,OAAO,EAAEP;AAAQ,KAAA,CAAC,CAAC;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC;AAClC;AACA,EAAA,OAAOR,IAAI;AACb;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDayNames.mjs","sources":["../../../../src/common/dateUtils/getDayNames/getDayNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport function getDayNames(\n locale: string,\n format: Intl.DateTimeFormatOptions['weekday'] = 'short',\n) {\n const days: string[] = [];\n const date = new Date(2018, 0, 1); // 2018 started with Monday\n while (days.length < 7) {\n days.push(formatDate(date, locale, { weekday: format }));\n date.setDate(date.getDate() + 1);\n }\n return days;\n}\n"],"names":["getDayNames","locale","format","days","date","Date","length","push","formatDate","weekday","setDate","getDate"],"mappings":";;SAEgBA,WAAWA,CACzBC,MAAc,EACdC,SAAgD,OAAO,EAAA;EAEvD,MAAMC,IAAI,GAAa,EAAE,CAAA;AACzB,EAAA,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClC,EAAA,OAAOF,IAAI,CAACG,MAAM,GAAG,CAAC,EAAE;IACtBH,IAAI,CAACI,IAAI,CAACC,UAAU,CAACJ,IAAI,EAAEH,MAAM,EAAE;AAAEQ,MAAAA,OAAO,EAAEP,MAAAA;AAAQ,KAAA,CAAC,CAAC,CAAA;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;AAClC,GAAA;AACA,EAAA,OAAOR,IAAI,CAAA;AACb;;;;"}
1
+ {"version":3,"file":"getDayNames.mjs","sources":["../../../../src/common/dateUtils/getDayNames/getDayNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport function getDayNames(\n locale: string,\n format: Intl.DateTimeFormatOptions['weekday'] = 'short',\n) {\n const days: string[] = [];\n const date = new Date(2018, 0, 1); // 2018 started with Monday\n while (days.length < 7) {\n days.push(formatDate(date, locale, { weekday: format }));\n date.setDate(date.getDate() + 1);\n }\n return days;\n}\n"],"names":["getDayNames","locale","format","days","date","Date","length","push","formatDate","weekday","setDate","getDate"],"mappings":";;SAEgBA,WAAWA,CACzBC,MAAc,EACdC,SAAgD,OAAO,EAAA;EAEvD,MAAMC,IAAI,GAAa,EAAE;AACzB,EAAA,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClC,EAAA,OAAOF,IAAI,CAACG,MAAM,GAAG,CAAC,EAAE;IACtBH,IAAI,CAACI,IAAI,CAACC,UAAU,CAACJ,IAAI,EAAEH,MAAM,EAAE;AAAEQ,MAAAA,OAAO,EAAEP;AAAQ,KAAA,CAAC,CAAC;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC;AAClC;AACA,EAAA,OAAOR,IAAI;AACb;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getFormatForLocale.js","sources":["../../../../src/common/dateUtils/getFormatForLocale/getFormatForLocale.ts"],"sourcesContent":["export const MDY = new Set(['en-US']);\nexport const YMD = new Set(['hu', 'hu-HU', 'zh-HK', 'zh-CN', 'ja', 'ja-JP']);\n"],"names":["MDY","Set","YMD"],"mappings":";;AAAO,MAAMA,GAAG,GAAG,IAAIC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAC;MACxBC,GAAG,GAAG,IAAID,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;;;;;"}
1
+ {"version":3,"file":"getFormatForLocale.js","sources":["../../../../src/common/dateUtils/getFormatForLocale/getFormatForLocale.ts"],"sourcesContent":["export const MDY = new Set(['en-US']);\nexport const YMD = new Set(['hu', 'hu-HU', 'zh-HK', 'zh-CN', 'ja', 'ja-JP']);\n"],"names":["MDY","Set","YMD"],"mappings":";;AAAO,MAAMA,GAAG,GAAG,IAAIC,GAAG,CAAC,CAAC,OAAO,CAAC;MACvBC,GAAG,GAAG,IAAID,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getFormatForLocale.mjs","sources":["../../../../src/common/dateUtils/getFormatForLocale/getFormatForLocale.ts"],"sourcesContent":["export const MDY = new Set(['en-US']);\nexport const YMD = new Set(['hu', 'hu-HU', 'zh-HK', 'zh-CN', 'ja', 'ja-JP']);\n"],"names":["MDY","Set","YMD"],"mappings":"AAAO,MAAMA,GAAG,GAAG,IAAIC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAC;MACxBC,GAAG,GAAG,IAAID,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;;;;"}
1
+ {"version":3,"file":"getFormatForLocale.mjs","sources":["../../../../src/common/dateUtils/getFormatForLocale/getFormatForLocale.ts"],"sourcesContent":["export const MDY = new Set(['en-US']);\nexport const YMD = new Set(['hu', 'hu-HU', 'zh-HK', 'zh-CN', 'ja', 'ja-JP']);\n"],"names":["MDY","Set","YMD"],"mappings":"AAAO,MAAMA,GAAG,GAAG,IAAIC,GAAG,CAAC,CAAC,OAAO,CAAC;MACvBC,GAAG,GAAG,IAAID,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getMonthNames.js","sources":["../../../../src/common/dateUtils/getMonthNames/getMonthNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport const getMonthNames = (\n locale: string,\n format: Intl.DateTimeFormatOptions['month'] = 'long',\n): string[] => {\n const months: string[] = [];\n const date = new Date(2018, 0, 1);\n const monthFormat = { month: format };\n while (months.length < 12) {\n months.push(formatDate(date, locale, monthFormat));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n};\n"],"names":["getMonthNames","locale","format","months","date","Date","monthFormat","month","length","push","formatDate","setMonth","getMonth"],"mappings":";;;;AAEO,MAAMA,aAAa,GAAGA,CAC3BC,MAAc,EACdC,MAAA,GAA8C,MAAM,KACxC;EACZ,MAAMC,MAAM,GAAa,EAAE,CAAA;EAC3B,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACjC,EAAA,MAAMC,WAAW,GAAG;AAAEC,IAAAA,KAAK,EAAEL,MAAAA;GAAQ,CAAA;AACrC,EAAA,OAAOC,MAAM,CAACK,MAAM,GAAG,EAAE,EAAE;IACzBL,MAAM,CAACM,IAAI,CAACC,qBAAU,CAACN,IAAI,EAAEH,MAAM,EAAEK,WAAW,CAAC,CAAC,CAAA;IAClDF,IAAI,CAACO,QAAQ,CAACP,IAAI,CAACQ,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAA;AACpC,GAAA;AACA,EAAA,OAAOT,MAAM,CAAA;AACf;;;;"}
1
+ {"version":3,"file":"getMonthNames.js","sources":["../../../../src/common/dateUtils/getMonthNames/getMonthNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport const getMonthNames = (\n locale: string,\n format: Intl.DateTimeFormatOptions['month'] = 'long',\n): string[] => {\n const months: string[] = [];\n const date = new Date(2018, 0, 1);\n const monthFormat = { month: format };\n while (months.length < 12) {\n months.push(formatDate(date, locale, monthFormat));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n};\n"],"names":["getMonthNames","locale","format","months","date","Date","monthFormat","month","length","push","formatDate","setMonth","getMonth"],"mappings":";;;;AAEO,MAAMA,aAAa,GAAGA,CAC3BC,MAAc,EACdC,MAAA,GAA8C,MAAM,KACxC;EACZ,MAAMC,MAAM,GAAa,EAAE;EAC3B,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACjC,EAAA,MAAMC,WAAW,GAAG;AAAEC,IAAAA,KAAK,EAAEL;GAAQ;AACrC,EAAA,OAAOC,MAAM,CAACK,MAAM,GAAG,EAAE,EAAE;IACzBL,MAAM,CAACM,IAAI,CAACC,qBAAU,CAACN,IAAI,EAAEH,MAAM,EAAEK,WAAW,CAAC,CAAC;IAClDF,IAAI,CAACO,QAAQ,CAACP,IAAI,CAACQ,QAAQ,EAAE,GAAG,CAAC,CAAC;AACpC;AACA,EAAA,OAAOT,MAAM;AACf;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getMonthNames.mjs","sources":["../../../../src/common/dateUtils/getMonthNames/getMonthNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport const getMonthNames = (\n locale: string,\n format: Intl.DateTimeFormatOptions['month'] = 'long',\n): string[] => {\n const months: string[] = [];\n const date = new Date(2018, 0, 1);\n const monthFormat = { month: format };\n while (months.length < 12) {\n months.push(formatDate(date, locale, monthFormat));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n};\n"],"names":["getMonthNames","locale","format","months","date","Date","monthFormat","month","length","push","formatDate","setMonth","getMonth"],"mappings":";;AAEO,MAAMA,aAAa,GAAGA,CAC3BC,MAAc,EACdC,MAAA,GAA8C,MAAM,KACxC;EACZ,MAAMC,MAAM,GAAa,EAAE,CAAA;EAC3B,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACjC,EAAA,MAAMC,WAAW,GAAG;AAAEC,IAAAA,KAAK,EAAEL,MAAAA;GAAQ,CAAA;AACrC,EAAA,OAAOC,MAAM,CAACK,MAAM,GAAG,EAAE,EAAE;IACzBL,MAAM,CAACM,IAAI,CAACC,UAAU,CAACN,IAAI,EAAEH,MAAM,EAAEK,WAAW,CAAC,CAAC,CAAA;IAClDF,IAAI,CAACO,QAAQ,CAACP,IAAI,CAACQ,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAA;AACpC,GAAA;AACA,EAAA,OAAOT,MAAM,CAAA;AACf;;;;"}
1
+ {"version":3,"file":"getMonthNames.mjs","sources":["../../../../src/common/dateUtils/getMonthNames/getMonthNames.ts"],"sourcesContent":["import { formatDate } from '@transferwise/formatting';\n\nexport const getMonthNames = (\n locale: string,\n format: Intl.DateTimeFormatOptions['month'] = 'long',\n): string[] => {\n const months: string[] = [];\n const date = new Date(2018, 0, 1);\n const monthFormat = { month: format };\n while (months.length < 12) {\n months.push(formatDate(date, locale, monthFormat));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n};\n"],"names":["getMonthNames","locale","format","months","date","Date","monthFormat","month","length","push","formatDate","setMonth","getMonth"],"mappings":";;AAEO,MAAMA,aAAa,GAAGA,CAC3BC,MAAc,EACdC,MAAA,GAA8C,MAAM,KACxC;EACZ,MAAMC,MAAM,GAAa,EAAE;EAC3B,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACjC,EAAA,MAAMC,WAAW,GAAG;AAAEC,IAAAA,KAAK,EAAEL;GAAQ;AACrC,EAAA,OAAOC,MAAM,CAACK,MAAM,GAAG,EAAE,EAAE;IACzBL,MAAM,CAACM,IAAI,CAACC,UAAU,CAACN,IAAI,EAAEH,MAAM,EAAEK,WAAW,CAAC,CAAC;IAClDF,IAAI,CAACO,QAAQ,CAACP,IAAI,CAACQ,QAAQ,EAAE,GAAG,CAAC,CAAC;AACpC;AACA,EAAA,OAAOT,MAAM;AACf;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"isDateValid.js","sources":["../../../../src/common/dateUtils/isDateValid/isDateValid.ts"],"sourcesContent":["export const isDateValid = (date: Date | string | null) => {\n if (date === null) {\n return false;\n }\n\n if (date instanceof Date) {\n return validDateObject(date);\n }\n\n return validDateString(date);\n};\n\nexport const validDateString = (dateString: string) => validDateObject(new Date(dateString));\n\nconst validDateObject = (dateObject: Date) => !isNaN(dateObject.getTime());\n"],"names":["isDateValid","date","Date","validDateObject","validDateString","dateString","dateObject","isNaN","getTime"],"mappings":";;AAAaA,MAAAA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK,CAAA;AACd,GAAA;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC,CAAA;AAC9B,GAAA;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC,CAAA;AAC9B,EAAC;AAEYG,MAAAA,eAAe,GAAIC,UAAkB,IAAKF,eAAe,CAAC,IAAID,IAAI,CAACG,UAAU,CAAC,EAAC;AAE5F,MAAMF,eAAe,GAAIG,UAAgB,IAAK,CAACC,KAAK,CAACD,UAAU,CAACE,OAAO,EAAE,CAAC;;;;;"}
1
+ {"version":3,"file":"isDateValid.js","sources":["../../../../src/common/dateUtils/isDateValid/isDateValid.ts"],"sourcesContent":["export const isDateValid = (date: Date | string | null) => {\n if (date === null) {\n return false;\n }\n\n if (date instanceof Date) {\n return validDateObject(date);\n }\n\n return validDateString(date);\n};\n\nexport const validDateString = (dateString: string) => validDateObject(new Date(dateString));\n\nconst validDateObject = (dateObject: Date) => !isNaN(dateObject.getTime());\n"],"names":["isDateValid","date","Date","validDateObject","validDateString","dateString","dateObject","isNaN","getTime"],"mappings":";;AAAaA,MAAAA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK;AACd;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC;AAC9B;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC;AAC9B;AAEaG,MAAAA,eAAe,GAAIC,UAAkB,IAAKF,eAAe,CAAC,IAAID,IAAI,CAACG,UAAU,CAAC;AAE3F,MAAMF,eAAe,GAAIG,UAAgB,IAAK,CAACC,KAAK,CAACD,UAAU,CAACE,OAAO,EAAE,CAAC;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"isDateValid.mjs","sources":["../../../../src/common/dateUtils/isDateValid/isDateValid.ts"],"sourcesContent":["export const isDateValid = (date: Date | string | null) => {\n if (date === null) {\n return false;\n }\n\n if (date instanceof Date) {\n return validDateObject(date);\n }\n\n return validDateString(date);\n};\n\nexport const validDateString = (dateString: string) => validDateObject(new Date(dateString));\n\nconst validDateObject = (dateObject: Date) => !isNaN(dateObject.getTime());\n"],"names":["isDateValid","date","Date","validDateObject","validDateString","dateString","dateObject","isNaN","getTime"],"mappings":"AAAaA,MAAAA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK,CAAA;AACd,GAAA;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC,CAAA;AAC9B,GAAA;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC,CAAA;AAC9B,EAAC;AAEYG,MAAAA,eAAe,GAAIC,UAAkB,IAAKF,eAAe,CAAC,IAAID,IAAI,CAACG,UAAU,CAAC,EAAC;AAE5F,MAAMF,eAAe,GAAIG,UAAgB,IAAK,CAACC,KAAK,CAACD,UAAU,CAACE,OAAO,EAAE,CAAC;;;;"}
1
+ {"version":3,"file":"isDateValid.mjs","sources":["../../../../src/common/dateUtils/isDateValid/isDateValid.ts"],"sourcesContent":["export const isDateValid = (date: Date | string | null) => {\n if (date === null) {\n return false;\n }\n\n if (date instanceof Date) {\n return validDateObject(date);\n }\n\n return validDateString(date);\n};\n\nexport const validDateString = (dateString: string) => validDateObject(new Date(dateString));\n\nconst validDateObject = (dateObject: Date) => !isNaN(dateObject.getTime());\n"],"names":["isDateValid","date","Date","validDateObject","validDateString","dateString","dateObject","isNaN","getTime"],"mappings":"AAAaA,MAAAA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK;AACd;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC;AAC9B;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC;AAC9B;AAEaG,MAAAA,eAAe,GAAIC,UAAkB,IAAKF,eAAe,CAAC,IAAID,IAAI,CAACG,UAAU,CAAC;AAE3F,MAAMF,eAAe,GAAIG,UAAgB,IAAK,CAACC,KAAK,CAACD,UAAU,CAACE,OAAO,EAAE,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"isWithinRange.js","sources":["../../../../src/common/dateUtils/isWithinRange/isWithinRange.ts"],"sourcesContent":["export function isWithinRange(date: Date, min: Date | null, max: Date | null) {\n return (!min || date >= min) && (!max || date <= max);\n}\n"],"names":["isWithinRange","date","min","max"],"mappings":";;SAAgBA,aAAaA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC1E,EAAA,OAAO,CAAC,CAACD,GAAG,IAAID,IAAI,IAAIC,GAAG,MAAM,CAACC,GAAG,IAAIF,IAAI,IAAIE,GAAG,CAAC,CAAA;AACvD;;;;"}
1
+ {"version":3,"file":"isWithinRange.js","sources":["../../../../src/common/dateUtils/isWithinRange/isWithinRange.ts"],"sourcesContent":["export function isWithinRange(date: Date, min: Date | null, max: Date | null) {\n return (!min || date >= min) && (!max || date <= max);\n}\n"],"names":["isWithinRange","date","min","max"],"mappings":";;SAAgBA,aAAaA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC1E,EAAA,OAAO,CAAC,CAACD,GAAG,IAAID,IAAI,IAAIC,GAAG,MAAM,CAACC,GAAG,IAAIF,IAAI,IAAIE,GAAG,CAAC;AACvD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"isWithinRange.mjs","sources":["../../../../src/common/dateUtils/isWithinRange/isWithinRange.ts"],"sourcesContent":["export function isWithinRange(date: Date, min: Date | null, max: Date | null) {\n return (!min || date >= min) && (!max || date <= max);\n}\n"],"names":["isWithinRange","date","min","max"],"mappings":"SAAgBA,aAAaA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC1E,EAAA,OAAO,CAAC,CAACD,GAAG,IAAID,IAAI,IAAIC,GAAG,MAAM,CAACC,GAAG,IAAIF,IAAI,IAAIE,GAAG,CAAC,CAAA;AACvD;;;;"}
1
+ {"version":3,"file":"isWithinRange.mjs","sources":["../../../../src/common/dateUtils/isWithinRange/isWithinRange.ts"],"sourcesContent":["export function isWithinRange(date: Date, min: Date | null, max: Date | null) {\n return (!min || date >= min) && (!max || date <= max);\n}\n"],"names":["isWithinRange","date","min","max"],"mappings":"SAAgBA,aAAaA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC1E,EAAA,OAAO,CAAC,CAACD,GAAG,IAAID,IAAI,IAAIC,GAAG,MAAM,CAACC,GAAG,IAAIF,IAAI,IAAIE,GAAG,CAAC;AACvD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"moveToWithinRange.js","sources":["../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.ts"],"sourcesContent":["// Makes sure that date is between min and max dates, returns a cloned min or max\nexport function moveToWithinRange(date: Date, min: Date | null, max: Date | null) {\n if (min && date < min) {\n return new Date(min);\n }\n if (max && date > max) {\n return new Date(max);\n }\n return date;\n}\n"],"names":["moveToWithinRange","date","min","max","Date"],"mappings":";;AAAA;SACgBA,iBAAiBA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC9E,EAAA,IAAID,GAAG,IAAID,IAAI,GAAGC,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIE,IAAI,CAACF,GAAG,CAAC,CAAA;AACtB,GAAA;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC,CAAA;AACtB,GAAA;AACA,EAAA,OAAOF,IAAI,CAAA;AACb;;;;"}
1
+ {"version":3,"file":"moveToWithinRange.js","sources":["../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.ts"],"sourcesContent":["// Makes sure that date is between min and max dates, returns a cloned min or max\nexport function moveToWithinRange(date: Date, min: Date | null, max: Date | null) {\n if (min && date < min) {\n return new Date(min);\n }\n if (max && date > max) {\n return new Date(max);\n }\n return date;\n}\n"],"names":["moveToWithinRange","date","min","max","Date"],"mappings":";;AAAA;SACgBA,iBAAiBA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC9E,EAAA,IAAID,GAAG,IAAID,IAAI,GAAGC,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIE,IAAI,CAACF,GAAG,CAAC;AACtB;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC;AACtB;AACA,EAAA,OAAOF,IAAI;AACb;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"moveToWithinRange.mjs","sources":["../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.ts"],"sourcesContent":["// Makes sure that date is between min and max dates, returns a cloned min or max\nexport function moveToWithinRange(date: Date, min: Date | null, max: Date | null) {\n if (min && date < min) {\n return new Date(min);\n }\n if (max && date > max) {\n return new Date(max);\n }\n return date;\n}\n"],"names":["moveToWithinRange","date","min","max","Date"],"mappings":"AAAA;SACgBA,iBAAiBA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC9E,EAAA,IAAID,GAAG,IAAID,IAAI,GAAGC,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIE,IAAI,CAACF,GAAG,CAAC,CAAA;AACtB,GAAA;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC,CAAA;AACtB,GAAA;AACA,EAAA,OAAOF,IAAI,CAAA;AACb;;;;"}
1
+ {"version":3,"file":"moveToWithinRange.mjs","sources":["../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.ts"],"sourcesContent":["// Makes sure that date is between min and max dates, returns a cloned min or max\nexport function moveToWithinRange(date: Date, min: Date | null, max: Date | null) {\n if (min && date < min) {\n return new Date(min);\n }\n if (max && date > max) {\n return new Date(max);\n }\n return date;\n}\n"],"names":["moveToWithinRange","date","min","max","Date"],"mappings":"AAAA;SACgBA,iBAAiBA,CAACC,IAAU,EAAEC,GAAgB,EAAEC,GAAgB,EAAA;AAC9E,EAAA,IAAID,GAAG,IAAID,IAAI,GAAGC,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIE,IAAI,CAACF,GAAG,CAAC;AACtB;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC;AACtB;AACA,EAAA,OAAOF,IAAI;AACb;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"deviceDetection.js","sources":["../../../src/common/deviceDetection/deviceDetection.ts"],"sourcesContent":["export function isIosDevice() {\n const sampleTouchDevices = ['iphone', 'ipad', 'ipod'];\n const matchString = sampleTouchDevices.map((device: string) => `(${device})`).join('|');\n const regex = new RegExp(matchString, 'gi');\n\n return typeof navigator !== 'undefined' && !!regex.test(navigator.userAgent);\n}\n"],"names":["isIosDevice","sampleTouchDevices","matchString","map","device","join","regex","RegExp","navigator","test","userAgent"],"mappings":";;SAAgBA,WAAWA,GAAA;EACzB,MAAMC,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AACrD,EAAA,MAAMC,WAAW,GAAGD,kBAAkB,CAACE,GAAG,CAAEC,MAAc,IAAK,CAAIA,CAAAA,EAAAA,MAAM,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;EACvF,MAAMC,KAAK,GAAG,IAAIC,MAAM,CAACL,WAAW,EAAE,IAAI,CAAC,CAAA;AAE3C,EAAA,OAAO,OAAOM,SAAS,KAAK,WAAW,IAAI,CAAC,CAACF,KAAK,CAACG,IAAI,CAACD,SAAS,CAACE,SAAS,CAAC,CAAA;AAC9E;;;;"}
1
+ {"version":3,"file":"deviceDetection.js","sources":["../../../src/common/deviceDetection/deviceDetection.ts"],"sourcesContent":["export function isIosDevice() {\n const sampleTouchDevices = ['iphone', 'ipad', 'ipod'];\n const matchString = sampleTouchDevices.map((device: string) => `(${device})`).join('|');\n const regex = new RegExp(matchString, 'gi');\n\n return typeof navigator !== 'undefined' && !!regex.test(navigator.userAgent);\n}\n"],"names":["isIosDevice","sampleTouchDevices","matchString","map","device","join","regex","RegExp","navigator","test","userAgent"],"mappings":";;SAAgBA,WAAWA,GAAA;EACzB,MAAMC,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;AACrD,EAAA,MAAMC,WAAW,GAAGD,kBAAkB,CAACE,GAAG,CAAEC,MAAc,IAAK,CAAIA,CAAAA,EAAAA,MAAM,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;EACvF,MAAMC,KAAK,GAAG,IAAIC,MAAM,CAACL,WAAW,EAAE,IAAI,CAAC;AAE3C,EAAA,OAAO,OAAOM,SAAS,KAAK,WAAW,IAAI,CAAC,CAACF,KAAK,CAACG,IAAI,CAACD,SAAS,CAACE,SAAS,CAAC;AAC9E;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"deviceDetection.mjs","sources":["../../../src/common/deviceDetection/deviceDetection.ts"],"sourcesContent":["export function isIosDevice() {\n const sampleTouchDevices = ['iphone', 'ipad', 'ipod'];\n const matchString = sampleTouchDevices.map((device: string) => `(${device})`).join('|');\n const regex = new RegExp(matchString, 'gi');\n\n return typeof navigator !== 'undefined' && !!regex.test(navigator.userAgent);\n}\n"],"names":["isIosDevice","sampleTouchDevices","matchString","map","device","join","regex","RegExp","navigator","test","userAgent"],"mappings":"SAAgBA,WAAWA,GAAA;EACzB,MAAMC,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AACrD,EAAA,MAAMC,WAAW,GAAGD,kBAAkB,CAACE,GAAG,CAAEC,MAAc,IAAK,CAAIA,CAAAA,EAAAA,MAAM,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;EACvF,MAAMC,KAAK,GAAG,IAAIC,MAAM,CAACL,WAAW,EAAE,IAAI,CAAC,CAAA;AAE3C,EAAA,OAAO,OAAOM,SAAS,KAAK,WAAW,IAAI,CAAC,CAACF,KAAK,CAACG,IAAI,CAACD,SAAS,CAACE,SAAS,CAAC,CAAA;AAC9E;;;;"}
1
+ {"version":3,"file":"deviceDetection.mjs","sources":["../../../src/common/deviceDetection/deviceDetection.ts"],"sourcesContent":["export function isIosDevice() {\n const sampleTouchDevices = ['iphone', 'ipad', 'ipod'];\n const matchString = sampleTouchDevices.map((device: string) => `(${device})`).join('|');\n const regex = new RegExp(matchString, 'gi');\n\n return typeof navigator !== 'undefined' && !!regex.test(navigator.userAgent);\n}\n"],"names":["isIosDevice","sampleTouchDevices","matchString","map","device","join","regex","RegExp","navigator","test","userAgent"],"mappings":"SAAgBA,WAAWA,GAAA;EACzB,MAAMC,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;AACrD,EAAA,MAAMC,WAAW,GAAGD,kBAAkB,CAACE,GAAG,CAAEC,MAAc,IAAK,CAAIA,CAAAA,EAAAA,MAAM,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;EACvF,MAAMC,KAAK,GAAG,IAAIC,MAAM,CAACL,WAAW,EAAE,IAAI,CAAC;AAE3C,EAAA,OAAO,OAAOM,SAAS,KAAK,WAAW,IAAI,CAAC,CAACF,KAAK,CAACG,IAAI,CAACD,SAAS,CAACE,SAAS,CAAC;AAC9E;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"direction.js","sources":["../../src/common/direction.ts"],"sourcesContent":["export enum Direction {\n RTL = 'rtl',\n LTR = 'ltr',\n AUTO = 'auto',\n}\n\nexport type LayoutDirection = 'rtl' | 'ltr' | 'auto';\n"],"names":["Direction"],"mappings":";;AAAYA,2BAIX;AAJD,CAAA,UAAYA,SAAS,EAAA;AACnBA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACf,CAAC,EAJWA,iBAAS,KAATA,iBAAS,GAIpB,EAAA,CAAA,CAAA;;"}
1
+ {"version":3,"file":"direction.js","sources":["../../src/common/direction.ts"],"sourcesContent":["export enum Direction {\n RTL = 'rtl',\n LTR = 'ltr',\n AUTO = 'auto',\n}\n\nexport type LayoutDirection = 'rtl' | 'ltr' | 'auto';\n"],"names":["Direction"],"mappings":";;AAAYA;AAAZ,CAAA,UAAYA,SAAS,EAAA;AACnBA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACXA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACXA,EAAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAJWA,iBAAS,KAATA,iBAAS,GAIpB,EAAA,CAAA,CAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"direction.mjs","sources":["../../src/common/direction.ts"],"sourcesContent":["export enum Direction {\n RTL = 'rtl',\n LTR = 'ltr',\n AUTO = 'auto',\n}\n\nexport type LayoutDirection = 'rtl' | 'ltr' | 'auto';\n"],"names":["Direction"],"mappings":"IAAYA,UAIX;AAJD,CAAA,UAAYA,SAAS,EAAA;AACnBA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACf,CAAC,EAJWA,SAAS,KAATA,SAAS,GAIpB,EAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"direction.mjs","sources":["../../src/common/direction.ts"],"sourcesContent":["export enum Direction {\n RTL = 'rtl',\n LTR = 'ltr',\n AUTO = 'auto',\n}\n\nexport type LayoutDirection = 'rtl' | 'ltr' | 'auto';\n"],"names":["Direction"],"mappings":"IAAYA;AAAZ,CAAA,UAAYA,SAAS,EAAA;AACnBA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACXA,EAAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACXA,EAAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAJWA,SAAS,KAATA,SAAS,GAIpB,EAAA,CAAA,CAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"documentIosClick.js","sources":["../../../src/common/domHelpers/documentIosClick.ts"],"sourcesContent":["import { SyntheticEvent } from 'react';\n\nimport { isIosDevice } from '../deviceDetection';\n\n/*\n This is a hack to make ios devices register `click` on document.\n\tIos document doesn't have `click`. It has `touch` and because of that we can't addEventListener('click') to document.\n\tSo we add `ios-click` class to html root element and in css we add {cursor: pointer} so ios devices know that document is clickable element.\n*/\n\nexport function addClickClassToDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.add('ios-click');\n }\n}\n\nexport function removeClickClassFromDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.remove('ios-click');\n }\n}\n\nexport function isServerSide(): boolean {\n return typeof window === 'undefined';\n}\n\nexport function isBrowser(): boolean {\n return !isServerSide();\n}\n\nexport function stopPropagation(event: SyntheticEvent) {\n event.stopPropagation();\n event.preventDefault();\n if (event.nativeEvent && event.nativeEvent.stopImmediatePropagation) {\n event.nativeEvent.stopImmediatePropagation();\n }\n}\n"],"names":["addClickClassToDocumentOnIos","isIosDevice","document","documentElement","classList","add","removeClickClassFromDocumentOnIos","remove","isServerSide","window","isBrowser","stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation"],"mappings":";;;;AAIA;;;;AAIE;SAEcA,4BAA4BA,GAAA;EAC1C,IAAIC,2BAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAAC,WAAW,CAAC,CAAA;AACrD,GAAA;AACF,CAAA;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,2BAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC,CAAA;AACxD,GAAA;AACF,CAAA;SAEgBC,YAAYA,GAAA;EAC1B,OAAO,OAAOC,MAAM,KAAK,WAAW,CAAA;AACtC,CAAA;SAEgBC,SAASA,GAAA;EACvB,OAAO,CAACF,YAAY,EAAE,CAAA;AACxB,CAAA;AAEM,SAAUG,eAAeA,CAACC,KAAqB,EAAA;EACnDA,KAAK,CAACD,eAAe,EAAE,CAAA;EACvBC,KAAK,CAACC,cAAc,EAAE,CAAA;EACtB,IAAID,KAAK,CAACE,WAAW,IAAIF,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE;AACnEH,IAAAA,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE,CAAA;AAC9C,GAAA;AACF;;;;;;;;"}
1
+ {"version":3,"file":"documentIosClick.js","sources":["../../../src/common/domHelpers/documentIosClick.ts"],"sourcesContent":["import { SyntheticEvent } from 'react';\n\nimport { isIosDevice } from '../deviceDetection';\n\n/*\n This is a hack to make ios devices register `click` on document.\n\tIos document doesn't have `click`. It has `touch` and because of that we can't addEventListener('click') to document.\n\tSo we add `ios-click` class to html root element and in css we add {cursor: pointer} so ios devices know that document is clickable element.\n*/\n\nexport function addClickClassToDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.add('ios-click');\n }\n}\n\nexport function removeClickClassFromDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.remove('ios-click');\n }\n}\n\nexport function isServerSide(): boolean {\n return typeof window === 'undefined';\n}\n\nexport function isBrowser(): boolean {\n return !isServerSide();\n}\n\nexport function stopPropagation(event: SyntheticEvent) {\n event.stopPropagation();\n event.preventDefault();\n if (event.nativeEvent && event.nativeEvent.stopImmediatePropagation) {\n event.nativeEvent.stopImmediatePropagation();\n }\n}\n"],"names":["addClickClassToDocumentOnIos","isIosDevice","document","documentElement","classList","add","removeClickClassFromDocumentOnIos","remove","isServerSide","window","isBrowser","stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation"],"mappings":";;;;AAIA;;;;AAIE;SAEcA,4BAA4BA,GAAA;EAC1C,IAAIC,2BAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAAC,WAAW,CAAC;AACrD;AACF;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,2BAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC;AACxD;AACF;SAEgBC,YAAYA,GAAA;EAC1B,OAAO,OAAOC,MAAM,KAAK,WAAW;AACtC;SAEgBC,SAASA,GAAA;EACvB,OAAO,CAACF,YAAY,EAAE;AACxB;AAEM,SAAUG,eAAeA,CAACC,KAAqB,EAAA;EACnDA,KAAK,CAACD,eAAe,EAAE;EACvBC,KAAK,CAACC,cAAc,EAAE;EACtB,IAAID,KAAK,CAACE,WAAW,IAAIF,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE;AACnEH,IAAAA,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE;AAC9C;AACF;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"documentIosClick.mjs","sources":["../../../src/common/domHelpers/documentIosClick.ts"],"sourcesContent":["import { SyntheticEvent } from 'react';\n\nimport { isIosDevice } from '../deviceDetection';\n\n/*\n This is a hack to make ios devices register `click` on document.\n\tIos document doesn't have `click`. It has `touch` and because of that we can't addEventListener('click') to document.\n\tSo we add `ios-click` class to html root element and in css we add {cursor: pointer} so ios devices know that document is clickable element.\n*/\n\nexport function addClickClassToDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.add('ios-click');\n }\n}\n\nexport function removeClickClassFromDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.remove('ios-click');\n }\n}\n\nexport function isServerSide(): boolean {\n return typeof window === 'undefined';\n}\n\nexport function isBrowser(): boolean {\n return !isServerSide();\n}\n\nexport function stopPropagation(event: SyntheticEvent) {\n event.stopPropagation();\n event.preventDefault();\n if (event.nativeEvent && event.nativeEvent.stopImmediatePropagation) {\n event.nativeEvent.stopImmediatePropagation();\n }\n}\n"],"names":["addClickClassToDocumentOnIos","isIosDevice","document","documentElement","classList","add","removeClickClassFromDocumentOnIos","remove","isServerSide","window","isBrowser","stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation"],"mappings":";;AAIA;;;;AAIE;SAEcA,4BAA4BA,GAAA;EAC1C,IAAIC,WAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAAC,WAAW,CAAC,CAAA;AACrD,GAAA;AACF,CAAA;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,WAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC,CAAA;AACxD,GAAA;AACF,CAAA;SAEgBC,YAAYA,GAAA;EAC1B,OAAO,OAAOC,MAAM,KAAK,WAAW,CAAA;AACtC,CAAA;SAEgBC,SAASA,GAAA;EACvB,OAAO,CAACF,YAAY,EAAE,CAAA;AACxB,CAAA;AAEM,SAAUG,eAAeA,CAACC,KAAqB,EAAA;EACnDA,KAAK,CAACD,eAAe,EAAE,CAAA;EACvBC,KAAK,CAACC,cAAc,EAAE,CAAA;EACtB,IAAID,KAAK,CAACE,WAAW,IAAIF,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE;AACnEH,IAAAA,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE,CAAA;AAC9C,GAAA;AACF;;;;"}
1
+ {"version":3,"file":"documentIosClick.mjs","sources":["../../../src/common/domHelpers/documentIosClick.ts"],"sourcesContent":["import { SyntheticEvent } from 'react';\n\nimport { isIosDevice } from '../deviceDetection';\n\n/*\n This is a hack to make ios devices register `click` on document.\n\tIos document doesn't have `click`. It has `touch` and because of that we can't addEventListener('click') to document.\n\tSo we add `ios-click` class to html root element and in css we add {cursor: pointer} so ios devices know that document is clickable element.\n*/\n\nexport function addClickClassToDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.add('ios-click');\n }\n}\n\nexport function removeClickClassFromDocumentOnIos() {\n if (isIosDevice()) {\n document.documentElement.classList.remove('ios-click');\n }\n}\n\nexport function isServerSide(): boolean {\n return typeof window === 'undefined';\n}\n\nexport function isBrowser(): boolean {\n return !isServerSide();\n}\n\nexport function stopPropagation(event: SyntheticEvent) {\n event.stopPropagation();\n event.preventDefault();\n if (event.nativeEvent && event.nativeEvent.stopImmediatePropagation) {\n event.nativeEvent.stopImmediatePropagation();\n }\n}\n"],"names":["addClickClassToDocumentOnIos","isIosDevice","document","documentElement","classList","add","removeClickClassFromDocumentOnIos","remove","isServerSide","window","isBrowser","stopPropagation","event","preventDefault","nativeEvent","stopImmediatePropagation"],"mappings":";;AAIA;;;;AAIE;SAEcA,4BAA4BA,GAAA;EAC1C,IAAIC,WAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAAC,WAAW,CAAC;AACrD;AACF;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,WAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC;AACxD;AACF;SAEgBC,YAAYA,GAAA;EAC1B,OAAO,OAAOC,MAAM,KAAK,WAAW;AACtC;SAEgBC,SAASA,GAAA;EACvB,OAAO,CAACF,YAAY,EAAE;AACxB;AAEM,SAAUG,eAAeA,CAACC,KAAqB,EAAA;EACnDA,KAAK,CAACD,eAAe,EAAE;EACvBC,KAAK,CAACC,cAAc,EAAE;EACtB,IAAID,KAAK,CAACE,WAAW,IAAIF,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE;AACnEH,IAAAA,KAAK,CAACE,WAAW,CAACC,wBAAwB,EAAE;AAC9C;AACF;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"fileType.js","sources":["../../src/common/fileType.ts"],"sourcesContent":["export enum FileType {\n PDF = '.pdf,application/pdf',\n JPG = '.jpg,.jpeg,image/jpeg',\n PNG = '.png,image/png',\n CSV = '.csv,text/csv',\n}\n"],"names":["FileType"],"mappings":";;AAAYA,0BAKX;AALD,CAAA,UAAYA,QAAQ,EAAA;AAClBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,sBAA4B,CAAA;AAC5BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,uBAA6B,CAAA;AAC7BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,gBAAsB,CAAA;AACtBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,eAAqB,CAAA;AACvB,CAAC,EALWA,gBAAQ,KAARA,gBAAQ,GAKnB,EAAA,CAAA,CAAA;;"}
1
+ {"version":3,"file":"fileType.js","sources":["../../src/common/fileType.ts"],"sourcesContent":["export enum FileType {\n PDF = '.pdf,application/pdf',\n JPG = '.jpg,.jpeg,image/jpeg',\n PNG = '.png,image/png',\n CSV = '.csv,text/csv',\n}\n"],"names":["FileType"],"mappings":";;AAAYA;AAAZ,CAAA,UAAYA,QAAQ,EAAA;AAClBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,sBAA4B;AAC5BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,uBAA6B;AAC7BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,gBAAsB;AACtBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,eAAqB;AACvB,CAAC,EALWA,gBAAQ,KAARA,gBAAQ,GAKnB,EAAA,CAAA,CAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"fileType.mjs","sources":["../../src/common/fileType.ts"],"sourcesContent":["export enum FileType {\n PDF = '.pdf,application/pdf',\n JPG = '.jpg,.jpeg,image/jpeg',\n PNG = '.png,image/png',\n CSV = '.csv,text/csv',\n}\n"],"names":["FileType"],"mappings":"IAAYA,SAKX;AALD,CAAA,UAAYA,QAAQ,EAAA;AAClBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,sBAA4B,CAAA;AAC5BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,uBAA6B,CAAA;AAC7BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,gBAAsB,CAAA;AACtBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,eAAqB,CAAA;AACvB,CAAC,EALWA,QAAQ,KAARA,QAAQ,GAKnB,EAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"fileType.mjs","sources":["../../src/common/fileType.ts"],"sourcesContent":["export enum FileType {\n PDF = '.pdf,application/pdf',\n JPG = '.jpg,.jpeg,image/jpeg',\n PNG = '.png,image/png',\n CSV = '.csv,text/csv',\n}\n"],"names":["FileType"],"mappings":"IAAYA;AAAZ,CAAA,UAAYA,QAAQ,EAAA;AAClBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,sBAA4B;AAC5BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,uBAA6B;AAC7BA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,gBAAsB;AACtBA,EAAAA,QAAA,CAAA,KAAA,CAAA,GAAA,eAAqB;AACvB,CAAC,EALWA,QAAQ,KAARA,QAAQ,GAKnB,EAAA,CAAA,CAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FlowHeader.js","sources":["../../../src/common/flowHeader/FlowHeader.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { Layout } from '../propsValues/layouts';\n\nexport interface FlowHeaderProps {\n bottomContent?: React.ReactNode;\n className?: string;\n layout?: Layout.VERTICAL | Layout.HORIZONTAL;\n leftContent?: React.ReactNode;\n rightContent?: React.ReactNode;\n}\n\nconst FlowHeader = React.forwardRef(\n (\n {\n bottomContent,\n className,\n layout = Layout.HORIZONTAL,\n leftContent,\n rightContent,\n }: FlowHeaderProps,\n reference: React.ForwardedRef<HTMLDivElement | null>,\n ) => {\n const isVertical = layout === Layout.VERTICAL;\n\n return (\n <div\n ref={reference}\n className={clsx(\n 'np-flow-header',\n 'd-flex',\n 'flex-wrap',\n 'align-items-center',\n 'justify-content-between',\n 'flex__item--12',\n className,\n )}\n >\n {leftContent}\n {rightContent}\n <div\n className={clsx('align-items-center', 'd-flex', 'justify-content-center', {\n 'flex__item--12': isVertical,\n 'order-1 flex-grow-1': !isVertical,\n })}\n >\n {bottomContent}\n </div>\n </div>\n );\n },\n);\n\nexport default FlowHeader;\n"],"names":["FlowHeader","React","forwardRef","bottomContent","className","layout","Layout","HORIZONTAL","leftContent","rightContent","reference","isVertical","VERTICAL","_jsxs","ref","clsx","children","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAMA,UAAU,gBAAGC,gBAAK,CAACC,UAAU,CACjC,CACE;EACEC,aAAa;EACbC,SAAS;EACTC,MAAM,GAAGC,cAAM,CAACC,UAAU;EAC1BC,WAAW;AACXC,EAAAA,YAAAA;AACgB,CAAA,EAClBC,SAAoD,KAClD;AACF,EAAA,MAAMC,UAAU,GAAGN,MAAM,KAAKC,cAAM,CAACM,QAAQ,CAAA;AAE7C,EAAA,oBACEC,eAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,SAAS,EAAEW,SAAI,CACb,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,oBAAoB,EACpB,yBAAyB,EACzB,gBAAgB,EAChBX,SAAS,CACT;AAAAY,IAAAA,QAAA,EAEDR,CAAAA,WAAW,EACXC,YAAY,eACbQ,cAAA,CAAA,KAAA,EAAA;MACEb,SAAS,EAAEW,SAAI,CAAC,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB,EAAE;AACxE,QAAA,gBAAgB,EAAEJ,UAAU;AAC5B,QAAA,qBAAqB,EAAE,CAACA,UAAAA;AACzB,OAAA,CAAE;AAAAK,MAAAA,QAAA,EAEFb,aAAAA;AAAa,KACX,CACP,CAAA;AAAA,GAAK,CAAC,CAAA;AAEV,CAAC;;;;"}
1
+ {"version":3,"file":"FlowHeader.js","sources":["../../../src/common/flowHeader/FlowHeader.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { Layout } from '../propsValues/layouts';\n\nexport interface FlowHeaderProps {\n bottomContent?: React.ReactNode;\n className?: string;\n layout?: Layout.VERTICAL | Layout.HORIZONTAL;\n leftContent?: React.ReactNode;\n rightContent?: React.ReactNode;\n}\n\nconst FlowHeader = React.forwardRef(\n (\n {\n bottomContent,\n className,\n layout = Layout.HORIZONTAL,\n leftContent,\n rightContent,\n }: FlowHeaderProps,\n reference: React.ForwardedRef<HTMLDivElement | null>,\n ) => {\n const isVertical = layout === Layout.VERTICAL;\n\n return (\n <div\n ref={reference}\n className={clsx(\n 'np-flow-header',\n 'd-flex',\n 'flex-wrap',\n 'align-items-center',\n 'justify-content-between',\n 'flex__item--12',\n className,\n )}\n >\n {leftContent}\n {rightContent}\n <div\n className={clsx('align-items-center', 'd-flex', 'justify-content-center', {\n 'flex__item--12': isVertical,\n 'order-1 flex-grow-1': !isVertical,\n })}\n >\n {bottomContent}\n </div>\n </div>\n );\n },\n);\n\nexport default FlowHeader;\n"],"names":["FlowHeader","React","forwardRef","bottomContent","className","layout","Layout","HORIZONTAL","leftContent","rightContent","reference","isVertical","VERTICAL","_jsxs","ref","clsx","children","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAMA,UAAU,gBAAGC,gBAAK,CAACC,UAAU,CACjC,CACE;EACEC,aAAa;EACbC,SAAS;EACTC,MAAM,GAAGC,cAAM,CAACC,UAAU;EAC1BC,WAAW;AACXC,EAAAA;AACgB,CAAA,EAClBC,SAAoD,KAClD;AACF,EAAA,MAAMC,UAAU,GAAGN,MAAM,KAAKC,cAAM,CAACM,QAAQ;AAE7C,EAAA,oBACEC,eAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,SAAS,EAAEW,SAAI,CACb,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,oBAAoB,EACpB,yBAAyB,EACzB,gBAAgB,EAChBX,SAAS,CACT;AAAAY,IAAAA,QAAA,EAEDR,CAAAA,WAAW,EACXC,YAAY,eACbQ,cAAA,CAAA,KAAA,EAAA;MACEb,SAAS,EAAEW,SAAI,CAAC,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB,EAAE;AACxE,QAAA,gBAAgB,EAAEJ,UAAU;AAC5B,QAAA,qBAAqB,EAAE,CAACA;AACzB,OAAA,CAAE;AAAAK,MAAAA,QAAA,EAEFb;AAAa,KACX,CACP;AAAA,GAAK,CAAC;AAEV,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FlowHeader.mjs","sources":["../../../src/common/flowHeader/FlowHeader.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { Layout } from '../propsValues/layouts';\n\nexport interface FlowHeaderProps {\n bottomContent?: React.ReactNode;\n className?: string;\n layout?: Layout.VERTICAL | Layout.HORIZONTAL;\n leftContent?: React.ReactNode;\n rightContent?: React.ReactNode;\n}\n\nconst FlowHeader = React.forwardRef(\n (\n {\n bottomContent,\n className,\n layout = Layout.HORIZONTAL,\n leftContent,\n rightContent,\n }: FlowHeaderProps,\n reference: React.ForwardedRef<HTMLDivElement | null>,\n ) => {\n const isVertical = layout === Layout.VERTICAL;\n\n return (\n <div\n ref={reference}\n className={clsx(\n 'np-flow-header',\n 'd-flex',\n 'flex-wrap',\n 'align-items-center',\n 'justify-content-between',\n 'flex__item--12',\n className,\n )}\n >\n {leftContent}\n {rightContent}\n <div\n className={clsx('align-items-center', 'd-flex', 'justify-content-center', {\n 'flex__item--12': isVertical,\n 'order-1 flex-grow-1': !isVertical,\n })}\n >\n {bottomContent}\n </div>\n </div>\n );\n },\n);\n\nexport default FlowHeader;\n"],"names":["FlowHeader","React","forwardRef","bottomContent","className","layout","Layout","HORIZONTAL","leftContent","rightContent","reference","isVertical","VERTICAL","_jsxs","ref","clsx","children","_jsx"],"mappings":";;;;;AAaA,MAAMA,UAAU,gBAAGC,KAAK,CAACC,UAAU,CACjC,CACE;EACEC,aAAa;EACbC,SAAS;EACTC,MAAM,GAAGC,MAAM,CAACC,UAAU;EAC1BC,WAAW;AACXC,EAAAA,YAAAA;AACgB,CAAA,EAClBC,SAAoD,KAClD;AACF,EAAA,MAAMC,UAAU,GAAGN,MAAM,KAAKC,MAAM,CAACM,QAAQ,CAAA;AAE7C,EAAA,oBACEC,IAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,SAAS,EAAEW,IAAI,CACb,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,oBAAoB,EACpB,yBAAyB,EACzB,gBAAgB,EAChBX,SAAS,CACT;AAAAY,IAAAA,QAAA,EAEDR,CAAAA,WAAW,EACXC,YAAY,eACbQ,GAAA,CAAA,KAAA,EAAA;MACEb,SAAS,EAAEW,IAAI,CAAC,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB,EAAE;AACxE,QAAA,gBAAgB,EAAEJ,UAAU;AAC5B,QAAA,qBAAqB,EAAE,CAACA,UAAAA;AACzB,OAAA,CAAE;AAAAK,MAAAA,QAAA,EAEFb,aAAAA;AAAa,KACX,CACP,CAAA;AAAA,GAAK,CAAC,CAAA;AAEV,CAAC;;;;"}
1
+ {"version":3,"file":"FlowHeader.mjs","sources":["../../../src/common/flowHeader/FlowHeader.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { Layout } from '../propsValues/layouts';\n\nexport interface FlowHeaderProps {\n bottomContent?: React.ReactNode;\n className?: string;\n layout?: Layout.VERTICAL | Layout.HORIZONTAL;\n leftContent?: React.ReactNode;\n rightContent?: React.ReactNode;\n}\n\nconst FlowHeader = React.forwardRef(\n (\n {\n bottomContent,\n className,\n layout = Layout.HORIZONTAL,\n leftContent,\n rightContent,\n }: FlowHeaderProps,\n reference: React.ForwardedRef<HTMLDivElement | null>,\n ) => {\n const isVertical = layout === Layout.VERTICAL;\n\n return (\n <div\n ref={reference}\n className={clsx(\n 'np-flow-header',\n 'd-flex',\n 'flex-wrap',\n 'align-items-center',\n 'justify-content-between',\n 'flex__item--12',\n className,\n )}\n >\n {leftContent}\n {rightContent}\n <div\n className={clsx('align-items-center', 'd-flex', 'justify-content-center', {\n 'flex__item--12': isVertical,\n 'order-1 flex-grow-1': !isVertical,\n })}\n >\n {bottomContent}\n </div>\n </div>\n );\n },\n);\n\nexport default FlowHeader;\n"],"names":["FlowHeader","React","forwardRef","bottomContent","className","layout","Layout","HORIZONTAL","leftContent","rightContent","reference","isVertical","VERTICAL","_jsxs","ref","clsx","children","_jsx"],"mappings":";;;;;AAaA,MAAMA,UAAU,gBAAGC,KAAK,CAACC,UAAU,CACjC,CACE;EACEC,aAAa;EACbC,SAAS;EACTC,MAAM,GAAGC,MAAM,CAACC,UAAU;EAC1BC,WAAW;AACXC,EAAAA;AACgB,CAAA,EAClBC,SAAoD,KAClD;AACF,EAAA,MAAMC,UAAU,GAAGN,MAAM,KAAKC,MAAM,CAACM,QAAQ;AAE7C,EAAA,oBACEC,IAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,SAAS,EAAEW,IAAI,CACb,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,oBAAoB,EACpB,yBAAyB,EACzB,gBAAgB,EAChBX,SAAS,CACT;AAAAY,IAAAA,QAAA,EAEDR,CAAAA,WAAW,EACXC,YAAY,eACbQ,GAAA,CAAA,KAAA,EAAA;MACEb,SAAS,EAAEW,IAAI,CAAC,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB,EAAE;AACxE,QAAA,gBAAgB,EAAEJ,UAAU;AAC5B,QAAA,qBAAqB,EAAE,CAACA;AACzB,OAAA,CAAE;AAAAK,MAAAA,QAAA,EAEFb;AAAa,KACX,CACP;AAAA,GAAK,CAAC;AAEV,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FocusBoundary.js","sources":["../../../src/common/focusBoundary/FocusBoundary.tsx"],"sourcesContent":["import { FocusScope } from '@react-aria/focus';\nimport { useEffect, useRef } from 'react';\n\ntype FocusBoundaryProps = {\n children: React.ReactNode;\n};\n\nconst FocusBoundary = ({ children }: FocusBoundaryProps) => {\n const wrapperReference = useRef<HTMLDivElement>(null);\n useEffect(() => {\n wrapperReference.current?.focus({ preventScroll: true });\n }, []);\n\n return (\n <FocusScope contain restoreFocus>\n <div ref={wrapperReference} tabIndex={-1}>\n {children}\n </div>\n </FocusScope>\n );\n};\n\nexport default FocusBoundary;\n"],"names":["FocusBoundary","children","wrapperReference","useRef","useEffect","current","focus","preventScroll","_jsx","FocusScope","contain","restoreFocus","ref","tabIndex"],"mappings":";;;;;;;;AAOMA,MAAAA,aAAa,GAAGA,CAAC;AAAEC,EAAAA,QAAAA;AAAQ,CAAsB,KAAI;AACzD,EAAA,MAAMC,gBAAgB,GAAGC,YAAM,CAAiB,IAAI,CAAC,CAAA;AACrDC,EAAAA,eAAS,CAAC,MAAK;AACbF,IAAAA,gBAAgB,CAACG,OAAO,EAAEC,KAAK,CAAC;AAAEC,MAAAA,aAAa,EAAE,IAAA;AAAM,KAAA,CAAC,CAAA;GACzD,EAAE,EAAE,CAAC,CAAA;EAEN,oBACEC,cAAA,CAACC,gBAAU,EAAA;IAACC,OAAO,EAAA,IAAA;IAACC,YAAY,EAAA,IAAA;AAAAV,IAAAA,QAAA,eAC9BO,cAAA,CAAA,KAAA,EAAA;AAAKI,MAAAA,GAAG,EAAEV,gBAAiB;MAACW,QAAQ,EAAE,CAAC,CAAE;AAAAZ,MAAAA,QAAA,EACtCA,QAAAA;KACE,CAAA;AACP,GAAY,CAAC,CAAA;AAEjB;;;;"}
1
+ {"version":3,"file":"FocusBoundary.js","sources":["../../../src/common/focusBoundary/FocusBoundary.tsx"],"sourcesContent":["import { FocusScope } from '@react-aria/focus';\nimport { useEffect, useRef } from 'react';\n\ntype FocusBoundaryProps = {\n children: React.ReactNode;\n};\n\nconst FocusBoundary = ({ children }: FocusBoundaryProps) => {\n const wrapperReference = useRef<HTMLDivElement>(null);\n useEffect(() => {\n wrapperReference.current?.focus({ preventScroll: true });\n }, []);\n\n return (\n <FocusScope contain restoreFocus>\n <div ref={wrapperReference} tabIndex={-1}>\n {children}\n </div>\n </FocusScope>\n );\n};\n\nexport default FocusBoundary;\n"],"names":["FocusBoundary","children","wrapperReference","useRef","useEffect","current","focus","preventScroll","_jsx","FocusScope","contain","restoreFocus","ref","tabIndex"],"mappings":";;;;;;;;AAOMA,MAAAA,aAAa,GAAGA,CAAC;AAAEC,EAAAA;AAAQ,CAAsB,KAAI;AACzD,EAAA,MAAMC,gBAAgB,GAAGC,YAAM,CAAiB,IAAI,CAAC;AACrDC,EAAAA,eAAS,CAAC,MAAK;AACbF,IAAAA,gBAAgB,CAACG,OAAO,EAAEC,KAAK,CAAC;AAAEC,MAAAA,aAAa,EAAE;AAAM,KAAA,CAAC;GACzD,EAAE,EAAE,CAAC;EAEN,oBACEC,cAAA,CAACC,gBAAU,EAAA;IAACC,OAAO,EAAA,IAAA;IAACC,YAAY,EAAA,IAAA;AAAAV,IAAAA,QAAA,eAC9BO,cAAA,CAAA,KAAA,EAAA;AAAKI,MAAAA,GAAG,EAAEV,gBAAiB;MAACW,QAAQ,EAAE,EAAG;AAAAZ,MAAAA,QAAA,EACtCA;KACE;AACP,GAAY,CAAC;AAEjB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FocusBoundary.mjs","sources":["../../../src/common/focusBoundary/FocusBoundary.tsx"],"sourcesContent":["import { FocusScope } from '@react-aria/focus';\nimport { useEffect, useRef } from 'react';\n\ntype FocusBoundaryProps = {\n children: React.ReactNode;\n};\n\nconst FocusBoundary = ({ children }: FocusBoundaryProps) => {\n const wrapperReference = useRef<HTMLDivElement>(null);\n useEffect(() => {\n wrapperReference.current?.focus({ preventScroll: true });\n }, []);\n\n return (\n <FocusScope contain restoreFocus>\n <div ref={wrapperReference} tabIndex={-1}>\n {children}\n </div>\n </FocusScope>\n );\n};\n\nexport default FocusBoundary;\n"],"names":["FocusBoundary","children","wrapperReference","useRef","useEffect","current","focus","preventScroll","_jsx","FocusScope","contain","restoreFocus","ref","tabIndex"],"mappings":";;;;AAOMA,MAAAA,aAAa,GAAGA,CAAC;AAAEC,EAAAA,QAAAA;AAAQ,CAAsB,KAAI;AACzD,EAAA,MAAMC,gBAAgB,GAAGC,MAAM,CAAiB,IAAI,CAAC,CAAA;AACrDC,EAAAA,SAAS,CAAC,MAAK;AACbF,IAAAA,gBAAgB,CAACG,OAAO,EAAEC,KAAK,CAAC;AAAEC,MAAAA,aAAa,EAAE,IAAA;AAAM,KAAA,CAAC,CAAA;GACzD,EAAE,EAAE,CAAC,CAAA;EAEN,oBACEC,GAAA,CAACC,UAAU,EAAA;IAACC,OAAO,EAAA,IAAA;IAACC,YAAY,EAAA,IAAA;AAAAV,IAAAA,QAAA,eAC9BO,GAAA,CAAA,KAAA,EAAA;AAAKI,MAAAA,GAAG,EAAEV,gBAAiB;MAACW,QAAQ,EAAE,CAAC,CAAE;AAAAZ,MAAAA,QAAA,EACtCA,QAAAA;KACE,CAAA;AACP,GAAY,CAAC,CAAA;AAEjB;;;;"}
1
+ {"version":3,"file":"FocusBoundary.mjs","sources":["../../../src/common/focusBoundary/FocusBoundary.tsx"],"sourcesContent":["import { FocusScope } from '@react-aria/focus';\nimport { useEffect, useRef } from 'react';\n\ntype FocusBoundaryProps = {\n children: React.ReactNode;\n};\n\nconst FocusBoundary = ({ children }: FocusBoundaryProps) => {\n const wrapperReference = useRef<HTMLDivElement>(null);\n useEffect(() => {\n wrapperReference.current?.focus({ preventScroll: true });\n }, []);\n\n return (\n <FocusScope contain restoreFocus>\n <div ref={wrapperReference} tabIndex={-1}>\n {children}\n </div>\n </FocusScope>\n );\n};\n\nexport default FocusBoundary;\n"],"names":["FocusBoundary","children","wrapperReference","useRef","useEffect","current","focus","preventScroll","_jsx","FocusScope","contain","restoreFocus","ref","tabIndex"],"mappings":";;;;AAOMA,MAAAA,aAAa,GAAGA,CAAC;AAAEC,EAAAA;AAAQ,CAAsB,KAAI;AACzD,EAAA,MAAMC,gBAAgB,GAAGC,MAAM,CAAiB,IAAI,CAAC;AACrDC,EAAAA,SAAS,CAAC,MAAK;AACbF,IAAAA,gBAAgB,CAACG,OAAO,EAAEC,KAAK,CAAC;AAAEC,MAAAA,aAAa,EAAE;AAAM,KAAA,CAAC;GACzD,EAAE,EAAE,CAAC;EAEN,oBACEC,GAAA,CAACC,UAAU,EAAA;IAACC,OAAO,EAAA,IAAA;IAACC,YAAY,EAAA,IAAA;AAAAV,IAAAA,QAAA,eAC9BO,GAAA,CAAA,KAAA,EAAA;AAAKI,MAAAA,GAAG,EAAEV,gBAAiB;MAACW,QAAQ,EAAE,EAAG;AAAAZ,MAAAA,QAAA,EACtCA;KACE;AACP,GAAY,CAAC;AAEjB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"historyNavigator.js","sources":["../../../src/common/historyNavigator/historyNavigator.ts"],"sourcesContent":["class HistoryNavigator {\n history: (string | number)[];\n currIndex: number;\n historyLimit: number | undefined;\n\n constructor(history?: (string | number)[], historyLimit?: number) {\n this.history = history && history.length > 0 ? history : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n }\n\n reset = (newHistory?: (string | number)[], historyLimit = 20) => {\n this.history = newHistory && newHistory.length > 0 ? newHistory : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n };\n\n add = (element: string | number) => {\n if (!this.historyLimit || this.history.length <= this.historyLimit) {\n this.history.push(element);\n // Always keep the current Index to the latest change\n this.currIndex = this.history.length - 1;\n } else {\n // @TODO not needed now but maybe it can be useful to implement a limit.\n this.currIndex = this.history.length - 1;\n }\n };\n\n redo = () => {\n const historyLength = this.history.length;\n this.currIndex = this.currIndex + 1 < historyLength ? this.currIndex + 1 : historyLength - 1;\n return this.history[this.currIndex];\n };\n\n undo = () => {\n this.currIndex = this.currIndex - 1 > 0 ? this.currIndex - 1 : 0;\n return this.history[this.currIndex];\n };\n}\n\nexport default HistoryNavigator;\n"],"names":["HistoryNavigator","history","currIndex","historyLimit","constructor","length","reset","newHistory","add","element","push","redo","historyLength","undo"],"mappings":";;;;AAAA,MAAMA,gBAAgB,CAAA;EACpBC,OAAO,CAAA;EACPC,SAAS,CAAA;EACTC,YAAY,CAAA;AAEZC,EAAAA,WAAYA,CAAAH,OAA6B,EAAEE,YAAqB,EAAA;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGA,OAAO,IAAIA,OAAO,CAACI,MAAM,GAAG,CAAC,GAAGJ,OAAO,GAAG,CAAC,EAAE,CAAC,CAAA;IAC7D,IAAI,CAACC,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY,CAAA;AAClC,GAAA;AAEAG,EAAAA,KAAK,GAAGA,CAACC,UAAgC,EAAEJ,YAAY,GAAG,EAAE,KAAI;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGM,UAAU,IAAIA,UAAU,CAACF,MAAM,GAAG,CAAC,GAAGE,UAAU,GAAG,CAAC,EAAE,CAAC,CAAA;IACtE,IAAI,CAACL,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY,CAAA;GACjC,CAAA;EAEDK,GAAG,GAAIC,OAAwB,IAAI;AACjC,IAAA,IAAI,CAAC,IAAI,CAACN,YAAY,IAAI,IAAI,CAACF,OAAO,CAACI,MAAM,IAAI,IAAI,CAACF,YAAY,EAAE;AAClE,MAAA,IAAI,CAACF,OAAO,CAACS,IAAI,CAACD,OAAO,CAAC,CAAA;AAC1B;MACA,IAAI,CAACP,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;AAC1C,KAAC,MAAM;AACL;MACA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;AAC1C,KAAA;GACD,CAAA;EAEDM,IAAI,GAAGA,MAAK;AACV,IAAA,MAAMC,aAAa,GAAG,IAAI,CAACX,OAAO,CAACI,MAAM,CAAA;AACzC,IAAA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,IAAI,CAACV,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,CAAC,CAAA;AAC5F,IAAA,OAAO,IAAI,CAACX,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC,CAAA;GACpC,CAAA;EAEDW,IAAI,GAAGA,MAAK;AACV,IAAA,IAAI,CAACX,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC,CAAA;AAChE,IAAA,OAAO,IAAI,CAACD,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC,CAAA;GACpC,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"historyNavigator.js","sources":["../../../src/common/historyNavigator/historyNavigator.ts"],"sourcesContent":["class HistoryNavigator {\n history: (string | number)[];\n currIndex: number;\n historyLimit: number | undefined;\n\n constructor(history?: (string | number)[], historyLimit?: number) {\n this.history = history && history.length > 0 ? history : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n }\n\n reset = (newHistory?: (string | number)[], historyLimit = 20) => {\n this.history = newHistory && newHistory.length > 0 ? newHistory : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n };\n\n add = (element: string | number) => {\n if (!this.historyLimit || this.history.length <= this.historyLimit) {\n this.history.push(element);\n // Always keep the current Index to the latest change\n this.currIndex = this.history.length - 1;\n } else {\n // @TODO not needed now but maybe it can be useful to implement a limit.\n this.currIndex = this.history.length - 1;\n }\n };\n\n redo = () => {\n const historyLength = this.history.length;\n this.currIndex = this.currIndex + 1 < historyLength ? this.currIndex + 1 : historyLength - 1;\n return this.history[this.currIndex];\n };\n\n undo = () => {\n this.currIndex = this.currIndex - 1 > 0 ? this.currIndex - 1 : 0;\n return this.history[this.currIndex];\n };\n}\n\nexport default HistoryNavigator;\n"],"names":["HistoryNavigator","history","currIndex","historyLimit","constructor","length","reset","newHistory","add","element","push","redo","historyLength","undo"],"mappings":";;;;AAAA,MAAMA,gBAAgB,CAAA;EACpBC,OAAO;EACPC,SAAS;EACTC,YAAY;AAEZC,EAAAA,WAAYA,CAAAH,OAA6B,EAAEE,YAAqB,EAAA;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGA,OAAO,IAAIA,OAAO,CAACI,MAAM,GAAG,CAAC,GAAGJ,OAAO,GAAG,CAAC,EAAE,CAAC;IAC7D,IAAI,CAACC,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY;AAClC;AAEAG,EAAAA,KAAK,GAAGA,CAACC,UAAgC,EAAEJ,YAAY,GAAG,EAAE,KAAI;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGM,UAAU,IAAIA,UAAU,CAACF,MAAM,GAAG,CAAC,GAAGE,UAAU,GAAG,CAAC,EAAE,CAAC;IACtE,IAAI,CAACL,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY;GACjC;EAEDK,GAAG,GAAIC,OAAwB,IAAI;AACjC,IAAA,IAAI,CAAC,IAAI,CAACN,YAAY,IAAI,IAAI,CAACF,OAAO,CAACI,MAAM,IAAI,IAAI,CAACF,YAAY,EAAE;AAClE,MAAA,IAAI,CAACF,OAAO,CAACS,IAAI,CAACD,OAAO,CAAC;AAC1B;MACA,IAAI,CAACP,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;AAC1C,KAAC,MAAM;AACL;MACA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;AAC1C;GACD;EAEDM,IAAI,GAAGA,MAAK;AACV,IAAA,MAAMC,aAAa,GAAG,IAAI,CAACX,OAAO,CAACI,MAAM;AACzC,IAAA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,IAAI,CAACV,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,CAAC;AAC5F,IAAA,OAAO,IAAI,CAACX,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC;GACpC;EAEDW,IAAI,GAAGA,MAAK;AACV,IAAA,IAAI,CAACX,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC;AAChE,IAAA,OAAO,IAAI,CAACD,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC;GACpC;AACF;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"historyNavigator.mjs","sources":["../../../src/common/historyNavigator/historyNavigator.ts"],"sourcesContent":["class HistoryNavigator {\n history: (string | number)[];\n currIndex: number;\n historyLimit: number | undefined;\n\n constructor(history?: (string | number)[], historyLimit?: number) {\n this.history = history && history.length > 0 ? history : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n }\n\n reset = (newHistory?: (string | number)[], historyLimit = 20) => {\n this.history = newHistory && newHistory.length > 0 ? newHistory : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n };\n\n add = (element: string | number) => {\n if (!this.historyLimit || this.history.length <= this.historyLimit) {\n this.history.push(element);\n // Always keep the current Index to the latest change\n this.currIndex = this.history.length - 1;\n } else {\n // @TODO not needed now but maybe it can be useful to implement a limit.\n this.currIndex = this.history.length - 1;\n }\n };\n\n redo = () => {\n const historyLength = this.history.length;\n this.currIndex = this.currIndex + 1 < historyLength ? this.currIndex + 1 : historyLength - 1;\n return this.history[this.currIndex];\n };\n\n undo = () => {\n this.currIndex = this.currIndex - 1 > 0 ? this.currIndex - 1 : 0;\n return this.history[this.currIndex];\n };\n}\n\nexport default HistoryNavigator;\n"],"names":["HistoryNavigator","history","currIndex","historyLimit","constructor","length","reset","newHistory","add","element","push","redo","historyLength","undo"],"mappings":"AAAA,MAAMA,gBAAgB,CAAA;EACpBC,OAAO,CAAA;EACPC,SAAS,CAAA;EACTC,YAAY,CAAA;AAEZC,EAAAA,WAAYA,CAAAH,OAA6B,EAAEE,YAAqB,EAAA;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGA,OAAO,IAAIA,OAAO,CAACI,MAAM,GAAG,CAAC,GAAGJ,OAAO,GAAG,CAAC,EAAE,CAAC,CAAA;IAC7D,IAAI,CAACC,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY,CAAA;AAClC,GAAA;AAEAG,EAAAA,KAAK,GAAGA,CAACC,UAAgC,EAAEJ,YAAY,GAAG,EAAE,KAAI;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGM,UAAU,IAAIA,UAAU,CAACF,MAAM,GAAG,CAAC,GAAGE,UAAU,GAAG,CAAC,EAAE,CAAC,CAAA;IACtE,IAAI,CAACL,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY,CAAA;GACjC,CAAA;EAEDK,GAAG,GAAIC,OAAwB,IAAI;AACjC,IAAA,IAAI,CAAC,IAAI,CAACN,YAAY,IAAI,IAAI,CAACF,OAAO,CAACI,MAAM,IAAI,IAAI,CAACF,YAAY,EAAE;AAClE,MAAA,IAAI,CAACF,OAAO,CAACS,IAAI,CAACD,OAAO,CAAC,CAAA;AAC1B;MACA,IAAI,CAACP,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;AAC1C,KAAC,MAAM;AACL;MACA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC,CAAA;AAC1C,KAAA;GACD,CAAA;EAEDM,IAAI,GAAGA,MAAK;AACV,IAAA,MAAMC,aAAa,GAAG,IAAI,CAACX,OAAO,CAACI,MAAM,CAAA;AACzC,IAAA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,IAAI,CAACV,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,CAAC,CAAA;AAC5F,IAAA,OAAO,IAAI,CAACX,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC,CAAA;GACpC,CAAA;EAEDW,IAAI,GAAGA,MAAK;AACV,IAAA,IAAI,CAACX,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC,CAAA;AAChE,IAAA,OAAO,IAAI,CAACD,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC,CAAA;GACpC,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"historyNavigator.mjs","sources":["../../../src/common/historyNavigator/historyNavigator.ts"],"sourcesContent":["class HistoryNavigator {\n history: (string | number)[];\n currIndex: number;\n historyLimit: number | undefined;\n\n constructor(history?: (string | number)[], historyLimit?: number) {\n this.history = history && history.length > 0 ? history : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n }\n\n reset = (newHistory?: (string | number)[], historyLimit = 20) => {\n this.history = newHistory && newHistory.length > 0 ? newHistory : [''];\n this.currIndex = this.history.length - 1;\n this.historyLimit = historyLimit;\n };\n\n add = (element: string | number) => {\n if (!this.historyLimit || this.history.length <= this.historyLimit) {\n this.history.push(element);\n // Always keep the current Index to the latest change\n this.currIndex = this.history.length - 1;\n } else {\n // @TODO not needed now but maybe it can be useful to implement a limit.\n this.currIndex = this.history.length - 1;\n }\n };\n\n redo = () => {\n const historyLength = this.history.length;\n this.currIndex = this.currIndex + 1 < historyLength ? this.currIndex + 1 : historyLength - 1;\n return this.history[this.currIndex];\n };\n\n undo = () => {\n this.currIndex = this.currIndex - 1 > 0 ? this.currIndex - 1 : 0;\n return this.history[this.currIndex];\n };\n}\n\nexport default HistoryNavigator;\n"],"names":["HistoryNavigator","history","currIndex","historyLimit","constructor","length","reset","newHistory","add","element","push","redo","historyLength","undo"],"mappings":"AAAA,MAAMA,gBAAgB,CAAA;EACpBC,OAAO;EACPC,SAAS;EACTC,YAAY;AAEZC,EAAAA,WAAYA,CAAAH,OAA6B,EAAEE,YAAqB,EAAA;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGA,OAAO,IAAIA,OAAO,CAACI,MAAM,GAAG,CAAC,GAAGJ,OAAO,GAAG,CAAC,EAAE,CAAC;IAC7D,IAAI,CAACC,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY;AAClC;AAEAG,EAAAA,KAAK,GAAGA,CAACC,UAAgC,EAAEJ,YAAY,GAAG,EAAE,KAAI;AAC9D,IAAA,IAAI,CAACF,OAAO,GAAGM,UAAU,IAAIA,UAAU,CAACF,MAAM,GAAG,CAAC,GAAGE,UAAU,GAAG,CAAC,EAAE,CAAC;IACtE,IAAI,CAACL,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;IACxC,IAAI,CAACF,YAAY,GAAGA,YAAY;GACjC;EAEDK,GAAG,GAAIC,OAAwB,IAAI;AACjC,IAAA,IAAI,CAAC,IAAI,CAACN,YAAY,IAAI,IAAI,CAACF,OAAO,CAACI,MAAM,IAAI,IAAI,CAACF,YAAY,EAAE;AAClE,MAAA,IAAI,CAACF,OAAO,CAACS,IAAI,CAACD,OAAO,CAAC;AAC1B;MACA,IAAI,CAACP,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;AAC1C,KAAC,MAAM;AACL;MACA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACD,OAAO,CAACI,MAAM,GAAG,CAAC;AAC1C;GACD;EAEDM,IAAI,GAAGA,MAAK;AACV,IAAA,MAAMC,aAAa,GAAG,IAAI,CAACX,OAAO,CAACI,MAAM;AACzC,IAAA,IAAI,CAACH,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,IAAI,CAACV,SAAS,GAAG,CAAC,GAAGU,aAAa,GAAG,CAAC;AAC5F,IAAA,OAAO,IAAI,CAACX,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC;GACpC;EAEDW,IAAI,GAAGA,MAAK;AACV,IAAA,IAAI,CAACX,SAAS,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAACA,SAAS,GAAG,CAAC,GAAG,CAAC;AAChE,IAAA,OAAO,IAAI,CAACD,OAAO,CAAC,IAAI,CAACC,SAAS,CAAC;GACpC;AACF;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useConditionalListener.js","sources":["../../../../src/common/hooks/useConditionalListener/useConditionalListener.ts"],"sourcesContent":["import { isUndefined } from '@transferwise/neptune-validation';\nimport { useEffect } from 'react';\n\nimport { ParentElement } from '../..';\n\ntype Data = {\n attachListener: boolean;\n callback: EventListenerOrEventListenerObject;\n eventType: string;\n parent: ParentElement | undefined;\n};\n\nexport const useConditionalListener = ({ attachListener, callback, eventType, parent }: Data) => {\n useEffect(() => {\n if (attachListener && !isUndefined(parent)) {\n parent.addEventListener(eventType, callback, true);\n }\n\n return () => {\n if (!isUndefined(parent)) {\n parent.removeEventListener(eventType, callback, true);\n }\n };\n }, [attachListener, callback, eventType, parent]);\n};\n"],"names":["useConditionalListener","attachListener","callback","eventType","parent","useEffect","isUndefined","addEventListener","removeEventListener"],"mappings":";;;;;AAYO,MAAMA,sBAAsB,GAAGA,CAAC;EAAEC,cAAc;EAAEC,QAAQ;EAAEC,SAAS;AAAEC,EAAAA,MAAAA;AAAM,CAAQ,KAAI;AAC9FC,EAAAA,eAAS,CAAC,MAAK;AACb,IAAA,IAAIJ,cAAc,IAAI,CAACK,6BAAW,CAACF,MAAM,CAAC,EAAE;MAC1CA,MAAM,CAACG,gBAAgB,CAACJ,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC,CAAA;AACpD,KAAA;AAEA,IAAA,OAAO,MAAK;AACV,MAAA,IAAI,CAACI,6BAAW,CAACF,MAAM,CAAC,EAAE;QACxBA,MAAM,CAACI,mBAAmB,CAACL,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC,CAAA;AACvD,OAAA;KACD,CAAA;GACF,EAAE,CAACD,cAAc,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,MAAM,CAAC,CAAC,CAAA;AACnD;;;;"}
1
+ {"version":3,"file":"useConditionalListener.js","sources":["../../../../src/common/hooks/useConditionalListener/useConditionalListener.ts"],"sourcesContent":["import { isUndefined } from '@transferwise/neptune-validation';\nimport { useEffect } from 'react';\n\nimport { ParentElement } from '../..';\n\ntype Data = {\n attachListener: boolean;\n callback: EventListenerOrEventListenerObject;\n eventType: string;\n parent: ParentElement | undefined;\n};\n\nexport const useConditionalListener = ({ attachListener, callback, eventType, parent }: Data) => {\n useEffect(() => {\n if (attachListener && !isUndefined(parent)) {\n parent.addEventListener(eventType, callback, true);\n }\n\n return () => {\n if (!isUndefined(parent)) {\n parent.removeEventListener(eventType, callback, true);\n }\n };\n }, [attachListener, callback, eventType, parent]);\n};\n"],"names":["useConditionalListener","attachListener","callback","eventType","parent","useEffect","isUndefined","addEventListener","removeEventListener"],"mappings":";;;;;AAYO,MAAMA,sBAAsB,GAAGA,CAAC;EAAEC,cAAc;EAAEC,QAAQ;EAAEC,SAAS;AAAEC,EAAAA;AAAM,CAAQ,KAAI;AAC9FC,EAAAA,eAAS,CAAC,MAAK;AACb,IAAA,IAAIJ,cAAc,IAAI,CAACK,6BAAW,CAACF,MAAM,CAAC,EAAE;MAC1CA,MAAM,CAACG,gBAAgB,CAACJ,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC;AACpD;AAEA,IAAA,OAAO,MAAK;AACV,MAAA,IAAI,CAACI,6BAAW,CAACF,MAAM,CAAC,EAAE;QACxBA,MAAM,CAACI,mBAAmB,CAACL,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC;AACvD;KACD;GACF,EAAE,CAACD,cAAc,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,MAAM,CAAC,CAAC;AACnD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useConditionalListener.mjs","sources":["../../../../src/common/hooks/useConditionalListener/useConditionalListener.ts"],"sourcesContent":["import { isUndefined } from '@transferwise/neptune-validation';\nimport { useEffect } from 'react';\n\nimport { ParentElement } from '../..';\n\ntype Data = {\n attachListener: boolean;\n callback: EventListenerOrEventListenerObject;\n eventType: string;\n parent: ParentElement | undefined;\n};\n\nexport const useConditionalListener = ({ attachListener, callback, eventType, parent }: Data) => {\n useEffect(() => {\n if (attachListener && !isUndefined(parent)) {\n parent.addEventListener(eventType, callback, true);\n }\n\n return () => {\n if (!isUndefined(parent)) {\n parent.removeEventListener(eventType, callback, true);\n }\n };\n }, [attachListener, callback, eventType, parent]);\n};\n"],"names":["useConditionalListener","attachListener","callback","eventType","parent","useEffect","isUndefined","addEventListener","removeEventListener"],"mappings":";;;AAYO,MAAMA,sBAAsB,GAAGA,CAAC;EAAEC,cAAc;EAAEC,QAAQ;EAAEC,SAAS;AAAEC,EAAAA,MAAAA;AAAM,CAAQ,KAAI;AAC9FC,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,IAAIJ,cAAc,IAAI,CAACK,WAAW,CAACF,MAAM,CAAC,EAAE;MAC1CA,MAAM,CAACG,gBAAgB,CAACJ,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC,CAAA;AACpD,KAAA;AAEA,IAAA,OAAO,MAAK;AACV,MAAA,IAAI,CAACI,WAAW,CAACF,MAAM,CAAC,EAAE;QACxBA,MAAM,CAACI,mBAAmB,CAACL,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC,CAAA;AACvD,OAAA;KACD,CAAA;GACF,EAAE,CAACD,cAAc,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,MAAM,CAAC,CAAC,CAAA;AACnD;;;;"}
1
+ {"version":3,"file":"useConditionalListener.mjs","sources":["../../../../src/common/hooks/useConditionalListener/useConditionalListener.ts"],"sourcesContent":["import { isUndefined } from '@transferwise/neptune-validation';\nimport { useEffect } from 'react';\n\nimport { ParentElement } from '../..';\n\ntype Data = {\n attachListener: boolean;\n callback: EventListenerOrEventListenerObject;\n eventType: string;\n parent: ParentElement | undefined;\n};\n\nexport const useConditionalListener = ({ attachListener, callback, eventType, parent }: Data) => {\n useEffect(() => {\n if (attachListener && !isUndefined(parent)) {\n parent.addEventListener(eventType, callback, true);\n }\n\n return () => {\n if (!isUndefined(parent)) {\n parent.removeEventListener(eventType, callback, true);\n }\n };\n }, [attachListener, callback, eventType, parent]);\n};\n"],"names":["useConditionalListener","attachListener","callback","eventType","parent","useEffect","isUndefined","addEventListener","removeEventListener"],"mappings":";;;AAYO,MAAMA,sBAAsB,GAAGA,CAAC;EAAEC,cAAc;EAAEC,QAAQ;EAAEC,SAAS;AAAEC,EAAAA;AAAM,CAAQ,KAAI;AAC9FC,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,IAAIJ,cAAc,IAAI,CAACK,WAAW,CAACF,MAAM,CAAC,EAAE;MAC1CA,MAAM,CAACG,gBAAgB,CAACJ,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC;AACpD;AAEA,IAAA,OAAO,MAAK;AACV,MAAA,IAAI,CAACI,WAAW,CAACF,MAAM,CAAC,EAAE;QACxBA,MAAM,CAACI,mBAAmB,CAACL,SAAS,EAAED,QAAQ,EAAE,IAAI,CAAC;AACvD;KACD;GACF,EAAE,CAACD,cAAc,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,MAAM,CAAC,CAAC;AACnD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDirection.js","sources":["../../../../src/common/hooks/useDirection/useDirection.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { DirectionContext } from '../../../provider/direction/DirectionProvider';\nimport { LayoutDirection } from '../../direction';\n\nexport const useDirection = (): { direction: LayoutDirection; isRTL: boolean } => {\n const direction = useContext(DirectionContext);\n return {\n direction,\n isRTL: direction === 'rtl',\n };\n};\n"],"names":["useDirection","direction","useContext","DirectionContext","isRTL"],"mappings":";;;;;AAKaA,MAAAA,YAAY,GAAGA,MAAqD;AAC/E,EAAA,MAAMC,SAAS,GAAGC,gBAAU,CAACC,kCAAgB,CAAC,CAAA;EAC9C,OAAO;IACLF,SAAS;IACTG,KAAK,EAAEH,SAAS,KAAK,KAAA;GACtB,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"useDirection.js","sources":["../../../../src/common/hooks/useDirection/useDirection.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { DirectionContext } from '../../../provider/direction/DirectionProvider';\nimport { LayoutDirection } from '../../direction';\n\nexport const useDirection = (): { direction: LayoutDirection; isRTL: boolean } => {\n const direction = useContext(DirectionContext);\n return {\n direction,\n isRTL: direction === 'rtl',\n };\n};\n"],"names":["useDirection","direction","useContext","DirectionContext","isRTL"],"mappings":";;;;;AAKaA,MAAAA,YAAY,GAAGA,MAAqD;AAC/E,EAAA,MAAMC,SAAS,GAAGC,gBAAU,CAACC,kCAAgB,CAAC;EAC9C,OAAO;IACLF,SAAS;IACTG,KAAK,EAAEH,SAAS,KAAK;GACtB;AACH;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDirection.mjs","sources":["../../../../src/common/hooks/useDirection/useDirection.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { DirectionContext } from '../../../provider/direction/DirectionProvider';\nimport { LayoutDirection } from '../../direction';\n\nexport const useDirection = (): { direction: LayoutDirection; isRTL: boolean } => {\n const direction = useContext(DirectionContext);\n return {\n direction,\n isRTL: direction === 'rtl',\n };\n};\n"],"names":["useDirection","direction","useContext","DirectionContext","isRTL"],"mappings":";;;AAKaA,MAAAA,YAAY,GAAGA,MAAqD;AAC/E,EAAA,MAAMC,SAAS,GAAGC,UAAU,CAACC,gBAAgB,CAAC,CAAA;EAC9C,OAAO;IACLF,SAAS;IACTG,KAAK,EAAEH,SAAS,KAAK,KAAA;GACtB,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"useDirection.mjs","sources":["../../../../src/common/hooks/useDirection/useDirection.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { DirectionContext } from '../../../provider/direction/DirectionProvider';\nimport { LayoutDirection } from '../../direction';\n\nexport const useDirection = (): { direction: LayoutDirection; isRTL: boolean } => {\n const direction = useContext(DirectionContext);\n return {\n direction,\n isRTL: direction === 'rtl',\n };\n};\n"],"names":["useDirection","direction","useContext","DirectionContext","isRTL"],"mappings":";;;AAKaA,MAAAA,YAAY,GAAGA,MAAqD;AAC/E,EAAA,MAAMC,SAAS,GAAGC,UAAU,CAACC,gBAAgB,CAAC;EAC9C,OAAO;IACLF,SAAS;IACTG,KAAK,EAAEH,SAAS,KAAK;GACtB;AACH;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEffectEvent.js","sources":["../../../src/common/hooks/useEffectEvent.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\n/*\n * Inspired by:\n *\n * - https://react.dev/learn/separating-events-from-effects#declaring-an-effect-event\n * - https://legacy.reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback\n */\n\nexport function useEffectEvent<A extends unknown[], R>(\n callback: (...args: A) => R,\n): typeof callback {\n const ref = useRef<typeof callback>(() => {\n throw new Error('Cannot call an event handler while rendering.');\n });\n\n useEffect(() => {\n ref.current = callback;\n });\n\n return useCallback((...args) => ref.current(...args), []);\n}\n"],"names":["useEffectEvent","callback","ref","useRef","Error","useEffect","current","useCallback","args"],"mappings":";;;;AAEA;;;;;AAKG;AAEG,SAAUA,cAAcA,CAC5BC,QAA2B,EAAA;AAE3B,EAAA,MAAMC,GAAG,GAAGC,YAAM,CAAkB,MAAK;AACvC,IAAA,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC,CAAA;AAClE,GAAC,CAAC,CAAA;AAEFC,EAAAA,eAAS,CAAC,MAAK;IACbH,GAAG,CAACI,OAAO,GAAGL,QAAQ,CAAA;AACxB,GAAC,CAAC,CAAA;AAEF,EAAA,OAAOM,iBAAW,CAAC,CAAC,GAAGC,IAAI,KAAKN,GAAG,CAACI,OAAO,CAAC,GAAGE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;AAC3D;;;;"}
1
+ {"version":3,"file":"useEffectEvent.js","sources":["../../../src/common/hooks/useEffectEvent.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\n/*\n * Inspired by:\n *\n * - https://react.dev/learn/separating-events-from-effects#declaring-an-effect-event\n * - https://legacy.reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback\n */\n\nexport function useEffectEvent<A extends unknown[], R>(\n callback: (...args: A) => R,\n): typeof callback {\n const ref = useRef<typeof callback>(() => {\n throw new Error('Cannot call an event handler while rendering.');\n });\n\n useEffect(() => {\n ref.current = callback;\n });\n\n return useCallback((...args) => ref.current(...args), []);\n}\n"],"names":["useEffectEvent","callback","ref","useRef","Error","useEffect","current","useCallback","args"],"mappings":";;;;AAEA;;;;;AAKG;AAEG,SAAUA,cAAcA,CAC5BC,QAA2B,EAAA;AAE3B,EAAA,MAAMC,GAAG,GAAGC,YAAM,CAAkB,MAAK;AACvC,IAAA,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC;AAClE,GAAC,CAAC;AAEFC,EAAAA,eAAS,CAAC,MAAK;IACbH,GAAG,CAACI,OAAO,GAAGL,QAAQ;AACxB,GAAC,CAAC;AAEF,EAAA,OAAOM,iBAAW,CAAC,CAAC,GAAGC,IAAI,KAAKN,GAAG,CAACI,OAAO,CAAC,GAAGE,IAAI,CAAC,EAAE,EAAE,CAAC;AAC3D;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEffectEvent.mjs","sources":["../../../src/common/hooks/useEffectEvent.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\n/*\n * Inspired by:\n *\n * - https://react.dev/learn/separating-events-from-effects#declaring-an-effect-event\n * - https://legacy.reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback\n */\n\nexport function useEffectEvent<A extends unknown[], R>(\n callback: (...args: A) => R,\n): typeof callback {\n const ref = useRef<typeof callback>(() => {\n throw new Error('Cannot call an event handler while rendering.');\n });\n\n useEffect(() => {\n ref.current = callback;\n });\n\n return useCallback((...args) => ref.current(...args), []);\n}\n"],"names":["useEffectEvent","callback","ref","useRef","Error","useEffect","current","useCallback","args"],"mappings":";;AAEA;;;;;AAKG;AAEG,SAAUA,cAAcA,CAC5BC,QAA2B,EAAA;AAE3B,EAAA,MAAMC,GAAG,GAAGC,MAAM,CAAkB,MAAK;AACvC,IAAA,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC,CAAA;AAClE,GAAC,CAAC,CAAA;AAEFC,EAAAA,SAAS,CAAC,MAAK;IACbH,GAAG,CAACI,OAAO,GAAGL,QAAQ,CAAA;AACxB,GAAC,CAAC,CAAA;AAEF,EAAA,OAAOM,WAAW,CAAC,CAAC,GAAGC,IAAI,KAAKN,GAAG,CAACI,OAAO,CAAC,GAAGE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;AAC3D;;;;"}
1
+ {"version":3,"file":"useEffectEvent.mjs","sources":["../../../src/common/hooks/useEffectEvent.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\n/*\n * Inspired by:\n *\n * - https://react.dev/learn/separating-events-from-effects#declaring-an-effect-event\n * - https://legacy.reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback\n */\n\nexport function useEffectEvent<A extends unknown[], R>(\n callback: (...args: A) => R,\n): typeof callback {\n const ref = useRef<typeof callback>(() => {\n throw new Error('Cannot call an event handler while rendering.');\n });\n\n useEffect(() => {\n ref.current = callback;\n });\n\n return useCallback((...args) => ref.current(...args), []);\n}\n"],"names":["useEffectEvent","callback","ref","useRef","Error","useEffect","current","useCallback","args"],"mappings":";;AAEA;;;;;AAKG;AAEG,SAAUA,cAAcA,CAC5BC,QAA2B,EAAA;AAE3B,EAAA,MAAMC,GAAG,GAAGC,MAAM,CAAkB,MAAK;AACvC,IAAA,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC;AAClE,GAAC,CAAC;AAEFC,EAAAA,SAAS,CAAC,MAAK;IACbH,GAAG,CAACI,OAAO,GAAGL,QAAQ;AACxB,GAAC,CAAC;AAEF,EAAA,OAAOM,WAAW,CAAC,CAAC,GAAGC,IAAI,KAAKN,GAAG,CAACI,OAAO,CAAC,GAAGE,IAAI,CAAC,EAAE,EAAE,CAAC;AAC3D;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useHasIntersected.js","sources":["../../../../src/common/hooks/useHasIntersected/useHasIntersected.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst ObserverParams: IntersectionObserverInit = {\n threshold: 0.1,\n};\n\n/**\n * useHasIntersected.\n * Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.\n * Once the intersection has happened the hook will not return false even if the element gets out of the viewport.\n *\n * @param {object} params\n * @param {object} [params.elRef] - node object that contains a react reference to the element that needs to be observed.\n * @param {string} [params.loading = 'eager'] - string that contains the type of loading.\n * @param elRef.loading\n * @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`\n */\nexport const useHasIntersected = ({\n elRef,\n loading = 'eager',\n}: {\n elRef: React.RefObject<HTMLElement>;\n loading?: 'eager' | 'lazy';\n}) => {\n const [hasIntersected, setHasIntersected] = useState(false);\n\n const { current } = elRef || {};\n\n const isValidReference = () => {\n return elRef && current;\n };\n\n const handleOnIntersect: IntersectionObserverCallback = (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n setHasIntersected(true);\n\n if (current) {\n observer.unobserve(current);\n }\n }\n });\n };\n\n useEffect(() => {\n let observer: IntersectionObserver | undefined;\n let didCancel = false;\n\n // Check if window is defined for SSR and Old browsers fallback\n if (typeof window === 'undefined' || !window.IntersectionObserver || !isValidReference()) {\n setHasIntersected(true);\n } else if (current && !didCancel) {\n observer = new IntersectionObserver(handleOnIntersect, ObserverParams);\n observer.observe(current);\n }\n return () => {\n didCancel = true;\n if (observer && current) {\n observer.unobserve(current);\n }\n };\n }, [elRef]);\n\n if (loading === 'eager') {\n return [false];\n }\n\n return [hasIntersected];\n};\n"],"names":["ObserverParams","threshold","useHasIntersected","elRef","loading","hasIntersected","setHasIntersected","useState","current","isValidReference","handleOnIntersect","entries","observer","forEach","entry","isIntersecting","unobserve","useEffect","didCancel","window","IntersectionObserver","observe"],"mappings":";;;;AAEA,MAAMA,cAAc,GAA6B;AAC/CC,EAAAA,SAAS,EAAE,GAAA;CACZ,CAAA;AAED;;;;;;;;;;AAUG;AACI,MAAMC,iBAAiB,GAAGA,CAAC;EAChCC,KAAK;AACLC,EAAAA,OAAO,GAAG,OAAA;AAAO,CAIlB,KAAI;EACH,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGC,cAAQ,CAAC,KAAK,CAAC,CAAA;EAE3D,MAAM;AAAEC,IAAAA,OAAAA;AAAO,GAAE,GAAGL,KAAK,IAAI,EAAE,CAAA;EAE/B,MAAMM,gBAAgB,GAAGA,MAAK;IAC5B,OAAON,KAAK,IAAIK,OAAO,CAAA;GACxB,CAAA;AAED,EAAA,MAAME,iBAAiB,GAAiCA,CAACC,OAAO,EAAEC,QAAQ,KAAI;AAC5ED,IAAAA,OAAO,CAACE,OAAO,CAAEC,KAAK,IAAI;MACxB,IAAIA,KAAK,CAACC,cAAc,EAAE;QACxBT,iBAAiB,CAAC,IAAI,CAAC,CAAA;AAEvB,QAAA,IAAIE,OAAO,EAAE;AACXI,UAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC,CAAA;AAC7B,SAAA;AACF,OAAA;AACF,KAAC,CAAC,CAAA;GACH,CAAA;AAEDS,EAAAA,eAAS,CAAC,MAAK;AACb,IAAA,IAAIL,QAA0C,CAAA;IAC9C,IAAIM,SAAS,GAAG,KAAK,CAAA;AAErB;AACA,IAAA,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAI,CAACA,MAAM,CAACC,oBAAoB,IAAI,CAACX,gBAAgB,EAAE,EAAE;MACxFH,iBAAiB,CAAC,IAAI,CAAC,CAAA;AACzB,KAAC,MAAM,IAAIE,OAAO,IAAI,CAACU,SAAS,EAAE;AAChCN,MAAAA,QAAQ,GAAG,IAAIQ,oBAAoB,CAACV,iBAAiB,EAAEV,cAAc,CAAC,CAAA;AACtEY,MAAAA,QAAQ,CAACS,OAAO,CAACb,OAAO,CAAC,CAAA;AAC3B,KAAA;AACA,IAAA,OAAO,MAAK;AACVU,MAAAA,SAAS,GAAG,IAAI,CAAA;MAChB,IAAIN,QAAQ,IAAIJ,OAAO,EAAE;AACvBI,QAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC,CAAA;AAC7B,OAAA;KACD,CAAA;AACH,GAAC,EAAE,CAACL,KAAK,CAAC,CAAC,CAAA;EAEX,IAAIC,OAAO,KAAK,OAAO,EAAE;IACvB,OAAO,CAAC,KAAK,CAAC,CAAA;AAChB,GAAA;EAEA,OAAO,CAACC,cAAc,CAAC,CAAA;AACzB;;;;"}
1
+ {"version":3,"file":"useHasIntersected.js","sources":["../../../../src/common/hooks/useHasIntersected/useHasIntersected.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst ObserverParams: IntersectionObserverInit = {\n threshold: 0.1,\n};\n\n/**\n * useHasIntersected.\n * Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.\n * Once the intersection has happened the hook will not return false even if the element gets out of the viewport.\n *\n * @param {object} params\n * @param {object} [params.elRef] - node object that contains a react reference to the element that needs to be observed.\n * @param {string} [params.loading = 'eager'] - string that contains the type of loading.\n * @param elRef.loading\n * @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`\n */\nexport const useHasIntersected = ({\n elRef,\n loading = 'eager',\n}: {\n elRef: React.RefObject<HTMLElement>;\n loading?: 'eager' | 'lazy';\n}) => {\n const [hasIntersected, setHasIntersected] = useState(false);\n\n const { current } = elRef || {};\n\n const isValidReference = () => {\n return elRef && current;\n };\n\n const handleOnIntersect: IntersectionObserverCallback = (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n setHasIntersected(true);\n\n if (current) {\n observer.unobserve(current);\n }\n }\n });\n };\n\n useEffect(() => {\n let observer: IntersectionObserver | undefined;\n let didCancel = false;\n\n // Check if window is defined for SSR and Old browsers fallback\n if (typeof window === 'undefined' || !window.IntersectionObserver || !isValidReference()) {\n setHasIntersected(true);\n } else if (current && !didCancel) {\n observer = new IntersectionObserver(handleOnIntersect, ObserverParams);\n observer.observe(current);\n }\n return () => {\n didCancel = true;\n if (observer && current) {\n observer.unobserve(current);\n }\n };\n }, [elRef]);\n\n if (loading === 'eager') {\n return [false];\n }\n\n return [hasIntersected];\n};\n"],"names":["ObserverParams","threshold","useHasIntersected","elRef","loading","hasIntersected","setHasIntersected","useState","current","isValidReference","handleOnIntersect","entries","observer","forEach","entry","isIntersecting","unobserve","useEffect","didCancel","window","IntersectionObserver","observe"],"mappings":";;;;AAEA,MAAMA,cAAc,GAA6B;AAC/CC,EAAAA,SAAS,EAAE;CACZ;AAED;;;;;;;;;;AAUG;AACI,MAAMC,iBAAiB,GAAGA,CAAC;EAChCC,KAAK;AACLC,EAAAA,OAAO,GAAG;AAAO,CAIlB,KAAI;EACH,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGC,cAAQ,CAAC,KAAK,CAAC;EAE3D,MAAM;AAAEC,IAAAA;AAAO,GAAE,GAAGL,KAAK,IAAI,EAAE;EAE/B,MAAMM,gBAAgB,GAAGA,MAAK;IAC5B,OAAON,KAAK,IAAIK,OAAO;GACxB;AAED,EAAA,MAAME,iBAAiB,GAAiCA,CAACC,OAAO,EAAEC,QAAQ,KAAI;AAC5ED,IAAAA,OAAO,CAACE,OAAO,CAAEC,KAAK,IAAI;MACxB,IAAIA,KAAK,CAACC,cAAc,EAAE;QACxBT,iBAAiB,CAAC,IAAI,CAAC;AAEvB,QAAA,IAAIE,OAAO,EAAE;AACXI,UAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC;AAC7B;AACF;AACF,KAAC,CAAC;GACH;AAEDS,EAAAA,eAAS,CAAC,MAAK;AACb,IAAA,IAAIL,QAA0C;IAC9C,IAAIM,SAAS,GAAG,KAAK;AAErB;AACA,IAAA,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAI,CAACA,MAAM,CAACC,oBAAoB,IAAI,CAACX,gBAAgB,EAAE,EAAE;MACxFH,iBAAiB,CAAC,IAAI,CAAC;AACzB,KAAC,MAAM,IAAIE,OAAO,IAAI,CAACU,SAAS,EAAE;AAChCN,MAAAA,QAAQ,GAAG,IAAIQ,oBAAoB,CAACV,iBAAiB,EAAEV,cAAc,CAAC;AACtEY,MAAAA,QAAQ,CAACS,OAAO,CAACb,OAAO,CAAC;AAC3B;AACA,IAAA,OAAO,MAAK;AACVU,MAAAA,SAAS,GAAG,IAAI;MAChB,IAAIN,QAAQ,IAAIJ,OAAO,EAAE;AACvBI,QAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC;AAC7B;KACD;AACH,GAAC,EAAE,CAACL,KAAK,CAAC,CAAC;EAEX,IAAIC,OAAO,KAAK,OAAO,EAAE;IACvB,OAAO,CAAC,KAAK,CAAC;AAChB;EAEA,OAAO,CAACC,cAAc,CAAC;AACzB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useHasIntersected.mjs","sources":["../../../../src/common/hooks/useHasIntersected/useHasIntersected.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst ObserverParams: IntersectionObserverInit = {\n threshold: 0.1,\n};\n\n/**\n * useHasIntersected.\n * Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.\n * Once the intersection has happened the hook will not return false even if the element gets out of the viewport.\n *\n * @param {object} params\n * @param {object} [params.elRef] - node object that contains a react reference to the element that needs to be observed.\n * @param {string} [params.loading = 'eager'] - string that contains the type of loading.\n * @param elRef.loading\n * @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`\n */\nexport const useHasIntersected = ({\n elRef,\n loading = 'eager',\n}: {\n elRef: React.RefObject<HTMLElement>;\n loading?: 'eager' | 'lazy';\n}) => {\n const [hasIntersected, setHasIntersected] = useState(false);\n\n const { current } = elRef || {};\n\n const isValidReference = () => {\n return elRef && current;\n };\n\n const handleOnIntersect: IntersectionObserverCallback = (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n setHasIntersected(true);\n\n if (current) {\n observer.unobserve(current);\n }\n }\n });\n };\n\n useEffect(() => {\n let observer: IntersectionObserver | undefined;\n let didCancel = false;\n\n // Check if window is defined for SSR and Old browsers fallback\n if (typeof window === 'undefined' || !window.IntersectionObserver || !isValidReference()) {\n setHasIntersected(true);\n } else if (current && !didCancel) {\n observer = new IntersectionObserver(handleOnIntersect, ObserverParams);\n observer.observe(current);\n }\n return () => {\n didCancel = true;\n if (observer && current) {\n observer.unobserve(current);\n }\n };\n }, [elRef]);\n\n if (loading === 'eager') {\n return [false];\n }\n\n return [hasIntersected];\n};\n"],"names":["ObserverParams","threshold","useHasIntersected","elRef","loading","hasIntersected","setHasIntersected","useState","current","isValidReference","handleOnIntersect","entries","observer","forEach","entry","isIntersecting","unobserve","useEffect","didCancel","window","IntersectionObserver","observe"],"mappings":";;AAEA,MAAMA,cAAc,GAA6B;AAC/CC,EAAAA,SAAS,EAAE,GAAA;CACZ,CAAA;AAED;;;;;;;;;;AAUG;AACI,MAAMC,iBAAiB,GAAGA,CAAC;EAChCC,KAAK;AACLC,EAAAA,OAAO,GAAG,OAAA;AAAO,CAIlB,KAAI;EACH,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC,CAAA;EAE3D,MAAM;AAAEC,IAAAA,OAAAA;AAAO,GAAE,GAAGL,KAAK,IAAI,EAAE,CAAA;EAE/B,MAAMM,gBAAgB,GAAGA,MAAK;IAC5B,OAAON,KAAK,IAAIK,OAAO,CAAA;GACxB,CAAA;AAED,EAAA,MAAME,iBAAiB,GAAiCA,CAACC,OAAO,EAAEC,QAAQ,KAAI;AAC5ED,IAAAA,OAAO,CAACE,OAAO,CAAEC,KAAK,IAAI;MACxB,IAAIA,KAAK,CAACC,cAAc,EAAE;QACxBT,iBAAiB,CAAC,IAAI,CAAC,CAAA;AAEvB,QAAA,IAAIE,OAAO,EAAE;AACXI,UAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC,CAAA;AAC7B,SAAA;AACF,OAAA;AACF,KAAC,CAAC,CAAA;GACH,CAAA;AAEDS,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,IAAIL,QAA0C,CAAA;IAC9C,IAAIM,SAAS,GAAG,KAAK,CAAA;AAErB;AACA,IAAA,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAI,CAACA,MAAM,CAACC,oBAAoB,IAAI,CAACX,gBAAgB,EAAE,EAAE;MACxFH,iBAAiB,CAAC,IAAI,CAAC,CAAA;AACzB,KAAC,MAAM,IAAIE,OAAO,IAAI,CAACU,SAAS,EAAE;AAChCN,MAAAA,QAAQ,GAAG,IAAIQ,oBAAoB,CAACV,iBAAiB,EAAEV,cAAc,CAAC,CAAA;AACtEY,MAAAA,QAAQ,CAACS,OAAO,CAACb,OAAO,CAAC,CAAA;AAC3B,KAAA;AACA,IAAA,OAAO,MAAK;AACVU,MAAAA,SAAS,GAAG,IAAI,CAAA;MAChB,IAAIN,QAAQ,IAAIJ,OAAO,EAAE;AACvBI,QAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC,CAAA;AAC7B,OAAA;KACD,CAAA;AACH,GAAC,EAAE,CAACL,KAAK,CAAC,CAAC,CAAA;EAEX,IAAIC,OAAO,KAAK,OAAO,EAAE;IACvB,OAAO,CAAC,KAAK,CAAC,CAAA;AAChB,GAAA;EAEA,OAAO,CAACC,cAAc,CAAC,CAAA;AACzB;;;;"}
1
+ {"version":3,"file":"useHasIntersected.mjs","sources":["../../../../src/common/hooks/useHasIntersected/useHasIntersected.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst ObserverParams: IntersectionObserverInit = {\n threshold: 0.1,\n};\n\n/**\n * useHasIntersected.\n * Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.\n * Once the intersection has happened the hook will not return false even if the element gets out of the viewport.\n *\n * @param {object} params\n * @param {object} [params.elRef] - node object that contains a react reference to the element that needs to be observed.\n * @param {string} [params.loading = 'eager'] - string that contains the type of loading.\n * @param elRef.loading\n * @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`\n */\nexport const useHasIntersected = ({\n elRef,\n loading = 'eager',\n}: {\n elRef: React.RefObject<HTMLElement>;\n loading?: 'eager' | 'lazy';\n}) => {\n const [hasIntersected, setHasIntersected] = useState(false);\n\n const { current } = elRef || {};\n\n const isValidReference = () => {\n return elRef && current;\n };\n\n const handleOnIntersect: IntersectionObserverCallback = (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n setHasIntersected(true);\n\n if (current) {\n observer.unobserve(current);\n }\n }\n });\n };\n\n useEffect(() => {\n let observer: IntersectionObserver | undefined;\n let didCancel = false;\n\n // Check if window is defined for SSR and Old browsers fallback\n if (typeof window === 'undefined' || !window.IntersectionObserver || !isValidReference()) {\n setHasIntersected(true);\n } else if (current && !didCancel) {\n observer = new IntersectionObserver(handleOnIntersect, ObserverParams);\n observer.observe(current);\n }\n return () => {\n didCancel = true;\n if (observer && current) {\n observer.unobserve(current);\n }\n };\n }, [elRef]);\n\n if (loading === 'eager') {\n return [false];\n }\n\n return [hasIntersected];\n};\n"],"names":["ObserverParams","threshold","useHasIntersected","elRef","loading","hasIntersected","setHasIntersected","useState","current","isValidReference","handleOnIntersect","entries","observer","forEach","entry","isIntersecting","unobserve","useEffect","didCancel","window","IntersectionObserver","observe"],"mappings":";;AAEA,MAAMA,cAAc,GAA6B;AAC/CC,EAAAA,SAAS,EAAE;CACZ;AAED;;;;;;;;;;AAUG;AACI,MAAMC,iBAAiB,GAAGA,CAAC;EAChCC,KAAK;AACLC,EAAAA,OAAO,GAAG;AAAO,CAIlB,KAAI;EACH,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC;EAE3D,MAAM;AAAEC,IAAAA;AAAO,GAAE,GAAGL,KAAK,IAAI,EAAE;EAE/B,MAAMM,gBAAgB,GAAGA,MAAK;IAC5B,OAAON,KAAK,IAAIK,OAAO;GACxB;AAED,EAAA,MAAME,iBAAiB,GAAiCA,CAACC,OAAO,EAAEC,QAAQ,KAAI;AAC5ED,IAAAA,OAAO,CAACE,OAAO,CAAEC,KAAK,IAAI;MACxB,IAAIA,KAAK,CAACC,cAAc,EAAE;QACxBT,iBAAiB,CAAC,IAAI,CAAC;AAEvB,QAAA,IAAIE,OAAO,EAAE;AACXI,UAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC;AAC7B;AACF;AACF,KAAC,CAAC;GACH;AAEDS,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,IAAIL,QAA0C;IAC9C,IAAIM,SAAS,GAAG,KAAK;AAErB;AACA,IAAA,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAI,CAACA,MAAM,CAACC,oBAAoB,IAAI,CAACX,gBAAgB,EAAE,EAAE;MACxFH,iBAAiB,CAAC,IAAI,CAAC;AACzB,KAAC,MAAM,IAAIE,OAAO,IAAI,CAACU,SAAS,EAAE;AAChCN,MAAAA,QAAQ,GAAG,IAAIQ,oBAAoB,CAACV,iBAAiB,EAAEV,cAAc,CAAC;AACtEY,MAAAA,QAAQ,CAACS,OAAO,CAACb,OAAO,CAAC;AAC3B;AACA,IAAA,OAAO,MAAK;AACVU,MAAAA,SAAS,GAAG,IAAI;MAChB,IAAIN,QAAQ,IAAIJ,OAAO,EAAE;AACvBI,QAAAA,QAAQ,CAACI,SAAS,CAACR,OAAO,CAAC;AAC7B;KACD;AACH,GAAC,EAAE,CAACL,KAAK,CAAC,CAAC;EAEX,IAAIC,OAAO,KAAK,OAAO,EAAE;IACvB,OAAO,CAAC,KAAK,CAAC;AAChB;EAEA,OAAO,CAACC,cAAc,CAAC;AACzB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLayout.js","sources":["../../../../src/common/hooks/useLayout/useLayout.ts"],"sourcesContent":["import { Breakpoint } from '../../propsValues/breakpoint';\nimport { useScreenSize } from '../useScreenSize';\n\n/**\n * @deprecated Prefer `useScreenSize` instead.\n */\nexport const useLayout = (): {\n isMobile: boolean | undefined;\n isExtraSmall: boolean | undefined;\n isSmall: boolean | undefined;\n isMedium: boolean | undefined;\n isLarge: boolean | undefined;\n isExtraLarge: boolean | undefined;\n} => {\n const screenXs = useScreenSize(Breakpoint.EXTRA_SMALL);\n const screenSm = useScreenSize(Breakpoint.SMALL);\n const screenMd = useScreenSize(Breakpoint.MEDIUM);\n const screenLg = useScreenSize(Breakpoint.LARGE);\n const screenXl = useScreenSize(Breakpoint.EXTRA_LARGE);\n\n return {\n isMobile: screenSm != null ? !screenSm : undefined,\n isExtraSmall: screenXs,\n isSmall: screenSm,\n isMedium: screenMd,\n isLarge: screenLg,\n isExtraLarge: screenXl,\n };\n};\n"],"names":["useLayout","screenXs","useScreenSize","Breakpoint","EXTRA_SMALL","screenSm","SMALL","screenMd","MEDIUM","screenLg","LARGE","screenXl","EXTRA_LARGE","isMobile","undefined","isExtraSmall","isSmall","isMedium","isLarge","isExtraLarge"],"mappings":";;;;;AAGA;;AAEG;AACUA,MAAAA,SAAS,GAAGA,MAOrB;AACF,EAAA,MAAMC,QAAQ,GAAGC,2BAAa,CAACC,qBAAU,CAACC,WAAW,CAAC,CAAA;AACtD,EAAA,MAAMC,QAAQ,GAAGH,2BAAa,CAACC,qBAAU,CAACG,KAAK,CAAC,CAAA;AAChD,EAAA,MAAMC,QAAQ,GAAGL,2BAAa,CAACC,qBAAU,CAACK,MAAM,CAAC,CAAA;AACjD,EAAA,MAAMC,QAAQ,GAAGP,2BAAa,CAACC,qBAAU,CAACO,KAAK,CAAC,CAAA;AAChD,EAAA,MAAMC,QAAQ,GAAGT,2BAAa,CAACC,qBAAU,CAACS,WAAW,CAAC,CAAA;EAEtD,OAAO;IACLC,QAAQ,EAAER,QAAQ,IAAI,IAAI,GAAG,CAACA,QAAQ,GAAGS,SAAS;AAClDC,IAAAA,YAAY,EAAEd,QAAQ;AACtBe,IAAAA,OAAO,EAAEX,QAAQ;AACjBY,IAAAA,QAAQ,EAAEV,QAAQ;AAClBW,IAAAA,OAAO,EAAET,QAAQ;AACjBU,IAAAA,YAAY,EAAER,QAAAA;GACf,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"useLayout.js","sources":["../../../../src/common/hooks/useLayout/useLayout.ts"],"sourcesContent":["import { Breakpoint } from '../../propsValues/breakpoint';\nimport { useScreenSize } from '../useScreenSize';\n\n/**\n * @deprecated Prefer `useScreenSize` instead.\n */\nexport const useLayout = (): {\n isMobile: boolean | undefined;\n isExtraSmall: boolean | undefined;\n isSmall: boolean | undefined;\n isMedium: boolean | undefined;\n isLarge: boolean | undefined;\n isExtraLarge: boolean | undefined;\n} => {\n const screenXs = useScreenSize(Breakpoint.EXTRA_SMALL);\n const screenSm = useScreenSize(Breakpoint.SMALL);\n const screenMd = useScreenSize(Breakpoint.MEDIUM);\n const screenLg = useScreenSize(Breakpoint.LARGE);\n const screenXl = useScreenSize(Breakpoint.EXTRA_LARGE);\n\n return {\n isMobile: screenSm != null ? !screenSm : undefined,\n isExtraSmall: screenXs,\n isSmall: screenSm,\n isMedium: screenMd,\n isLarge: screenLg,\n isExtraLarge: screenXl,\n };\n};\n"],"names":["useLayout","screenXs","useScreenSize","Breakpoint","EXTRA_SMALL","screenSm","SMALL","screenMd","MEDIUM","screenLg","LARGE","screenXl","EXTRA_LARGE","isMobile","undefined","isExtraSmall","isSmall","isMedium","isLarge","isExtraLarge"],"mappings":";;;;;AAGA;;AAEG;AACUA,MAAAA,SAAS,GAAGA,MAOrB;AACF,EAAA,MAAMC,QAAQ,GAAGC,2BAAa,CAACC,qBAAU,CAACC,WAAW,CAAC;AACtD,EAAA,MAAMC,QAAQ,GAAGH,2BAAa,CAACC,qBAAU,CAACG,KAAK,CAAC;AAChD,EAAA,MAAMC,QAAQ,GAAGL,2BAAa,CAACC,qBAAU,CAACK,MAAM,CAAC;AACjD,EAAA,MAAMC,QAAQ,GAAGP,2BAAa,CAACC,qBAAU,CAACO,KAAK,CAAC;AAChD,EAAA,MAAMC,QAAQ,GAAGT,2BAAa,CAACC,qBAAU,CAACS,WAAW,CAAC;EAEtD,OAAO;IACLC,QAAQ,EAAER,QAAQ,IAAI,IAAI,GAAG,CAACA,QAAQ,GAAGS,SAAS;AAClDC,IAAAA,YAAY,EAAEd,QAAQ;AACtBe,IAAAA,OAAO,EAAEX,QAAQ;AACjBY,IAAAA,QAAQ,EAAEV,QAAQ;AAClBW,IAAAA,OAAO,EAAET,QAAQ;AACjBU,IAAAA,YAAY,EAAER;GACf;AACH;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLayout.mjs","sources":["../../../../src/common/hooks/useLayout/useLayout.ts"],"sourcesContent":["import { Breakpoint } from '../../propsValues/breakpoint';\nimport { useScreenSize } from '../useScreenSize';\n\n/**\n * @deprecated Prefer `useScreenSize` instead.\n */\nexport const useLayout = (): {\n isMobile: boolean | undefined;\n isExtraSmall: boolean | undefined;\n isSmall: boolean | undefined;\n isMedium: boolean | undefined;\n isLarge: boolean | undefined;\n isExtraLarge: boolean | undefined;\n} => {\n const screenXs = useScreenSize(Breakpoint.EXTRA_SMALL);\n const screenSm = useScreenSize(Breakpoint.SMALL);\n const screenMd = useScreenSize(Breakpoint.MEDIUM);\n const screenLg = useScreenSize(Breakpoint.LARGE);\n const screenXl = useScreenSize(Breakpoint.EXTRA_LARGE);\n\n return {\n isMobile: screenSm != null ? !screenSm : undefined,\n isExtraSmall: screenXs,\n isSmall: screenSm,\n isMedium: screenMd,\n isLarge: screenLg,\n isExtraLarge: screenXl,\n };\n};\n"],"names":["useLayout","screenXs","useScreenSize","Breakpoint","EXTRA_SMALL","screenSm","SMALL","screenMd","MEDIUM","screenLg","LARGE","screenXl","EXTRA_LARGE","isMobile","undefined","isExtraSmall","isSmall","isMedium","isLarge","isExtraLarge"],"mappings":";;;AAGA;;AAEG;AACUA,MAAAA,SAAS,GAAGA,MAOrB;AACF,EAAA,MAAMC,QAAQ,GAAGC,aAAa,CAACC,UAAU,CAACC,WAAW,CAAC,CAAA;AACtD,EAAA,MAAMC,QAAQ,GAAGH,aAAa,CAACC,UAAU,CAACG,KAAK,CAAC,CAAA;AAChD,EAAA,MAAMC,QAAQ,GAAGL,aAAa,CAACC,UAAU,CAACK,MAAM,CAAC,CAAA;AACjD,EAAA,MAAMC,QAAQ,GAAGP,aAAa,CAACC,UAAU,CAACO,KAAK,CAAC,CAAA;AAChD,EAAA,MAAMC,QAAQ,GAAGT,aAAa,CAACC,UAAU,CAACS,WAAW,CAAC,CAAA;EAEtD,OAAO;IACLC,QAAQ,EAAER,QAAQ,IAAI,IAAI,GAAG,CAACA,QAAQ,GAAGS,SAAS;AAClDC,IAAAA,YAAY,EAAEd,QAAQ;AACtBe,IAAAA,OAAO,EAAEX,QAAQ;AACjBY,IAAAA,QAAQ,EAAEV,QAAQ;AAClBW,IAAAA,OAAO,EAAET,QAAQ;AACjBU,IAAAA,YAAY,EAAER,QAAAA;GACf,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"useLayout.mjs","sources":["../../../../src/common/hooks/useLayout/useLayout.ts"],"sourcesContent":["import { Breakpoint } from '../../propsValues/breakpoint';\nimport { useScreenSize } from '../useScreenSize';\n\n/**\n * @deprecated Prefer `useScreenSize` instead.\n */\nexport const useLayout = (): {\n isMobile: boolean | undefined;\n isExtraSmall: boolean | undefined;\n isSmall: boolean | undefined;\n isMedium: boolean | undefined;\n isLarge: boolean | undefined;\n isExtraLarge: boolean | undefined;\n} => {\n const screenXs = useScreenSize(Breakpoint.EXTRA_SMALL);\n const screenSm = useScreenSize(Breakpoint.SMALL);\n const screenMd = useScreenSize(Breakpoint.MEDIUM);\n const screenLg = useScreenSize(Breakpoint.LARGE);\n const screenXl = useScreenSize(Breakpoint.EXTRA_LARGE);\n\n return {\n isMobile: screenSm != null ? !screenSm : undefined,\n isExtraSmall: screenXs,\n isSmall: screenSm,\n isMedium: screenMd,\n isLarge: screenLg,\n isExtraLarge: screenXl,\n };\n};\n"],"names":["useLayout","screenXs","useScreenSize","Breakpoint","EXTRA_SMALL","screenSm","SMALL","screenMd","MEDIUM","screenLg","LARGE","screenXl","EXTRA_LARGE","isMobile","undefined","isExtraSmall","isSmall","isMedium","isLarge","isExtraLarge"],"mappings":";;;AAGA;;AAEG;AACUA,MAAAA,SAAS,GAAGA,MAOrB;AACF,EAAA,MAAMC,QAAQ,GAAGC,aAAa,CAACC,UAAU,CAACC,WAAW,CAAC;AACtD,EAAA,MAAMC,QAAQ,GAAGH,aAAa,CAACC,UAAU,CAACG,KAAK,CAAC;AAChD,EAAA,MAAMC,QAAQ,GAAGL,aAAa,CAACC,UAAU,CAACK,MAAM,CAAC;AACjD,EAAA,MAAMC,QAAQ,GAAGP,aAAa,CAACC,UAAU,CAACO,KAAK,CAAC;AAChD,EAAA,MAAMC,QAAQ,GAAGT,aAAa,CAACC,UAAU,CAACS,WAAW,CAAC;EAEtD,OAAO;IACLC,QAAQ,EAAER,QAAQ,IAAI,IAAI,GAAG,CAACA,QAAQ,GAAGS,SAAS;AAClDC,IAAAA,YAAY,EAAEd,QAAQ;AACtBe,IAAAA,OAAO,EAAEX,QAAQ;AACjBY,IAAAA,QAAQ,EAAEV,QAAQ;AAClBW,IAAAA,OAAO,EAAET,QAAQ;AACjBU,IAAAA,YAAY,EAAER;GACf;AACH;;;;"}