@transferwise/components 46.161.1 → 46.161.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (699) hide show
  1. package/build/Accordion/Accordion.js.map +1 -1
  2. package/build/Accordion/Accordion.mjs.map +1 -1
  3. package/build/Accordion/AccordionItem/AccordionItem.js.map +1 -1
  4. package/build/Accordion/AccordionItem/AccordionItem.mjs.map +1 -1
  5. package/build/AvatarLayout/AvatarLayout.js.map +1 -1
  6. package/build/AvatarLayout/AvatarLayout.mjs.map +1 -1
  7. package/build/AvatarView/AvatarView.js.map +1 -1
  8. package/build/AvatarView/AvatarView.mjs.map +1 -1
  9. package/build/AvatarView/Dot/Dot.js.map +1 -1
  10. package/build/AvatarView/Dot/Dot.mjs.map +1 -1
  11. package/build/Body/Body.js.map +1 -1
  12. package/build/Body/Body.mjs.map +1 -1
  13. package/build/Button/Button.js.map +1 -1
  14. package/build/Button/Button.mjs.map +1 -1
  15. package/build/Button/Button.resolver.js.map +1 -1
  16. package/build/Button/Button.resolver.mjs.map +1 -1
  17. package/build/Button/LegacyButton/LegacyButton.js.map +1 -1
  18. package/build/Button/LegacyButton/LegacyButton.mjs.map +1 -1
  19. package/build/Button/LegacyButton/utils/legacyUtils.js.map +1 -1
  20. package/build/Button/LegacyButton/utils/legacyUtils.mjs.map +1 -1
  21. package/build/Button/classMap.js.map +1 -1
  22. package/build/Button/classMap.mjs.map +1 -1
  23. package/build/Calendar/Calendar.constants.js.map +1 -1
  24. package/build/Calendar/Calendar.constants.mjs.map +1 -1
  25. package/build/Calendar/Calendar.js.map +1 -1
  26. package/build/Calendar/Calendar.messages.js.map +1 -1
  27. package/build/Calendar/Calendar.messages.mjs.map +1 -1
  28. package/build/Calendar/Calendar.mjs.map +1 -1
  29. package/build/Calendar/DateHeader/DateHeader.js.map +1 -1
  30. package/build/Calendar/DateHeader/DateHeader.mjs.map +1 -1
  31. package/build/Calendar/DayCalendar/DayCalendar.js.map +1 -1
  32. package/build/Calendar/DayCalendar/DayCalendar.mjs.map +1 -1
  33. package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
  34. package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
  35. package/build/Calendar/GetFocusableTime/GetFocusableTime.js.map +1 -1
  36. package/build/Calendar/GetFocusableTime/GetFocusableTime.mjs.map +1 -1
  37. package/build/Calendar/GetStartOfDay/GetStartOfDay.js.map +1 -1
  38. package/build/Calendar/GetStartOfDay/GetStartOfDay.mjs.map +1 -1
  39. package/build/Calendar/MonthCalendar/MonthCalendar.js.map +1 -1
  40. package/build/Calendar/MonthCalendar/MonthCalendar.mjs.map +1 -1
  41. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
  42. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
  43. package/build/Calendar/TableLink/TableLink.js.map +1 -1
  44. package/build/Calendar/TableLink/TableLink.mjs.map +1 -1
  45. package/build/Calendar/YearCalendar/Table/YearCalendarTable.js.map +1 -1
  46. package/build/Calendar/YearCalendar/Table/YearCalendarTable.mjs.map +1 -1
  47. package/build/Calendar/YearCalendar/YearCalendar.js.map +1 -1
  48. package/build/Calendar/YearCalendar/YearCalendar.mjs.map +1 -1
  49. package/build/Calendar/_helpers/clampToDayViewBoundary/clampToDayViewBoundary.js.map +1 -1
  50. package/build/Calendar/_helpers/clampToDayViewBoundary/clampToDayViewBoundary.mjs.map +1 -1
  51. package/build/Calendar/_helpers/hasDisabledDatesInMonth/hasDisabledDatesInMonth.js.map +1 -1
  52. package/build/Calendar/_helpers/hasDisabledDatesInMonth/hasDisabledDatesInMonth.mjs.map +1 -1
  53. package/build/Calendar/_helpers/isDateDisabled/isDateDisabled.js.map +1 -1
  54. package/build/Calendar/_helpers/isDateDisabled/isDateDisabled.mjs.map +1 -1
  55. package/build/Carousel/Carousel.js.map +1 -1
  56. package/build/Carousel/Carousel.mjs.map +1 -1
  57. package/build/Checkbox/Checkbox.js.map +1 -1
  58. package/build/Checkbox/Checkbox.mjs.map +1 -1
  59. package/build/CheckboxButton/CheckboxButton.js.map +1 -1
  60. package/build/CheckboxButton/CheckboxButton.mjs.map +1 -1
  61. package/build/Chevron/Chevron.js.map +1 -1
  62. package/build/Chevron/Chevron.mjs.map +1 -1
  63. package/build/Chips/Chip/Chip.js.map +1 -1
  64. package/build/Chips/Chip/Chip.mjs.map +1 -1
  65. package/build/Chips/Chips.js.map +1 -1
  66. package/build/Chips/Chips.messages.js.map +1 -1
  67. package/build/Chips/Chips.messages.mjs.map +1 -1
  68. package/build/Chips/Chips.mjs.map +1 -1
  69. package/build/CircularButton/CircularButton.js.map +1 -1
  70. package/build/CircularButton/CircularButton.mjs.map +1 -1
  71. package/build/Container/Container.js.map +1 -1
  72. package/build/Container/Container.mjs.map +1 -1
  73. package/build/DateInput/DateInput.js.map +1 -1
  74. package/build/DateInput/DateInput.messages.js.map +1 -1
  75. package/build/DateInput/DateInput.messages.mjs.map +1 -1
  76. package/build/DateInput/DateInput.mjs.map +1 -1
  77. package/build/DateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +1 -1
  78. package/build/DateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +1 -1
  79. package/build/DateLookup/DateLookup.js.map +1 -1
  80. package/build/DateLookup/DateLookup.mjs.map +1 -1
  81. package/build/DateLookup/DateTrigger/DateTrigger.js.map +1 -1
  82. package/build/DateLookup/DateTrigger/DateTrigger.messages.js.map +1 -1
  83. package/build/DateLookup/DateTrigger/DateTrigger.messages.mjs.map +1 -1
  84. package/build/DateLookup/DateTrigger/DateTrigger.mjs.map +1 -1
  85. package/build/Decision/Decision.js.map +1 -1
  86. package/build/Decision/Decision.mjs.map +1 -1
  87. package/build/DefinitionList/DefinitionList.js.map +1 -1
  88. package/build/DefinitionList/DefinitionList.mjs.map +1 -1
  89. package/build/Dimmer/Dimmer.js.map +1 -1
  90. package/build/Dimmer/Dimmer.mjs.map +1 -1
  91. package/build/Dimmer/dimmerManager/dimmerManager.js.map +1 -1
  92. package/build/Dimmer/dimmerManager/dimmerManager.mjs.map +1 -1
  93. package/build/Display/Display.js.map +1 -1
  94. package/build/Display/Display.mjs.map +1 -1
  95. package/build/Divider/Divider.js.map +1 -1
  96. package/build/Divider/Divider.mjs.map +1 -1
  97. package/build/Drawer/Drawer.js.map +1 -1
  98. package/build/Drawer/Drawer.mjs.map +1 -1
  99. package/build/DropFade/DropFade.js.map +1 -1
  100. package/build/DropFade/DropFade.mjs.map +1 -1
  101. package/build/Emphasis/Emphasis.js.map +1 -1
  102. package/build/Emphasis/Emphasis.mjs.map +1 -1
  103. package/build/Emphasis/EmphasisHtmlTransformer.js.map +1 -1
  104. package/build/Emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
  105. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
  106. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
  107. package/build/ExpressiveMoneyInput/AmountInput/utils.js.map +1 -1
  108. package/build/ExpressiveMoneyInput/AmountInput/utils.mjs.map +1 -1
  109. package/build/ExpressiveMoneyInput/AnimatedNumber/AnimatedNumber.js.map +1 -1
  110. package/build/ExpressiveMoneyInput/AnimatedNumber/AnimatedNumber.mjs.map +1 -1
  111. package/build/ExpressiveMoneyInput/Chevron/Chevron.js.map +1 -1
  112. package/build/ExpressiveMoneyInput/Chevron/Chevron.mjs.map +1 -1
  113. package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.js.map +1 -1
  114. package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.mjs.map +1 -1
  115. package/build/ExpressiveMoneyInput/ExpressiveMoneyInput.js.map +1 -1
  116. package/build/ExpressiveMoneyInput/ExpressiveMoneyInput.messages.js.map +1 -1
  117. package/build/ExpressiveMoneyInput/ExpressiveMoneyInput.messages.mjs.map +1 -1
  118. package/build/ExpressiveMoneyInput/ExpressiveMoneyInput.mjs.map +1 -1
  119. package/build/ExpressiveMoneyInput/hooks/useFocus.js.map +1 -1
  120. package/build/ExpressiveMoneyInput/hooks/useFocus.mjs.map +1 -1
  121. package/build/ExpressiveMoneyInput/hooks/useInputStyle.js.map +1 -1
  122. package/build/ExpressiveMoneyInput/hooks/useInputStyle.mjs.map +1 -1
  123. package/build/Field/Field.js.map +1 -1
  124. package/build/Field/Field.messages.js.map +1 -1
  125. package/build/Field/Field.messages.mjs.map +1 -1
  126. package/build/Field/Field.mjs.map +1 -1
  127. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
  128. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
  129. package/build/FlowNavigation/FlowNavigation.js.map +1 -1
  130. package/build/FlowNavigation/FlowNavigation.messages.js.map +1 -1
  131. package/build/FlowNavigation/FlowNavigation.messages.mjs.map +1 -1
  132. package/build/FlowNavigation/FlowNavigation.mjs.map +1 -1
  133. package/build/Header/Header.js.map +1 -1
  134. package/build/Header/Header.mjs.map +1 -1
  135. package/build/IconButton/IconButton.js.map +1 -1
  136. package/build/IconButton/IconButton.mjs.map +1 -1
  137. package/build/Image/Image.js.map +1 -1
  138. package/build/Image/Image.mjs.map +1 -1
  139. package/build/Info/Info.js.map +1 -1
  140. package/build/Info/Info.messages.js.map +1 -1
  141. package/build/Info/Info.messages.mjs.map +1 -1
  142. package/build/Info/Info.mjs.map +1 -1
  143. package/build/Info/infoPresentations.js.map +1 -1
  144. package/build/Info/infoPresentations.mjs.map +1 -1
  145. package/build/InputWithDisplayFormat/InputWithDisplayFormat.js.map +1 -1
  146. package/build/InputWithDisplayFormat/InputWithDisplayFormat.mjs.map +1 -1
  147. package/build/Inputs/Input/Input.js.map +1 -1
  148. package/build/Inputs/Input/Input.mjs.map +1 -1
  149. package/build/Inputs/InputGroup/InputGroup.js.map +1 -1
  150. package/build/Inputs/InputGroup/InputGroup.mjs.map +1 -1
  151. package/build/Inputs/SearchInput/SearchInput.js.map +1 -1
  152. package/build/Inputs/SearchInput/SearchInput.mjs.map +1 -1
  153. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
  154. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
  155. package/build/Inputs/SelectInput/ButtonInput/SelectInputButtonInput.js.map +1 -1
  156. package/build/Inputs/SelectInput/ButtonInput/SelectInputButtonInput.mjs.map +1 -1
  157. package/build/Inputs/SelectInput/ClearButton/SelectInputClearButton.js.map +1 -1
  158. package/build/Inputs/SelectInput/ClearButton/SelectInputClearButton.mjs.map +1 -1
  159. package/build/Inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.js.map +1 -1
  160. package/build/Inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.mjs.map +1 -1
  161. package/build/Inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.js.map +1 -1
  162. package/build/Inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs.map +1 -1
  163. package/build/Inputs/SelectInput/ItemView/SelectInputItemView.js.map +1 -1
  164. package/build/Inputs/SelectInput/ItemView/SelectInputItemView.mjs.map +1 -1
  165. package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
  166. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
  167. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
  168. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
  169. package/build/Inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.js.map +1 -1
  170. package/build/Inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.mjs.map +1 -1
  171. package/build/Inputs/SelectInput/Options/SelectInputOptions.js.map +1 -1
  172. package/build/Inputs/SelectInput/Options/SelectInputOptions.mjs.map +1 -1
  173. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
  174. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
  175. package/build/Inputs/SelectInput/SelectInput.contexts.js.map +1 -1
  176. package/build/Inputs/SelectInput/SelectInput.contexts.mjs.map +1 -1
  177. package/build/Inputs/SelectInput/SelectInput.js.map +1 -1
  178. package/build/Inputs/SelectInput/SelectInput.messages.js.map +1 -1
  179. package/build/Inputs/SelectInput/SelectInput.messages.mjs.map +1 -1
  180. package/build/Inputs/SelectInput/SelectInput.mjs.map +1 -1
  181. package/build/Inputs/SelectInput/SelectInput.utils.js.map +1 -1
  182. package/build/Inputs/SelectInput/SelectInput.utils.mjs.map +1 -1
  183. package/build/Inputs/SelectInput/TriggerButton/SelectInputTriggerButton.js.map +1 -1
  184. package/build/Inputs/SelectInput/TriggerButton/SelectInputTriggerButton.mjs.map +1 -1
  185. package/build/Inputs/SelectInput/constants.js.map +1 -1
  186. package/build/Inputs/SelectInput/constants.mjs.map +1 -1
  187. package/build/Inputs/SelectInput/hooks/useTypeahead.js.map +1 -1
  188. package/build/Inputs/SelectInput/hooks/useTypeahead.mjs.map +1 -1
  189. package/build/Inputs/TextArea/TextArea.js.map +1 -1
  190. package/build/Inputs/TextArea/TextArea.mjs.map +1 -1
  191. package/build/Inputs/_common.js.map +1 -1
  192. package/build/Inputs/_common.mjs.map +1 -1
  193. package/build/Inputs/contexts.js.map +1 -1
  194. package/build/Inputs/contexts.mjs.map +1 -1
  195. package/build/InstructionsList/InstructionsList.js.map +1 -1
  196. package/build/InstructionsList/InstructionsList.mjs.map +1 -1
  197. package/build/Label/Label.js.map +1 -1
  198. package/build/Label/Label.messages.js.map +1 -1
  199. package/build/Label/Label.messages.mjs.map +1 -1
  200. package/build/Label/Label.mjs.map +1 -1
  201. package/build/Link/Link.js.map +1 -1
  202. package/build/Link/Link.messages.js.map +1 -1
  203. package/build/Link/Link.messages.mjs.map +1 -1
  204. package/build/Link/Link.mjs.map +1 -1
  205. package/build/List/List.js.map +1 -1
  206. package/build/List/List.mjs.map +1 -1
  207. package/build/ListItem/AdditionalInfo/ListItemAdditionalInfo.js.map +1 -1
  208. package/build/ListItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +1 -1
  209. package/build/ListItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
  210. package/build/ListItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
  211. package/build/ListItem/AvatarView/ListItemAvatarView.js.map +1 -1
  212. package/build/ListItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
  213. package/build/ListItem/Button/ListItemButton.js.map +1 -1
  214. package/build/ListItem/Button/ListItemButton.mjs.map +1 -1
  215. package/build/ListItem/Checkbox/ListItemCheckbox.js.map +1 -1
  216. package/build/ListItem/Checkbox/ListItemCheckbox.mjs.map +1 -1
  217. package/build/ListItem/IconButton/ListItemIconButton.js.map +1 -1
  218. package/build/ListItem/IconButton/ListItemIconButton.mjs.map +1 -1
  219. package/build/ListItem/Image/ListItemImage.js.map +1 -1
  220. package/build/ListItem/Image/ListItemImage.mjs.map +1 -1
  221. package/build/ListItem/ListItem.js.map +1 -1
  222. package/build/ListItem/ListItem.mjs.map +1 -1
  223. package/build/ListItem/ListItemContext.js.map +1 -1
  224. package/build/ListItem/ListItemContext.mjs.map +1 -1
  225. package/build/ListItem/Navigation/ListItemNavigation.js.map +1 -1
  226. package/build/ListItem/Navigation/ListItemNavigation.mjs.map +1 -1
  227. package/build/ListItem/Prompt/ListItemPrompt.js.map +1 -1
  228. package/build/ListItem/Prompt/ListItemPrompt.mjs.map +1 -1
  229. package/build/ListItem/Radio/ListItemRadio.js.map +1 -1
  230. package/build/ListItem/Radio/ListItemRadio.mjs.map +1 -1
  231. package/build/ListItem/Switch/ListItemSwitch.js.map +1 -1
  232. package/build/ListItem/Switch/ListItemSwitch.mjs.map +1 -1
  233. package/build/ListItem/useListItemControl.js.map +1 -1
  234. package/build/ListItem/useListItemControl.mjs.map +1 -1
  235. package/build/ListItem/useListItemMedia.js.map +1 -1
  236. package/build/ListItem/useListItemMedia.mjs.map +1 -1
  237. package/build/Loader/Loader.js.map +1 -1
  238. package/build/Loader/Loader.mjs.map +1 -1
  239. package/build/Logo/Logo.js.map +1 -1
  240. package/build/Logo/Logo.mjs.map +1 -1
  241. package/build/Logo/logo-assets.js.map +1 -1
  242. package/build/Logo/logo-assets.mjs.map +1 -1
  243. package/build/Markdown/Markdown.js.map +1 -1
  244. package/build/Markdown/Markdown.mjs.map +1 -1
  245. package/build/Markup/Markup.js.map +1 -1
  246. package/build/Markup/Markup.mjs.map +1 -1
  247. package/build/Markup/constants.js.map +1 -1
  248. package/build/Markup/constants.mjs.map +1 -1
  249. package/build/Markup/utils/parseMarkup.js.map +1 -1
  250. package/build/Markup/utils/parseMarkup.mjs.map +1 -1
  251. package/build/Markup/utils/sanitise.js.map +1 -1
  252. package/build/Markup/utils/sanitise.mjs.map +1 -1
  253. package/build/Modal/Modal.js.map +1 -1
  254. package/build/Modal/Modal.mjs.map +1 -1
  255. package/build/Money/Money.js.map +1 -1
  256. package/build/Money/Money.mjs.map +1 -1
  257. package/build/MoneyInput/MoneyInput.js.map +1 -1
  258. package/build/MoneyInput/MoneyInput.messages.js.map +1 -1
  259. package/build/MoneyInput/MoneyInput.messages.mjs.map +1 -1
  260. package/build/MoneyInput/MoneyInput.mjs.map +1 -1
  261. package/build/MoneyInput/currencyFormatting.js.map +1 -1
  262. package/build/MoneyInput/currencyFormatting.mjs.map +1 -1
  263. package/build/Nudge/Nudge.js.map +1 -1
  264. package/build/Nudge/Nudge.mjs.map +1 -1
  265. package/build/PhoneNumberInput/Data/countries.js.map +1 -1
  266. package/build/PhoneNumberInput/Data/countries.mjs.map +1 -1
  267. package/build/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
  268. package/build/PhoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
  269. package/build/PhoneNumberInput/PhoneNumberInput.messages.mjs.map +1 -1
  270. package/build/PhoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  271. package/build/PhoneNumberInput/utils/cleanNumber/cleanNumber.js.map +1 -1
  272. package/build/PhoneNumberInput/utils/cleanNumber/cleanNumber.mjs.map +1 -1
  273. package/build/PhoneNumberInput/utils/excludeCountries/excludeCountries.js.map +1 -1
  274. package/build/PhoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +1 -1
  275. package/build/PhoneNumberInput/utils/explodeNumberModel/index.js.map +1 -1
  276. package/build/PhoneNumberInput/utils/explodeNumberModel/index.mjs.map +1 -1
  277. package/build/PhoneNumberInput/utils/findCountryByCode/index.js.map +1 -1
  278. package/build/PhoneNumberInput/utils/findCountryByCode/index.mjs.map +1 -1
  279. package/build/PhoneNumberInput/utils/findCountryByPrefix/index.js.map +1 -1
  280. package/build/PhoneNumberInput/utils/findCountryByPrefix/index.mjs.map +1 -1
  281. package/build/PhoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +1 -1
  282. package/build/PhoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +1 -1
  283. package/build/PhoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js.map +1 -1
  284. package/build/PhoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs.map +1 -1
  285. package/build/PhoneNumberInput/utils/longestMatchingPrefix/index.js.map +1 -1
  286. package/build/PhoneNumberInput/utils/longestMatchingPrefix/index.mjs.map +1 -1
  287. package/build/PhoneNumberInput/utils/setDefaultPrefix/index.js.map +1 -1
  288. package/build/PhoneNumberInput/utils/setDefaultPrefix/index.mjs.map +1 -1
  289. package/build/PhoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +1 -1
  290. package/build/PhoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +1 -1
  291. package/build/Popover/Popover.js.map +1 -1
  292. package/build/Popover/Popover.mjs.map +1 -1
  293. package/build/Primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
  294. package/build/Primitives/PrimitiveAnchor/PrimitiveAnchor.mjs.map +1 -1
  295. package/build/Primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
  296. package/build/Primitives/PrimitiveButton/PrimitiveButton.mjs.map +1 -1
  297. package/build/ProcessIndicator/ProcessIndicator.js.map +1 -1
  298. package/build/ProcessIndicator/ProcessIndicator.mjs.map +1 -1
  299. package/build/Progress/Progress.js.map +1 -1
  300. package/build/Progress/Progress.mjs.map +1 -1
  301. package/build/ProgressBar/ProgressBar.js.map +1 -1
  302. package/build/ProgressBar/ProgressBar.mjs.map +1 -1
  303. package/build/PromoCard/CardGroup/PromoCardGroup.js.map +1 -1
  304. package/build/PromoCard/CardGroup/PromoCardGroup.mjs.map +1 -1
  305. package/build/PromoCard/Indicator/PromoCardIndicator.js.map +1 -1
  306. package/build/PromoCard/Indicator/PromoCardIndicator.mjs.map +1 -1
  307. package/build/PromoCard/PromoCard.js.map +1 -1
  308. package/build/PromoCard/PromoCard.mjs.map +1 -1
  309. package/build/PromoCard/PromoCardContext.js.map +1 -1
  310. package/build/PromoCard/PromoCardContext.mjs.map +1 -1
  311. package/build/Prompt/ActionPrompt/ActionPrompt.js.map +1 -1
  312. package/build/Prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
  313. package/build/Prompt/CriticalBanner/CriticalBanner.js.map +1 -1
  314. package/build/Prompt/CriticalBanner/CriticalBanner.mjs.map +1 -1
  315. package/build/Prompt/CriticalBanner/helpers.js.map +1 -1
  316. package/build/Prompt/CriticalBanner/helpers.mjs.map +1 -1
  317. package/build/Prompt/InfoPrompt/InfoPrompt.js.map +1 -1
  318. package/build/Prompt/InfoPrompt/InfoPrompt.mjs.map +1 -1
  319. package/build/Prompt/InlinePrompt/InlinePrompt.js.map +1 -1
  320. package/build/Prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
  321. package/build/Prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
  322. package/build/Prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
  323. package/build/Prompt/common/Expander/Expander.js.map +1 -1
  324. package/build/Prompt/common/Expander/Expander.messages.js.map +1 -1
  325. package/build/Prompt/common/Expander/Expander.messages.mjs.map +1 -1
  326. package/build/Prompt/common/Expander/Expander.mjs.map +1 -1
  327. package/build/Prompt/helpers/promptMedia.js.map +1 -1
  328. package/build/Prompt/helpers/promptMedia.mjs.map +1 -1
  329. package/build/Provider/Direction/DirectionProvider.js.map +1 -1
  330. package/build/Provider/Direction/DirectionProvider.mjs.map +1 -1
  331. package/build/Provider/Language/LanguageProvider.js.map +1 -1
  332. package/build/Provider/Language/LanguageProvider.mjs.map +1 -1
  333. package/build/Provider/Provider.js.map +1 -1
  334. package/build/Provider/Provider.mjs.map +1 -1
  335. package/build/Provider/overlay/OverlayIdProvider.js.map +1 -1
  336. package/build/Provider/overlay/OverlayIdProvider.mjs.map +1 -1
  337. package/build/Radio/Radio.js.map +1 -1
  338. package/build/Radio/Radio.mjs.map +1 -1
  339. package/build/RadioGroup/RadioGroup.js.map +1 -1
  340. package/build/RadioGroup/RadioGroup.mjs.map +1 -1
  341. package/build/Section/Section.js.map +1 -1
  342. package/build/Section/Section.mjs.map +1 -1
  343. package/build/SegmentedControl/SegmentedControl.js.map +1 -1
  344. package/build/SegmentedControl/SegmentedControl.mjs.map +1 -1
  345. package/build/SentimentSurface/SentimentSurface.js.map +1 -1
  346. package/build/SentimentSurface/SentimentSurface.mjs.map +1 -1
  347. package/build/SlidingPanel/SlidingPanel.js.map +1 -1
  348. package/build/SlidingPanel/SlidingPanel.mjs.map +1 -1
  349. package/build/Snackbar/Snackbar.js.map +1 -1
  350. package/build/Snackbar/Snackbar.mjs.map +1 -1
  351. package/build/Snackbar/SnackbarContext.js.map +1 -1
  352. package/build/Snackbar/SnackbarContext.mjs.map +1 -1
  353. package/build/Snackbar/SnackbarProvider.js.map +1 -1
  354. package/build/Snackbar/SnackbarProvider.mjs.map +1 -1
  355. package/build/Snackbar/useSnackbar.js.map +1 -1
  356. package/build/Snackbar/useSnackbar.mjs.map +1 -1
  357. package/build/StatusIcon/StatusIcon.js.map +1 -1
  358. package/build/StatusIcon/StatusIcon.messages.js.map +1 -1
  359. package/build/StatusIcon/StatusIcon.messages.mjs.map +1 -1
  360. package/build/StatusIcon/StatusIcon.mjs.map +1 -1
  361. package/build/Stepper/Stepper.js.map +1 -1
  362. package/build/Stepper/Stepper.mjs.map +1 -1
  363. package/build/Stepper/deviceDetection.js.map +1 -1
  364. package/build/Stepper/deviceDetection.mjs.map +1 -1
  365. package/build/Sticky/Sticky.js.map +1 -1
  366. package/build/Sticky/Sticky.mjs.map +1 -1
  367. package/build/Switch/Switch.js.map +1 -1
  368. package/build/Switch/Switch.mjs.map +1 -1
  369. package/build/Table/Cell/TableCell.js.map +1 -1
  370. package/build/Table/Cell/TableCell.mjs.map +1 -1
  371. package/build/Table/Header/TableHeader.js.map +1 -1
  372. package/build/Table/Header/TableHeader.mjs.map +1 -1
  373. package/build/Table/Row/TableRow.js.map +1 -1
  374. package/build/Table/Row/TableRow.mjs.map +1 -1
  375. package/build/Table/StatusText/TableStatusText.js.map +1 -1
  376. package/build/Table/StatusText/TableStatusText.mjs.map +1 -1
  377. package/build/Table/Table.js.map +1 -1
  378. package/build/Table/Table.messages.js.map +1 -1
  379. package/build/Table/Table.messages.mjs.map +1 -1
  380. package/build/Table/Table.mjs.map +1 -1
  381. package/build/Tabs/Tab/Tab.js.map +1 -1
  382. package/build/Tabs/Tab/Tab.mjs.map +1 -1
  383. package/build/Tabs/TabList/TabList.js.map +1 -1
  384. package/build/Tabs/TabList/TabList.mjs.map +1 -1
  385. package/build/Tabs/TabPanel/TabPanel.js.map +1 -1
  386. package/build/Tabs/TabPanel/TabPanel.mjs.map +1 -1
  387. package/build/Tabs/Tabs.js.map +1 -1
  388. package/build/Tabs/Tabs.mjs.map +1 -1
  389. package/build/Tabs/utils.js.map +1 -1
  390. package/build/Tabs/utils.mjs.map +1 -1
  391. package/build/Tag/Tag.js.map +1 -1
  392. package/build/Tag/Tag.mjs.map +1 -1
  393. package/build/TextareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +1 -1
  394. package/build/TextareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +1 -1
  395. package/build/Tile/Tile.js.map +1 -1
  396. package/build/Tile/Tile.mjs.map +1 -1
  397. package/build/Title/Title.js.map +1 -1
  398. package/build/Title/Title.mjs.map +1 -1
  399. package/build/Tooltip/Tooltip.js.map +1 -1
  400. package/build/Tooltip/Tooltip.mjs.map +1 -1
  401. package/build/Typeahead/Typeahead.js.map +1 -1
  402. package/build/Typeahead/Typeahead.messages.js.map +1 -1
  403. package/build/Typeahead/Typeahead.messages.mjs.map +1 -1
  404. package/build/Typeahead/Typeahead.mjs.map +1 -1
  405. package/build/Typeahead/TypeaheadInput/TypeaheadInput.js.map +1 -1
  406. package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs.map +1 -1
  407. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
  408. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
  409. package/build/Typeahead/Util/highlight.js.map +1 -1
  410. package/build/Typeahead/Util/highlight.mjs.map +1 -1
  411. package/build/Upload/Steps/CompleteStep/CompleteStep.js.map +1 -1
  412. package/build/Upload/Steps/CompleteStep/CompleteStep.mjs.map +1 -1
  413. package/build/Upload/Steps/ProcessingStep/ProcessingStep.js.map +1 -1
  414. package/build/Upload/Steps/ProcessingStep/ProcessingStep.mjs.map +1 -1
  415. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
  416. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
  417. package/build/Upload/Upload.js.map +1 -1
  418. package/build/Upload/Upload.messages.js.map +1 -1
  419. package/build/Upload/Upload.messages.mjs.map +1 -1
  420. package/build/Upload/Upload.mjs.map +1 -1
  421. package/build/Upload/utils/asyncFileRead/asyncFileRead.js.map +1 -1
  422. package/build/Upload/utils/asyncFileRead/asyncFileRead.mjs.map +1 -1
  423. package/build/Upload/utils/getFileType/getFileType.js.map +1 -1
  424. package/build/Upload/utils/getFileType/getFileType.mjs.map +1 -1
  425. package/build/Upload/utils/isSizeValid/isSizeValid.js.map +1 -1
  426. package/build/Upload/utils/isSizeValid/isSizeValid.mjs.map +1 -1
  427. package/build/Upload/utils/isTypeValid/isTypeValid.js.map +1 -1
  428. package/build/Upload/utils/isTypeValid/isTypeValid.mjs.map +1 -1
  429. package/build/Upload/utils/postData/postData.js.map +1 -1
  430. package/build/Upload/utils/postData/postData.mjs.map +1 -1
  431. package/build/UploadInput/UploadButton/UploadButton.js.map +1 -1
  432. package/build/UploadInput/UploadButton/UploadButton.messages.js.map +1 -1
  433. package/build/UploadInput/UploadButton/UploadButton.messages.mjs.map +1 -1
  434. package/build/UploadInput/UploadButton/UploadButton.mjs.map +1 -1
  435. package/build/UploadInput/UploadButton/defaults.js.map +1 -1
  436. package/build/UploadInput/UploadButton/defaults.mjs.map +1 -1
  437. package/build/UploadInput/UploadButton/getAllowedFileTypes.js.map +1 -1
  438. package/build/UploadInput/UploadButton/getAllowedFileTypes.mjs.map +1 -1
  439. package/build/UploadInput/UploadInput.js.map +1 -1
  440. package/build/UploadInput/UploadInput.messages.js.map +1 -1
  441. package/build/UploadInput/UploadInput.messages.mjs.map +1 -1
  442. package/build/UploadInput/UploadInput.mjs.map +1 -1
  443. package/build/UploadInput/UploadItem/UploadItem.js.map +1 -1
  444. package/build/UploadInput/UploadItem/UploadItem.messages.js.map +1 -1
  445. package/build/UploadInput/UploadItem/UploadItem.messages.mjs.map +1 -1
  446. package/build/UploadInput/UploadItem/UploadItem.mjs.map +1 -1
  447. package/build/UploadInput/UploadItem/UploadItemLink.js.map +1 -1
  448. package/build/UploadInput/UploadItem/UploadItemLink.mjs.map +1 -1
  449. package/build/WithDisplayFormat/WithDisplayFormat.js.map +1 -1
  450. package/build/WithDisplayFormat/WithDisplayFormat.mjs.map +1 -1
  451. package/build/WithId/WithId.js.map +1 -1
  452. package/build/WithId/WithId.mjs.map +1 -1
  453. package/build/WithNextPortal/WithNextPortal.js.map +1 -1
  454. package/build/WithNextPortal/WithNextPortal.mjs.map +1 -1
  455. package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
  456. package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
  457. package/build/_deprecated/ActionOption/ActionOption.js.map +1 -1
  458. package/build/_deprecated/ActionOption/ActionOption.mjs.map +1 -1
  459. package/build/_deprecated/Alert/Alert.js.map +1 -1
  460. package/build/_deprecated/Alert/Alert.mjs.map +1 -1
  461. package/build/_deprecated/Alert/InlineMarkdown/InlineMarkdown.js.map +1 -1
  462. package/build/_deprecated/Alert/InlineMarkdown/InlineMarkdown.mjs.map +1 -1
  463. package/build/_deprecated/Avatar/Avatar.js.map +1 -1
  464. package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
  465. package/build/_deprecated/Avatar/types.js.map +1 -1
  466. package/build/_deprecated/Avatar/types.mjs.map +1 -1
  467. package/build/_deprecated/AvatarWrapper/AvatarWrapper.js.map +1 -1
  468. package/build/_deprecated/AvatarWrapper/AvatarWrapper.mjs.map +1 -1
  469. package/build/_deprecated/Badge/Badge.js.map +1 -1
  470. package/build/_deprecated/Badge/Badge.mjs.map +1 -1
  471. package/build/_deprecated/Badge/BadgeAssets.js.map +1 -1
  472. package/build/_deprecated/Badge/BadgeAssets.mjs.map +1 -1
  473. package/build/_deprecated/Card/Card.js.map +1 -1
  474. package/build/_deprecated/Card/Card.mjs.map +1 -1
  475. package/build/_deprecated/CheckboxOption/CheckboxOption.js.map +1 -1
  476. package/build/_deprecated/CheckboxOption/CheckboxOption.mjs.map +1 -1
  477. package/build/_deprecated/CriticalBanner/CriticalCommsBanner.js.map +1 -1
  478. package/build/_deprecated/CriticalBanner/CriticalCommsBanner.mjs.map +1 -1
  479. package/build/_deprecated/InlineAlert/InlineAlert.js.map +1 -1
  480. package/build/_deprecated/InlineAlert/InlineAlert.mjs.map +1 -1
  481. package/build/_deprecated/LegacyListItem/LegacyListItem.js.map +1 -1
  482. package/build/_deprecated/LegacyListItem/LegacyListItem.mjs.map +1 -1
  483. package/build/_deprecated/NavigationOption/NavigationOption.js.map +1 -1
  484. package/build/_deprecated/NavigationOption/NavigationOption.mjs.map +1 -1
  485. package/build/_deprecated/NavigationOptionsList/NavigationOptionsList.js.map +1 -1
  486. package/build/_deprecated/NavigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  487. package/build/_deprecated/OverlayHeader/OverlayHeader.js.map +1 -1
  488. package/build/_deprecated/OverlayHeader/OverlayHeader.mjs.map +1 -1
  489. package/build/_deprecated/RadioOption/RadioOption.js.map +1 -1
  490. package/build/_deprecated/RadioOption/RadioOption.mjs.map +1 -1
  491. package/build/_deprecated/Select/Option/Option.js.map +1 -1
  492. package/build/_deprecated/Select/Option/Option.mjs.map +1 -1
  493. package/build/_deprecated/Select/SearchBox/SearchBox.js.map +1 -1
  494. package/build/_deprecated/Select/SearchBox/SearchBox.mjs.map +1 -1
  495. package/build/_deprecated/Select/Select.js.map +1 -1
  496. package/build/_deprecated/Select/Select.messages.js.map +1 -1
  497. package/build/_deprecated/Select/Select.messages.mjs.map +1 -1
  498. package/build/_deprecated/Select/Select.mjs.map +1 -1
  499. package/build/_deprecated/Summary/Summary.js.map +1 -1
  500. package/build/_deprecated/Summary/Summary.messages.js.map +1 -1
  501. package/build/_deprecated/Summary/Summary.messages.mjs.map +1 -1
  502. package/build/_deprecated/Summary/Summary.mjs.map +1 -1
  503. package/build/_deprecated/SwitchOption/SwitchOption.js.map +1 -1
  504. package/build/_deprecated/SwitchOption/SwitchOption.mjs.map +1 -1
  505. package/build/common/BaseCard/BaseCard.js.map +1 -1
  506. package/build/common/BaseCard/BaseCard.mjs.map +1 -1
  507. package/build/common/BottomSheet/BottomSheet.js.map +1 -1
  508. package/build/common/BottomSheet/BottomSheet.mjs.map +1 -1
  509. package/build/common/Circle/Circle.js.map +1 -1
  510. package/build/common/Circle/Circle.mjs.map +1 -1
  511. package/build/common/CloseButton/CloseButton.js.map +1 -1
  512. package/build/common/CloseButton/CloseButton.messages.js.map +1 -1
  513. package/build/common/CloseButton/CloseButton.messages.mjs.map +1 -1
  514. package/build/common/CloseButton/CloseButton.mjs.map +1 -1
  515. package/build/common/DOMOperations/DOMOperations.js.map +1 -1
  516. package/build/common/DOMOperations/DOMOperations.mjs.map +1 -1
  517. package/build/common/DateUtils/getDateView/getDateView.js.map +1 -1
  518. package/build/common/DateUtils/getDateView/getDateView.mjs.map +1 -1
  519. package/build/common/DateUtils/getDayNames/getDayNames.js.map +1 -1
  520. package/build/common/DateUtils/getDayNames/getDayNames.mjs.map +1 -1
  521. package/build/common/DateUtils/getFormatForLocale/getFormatForLocale.js.map +1 -1
  522. package/build/common/DateUtils/getFormatForLocale/getFormatForLocale.mjs.map +1 -1
  523. package/build/common/DateUtils/getMonthNames/getMonthNames.js.map +1 -1
  524. package/build/common/DateUtils/getMonthNames/getMonthNames.mjs.map +1 -1
  525. package/build/common/DateUtils/isDateValid/isDateValid.js.map +1 -1
  526. package/build/common/DateUtils/isDateValid/isDateValid.mjs.map +1 -1
  527. package/build/common/DateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js.map +1 -1
  528. package/build/common/DateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs.map +1 -1
  529. package/build/common/DateUtils/isWithinRange/isWithinRange.js.map +1 -1
  530. package/build/common/DateUtils/isWithinRange/isWithinRange.mjs.map +1 -1
  531. package/build/common/DateUtils/moveToWithinRange/moveToWithinRange.js.map +1 -1
  532. package/build/common/DateUtils/moveToWithinRange/moveToWithinRange.mjs.map +1 -1
  533. package/build/common/DomHelpers/documentIosClick.js.map +1 -1
  534. package/build/common/DomHelpers/documentIosClick.mjs.map +1 -1
  535. package/build/common/FlowHeader/FlowHeader.js.map +1 -1
  536. package/build/common/FlowHeader/FlowHeader.mjs.map +1 -1
  537. package/build/common/FocusBoundary/FocusBoundary.js.map +1 -1
  538. package/build/common/FocusBoundary/FocusBoundary.mjs.map +1 -1
  539. package/build/common/LiveRegion/LiveRegion.js.map +1 -1
  540. package/build/common/LiveRegion/LiveRegion.mjs.map +1 -1
  541. package/build/common/Locale/index.js.map +1 -1
  542. package/build/common/Locale/index.mjs.map +1 -1
  543. package/build/common/Option/Option.js.map +1 -1
  544. package/build/common/Option/Option.mjs.map +1 -1
  545. package/build/common/Panel/Panel.js.map +1 -1
  546. package/build/common/Panel/Panel.mjs.map +1 -1
  547. package/build/common/Panel/Panel.positionUtils.js.map +1 -1
  548. package/build/common/Panel/Panel.positionUtils.mjs.map +1 -1
  549. package/build/common/PolymorphicWithOverrides/PolymorphicWithOverrides.js.map +1 -1
  550. package/build/common/PolymorphicWithOverrides/PolymorphicWithOverrides.mjs.map +1 -1
  551. package/build/common/PreventScroll/PreventScroll.js.map +1 -1
  552. package/build/common/PreventScroll/PreventScroll.mjs.map +1 -1
  553. package/build/common/PropsValues/control.js.map +1 -1
  554. package/build/common/PropsValues/control.mjs.map +1 -1
  555. package/build/common/PropsValues/dateMode.js.map +1 -1
  556. package/build/common/PropsValues/dateMode.mjs.map +1 -1
  557. package/build/common/PropsValues/layouts.js.map +1 -1
  558. package/build/common/PropsValues/layouts.mjs.map +1 -1
  559. package/build/common/PropsValues/markdownNodeType.js.map +1 -1
  560. package/build/common/PropsValues/markdownNodeType.mjs.map +1 -1
  561. package/build/common/PropsValues/monthFormat.js.map +1 -1
  562. package/build/common/PropsValues/monthFormat.mjs.map +1 -1
  563. package/build/common/PropsValues/position.js.map +1 -1
  564. package/build/common/PropsValues/position.mjs.map +1 -1
  565. package/build/common/PropsValues/profileType.js.map +1 -1
  566. package/build/common/PropsValues/profileType.mjs.map +1 -1
  567. package/build/common/PropsValues/scroll.js.map +1 -1
  568. package/build/common/PropsValues/scroll.mjs.map +1 -1
  569. package/build/common/PropsValues/sentiment.js.map +1 -1
  570. package/build/common/PropsValues/sentiment.mjs.map +1 -1
  571. package/build/common/PropsValues/size.js.map +1 -1
  572. package/build/common/PropsValues/size.mjs.map +1 -1
  573. package/build/common/PropsValues/status.js.map +1 -1
  574. package/build/common/PropsValues/status.mjs.map +1 -1
  575. package/build/common/PropsValues/type.js.map +1 -1
  576. package/build/common/PropsValues/type.mjs.map +1 -1
  577. package/build/common/PropsValues/typography.js.map +1 -1
  578. package/build/common/PropsValues/typography.mjs.map +1 -1
  579. package/build/common/PropsValues/variant.js.map +1 -1
  580. package/build/common/PropsValues/variant.mjs.map +1 -1
  581. package/build/common/PropsValues/width.js.map +1 -1
  582. package/build/common/PropsValues/width.mjs.map +1 -1
  583. package/build/common/RadioButton/RadioButton.js.map +1 -1
  584. package/build/common/RadioButton/RadioButton.mjs.map +1 -1
  585. package/build/common/ResponsivePanel/ResponsivePanel.js.map +1 -1
  586. package/build/common/ResponsivePanel/ResponsivePanel.mjs.map +1 -1
  587. package/build/common/TextFormat/formatWithPattern/formatWithPattern.js.map +1 -1
  588. package/build/common/TextFormat/formatWithPattern/formatWithPattern.mjs.map +1 -1
  589. package/build/common/TextFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js.map +1 -1
  590. package/build/common/TextFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs.map +1 -1
  591. package/build/common/TextFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +1 -1
  592. package/build/common/TextFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +1 -1
  593. package/build/common/TextFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +1 -1
  594. package/build/common/TextFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +1 -1
  595. package/build/common/TextFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +1 -1
  596. package/build/common/TextFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +1 -1
  597. package/build/common/TextFormat/unformatWithPattern/unformatWithPattern.js.map +1 -1
  598. package/build/common/TextFormat/unformatWithPattern/unformatWithPattern.mjs.map +1 -1
  599. package/build/common/colors.js.map +1 -1
  600. package/build/common/colors.mjs.map +1 -1
  601. package/build/common/constants.js.map +1 -1
  602. package/build/common/constants.mjs.map +1 -1
  603. package/build/common/deviceDetection/deviceDetection.js.map +1 -1
  604. package/build/common/deviceDetection/deviceDetection.mjs.map +1 -1
  605. package/build/common/direction.js.map +1 -1
  606. package/build/common/direction.mjs.map +1 -1
  607. package/build/common/fileType.js.map +1 -1
  608. package/build/common/fileType.mjs.map +1 -1
  609. package/build/common/historyNavigator/historyNavigator.js.map +1 -1
  610. package/build/common/historyNavigator/historyNavigator.mjs.map +1 -1
  611. package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +1 -1
  612. package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +1 -1
  613. package/build/common/hooks/useContainerSize.js.map +1 -1
  614. package/build/common/hooks/useContainerSize.mjs.map +1 -1
  615. package/build/common/hooks/useDirection/useDirection.js.map +1 -1
  616. package/build/common/hooks/useDirection/useDirection.mjs.map +1 -1
  617. package/build/common/hooks/useEffectEvent.js.map +1 -1
  618. package/build/common/hooks/useEffectEvent.mjs.map +1 -1
  619. package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
  620. package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +1 -1
  621. package/build/common/hooks/useLayout/useLayout.js.map +1 -1
  622. package/build/common/hooks/useLayout/useLayout.mjs.map +1 -1
  623. package/build/common/hooks/useMedia.js.map +1 -1
  624. package/build/common/hooks/useMedia.mjs.map +1 -1
  625. package/build/common/hooks/useResizeObserver.js.map +1 -1
  626. package/build/common/hooks/useResizeObserver.mjs.map +1 -1
  627. package/build/common/hooks/useScreenSize.js.map +1 -1
  628. package/build/common/hooks/useScreenSize.mjs.map +1 -1
  629. package/build/common/hooks/useVirtualKeyboard.js.map +1 -1
  630. package/build/common/hooks/useVirtualKeyboard.mjs.map +1 -1
  631. package/build/common/initials.js.map +1 -1
  632. package/build/common/initials.mjs.map +1 -1
  633. package/build/common/injectIntl.js.map +1 -1
  634. package/build/common/injectIntl.mjs.map +1 -1
  635. package/build/common/theme.js.map +1 -1
  636. package/build/common/theme.mjs.map +1 -1
  637. package/build/i18n/commonMessages/Button.messages.js.map +1 -1
  638. package/build/i18n/commonMessages/Button.messages.mjs.map +1 -1
  639. package/build/i18n/cs.json.js.map +1 -1
  640. package/build/i18n/cs.json.mjs.map +1 -1
  641. package/build/i18n/de.json.js.map +1 -1
  642. package/build/i18n/de.json.mjs.map +1 -1
  643. package/build/i18n/en.json.js.map +1 -1
  644. package/build/i18n/en.json.mjs.map +1 -1
  645. package/build/i18n/es.json.js.map +1 -1
  646. package/build/i18n/es.json.mjs.map +1 -1
  647. package/build/i18n/fr.json.js.map +1 -1
  648. package/build/i18n/fr.json.mjs.map +1 -1
  649. package/build/i18n/hu.json.js.map +1 -1
  650. package/build/i18n/hu.json.mjs.map +1 -1
  651. package/build/i18n/id.json.js.map +1 -1
  652. package/build/i18n/id.json.mjs.map +1 -1
  653. package/build/i18n/index.js.map +1 -1
  654. package/build/i18n/index.mjs.map +1 -1
  655. package/build/i18n/it.json.js.map +1 -1
  656. package/build/i18n/it.json.mjs.map +1 -1
  657. package/build/i18n/ja.json.js.map +1 -1
  658. package/build/i18n/ja.json.mjs.map +1 -1
  659. package/build/i18n/nl.json.js.map +1 -1
  660. package/build/i18n/nl.json.mjs.map +1 -1
  661. package/build/i18n/pl.json.js.map +1 -1
  662. package/build/i18n/pl.json.mjs.map +1 -1
  663. package/build/i18n/pt.json.js.map +1 -1
  664. package/build/i18n/pt.json.mjs.map +1 -1
  665. package/build/i18n/ro.json.js.map +1 -1
  666. package/build/i18n/ro.json.mjs.map +1 -1
  667. package/build/i18n/ru.json.js.map +1 -1
  668. package/build/i18n/ru.json.mjs.map +1 -1
  669. package/build/i18n/th.json.js.map +1 -1
  670. package/build/i18n/th.json.mjs.map +1 -1
  671. package/build/i18n/tr.json.js.map +1 -1
  672. package/build/i18n/tr.json.mjs.map +1 -1
  673. package/build/i18n/uk.json.js.map +1 -1
  674. package/build/i18n/uk.json.mjs.map +1 -1
  675. package/build/i18n/zh-CN.json.js.map +1 -1
  676. package/build/i18n/zh-CN.json.mjs.map +1 -1
  677. package/build/i18n/zh-HK.json.js.map +1 -1
  678. package/build/i18n/zh-HK.json.mjs.map +1 -1
  679. package/build/main.css +8 -7
  680. package/build/mocks.js.map +1 -1
  681. package/build/mocks.mjs.map +1 -1
  682. package/build/styles/FlowNavigation/FlowNavigation.css +5 -6
  683. package/build/styles/css/neptune-core.css +3 -1
  684. package/build/styles/css/neptune.css +3 -1
  685. package/build/styles/main.css +8 -7
  686. package/build/styles/styles/less/neptune-core.css +3 -1
  687. package/build/styles/styles/less/neptune.css +3 -1
  688. package/build/utilities/cssValueWithUnit.js.map +1 -1
  689. package/build/utilities/cssValueWithUnit.mjs.map +1 -1
  690. package/build/utilities/logActionRequired.js.map +1 -1
  691. package/build/utilities/logActionRequired.mjs.map +1 -1
  692. package/package.json +16 -16
  693. package/src/Body/_stories/Body.test.story.tsx +9 -0
  694. package/src/FlowNavigation/FlowNavigation.css +5 -6
  695. package/src/FlowNavigation/FlowNavigation.less +7 -8
  696. package/src/main.css +8 -7
  697. package/src/styles/less/core/_typography.less +3 -1
  698. package/src/styles/less/neptune-core.css +3 -1
  699. package/src/styles/less/neptune.css +3 -1
@@ -1 +1 @@
1
- {"version":3,"file":"BaseCard.js","sources":["../../../src/common/BaseCard/BaseCard.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { type ReactNode, forwardRef, useRef } from 'react';\n\nimport { CloseButton } from '../CloseButton';\nimport { stopPropagation } from '../DomHelpers';\n\nexport interface BaseCardProps {\n /** Content to display inside Card. */\n children: ReactNode;\n\n /** Optional prop to specify classNames onto the Card */\n className?: string;\n\n /** Optional prop to specify the ID on to Card */\n id?: string;\n\n /** Specify whether the Card is disabled, or not */\n isDisabled?: boolean;\n\n /** Specify whether the Card is sized small or not */\n isSmall?: boolean;\n\n /** Optionally specify Card onDismiss function */\n onDismiss?: () => void;\n\n /** Optional prop to specify the ID used for testing */\n testId?: string;\n}\n\n/**\n * BaseCard component.\n *\n * A BaseCard is a container for content that is used to group related information.\n * It can be used to display information in a structured way, and can be\n * customized with various props to suit different use cases.\n *\n * @param {Object} props - The component props.\n * @param {ReactNode} children - The content to display inside the card.\n * @param {string} className - Optional class name(s) to add to the card container.\n * @param {string} id - Optional ID to add to the card container.\n * @param {boolean} isDisabled - Whether the card is disabled or not.\n * @param {boolean} isSmall - Whether the card is small or not.\n * @param {(event_: MouseEvent<HTMLButtonElement>) => void} onDismiss - Optional function to call when the card is dismissed.\n * @param {string} testId - Optional ID to add to the card container for testing purposes.\n * @returns {React.JSX.Element} - The card component.\n * @example\n * <BaseCard>\n * <p>Hello World!</p>\n * </BaseCard>\n */\nconst BaseCard = forwardRef<HTMLDivElement, BaseCardProps>(\n (\n {\n className,\n children = null,\n id,\n isDisabled = false,\n isSmall = false,\n onDismiss,\n testId,\n ...props\n },\n ref,\n ) => {\n const closeButtonReference = useRef(null);\n\n return (\n <div\n ref={ref}\n className={clsx(\n 'np-Card',\n {\n 'np-Card--small': !!isSmall,\n 'is-disabled': !!isDisabled,\n },\n className,\n )}\n id={id}\n data-testid={testId}\n {...props}\n >\n {onDismiss && (\n <CloseButton\n ref={closeButtonReference}\n className=\"np-Card-closeButton\"\n size={isSmall ? 'sm' : 'md'}\n isDisabled={isDisabled}\n testId=\"close-button\"\n onClick={(e) => {\n stopPropagation(e);\n onDismiss();\n }}\n />\n )}\n {children}\n </div>\n );\n },\n);\n\nBaseCard.displayName = 'Card';\n\nexport default BaseCard;\n"],"names":["BaseCard","forwardRef","className","children","id","isDisabled","isSmall","onDismiss","testId","props","ref","closeButtonReference","useRef","_jsxs","clsx","_jsx","CloseButton","size","onClick","e","stopPropagation","displayName"],"mappings":";;;;;;;;;;AAkDA,MAAMA,QAAQ,gBAAGC,gBAAU,CACzB,CACE;EACEC,SAAS;AACTC,EAAAA,QAAQ,GAAG,IAAI;EACfC,EAAE;AACFC,EAAAA,UAAU,GAAG,KAAK;AAClBC,EAAAA,OAAO,GAAG,KAAK;EACfC,SAAS;EACTC,MAAM;EACN,GAAGC;AAAK,CACT,EACDC,GAAG,KACD;AACF,EAAA,MAAMC,oBAAoB,GAAGC,YAAM,CAAC,IAAI,CAAC;AAEzC,EAAA,oBACEC,eAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,GAAG,EAAEA,GAAI;AACTR,IAAAA,SAAS,EAAEY,SAAI,CACb,SAAS,EACT;MACE,gBAAgB,EAAE,CAAC,CAACR,OAAO;MAC3B,aAAa,EAAE,CAAC,CAACD;KAClB,EACDH,SAAS,CACT;AACFE,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,aAAA,EAAaI,MAAO;AAAA,IAAA,GAChBC,KAAK;AAAAN,IAAAA,QAAA,EAAA,CAERI,SAAS,iBACRQ,cAAA,CAACC,uBAAW,EAAA;AACVN,MAAAA,GAAG,EAAEC,oBAAqB;AAC1BT,MAAAA,SAAS,EAAC,qBAAqB;AAC/Be,MAAAA,IAAI,EAAEX,OAAO,GAAG,IAAI,GAAG,IAAK;AAC5BD,MAAAA,UAAU,EAAEA,UAAW;AACvBG,MAAAA,MAAM,EAAC,cAAc;MACrBU,OAAO,EAAGC,CAAC,IAAI;QACbC,gCAAe,CAACD,CAAC,CAAC;AAClBZ,QAAAA,SAAS,EAAE;AACb,MAAA;KAAE,CAEL,EACAJ,QAAQ;AAAA,GACN,CAAC;AAEV,CAAC;AAGHH,QAAQ,CAACqB,WAAW,GAAG,MAAM;;;;"}
1
+ {"version":3,"file":"BaseCard.js","sources":["../../../src/common/BaseCard/BaseCard.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { type ReactNode, forwardRef, useRef } from 'react';\n\nimport { CloseButton } from '../CloseButton';\nimport { stopPropagation } from '../DomHelpers';\n\nexport interface BaseCardProps {\n /** Content to display inside Card. */\n children: ReactNode;\n\n /** Optional prop to specify classNames onto the Card */\n className?: string;\n\n /** Optional prop to specify the ID on to Card */\n id?: string;\n\n /** Specify whether the Card is disabled, or not */\n isDisabled?: boolean;\n\n /** Specify whether the Card is sized small or not */\n isSmall?: boolean;\n\n /** Optionally specify Card onDismiss function */\n onDismiss?: () => void;\n\n /** Optional prop to specify the ID used for testing */\n testId?: string;\n}\n\n/**\n * BaseCard component.\n *\n * A BaseCard is a container for content that is used to group related information.\n * It can be used to display information in a structured way, and can be\n * customized with various props to suit different use cases.\n *\n * @param {Object} props - The component props.\n * @param {ReactNode} children - The content to display inside the card.\n * @param {string} className - Optional class name(s) to add to the card container.\n * @param {string} id - Optional ID to add to the card container.\n * @param {boolean} isDisabled - Whether the card is disabled or not.\n * @param {boolean} isSmall - Whether the card is small or not.\n * @param {(event_: MouseEvent<HTMLButtonElement>) => void} onDismiss - Optional function to call when the card is dismissed.\n * @param {string} testId - Optional ID to add to the card container for testing purposes.\n * @returns {React.JSX.Element} - The card component.\n * @example\n * <BaseCard>\n * <p>Hello World!</p>\n * </BaseCard>\n */\nconst BaseCard = forwardRef<HTMLDivElement, BaseCardProps>(\n (\n {\n className,\n children = null,\n id,\n isDisabled = false,\n isSmall = false,\n onDismiss,\n testId,\n ...props\n },\n ref,\n ) => {\n const closeButtonReference = useRef(null);\n\n return (\n <div\n ref={ref}\n className={clsx(\n 'np-Card',\n {\n 'np-Card--small': !!isSmall,\n 'is-disabled': !!isDisabled,\n },\n className,\n )}\n id={id}\n data-testid={testId}\n {...props}\n >\n {onDismiss && (\n <CloseButton\n ref={closeButtonReference}\n className=\"np-Card-closeButton\"\n size={isSmall ? 'sm' : 'md'}\n isDisabled={isDisabled}\n testId=\"close-button\"\n onClick={(e) => {\n stopPropagation(e);\n onDismiss();\n }}\n />\n )}\n {children}\n </div>\n );\n },\n);\n\nBaseCard.displayName = 'Card';\n\nexport default BaseCard;\n"],"names":["BaseCard","forwardRef","className","children","id","isDisabled","isSmall","onDismiss","testId","props","ref","closeButtonReference","useRef","_jsxs","clsx","_jsx","CloseButton","size","onClick","e","stopPropagation","displayName"],"mappings":";;;;;;;;;;AAkDA,MAAMA,QAAQ,gBAAGC,gBAAU,CACzB,CACE;EACEC,SAAS;AACTC,EAAAA,QAAQ,GAAG,IAAI;EACfC,EAAE;AACFC,EAAAA,UAAU,GAAG,KAAK;AAClBC,EAAAA,OAAO,GAAG,KAAK;EACfC,SAAS;EACTC,MAAM;EACN,GAAGC;AAAK,CACT,EACDC,GAAG,KACD;AACF,EAAA,MAAMC,oBAAoB,GAAGC,YAAM,CAAC,IAAI,CAAC;AAEzC,EAAA,oBACEC,eAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,GAAG,EAAEA,GAAI;AACTR,IAAAA,SAAS,EAAEY,SAAI,CACb,SAAS,EACT;MACE,gBAAgB,EAAE,CAAC,CAACR,OAAO;MAC3B,aAAa,EAAE,CAAC,CAACD;KAClB,EACDH,SAAS,CACT;AACFE,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,aAAA,EAAaI,MAAO;AAAA,IAAA,GAChBC,KAAK;AAAAN,IAAAA,QAAA,EAAA,CAERI,SAAS,iBACRQ,cAAA,CAACC,uBAAW,EAAA;AACVN,MAAAA,GAAG,EAAEC,oBAAqB;AAC1BT,MAAAA,SAAS,EAAC,qBAAqB;AAC/Be,MAAAA,IAAI,EAAEX,OAAO,GAAG,IAAI,GAAG,IAAK;AAC5BD,MAAAA,UAAU,EAAEA,UAAW;AACvBG,MAAAA,MAAM,EAAC,cAAc;MACrBU,OAAO,EAAGC,CAAC,IAAI;QACbC,gCAAe,CAACD,CAAC,CAAC;AAClBZ,QAAAA,SAAS,EAAE;AACb,MAAA;KAAE,CAEL,EACAJ,QAAQ;AAAA,GACN,CAAC;AAEV,CAAC;AAGHH,QAAQ,CAACqB,WAAW,GAAG,MAAM;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"BaseCard.mjs","sources":["../../../src/common/BaseCard/BaseCard.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { type ReactNode, forwardRef, useRef } from 'react';\n\nimport { CloseButton } from '../CloseButton';\nimport { stopPropagation } from '../DomHelpers';\n\nexport interface BaseCardProps {\n /** Content to display inside Card. */\n children: ReactNode;\n\n /** Optional prop to specify classNames onto the Card */\n className?: string;\n\n /** Optional prop to specify the ID on to Card */\n id?: string;\n\n /** Specify whether the Card is disabled, or not */\n isDisabled?: boolean;\n\n /** Specify whether the Card is sized small or not */\n isSmall?: boolean;\n\n /** Optionally specify Card onDismiss function */\n onDismiss?: () => void;\n\n /** Optional prop to specify the ID used for testing */\n testId?: string;\n}\n\n/**\n * BaseCard component.\n *\n * A BaseCard is a container for content that is used to group related information.\n * It can be used to display information in a structured way, and can be\n * customized with various props to suit different use cases.\n *\n * @param {Object} props - The component props.\n * @param {ReactNode} children - The content to display inside the card.\n * @param {string} className - Optional class name(s) to add to the card container.\n * @param {string} id - Optional ID to add to the card container.\n * @param {boolean} isDisabled - Whether the card is disabled or not.\n * @param {boolean} isSmall - Whether the card is small or not.\n * @param {(event_: MouseEvent<HTMLButtonElement>) => void} onDismiss - Optional function to call when the card is dismissed.\n * @param {string} testId - Optional ID to add to the card container for testing purposes.\n * @returns {React.JSX.Element} - The card component.\n * @example\n * <BaseCard>\n * <p>Hello World!</p>\n * </BaseCard>\n */\nconst BaseCard = forwardRef<HTMLDivElement, BaseCardProps>(\n (\n {\n className,\n children = null,\n id,\n isDisabled = false,\n isSmall = false,\n onDismiss,\n testId,\n ...props\n },\n ref,\n ) => {\n const closeButtonReference = useRef(null);\n\n return (\n <div\n ref={ref}\n className={clsx(\n 'np-Card',\n {\n 'np-Card--small': !!isSmall,\n 'is-disabled': !!isDisabled,\n },\n className,\n )}\n id={id}\n data-testid={testId}\n {...props}\n >\n {onDismiss && (\n <CloseButton\n ref={closeButtonReference}\n className=\"np-Card-closeButton\"\n size={isSmall ? 'sm' : 'md'}\n isDisabled={isDisabled}\n testId=\"close-button\"\n onClick={(e) => {\n stopPropagation(e);\n onDismiss();\n }}\n />\n )}\n {children}\n </div>\n );\n },\n);\n\nBaseCard.displayName = 'Card';\n\nexport default BaseCard;\n"],"names":["BaseCard","forwardRef","className","children","id","isDisabled","isSmall","onDismiss","testId","props","ref","closeButtonReference","useRef","_jsxs","clsx","_jsx","CloseButton","size","onClick","e","stopPropagation","displayName"],"mappings":";;;;;;AAkDA,MAAMA,QAAQ,gBAAGC,UAAU,CACzB,CACE;EACEC,SAAS;AACTC,EAAAA,QAAQ,GAAG,IAAI;EACfC,EAAE;AACFC,EAAAA,UAAU,GAAG,KAAK;AAClBC,EAAAA,OAAO,GAAG,KAAK;EACfC,SAAS;EACTC,MAAM;EACN,GAAGC;AAAK,CACT,EACDC,GAAG,KACD;AACF,EAAA,MAAMC,oBAAoB,GAAGC,MAAM,CAAC,IAAI,CAAC;AAEzC,EAAA,oBACEC,IAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,GAAG,EAAEA,GAAI;AACTR,IAAAA,SAAS,EAAEY,IAAI,CACb,SAAS,EACT;MACE,gBAAgB,EAAE,CAAC,CAACR,OAAO;MAC3B,aAAa,EAAE,CAAC,CAACD;KAClB,EACDH,SAAS,CACT;AACFE,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,aAAA,EAAaI,MAAO;AAAA,IAAA,GAChBC,KAAK;AAAAN,IAAAA,QAAA,EAAA,CAERI,SAAS,iBACRQ,GAAA,CAACC,WAAW,EAAA;AACVN,MAAAA,GAAG,EAAEC,oBAAqB;AAC1BT,MAAAA,SAAS,EAAC,qBAAqB;AAC/Be,MAAAA,IAAI,EAAEX,OAAO,GAAG,IAAI,GAAG,IAAK;AAC5BD,MAAAA,UAAU,EAAEA,UAAW;AACvBG,MAAAA,MAAM,EAAC,cAAc;MACrBU,OAAO,EAAGC,CAAC,IAAI;QACbC,eAAe,CAACD,CAAC,CAAC;AAClBZ,QAAAA,SAAS,EAAE;AACb,MAAA;KAAE,CAEL,EACAJ,QAAQ;AAAA,GACN,CAAC;AAEV,CAAC;AAGHH,QAAQ,CAACqB,WAAW,GAAG,MAAM;;;;"}
1
+ {"version":3,"file":"BaseCard.mjs","sources":["../../../src/common/BaseCard/BaseCard.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { type ReactNode, forwardRef, useRef } from 'react';\n\nimport { CloseButton } from '../CloseButton';\nimport { stopPropagation } from '../DomHelpers';\n\nexport interface BaseCardProps {\n /** Content to display inside Card. */\n children: ReactNode;\n\n /** Optional prop to specify classNames onto the Card */\n className?: string;\n\n /** Optional prop to specify the ID on to Card */\n id?: string;\n\n /** Specify whether the Card is disabled, or not */\n isDisabled?: boolean;\n\n /** Specify whether the Card is sized small or not */\n isSmall?: boolean;\n\n /** Optionally specify Card onDismiss function */\n onDismiss?: () => void;\n\n /** Optional prop to specify the ID used for testing */\n testId?: string;\n}\n\n/**\n * BaseCard component.\n *\n * A BaseCard is a container for content that is used to group related information.\n * It can be used to display information in a structured way, and can be\n * customized with various props to suit different use cases.\n *\n * @param {Object} props - The component props.\n * @param {ReactNode} children - The content to display inside the card.\n * @param {string} className - Optional class name(s) to add to the card container.\n * @param {string} id - Optional ID to add to the card container.\n * @param {boolean} isDisabled - Whether the card is disabled or not.\n * @param {boolean} isSmall - Whether the card is small or not.\n * @param {(event_: MouseEvent<HTMLButtonElement>) => void} onDismiss - Optional function to call when the card is dismissed.\n * @param {string} testId - Optional ID to add to the card container for testing purposes.\n * @returns {React.JSX.Element} - The card component.\n * @example\n * <BaseCard>\n * <p>Hello World!</p>\n * </BaseCard>\n */\nconst BaseCard = forwardRef<HTMLDivElement, BaseCardProps>(\n (\n {\n className,\n children = null,\n id,\n isDisabled = false,\n isSmall = false,\n onDismiss,\n testId,\n ...props\n },\n ref,\n ) => {\n const closeButtonReference = useRef(null);\n\n return (\n <div\n ref={ref}\n className={clsx(\n 'np-Card',\n {\n 'np-Card--small': !!isSmall,\n 'is-disabled': !!isDisabled,\n },\n className,\n )}\n id={id}\n data-testid={testId}\n {...props}\n >\n {onDismiss && (\n <CloseButton\n ref={closeButtonReference}\n className=\"np-Card-closeButton\"\n size={isSmall ? 'sm' : 'md'}\n isDisabled={isDisabled}\n testId=\"close-button\"\n onClick={(e) => {\n stopPropagation(e);\n onDismiss();\n }}\n />\n )}\n {children}\n </div>\n );\n },\n);\n\nBaseCard.displayName = 'Card';\n\nexport default BaseCard;\n"],"names":["BaseCard","forwardRef","className","children","id","isDisabled","isSmall","onDismiss","testId","props","ref","closeButtonReference","useRef","_jsxs","clsx","_jsx","CloseButton","size","onClick","e","stopPropagation","displayName"],"mappings":";;;;;;AAkDA,MAAMA,QAAQ,gBAAGC,UAAU,CACzB,CACE;EACEC,SAAS;AACTC,EAAAA,QAAQ,GAAG,IAAI;EACfC,EAAE;AACFC,EAAAA,UAAU,GAAG,KAAK;AAClBC,EAAAA,OAAO,GAAG,KAAK;EACfC,SAAS;EACTC,MAAM;EACN,GAAGC;AAAK,CACT,EACDC,GAAG,KACD;AACF,EAAA,MAAMC,oBAAoB,GAAGC,MAAM,CAAC,IAAI,CAAC;AAEzC,EAAA,oBACEC,IAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,GAAG,EAAEA,GAAI;AACTR,IAAAA,SAAS,EAAEY,IAAI,CACb,SAAS,EACT;MACE,gBAAgB,EAAE,CAAC,CAACR,OAAO;MAC3B,aAAa,EAAE,CAAC,CAACD;KAClB,EACDH,SAAS,CACT;AACFE,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,aAAA,EAAaI,MAAO;AAAA,IAAA,GAChBC,KAAK;AAAAN,IAAAA,QAAA,EAAA,CAERI,SAAS,iBACRQ,GAAA,CAACC,WAAW,EAAA;AACVN,MAAAA,GAAG,EAAEC,oBAAqB;AAC1BT,MAAAA,SAAS,EAAC,qBAAqB;AAC/Be,MAAAA,IAAI,EAAEX,OAAO,GAAG,IAAI,GAAG,IAAK;AAC5BD,MAAAA,UAAU,EAAEA,UAAW;AACvBG,MAAAA,MAAM,EAAC,cAAc;MACrBU,OAAO,EAAGC,CAAC,IAAI;QACbC,eAAe,CAACD,CAAC,CAAC;AAClBZ,QAAAA,SAAS,EAAE;AACb,MAAA;KAAE,CAEL,EACAJ,QAAQ;AAAA,GACN,CAAC;AAEV,CAAC;AAGHH,QAAQ,CAACqB,WAAW,GAAG,MAAM;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.js","sources":["../../../src/common/BottomSheet/BottomSheet.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport {\n CSSProperties,\n HTMLAttributes,\n PropsWithChildren,\n SyntheticEvent,\n useContext,\n useRef,\n useState,\n} from 'react';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\n\nimport Dimmer from '../../Dimmer';\nimport Drawer from '../../Drawer';\nimport { OverlayIdContext } from '../../Provider/overlay/OverlayIdProvider';\nimport SlidingPanel from '../../SlidingPanel';\nimport { CloseButton } from '../CloseButton';\nimport { CommonProps } from '../commonProps';\nimport { isServerSide } from '../DomHelpers';\nimport { useConditionalListener } from '../hooks';\nimport { useMedia } from '../hooks/useMedia';\nimport { Position } from '../PropsValues/position';\n\nconst INITIAL_Y_POSITION = 0;\n\nconst CONTENT_SCROLL_THRESHOLD = 1;\n\nconst MOVE_OFFSET_THRESHOLD = 50;\n\nexport type BottomSheetProps = PropsWithChildren<\n {\n onClose?: (event: Event | SyntheticEvent) => void;\n open: boolean;\n } & CommonProps &\n Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-labelledby' | 'aria-label'>\n>;\n\n/**\n * Neptune: https://transferwise.github.io/neptune/components/bottom-sheet/\n *\n * Neptune Web: https://transferwise.github.io/neptune-web/components/overlays/BottomSheet\n *\n */\nconst BottomSheet = ({ role = 'dialog', ...props }: BottomSheetProps) => {\n const bottomSheetReference = useRef<HTMLDivElement>(null);\n const topBarReference = useRef<HTMLDivElement>(null);\n const contentReference = useRef<HTMLDivElement>(null);\n\n const [pressed, setPressed] = useState<boolean>(false);\n\n /**\n * Used to track `requestAnimationFrame` requests\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#return_value\n */\n const animationId = useRef<number>(0);\n\n /**\n * Difference between initial coordinate ({@link initialYCoordinate})\n * and new position (when user moves component), it's get calculated on `onTouchMove` and `onMouseMove` events\n *\n * @see {@link calculateOffsetAfterMove}\n */\n const moveOffset = useRef<number>(0);\n const initialYCoordinate = useRef<number>(0);\n\n // apply shadow to the bottom of top-bar when scroll over content\n useConditionalListener({\n attachListener: props.open && !isServerSide(),\n callback: () => {\n if (topBarReference.current !== null) {\n const { classList } = topBarReference.current;\n if (!isContentScrollPositionAtTop()) {\n classList.add('np-bottom-sheet--top-bar--shadow');\n } else {\n classList.remove('np-bottom-sheet--top-bar--shadow');\n }\n }\n },\n eventType: 'scroll',\n parent: isServerSide() ? undefined : document,\n });\n\n function move(newHeight: number): void {\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.transform = `translateY(${newHeight}px)`;\n }\n }\n\n function close(event: Event | SyntheticEvent): void {\n setPressed(false);\n moveOffset.current = INITIAL_Y_POSITION;\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.removeProperty('transform');\n }\n if (props.onClose) {\n props.onClose(event);\n }\n }\n\n const onSwipeStart = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n initialYCoordinate.current = ('touches' in event ? event.touches[0] : event).clientY;\n setPressed(true);\n };\n\n const onSwipeMove = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n if (pressed) {\n const { clientY } = 'touches' in event ? event.touches[0] : event;\n\n const offset = calculateOffsetAfterMove(clientY);\n // check whether move is to the bottom only and content scroll position is at the top\n if (offset > INITIAL_Y_POSITION && isContentScrollPositionAtTop()) {\n moveOffset.current = offset;\n animationId.current = requestAnimationFrame(() => {\n if (animationId.current !== undefined && bottomSheetReference.current !== null) {\n move(offset);\n }\n });\n }\n }\n };\n\n function onSwipeEnd(\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void {\n // stop moving component\n cancelAnimationFrame(animationId.current);\n setPressed(false);\n // check whether move down is strong enough\n // and content scroll position is at the top to close the component\n if (moveOffset.current > MOVE_OFFSET_THRESHOLD && isContentScrollPositionAtTop()) {\n close(event);\n }\n // otherwise move component back to default (initial) position\n else {\n move(INITIAL_Y_POSITION);\n }\n moveOffset.current = INITIAL_Y_POSITION;\n }\n\n function isContentScrollPositionAtTop(): boolean {\n return (\n contentReference?.current?.scrollTop !== undefined &&\n contentReference.current.scrollTop <= CONTENT_SCROLL_THRESHOLD\n );\n }\n\n /**\n * Calculates how hard user moves component,\n * result value used to determine whether to hide component or re-position to default state\n *\n * @param afterMoveYCoordinate\n */\n function calculateOffsetAfterMove(afterMoveYCoordinate: number): number {\n return afterMoveYCoordinate - initialYCoordinate.current;\n }\n\n /**\n * Set `max-height` for content part (in order to keep it scrollable for content overflow cases) of the component\n * and ensures space for safe zone (32px) at the top.\n */\n function setContentMaxHeight(): CSSProperties {\n const safeZoneHeight = '64px';\n const topbarHeight = '32px';\n const windowHight: number = isServerSide() ? 0 : window.innerHeight;\n /**\n * Calculate _real_ height of the screen (taking into account parts of browser interface).\n *\n * See https://css-tricks.com/the-trick-to-viewport-units-on-mobile for more details.\n */\n const screenHeight = `${windowHight * 0.01 * 100}px`;\n return {\n maxHeight: `calc(${screenHeight} - ${safeZoneHeight} - ${topbarHeight})`,\n };\n }\n\n const is400Zoom = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n\n const overlayId = useContext(OverlayIdContext);\n\n return is400Zoom ? (\n <Drawer\n aria-labelledby={props['aria-labelledby']}\n aria-label={props['aria-label']}\n role={role}\n open={props.open}\n className={props.className}\n onClose={close}\n >\n {props.children}\n </Drawer>\n ) : (\n <Dimmer open={props.open} fadeContentOnEnter fadeContentOnExit onClose={close}>\n <SlidingPanel\n ref={bottomSheetReference}\n open={props.open}\n position={Position.BOTTOM}\n className={clsx('np-bottom-sheet', props.className)}\n >\n <div\n id={overlayId}\n aria-labelledby={props['aria-labelledby'] || undefined}\n aria-label={props['aria-label'] || undefined}\n role={role}\n aria-modal\n onTouchStart={onSwipeStart}\n onTouchMove={onSwipeMove}\n onTouchEnd={onSwipeEnd}\n onMouseDown={onSwipeStart}\n onMouseMove={onSwipeMove}\n onMouseUp={onSwipeEnd}\n >\n <div ref={topBarReference} className=\"np-bottom-sheet--top-bar\">\n <div className=\"np-bottom-sheet--handler\" />\n <CloseButton size=\"sm\" className=\"sr-only np-bottom-sheet--close-btn\" onClick={close} />\n </div>\n <div\n ref={contentReference}\n style={setContentMaxHeight()}\n className=\"np-bottom-sheet--content\"\n >\n {props.children}\n </div>\n </div>\n </SlidingPanel>\n </Dimmer>\n );\n};\n\nexport default BottomSheet;\n"],"names":["INITIAL_Y_POSITION","CONTENT_SCROLL_THRESHOLD","MOVE_OFFSET_THRESHOLD","BottomSheet","role","props","bottomSheetReference","useRef","topBarReference","contentReference","pressed","setPressed","useState","animationId","moveOffset","initialYCoordinate","useConditionalListener","attachListener","open","isServerSide","callback","current","classList","isContentScrollPositionAtTop","add","remove","eventType","parent","undefined","document","move","newHeight","style","transform","close","event","removeProperty","onClose","onSwipeStart","touches","clientY","onSwipeMove","offset","calculateOffsetAfterMove","requestAnimationFrame","onSwipeEnd","cancelAnimationFrame","scrollTop","afterMoveYCoordinate","setContentMaxHeight","safeZoneHeight","topbarHeight","windowHight","window","innerHeight","screenHeight","maxHeight","is400Zoom","useMedia","Breakpoint","EXTRA_SMALL","overlayId","useContext","OverlayIdContext","_jsx","Drawer","className","children","Dimmer","fadeContentOnEnter","fadeContentOnExit","SlidingPanel","ref","position","Position","BOTTOM","clsx","_jsxs","id","onTouchStart","onTouchMove","onTouchEnd","onMouseDown","onMouseMove","onMouseUp","CloseButton","size","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,wBAAwB,GAAG,CAAC;AAElC,MAAMC,qBAAqB,GAAG,EAAE;AAUhC;;;;;AAKG;AACH,MAAMC,WAAW,GAAGA,CAAC;A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EAAE5C,YAAa;AAC1B6C,QAAAA,WAAW,EAAE1C,WAAY;AACzB2C,QAAAA,SAAS,EAAEvC,UAAW;AAAAsB,QAAAA,QAAA,gBAEtBU,eAAA,CAAA,KAAA,EAAA;AAAKL,UAAAA,GAAG,EAAEhE,eAAgB;AAAC0D,UAAAA,SAAS,EAAC,0BAA0B;AAAAC,UAAAA,QAAA,gBAC7DH,cAAA,CAAA,KAAA,EAAA;AAAKE,YAAAA,SAAS,EAAC;AAA0B,WAAA,CACzC,eAAAF,cAAA,CAACqB,uBAAW,EAAA;AAACC,YAAAA,IAAI,EAAC,IAAI;AAACpB,YAAAA,SAAS,EAAC,oCAAoC;AAACqB,YAAAA,OAAO,EAAErD;AAAM,WAAA,CACvF;SAAK,CACL,eAAA8B,cAAA,CAAA,KAAA,EAAA;AACEQ,UAAAA,GAAG,EAAE/D,gBAAiB;UACtBuB,KAAK,EAAEiB,mBAAmB,EAAG;AAC7BiB,UAAAA,SAAS,EAAC,0BAA0B;UAAAC,QAAA,EAEnC9D,KAAK,CAAC8D;AAAQ,SACZ,CACP;OAAK;KACO;AAChB,GAAQ,CACT;AACH;;;;"}
1
+ {"version":3,"file":"BottomSheet.js","sources":["../../../src/common/BottomSheet/BottomSheet.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport {\n CSSProperties,\n HTMLAttributes,\n PropsWithChildren,\n SyntheticEvent,\n useContext,\n useRef,\n useState,\n} from 'react';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\n\nimport Dimmer from '../../Dimmer';\nimport Drawer from '../../Drawer';\nimport { OverlayIdContext } from '../../Provider/overlay/OverlayIdProvider';\nimport SlidingPanel from '../../SlidingPanel';\nimport { CloseButton } from '../CloseButton';\nimport { CommonProps } from '../commonProps';\nimport { isServerSide } from '../DomHelpers';\nimport { useConditionalListener } from '../hooks';\nimport { useMedia } from '../hooks/useMedia';\nimport { Position } from '../PropsValues/position';\n\nconst INITIAL_Y_POSITION = 0;\n\nconst CONTENT_SCROLL_THRESHOLD = 1;\n\nconst MOVE_OFFSET_THRESHOLD = 50;\n\nexport type BottomSheetProps = PropsWithChildren<\n {\n onClose?: (event: Event | SyntheticEvent) => void;\n open: boolean;\n } & CommonProps &\n Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-labelledby' | 'aria-label'>\n>;\n\n/**\n * Neptune: https://transferwise.github.io/neptune/components/bottom-sheet/\n *\n * Neptune Web: https://transferwise.github.io/neptune-web/components/overlays/BottomSheet\n *\n */\nconst BottomSheet = ({ role = 'dialog', ...props }: BottomSheetProps) => {\n const bottomSheetReference = useRef<HTMLDivElement>(null);\n const topBarReference = useRef<HTMLDivElement>(null);\n const contentReference = useRef<HTMLDivElement>(null);\n\n const [pressed, setPressed] = useState<boolean>(false);\n\n /**\n * Used to track `requestAnimationFrame` requests\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#return_value\n */\n const animationId = useRef<number>(0);\n\n /**\n * Difference between initial coordinate ({@link initialYCoordinate})\n * and new position (when user moves component), it's get calculated on `onTouchMove` and `onMouseMove` events\n *\n * @see {@link calculateOffsetAfterMove}\n */\n const moveOffset = useRef<number>(0);\n const initialYCoordinate = useRef<number>(0);\n\n // apply shadow to the bottom of top-bar when scroll over content\n useConditionalListener({\n attachListener: props.open && !isServerSide(),\n callback: () => {\n if (topBarReference.current !== null) {\n const { classList } = topBarReference.current;\n if (!isContentScrollPositionAtTop()) {\n classList.add('np-bottom-sheet--top-bar--shadow');\n } else {\n classList.remove('np-bottom-sheet--top-bar--shadow');\n }\n }\n },\n eventType: 'scroll',\n parent: isServerSide() ? undefined : document,\n });\n\n function move(newHeight: number): void {\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.transform = `translateY(${newHeight}px)`;\n }\n }\n\n function close(event: Event | SyntheticEvent): void {\n setPressed(false);\n moveOffset.current = INITIAL_Y_POSITION;\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.removeProperty('transform');\n }\n if (props.onClose) {\n props.onClose(event);\n }\n }\n\n const onSwipeStart = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n initialYCoordinate.current = ('touches' in event ? event.touches[0] : event).clientY;\n setPressed(true);\n };\n\n const onSwipeMove = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n if (pressed) {\n const { clientY } = 'touches' in event ? event.touches[0] : event;\n\n const offset = calculateOffsetAfterMove(clientY);\n // check whether move is to the bottom only and content scroll position is at the top\n if (offset > INITIAL_Y_POSITION && isContentScrollPositionAtTop()) {\n moveOffset.current = offset;\n animationId.current = requestAnimationFrame(() => {\n if (animationId.current !== undefined && bottomSheetReference.current !== null) {\n move(offset);\n }\n });\n }\n }\n };\n\n function onSwipeEnd(\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void {\n // stop moving component\n cancelAnimationFrame(animationId.current);\n setPressed(false);\n // check whether move down is strong enough\n // and content scroll position is at the top to close the component\n if (moveOffset.current > MOVE_OFFSET_THRESHOLD && isContentScrollPositionAtTop()) {\n close(event);\n }\n // otherwise move component back to default (initial) position\n else {\n move(INITIAL_Y_POSITION);\n }\n moveOffset.current = INITIAL_Y_POSITION;\n }\n\n function isContentScrollPositionAtTop(): boolean {\n return (\n contentReference?.current?.scrollTop !== undefined &&\n contentReference.current.scrollTop <= CONTENT_SCROLL_THRESHOLD\n );\n }\n\n /**\n * Calculates how hard user moves component,\n * result value used to determine whether to hide component or re-position to default state\n *\n * @param afterMoveYCoordinate\n */\n function calculateOffsetAfterMove(afterMoveYCoordinate: number): number {\n return afterMoveYCoordinate - initialYCoordinate.current;\n }\n\n /**\n * Set `max-height` for content part (in order to keep it scrollable for content overflow cases) of the component\n * and ensures space for safe zone (32px) at the top.\n */\n function setContentMaxHeight(): CSSProperties {\n const safeZoneHeight = '64px';\n const topbarHeight = '32px';\n const windowHight: number = isServerSide() ? 0 : window.innerHeight;\n /**\n * Calculate _real_ height of the screen (taking into account parts of browser interface).\n *\n * See https://css-tricks.com/the-trick-to-viewport-units-on-mobile for more details.\n */\n const screenHeight = `${windowHight * 0.01 * 100}px`;\n return {\n maxHeight: `calc(${screenHeight} - ${safeZoneHeight} - ${topbarHeight})`,\n };\n }\n\n const is400Zoom = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n\n const overlayId = useContext(OverlayIdContext);\n\n return is400Zoom ? (\n <Drawer\n aria-labelledby={props['aria-labelledby']}\n aria-label={props['aria-label']}\n role={role}\n open={props.open}\n className={props.className}\n onClose={close}\n >\n {props.children}\n </Drawer>\n ) : (\n <Dimmer open={props.open} fadeContentOnEnter fadeContentOnExit onClose={close}>\n <SlidingPanel\n ref={bottomSheetReference}\n open={props.open}\n position={Position.BOTTOM}\n className={clsx('np-bottom-sheet', props.className)}\n >\n <div\n id={overlayId}\n aria-labelledby={props['aria-labelledby'] || undefined}\n aria-label={props['aria-label'] || undefined}\n role={role}\n aria-modal\n onTouchStart={onSwipeStart}\n onTouchMove={onSwipeMove}\n onTouchEnd={onSwipeEnd}\n onMouseDown={onSwipeStart}\n onMouseMove={onSwipeMove}\n onMouseUp={onSwipeEnd}\n >\n <div ref={topBarReference} className=\"np-bottom-sheet--top-bar\">\n <div className=\"np-bottom-sheet--handler\" />\n <CloseButton size=\"sm\" className=\"sr-only np-bottom-sheet--close-btn\" onClick={close} />\n </div>\n <div\n ref={contentReference}\n style={setContentMaxHeight()}\n className=\"np-bottom-sheet--content\"\n >\n {props.children}\n </div>\n </div>\n </SlidingPanel>\n </Dimmer>\n );\n};\n\nexport default BottomSheet;\n"],"names":["INITIAL_Y_POSITION","CONTENT_SCROLL_THRESHOLD","MOVE_OFFSET_THRESHOLD","BottomSheet","role","props","bottomSheetReference","useRef","topBarReference","contentReference","pressed","setPressed","useState","animationId","moveOffset","initialYCoordinate","useConditionalListener","attachListener","open","isServerSide","callback","current","classList","isContentScrollPositionAtTop","add","remove","eventType","parent","undefined","document","move","newHeight","style","transform","close","event","removeProperty","onClose","onSwipeStart","touches","clientY","onSwipeMove","offset","calculateOffsetAfterMove","requestAnimationFrame","onSwipeEnd","cancelAnimationFrame","scrollTop","afterMoveYCoordinate","setContentMaxHeight","safeZoneHeight","topbarHeight","windowHight","window","innerHeight","screenHeight","maxHeight","is400Zoom","useMedia","Breakpoint","EXTRA_SMALL","overlayId","useContext","OverlayIdContext","_jsx","Drawer","className","children","Dimmer","fadeContentOnEnter","fadeContentOnExit","SlidingPanel","ref","position","Position","BOTTOM","clsx","_jsxs","id","onTouchStart","onTouchMove","onTouchEnd","onMouseDown","onMouseMove","onMouseUp","CloseButton","size","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,wBAAwB,GAAG,CAAC;AAElC,MAAMC,qBAAqB,GAAG,EAAE;AAUhC;;;;;AAKG;AACH,MAAMC,WAAW,GAAGA,CAAC;AAAEC,EAAAA,IAAI,GAAG,QAAQ;EAAE,GAAGC;AAAK,CAAoB,KAAI;AACtE,EAAA,MAAMC,oBAAoB,GAAGC,YAAM,CAAiB,IAAI,CAAC;AACzD,EAAA,MAAMC,eAAe,GAAGD,YAAM,CAAiB,IAAI,CAAC;AACpD,EAAA,MAAME,gBAAgB,GAAGF,YAAM,CAAiB,IAAI,CAAC;EAErD,MAAM,CAACG,OAAO,EAAEC,UAAU,CAAC,GAAGC,cAAQ,CAAU,KAAK,CAAC;AAEtD;;;;AAIG;AACH,EAAA,MAAMC,WAAW,GAAGN,YAAM,CAAS,CAAC,CAAC;AAErC;;;;;AAKG;AACH,EAAA,MAAMO,UAAU,GAAGP,YAAM,CAAS,CAAC,CAAC;AACpC,EAAA,MAAMQ,kBAAkB,GAAGR,YAAM,CAAS,CAAC,CAAC;AAE5C;AACAS,EAAAA,6CAAsB,CAAC;IACrBC,cAAc,EAAEZ,KAAK,CAACa,IAAI,IAAI,CAACC,6BAAY,EAAE;IAC7CC,QA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nC9D,KAAK,CAAC8D;AAAQ,SACZ,CACP;OAAK;KACO;AAChB,GAAQ,CACT;AACH;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.mjs","sources":["../../../src/common/BottomSheet/BottomSheet.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport {\n CSSProperties,\n HTMLAttributes,\n PropsWithChildren,\n SyntheticEvent,\n useContext,\n useRef,\n useState,\n} from 'react';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\n\nimport Dimmer from '../../Dimmer';\nimport Drawer from '../../Drawer';\nimport { OverlayIdContext } from '../../Provider/overlay/OverlayIdProvider';\nimport SlidingPanel from '../../SlidingPanel';\nimport { CloseButton } from '../CloseButton';\nimport { CommonProps } from '../commonProps';\nimport { isServerSide } from '../DomHelpers';\nimport { useConditionalListener } from '../hooks';\nimport { useMedia } from '../hooks/useMedia';\nimport { Position } from '../PropsValues/position';\n\nconst INITIAL_Y_POSITION = 0;\n\nconst CONTENT_SCROLL_THRESHOLD = 1;\n\nconst MOVE_OFFSET_THRESHOLD = 50;\n\nexport type BottomSheetProps = PropsWithChildren<\n {\n onClose?: (event: Event | SyntheticEvent) => void;\n open: boolean;\n } & CommonProps &\n Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-labelledby' | 'aria-label'>\n>;\n\n/**\n * Neptune: https://transferwise.github.io/neptune/components/bottom-sheet/\n *\n * Neptune Web: https://transferwise.github.io/neptune-web/components/overlays/BottomSheet\n *\n */\nconst BottomSheet = ({ role = 'dialog', ...props }: BottomSheetProps) => {\n const bottomSheetReference = useRef<HTMLDivElement>(null);\n const topBarReference = useRef<HTMLDivElement>(null);\n const contentReference = useRef<HTMLDivElement>(null);\n\n const [pressed, setPressed] = useState<boolean>(false);\n\n /**\n * Used to track `requestAnimationFrame` requests\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#return_value\n */\n const animationId = useRef<number>(0);\n\n /**\n * Difference between initial coordinate ({@link initialYCoordinate})\n * and new position (when user moves component), it's get calculated on `onTouchMove` and `onMouseMove` events\n *\n * @see {@link calculateOffsetAfterMove}\n */\n const moveOffset = useRef<number>(0);\n const initialYCoordinate = useRef<number>(0);\n\n // apply shadow to the bottom of top-bar when scroll over content\n useConditionalListener({\n attachListener: props.open && !isServerSide(),\n callback: () => {\n if (topBarReference.current !== null) {\n const { classList } = topBarReference.current;\n if (!isContentScrollPositionAtTop()) {\n classList.add('np-bottom-sheet--top-bar--shadow');\n } else {\n classList.remove('np-bottom-sheet--top-bar--shadow');\n }\n }\n },\n eventType: 'scroll',\n parent: isServerSide() ? undefined : document,\n });\n\n function move(newHeight: number): void {\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.transform = `translateY(${newHeight}px)`;\n }\n }\n\n function close(event: Event | SyntheticEvent): void {\n setPressed(false);\n moveOffset.current = INITIAL_Y_POSITION;\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.removeProperty('transform');\n }\n if (props.onClose) {\n props.onClose(event);\n }\n }\n\n const onSwipeStart = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n initialYCoordinate.current = ('touches' in event ? event.touches[0] : event).clientY;\n setPressed(true);\n };\n\n const onSwipeMove = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n if (pressed) {\n const { clientY } = 'touches' in event ? event.touches[0] : event;\n\n const offset = calculateOffsetAfterMove(clientY);\n // check whether move is to the bottom only and content scroll position is at the top\n if (offset > INITIAL_Y_POSITION && isContentScrollPositionAtTop()) {\n moveOffset.current = offset;\n animationId.current = requestAnimationFrame(() => {\n if (animationId.current !== undefined && bottomSheetReference.current !== null) {\n move(offset);\n }\n });\n }\n }\n };\n\n function onSwipeEnd(\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void {\n // stop moving component\n cancelAnimationFrame(animationId.current);\n setPressed(false);\n // check whether move down is strong enough\n // and content scroll position is at the top to close the component\n if (moveOffset.current > MOVE_OFFSET_THRESHOLD && isContentScrollPositionAtTop()) {\n close(event);\n }\n // otherwise move component back to default (initial) position\n else {\n move(INITIAL_Y_POSITION);\n }\n moveOffset.current = INITIAL_Y_POSITION;\n }\n\n function isContentScrollPositionAtTop(): boolean {\n return (\n contentReference?.current?.scrollTop !== undefined &&\n contentReference.current.scrollTop <= CONTENT_SCROLL_THRESHOLD\n );\n }\n\n /**\n * Calculates how hard user moves component,\n * result value used to determine whether to hide component or re-position to default state\n *\n * @param afterMoveYCoordinate\n */\n function calculateOffsetAfterMove(afterMoveYCoordinate: number): number {\n return afterMoveYCoordinate - initialYCoordinate.current;\n }\n\n /**\n * Set `max-height` for content part (in order to keep it scrollable for content overflow cases) of the component\n * and ensures space for safe zone (32px) at the top.\n */\n function setContentMaxHeight(): CSSProperties {\n const safeZoneHeight = '64px';\n const topbarHeight = '32px';\n const windowHight: number = isServerSide() ? 0 : window.innerHeight;\n /**\n * Calculate _real_ height of the screen (taking into account parts of browser interface).\n *\n * See https://css-tricks.com/the-trick-to-viewport-units-on-mobile for more details.\n */\n const screenHeight = `${windowHight * 0.01 * 100}px`;\n return {\n maxHeight: `calc(${screenHeight} - ${safeZoneHeight} - ${topbarHeight})`,\n };\n }\n\n const is400Zoom = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n\n const overlayId = useContext(OverlayIdContext);\n\n return is400Zoom ? (\n <Drawer\n aria-labelledby={props['aria-labelledby']}\n aria-label={props['aria-label']}\n role={role}\n open={props.open}\n className={props.className}\n onClose={close}\n >\n {props.children}\n </Drawer>\n ) : (\n <Dimmer open={props.open} fadeContentOnEnter fadeContentOnExit onClose={close}>\n <SlidingPanel\n ref={bottomSheetReference}\n open={props.open}\n position={Position.BOTTOM}\n className={clsx('np-bottom-sheet', props.className)}\n >\n <div\n id={overlayId}\n aria-labelledby={props['aria-labelledby'] || undefined}\n aria-label={props['aria-label'] || undefined}\n role={role}\n aria-modal\n onTouchStart={onSwipeStart}\n onTouchMove={onSwipeMove}\n onTouchEnd={onSwipeEnd}\n onMouseDown={onSwipeStart}\n onMouseMove={onSwipeMove}\n onMouseUp={onSwipeEnd}\n >\n <div ref={topBarReference} className=\"np-bottom-sheet--top-bar\">\n <div className=\"np-bottom-sheet--handler\" />\n <CloseButton size=\"sm\" className=\"sr-only np-bottom-sheet--close-btn\" onClick={close} />\n </div>\n <div\n ref={contentReference}\n style={setContentMaxHeight()}\n className=\"np-bottom-sheet--content\"\n >\n {props.children}\n </div>\n </div>\n </SlidingPanel>\n </Dimmer>\n );\n};\n\nexport default BottomSheet;\n"],"names":["INITIAL_Y_POSITION","CONTENT_SCROLL_THRESHOLD","MOVE_OFFSET_THRESHOLD","BottomSheet","role","props","bottomSheetReference","useRef","topBarReference","contentReference","pressed","setPressed","useState","animationId","moveOffset","initialYCoordinate","useConditionalListener","attachListener","open","isServerSide","callback","current","classList","isContentScrollPositionAtTop","add","remove","eventType","parent","undefined","document","move","newHeight","style","transform","close","event","removeProperty","onClose","onSwipeStart","touches","clientY","onSwipeMove","offset","calculateOffsetAfterMove","requestAnimationFrame","onSwipeEnd","cancelAnimationFrame","scrollTop","afterMoveYCoordinate","setContentMaxHeight","safeZoneHeight","topbarHeight","windowHight","window","innerHeight","screenHeight","maxHeight","is400Zoom","useMedia","Breakpoint","EXTRA_SMALL","overlayId","useContext","OverlayIdContext","_jsx","Drawer","className","children","Dimmer","fadeContentOnEnter","fadeContentOnExit","SlidingPanel","ref","position","Position","BOTTOM","clsx","_jsxs","id","onTouchStart","onTouchMove","onTouchEnd","onMouseDown","onMouseMove","onMouseUp","CloseButton","size","onClick"],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAMA,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,wBAAwB,GAAG,CAAC;AAElC,MAAMC,qBAAqB,GAAG,EAAE;AAUhC;;;;;AAKG;AACH,MAAMC,WAAW,GAAGA,CAAC;AAAEC,EAAAA,IAAI,GAAG,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W,EAAE1C,WAAY;AACzB2C,QAAAA,SAAS,EAAEvC,UAAW;AAAAsB,QAAAA,QAAA,gBAEtBU,IAAA,CAAA,KAAA,EAAA;AAAKL,UAAAA,GAAG,EAAEhE,eAAgB;AAAC0D,UAAAA,SAAS,EAAC,0BAA0B;AAAAC,UAAAA,QAAA,gBAC7DH,GAAA,CAAA,KAAA,EAAA;AAAKE,YAAAA,SAAS,EAAC;AAA0B,WAAA,CACzC,eAAAF,GAAA,CAACqB,WAAW,EAAA;AAACC,YAAAA,IAAI,EAAC,IAAI;AAACpB,YAAAA,SAAS,EAAC,oCAAoC;AAACqB,YAAAA,OAAO,EAAErD;AAAM,WAAA,CACvF;SAAK,CACL,eAAA8B,GAAA,CAAA,KAAA,EAAA;AACEQ,UAAAA,GAAG,EAAE/D,gBAAiB;UACtBuB,KAAK,EAAEiB,mBAAmB,EAAG;AAC7BiB,UAAAA,SAAS,EAAC,0BAA0B;UAAAC,QAAA,EAEnC9D,KAAK,CAAC8D;AAAQ,SACZ,CACP;OAAK;KACO;AAChB,GAAQ,CACT;AACH;;;;"}
1
+ {"version":3,"file":"BottomSheet.mjs","sources":["../../../src/common/BottomSheet/BottomSheet.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport {\n CSSProperties,\n HTMLAttributes,\n PropsWithChildren,\n SyntheticEvent,\n useContext,\n useRef,\n useState,\n} from 'react';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\n\nimport Dimmer from '../../Dimmer';\nimport Drawer from '../../Drawer';\nimport { OverlayIdContext } from '../../Provider/overlay/OverlayIdProvider';\nimport SlidingPanel from '../../SlidingPanel';\nimport { CloseButton } from '../CloseButton';\nimport { CommonProps } from '../commonProps';\nimport { isServerSide } from '../DomHelpers';\nimport { useConditionalListener } from '../hooks';\nimport { useMedia } from '../hooks/useMedia';\nimport { Position } from '../PropsValues/position';\n\nconst INITIAL_Y_POSITION = 0;\n\nconst CONTENT_SCROLL_THRESHOLD = 1;\n\nconst MOVE_OFFSET_THRESHOLD = 50;\n\nexport type BottomSheetProps = PropsWithChildren<\n {\n onClose?: (event: Event | SyntheticEvent) => void;\n open: boolean;\n } & CommonProps &\n Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-labelledby' | 'aria-label'>\n>;\n\n/**\n * Neptune: https://transferwise.github.io/neptune/components/bottom-sheet/\n *\n * Neptune Web: https://transferwise.github.io/neptune-web/components/overlays/BottomSheet\n *\n */\nconst BottomSheet = ({ role = 'dialog', ...props }: BottomSheetProps) => {\n const bottomSheetReference = useRef<HTMLDivElement>(null);\n const topBarReference = useRef<HTMLDivElement>(null);\n const contentReference = useRef<HTMLDivElement>(null);\n\n const [pressed, setPressed] = useState<boolean>(false);\n\n /**\n * Used to track `requestAnimationFrame` requests\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#return_value\n */\n const animationId = useRef<number>(0);\n\n /**\n * Difference between initial coordinate ({@link initialYCoordinate})\n * and new position (when user moves component), it's get calculated on `onTouchMove` and `onMouseMove` events\n *\n * @see {@link calculateOffsetAfterMove}\n */\n const moveOffset = useRef<number>(0);\n const initialYCoordinate = useRef<number>(0);\n\n // apply shadow to the bottom of top-bar when scroll over content\n useConditionalListener({\n attachListener: props.open && !isServerSide(),\n callback: () => {\n if (topBarReference.current !== null) {\n const { classList } = topBarReference.current;\n if (!isContentScrollPositionAtTop()) {\n classList.add('np-bottom-sheet--top-bar--shadow');\n } else {\n classList.remove('np-bottom-sheet--top-bar--shadow');\n }\n }\n },\n eventType: 'scroll',\n parent: isServerSide() ? undefined : document,\n });\n\n function move(newHeight: number): void {\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.transform = `translateY(${newHeight}px)`;\n }\n }\n\n function close(event: Event | SyntheticEvent): void {\n setPressed(false);\n moveOffset.current = INITIAL_Y_POSITION;\n if (bottomSheetReference.current !== null) {\n bottomSheetReference.current.style.removeProperty('transform');\n }\n if (props.onClose) {\n props.onClose(event);\n }\n }\n\n const onSwipeStart = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n initialYCoordinate.current = ('touches' in event ? event.touches[0] : event).clientY;\n setPressed(true);\n };\n\n const onSwipeMove = (\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void => {\n if (pressed) {\n const { clientY } = 'touches' in event ? event.touches[0] : event;\n\n const offset = calculateOffsetAfterMove(clientY);\n // check whether move is to the bottom only and content scroll position is at the top\n if (offset > INITIAL_Y_POSITION && isContentScrollPositionAtTop()) {\n moveOffset.current = offset;\n animationId.current = requestAnimationFrame(() => {\n if (animationId.current !== undefined && bottomSheetReference.current !== null) {\n move(offset);\n }\n });\n }\n }\n };\n\n function onSwipeEnd(\n event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,\n ): void {\n // stop moving component\n cancelAnimationFrame(animationId.current);\n setPressed(false);\n // check whether move down is strong enough\n // and content scroll position is at the top to close the component\n if (moveOffset.current > MOVE_OFFSET_THRESHOLD && isContentScrollPositionAtTop()) {\n close(event);\n }\n // otherwise move component back to default (initial) position\n else {\n move(INITIAL_Y_POSITION);\n }\n moveOffset.current = INITIAL_Y_POSITION;\n }\n\n function isContentScrollPositionAtTop(): boolean {\n return (\n contentReference?.current?.scrollTop !== undefined &&\n contentReference.current.scrollTop <= CONTENT_SCROLL_THRESHOLD\n );\n }\n\n /**\n * Calculates how hard user moves component,\n * result value used to determine whether to hide component or re-position to default state\n *\n * @param afterMoveYCoordinate\n */\n function calculateOffsetAfterMove(afterMoveYCoordinate: number): number {\n return afterMoveYCoordinate - initialYCoordinate.current;\n }\n\n /**\n * Set `max-height` for content part (in order to keep it scrollable for content overflow cases) of the component\n * and ensures space for safe zone (32px) at the top.\n */\n function setContentMaxHeight(): CSSProperties {\n const safeZoneHeight = '64px';\n const topbarHeight = '32px';\n const windowHight: number = isServerSide() ? 0 : window.innerHeight;\n /**\n * Calculate _real_ height of the screen (taking into account parts of browser interface).\n *\n * See https://css-tricks.com/the-trick-to-viewport-units-on-mobile for more details.\n */\n const screenHeight = `${windowHight * 0.01 * 100}px`;\n return {\n maxHeight: `calc(${screenHeight} - ${safeZoneHeight} - ${topbarHeight})`,\n };\n }\n\n const is400Zoom = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n\n const overlayId = useContext(OverlayIdContext);\n\n return is400Zoom ? (\n <Drawer\n aria-labelledby={props['aria-labelledby']}\n aria-label={props['aria-label']}\n role={role}\n open={props.open}\n className={props.className}\n onClose={close}\n >\n {props.children}\n </Drawer>\n ) : (\n <Dimmer open={props.open} fadeContentOnEnter fadeContentOnExit onClose={close}>\n <SlidingPanel\n ref={bottomSheetReference}\n open={props.open}\n position={Position.BOTTOM}\n className={clsx('np-bottom-sheet', props.className)}\n >\n <div\n id={overlayId}\n aria-labelledby={props['aria-labelledby'] || undefined}\n aria-label={props['aria-label'] || undefined}\n role={role}\n aria-modal\n onTouchStart={onSwipeStart}\n onTouchMove={onSwipeMove}\n onTouchEnd={onSwipeEnd}\n onMouseDown={onSwipeStart}\n onMouseMove={onSwipeMove}\n onMouseUp={onSwipeEnd}\n >\n <div ref={topBarReference} className=\"np-bottom-sheet--top-bar\">\n <div className=\"np-bottom-sheet--handler\" />\n <CloseButton size=\"sm\" className=\"sr-only np-bottom-sheet--close-btn\" onClick={close} />\n </div>\n <div\n ref={contentReference}\n style={setContentMaxHeight()}\n className=\"np-bottom-sheet--content\"\n >\n {props.children}\n </div>\n </div>\n </SlidingPanel>\n </Dimmer>\n );\n};\n\nexport default BottomSheet;\n"],"names":["INITIAL_Y_POSITION","CONTENT_SCROLL_THRESHOLD","MOVE_OFFSET_THRESHOLD","BottomSheet","role","props","bottomSheetReference","useRef","topBarReference","contentReference","pressed","setPressed","useState","animationId","moveOffset","initialYCoordinate","useConditionalListener","attachListener","open","isServerSide","callback","current","classList","isContentScrollPositionAtTop","add","remove","eventType","parent","undefined","document","move","newHeight","style","transform","close","event","removeProperty","onClose","onSwipeStart","touches","clientY","onSwipeMove","offset","calculateOffsetAfterMove","requestAnimationFrame","onSwipeEnd","cancelAnimationFrame","scrollTop","afterMoveYCoordinate","setContentMaxHeight","safeZoneHeight","topbarHeight","windowHight","window","innerHeight","screenHeight","maxHeight","is400Zoom","useMedia","Breakpoint","EXTRA_SMALL","overlayId","useContext","OverlayIdContext","_jsx","Drawer","className","children","Dimmer","fadeContentOnEnter","fadeContentOnExit","SlidingPanel","ref","position","Position","BOTTOM","clsx","_jsxs","id","onTouchStart","onTouchMove","onTouchEnd","onMouseDown","onMouseMove","onMouseUp","CloseButton","size","onClick"],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAMA,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,wBAAwB,GAAG,CAAC;AAElC,MAAMC,qBAAqB,GAAG,EAAE;AAUhC;;;;;AAKG;AACH,MAAMC,WAAW,GAAGA,CAAC;AAAEC,EAAAA,IAAI,GAAG,QAAQ;EAAE,GAAGC;AAAK,CAAoB,KAAI;AACtE,EAAA,MAAMC,oBAAoB,GAAGC,MAAM,CAAiB,IAAI,CAAC;AACzD,EAAA,MAAMC,eAAe,GAAGD,MAAM,CAAiB,IAAI,CAAC;AACpD,EAAA,MAAME,gBAAgB,GAAGF,MAAM,CAAiB,IAAI,CAAC;EAErD,MAAM,CAACG,OAAO,EAAEC,UAAU,CAAC,GAAGC,QAAQ,CAAU,KAAK,CAAC;AAEtD;;;;AAIG;AACH,EAAA,MAAMC,WAAW,GAAGN,MAAM,CAAS,CAAC,CAAC;AAErC;;;;;AAKG;AACH,EAAA,MAAMO,UAAU,GAAGP,MAAM,CAAS,CAAC,CAAC;AACpC,EAAA,MAAMQ,kBAAkB,GAAGR,MAAM,CAAS,CAAC,CAAC;AAE5C;AACAS,EAAAA,sBAAsB,CAAC;IACrBC,cAAc,EAAEZ,KAAK,CAACa,IAAI,IAAI,CAACC,YAAY,EAAE;IAC7CC,QAAQ,EAAEA,MAAK;AACb,MAAA,IAAIZ,eA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AAChB,GAAQ,CACT;AACH;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Circle.js","sources":["../../../src/common/Circle/Circle.tsx"],"sourcesContent":["import { HTMLAttributes, forwardRef } from 'react';\nimport { clsx } from 'clsx';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\nimport { useMedia } from '../hooks/useMedia';\n\nexport type ShapeSize = 16 | 24 | 32 | 40 | 48 | 56 | 72 | 88 | 96;\n\nexport type CircleProps = {\n /**\n * Modify underlying element, `div` by default\n */\n as?: React.ElementType;\n /**\n * Set size of the circle in px, `48` by default\n */\n size?: ShapeSize;\n /**\n * When `true` will use the fixed size (`48px`) instead of the CSS spacing variable (`--size-*`)\n * as those can be dynamic a at certain viewport sizes\n */\n fixedSize?: boolean;\n enableBorder?: boolean;\n} & HTMLAttributes<HTMLDivElement>;\n\n/**\n * circle like components has custom sizes for icons\n */\nconst MAP_ICON_SIZE = {\n 16: 12,\n 24: 16,\n 32: 18,\n 40: 20,\n 48: 24,\n 56: 28,\n 72: 36,\n 88: 44,\n 96: 48,\n};\n\n/**\n * circle like components have custom typography styles for for default (Inter) font\n *\n * circle size : font size (px)\n */\nconst MAP_FONT_SIZE = {\n 16: 8,\n 24: 12,\n 32: 14,\n 40: 18,\n 48: 22,\n 56: 26,\n 72: 30,\n 88: 36,\n 96: 40,\n};\n\nconst Circle = forwardRef(function Circle(\n {\n as: Element = 'div',\n children,\n size = 48,\n fixedSize = false,\n enableBorder = false,\n className,\n style,\n ...props\n }: CircleProps,\n ref,\n) {\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n return (\n <Element\n {...props}\n ref={ref}\n style={{\n '--circle-size': fixedSize ? `${size}px` : `var(--size-${size})`,\n '--circle-icon-size':\n isTinyViewport && !fixedSize\n ? `${MAP_ICON_SIZE[size] / 2}px`\n : `${MAP_ICON_SIZE[size]}px`,\n '--circle-font-size': `${MAP_FONT_SIZE[size]}px`,\n ...style,\n }}\n className={clsx(\n 'np-circle',\n { 'np-circle-border': enableBorder },\n 'd-flex align-items-center justify-content-center',\n className,\n )}\n >\n {children}\n </Element>\n );\n});\n\nexport default Circle;\n"],"names":["MAP_ICON_SIZE","MAP_FONT_SIZE","Circle","forwardRef","as","Element","children","size","fixedSize","enableBorder","className","style","props","ref","isTinyViewport","useMedia","Breakpoint","EXTRA_SMALL","_jsx","clsx"],"mappings":";;;;;;;;;;AA2BA,MAAMA,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE;CACL;AAED;;;;AAIG;AACH,MAAMC,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,CAAC;AACL,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE;CACL;AAED,MAAMC,MAAM,gBAAGC,gBAAU,CAAC,SAASD,MAAMA,CACvC;EACEE,EAAE,EAAEC,OAAO,GAAG,KAAK;EACnBC,QAAQ;AACRC,EAAAA,IAAI,GAAG,EAAE;AACTC,EAAAA,SAAS,GAAG,KAAK;AACjBC,EAAAA,YAAY,GAAG,KAAK;EACpBC,SAAS;EACTC,KAAK;EACL,GAAGC;AAAK,CACI,EACdC,GAAG,EAAA;EAEH,MAAMC,cAAc,GAAGC,iBAAQ,CAAC,eAAeC,wBAAU,CAACC,WAAW,CAAA,GAAA,CAAK,CAAC;EAC3E,oBACEC,cAAA,CAACb,OAAO,EAAA;AAAA,IAAA,GACFO,KAAK;AACTC,IAAAA,GAAG,EAAEA,GAAI;AACTF,IAAAA,KAAK,EAAE;MACL,eAAe,EAAEH,SAAS,GAAG,CAAA,EAAGD,IAAI,CAAA,EAAA,CAAI,GAAG,CAAA,WAAA,EAAcA,IAAI,CAAA,CAAA,CAAG;MAChE,oBAAoB,EAClBO,cAAc,IAAI,CAACN,SAAS,GACxB,CAAA,EAAGR,aAAa,CAACO,IAAI,CAAC,GAAG,CAAC,IAAI,GAC9B,CAAA,EAAGP,aAAa,CAACO,IAAI,CAAC,CAAA,EAAA,CAAI;AAChC,MAAA,oBAAoB,EAAE,CAAA,EAAGN,aAAa,CAACM,IAAI,CAAC,CAAA,EAAA,CAAI;MAChD,GAAGI;KACH;AACFD,IAAAA,SAAS,EAAES,SAAI,CACb,WAAW,EACX;AAAE,MAAA,kBAAkB,EAAEV;KAAc,EACpC,kDAAkD,EAClDC,SAAS,CACT;AAAAJ,IAAAA,QAAA,EAEDA;AAAQ,GACF,CAAC;AAEd,CAAC;;;;"}
1
+ {"version":3,"file":"Circle.js","sources":["../../../src/common/Circle/Circle.tsx"],"sourcesContent":["import { HTMLAttributes, forwardRef } from 'react';\nimport { clsx } from 'clsx';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\nimport { useMedia } from '../hooks/useMedia';\n\nexport type ShapeSize = 16 | 24 | 32 | 40 | 48 | 56 | 72 | 88 | 96;\n\nexport type CircleProps = {\n /**\n * Modify underlying element, `div` by default\n */\n as?: React.ElementType;\n /**\n * Set size of the circle in px, `48` by default\n */\n size?: ShapeSize;\n /**\n * When `true` will use the fixed size (`48px`) instead of the CSS spacing variable (`--size-*`)\n * as those can be dynamic a at certain viewport sizes\n */\n fixedSize?: boolean;\n enableBorder?: boolean;\n} & HTMLAttributes<HTMLDivElement>;\n\n/**\n * circle like components has custom sizes for icons\n */\nconst MAP_ICON_SIZE = {\n 16: 12,\n 24: 16,\n 32: 18,\n 40: 20,\n 48: 24,\n 56: 28,\n 72: 36,\n 88: 44,\n 96: 48,\n};\n\n/**\n * circle like components have custom typography styles for for default (Inter) font\n *\n * circle size : font size (px)\n */\nconst MAP_FONT_SIZE = {\n 16: 8,\n 24: 12,\n 32: 14,\n 40: 18,\n 48: 22,\n 56: 26,\n 72: 30,\n 88: 36,\n 96: 40,\n};\n\nconst Circle = forwardRef(function Circle(\n {\n as: Element = 'div',\n children,\n size = 48,\n fixedSize = false,\n enableBorder = false,\n className,\n style,\n ...props\n }: CircleProps,\n ref,\n) {\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n return (\n <Element\n {...props}\n ref={ref}\n style={{\n '--circle-size': fixedSize ? `${size}px` : `var(--size-${size})`,\n '--circle-icon-size':\n isTinyViewport && !fixedSize\n ? `${MAP_ICON_SIZE[size] / 2}px`\n : `${MAP_ICON_SIZE[size]}px`,\n '--circle-font-size': `${MAP_FONT_SIZE[size]}px`,\n ...style,\n }}\n className={clsx(\n 'np-circle',\n { 'np-circle-border': enableBorder },\n 'd-flex align-items-center justify-content-center',\n className,\n )}\n >\n {children}\n </Element>\n );\n});\n\nexport default Circle;\n"],"names":["MAP_ICON_SIZE","MAP_FONT_SIZE","Circle","forwardRef","as","Element","children","size","fixedSize","enableBorder","className","style","props","ref","isTinyViewport","useMedia","Breakpoint","EXTRA_SMALL","_jsx","clsx"],"mappings":";;;;;;;;;;AA2BA,MAAMA,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE;CACL;AAED;;;;AAIG;AACH,MAAMC,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,CAAC;AACL,E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DA;AAAQ,GACF,CAAC;AAEd,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Circle.mjs","sources":["../../../src/common/Circle/Circle.tsx"],"sourcesContent":["import { HTMLAttributes, forwardRef } from 'react';\nimport { clsx } from 'clsx';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\nimport { useMedia } from '../hooks/useMedia';\n\nexport type ShapeSize = 16 | 24 | 32 | 40 | 48 | 56 | 72 | 88 | 96;\n\nexport type CircleProps = {\n /**\n * Modify underlying element, `div` by default\n */\n as?: React.ElementType;\n /**\n * Set size of the circle in px, `48` by default\n */\n size?: ShapeSize;\n /**\n * When `true` will use the fixed size (`48px`) instead of the CSS spacing variable (`--size-*`)\n * as those can be dynamic a at certain viewport sizes\n */\n fixedSize?: boolean;\n enableBorder?: boolean;\n} & HTMLAttributes<HTMLDivElement>;\n\n/**\n * circle like components has custom sizes for icons\n */\nconst MAP_ICON_SIZE = {\n 16: 12,\n 24: 16,\n 32: 18,\n 40: 20,\n 48: 24,\n 56: 28,\n 72: 36,\n 88: 44,\n 96: 48,\n};\n\n/**\n * circle like components have custom typography styles for for default (Inter) font\n *\n * circle size : font size (px)\n */\nconst MAP_FONT_SIZE = {\n 16: 8,\n 24: 12,\n 32: 14,\n 40: 18,\n 48: 22,\n 56: 26,\n 72: 30,\n 88: 36,\n 96: 40,\n};\n\nconst Circle = forwardRef(function Circle(\n {\n as: Element = 'div',\n children,\n size = 48,\n fixedSize = false,\n enableBorder = false,\n className,\n style,\n ...props\n }: CircleProps,\n ref,\n) {\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n return (\n <Element\n {...props}\n ref={ref}\n style={{\n '--circle-size': fixedSize ? `${size}px` : `var(--size-${size})`,\n '--circle-icon-size':\n isTinyViewport && !fixedSize\n ? `${MAP_ICON_SIZE[size] / 2}px`\n : `${MAP_ICON_SIZE[size]}px`,\n '--circle-font-size': `${MAP_FONT_SIZE[size]}px`,\n ...style,\n }}\n className={clsx(\n 'np-circle',\n { 'np-circle-border': enableBorder },\n 'd-flex align-items-center justify-content-center',\n className,\n )}\n >\n {children}\n </Element>\n );\n});\n\nexport default Circle;\n"],"names":["MAP_ICON_SIZE","MAP_FONT_SIZE","Circle","forwardRef","as","Element","children","size","fixedSize","enableBorder","className","style","props","ref","isTinyViewport","useMedia","Breakpoint","EXTRA_SMALL","_jsx","clsx"],"mappings":";;;;;;AA2BA,MAAMA,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE;CACL;AAED;;;;AAIG;AACH,MAAMC,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,CAAC;AACL,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE;CACL;AAED,MAAMC,MAAM,gBAAGC,UAAU,CAAC,SAASD,MAAMA,CACvC;EACEE,EAAE,EAAEC,OAAO,GAAG,KAAK;EACnBC,QAAQ;AACRC,EAAAA,IAAI,GAAG,EAAE;AACTC,EAAAA,SAAS,GAAG,KAAK;AACjBC,EAAAA,YAAY,GAAG,KAAK;EACpBC,SAAS;EACTC,KAAK;EACL,GAAGC;AAAK,CACI,EACdC,GAAG,EAAA;EAEH,MAAMC,cAAc,GAAGC,QAAQ,CAAC,eAAeC,UAAU,CAACC,WAAW,CAAA,GAAA,CAAK,CAAC;EAC3E,oBACEC,GAAA,CAACb,OAAO,EAAA;AAAA,IAAA,GACFO,KAAK;AACTC,IAAAA,GAAG,EAAEA,GAAI;AACTF,IAAAA,KAAK,EAAE;MACL,eAAe,EAAEH,SAAS,GAAG,CAAA,EAAGD,IAAI,CAAA,EAAA,CAAI,GAAG,CAAA,WAAA,EAAcA,IAAI,CAAA,CAAA,CAAG;MAChE,oBAAoB,EAClBO,cAAc,IAAI,CAACN,SAAS,GACxB,CAAA,EAAGR,aAAa,CAACO,IAAI,CAAC,GAAG,CAAC,IAAI,GAC9B,CAAA,EAAGP,aAAa,CAACO,IAAI,CAAC,CAAA,EAAA,CAAI;AAChC,MAAA,oBAAoB,EAAE,CAAA,EAAGN,aAAa,CAACM,IAAI,CAAC,CAAA,EAAA,CAAI;MAChD,GAAGI;KACH;AACFD,IAAAA,SAAS,EAAES,IAAI,CACb,WAAW,EACX;AAAE,MAAA,kBAAkB,EAAEV;KAAc,EACpC,kDAAkD,EAClDC,SAAS,CACT;AAAAJ,IAAAA,QAAA,EAEDA;AAAQ,GACF,CAAC;AAEd,CAAC;;;;"}
1
+ {"version":3,"file":"Circle.mjs","sources":["../../../src/common/Circle/Circle.tsx"],"sourcesContent":["import { HTMLAttributes, forwardRef } from 'react';\nimport { clsx } from 'clsx';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\nimport { useMedia } from '../hooks/useMedia';\n\nexport type ShapeSize = 16 | 24 | 32 | 40 | 48 | 56 | 72 | 88 | 96;\n\nexport type CircleProps = {\n /**\n * Modify underlying element, `div` by default\n */\n as?: React.ElementType;\n /**\n * Set size of the circle in px, `48` by default\n */\n size?: ShapeSize;\n /**\n * When `true` will use the fixed size (`48px`) instead of the CSS spacing variable (`--size-*`)\n * as those can be dynamic a at certain viewport sizes\n */\n fixedSize?: boolean;\n enableBorder?: boolean;\n} & HTMLAttributes<HTMLDivElement>;\n\n/**\n * circle like components has custom sizes for icons\n */\nconst MAP_ICON_SIZE = {\n 16: 12,\n 24: 16,\n 32: 18,\n 40: 20,\n 48: 24,\n 56: 28,\n 72: 36,\n 88: 44,\n 96: 48,\n};\n\n/**\n * circle like components have custom typography styles for for default (Inter) font\n *\n * circle size : font size (px)\n */\nconst MAP_FONT_SIZE = {\n 16: 8,\n 24: 12,\n 32: 14,\n 40: 18,\n 48: 22,\n 56: 26,\n 72: 30,\n 88: 36,\n 96: 40,\n};\n\nconst Circle = forwardRef(function Circle(\n {\n as: Element = 'div',\n children,\n size = 48,\n fixedSize = false,\n enableBorder = false,\n className,\n style,\n ...props\n }: CircleProps,\n ref,\n) {\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n return (\n <Element\n {...props}\n ref={ref}\n style={{\n '--circle-size': fixedSize ? `${size}px` : `var(--size-${size})`,\n '--circle-icon-size':\n isTinyViewport && !fixedSize\n ? `${MAP_ICON_SIZE[size] / 2}px`\n : `${MAP_ICON_SIZE[size]}px`,\n '--circle-font-size': `${MAP_FONT_SIZE[size]}px`,\n ...style,\n }}\n className={clsx(\n 'np-circle',\n { 'np-circle-border': enableBorder },\n 'd-flex align-items-center justify-content-center',\n className,\n )}\n >\n {children}\n </Element>\n );\n});\n\nexport default Circle;\n"],"names":["MAP_ICON_SIZE","MAP_FONT_SIZE","Circle","forwardRef","as","Element","children","size","fixedSize","enableBorder","className","style","props","ref","isTinyViewport","useMedia","Breakpoint","EXTRA_SMALL","_jsx","clsx"],"mappings":";;;;;;AA2BA,MAAMA,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE,EAAE;AACN,EAAA,EAAE,EAAE;CACL;AAED;;;;AAIG;AACH,MAAMC,aAAa,GAAG;AACpB,EAAA,EAAE,EAAE,CAAC;AACL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A;AAAQ,GACF,CAAC;AAEd,CAAC;;"}
@@ -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 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","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W,GAAG,EAAE,GAAG;KAAG;AACzE,GAAQ,CAAC;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","C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AI,CAACoB,WAAW,GAAG,EAAE,GAAG;KAAG;AACzE,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,uBAAeA,wBAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;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,uBAAeA,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,uBAAeA,cAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;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,uBAAeA,cAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;AACF,CAAA,CAAC;;"}
@@ -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 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,gBAAQ,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;KAAG;AACzE,GAAQ,CAAC;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,gBAAQ,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;KAAG;AACzE,GAAQ,CAAC;AAEb,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DOMOperations.js","sources":["../../../src/common/DOMOperations/DOMOperations.ts"],"sourcesContent":["/**\n * Defined in `Dimmer.less`\n */\nconst NO_SCROLL_CLASS = 'no-scroll';\n\n/**\n * Apply {@link NO_SCROLL_CLASS} that disables scroll on page (e.g use in Dimmer to disable scroll behind the component)\n *\n * CSS class needs to be applied for `html` and not `body`, as this doing both will break any position sticky in the document.\n */\nexport const addNoScrollClass = () => {\n document.documentElement.classList.add(NO_SCROLL_CLASS);\n};\n\n/**\n * Clean up after {@link addNoScrollClass} function\n */\nexport const removeNoScrollClass = () => {\n document.documentElement.classList.remove(NO_SCROLL_CLASS);\n};\n"],"names":["NO_SCROLL_CLASS","addNoScrollClass","document","documentElement","classList","add","removeNoScrollClass","remove"],"mappings":";;AAAA;;AAEG;AACH,MAAMA,eAAe,GAAG,WAAW;AAEnC;;;;AAIG;AACI,MAAMC,gBAAgB,GAAGA,MAAK;EACnCC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAACL,eAAe,CAAC;AACzD;AAEA;;AAEG;AACI,MAAMM,mBAAmB,GAAGA,MAAK;EACtCJ,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAACP,eAAe,CAAC;AAC5D;;;;;"}
1
+ {"version":3,"file":"DOMOperations.js","sources":["../../../src/common/DOMOperations/DOMOperations.ts"],"sourcesContent":["/**\n * Defined in `Dimmer.less`\n */\nconst NO_SCROLL_CLASS = 'no-scroll';\n\n/**\n * Apply {@link NO_SCROLL_CLASS} that disables scroll on page (e.g use in Dimmer to disable scroll behind the component)\n *\n * CSS class needs to be applied for `html` and not `body`, as this doing both will break any position sticky in the document.\n */\nexport const addNoScrollClass = () => {\n document.documentElement.classList.add(NO_SCROLL_CLASS);\n};\n\n/**\n * Clean up after {@link addNoScrollClass} function\n */\nexport const removeNoScrollClass = () => {\n document.documentElement.classList.remove(NO_SCROLL_CLASS);\n};\n"],"names":["NO_SCROLL_CLASS","addNoScrollClass","document","documentElement","classList","add","removeNoScrollClass","remove"],"mappings":";;AAAA;;AAEG;AACH,MAAMA,eAAe,GAAG,WAAW;AAEnC;;;;AAIG;AACI,MAAMC,gBAAgB,GAAGA,MAAK;EACnCC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAACL,eAAe,CAAC;AACzD;AAEA;;AAEG;AACI,MAAMM,mBAAmB,GAAGA,MAAK;EACtCJ,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAACP,eAAe,CAAC;AAC5D;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DOMOperations.mjs","sources":["../../../src/common/DOMOperations/DOMOperations.ts"],"sourcesContent":["/**\n * Defined in `Dimmer.less`\n */\nconst NO_SCROLL_CLASS = 'no-scroll';\n\n/**\n * Apply {@link NO_SCROLL_CLASS} that disables scroll on page (e.g use in Dimmer to disable scroll behind the component)\n *\n * CSS class needs to be applied for `html` and not `body`, as this doing both will break any position sticky in the document.\n */\nexport const addNoScrollClass = () => {\n document.documentElement.classList.add(NO_SCROLL_CLASS);\n};\n\n/**\n * Clean up after {@link addNoScrollClass} function\n */\nexport const removeNoScrollClass = () => {\n document.documentElement.classList.remove(NO_SCROLL_CLASS);\n};\n"],"names":["NO_SCROLL_CLASS","addNoScrollClass","document","documentElement","classList","add","removeNoScrollClass","remove"],"mappings":"AAAA;;AAEG;AACH,MAAMA,eAAe,GAAG,WAAW;AAEnC;;;;AAIG;AACI,MAAMC,gBAAgB,GAAGA,MAAK;EACnCC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAACL,eAAe,CAAC;AACzD;AAEA;;AAEG;AACI,MAAMM,mBAAmB,GAAGA,MAAK;EACtCJ,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAACP,eAAe,CAAC;AAC5D;;;;"}
1
+ {"version":3,"file":"DOMOperations.mjs","sources":["../../../src/common/DOMOperations/DOMOperations.ts"],"sourcesContent":["/**\n * Defined in `Dimmer.less`\n */\nconst NO_SCROLL_CLASS = 'no-scroll';\n\n/**\n * Apply {@link NO_SCROLL_CLASS} that disables scroll on page (e.g use in Dimmer to disable scroll behind the component)\n *\n * CSS class needs to be applied for `html` and not `body`, as this doing both will break any position sticky in the document.\n */\nexport const addNoScrollClass = () => {\n document.documentElement.classList.add(NO_SCROLL_CLASS);\n};\n\n/**\n * Clean up after {@link addNoScrollClass} function\n */\nexport const removeNoScrollClass = () => {\n document.documentElement.classList.remove(NO_SCROLL_CLASS);\n};\n"],"names":["NO_SCROLL_CLASS","addNoScrollClass","document","documentElement","classList","add","removeNoScrollClass","remove"],"mappings":"AAAA;;AAEG;AACH,MAAMA,eAAe,GAAG,WAAW;AAEnC;;;;AAIG;AACI,MAAMC,gBAAgB,GAAGA,MAAK;EACnCC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACC,GAAG,CAACL,eAAe,CAAC;AACzD;AAEA;;AAEG;AACI,MAAMM,mBAAmB,GAAGA,MAAK;EACtCJ,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAACP,eAAe,CAAC;AAC5D;;"}
@@ -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;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;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;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;AAAM,KAAE,CAAC,CAAC;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC;AAClC,EAAA;AACA,EAAA,OAAOR,IAAI;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;AAAM,KAAE,CAAC,CAAC;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC;AAClC,EAAA;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;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;AAAM,KAAE,CAAC,CAAC;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC;AAClC,EAAA;AACA,EAAA,OAAOR,IAAI;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;AAAM,KAAE,CAAC,CAAC;IACxDE,IAAI,CAACM,OAAO,CAACN,IAAI,CAACO,OAAO,EAAE,GAAG,CAAC,CAAC;AAClC,EAAA;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;MACvBC,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;MACvBC,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;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,EAAA;AACA,EAAA,OAAOT,MAAM;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,EAAA;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;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,EAAA;AACA,EAAA,OAAOT,MAAM;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,EAAA;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":";;AAAO,MAAMA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK;AACd,EAAA;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC;AAC9B,EAAA;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC;AAC9B;AAEO,MAAMG,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
+ {"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":";;AAAO,MAAMA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK;AACd,EAAA;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC;AAC9B,EAAA;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC;AAC9B;AAEO,MAAMG,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":"AAAO,MAAMA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK;AACd,EAAA;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC;AAC9B,EAAA;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC;AAC9B;AAEO,MAAMG,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
+ {"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":"AAAO,MAAMA,WAAW,GAAIC,IAA0B,IAAI;EACxD,IAAIA,IAAI,KAAK,IAAI,EAAE;AACjB,IAAA,OAAO,KAAK;AACd,EAAA;EAEA,IAAIA,IAAI,YAAYC,IAAI,EAAE;IACxB,OAAOC,eAAe,CAACF,IAAI,CAAC;AAC9B,EAAA;EAEA,OAAOG,eAAe,CAACH,IAAI,CAAC;AAC9B;AAEO,MAAMG,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":"isMonthAndYearFormat.js","sources":["../../../../src/common/DateUtils/isMonthAndYearFormat/isMonthAndYearFormat.ts"],"sourcesContent":["import { validDateString } from '../isDateValid/isDateValid';\n\nexport const isMonthAndYearFormat = (dateString: string) =>\n validDateString(dateString) && dateString.split('-').length < 3;\n"],"names":["isMonthAndYearFormat","dateString","validDateString","split","length"],"mappings":";;;;MAEaA,oBAAoB,GAAIC,UAAkB,IACrDC,2BAAe,CAACD,UAAU,CAAC,IAAIA,UAAU,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,GAAG;;;;"}
1
+ {"version":3,"file":"isMonthAndYearFormat.js","sources":["../../../../src/common/DateUtils/isMonthAndYearFormat/isMonthAndYearFormat.ts"],"sourcesContent":["import { validDateString } from '../isDateValid/isDateValid';\n\nexport const isMonthAndYearFormat = (dateString: string) =>\n validDateString(dateString) && dateString.split('-').length < 3;\n"],"names":["isMonthAndYearFormat","dateString","validDateString","split","length"],"mappings":";;;;MAEaA,oBAAoB,GAAIC,UAAkB,IACrDC,2BAAe,CAACD,UAAU,CAAC,IAAIA,UAAU,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,GAAG;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"isMonthAndYearFormat.mjs","sources":["../../../../src/common/DateUtils/isMonthAndYearFormat/isMonthAndYearFormat.ts"],"sourcesContent":["import { validDateString } from '../isDateValid/isDateValid';\n\nexport const isMonthAndYearFormat = (dateString: string) =>\n validDateString(dateString) && dateString.split('-').length < 3;\n"],"names":["isMonthAndYearFormat","dateString","validDateString","split","length"],"mappings":";;MAEaA,oBAAoB,GAAIC,UAAkB,IACrDC,eAAe,CAACD,UAAU,CAAC,IAAIA,UAAU,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,GAAG;;;;"}
1
+ {"version":3,"file":"isMonthAndYearFormat.mjs","sources":["../../../../src/common/DateUtils/isMonthAndYearFormat/isMonthAndYearFormat.ts"],"sourcesContent":["import { validDateString } from '../isDateValid/isDateValid';\n\nexport const isMonthAndYearFormat = (dateString: string) =>\n validDateString(dateString) && dateString.split('-').length < 3;\n"],"names":["isMonthAndYearFormat","dateString","validDateString","split","length"],"mappings":";;MAEaA,oBAAoB,GAAIC,UAAkB,IACrDC,eAAe,CAACD,UAAU,CAAC,IAAIA,UAAU,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,GAAG;;"}
@@ -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;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;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;AACtB,EAAA;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC;AACtB,EAAA;AACA,EAAA,OAAOF,IAAI;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,EAAA;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC;AACtB,EAAA;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;AACtB,EAAA;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC;AACtB,EAAA;AACA,EAAA,OAAOF,IAAI;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,EAAA;AACA,EAAA,IAAIC,GAAG,IAAIF,IAAI,GAAGE,GAAG,EAAE;AACrB,IAAA,OAAO,IAAIC,IAAI,CAACD,GAAG,CAAC;AACtB,EAAA;AACA,EAAA,OAAOF,IAAI;AACb;;"}
@@ -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;AACrD,EAAA;AACF;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,2BAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC;AACxD,EAAA;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,EAAA;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,EAAA;AACF;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,2BAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC;AACxD,EAAA;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,EAAA;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;AACrD,EAAA;AACF;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,WAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC;AACxD,EAAA;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,EAAA;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,EAAA;AACF;SAEgBC,iCAAiCA,GAAA;EAC/C,IAAIL,WAAW,EAAE,EAAE;IACjBC,QAAQ,CAACC,eAAe,CAACC,SAAS,CAACG,MAAM,CAAC,WAAW,CAAC;AACxD,EAAA;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,EAAA;AACF;;"}
@@ -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;AAAY,CACI,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,EAAA,CAEDR,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
+ {"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;AAAY,CACI,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,EAAA,CAEDR,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;AAAY,CACI,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,EAAA,CAEDR,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
+ {"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;AAAY,CACI,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,EAAA,CAEDR,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":";;;;;;;;AAOA,MAAMA,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;AAAI,KAAE,CAAC;EAC1D,CAAC,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
+ {"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":";;;;;;;;AAOA,MAAMA,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;AAAI,KAAE,CAAC;EAC1D,CAAC,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":";;;;AAOA,MAAMA,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;AAAI,KAAE,CAAC;EAC1D,CAAC,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
+ {"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":";;;;AAOA,MAAMA,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;AAAI,KAAE,CAAC;EAC1D,CAAC,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;;"}