@transferwise/components 43.12.4 → 43.12.6-beta-.16

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 (1416) hide show
  1. package/package.json +3 -3
  2. package/build/es/no-polyfill/accordion/Accordion.js +0 -1
  3. package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +0 -1
  4. package/build/es/no-polyfill/accordion/AccordionItem/index.js +0 -1
  5. package/build/es/no-polyfill/accordion/index.js +0 -1
  6. package/build/es/no-polyfill/actionButton/ActionButton.js +0 -1
  7. package/build/es/no-polyfill/actionButton/ActionButton.spec.js +0 -1
  8. package/build/es/no-polyfill/actionButton/ActionButton.story.js +0 -1
  9. package/build/es/no-polyfill/actionButton/index.js +0 -1
  10. package/build/es/no-polyfill/actionOption/ActionOption.js +0 -1
  11. package/build/es/no-polyfill/actionOption/ActionOption.story.js +0 -1
  12. package/build/es/no-polyfill/actionOption/index.js +0 -1
  13. package/build/es/no-polyfill/alert/Alert.js +0 -1
  14. package/build/es/no-polyfill/alert/index.js +0 -1
  15. package/build/es/no-polyfill/alert/inlineMarkdown/InlineMarkdown.js +0 -1
  16. package/build/es/no-polyfill/alert/inlineMarkdown/index.js +0 -1
  17. package/build/es/no-polyfill/alert/withArrow/alertArrowPositions.js +0 -2
  18. package/build/es/no-polyfill/alert/withArrow/index.js +0 -1
  19. package/build/es/no-polyfill/alert/withArrow/withArrow.js +0 -1
  20. package/build/es/no-polyfill/avatar/Avatar.js +0 -1
  21. package/build/es/no-polyfill/avatar/avatarTypes.js +0 -2
  22. package/build/es/no-polyfill/avatar/index.js +0 -1
  23. package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +0 -1
  24. package/build/es/no-polyfill/avatarWrapper/index.js +0 -1
  25. package/build/es/no-polyfill/badge/Badge.js +0 -1
  26. package/build/es/no-polyfill/badge/index.js +0 -1
  27. package/build/es/no-polyfill/body/Body.js +0 -1
  28. package/build/es/no-polyfill/body/Body.spec.js +0 -1
  29. package/build/es/no-polyfill/body/Body.story.js +0 -1
  30. package/build/es/no-polyfill/body/index.js +0 -1
  31. package/build/es/no-polyfill/button/Button.js +0 -7
  32. package/build/es/no-polyfill/button/classMap.js +0 -1
  33. package/build/es/no-polyfill/button/index.js +0 -1
  34. package/build/es/no-polyfill/button/legacyUtils/index.js +0 -1
  35. package/build/es/no-polyfill/button/legacyUtils/legacyUtils.js +0 -4
  36. package/build/es/no-polyfill/card/Card.js +0 -1
  37. package/build/es/no-polyfill/card/index.js +0 -1
  38. package/build/es/no-polyfill/checkbox/Checkbox.js +0 -1
  39. package/build/es/no-polyfill/checkbox/index.js +0 -1
  40. package/build/es/no-polyfill/checkboxButton/CheckboxButton.js +0 -1
  41. package/build/es/no-polyfill/checkboxButton/CheckboxButton.spec.js +0 -1
  42. package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +0 -1
  43. package/build/es/no-polyfill/checkboxButton/index.js +0 -1
  44. package/build/es/no-polyfill/checkboxOption/CheckboxOption.js +0 -1
  45. package/build/es/no-polyfill/checkboxOption/CheckboxOption.spec.js +0 -1
  46. package/build/es/no-polyfill/checkboxOption/CheckboxOption.story.js +0 -1
  47. package/build/es/no-polyfill/checkboxOption/index.js +0 -1
  48. package/build/es/no-polyfill/chevron/Chevron.js +0 -1
  49. package/build/es/no-polyfill/chevron/index.js +0 -1
  50. package/build/es/no-polyfill/chips/Chip.js +0 -1
  51. package/build/es/no-polyfill/chips/Chips.js +0 -1
  52. package/build/es/no-polyfill/chips/Chips.messages.js +0 -1
  53. package/build/es/no-polyfill/chips/Chips.spec.js +0 -1
  54. package/build/es/no-polyfill/chips/Chips.story.js +0 -1
  55. package/build/es/no-polyfill/chips/index.js +0 -1
  56. package/build/es/no-polyfill/circularButton/CircularButton.js +0 -1
  57. package/build/es/no-polyfill/circularButton/index.js +0 -1
  58. package/build/es/no-polyfill/common/DOMOperations/DOMOperations.js +0 -9
  59. package/build/es/no-polyfill/common/DOMOperations/index.js +0 -1
  60. package/build/es/no-polyfill/common/Option/Option.js +0 -1
  61. package/build/es/no-polyfill/common/Option/index.js +0 -1
  62. package/build/es/no-polyfill/common/RadioButton/RadioButton.js +0 -1
  63. package/build/es/no-polyfill/common/RadioButton/index.js +0 -1
  64. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +0 -10
  65. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.spec.js +0 -1
  66. package/build/es/no-polyfill/common/bottomSheet/index.js +0 -1
  67. package/build/es/no-polyfill/common/closeButton/CloseButton.js +0 -1
  68. package/build/es/no-polyfill/common/closeButton/CloseButton.messages.js +0 -1
  69. package/build/es/no-polyfill/common/closeButton/index.js +0 -1
  70. package/build/es/no-polyfill/common/commonProps.js +0 -0
  71. package/build/es/no-polyfill/common/dateUtils/getDayNames/getDayNames.js +0 -2
  72. package/build/es/no-polyfill/common/dateUtils/getDayNames/index.js +0 -1
  73. package/build/es/no-polyfill/common/dateUtils/getMonthNames/getMonthNames.js +0 -1
  74. package/build/es/no-polyfill/common/dateUtils/getMonthNames/index.js +0 -1
  75. package/build/es/no-polyfill/common/dateUtils/index.js +0 -1
  76. package/build/es/no-polyfill/common/dateUtils/isDateValid/index.js +0 -1
  77. package/build/es/no-polyfill/common/dateUtils/isDateValid/isDateValid.js +0 -1
  78. package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/index.js +0 -1
  79. package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -1
  80. package/build/es/no-polyfill/common/dateUtils/isWithinRange/index.js +0 -1
  81. package/build/es/no-polyfill/common/dateUtils/isWithinRange/isWithinRange.js +0 -1
  82. package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/index.js +0 -1
  83. package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -2
  84. package/build/es/no-polyfill/common/deviceDetection/deviceDetection.js +0 -1
  85. package/build/es/no-polyfill/common/deviceDetection/index.js +0 -1
  86. package/build/es/no-polyfill/common/direction.js +0 -1
  87. package/build/es/no-polyfill/common/domHelpers/documentIosClick.js +0 -5
  88. package/build/es/no-polyfill/common/domHelpers/index.js +0 -1
  89. package/build/es/no-polyfill/common/fakeEvents.js +0 -1
  90. package/build/es/no-polyfill/common/fileType.js +0 -1
  91. package/build/es/no-polyfill/common/flowHeader/FlowHeader.js +0 -1
  92. package/build/es/no-polyfill/common/flowHeader/index.js +0 -1
  93. package/build/es/no-polyfill/common/focusBoundary/FocusBoundary.js +0 -1
  94. package/build/es/no-polyfill/common/focusBoundary/index.js +0 -1
  95. package/build/es/no-polyfill/common/focusBoundary/utils/getFocusableElements.js +0 -6
  96. package/build/es/no-polyfill/common/focusBoundary/utils/index.js +0 -1
  97. package/build/es/no-polyfill/common/focusBoundary/utils/resetFocus.js +0 -6
  98. package/build/es/no-polyfill/common/historyNavigator/historyNavigator.js +0 -1
  99. package/build/es/no-polyfill/common/historyNavigator/index.js +0 -1
  100. package/build/es/no-polyfill/common/hooks/index.js +0 -1
  101. package/build/es/no-polyfill/common/hooks/useClientWidth/index.js +0 -1
  102. package/build/es/no-polyfill/common/hooks/useClientWidth/useClientWidth.js +0 -5
  103. package/build/es/no-polyfill/common/hooks/useConditionalListener/index.js +0 -1
  104. package/build/es/no-polyfill/common/hooks/useConditionalListener/useConditionalListener.js +0 -3
  105. package/build/es/no-polyfill/common/hooks/useDirection/index.js +0 -1
  106. package/build/es/no-polyfill/common/hooks/useDirection/useDirection.js +0 -1
  107. package/build/es/no-polyfill/common/hooks/useHasIntersected/index.js +0 -1
  108. package/build/es/no-polyfill/common/hooks/useHasIntersected/useHasIntersected.js +0 -11
  109. package/build/es/no-polyfill/common/hooks/useLayout/index.js +0 -1
  110. package/build/es/no-polyfill/common/hooks/useLayout/useLayout.js +0 -1
  111. package/build/es/no-polyfill/common/index.js +0 -2
  112. package/build/es/no-polyfill/common/key.js +0 -1
  113. package/build/es/no-polyfill/common/keyCodes.js +0 -5
  114. package/build/es/no-polyfill/common/locale/index.js +0 -37
  115. package/build/es/no-polyfill/common/panel/Panel.js +0 -10
  116. package/build/es/no-polyfill/common/panel/index.js +0 -1
  117. package/build/es/no-polyfill/common/propsValues/breakpoint.js +0 -1
  118. package/build/es/no-polyfill/common/propsValues/control.js +0 -1
  119. package/build/es/no-polyfill/common/propsValues/dateMode.js +0 -1
  120. package/build/es/no-polyfill/common/propsValues/layouts.js +0 -1
  121. package/build/es/no-polyfill/common/propsValues/markdownNodeType.js +0 -1
  122. package/build/es/no-polyfill/common/propsValues/monthFormat.js +0 -1
  123. package/build/es/no-polyfill/common/propsValues/position.js +0 -1
  124. package/build/es/no-polyfill/common/propsValues/profileType.js +0 -1
  125. package/build/es/no-polyfill/common/propsValues/scroll.js +0 -1
  126. package/build/es/no-polyfill/common/propsValues/sentiment.js +0 -1
  127. package/build/es/no-polyfill/common/propsValues/size.js +0 -1
  128. package/build/es/no-polyfill/common/propsValues/status.js +0 -1
  129. package/build/es/no-polyfill/common/propsValues/type.js +0 -3
  130. package/build/es/no-polyfill/common/propsValues/typography.js +0 -1
  131. package/build/es/no-polyfill/common/propsValues/variant.js +0 -1
  132. package/build/es/no-polyfill/common/propsValues/width.js +0 -1
  133. package/build/es/no-polyfill/common/requirements.js +0 -3
  134. package/build/es/no-polyfill/common/responsivePanel/ResponsivePanel.js +0 -1
  135. package/build/es/no-polyfill/common/responsivePanel/index.js +0 -1
  136. package/build/es/no-polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +0 -2
  137. package/build/es/no-polyfill/common/textFormat/formatWithPattern/index.js +0 -1
  138. package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -1
  139. package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +0 -1
  140. package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -1
  141. package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +0 -1
  142. package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -2
  143. package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/index.js +0 -1
  144. package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -1
  145. package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +0 -1
  146. package/build/es/no-polyfill/common/textFormat/index.js +0 -1
  147. package/build/es/no-polyfill/common/textFormat/unformatWithPattern/index.js +0 -1
  148. package/build/es/no-polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -1
  149. package/build/es/no-polyfill/common/theme.js +0 -1
  150. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
  151. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
  152. package/build/es/no-polyfill/criticalBanner/index.js +0 -1
  153. package/build/es/no-polyfill/dateInput/DateInput.js +0 -4
  154. package/build/es/no-polyfill/dateInput/DateInput.messages.js +0 -1
  155. package/build/es/no-polyfill/dateInput/index.js +0 -1
  156. package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -2
  157. package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/index.js +0 -1
  158. package/build/es/no-polyfill/dateInput/utils/explodeDate/explodeDate.js +0 -1
  159. package/build/es/no-polyfill/dateInput/utils/explodeDate/index.js +0 -1
  160. package/build/es/no-polyfill/dateInput/utils/index.js +0 -1
  161. package/build/es/no-polyfill/dateLookup/DateLookup.js +0 -3
  162. package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +0 -1
  163. package/build/es/no-polyfill/dateLookup/dateHeader/index.js +0 -1
  164. package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.js +0 -1
  165. package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +0 -1
  166. package/build/es/no-polyfill/dateLookup/dateTrigger/index.js +0 -1
  167. package/build/es/no-polyfill/dateLookup/dayCalendar/DayCalendar.js +0 -1
  168. package/build/es/no-polyfill/dateLookup/dayCalendar/index.js +0 -1
  169. package/build/es/no-polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -4
  170. package/build/es/no-polyfill/dateLookup/dayCalendar/table/index.js +0 -1
  171. package/build/es/no-polyfill/dateLookup/getStartOfDay/getStartOfDay.js +0 -5
  172. package/build/es/no-polyfill/dateLookup/getStartOfDay/index.js +0 -1
  173. package/build/es/no-polyfill/dateLookup/index.js +0 -1
  174. package/build/es/no-polyfill/dateLookup/monthCalendar/MonthCalendar.js +0 -1
  175. package/build/es/no-polyfill/dateLookup/monthCalendar/index.js +0 -1
  176. package/build/es/no-polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -1
  177. package/build/es/no-polyfill/dateLookup/monthCalendar/table/index.js +0 -1
  178. package/build/es/no-polyfill/dateLookup/tableLink/TableLink.js +0 -2
  179. package/build/es/no-polyfill/dateLookup/tableLink/index.js +0 -1
  180. package/build/es/no-polyfill/dateLookup/yearCalendar/YearCalendar.js +0 -1
  181. package/build/es/no-polyfill/dateLookup/yearCalendar/index.js +0 -1
  182. package/build/es/no-polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -1
  183. package/build/es/no-polyfill/dateLookup/yearCalendar/table/index.js +0 -1
  184. package/build/es/no-polyfill/decision/Decision.js +0 -5
  185. package/build/es/no-polyfill/decision/decisionEnums.js +0 -3
  186. package/build/es/no-polyfill/decision/index.js +0 -1
  187. package/build/es/no-polyfill/definitionList/DefinitionList.js +0 -1
  188. package/build/es/no-polyfill/definitionList/index.js +0 -1
  189. package/build/es/no-polyfill/dimmer/Dimmer.js +0 -6
  190. package/build/es/no-polyfill/dimmer/Dimmer.story.js +0 -1
  191. package/build/es/no-polyfill/dimmer/dimmerManager/DimmerManager.js +0 -5
  192. package/build/es/no-polyfill/dimmer/dimmerManager/index.js +0 -1
  193. package/build/es/no-polyfill/dimmer/index.js +0 -1
  194. package/build/es/no-polyfill/display/Display.js +0 -1
  195. package/build/es/no-polyfill/display/Display.story.js +0 -1
  196. package/build/es/no-polyfill/display/index.js +0 -1
  197. package/build/es/no-polyfill/drawer/Drawer.js +0 -1
  198. package/build/es/no-polyfill/drawer/index.js +0 -1
  199. package/build/es/no-polyfill/dropFade/DropFade.js +0 -3
  200. package/build/es/no-polyfill/dropFade/DropFade.story.js +0 -1
  201. package/build/es/no-polyfill/dropFade/index.js +0 -1
  202. package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +0 -1
  203. package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +0 -8
  204. package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +0 -1
  205. package/build/es/no-polyfill/dynamicFieldDefinitionList/index.js +0 -1
  206. package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +0 -2
  207. package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/text-format.js +0 -1
  208. package/build/es/no-polyfill/emphasis/Emphasis.js +0 -2
  209. package/build/es/no-polyfill/emphasis/EmphasisHtmlTransformer.js +0 -7
  210. package/build/es/no-polyfill/emphasis/index.js +0 -1
  211. package/build/es/no-polyfill/flowNavigation/FlowNavigation.js +0 -2
  212. package/build/es/no-polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +0 -1
  213. package/build/es/no-polyfill/flowNavigation/animatedLabel/index.js +0 -1
  214. package/build/es/no-polyfill/flowNavigation/backButton/BackButton.js +0 -1
  215. package/build/es/no-polyfill/flowNavigation/backButton/index.js +0 -1
  216. package/build/es/no-polyfill/flowNavigation/index.js +0 -1
  217. package/build/es/no-polyfill/header/Header.js +0 -5
  218. package/build/es/no-polyfill/header/Header.spec.js +0 -1
  219. package/build/es/no-polyfill/header/Header.story.js +0 -2
  220. package/build/es/no-polyfill/header/index.js +0 -1
  221. package/build/es/no-polyfill/i18n/cs.json +0 -44
  222. package/build/es/no-polyfill/i18n/de.json +0 -44
  223. package/build/es/no-polyfill/i18n/en.json +0 -44
  224. package/build/es/no-polyfill/i18n/es.json +0 -44
  225. package/build/es/no-polyfill/i18n/fr.json +0 -44
  226. package/build/es/no-polyfill/i18n/hu.json +0 -44
  227. package/build/es/no-polyfill/i18n/id.json +0 -44
  228. package/build/es/no-polyfill/i18n/index.js +0 -1
  229. package/build/es/no-polyfill/i18n/it.json +0 -44
  230. package/build/es/no-polyfill/i18n/ja.json +0 -44
  231. package/build/es/no-polyfill/i18n/pl.json +0 -44
  232. package/build/es/no-polyfill/i18n/pt.json +0 -44
  233. package/build/es/no-polyfill/i18n/ro.json +0 -44
  234. package/build/es/no-polyfill/i18n/ru.json +0 -44
  235. package/build/es/no-polyfill/i18n/th.json +0 -44
  236. package/build/es/no-polyfill/i18n/tr.json +0 -44
  237. package/build/es/no-polyfill/i18n/uk.json +0 -44
  238. package/build/es/no-polyfill/i18n/zh-CN.json +0 -44
  239. package/build/es/no-polyfill/i18n/zh.json +0 -44
  240. package/build/es/no-polyfill/image/Image.js +0 -12
  241. package/build/es/no-polyfill/image/index.js +0 -1
  242. package/build/es/no-polyfill/index.js +0 -13
  243. package/build/es/no-polyfill/info/Info.js +0 -1
  244. package/build/es/no-polyfill/info/index.js +0 -1
  245. package/build/es/no-polyfill/info/infoPresentations.js +0 -2
  246. package/build/es/no-polyfill/inlineAlert/InlineAlert.js +0 -1
  247. package/build/es/no-polyfill/inlineAlert/index.js +0 -1
  248. package/build/es/no-polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -1
  249. package/build/es/no-polyfill/inputWithDisplayFormat/index.js +0 -1
  250. package/build/es/no-polyfill/instructionsList/InstructionsList.js +0 -3
  251. package/build/es/no-polyfill/instructionsList/index.js +0 -1
  252. package/build/es/no-polyfill/lab/index.js +0 -1
  253. package/build/es/no-polyfill/lab/mobileNav/MobileNav.js +0 -9
  254. package/build/es/no-polyfill/lab/mobileNav/index.js +0 -1
  255. package/build/es/no-polyfill/lab/mobileNav/utils/index.js +0 -1
  256. package/build/es/no-polyfill/lab/mobileNav/utils/isIpadOsSafari/index.js +0 -1
  257. package/build/es/no-polyfill/lab/mobileNav/utils/isIpadOsSafari/isIpadOsSafari.js +0 -1
  258. package/build/es/no-polyfill/lab/mobileNav/utils/isMobileSafari/index.js +0 -1
  259. package/build/es/no-polyfill/lab/mobileNav/utils/isMobileSafari/isMobileSafari.js +0 -1
  260. package/build/es/no-polyfill/lab/pagination/Pagination.js +0 -1
  261. package/build/es/no-polyfill/lab/pagination/Pagination.messages.js +0 -1
  262. package/build/es/no-polyfill/lab/pagination/index.js +0 -1
  263. package/build/es/no-polyfill/lab/pagination/paginationLink/PaginationLink.js +0 -1
  264. package/build/es/no-polyfill/lab/pagination/paginationLink/PaginationLink.messages.js +0 -1
  265. package/build/es/no-polyfill/lab/pagination/paginationLink/index.js +0 -1
  266. package/build/es/no-polyfill/link/Link.js +0 -5
  267. package/build/es/no-polyfill/link/Link.spec.js +0 -1
  268. package/build/es/no-polyfill/link/Link.story.js +0 -1
  269. package/build/es/no-polyfill/link/index.js +0 -1
  270. package/build/es/no-polyfill/loader/Loader.js +0 -11
  271. package/build/es/no-polyfill/loader/index.js +0 -1
  272. package/build/es/no-polyfill/logo/Logo.js +0 -1
  273. package/build/es/no-polyfill/logo/index.js +0 -1
  274. package/build/es/no-polyfill/logo/logoTypes.js +0 -2
  275. package/build/es/no-polyfill/logo/svg/flag-inverse.svg +0 -1
  276. package/build/es/no-polyfill/logo/svg/flag.svg +0 -1
  277. package/build/es/no-polyfill/logo/svg/logo-business-inverse.svg +0 -1
  278. package/build/es/no-polyfill/logo/svg/logo-business.svg +0 -1
  279. package/build/es/no-polyfill/logo/svg/logo-inverse.svg +0 -1
  280. package/build/es/no-polyfill/logo/svg/logo.svg +0 -1
  281. package/build/es/no-polyfill/markdown/Markdown.js +0 -1
  282. package/build/es/no-polyfill/markdown/index.js +0 -1
  283. package/build/es/no-polyfill/modal/Modal.js +0 -1
  284. package/build/es/no-polyfill/modal/Modal.story.js +0 -1
  285. package/build/es/no-polyfill/modal/index.js +0 -1
  286. package/build/es/no-polyfill/money/Money.js +0 -1
  287. package/build/es/no-polyfill/money/index.js +0 -1
  288. package/build/es/no-polyfill/moneyInput/MoneyInput.js +0 -5
  289. package/build/es/no-polyfill/moneyInput/MoneyInput.messages.js +0 -1
  290. package/build/es/no-polyfill/moneyInput/currencyFormatting.js +0 -4
  291. package/build/es/no-polyfill/moneyInput/index.js +0 -1
  292. package/build/es/no-polyfill/navigationOption/NavigationOption.js +0 -1
  293. package/build/es/no-polyfill/navigationOption/index.js +0 -1
  294. package/build/es/no-polyfill/navigationOptionsList/NavigationOptionsList.js +0 -1
  295. package/build/es/no-polyfill/navigationOptionsList/index.js +0 -1
  296. package/build/es/no-polyfill/nudge/Nudge.js +0 -1
  297. package/build/es/no-polyfill/nudge/index.js +0 -1
  298. package/build/es/no-polyfill/overlayHeader/OverlayHeader.js +0 -1
  299. package/build/es/no-polyfill/overlayHeader/index.js +0 -1
  300. package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +0 -1
  301. package/build/es/no-polyfill/phoneNumberInput/data/countries.js +0 -1
  302. package/build/es/no-polyfill/phoneNumberInput/index.js +0 -1
  303. package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -1
  304. package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/index.js +0 -1
  305. package/build/es/no-polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +0 -7
  306. package/build/es/no-polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +0 -7
  307. package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByCode/index.js +0 -1
  308. package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -1
  309. package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -1
  310. package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +0 -1
  311. package/build/es/no-polyfill/phoneNumberInput/utils/index.js +0 -1
  312. package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +0 -1
  313. package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +0 -7
  314. package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/index.js +0 -1
  315. package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +0 -1
  316. package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +0 -1
  317. package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -6
  318. package/build/es/no-polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -1
  319. package/build/es/no-polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -11
  320. package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +0 -1
  321. package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -2
  322. package/build/es/no-polyfill/popover/Popover.js +0 -4
  323. package/build/es/no-polyfill/popover/index.js +0 -1
  324. package/build/es/no-polyfill/processIndicator/ProcessIndicator.js +0 -12
  325. package/build/es/no-polyfill/processIndicator/index.js +0 -1
  326. package/build/es/no-polyfill/progress/Progress.js +0 -1
  327. package/build/es/no-polyfill/progress/index.js +0 -1
  328. package/build/es/no-polyfill/progressBar/ProgressBar.js +0 -1
  329. package/build/es/no-polyfill/progressBar/index.js +0 -1
  330. package/build/es/no-polyfill/provider/Provider.js +0 -1
  331. package/build/es/no-polyfill/provider/Provider.spec.js +0 -2
  332. package/build/es/no-polyfill/provider/Provider.story.js +0 -1
  333. package/build/es/no-polyfill/provider/direction/DirectionProvider.js +0 -1
  334. package/build/es/no-polyfill/provider/direction/DirectionProvider.spec.js +0 -1
  335. package/build/es/no-polyfill/provider/direction/index.js +0 -1
  336. package/build/es/no-polyfill/provider/index.js +0 -1
  337. package/build/es/no-polyfill/provider/language/LanguageProvider.js +0 -1
  338. package/build/es/no-polyfill/provider/language/LanguageProvider.spec.js +0 -1
  339. package/build/es/no-polyfill/provider/language/index.js +0 -1
  340. package/build/es/no-polyfill/radio/Radio.js +0 -1
  341. package/build/es/no-polyfill/radio/index.js +0 -1
  342. package/build/es/no-polyfill/radioGroup/RadioGroup.js +0 -2
  343. package/build/es/no-polyfill/radioGroup/index.js +0 -1
  344. package/build/es/no-polyfill/radioOption/RadioOption.js +0 -1
  345. package/build/es/no-polyfill/radioOption/index.js +0 -1
  346. package/build/es/no-polyfill/section/Section.js +0 -5
  347. package/build/es/no-polyfill/section/Section.spec.js +0 -1
  348. package/build/es/no-polyfill/section/Section.story.js +0 -1
  349. package/build/es/no-polyfill/section/index.js +0 -1
  350. package/build/es/no-polyfill/select/Select.js +0 -16
  351. package/build/es/no-polyfill/select/Select.messages.js +0 -1
  352. package/build/es/no-polyfill/select/index.js +0 -1
  353. package/build/es/no-polyfill/select/option/Option.js +0 -2
  354. package/build/es/no-polyfill/select/option/index.js +0 -1
  355. package/build/es/no-polyfill/select/searchBox/SearchBox.js +0 -1
  356. package/build/es/no-polyfill/select/searchBox/index.js +0 -1
  357. package/build/es/no-polyfill/sizeSwapper/SizeSwapper.js +0 -5
  358. package/build/es/no-polyfill/sizeSwapper/index.js +0 -1
  359. package/build/es/no-polyfill/slidingPanel/SlidingPanel.js +0 -2
  360. package/build/es/no-polyfill/slidingPanel/index.js +0 -1
  361. package/build/es/no-polyfill/snackbar/Snackbar.js +0 -1
  362. package/build/es/no-polyfill/snackbar/SnackbarContext.js +0 -1
  363. package/build/es/no-polyfill/snackbar/SnackbarProvider.js +0 -1
  364. package/build/es/no-polyfill/snackbar/index.js +0 -1
  365. package/build/es/no-polyfill/snackbar/useSnackbar.js +0 -1
  366. package/build/es/no-polyfill/statusIcon/StatusIcon.js +0 -1
  367. package/build/es/no-polyfill/statusIcon/index.js +0 -1
  368. package/build/es/no-polyfill/stepper/Stepper.js +0 -1
  369. package/build/es/no-polyfill/stepper/deviceDetection.js +0 -4
  370. package/build/es/no-polyfill/stepper/index.js +0 -1
  371. package/build/es/no-polyfill/sticky/Sticky.js +0 -1
  372. package/build/es/no-polyfill/sticky/index.js +0 -1
  373. package/build/es/no-polyfill/summary/Summary.js +0 -1
  374. package/build/es/no-polyfill/summary/Summary.messages.js +0 -1
  375. package/build/es/no-polyfill/summary/index.js +0 -1
  376. package/build/es/no-polyfill/switch/Switch.js +0 -1
  377. package/build/es/no-polyfill/switch/Switch.story.js +0 -1
  378. package/build/es/no-polyfill/switch/index.js +0 -1
  379. package/build/es/no-polyfill/switchOption/SwitchOption.js +0 -1
  380. package/build/es/no-polyfill/switchOption/SwitchOption.story.js +0 -1
  381. package/build/es/no-polyfill/switchOption/index.js +0 -1
  382. package/build/es/no-polyfill/tabs/Tab.js +0 -1
  383. package/build/es/no-polyfill/tabs/TabList.js +0 -1
  384. package/build/es/no-polyfill/tabs/TabPanel.js +0 -1
  385. package/build/es/no-polyfill/tabs/Tabs.js +0 -1
  386. package/build/es/no-polyfill/tabs/index.js +0 -1
  387. package/build/es/no-polyfill/tabs/utils.js +0 -5
  388. package/build/es/no-polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -1
  389. package/build/es/no-polyfill/textareaWithDisplayFormat/index.js +0 -1
  390. package/build/es/no-polyfill/tile/Tile.js +0 -1
  391. package/build/es/no-polyfill/tile/index.js +0 -1
  392. package/build/es/no-polyfill/title/Title.js +0 -1
  393. package/build/es/no-polyfill/title/Title.spec.js +0 -1
  394. package/build/es/no-polyfill/title/Title.story.js +0 -1
  395. package/build/es/no-polyfill/title/index.js +0 -1
  396. package/build/es/no-polyfill/tooltip/Tooltip.js +0 -8
  397. package/build/es/no-polyfill/tooltip/Tooltip.spec.js +0 -1
  398. package/build/es/no-polyfill/tooltip/Tooltip.story.js +0 -1
  399. package/build/es/no-polyfill/tooltip/index.js +0 -1
  400. package/build/es/no-polyfill/typeahead/Typeahead.js +0 -1
  401. package/build/es/no-polyfill/typeahead/index.js +0 -1
  402. package/build/es/no-polyfill/typeahead/typeaheadInput/TypeaheadInput.js +0 -1
  403. package/build/es/no-polyfill/typeahead/typeaheadOption/TypeaheadOption.js +0 -1
  404. package/build/es/no-polyfill/typeahead/util/highlight.js +0 -1
  405. package/build/es/no-polyfill/upload/Upload.js +0 -12
  406. package/build/es/no-polyfill/upload/Upload.messages.js +0 -1
  407. package/build/es/no-polyfill/upload/index.js +0 -1
  408. package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +0 -1
  409. package/build/es/no-polyfill/upload/steps/completeStep/index.js +0 -1
  410. package/build/es/no-polyfill/upload/steps/index.js +0 -1
  411. package/build/es/no-polyfill/upload/steps/mediaUploadStep/index.js +0 -1
  412. package/build/es/no-polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -1
  413. package/build/es/no-polyfill/upload/steps/processingStep/index.js +0 -1
  414. package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +0 -1
  415. package/build/es/no-polyfill/upload/steps/uploadImageStep/index.js +0 -1
  416. package/build/es/no-polyfill/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
  417. package/build/es/no-polyfill/upload/uploadSteps.js +0 -2
  418. package/build/es/no-polyfill/upload/utils/asyncFileRead/asyncFileRead.js +0 -1
  419. package/build/es/no-polyfill/upload/utils/asyncFileRead/index.js +0 -1
  420. package/build/es/no-polyfill/upload/utils/getFileType/getFileType.js +0 -1
  421. package/build/es/no-polyfill/upload/utils/getFileType/index.js +0 -1
  422. package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -2
  423. package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +0 -1
  424. package/build/es/no-polyfill/upload/utils/index.js +0 -1
  425. package/build/es/no-polyfill/upload/utils/isSizeValid/index.js +0 -1
  426. package/build/es/no-polyfill/upload/utils/isSizeValid/isSizeValid.js +0 -1
  427. package/build/es/no-polyfill/upload/utils/isTypeValid/index.js +0 -1
  428. package/build/es/no-polyfill/upload/utils/isTypeValid/isTypeValid.js +0 -1
  429. package/build/es/no-polyfill/upload/utils/postData/index.js +0 -1
  430. package/build/es/no-polyfill/upload/utils/postData/postData.js +0 -1
  431. package/build/es/no-polyfill/upload/utils/requestMedia/index.js +0 -1
  432. package/build/es/no-polyfill/upload/utils/requestMedia/requestMedia.js +0 -1
  433. package/build/es/no-polyfill/uploadInput/UploadInput.js +0 -8
  434. package/build/es/no-polyfill/uploadInput/UploadInput.messages.js +0 -1
  435. package/build/es/no-polyfill/uploadInput/UploadInput.spec.js +0 -1
  436. package/build/es/no-polyfill/uploadInput/UploadInput.story.js +0 -1
  437. package/build/es/no-polyfill/uploadInput/index.js +0 -1
  438. package/build/es/no-polyfill/uploadInput/types.js +0 -1
  439. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +0 -1
  440. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.messages.js +0 -1
  441. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.spec.js +0 -3
  442. package/build/es/no-polyfill/uploadInput/uploadButton/defaults.js +0 -1
  443. package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +0 -3
  444. package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +0 -1
  445. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +0 -2
  446. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.messages.js +0 -1
  447. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.spec.js +0 -1
  448. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItemBody.js +0 -1
  449. package/build/es/no-polyfill/utilities/deprecatedProperty/deprecatedProperty.js +0 -1
  450. package/build/es/no-polyfill/utilities/deprecatedProperty/index.js +0 -1
  451. package/build/es/no-polyfill/utilities/index.js +0 -1
  452. package/build/es/no-polyfill/utilities/logActionRequired.js +0 -1
  453. package/build/es/no-polyfill/withDisplayFormat/WithDisplayFormat.js +0 -8
  454. package/build/es/no-polyfill/withDisplayFormat/index.js +0 -1
  455. package/build/es/no-polyfill/withNextPortal/withNextPortal.js +0 -1
  456. package/build/es/no-polyfill/withNormaliser/WithNormalizer.js +0 -7
  457. package/build/es/no-polyfill/withNormaliser/index.js +0 -1
  458. package/build/es/no-polyfill/withNormaliser/validation/event-utilities/index.js +0 -1
  459. package/build/es/polyfill/accordion/Accordion.js +0 -1
  460. package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +0 -1
  461. package/build/es/polyfill/accordion/AccordionItem/index.js +0 -1
  462. package/build/es/polyfill/accordion/index.js +0 -1
  463. package/build/es/polyfill/actionButton/ActionButton.js +0 -1
  464. package/build/es/polyfill/actionButton/ActionButton.spec.js +0 -1
  465. package/build/es/polyfill/actionButton/ActionButton.story.js +0 -1
  466. package/build/es/polyfill/actionButton/index.js +0 -1
  467. package/build/es/polyfill/actionOption/ActionOption.js +0 -1
  468. package/build/es/polyfill/actionOption/ActionOption.story.js +0 -1
  469. package/build/es/polyfill/actionOption/index.js +0 -1
  470. package/build/es/polyfill/alert/Alert.js +0 -1
  471. package/build/es/polyfill/alert/index.js +0 -1
  472. package/build/es/polyfill/alert/inlineMarkdown/InlineMarkdown.js +0 -1
  473. package/build/es/polyfill/alert/inlineMarkdown/index.js +0 -1
  474. package/build/es/polyfill/alert/withArrow/alertArrowPositions.js +0 -2
  475. package/build/es/polyfill/alert/withArrow/index.js +0 -1
  476. package/build/es/polyfill/alert/withArrow/withArrow.js +0 -1
  477. package/build/es/polyfill/avatar/Avatar.js +0 -1
  478. package/build/es/polyfill/avatar/avatarTypes.js +0 -2
  479. package/build/es/polyfill/avatar/index.js +0 -1
  480. package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +0 -1
  481. package/build/es/polyfill/avatarWrapper/index.js +0 -1
  482. package/build/es/polyfill/badge/Badge.js +0 -1
  483. package/build/es/polyfill/badge/index.js +0 -1
  484. package/build/es/polyfill/body/Body.js +0 -1
  485. package/build/es/polyfill/body/Body.spec.js +0 -1
  486. package/build/es/polyfill/body/Body.story.js +0 -1
  487. package/build/es/polyfill/body/index.js +0 -1
  488. package/build/es/polyfill/button/Button.js +0 -7
  489. package/build/es/polyfill/button/classMap.js +0 -1
  490. package/build/es/polyfill/button/index.js +0 -1
  491. package/build/es/polyfill/button/legacyUtils/index.js +0 -1
  492. package/build/es/polyfill/button/legacyUtils/legacyUtils.js +0 -4
  493. package/build/es/polyfill/card/Card.js +0 -1
  494. package/build/es/polyfill/card/index.js +0 -1
  495. package/build/es/polyfill/checkbox/Checkbox.js +0 -1
  496. package/build/es/polyfill/checkbox/index.js +0 -1
  497. package/build/es/polyfill/checkboxButton/CheckboxButton.js +0 -1
  498. package/build/es/polyfill/checkboxButton/CheckboxButton.spec.js +0 -1
  499. package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +0 -1
  500. package/build/es/polyfill/checkboxButton/index.js +0 -1
  501. package/build/es/polyfill/checkboxOption/CheckboxOption.js +0 -1
  502. package/build/es/polyfill/checkboxOption/CheckboxOption.spec.js +0 -1
  503. package/build/es/polyfill/checkboxOption/CheckboxOption.story.js +0 -1
  504. package/build/es/polyfill/checkboxOption/index.js +0 -1
  505. package/build/es/polyfill/chevron/Chevron.js +0 -1
  506. package/build/es/polyfill/chevron/index.js +0 -1
  507. package/build/es/polyfill/chips/Chip.js +0 -1
  508. package/build/es/polyfill/chips/Chips.js +0 -1
  509. package/build/es/polyfill/chips/Chips.messages.js +0 -1
  510. package/build/es/polyfill/chips/Chips.spec.js +0 -1
  511. package/build/es/polyfill/chips/Chips.story.js +0 -1
  512. package/build/es/polyfill/chips/index.js +0 -1
  513. package/build/es/polyfill/circularButton/CircularButton.js +0 -1
  514. package/build/es/polyfill/circularButton/index.js +0 -1
  515. package/build/es/polyfill/common/DOMOperations/DOMOperations.js +0 -9
  516. package/build/es/polyfill/common/DOMOperations/index.js +0 -1
  517. package/build/es/polyfill/common/Option/Option.js +0 -1
  518. package/build/es/polyfill/common/Option/index.js +0 -1
  519. package/build/es/polyfill/common/RadioButton/RadioButton.js +0 -1
  520. package/build/es/polyfill/common/RadioButton/index.js +0 -1
  521. package/build/es/polyfill/common/bottomSheet/BottomSheet.js +0 -10
  522. package/build/es/polyfill/common/bottomSheet/BottomSheet.spec.js +0 -1
  523. package/build/es/polyfill/common/bottomSheet/index.js +0 -1
  524. package/build/es/polyfill/common/closeButton/CloseButton.js +0 -1
  525. package/build/es/polyfill/common/closeButton/CloseButton.messages.js +0 -1
  526. package/build/es/polyfill/common/closeButton/index.js +0 -1
  527. package/build/es/polyfill/common/commonProps.js +0 -0
  528. package/build/es/polyfill/common/dateUtils/getDayNames/getDayNames.js +0 -2
  529. package/build/es/polyfill/common/dateUtils/getDayNames/index.js +0 -1
  530. package/build/es/polyfill/common/dateUtils/getMonthNames/getMonthNames.js +0 -1
  531. package/build/es/polyfill/common/dateUtils/getMonthNames/index.js +0 -1
  532. package/build/es/polyfill/common/dateUtils/index.js +0 -1
  533. package/build/es/polyfill/common/dateUtils/isDateValid/index.js +0 -1
  534. package/build/es/polyfill/common/dateUtils/isDateValid/isDateValid.js +0 -1
  535. package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/index.js +0 -1
  536. package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -1
  537. package/build/es/polyfill/common/dateUtils/isWithinRange/index.js +0 -1
  538. package/build/es/polyfill/common/dateUtils/isWithinRange/isWithinRange.js +0 -1
  539. package/build/es/polyfill/common/dateUtils/moveToWithinRange/index.js +0 -1
  540. package/build/es/polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -2
  541. package/build/es/polyfill/common/deviceDetection/deviceDetection.js +0 -1
  542. package/build/es/polyfill/common/deviceDetection/index.js +0 -1
  543. package/build/es/polyfill/common/direction.js +0 -1
  544. package/build/es/polyfill/common/domHelpers/documentIosClick.js +0 -5
  545. package/build/es/polyfill/common/domHelpers/index.js +0 -1
  546. package/build/es/polyfill/common/fakeEvents.js +0 -1
  547. package/build/es/polyfill/common/fileType.js +0 -1
  548. package/build/es/polyfill/common/flowHeader/FlowHeader.js +0 -1
  549. package/build/es/polyfill/common/flowHeader/index.js +0 -1
  550. package/build/es/polyfill/common/focusBoundary/FocusBoundary.js +0 -1
  551. package/build/es/polyfill/common/focusBoundary/index.js +0 -1
  552. package/build/es/polyfill/common/focusBoundary/utils/getFocusableElements.js +0 -6
  553. package/build/es/polyfill/common/focusBoundary/utils/index.js +0 -1
  554. package/build/es/polyfill/common/focusBoundary/utils/resetFocus.js +0 -6
  555. package/build/es/polyfill/common/historyNavigator/historyNavigator.js +0 -1
  556. package/build/es/polyfill/common/historyNavigator/index.js +0 -1
  557. package/build/es/polyfill/common/hooks/index.js +0 -1
  558. package/build/es/polyfill/common/hooks/useClientWidth/index.js +0 -1
  559. package/build/es/polyfill/common/hooks/useClientWidth/useClientWidth.js +0 -5
  560. package/build/es/polyfill/common/hooks/useConditionalListener/index.js +0 -1
  561. package/build/es/polyfill/common/hooks/useConditionalListener/useConditionalListener.js +0 -3
  562. package/build/es/polyfill/common/hooks/useDirection/index.js +0 -1
  563. package/build/es/polyfill/common/hooks/useDirection/useDirection.js +0 -1
  564. package/build/es/polyfill/common/hooks/useHasIntersected/index.js +0 -1
  565. package/build/es/polyfill/common/hooks/useHasIntersected/useHasIntersected.js +0 -11
  566. package/build/es/polyfill/common/hooks/useLayout/index.js +0 -1
  567. package/build/es/polyfill/common/hooks/useLayout/useLayout.js +0 -1
  568. package/build/es/polyfill/common/index.js +0 -2
  569. package/build/es/polyfill/common/key.js +0 -1
  570. package/build/es/polyfill/common/keyCodes.js +0 -5
  571. package/build/es/polyfill/common/locale/index.js +0 -37
  572. package/build/es/polyfill/common/panel/Panel.js +0 -10
  573. package/build/es/polyfill/common/panel/index.js +0 -1
  574. package/build/es/polyfill/common/propsValues/breakpoint.js +0 -1
  575. package/build/es/polyfill/common/propsValues/control.js +0 -1
  576. package/build/es/polyfill/common/propsValues/dateMode.js +0 -1
  577. package/build/es/polyfill/common/propsValues/layouts.js +0 -1
  578. package/build/es/polyfill/common/propsValues/markdownNodeType.js +0 -1
  579. package/build/es/polyfill/common/propsValues/monthFormat.js +0 -1
  580. package/build/es/polyfill/common/propsValues/position.js +0 -1
  581. package/build/es/polyfill/common/propsValues/profileType.js +0 -1
  582. package/build/es/polyfill/common/propsValues/scroll.js +0 -1
  583. package/build/es/polyfill/common/propsValues/sentiment.js +0 -1
  584. package/build/es/polyfill/common/propsValues/size.js +0 -1
  585. package/build/es/polyfill/common/propsValues/status.js +0 -1
  586. package/build/es/polyfill/common/propsValues/type.js +0 -3
  587. package/build/es/polyfill/common/propsValues/typography.js +0 -1
  588. package/build/es/polyfill/common/propsValues/variant.js +0 -1
  589. package/build/es/polyfill/common/propsValues/width.js +0 -1
  590. package/build/es/polyfill/common/requirements.js +0 -3
  591. package/build/es/polyfill/common/responsivePanel/ResponsivePanel.js +0 -1
  592. package/build/es/polyfill/common/responsivePanel/index.js +0 -1
  593. package/build/es/polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +0 -2
  594. package/build/es/polyfill/common/textFormat/formatWithPattern/index.js +0 -1
  595. package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -1
  596. package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +0 -1
  597. package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -1
  598. package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +0 -1
  599. package/build/es/polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -2
  600. package/build/es/polyfill/common/textFormat/getDistanceToSymbol/index.js +0 -1
  601. package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -1
  602. package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +0 -1
  603. package/build/es/polyfill/common/textFormat/index.js +0 -1
  604. package/build/es/polyfill/common/textFormat/unformatWithPattern/index.js +0 -1
  605. package/build/es/polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -1
  606. package/build/es/polyfill/common/theme.js +0 -1
  607. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
  608. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
  609. package/build/es/polyfill/criticalBanner/index.js +0 -1
  610. package/build/es/polyfill/dateInput/DateInput.js +0 -4
  611. package/build/es/polyfill/dateInput/DateInput.messages.js +0 -1
  612. package/build/es/polyfill/dateInput/index.js +0 -1
  613. package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -2
  614. package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/index.js +0 -1
  615. package/build/es/polyfill/dateInput/utils/explodeDate/explodeDate.js +0 -1
  616. package/build/es/polyfill/dateInput/utils/explodeDate/index.js +0 -1
  617. package/build/es/polyfill/dateInput/utils/index.js +0 -1
  618. package/build/es/polyfill/dateLookup/DateLookup.js +0 -3
  619. package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +0 -1
  620. package/build/es/polyfill/dateLookup/dateHeader/index.js +0 -1
  621. package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.js +0 -1
  622. package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +0 -1
  623. package/build/es/polyfill/dateLookup/dateTrigger/index.js +0 -1
  624. package/build/es/polyfill/dateLookup/dayCalendar/DayCalendar.js +0 -1
  625. package/build/es/polyfill/dateLookup/dayCalendar/index.js +0 -1
  626. package/build/es/polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -4
  627. package/build/es/polyfill/dateLookup/dayCalendar/table/index.js +0 -1
  628. package/build/es/polyfill/dateLookup/getStartOfDay/getStartOfDay.js +0 -5
  629. package/build/es/polyfill/dateLookup/getStartOfDay/index.js +0 -1
  630. package/build/es/polyfill/dateLookup/index.js +0 -1
  631. package/build/es/polyfill/dateLookup/monthCalendar/MonthCalendar.js +0 -1
  632. package/build/es/polyfill/dateLookup/monthCalendar/index.js +0 -1
  633. package/build/es/polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -1
  634. package/build/es/polyfill/dateLookup/monthCalendar/table/index.js +0 -1
  635. package/build/es/polyfill/dateLookup/tableLink/TableLink.js +0 -2
  636. package/build/es/polyfill/dateLookup/tableLink/index.js +0 -1
  637. package/build/es/polyfill/dateLookup/yearCalendar/YearCalendar.js +0 -1
  638. package/build/es/polyfill/dateLookup/yearCalendar/index.js +0 -1
  639. package/build/es/polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -1
  640. package/build/es/polyfill/dateLookup/yearCalendar/table/index.js +0 -1
  641. package/build/es/polyfill/decision/Decision.js +0 -5
  642. package/build/es/polyfill/decision/decisionEnums.js +0 -3
  643. package/build/es/polyfill/decision/index.js +0 -1
  644. package/build/es/polyfill/definitionList/DefinitionList.js +0 -1
  645. package/build/es/polyfill/definitionList/index.js +0 -1
  646. package/build/es/polyfill/dimmer/Dimmer.js +0 -6
  647. package/build/es/polyfill/dimmer/Dimmer.story.js +0 -1
  648. package/build/es/polyfill/dimmer/dimmerManager/DimmerManager.js +0 -5
  649. package/build/es/polyfill/dimmer/dimmerManager/index.js +0 -1
  650. package/build/es/polyfill/dimmer/index.js +0 -1
  651. package/build/es/polyfill/display/Display.js +0 -1
  652. package/build/es/polyfill/display/Display.story.js +0 -1
  653. package/build/es/polyfill/display/index.js +0 -1
  654. package/build/es/polyfill/drawer/Drawer.js +0 -1
  655. package/build/es/polyfill/drawer/index.js +0 -1
  656. package/build/es/polyfill/dropFade/DropFade.js +0 -3
  657. package/build/es/polyfill/dropFade/DropFade.story.js +0 -1
  658. package/build/es/polyfill/dropFade/index.js +0 -1
  659. package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +0 -1
  660. package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +0 -8
  661. package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +0 -1
  662. package/build/es/polyfill/dynamicFieldDefinitionList/index.js +0 -1
  663. package/build/es/polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +0 -2
  664. package/build/es/polyfill/dynamicFieldDefinitionList/utils/text-format.js +0 -1
  665. package/build/es/polyfill/emphasis/Emphasis.js +0 -2
  666. package/build/es/polyfill/emphasis/EmphasisHtmlTransformer.js +0 -7
  667. package/build/es/polyfill/emphasis/index.js +0 -1
  668. package/build/es/polyfill/flowNavigation/FlowNavigation.js +0 -2
  669. package/build/es/polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +0 -1
  670. package/build/es/polyfill/flowNavigation/animatedLabel/index.js +0 -1
  671. package/build/es/polyfill/flowNavigation/backButton/BackButton.js +0 -1
  672. package/build/es/polyfill/flowNavigation/backButton/index.js +0 -1
  673. package/build/es/polyfill/flowNavigation/index.js +0 -1
  674. package/build/es/polyfill/header/Header.js +0 -5
  675. package/build/es/polyfill/header/Header.spec.js +0 -1
  676. package/build/es/polyfill/header/Header.story.js +0 -2
  677. package/build/es/polyfill/header/index.js +0 -1
  678. package/build/es/polyfill/i18n/cs.json +0 -44
  679. package/build/es/polyfill/i18n/de.json +0 -44
  680. package/build/es/polyfill/i18n/en.json +0 -44
  681. package/build/es/polyfill/i18n/es.json +0 -44
  682. package/build/es/polyfill/i18n/fr.json +0 -44
  683. package/build/es/polyfill/i18n/hu.json +0 -44
  684. package/build/es/polyfill/i18n/id.json +0 -44
  685. package/build/es/polyfill/i18n/index.js +0 -1
  686. package/build/es/polyfill/i18n/it.json +0 -44
  687. package/build/es/polyfill/i18n/ja.json +0 -44
  688. package/build/es/polyfill/i18n/pl.json +0 -44
  689. package/build/es/polyfill/i18n/pt.json +0 -44
  690. package/build/es/polyfill/i18n/ro.json +0 -44
  691. package/build/es/polyfill/i18n/ru.json +0 -44
  692. package/build/es/polyfill/i18n/th.json +0 -44
  693. package/build/es/polyfill/i18n/tr.json +0 -44
  694. package/build/es/polyfill/i18n/uk.json +0 -44
  695. package/build/es/polyfill/i18n/zh-CN.json +0 -44
  696. package/build/es/polyfill/i18n/zh.json +0 -44
  697. package/build/es/polyfill/image/Image.js +0 -12
  698. package/build/es/polyfill/image/index.js +0 -1
  699. package/build/es/polyfill/index.js +0 -13
  700. package/build/es/polyfill/info/Info.js +0 -1
  701. package/build/es/polyfill/info/index.js +0 -1
  702. package/build/es/polyfill/info/infoPresentations.js +0 -2
  703. package/build/es/polyfill/inlineAlert/InlineAlert.js +0 -1
  704. package/build/es/polyfill/inlineAlert/index.js +0 -1
  705. package/build/es/polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -1
  706. package/build/es/polyfill/inputWithDisplayFormat/index.js +0 -1
  707. package/build/es/polyfill/instructionsList/InstructionsList.js +0 -3
  708. package/build/es/polyfill/instructionsList/index.js +0 -1
  709. package/build/es/polyfill/lab/index.js +0 -1
  710. package/build/es/polyfill/lab/mobileNav/MobileNav.js +0 -9
  711. package/build/es/polyfill/lab/mobileNav/index.js +0 -1
  712. package/build/es/polyfill/lab/mobileNav/utils/index.js +0 -1
  713. package/build/es/polyfill/lab/mobileNav/utils/isIpadOsSafari/index.js +0 -1
  714. package/build/es/polyfill/lab/mobileNav/utils/isIpadOsSafari/isIpadOsSafari.js +0 -1
  715. package/build/es/polyfill/lab/mobileNav/utils/isMobileSafari/index.js +0 -1
  716. package/build/es/polyfill/lab/mobileNav/utils/isMobileSafari/isMobileSafari.js +0 -1
  717. package/build/es/polyfill/lab/pagination/Pagination.js +0 -1
  718. package/build/es/polyfill/lab/pagination/Pagination.messages.js +0 -1
  719. package/build/es/polyfill/lab/pagination/index.js +0 -1
  720. package/build/es/polyfill/lab/pagination/paginationLink/PaginationLink.js +0 -1
  721. package/build/es/polyfill/lab/pagination/paginationLink/PaginationLink.messages.js +0 -1
  722. package/build/es/polyfill/lab/pagination/paginationLink/index.js +0 -1
  723. package/build/es/polyfill/link/Link.js +0 -5
  724. package/build/es/polyfill/link/Link.spec.js +0 -1
  725. package/build/es/polyfill/link/Link.story.js +0 -1
  726. package/build/es/polyfill/link/index.js +0 -1
  727. package/build/es/polyfill/loader/Loader.js +0 -11
  728. package/build/es/polyfill/loader/index.js +0 -1
  729. package/build/es/polyfill/logo/Logo.js +0 -1
  730. package/build/es/polyfill/logo/index.js +0 -1
  731. package/build/es/polyfill/logo/logoTypes.js +0 -2
  732. package/build/es/polyfill/logo/svg/flag-inverse.svg +0 -1
  733. package/build/es/polyfill/logo/svg/flag.svg +0 -1
  734. package/build/es/polyfill/logo/svg/logo-business-inverse.svg +0 -1
  735. package/build/es/polyfill/logo/svg/logo-business.svg +0 -1
  736. package/build/es/polyfill/logo/svg/logo-inverse.svg +0 -1
  737. package/build/es/polyfill/logo/svg/logo.svg +0 -1
  738. package/build/es/polyfill/markdown/Markdown.js +0 -1
  739. package/build/es/polyfill/markdown/index.js +0 -1
  740. package/build/es/polyfill/modal/Modal.js +0 -1
  741. package/build/es/polyfill/modal/Modal.story.js +0 -1
  742. package/build/es/polyfill/modal/index.js +0 -1
  743. package/build/es/polyfill/money/Money.js +0 -1
  744. package/build/es/polyfill/money/index.js +0 -1
  745. package/build/es/polyfill/moneyInput/MoneyInput.js +0 -5
  746. package/build/es/polyfill/moneyInput/MoneyInput.messages.js +0 -1
  747. package/build/es/polyfill/moneyInput/currencyFormatting.js +0 -4
  748. package/build/es/polyfill/moneyInput/index.js +0 -1
  749. package/build/es/polyfill/navigationOption/NavigationOption.js +0 -1
  750. package/build/es/polyfill/navigationOption/index.js +0 -1
  751. package/build/es/polyfill/navigationOptionsList/NavigationOptionsList.js +0 -1
  752. package/build/es/polyfill/navigationOptionsList/index.js +0 -1
  753. package/build/es/polyfill/nudge/Nudge.js +0 -1
  754. package/build/es/polyfill/nudge/index.js +0 -1
  755. package/build/es/polyfill/overlayHeader/OverlayHeader.js +0 -1
  756. package/build/es/polyfill/overlayHeader/index.js +0 -1
  757. package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +0 -1
  758. package/build/es/polyfill/phoneNumberInput/data/countries.js +0 -1
  759. package/build/es/polyfill/phoneNumberInput/index.js +0 -1
  760. package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -1
  761. package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/index.js +0 -1
  762. package/build/es/polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +0 -7
  763. package/build/es/polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +0 -7
  764. package/build/es/polyfill/phoneNumberInput/utils/findCountryByCode/index.js +0 -1
  765. package/build/es/polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -1
  766. package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -1
  767. package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +0 -1
  768. package/build/es/polyfill/phoneNumberInput/utils/index.js +0 -1
  769. package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +0 -1
  770. package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +0 -7
  771. package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/index.js +0 -1
  772. package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +0 -1
  773. package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +0 -1
  774. package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -6
  775. package/build/es/polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -1
  776. package/build/es/polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -11
  777. package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +0 -1
  778. package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -2
  779. package/build/es/polyfill/popover/Popover.js +0 -4
  780. package/build/es/polyfill/popover/index.js +0 -1
  781. package/build/es/polyfill/processIndicator/ProcessIndicator.js +0 -12
  782. package/build/es/polyfill/processIndicator/index.js +0 -1
  783. package/build/es/polyfill/progress/Progress.js +0 -1
  784. package/build/es/polyfill/progress/index.js +0 -1
  785. package/build/es/polyfill/progressBar/ProgressBar.js +0 -1
  786. package/build/es/polyfill/progressBar/index.js +0 -1
  787. package/build/es/polyfill/provider/Provider.js +0 -1
  788. package/build/es/polyfill/provider/Provider.spec.js +0 -2
  789. package/build/es/polyfill/provider/Provider.story.js +0 -1
  790. package/build/es/polyfill/provider/direction/DirectionProvider.js +0 -1
  791. package/build/es/polyfill/provider/direction/DirectionProvider.spec.js +0 -1
  792. package/build/es/polyfill/provider/direction/index.js +0 -1
  793. package/build/es/polyfill/provider/index.js +0 -1
  794. package/build/es/polyfill/provider/language/LanguageProvider.js +0 -1
  795. package/build/es/polyfill/provider/language/LanguageProvider.spec.js +0 -1
  796. package/build/es/polyfill/provider/language/index.js +0 -1
  797. package/build/es/polyfill/radio/Radio.js +0 -1
  798. package/build/es/polyfill/radio/index.js +0 -1
  799. package/build/es/polyfill/radioGroup/RadioGroup.js +0 -2
  800. package/build/es/polyfill/radioGroup/index.js +0 -1
  801. package/build/es/polyfill/radioOption/RadioOption.js +0 -1
  802. package/build/es/polyfill/radioOption/index.js +0 -1
  803. package/build/es/polyfill/section/Section.js +0 -5
  804. package/build/es/polyfill/section/Section.spec.js +0 -1
  805. package/build/es/polyfill/section/Section.story.js +0 -1
  806. package/build/es/polyfill/section/index.js +0 -1
  807. package/build/es/polyfill/select/Select.js +0 -16
  808. package/build/es/polyfill/select/Select.messages.js +0 -1
  809. package/build/es/polyfill/select/index.js +0 -1
  810. package/build/es/polyfill/select/option/Option.js +0 -2
  811. package/build/es/polyfill/select/option/index.js +0 -1
  812. package/build/es/polyfill/select/searchBox/SearchBox.js +0 -1
  813. package/build/es/polyfill/select/searchBox/index.js +0 -1
  814. package/build/es/polyfill/sizeSwapper/SizeSwapper.js +0 -5
  815. package/build/es/polyfill/sizeSwapper/index.js +0 -1
  816. package/build/es/polyfill/slidingPanel/SlidingPanel.js +0 -2
  817. package/build/es/polyfill/slidingPanel/index.js +0 -1
  818. package/build/es/polyfill/snackbar/Snackbar.js +0 -1
  819. package/build/es/polyfill/snackbar/SnackbarContext.js +0 -1
  820. package/build/es/polyfill/snackbar/SnackbarProvider.js +0 -1
  821. package/build/es/polyfill/snackbar/index.js +0 -1
  822. package/build/es/polyfill/snackbar/useSnackbar.js +0 -1
  823. package/build/es/polyfill/statusIcon/StatusIcon.js +0 -1
  824. package/build/es/polyfill/statusIcon/index.js +0 -1
  825. package/build/es/polyfill/stepper/Stepper.js +0 -1
  826. package/build/es/polyfill/stepper/deviceDetection.js +0 -4
  827. package/build/es/polyfill/stepper/index.js +0 -1
  828. package/build/es/polyfill/sticky/Sticky.js +0 -1
  829. package/build/es/polyfill/sticky/index.js +0 -1
  830. package/build/es/polyfill/summary/Summary.js +0 -1
  831. package/build/es/polyfill/summary/Summary.messages.js +0 -1
  832. package/build/es/polyfill/summary/index.js +0 -1
  833. package/build/es/polyfill/switch/Switch.js +0 -1
  834. package/build/es/polyfill/switch/Switch.story.js +0 -1
  835. package/build/es/polyfill/switch/index.js +0 -1
  836. package/build/es/polyfill/switchOption/SwitchOption.js +0 -1
  837. package/build/es/polyfill/switchOption/SwitchOption.story.js +0 -1
  838. package/build/es/polyfill/switchOption/index.js +0 -1
  839. package/build/es/polyfill/tabs/Tab.js +0 -1
  840. package/build/es/polyfill/tabs/TabList.js +0 -1
  841. package/build/es/polyfill/tabs/TabPanel.js +0 -1
  842. package/build/es/polyfill/tabs/Tabs.js +0 -1
  843. package/build/es/polyfill/tabs/index.js +0 -1
  844. package/build/es/polyfill/tabs/utils.js +0 -5
  845. package/build/es/polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -1
  846. package/build/es/polyfill/textareaWithDisplayFormat/index.js +0 -1
  847. package/build/es/polyfill/tile/Tile.js +0 -1
  848. package/build/es/polyfill/tile/index.js +0 -1
  849. package/build/es/polyfill/title/Title.js +0 -1
  850. package/build/es/polyfill/title/Title.spec.js +0 -1
  851. package/build/es/polyfill/title/Title.story.js +0 -1
  852. package/build/es/polyfill/title/index.js +0 -1
  853. package/build/es/polyfill/tooltip/Tooltip.js +0 -8
  854. package/build/es/polyfill/tooltip/Tooltip.spec.js +0 -1
  855. package/build/es/polyfill/tooltip/Tooltip.story.js +0 -1
  856. package/build/es/polyfill/tooltip/index.js +0 -1
  857. package/build/es/polyfill/typeahead/Typeahead.js +0 -1
  858. package/build/es/polyfill/typeahead/index.js +0 -1
  859. package/build/es/polyfill/typeahead/typeaheadInput/TypeaheadInput.js +0 -1
  860. package/build/es/polyfill/typeahead/typeaheadOption/TypeaheadOption.js +0 -1
  861. package/build/es/polyfill/typeahead/util/highlight.js +0 -1
  862. package/build/es/polyfill/upload/Upload.js +0 -12
  863. package/build/es/polyfill/upload/Upload.messages.js +0 -1
  864. package/build/es/polyfill/upload/index.js +0 -1
  865. package/build/es/polyfill/upload/steps/completeStep/completeStep.js +0 -1
  866. package/build/es/polyfill/upload/steps/completeStep/index.js +0 -1
  867. package/build/es/polyfill/upload/steps/index.js +0 -1
  868. package/build/es/polyfill/upload/steps/mediaUploadStep/index.js +0 -1
  869. package/build/es/polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -1
  870. package/build/es/polyfill/upload/steps/processingStep/index.js +0 -1
  871. package/build/es/polyfill/upload/steps/processingStep/processingStep.js +0 -1
  872. package/build/es/polyfill/upload/steps/uploadImageStep/index.js +0 -1
  873. package/build/es/polyfill/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
  874. package/build/es/polyfill/upload/uploadSteps.js +0 -2
  875. package/build/es/polyfill/upload/utils/asyncFileRead/asyncFileRead.js +0 -1
  876. package/build/es/polyfill/upload/utils/asyncFileRead/index.js +0 -1
  877. package/build/es/polyfill/upload/utils/getFileType/getFileType.js +0 -1
  878. package/build/es/polyfill/upload/utils/getFileType/index.js +0 -1
  879. package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -2
  880. package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +0 -1
  881. package/build/es/polyfill/upload/utils/index.js +0 -1
  882. package/build/es/polyfill/upload/utils/isSizeValid/index.js +0 -1
  883. package/build/es/polyfill/upload/utils/isSizeValid/isSizeValid.js +0 -1
  884. package/build/es/polyfill/upload/utils/isTypeValid/index.js +0 -1
  885. package/build/es/polyfill/upload/utils/isTypeValid/isTypeValid.js +0 -1
  886. package/build/es/polyfill/upload/utils/postData/index.js +0 -1
  887. package/build/es/polyfill/upload/utils/postData/postData.js +0 -1
  888. package/build/es/polyfill/upload/utils/requestMedia/index.js +0 -1
  889. package/build/es/polyfill/upload/utils/requestMedia/requestMedia.js +0 -1
  890. package/build/es/polyfill/uploadInput/UploadInput.js +0 -8
  891. package/build/es/polyfill/uploadInput/UploadInput.messages.js +0 -1
  892. package/build/es/polyfill/uploadInput/UploadInput.spec.js +0 -1
  893. package/build/es/polyfill/uploadInput/UploadInput.story.js +0 -1
  894. package/build/es/polyfill/uploadInput/index.js +0 -1
  895. package/build/es/polyfill/uploadInput/types.js +0 -1
  896. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +0 -1
  897. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.messages.js +0 -1
  898. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.spec.js +0 -3
  899. package/build/es/polyfill/uploadInput/uploadButton/defaults.js +0 -1
  900. package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +0 -3
  901. package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +0 -1
  902. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +0 -2
  903. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.messages.js +0 -1
  904. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.spec.js +0 -1
  905. package/build/es/polyfill/uploadInput/uploadItem/UploadItemBody.js +0 -1
  906. package/build/es/polyfill/utilities/deprecatedProperty/deprecatedProperty.js +0 -1
  907. package/build/es/polyfill/utilities/deprecatedProperty/index.js +0 -1
  908. package/build/es/polyfill/utilities/index.js +0 -1
  909. package/build/es/polyfill/utilities/logActionRequired.js +0 -1
  910. package/build/es/polyfill/withDisplayFormat/WithDisplayFormat.js +0 -8
  911. package/build/es/polyfill/withDisplayFormat/index.js +0 -1
  912. package/build/es/polyfill/withNextPortal/withNextPortal.js +0 -1
  913. package/build/es/polyfill/withNormaliser/WithNormalizer.js +0 -7
  914. package/build/es/polyfill/withNormaliser/index.js +0 -1
  915. package/build/es/polyfill/withNormaliser/validation/event-utilities/index.js +0 -1
  916. package/build/i18n/cs.json +0 -44
  917. package/build/i18n/de.json +0 -44
  918. package/build/i18n/en.json +0 -44
  919. package/build/i18n/es.json +0 -44
  920. package/build/i18n/fr.json +0 -44
  921. package/build/i18n/hu.json +0 -44
  922. package/build/i18n/id.json +0 -44
  923. package/build/i18n/it.json +0 -44
  924. package/build/i18n/ja.json +0 -44
  925. package/build/i18n/pl.json +0 -44
  926. package/build/i18n/pt.json +0 -44
  927. package/build/i18n/ro.json +0 -44
  928. package/build/i18n/ru.json +0 -44
  929. package/build/i18n/th.json +0 -44
  930. package/build/i18n/tr.json +0 -44
  931. package/build/i18n/uk.json +0 -44
  932. package/build/i18n/zh-CN.json +0 -44
  933. package/build/i18n/zh.json +0 -44
  934. package/build/main.css +0 -1
  935. package/build/styles/accordion/Accordion.css +0 -1
  936. package/build/styles/actionButton/ActionButton.css +0 -1
  937. package/build/styles/avatar/Avatar.css +0 -1
  938. package/build/styles/badge/Badge.css +0 -1
  939. package/build/styles/button/Button.css +0 -1
  940. package/build/styles/card/Card.css +0 -1
  941. package/build/styles/checkboxButton/CheckboxButton.css +0 -1
  942. package/build/styles/chips/Chip.css +0 -1
  943. package/build/styles/circularButton/CircularButton.css +0 -1
  944. package/build/styles/common/Option/Option.css +0 -1
  945. package/build/styles/common/RadioButton/RadioButton.css +0 -1
  946. package/build/styles/common/bottomSheet/BottomSheet.css +0 -1
  947. package/build/styles/common/closeButton/CloseButton.css +0 -1
  948. package/build/styles/common/panel/Panel.css +0 -1
  949. package/build/styles/criticalBanner/CriticalCommsBanner.css +0 -1
  950. package/build/styles/dateInput/DateInput.css +0 -1
  951. package/build/styles/dateLookup/DateLookup.css +0 -1
  952. package/build/styles/dateLookup/dateTrigger/DateTrigger.css +0 -1
  953. package/build/styles/decision/Decision.css +0 -1
  954. package/build/styles/definitionList/DefinitionList.css +0 -1
  955. package/build/styles/dimmer/Dimmer.css +0 -1
  956. package/build/styles/drawer/Drawer.css +0 -1
  957. package/build/styles/dropFade/DropFade.css +0 -1
  958. package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +0 -1
  959. package/build/styles/emphasis/Emphasis.css +0 -1
  960. package/build/styles/flowNavigation/FlowNavigation.css +0 -1
  961. package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +0 -1
  962. package/build/styles/flowNavigation/backButton/BackButton.css +0 -1
  963. package/build/styles/header/Header.css +0 -1
  964. package/build/styles/image/Image.css +0 -1
  965. package/build/styles/info/Info.css +0 -1
  966. package/build/styles/instructionsList/InstructionsList.css +0 -1
  967. package/build/styles/lab/mobileNav/MobileNav.css +0 -1
  968. package/build/styles/lab/pagination/Pagination.css +0 -1
  969. package/build/styles/link/Link.css +0 -1
  970. package/build/styles/loader/Loader.css +0 -1
  971. package/build/styles/logo/Logo.css +0 -1
  972. package/build/styles/main.css +0 -1
  973. package/build/styles/modal/Modal.css +0 -1
  974. package/build/styles/moneyInput/MoneyInput.css +0 -1
  975. package/build/styles/navigationOption/NavigationOption.css +0 -1
  976. package/build/styles/navigationOptionsList/NavigationOptionsList.css +0 -1
  977. package/build/styles/nudge/Nudge.css +0 -1
  978. package/build/styles/overlayHeader/OverlayHeader.css +0 -1
  979. package/build/styles/phoneNumberInput/PhoneNumberInput.css +0 -1
  980. package/build/styles/popover/Popover.css +0 -1
  981. package/build/styles/progress/Progress.css +0 -1
  982. package/build/styles/progressBar/ProgressBar.css +0 -1
  983. package/build/styles/section/Section.css +0 -1
  984. package/build/styles/select/Select.css +0 -1
  985. package/build/styles/slidingPanel/SlidingPanel.css +0 -1
  986. package/build/styles/snackbar/Snackbar.css +0 -1
  987. package/build/styles/statusIcon/StatusIcon.css +0 -1
  988. package/build/styles/stepper/Stepper.css +0 -1
  989. package/build/styles/summary/Summary.css +0 -1
  990. package/build/styles/switch/Switch.css +0 -1
  991. package/build/styles/tabs/Tabs.css +0 -1
  992. package/build/styles/tile/Tile.css +0 -1
  993. package/build/styles/tooltip/Tooltip.css +0 -1
  994. package/build/styles/typeahead/Typeahead.css +0 -1
  995. package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +0 -1
  996. package/build/styles/upload/Upload.css +0 -1
  997. package/build/styles/uploadInput/UploadInput.css +0 -1
  998. package/build/styles/uploadInput/uploadButton/UploadButton.css +0 -1
  999. package/build/styles/uploadInput/uploadItem/UploadItem.css +0 -1
  1000. package/build/types/accordion/Accordion.d.ts +0 -22
  1001. package/build/types/accordion/AccordionItem/AccordionItem.d.ts +0 -31
  1002. package/build/types/accordion/AccordionItem/index.d.ts +0 -1
  1003. package/build/types/accordion/index.d.ts +0 -1
  1004. package/build/types/actionButton/ActionButton.d.ts +0 -14
  1005. package/build/types/actionButton/ActionButton.spec.d.ts +0 -1
  1006. package/build/types/actionButton/ActionButton.story.d.ts +0 -6
  1007. package/build/types/actionButton/index.d.ts +0 -2
  1008. package/build/types/actionOption/ActionOption.d.ts +0 -16
  1009. package/build/types/actionOption/ActionOption.story.d.ts +0 -20
  1010. package/build/types/actionOption/index.d.ts +0 -1
  1011. package/build/types/alert/Alert.d.ts +0 -54
  1012. package/build/types/alert/index.d.ts +0 -1
  1013. package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts +0 -13
  1014. package/build/types/alert/inlineMarkdown/index.d.ts +0 -1
  1015. package/build/types/alert/withArrow/alertArrowPositions.d.ts +0 -8
  1016. package/build/types/alert/withArrow/index.d.ts +0 -2
  1017. package/build/types/alert/withArrow/withArrow.d.ts +0 -11
  1018. package/build/types/avatar/Avatar.d.ts +0 -22
  1019. package/build/types/avatar/avatarTypes.d.ts +0 -6
  1020. package/build/types/avatar/index.d.ts +0 -2
  1021. package/build/types/avatarWrapper/AvatarWrapper.d.ts +0 -27
  1022. package/build/types/avatarWrapper/index.d.ts +0 -2
  1023. package/build/types/badge/Badge.d.ts +0 -10
  1024. package/build/types/badge/index.d.ts +0 -1
  1025. package/build/types/body/Body.d.ts +0 -14
  1026. package/build/types/body/Body.spec.d.ts +0 -1
  1027. package/build/types/body/Body.story.d.ts +0 -8
  1028. package/build/types/body/index.d.ts +0 -1
  1029. package/build/types/button/Button.d.ts +0 -27
  1030. package/build/types/button/classMap.d.ts +0 -10
  1031. package/build/types/button/index.d.ts +0 -2
  1032. package/build/types/button/legacyUtils/index.d.ts +0 -1
  1033. package/build/types/button/legacyUtils/legacyUtils.d.ts +0 -6
  1034. package/build/types/card/Card.d.ts +0 -20
  1035. package/build/types/card/index.d.ts +0 -1
  1036. package/build/types/checkbox/Checkbox.d.ts +0 -20
  1037. package/build/types/checkbox/index.d.ts +0 -2
  1038. package/build/types/checkboxButton/CheckboxButton.d.ts +0 -4
  1039. package/build/types/checkboxButton/CheckboxButton.spec.d.ts +0 -1
  1040. package/build/types/checkboxButton/CheckboxButton.story.d.ts +0 -7
  1041. package/build/types/checkboxButton/index.d.ts +0 -1
  1042. package/build/types/checkboxOption/CheckboxOption.d.ts +0 -24
  1043. package/build/types/checkboxOption/CheckboxOption.spec.d.ts +0 -1
  1044. package/build/types/checkboxOption/CheckboxOption.story.d.ts +0 -12
  1045. package/build/types/checkboxOption/index.d.ts +0 -1
  1046. package/build/types/chevron/Chevron.d.ts +0 -17
  1047. package/build/types/chevron/index.d.ts +0 -1
  1048. package/build/types/chips/Chip.d.ts +0 -15
  1049. package/build/types/chips/Chips.d.ts +0 -22
  1050. package/build/types/chips/Chips.messages.d.ts +0 -8
  1051. package/build/types/chips/Chips.spec.d.ts +0 -1
  1052. package/build/types/chips/Chips.story.d.ts +0 -7
  1053. package/build/types/chips/index.d.ts +0 -2
  1054. package/build/types/circularButton/CircularButton.d.ts +0 -20
  1055. package/build/types/circularButton/index.d.ts +0 -1
  1056. package/build/types/common/DOMOperations/DOMOperations.d.ts +0 -2
  1057. package/build/types/common/DOMOperations/index.d.ts +0 -3
  1058. package/build/types/common/Option/Option.d.ts +0 -28
  1059. package/build/types/common/Option/index.d.ts +0 -1
  1060. package/build/types/common/RadioButton/RadioButton.d.ts +0 -36
  1061. package/build/types/common/RadioButton/index.d.ts +0 -1
  1062. package/build/types/common/bottomSheet/BottomSheet.d.ts +0 -14
  1063. package/build/types/common/bottomSheet/BottomSheet.spec.d.ts +0 -1
  1064. package/build/types/common/bottomSheet/index.d.ts +0 -1
  1065. package/build/types/common/closeButton/CloseButton.d.ts +0 -2
  1066. package/build/types/common/closeButton/CloseButton.messages.d.ts +0 -8
  1067. package/build/types/common/closeButton/index.d.ts +0 -1
  1068. package/build/types/common/commonProps.d.ts +0 -20
  1069. package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts +0 -1
  1070. package/build/types/common/dateUtils/getDayNames/index.d.ts +0 -1
  1071. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +0 -1
  1072. package/build/types/common/dateUtils/getMonthNames/index.d.ts +0 -1
  1073. package/build/types/common/dateUtils/index.d.ts +0 -6
  1074. package/build/types/common/dateUtils/isDateValid/index.d.ts +0 -1
  1075. package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts +0 -2
  1076. package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts +0 -1
  1077. package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +0 -1
  1078. package/build/types/common/dateUtils/isWithinRange/index.d.ts +0 -1
  1079. package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +0 -1
  1080. package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +0 -1
  1081. package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +0 -1
  1082. package/build/types/common/deviceDetection/deviceDetection.d.ts +0 -1
  1083. package/build/types/common/deviceDetection/index.d.ts +0 -1
  1084. package/build/types/common/direction.d.ts +0 -6
  1085. package/build/types/common/domHelpers/documentIosClick.d.ts +0 -2
  1086. package/build/types/common/domHelpers/index.d.ts +0 -6
  1087. package/build/types/common/fileType.d.ts +0 -6
  1088. package/build/types/common/flowHeader/FlowHeader.d.ts +0 -2
  1089. package/build/types/common/flowHeader/index.d.ts +0 -1
  1090. package/build/types/common/focusBoundary/FocusBoundary.d.ts +0 -10
  1091. package/build/types/common/focusBoundary/index.d.ts +0 -1
  1092. package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts +0 -1
  1093. package/build/types/common/focusBoundary/utils/index.d.ts +0 -2
  1094. package/build/types/common/focusBoundary/utils/resetFocus.d.ts +0 -1
  1095. package/build/types/common/historyNavigator/historyNavigator.d.ts +0 -11
  1096. package/build/types/common/historyNavigator/index.d.ts +0 -1
  1097. package/build/types/common/hooks/index.d.ts +0 -5
  1098. package/build/types/common/hooks/useClientWidth/index.d.ts +0 -1
  1099. package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts +0 -9
  1100. package/build/types/common/hooks/useConditionalListener/index.d.ts +0 -1
  1101. package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts +0 -9
  1102. package/build/types/common/hooks/useDirection/index.d.ts +0 -1
  1103. package/build/types/common/hooks/useDirection/useDirection.d.ts +0 -5
  1104. package/build/types/common/hooks/useHasIntersected/index.d.ts +0 -1
  1105. package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts +0 -4
  1106. package/build/types/common/hooks/useLayout/index.d.ts +0 -1
  1107. package/build/types/common/hooks/useLayout/useLayout.d.ts +0 -8
  1108. package/build/types/common/index.d.ts +0 -25
  1109. package/build/types/common/key.d.ts +0 -8
  1110. package/build/types/common/keyCodes.d.ts +0 -15
  1111. package/build/types/common/locale/index.d.ts +0 -52
  1112. package/build/types/common/panel/Panel.d.ts +0 -25
  1113. package/build/types/common/panel/index.d.ts +0 -1
  1114. package/build/types/common/propsValues/breakpoint.d.ts +0 -7
  1115. package/build/types/common/propsValues/control.d.ts +0 -16
  1116. package/build/types/common/propsValues/dateMode.d.ts +0 -4
  1117. package/build/types/common/propsValues/layouts.d.ts +0 -9
  1118. package/build/types/common/propsValues/markdownNodeType.d.ts +0 -18
  1119. package/build/types/common/propsValues/monthFormat.d.ts +0 -4
  1120. package/build/types/common/propsValues/position.d.ts +0 -16
  1121. package/build/types/common/propsValues/profileType.d.ts +0 -4
  1122. package/build/types/common/propsValues/scroll.d.ts +0 -6
  1123. package/build/types/common/propsValues/sentiment.d.ts +0 -19
  1124. package/build/types/common/propsValues/size.d.ts +0 -12
  1125. package/build/types/common/propsValues/status.d.ts +0 -9
  1126. package/build/types/common/propsValues/type.d.ts +0 -13
  1127. package/build/types/common/propsValues/typography.d.ts +0 -37
  1128. package/build/types/common/propsValues/variant.d.ts +0 -4
  1129. package/build/types/common/propsValues/width.d.ts +0 -4
  1130. package/build/types/common/requirements.d.ts +0 -2
  1131. package/build/types/common/responsivePanel/ResponsivePanel.d.ts +0 -14
  1132. package/build/types/common/responsivePanel/index.d.ts +0 -1
  1133. package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts +0 -2
  1134. package/build/types/common/textFormat/formatWithPattern/index.d.ts +0 -1
  1135. package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts +0 -2
  1136. package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts +0 -1
  1137. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts +0 -2
  1138. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts +0 -1
  1139. package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts +0 -2
  1140. package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts +0 -1
  1141. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts +0 -2
  1142. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts +0 -1
  1143. package/build/types/common/textFormat/index.d.ts +0 -6
  1144. package/build/types/common/textFormat/unformatWithPattern/index.d.ts +0 -1
  1145. package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts +0 -2
  1146. package/build/types/common/theme.d.ts +0 -19
  1147. package/build/types/criticalBanner/CriticalCommsBanner.d.ts +0 -12
  1148. package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +0 -8
  1149. package/build/types/criticalBanner/index.d.ts +0 -1
  1150. package/build/types/dateInput/DateInput.d.ts +0 -37
  1151. package/build/types/dateInput/DateInput.messages.d.ts +0 -19
  1152. package/build/types/dateInput/index.d.ts +0 -2
  1153. package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +0 -1
  1154. package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts +0 -1
  1155. package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts +0 -5
  1156. package/build/types/dateInput/utils/explodeDate/index.d.ts +0 -1
  1157. package/build/types/dateInput/utils/index.d.ts +0 -2
  1158. package/build/types/dateLookup/DateLookup.d.ts +0 -26
  1159. package/build/types/dateLookup/dateHeader/DateHeader.d.ts +0 -22
  1160. package/build/types/dateLookup/dateHeader/index.d.ts +0 -1
  1161. package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts +0 -33
  1162. package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts +0 -8
  1163. package/build/types/dateLookup/dateTrigger/index.d.ts +0 -1
  1164. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +0 -4
  1165. package/build/types/dateLookup/dayCalendar/index.d.ts +0 -1
  1166. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +0 -4
  1167. package/build/types/dateLookup/dayCalendar/table/index.d.ts +0 -1
  1168. package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts +0 -1
  1169. package/build/types/dateLookup/getStartOfDay/index.d.ts +0 -1
  1170. package/build/types/dateLookup/index.d.ts +0 -1
  1171. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +0 -4
  1172. package/build/types/dateLookup/monthCalendar/index.d.ts +0 -1
  1173. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts +0 -28
  1174. package/build/types/dateLookup/monthCalendar/table/index.d.ts +0 -1
  1175. package/build/types/dateLookup/tableLink/TableLink.d.ts +0 -27
  1176. package/build/types/dateLookup/tableLink/index.d.ts +0 -1
  1177. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +0 -30
  1178. package/build/types/dateLookup/yearCalendar/index.d.ts +0 -1
  1179. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts +0 -28
  1180. package/build/types/dateLookup/yearCalendar/table/index.d.ts +0 -1
  1181. package/build/types/decision/Decision.d.ts +0 -48
  1182. package/build/types/decision/decisionEnums.d.ts +0 -8
  1183. package/build/types/decision/index.d.ts +0 -2
  1184. package/build/types/definitionList/DefinitionList.d.ts +0 -24
  1185. package/build/types/definitionList/index.d.ts +0 -1
  1186. package/build/types/dimmer/Dimmer.d.ts +0 -31
  1187. package/build/types/dimmer/Dimmer.story.d.ts +0 -16
  1188. package/build/types/dimmer/dimmerManager/DimmerManager.d.ts +0 -13
  1189. package/build/types/dimmer/dimmerManager/index.d.ts +0 -1
  1190. package/build/types/dimmer/index.d.ts +0 -1
  1191. package/build/types/display/Display.d.ts +0 -9
  1192. package/build/types/display/Display.story.d.ts +0 -7
  1193. package/build/types/display/index.d.ts +0 -1
  1194. package/build/types/drawer/Drawer.d.ts +0 -36
  1195. package/build/types/drawer/index.d.ts +0 -1
  1196. package/build/types/dropFade/DropFade.d.ts +0 -6
  1197. package/build/types/dropFade/DropFade.story.d.ts +0 -10
  1198. package/build/types/dropFade/index.d.ts +0 -1
  1199. package/build/types/dynamicFieldDefinitionList/DynamicFieldDefinitionList.d.ts +0 -21
  1200. package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +0 -25
  1201. package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts +0 -1
  1202. package/build/types/dynamicFieldDefinitionList/index.d.ts +0 -1
  1203. package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts +0 -1
  1204. package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts +0 -1
  1205. package/build/types/emphasis/Emphasis.d.ts +0 -6
  1206. package/build/types/emphasis/EmphasisHtmlTransformer.d.ts +0 -16
  1207. package/build/types/emphasis/index.d.ts +0 -1
  1208. package/build/types/flowNavigation/FlowNavigation.d.ts +0 -34
  1209. package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts +0 -18
  1210. package/build/types/flowNavigation/animatedLabel/index.d.ts +0 -1
  1211. package/build/types/flowNavigation/backButton/BackButton.d.ts +0 -20
  1212. package/build/types/flowNavigation/backButton/index.d.ts +0 -2
  1213. package/build/types/flowNavigation/index.d.ts +0 -1
  1214. package/build/types/header/Header.d.ts +0 -28
  1215. package/build/types/header/Header.spec.d.ts +0 -1
  1216. package/build/types/header/Header.story.d.ts +0 -10
  1217. package/build/types/header/index.d.ts +0 -1
  1218. package/build/types/i18n/index.d.ts +0 -2
  1219. package/build/types/image/Image.d.ts +0 -20
  1220. package/build/types/image/index.d.ts +0 -1
  1221. package/build/types/index.d.ts +0 -108
  1222. package/build/types/info/Info.d.ts +0 -35
  1223. package/build/types/info/index.d.ts +0 -2
  1224. package/build/types/info/infoPresentations.d.ts +0 -4
  1225. package/build/types/inlineAlert/InlineAlert.d.ts +0 -15
  1226. package/build/types/inlineAlert/index.d.ts +0 -1
  1227. package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts +0 -11
  1228. package/build/types/inputWithDisplayFormat/index.d.ts +0 -1
  1229. package/build/types/instructionsList/InstructionsList.d.ts +0 -8
  1230. package/build/types/instructionsList/index.d.ts +0 -2
  1231. package/build/types/link/Link.d.ts +0 -12
  1232. package/build/types/link/Link.spec.d.ts +0 -1
  1233. package/build/types/link/Link.story.d.ts +0 -9
  1234. package/build/types/link/index.d.ts +0 -1
  1235. package/build/types/loader/Loader.d.ts +0 -24
  1236. package/build/types/loader/index.d.ts +0 -2
  1237. package/build/types/logo/Logo.d.ts +0 -23
  1238. package/build/types/logo/index.d.ts +0 -2
  1239. package/build/types/logo/logoTypes.d.ts +0 -4
  1240. package/build/types/markdown/Markdown.d.ts +0 -25
  1241. package/build/types/markdown/index.d.ts +0 -1
  1242. package/build/types/modal/Modal.d.ts +0 -14
  1243. package/build/types/modal/Modal.story.d.ts +0 -8
  1244. package/build/types/modal/index.d.ts +0 -2
  1245. package/build/types/money/Money.d.ts +0 -11
  1246. package/build/types/money/index.d.ts +0 -1
  1247. package/build/types/moneyInput/MoneyInput.d.ts +0 -31
  1248. package/build/types/moneyInput/MoneyInput.messages.d.ts +0 -7
  1249. package/build/types/moneyInput/currencyFormatting.d.ts +0 -3
  1250. package/build/types/moneyInput/index.d.ts +0 -1
  1251. package/build/types/navigationOption/NavigationOption.d.ts +0 -4
  1252. package/build/types/navigationOption/index.d.ts +0 -1
  1253. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +0 -10
  1254. package/build/types/navigationOptionsList/index.d.ts +0 -1
  1255. package/build/types/nudge/Nudge.d.ts +0 -20
  1256. package/build/types/nudge/index.d.ts +0 -1
  1257. package/build/types/overlayHeader/OverlayHeader.d.ts +0 -18
  1258. package/build/types/overlayHeader/index.d.ts +0 -1
  1259. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts +0 -23
  1260. package/build/types/phoneNumberInput/data/countries.d.ts +0 -14
  1261. package/build/types/phoneNumberInput/index.d.ts +0 -1
  1262. package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts +0 -1
  1263. package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts +0 -1
  1264. package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts +0 -5
  1265. package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts +0 -1
  1266. package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts +0 -1
  1267. package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts +0 -1
  1268. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts +0 -1
  1269. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts +0 -1
  1270. package/build/types/phoneNumberInput/utils/index.d.ts +0 -12
  1271. package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts +0 -1
  1272. package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts +0 -2
  1273. package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts +0 -1
  1274. package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts +0 -1
  1275. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts +0 -1
  1276. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts +0 -1
  1277. package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts +0 -1
  1278. package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts +0 -1
  1279. package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts +0 -1
  1280. package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts +0 -1
  1281. package/build/types/popover/Popover.d.ts +0 -20
  1282. package/build/types/popover/index.d.ts +0 -1
  1283. package/build/types/processIndicator/ProcessIndicator.d.ts +0 -19
  1284. package/build/types/processIndicator/index.d.ts +0 -2
  1285. package/build/types/progress/Progress.d.ts +0 -11
  1286. package/build/types/progress/index.d.ts +0 -1
  1287. package/build/types/progressBar/ProgressBar.d.ts +0 -14
  1288. package/build/types/progressBar/index.d.ts +0 -1
  1289. package/build/types/provider/Provider.d.ts +0 -19
  1290. package/build/types/provider/Provider.spec.d.ts +0 -1
  1291. package/build/types/provider/Provider.story.d.ts +0 -23
  1292. package/build/types/provider/direction/DirectionProvider.d.ts +0 -8
  1293. package/build/types/provider/direction/DirectionProvider.spec.d.ts +0 -1
  1294. package/build/types/provider/direction/index.d.ts +0 -1
  1295. package/build/types/provider/index.d.ts +0 -3
  1296. package/build/types/provider/language/LanguageProvider.d.ts +0 -7
  1297. package/build/types/provider/language/LanguageProvider.spec.d.ts +0 -1
  1298. package/build/types/provider/language/index.d.ts +0 -1
  1299. package/build/types/radio/Radio.d.ts +0 -21
  1300. package/build/types/radio/index.d.ts +0 -2
  1301. package/build/types/radioGroup/RadioGroup.d.ts +0 -26
  1302. package/build/types/radioGroup/index.d.ts +0 -1
  1303. package/build/types/radioOption/RadioOption.d.ts +0 -23
  1304. package/build/types/radioOption/index.d.ts +0 -1
  1305. package/build/types/section/Section.d.ts +0 -12
  1306. package/build/types/section/Section.spec.d.ts +0 -1
  1307. package/build/types/section/Section.story.d.ts +0 -15
  1308. package/build/types/section/index.d.ts +0 -1
  1309. package/build/types/select/Select.d.ts +0 -94
  1310. package/build/types/select/Select.messages.d.ts +0 -7
  1311. package/build/types/select/index.d.ts +0 -2
  1312. package/build/types/select/option/Option.d.ts +0 -13
  1313. package/build/types/select/option/index.d.ts +0 -2
  1314. package/build/types/select/searchBox/SearchBox.d.ts +0 -6
  1315. package/build/types/select/searchBox/index.d.ts +0 -1
  1316. package/build/types/sizeSwapper/SizeSwapper.d.ts +0 -2
  1317. package/build/types/sizeSwapper/index.d.ts +0 -1
  1318. package/build/types/slidingPanel/SlidingPanel.d.ts +0 -17
  1319. package/build/types/slidingPanel/index.d.ts +0 -1
  1320. package/build/types/snackbar/Snackbar.d.ts +0 -22
  1321. package/build/types/snackbar/SnackbarContext.d.ts +0 -2
  1322. package/build/types/snackbar/SnackbarProvider.d.ts +0 -12
  1323. package/build/types/snackbar/useSnackbar.d.ts +0 -2
  1324. package/build/types/statusIcon/StatusIcon.d.ts +0 -8
  1325. package/build/types/statusIcon/index.d.ts +0 -1
  1326. package/build/types/stepper/Stepper.d.ts +0 -18
  1327. package/build/types/stepper/deviceDetection.d.ts +0 -1
  1328. package/build/types/stepper/index.d.ts +0 -2
  1329. package/build/types/sticky/Sticky.d.ts +0 -14
  1330. package/build/types/sticky/index.d.ts +0 -1
  1331. package/build/types/summary/Summary.d.ts +0 -71
  1332. package/build/types/summary/Summary.messages.d.ts +0 -19
  1333. package/build/types/summary/index.d.ts +0 -1
  1334. package/build/types/switch/Switch.d.ts +0 -17
  1335. package/build/types/switch/Switch.story.d.ts +0 -15
  1336. package/build/types/switch/index.d.ts +0 -1
  1337. package/build/types/switchOption/SwitchOption.d.ts +0 -17
  1338. package/build/types/switchOption/SwitchOption.story.d.ts +0 -22
  1339. package/build/types/switchOption/index.d.ts +0 -1
  1340. package/build/types/tabs/Tab.d.ts +0 -2
  1341. package/build/types/tabs/TabList.d.ts +0 -10
  1342. package/build/types/tabs/TabPanel.d.ts +0 -18
  1343. package/build/types/tabs/Tabs.d.ts +0 -29
  1344. package/build/types/tabs/index.d.ts +0 -1
  1345. package/build/types/tabs/utils.d.ts +0 -7
  1346. package/build/types/test-utils/index.d.ts +0 -107
  1347. package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts +0 -11
  1348. package/build/types/textareaWithDisplayFormat/index.d.ts +0 -1
  1349. package/build/types/tile/Tile.d.ts +0 -39
  1350. package/build/types/tile/index.d.ts +0 -1
  1351. package/build/types/title/Title.d.ts +0 -14
  1352. package/build/types/title/Title.spec.d.ts +0 -1
  1353. package/build/types/title/Title.story.d.ts +0 -8
  1354. package/build/types/title/index.d.ts +0 -1
  1355. package/build/types/tooltip/Tooltip.d.ts +0 -9
  1356. package/build/types/tooltip/Tooltip.spec.d.ts +0 -1
  1357. package/build/types/tooltip/Tooltip.story.d.ts +0 -12
  1358. package/build/types/tooltip/index.d.ts +0 -2
  1359. package/build/types/typeahead/Typeahead.d.ts +0 -57
  1360. package/build/types/typeahead/index.d.ts +0 -2
  1361. package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts +0 -47
  1362. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +0 -23
  1363. package/build/types/typeahead/util/highlight.d.ts +0 -1
  1364. package/build/types/upload/Upload.d.ts +0 -54
  1365. package/build/types/upload/Upload.messages.d.ts +0 -61
  1366. package/build/types/upload/index.d.ts +0 -2
  1367. package/build/types/upload/steps/completeStep/completeStep.d.ts +0 -20
  1368. package/build/types/upload/steps/completeStep/index.d.ts +0 -1
  1369. package/build/types/upload/steps/index.d.ts +0 -4
  1370. package/build/types/upload/steps/mediaUploadStep/index.d.ts +0 -1
  1371. package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +0 -24
  1372. package/build/types/upload/steps/processingStep/index.d.ts +0 -1
  1373. package/build/types/upload/steps/processingStep/processingStep.d.ts +0 -14
  1374. package/build/types/upload/steps/uploadImageStep/index.d.ts +0 -1
  1375. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +0 -22
  1376. package/build/types/upload/uploadSteps.d.ts +0 -4
  1377. package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts +0 -1
  1378. package/build/types/upload/utils/asyncFileRead/index.d.ts +0 -1
  1379. package/build/types/upload/utils/getFileType/getFileType.d.ts +0 -1
  1380. package/build/types/upload/utils/getFileType/index.d.ts +0 -1
  1381. package/build/types/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.d.ts +0 -1
  1382. package/build/types/upload/utils/getSupportedSpotMimeTypes/index.d.ts +0 -1
  1383. package/build/types/upload/utils/index.d.ts +0 -7
  1384. package/build/types/upload/utils/isSizeValid/index.d.ts +0 -1
  1385. package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts +0 -1
  1386. package/build/types/upload/utils/isTypeValid/index.d.ts +0 -1
  1387. package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts +0 -1
  1388. package/build/types/upload/utils/postData/index.d.ts +0 -1
  1389. package/build/types/upload/utils/postData/postData.d.ts +0 -1
  1390. package/build/types/upload/utils/requestMedia/index.d.ts +0 -1
  1391. package/build/types/upload/utils/requestMedia/requestMedia.d.ts +0 -1
  1392. package/build/types/uploadInput/UploadInput.d.ts +0 -75
  1393. package/build/types/uploadInput/UploadInput.messages.d.ts +0 -38
  1394. package/build/types/uploadInput/UploadInput.spec.d.ts +0 -1
  1395. package/build/types/uploadInput/UploadInput.story.d.ts +0 -20
  1396. package/build/types/uploadInput/index.d.ts +0 -1
  1397. package/build/types/uploadInput/types.d.ts +0 -46
  1398. package/build/types/uploadInput/uploadButton/UploadButton.d.ts +0 -49
  1399. package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts +0 -28
  1400. package/build/types/uploadInput/uploadButton/UploadButton.spec.d.ts +0 -1
  1401. package/build/types/uploadInput/uploadButton/defaults.d.ts +0 -3
  1402. package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts +0 -3
  1403. package/build/types/uploadInput/uploadButton/getAllowedFileTypes.spec.d.ts +0 -1
  1404. package/build/types/uploadInput/uploadItem/UploadItem.d.ts +0 -20
  1405. package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts +0 -33
  1406. package/build/types/uploadInput/uploadItem/UploadItem.spec.d.ts +0 -1
  1407. package/build/types/uploadInput/uploadItem/UploadItemBody.d.ts +0 -7
  1408. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts +0 -7
  1409. package/build/types/utilities/deprecatedProperty/index.d.ts +0 -1
  1410. package/build/types/utilities/index.d.ts +0 -2
  1411. package/build/types/utilities/logActionRequired.d.ts +0 -2
  1412. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +0 -90
  1413. package/build/types/withDisplayFormat/index.d.ts +0 -1
  1414. package/build/types/withNextPortal/withNextPortal.d.ts +0 -2
  1415. package/build/umd/no-polyfill/main.js +0 -1
  1416. package/build/umd/polyfill/main.js +0 -1
@@ -1 +0,0 @@
1
- import{isKey,isUndefined}from"@transferwise/neptune-validation";import PropTypes from"prop-types";import{useEffect,useRef}from"react";import{useConditionalListener}from"../hooks";import{Key}from"../key";import{getFocusableElements,resetFocus}from"./utils";import{jsx as _jsx}from"react/jsx-runtime";var TAB=Key.TAB,FocusBoundary=function(a){var b=a.children,c=useRef(),d=isUndefined(document)?void 0:document,e={};return useEffect(function(){c.current.focus(),e=getFocusableElements(c.current)},[]),useConditionalListener({eventType:"keydown",callback:function callback(a){return isKey({keyType:TAB,event:a})&&resetFocus({event:a,focusableEls:e})},attachListener:!0,parent:d}),/*#__PURE__*/_jsx("span",{ref:c,tabIndex:-1,className:"np-focus-boundary outline-none",children:b})};FocusBoundary.propTypes={children:PropTypes.node};export default FocusBoundary;
@@ -1 +0,0 @@
1
- export{default}from"./FocusBoundary";
@@ -1,6 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";/**
2
- * This function returns the first and the last focusable elements within a node.
3
- *
4
- * @param {Node} focusBoundaryContainer - the area that contains focused elements.
5
- * @returns {object} focusableEls - which contains the first focusable element and the last focusable element. First and last can be the same element if area contains one or none focusable element.
6
- */export var getFocusableElements=function(a){var b={first:a,last:a};if(null!==a&&void 0!==a&&a.querySelectorAll){var d=_toConsumableArray(a.querySelectorAll("a, button, input, textarea, select, details,[tabindex]:not([tabindex=\"-1\"])")).filter(function(a){return!a.hasAttribute("disabled")});if(0<d.length){var c=_slicedToArray(d,1);b.first=c[0],b.last=d[d.length-1]}}return b};
@@ -1 +0,0 @@
1
- export{getFocusableElements}from"./getFocusableElements";export{resetFocus}from"./resetFocus";
@@ -1,6 +0,0 @@
1
- /**
2
- * This function resets the focus to either last of first focusable elements within a node.
3
- *
4
- * @param {object} focusableEls - contains the first last of first focusable elements within a node.
5
- * @param {object} event - the triggered event
6
- */export var resetFocus=function(a){var b=a.focusableEls,c=b.first,d=b.last,e=a.event,f=document,g=f.activeElement;e.shiftKey&&g===c&&(d&&d.focus(),e.preventDefault()),e.shiftKey||g!==d||(c&&c.focus(),e.preventDefault())};
@@ -1 +0,0 @@
1
- import _createClass from"@babel/runtime/helpers/createClass";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _defineProperty from"@babel/runtime/helpers/defineProperty";var HistoryNavigator=/*#__PURE__*/_createClass(function a(){var b=this,c=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[],d=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null;_classCallCheck(this,a),_defineProperty(this,"reset",function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[""],c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:20;b.history=a,b.currIndex=0<a.length-1?a.length-1:0,b.historyLimit=c}),_defineProperty(this,"add",function(a){!b.historyLimit||b.history.length<=b.historyLimit?(b.history.push(a),b.currIndex=b.history.length-1):b.currIndex=b.history.length-1}),_defineProperty(this,"redo",function(){var a=b.history.length;return b.currIndex=b.currIndex+1<a?b.currIndex+1:a-1,b.history[b.currIndex]}),_defineProperty(this,"undo",function(){return b.currIndex=0<b.currIndex-1?b.currIndex-1:0,b.history[b.currIndex]}),this.history=c&&0<c.length?c:[""],this.currIndex=this.history.length-1,this.historyLimit=d});export default HistoryNavigator;
@@ -1 +0,0 @@
1
- export{default}from"./historyNavigator";
@@ -1 +0,0 @@
1
- export{default as useClientWidth}from"./useClientWidth";export{default as useConditionalListener}from"./useConditionalListener";export{default as useDirection}from"./useDirection";export{default as useHasIntersected}from"./useHasIntersected";export{default as useLayout}from"./useLayout";
@@ -1 +0,0 @@
1
- export{useClientWidth as default}from"./useClientWidth";
@@ -1,5 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import throttle from"lodash.throttle";import{useLayoutEffect,useState,useEffect}from"react";var THROTTLE_MS=100,useIsomorphicLayoutEffect="undefined"==typeof window?useEffect:useLayoutEffect;export var useClientWidth=function(a){var b=a.ref,c=a.throttleMs,d=void 0===c?THROTTLE_MS:c,e=useState(null),f=_slicedToArray(e,2),g=f[0],h=f[1];return useIsomorphicLayoutEffect(function(){// eslint-disable-next-line unicorn/consistent-function-scoping
2
- var a=function(){b&&(b.innerWidth?h(b.innerWidth):b.current&&h(b.current.clientWidth))},c=throttle(a,d);// This assignment saves a reference to the function so it will be the same passed to both addEventListener removeEventListener.
3
- // If throttle gets passed directly to both add and removeEventListenet the results will be that the event
4
- // won't get removed even if the component is unmounted.
5
- return window.addEventListener("resize",c,!0),window.requestAnimationFrame(a),function(){return window.removeEventListener("resize",c,!0)}},[]),[g]};useClientWidth.THROTTLE_MS=100;
@@ -1 +0,0 @@
1
- export{useConditionalListener as default}from"./useConditionalListener";
@@ -1,3 +0,0 @@
1
- // @ts-expect-error remove this when `@transferwise/neptune-validation` provides types
2
- import{isUndefined}from"@transferwise/neptune-validation";import{useEffect}from"react";export var useConditionalListener=function(a){var b=a.attachListener,c=a.callback,d=a.eventType,e=a.parent;useEffect(function(){return b&&// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3
- !isUndefined(e)&&e.addEventListener(d,c,!0),function(){isUndefined(e)||e.removeEventListener(d,c,!0)}},[b,c,d,e])};
@@ -1 +0,0 @@
1
- export{useDirection as default}from"./useDirection";
@@ -1 +0,0 @@
1
- import{useContext}from"react";import{DirectionContext}from"../../../provider/direction/DirectionProvider";export var useDirection=function(){var a=useContext(DirectionContext);return{direction:a,isRTL:"rtl"===a}};
@@ -1 +0,0 @@
1
- export{useHasIntersected as default}from"./useHasIntersected";
@@ -1,11 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useEffect,useState}from"react";var ObserverParams={threshold:.1};/**
2
- * useHasIntersected.
3
- * Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.
4
- * Once the intersection has happened the hook will not return false even if the element gets out of the viewport.
5
- *
6
- * @param elRef.elRef
7
- * @param {object} [elRef] - node object that contains a react reference to the element that needs to be observed.
8
- * @param {strimng} [loading = 'eager'] - string that contains the type of loading.
9
- * @param elRef.loading
10
- * @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`
11
- */export var useHasIntersected=function(a){var b=a.elRef,c=a.loading,d=useState(!1),e=_slicedToArray(d,2),f=e[0],g=e[1],h=(b||{}).current,i=function(){return b&&h},j=function(a,b){a.forEach(function(a){a.isIntersecting&&(g(!0),b.unobserve(h))})};return useEffect(function(){var a,b=!1;return"undefined"!=typeof window&&window.IntersectionObserver&&i()?!b&&(a=new IntersectionObserver(j,ObserverParams),a.observe(h)):g(!0),function(){b=!0,a&&a.unobserve(h)}},[b]),"eager"===c?[!1]:[f]};
@@ -1 +0,0 @@
1
- export{useLayout as default}from"./useLayout";
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useEffect,useState}from"react";import{Breakpoint}from"../../propsValues/breakpoint";import useClientWidth from"../useClientWidth";export var useLayout=function(){var a="undefined"==typeof window?void 0:window,b=useState(),c=_slicedToArray(b,2),d=c[0],e=c[1],f=useClientWidth({ref:a}),g=_slicedToArray(f,1),h=g[0];return useEffect(function(){return h?h<=Breakpoint.EXTRA_SMALL?void e(Breakpoint.EXTRA_SMALL):Breakpoint.EXTRA_SMALL<h&&h<=Breakpoint.SMALL?void e(Breakpoint.SMALL):Breakpoint.SMALL<h&&h<=Breakpoint.MEDIUM?void e(Breakpoint.MEDIUM):Breakpoint.MEDIUM<h&&h<=Breakpoint.LARGE?void e(Breakpoint.LARGE):void(Breakpoint.LARGE<h&&e(Breakpoint.EXTRA_LARGE)):void 0},[h]),{isMobile:!!d&&[Breakpoint.EXTRA_SMALL,Breakpoint.SMALL].includes(d),isExtraSmall:d===Breakpoint.EXTRA_SMALL,isSmall:d===Breakpoint.SMALL,isMedium:d===Breakpoint.MEDIUM,isLarge:d===Breakpoint.LARGE,isExtraLarge:d===Breakpoint.EXTRA_LARGE}};
@@ -1,2 +0,0 @@
1
- export{default as HistoryNavigator}from"./historyNavigator";export*from"./domHelpers";export{addNoScrollBodyClass,removeNoScrollBodyClass}from"./DOMOperations";export*from"./theme";export*from"./direction";// Props
2
- export*from"./propsValues/control";export{Breakpoint}from"./propsValues/breakpoint";export*from"./propsValues/size";export*from"./propsValues/typography";export*from"./propsValues/width";export{Type}from"./propsValues/type";export{DateMode}from"./propsValues/dateMode";export{MonthFormat}from"./propsValues/monthFormat";export*from"./propsValues/position";export{Layout}from"./propsValues/layouts";export{Status}from"./propsValues/status";export{Sentiment}from"./propsValues/sentiment";export{ProfileType}from"./propsValues/profileType";export{Variant}from"./propsValues/variant";export*from"./propsValues/scroll";export{MarkdownNodeType}from"./propsValues/markdownNodeType";export{FileType}from"./fileType";export{Key}from"./key";export*from"./locale";export*from"./commonProps";
@@ -1 +0,0 @@
1
- export var Key={ENTER:"Enter",ESCAPE:"Escape",SPACE:[" ","Spacebar"],TAB:"Tab",PERIOD:".",COMMA:","};
@@ -1,5 +0,0 @@
1
- /**
2
- * TODO: mention what to use instead or consider to delete this object
3
- *
4
- * @deprecated
5
- */export default{DOWN:40,UP:38,LEFT:37,RIGHT:39,ENTER:13,ESCAPE:27,TAB:9,SPACE:32,BACKSPACE:8,DELETE:46,COMMA:188,PERIOD:190};
@@ -1,37 +0,0 @@
1
- import{Direction}from"..";/**
2
- * Default language
3
- *
4
- * @type {string}
5
- */export var DEFAULT_LANG="en";/**
6
- * Default locale
7
- *
8
- * @type {string}
9
- */export var DEFAULT_LOCALE="en-GB";/**
10
- * Array of languages that are written from the right to the left
11
- *
12
- * @type {string[]}
13
- */export var RTL_LANGUAGES=["ar","he"];export var SUPPORTED_LANGUAGES=["en","de","es","fr","hu","id","it","ja","pl","pt","ro","ru","th","tr","uk","zh"];/**
14
- * Verifies and adjusts locale (replace `_` with `-`)
15
- * Returns null if locale is unrecognized by {Intl.Locale}
16
- *
17
- * @param {string} locale (`es`, `es_ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
18
- * @returns {string|null}
19
- */export function adjustLocale(a){if(!a||0===a.trim().length)return null;try{var b=new Intl.Locale(a.trim().replace("_","-")),c=b.baseName;return c}catch(a){return console.error(a),null}}/**
20
- * Provides corresponding lang (iso2) for provided locale
21
- * if locale is invalid or language is unsupported returns null
22
- *
23
- * @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
24
- * @returns {string|null}
25
- */export function getLangFromLocale(a){var b=adjustLocale(a);if(null===b)return null;try{var c=new Intl.Locale(b),d=c.language;return SUPPORTED_LANGUAGES.includes(d)?d:null}catch(a){return console.error(a),null}}/**
26
- * Provides corresponding country code (iso2) for locales code with explicit region value (`es-ES`, `en-GB`, `ja-JP` etc.)
27
- * if the value is invalid or missing region it returns null
28
- *
29
- * @param {string} locale
30
- * @returns {string|null}
31
- */export function getCountryFromLocale(a){var b=adjustLocale(a);if(null===b)return null;try{var c=new Intl.Locale(b),d=c.region;return null!==d&&void 0!==d?d:null}catch(a){return console.error(a),null}}/**
32
- * Provides the layout direction for a given locale.
33
- * If locale is invalid or language is unsupported returns Direction.LTR
34
- *
35
- * @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
36
- * @returns {Direction} The layout direction based on the locale
37
- */export function getDirectionFromLocale(a){try{var b=adjustLocale(a),c=new Intl.Locale(b),d=c.language;return RTL_LANGUAGES.includes(d)?Direction.RTL:Direction.LTR}catch(a){return console.error(a),Direction.LTR}}
@@ -1,10 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/defineProperty";var _fallbackPlacements,_excluded=["arrow","flip","altAxis","children","open","onClose","position","anchorRef","anchorWidth"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classnames from"classnames";import{useState,forwardRef,useEffect}from"react";import{usePopper}from"react-popper";import{Position}from"..";import Dimmer from"../../dimmer";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var POPOVER_OFFSET=[0,16],fallbackPlacements=(_fallbackPlacements={},_defineProperty(_fallbackPlacements,Position.TOP,[Position.BOTTOM,Position.RIGHT,Position.LEFT]),_defineProperty(_fallbackPlacements,Position.BOTTOM,[Position.TOP,Position.RIGHT,Position.LEFT]),_defineProperty(_fallbackPlacements,Position.LEFT,[Position.RIGHT,Position.TOP,Position.BOTTOM]),_defineProperty(_fallbackPlacements,Position.RIGHT,[Position.LEFT,Position.TOP,Position.BOTTOM]),_fallbackPlacements),Panel=/*#__PURE__*/forwardRef(function(a,b){var c,d=a.arrow,e=void 0!==d&&d,f=a.flip,g=a.altAxis,h=a.children,i=a.open,j=void 0!==i&&i,k=a.onClose,l=a.position,m=void 0===l?Position.BOTTOM:l,n=a.anchorRef,o=a.anchorWidth,p=_objectWithoutProperties(a,_excluded),q=useState(null),r=_slicedToArray(q,2),s=r[0],t=r[1],u=useState(null),v=_slicedToArray(u,2),w=v[0],x=v[1],y=[];void 0!==g&&g&&y.push({// https://popper.js.org/docs/v2/modifiers/prevent-overflow
2
- name:"preventOverflow",options:{altAxis:!0,tether:!1}}),e&&(y.push({name:"arrow",options:{element:s,options:{padding:8// 8px from the edges of the popper
3
- }}}),y.push({name:"offset",options:{offset:POPOVER_OFFSET}})),(!(void 0!==f)||f)&&fallbackPlacements[m]&&y.push({name:"flip",options:{fallbackPlacements:fallbackPlacements[m]}});var z=usePopper(n.current,w,{placement:m,modifiers:y}),A=z.styles,B=z.attributes,C=z.forceUpdate;// If the trigger is not visible when the position is calculated, it will be incorrect. Because this can happen repeatedly (on resize for example),
4
- // it is most simple just to always position before opening
5
- useEffect(function(){j&&C&&C()},[j]);var D=_objectSpread({},void 0!==o&&o?{width:null===(c=n.current)||void 0===c?void 0:c.clientWidth}:void 0);return/*#__PURE__*/_jsx(Dimmer,{open:j,transparent:!0,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:k,children:/*#__PURE__*/_jsx("div",_objectSpread(_objectSpread(_objectSpread({},p),{},{ref:x// eslint-disable-next-line react/forbid-dom-props
6
- ,style:_objectSpread({},A.popper)},B.popper),{},{className:classnames("np-panel",{"np-panel--open":j},p.className),children:/*#__PURE__*/_jsxs("div",{ref:b/* eslint-disable-next-line react/forbid-dom-props */,style:D,className:classnames("np-panel__content"),children:[h,e&&/*#__PURE__*/_jsx("div",{ref:t,className:classnames("np-panel__arrow")// eslint-disable-next-line react/forbid-dom-props
7
- ,style:A.arrow})]})}))})});// By default the flip positioning explores only the opposite alternative. So if left is passed and there's no enough space
8
- // the right one gets chosen. If there's no space on both sides popover goes back to the initially chosen one left.
9
- // This mapping forces popover to try the four available positions before going back to the initial chosen one.
10
- export default Panel;
@@ -1 +0,0 @@
1
- export{default}from"./Panel";
@@ -1 +0,0 @@
1
- export var Breakpoint;(function(a){a[a.EXTRA_SMALL=480]="EXTRA_SMALL",a[a.SMALL=576]="SMALL",a[a.MEDIUM=768]="MEDIUM",a[a.LARGE=992]="LARGE",a[a.EXTRA_LARGE=1200]="EXTRA_LARGE"})(Breakpoint||(Breakpoint={}));
@@ -1 +0,0 @@
1
- export var ControlType;(function(a){a.ACCENT="accent",a.POSITIVE="positive",a.NEGATIVE="negative"})(ControlType||(ControlType={}));export var Priority;(function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.TERTIARY="tertiary"})(Priority||(Priority={}));
@@ -1 +0,0 @@
1
- export var DateMode;(function(a){a.DAY_MONTH_YEAR="day-month-year",a.MONTH_YEAR="month-year"})(DateMode||(DateMode={}));
@@ -1 +0,0 @@
1
- export var Layout;(function(a){a.VERTICAL="VERTICAL",a.VERTICAL_TWO_COLUMN="VERTICAL_TWO_COLUMN",a.VERTICAL_ONE_COLUMN="VERTICAL_ONE_COLUMN",a.HORIZONTAL="HORIZONTAL",a.HORIZONTAL_JUSTIFIED="HORIZONTAL_JUSTIFIED",a.HORIZONTAL_LEFT_ALIGNED="HORIZONTAL_LEFT_ALIGNED",a.HORIZONTAL_RIGHT_ALIGNED="HORIZONTAL_RIGHT_ALIGNED"})(Layout||(Layout={}));
@@ -1 +0,0 @@
1
- export var MarkdownNodeType;(function(a){a.BLOCK_QUOTE="block_quote",a.CODE_BLOCK="code_block",a.CODE="code",a.EMPH="emph",a.HEADING="heading",a.HTML_BLOCK="html_block",a.HTML_INLINE="html_inline",a.IMAGE="image",a.ITEM="item",a.LINEBREAK="linebreak",a.LINK="link",a.LIST="list",a.PARAGRAPH="paragraph",a.SOFTBREAK="softbreak",a.STRONG="strong",a.THEMATIC_BREAK="thematic_break"})(MarkdownNodeType||(MarkdownNodeType={}));
@@ -1 +0,0 @@
1
- export var MonthFormat;(function(a){a.SHORT="short",a.LONG="long"})(MonthFormat||(MonthFormat={}));
@@ -1 +0,0 @@
1
- export var Position;(function(a){a.BOTTOM="bottom",a.BOTTOM_LEFT="bottom-left",a.BOTTOM_RIGHT="bottom-right",a.CENTER="center",a.LEFT="left",a.LEFT_TOP="left-top",a.RIGHT="right",a.RIGHT_TOP="right-top",a.TOP="top"})(Position||(Position={}));
@@ -1 +0,0 @@
1
- export var ProfileType;(function(a){a.BUSINESS="BUSINESS",a.PERSONAL="PERSONAL"})(ProfileType||(ProfileType={}));
@@ -1 +0,0 @@
1
- export var Scroll;(function(a){a.CONTENT="content",a.VIEWPORT="viewport"})(Scroll||(Scroll={}));
@@ -1 +0,0 @@
1
- export var Sentiment;(function(a){a.NEGATIVE="negative",a.NEUTRAL="neutral",a.POSITIVE="positive",a.WARNING="warning",a.PENDING="pending",a.INFO="info",a.ERROR="error",a.SUCCESS="success"})(Sentiment||(Sentiment={}));
@@ -1 +0,0 @@
1
- export var Size;(function(a){a.EXTRA_SMALL="xs",a.SMALL="sm",a.MEDIUM="md",a.LARGE="lg",a.EXTRA_LARGE="xl"})(Size||(Size={}));
@@ -1 +0,0 @@
1
- export var Status;(function(a){a.PROCESSING="processing",a.FAILED="failed",a.SUCCEEDED="succeeded",a.HIDDEN="hidden",a.DONE="done",a.NOT_DONE="notDone",a.PENDING="pending"})(Status||(Status={}));
@@ -1,3 +0,0 @@
1
- /**
2
- * @deprecated use `ControlType` and `Priority` enums instead
3
- */export var Type;(function(a){a.PRIMARY="primary",a.PAY="pay",a.SECONDARY="secondary",a.DANGER="danger",a.LINK="link"})(Type||(Type={}));
@@ -1 +0,0 @@
1
- export var Typography;(function(a){a.DISPLAY_EXTRA_LARGE="display-extra-large",a.DISPLAY_LARGE="display-large",a.DISPLAY_MEDIUM="display-medium",a.DISPLAY_SMALL="display-small",a.TITLE_SCREEN="title-screen",a.TITLE_SECTION="title-section",a.TITLE_SUBSECTION="title-subsection",a.TITLE_BODY="title-body",a.TITLE_GROUP="title-group",a.BODY_LARGE="body-large",a.BODY_DEFAULT="body-default",a.BODY_DEFAULT_BOLD="body-default-bold",a.BODY_LARGE_BOLD="body-large-bold",a.LINK_LARGE="link-large",a.LINK_DEFAULT="link-default"})(Typography||(Typography={}));
@@ -1 +0,0 @@
1
- export var Variant;(function(a){a.DESKTOP="desktop",a.MOBILE="mobile"})(Variant||(Variant={}));
@@ -1 +0,0 @@
1
- export var Width;(function(a){a.BLOCK="block",a.AUTO="auto"})(Width||(Width={}));
@@ -1,3 +0,0 @@
1
- /* eslint-disable no-unused-vars */ /* eslint-disable no-param-reassign */var prepRequirements=function(a){if(!a||0===a.length)return[];var b=copyOf(a);return b.forEach(function(a){a.prepared||(prepLegacyAlternatives(a),a.properties=prepFields(a.properties||a.fields),a.type&&"object"!==a.type&&!a.types&&(a.properties.type={type:"string",enum:[a.type],required:!0,hidden:!0},a.type="object"),a.prepared=!0)}),b},prepFields=function(a,b,c){if(!a)return{};var d=copyOf(a);return d=flattenFieldsWithGroups(d),d=transformFieldArrayToMap(d),d=transformNestedKeysToNestedSpecs(d),Object.keys(d).forEach(function(a){d[a]=prepField(d[a],b,c)}),d},prepField=function(a,b,c){var d=copyOf(a);return prepLegacyProps(d),prepType(d),prepPattern(d),prepValidationMessages(d,c),d},flattenFieldsWithGroups=function(a){if(Array.isArray(a)){var b=[];return a.forEach(function(a){a.fields?b=b.concat(flattenFieldWithGroup(a,a.fields)):a.group?b=b.concat(flattenFieldWithGroup(a,a.group)):b.push(a)}),b}return a},flattenFieldWithGroup=function(a,b){return a.name&&0<b.length&&!b[0].name&&(b[0].name=a.name),a.width&&0<b.length&&!b[0].width&&(b[0].width=a.width),a.tooltip&&0<b.length&&!b[0].help&&(b[0].help={message:a.tooltip}),a.info&&0<b.length&&!b[0].help&&(b[0].help={message:a.info}),2===b.length&&b.forEach(function(a){a.width="md"}),3===b.length&&(b[0].width="md",b[1].width="md"),b},transformFieldArrayToMap=function(a){if(Array.isArray(a)){var b={};return a.forEach(function(a){var c=a.key||a.name;delete a.key,b[c]=copyOf(a)}),b}return a},transformNestedKeysToNestedSpecs=function(a){if(Array.isArray(a))throw new TypeError("Expecting a map of fields, not an array");var b={};return Object.keys(a).forEach(function(c){if(0<c.indexOf(".")){// If the key contains a period we need to nest the fields in another object
2
- var d=c.split("."),e=d[0];b[e]||(b[e]={type:"object",properties:{}}),b[e].properties[d[1]]=a[c]}else b[c]=a[c]}),b},prepType=function(a){var b=a.type&&a.type.toLowerCase&&a.type.toLowerCase();switch(b){case"text":a.type="string";break;case"date":a.type="string",a.format="date";break;case"password":a.type="string",a.control="password";break;case"checkbox":a.type="boolean";break;case"select":a.control||(a.control="select"),delete a.type;break;case"radio":a.control="radio",delete a.type;break;case"upload":a.type="string",a.format="base64url";break;case"tel":a.type="string",a.format="phone";break;case"textarea":a.type="string",a.control="textarea";break;default:}a.control||"object"===a.type||(a.control=getControlType(a))},prepLegacyAlternatives=function(a){!a.title&&a.label&&(a.title=a.label),a.title||(a.title=getNameFromType(a.type)),!a.type&&a.name&&(a.type=a.name),!a.description&&a.tooltip&&(a.description=a.tooltip),a.fieldGroups&&!a.fields&&(a.fields=flattenFieldsWithGroups(a.fieldGroups),delete a.fieldGroups)},prepLegacyProps=function(a){a.name&&!a.title&&(a.title=a.name,delete a.name),a.validationRegexp&&(a.pattern=a.validationRegexp,delete a.validationRegexp),a.min&&(a.minimum=a.min,delete a.min),a.max&&(a.maximum=a.max,delete a.max),a.example&&!a.placeholder&&(a.placeholder=a.example,delete a.example),a.tooltip&&!a.help&&(a.help={message:a.tooltip},delete a.tooltip),a.valuesAllowed&&!a.values&&(a.values=a.valuesAllowed,delete a.valuesAllowed),a.values&&a.values.map&&(a.values=prepLegacyValues(a.values)),a.value&&!a.default&&(a.default=a.value,delete a.value),a.values&&a.values&&0<a.values.length&&a.values[0]&&!a.values[0].value&&a.values[0].label&&!a.placeholder&&(a.placeholder=a.values[0].label,a.values=a.values.slice(1))},prepLegacyValues=function(a){return a.map(prepLegacyValue)},prepLegacyValue=function(a){return!a.label&&a.title&&(a.label=a.title,delete a.title),!a.label&&a.name&&(a.label=a.name,delete a.name),!a.value&&a.code&&(a.value=a.code,delete a.code),!a.value&&a.key&&(a.value=a.key,delete a.key),a},prepPattern=function(a){if(a.pattern)try{new RegExp(a.pattern)}catch(b){console.warn("API regexp is invalid"),delete a.pattern}else delete a.pattern},prepValidationMessages=function(a,b){return a.validationMessages=a.validationMessages?a.validationMessages:b,a.validationMessages?void(a.validationMessages.minimum&&(a.validationMessages.min=a.validationMessages.minimum,delete a.validationMessages.minimum),a.validationMessages.maximum&&(a.validationMessages.max=a.validationMessages.maximum,delete a.validationMessages.maximum)):void delete a.validationMessages},getControlType=function(a){if(a.control)return a.control.toLowerCase();if(a.hidden)return"hidden";if(a.values&&0<a.values.length)return getSelectionType(a);switch(a.type){case"string":return getControlForStringFormat(a.format);case"number":case"integer":return"number";case"boolean":return"checkbox";default:return"text";}},getControlForStringFormat=function(a){return"date"===a?"date":"base64url"===a?"file":"password"===a?"password":"uri"===a?"text":"email"===a?"text":"phone"===a?"tel":"text"},getSelectionType=function(a){return a.control?a.control:"select"===a.type?"select":"radio"===a.type?"radio":a.values?3<a.values.length?"select":"radio":"select"},copyOf=function(a){return JSON.parse(JSON.stringify(a))},getNameFromType=function(a){if(a&&0<a.length){var b=a.toLowerCase().split("_").join(" ");// String.replace method only replaces first instance
3
- return b.charAt(0).toUpperCase()+b.slice(1)}return""};export{prepFields,getControlType};
@@ -1 +0,0 @@
1
- import{useTheme}from"@wise/components-theming";import classNames from"classnames";import{forwardRef}from"react";import{Position}from"..";import BottomSheet from"../bottomSheet";import{useLayout}from"../hooks";import Panel from"../panel";import{jsx as _jsx}from"react/jsx-runtime";var ResponsivePanel=/*#__PURE__*/forwardRef(function(a,b){var c=a.anchorRef,d=a.arrow,e=a.flip,f=a.children,g=a.className,h=void 0===g?void 0:g,i=a.onClose,j=a.open,k=void 0!==j&&j,l=a.position,m=void 0===l?Position.BOTTOM:l,n=useTheme(),o=n.className,p=useLayout(),q=p.isMobile;return q?/*#__PURE__*/_jsx(BottomSheet,{open:k,className:h,onClose:i,children:f},"bottomSheet"):/*#__PURE__*/_jsx(Panel,{ref:b,flip:!(void 0!==e)||e,arrow:void 0!==d&&d,open:k,position:m,anchorRef:c,className:classNames(o,h),onClose:i,children:f},"panel")});export default ResponsivePanel;
@@ -1 +0,0 @@
1
- export{default}from"./ResponsivePanel";
@@ -1,2 +0,0 @@
1
- import getSymbolsInPatternWithPosition from"../getSymbolsInPatternWithPosition";var formatWithPattern=function(a,b){if(!a||""===a)return"";// valueArray.length increments during the cycle cause we are adding new elements.
2
- for(var c=a.toString().split(""),d=getSymbolsInPatternWithPosition(b),e=[],f=function _loop(a){e=d.filter(function(b){return b.index===a}),1===e.length&&c.splice(a,0,e.pop().symbol)},g=0;g<c.length;g+=1)f(g);return c.join("")};export default formatWithPattern;
@@ -1 +0,0 @@
1
- export{default}from"./formatWithPattern";
@@ -1 +0,0 @@
1
- import getSymbolsInPatternWithPosition from"../getSymbolsInPatternWithPosition";var getCountOfSymbolsInSelection=function(a,b,c){return getSymbolsInPatternWithPosition(c).filter(function(c){return c.index>=a&&c.index<b}).length};export default getCountOfSymbolsInSelection;
@@ -1 +0,0 @@
1
- export{default}from"./getCountOfSymbolsInSelection";
@@ -1 +0,0 @@
1
- import getCountOfSymbolsInSelection from"../getCountOfSymbolsInSelection";import{getDistanceToNextSymbol,getDistanceToPreviousSymbol}from"../getDistanceToSymbol";var getCursorPositionAfteractionstroke=function(a,b,c,d,e){var f=b;switch(a){case"Backspace":b===c&&(f-=getDistanceToPreviousSymbol(b,d),f=0<f?f-1:0);break;case"Paste":f+=e+getCountOfSymbolsInSelection(b,b+e,d)+getDistanceToNextSymbol(b+e,d);break;case"Cut":case"Delete":break;default:f+=1+getDistanceToNextSymbol(b,d);}return f};export default getCursorPositionAfteractionstroke;
@@ -1 +0,0 @@
1
- export{default}from"./getCursorPositionAfterKeystroke";
@@ -1,2 +0,0 @@
1
- import getSymbolsInPatternWithPosition from"../getSymbolsInPatternWithPosition";export var getDistanceToNextSymbol=function(a,b){var c=getSymbolsInPatternWithPosition(b),d=c.filter(function(b){return b.index>=a});return countConsecutiveSymbols(a,d,"left")};export var getDistanceToPreviousSymbol=function(a,b){var c=getSymbolsInPatternWithPosition(b),d=c.filter(function(b){return b.index<a}).reverse();return countConsecutiveSymbols(a,d,"right")};var countConsecutiveSymbols=function(a,b,c){var d,e=a;for(d=0;d<b.length;d+=1){var f="left"===c?e:e-1;if(b[d].index===f)e="left"===c?e+1:e-1;else// Exit if not consecutive.
2
- break}return d};
@@ -1 +0,0 @@
1
- export{getDistanceToPreviousSymbol,getDistanceToNextSymbol}from"./getDistanceToSymbol";
@@ -1 +0,0 @@
1
- var getSymbolsInPatternWithPosition=function(a){var b=[],c=a.split("");return c.forEach(function(a,c){"*"!==a&&b.push({index:c,symbol:a})}),b};export default getSymbolsInPatternWithPosition;
@@ -1 +0,0 @@
1
- export{default}from"./getSymbolsInPatternWithPosition";
@@ -1 +0,0 @@
1
- export{default as formatWithPattern}from"./formatWithPattern";export{default as unformatWithPattern}from"./unformatWithPattern";export{default as getSymbolsInPatternWithPosition}from"./getSymbolsInPatternWithPosition";export{default as getCountOfSymbolsInSelection}from"./getCountOfSymbolsInSelection";export{default as getCursorPositionAfterKeystroke}from"./getCursorPositionAfterKeystroke";export{getDistanceToNextSymbol}from"./getDistanceToSymbol";export{getDistanceToPreviousSymbol}from"./getDistanceToSymbol";
@@ -1 +0,0 @@
1
- export{default}from"./unformatWithPattern";
@@ -1 +0,0 @@
1
- var unformatWithPattern=function(a,b){var c=[""];return a&&0<a.length&&(c=a.toString().split(""),c=c.filter(function(a){return!getSymbolsInPattern(b).includes(a)})),c.join("")},getSymbolsInPattern=function(a){return a.split("").filter(function(a){return"*"!==a})};export default unformatWithPattern;
@@ -1 +0,0 @@
1
- export var Theme;(function(a){a.LIGHT="light",a.DARK="dark",a.NAVY="navy",a.PERSONAL="personal",a.PERSONAL_FOREST_GREEN="personal--forest-green",a.PERSONAL_BRIGHT_GREEN="personal--bright-green",a.PERSONAL_DARK="personal--dark"})(Theme||(Theme={}));export var modernThemes=new Set(["personal","personal--forest-green","personal--bright-green","personal--dark"]);export var getThemeClassName=function(a){return"np-theme-".concat(a)};
@@ -1 +0,0 @@
1
- import{Alert as DangerIcon,AlertCircleFill}from"@transferwise/icons";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import Avatar,{AvatarType}from"../avatar";import Body from"../body";import Button from"../button";import{ControlType,Priority,Size,Typography}from"../common";import Title from"../title";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";function CriticalCommsBanner(a){var b=a.title,c=a.subtitle,d=a.action,e=a.className,f=useTheme(),g=f.isModern;return/*#__PURE__*/_jsx("div",{className:classNames("critical-comms",e),children:/*#__PURE__*/_jsxs("div",{className:"critical-comms-body",children:[/*#__PURE__*/_jsx(Avatar,{size:Size.MEDIUM,type:AvatarType.ICON,className:classNames(g?"m-r-2":"m-r-1"),backgroundColor:g?"var(--color-sentiment-negative)":"var(--color-background-negative)",children:g?/*#__PURE__*/_jsx(AlertCircleFill,{}):/*#__PURE__*/_jsx(DangerIcon,{size:24})}),/*#__PURE__*/_jsxs("div",{className:"critical-comms-content d-flex align-items-center flex-grow-1",children:[/*#__PURE__*/_jsxs("div",{className:classNames("flex-grow-1",{"p-x-2":!g}),children:[/*#__PURE__*/_jsx(Title,{type:g?Typography.TITLE_BODY:Typography.TITLE_GROUP,className:"critical-comms--title",children:b}),/*#__PURE__*/_jsx(Body,{className:"critical-comms--subtitle",children:c})]}),d?/*#__PURE__*/_jsx("div",{className:"critical-comms--cta",children:/*#__PURE__*/_jsx(Button,{block:g,size:Size.SMALL,type:ControlType.NEGATIVE,priority:g?Priority.SECONDARY:Priority.PRIMARY,className:"cta-btn",onClick:function onClick(){d&&(window.location.href=d.href)},children:d.label})}):null]})]})})}export default CriticalCommsBanner;
@@ -1 +0,0 @@
1
- import{text}from"@storybook/addon-knobs";import CriticalCommsBanner from".";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";export default{component:CriticalCommsBanner,title:"Feedback/CriticalCommsBanner"};export var Basic=function(){var a=text("title","Your account is overdrawn"),b=text("subtitle","Add money within the next 30 days");return/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(CriticalCommsBanner,{title:a,subtitle:b,action:{label:"Take action",href:"https://wise.com"}})})};
@@ -1 +0,0 @@
1
- export{default}from"./CriticalCommsBanner";
@@ -1,4 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classNames from"classnames";import PropTypes from"prop-types";import{useState}from"react";import{useIntl}from"react-intl";import{Size,DateMode,MonthFormat}from"../common";import{getMonthNames,isDateValid,isMonthAndYearFormat}from"../common/dateUtils";import Select from"../select";import messages from"./DateInput.messages";import{explodeDate,convertToLocalMidnight}from"./utils";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var MonthBeforeDay=new Set(["en-US","ja-JP"]),INITIAL_DEFAULT_STATE={year:null,month:null,day:null},DateInput=function(a){var b,c,d,e=a.disabled,f=a.size,g=a.value,h=a.dayLabel,i=a.monthLabel,j=a.yearLabel,k=a.monthFormat,l=a.mode,m=a.onChange,n=a.onFocus,o=a.onBlur,p=a.placeholders,q=a.id,r=a.selectProps,s=useIntl(),t=s.locale,u=s.formatMessage,v=function(){return g&&isDateValid(g)?"string"==typeof g?convertToLocalMidnight(g):g:null},w=function(a){var b=INITIAL_DEFAULT_STATE;if(g&&isDateValid(g)){var c=v();b=explodeDate(c),isMonthAndYearFormat(g)&&(b.day=null)}return b[a]},x=useState(function(){return w("day")}),y=_slicedToArray(x,2),z=y[0],A=y[1],B=useState(function(){return w("month")}),C=_slicedToArray(B,2),D=C[0],E=C[1],F=useState(function(){return w("year")}),G=_slicedToArray(F,2),H=G[0],I=G[1],J=useState(v),K=_slicedToArray(J,2),L=K[0],M=K[1];h=h||u(messages.dayLabel),i=i||u(messages.monthLabel),j=j||u(messages.yearLabel),p={day:(null===(b=p)||void 0===b?void 0:b.day)||"DD",month:(null===(c=p)||void 0===c?void 0:c.month)||u(messages.monthLabel),year:(null===(d=p)||void 0===d?void 0:d.year)||"YYYY"};var N=function(a){if(!isDateValid(a))return"";switch(l){case DateMode.MONTH_YEAR:return[a.getFullYear(),"0".concat(a.getMonth()+1).slice(-2)].join("-");case DateMode.DAY_MONTH_YEAR:default:return[a.getFullYear(),"0".concat(a.getMonth()+1).slice(-2),"0".concat(a.getDate()).slice(-2)].join("-");}},O=function(){var a=getMonthNames(t,k);return/*#__PURE__*/_jsxs("label",{children:[/*#__PURE__*/_jsx("span",{className:"sr-only",children:i}),/*#__PURE__*/_jsx(Select,_objectSpread({id:q?"".concat(q,"-select"):void 0,name:"month",disabled:e,placeholder:p.month,options:P(),size:f,selected:null===D?null:{value:D,label:a[D]},onChange:function(a){return S(a)}},r))]})},P=function(){var a=[],b=getMonthNames(t,k);return b.forEach(function(b,c){a.push({value:c,label:b})}),a},Q=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:z,b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:D,c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:H,d=null!=a&&null!=b&&null!=c?new Date(c,b,a):null,e=isDateValid(d)?d:null;e||U(INITIAL_DEFAULT_STATE),l===DateMode.MONTH_YEAR?0<=b&&c&&(b!==D||c!==H)&&U(e):a&&0<=b&&c&&(a!==z||b!==D||c!==H)&&U(e)},R=function(a){var b=V(a.target.value,D,H),c=b.checkedDay;A(c),Q(c,D,H)},S=function(a){if(!a)return E(null),void Q(z,null,H);var b=a?a.value:0,c=V(z,b,H),d=c.checkedDay;E(b),z&&d!==z&&A(d),Q(d,b,H)},T=function(a){var b=a.target.value,c=4<b.length?b.slice(0,4):b;if(4===c.toString().length){// Correct day based on year and month.
2
- var d=V(z,D,b),e=d.checkedDay;z&&e!==z&&A(e),I(c),Q(e,D,c)}else I(c),Q(z,D,null)},U=function(a){a!==L&&(M(a),m(N(a)||null))},V=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,d=a,e=new Date(c||2e3,b+1,0).getDate();return a||(d=null),(a&&0>a||"00"===a)&&(d=1),(a&&b||31<a)&&(d=a>e?e:a),{checkedDay:d,checkedMonth:b,checkedYear:c}},W=l===DateMode.MONTH_YEAR,X=classNames({"col-sm-8":W,"col-sm-5":!W}),Y=MonthBeforeDay.has(t);return/*#__PURE__*/_jsx("div",{className:"tw-date",id:q,onFocus:function onFocus(a){return shouldPropagateOnFocus(a)?n&&n():a.stopPropagation()},onBlur:function onBlur(a){return shouldPropagateOnBlur(a)?o&&o():a.stopPropagation()},children:/*#__PURE__*/_jsxs("div",{className:"row",children:[Y&&/*#__PURE__*/_jsx("div",{className:X,children:O()}),!W&&/*#__PURE__*/_jsx("div",{className:"col-sm-3",children:/*#__PURE__*/_jsxs("label",{children:[/*#__PURE__*/_jsx("span",{className:"sr-only",children:h}),/*#__PURE__*/_jsx("div",{className:"input-group input-group-".concat(f),children:/*#__PURE__*/_jsx("input",{type:"number",name:"day",className:"form-control",value:z||"",placeholder:p.day,disabled:e,onChange:function(a){return R(a)}})})]})}),!Y&&/*#__PURE__*/_jsx("div",{className:X,children:O()}),/*#__PURE__*/_jsx("div",{className:"col-sm-4",children:/*#__PURE__*/_jsxs("label",{children:[/*#__PURE__*/_jsx("span",{className:"sr-only",children:j}),/*#__PURE__*/_jsx("div",{className:"input-group input-group-".concat(f),children:/*#__PURE__*/_jsx("input",{type:"number",name:"year",className:"form-control",placeholder:p.year,value:H||"",disabled:e,onChange:function(a){return T(a)}})})]})})]})})};// Should only propagate if the relatedTarget is not part of this DateInput component.
3
- function shouldPropagateOnFocus(a){var b=a.target,c=a.relatedTarget,d=b.closest(".tw-date"),e=c&&c.closest(".tw-date");return d!==e}// Should only propagate if the relatedTarget or the activeElement is not part of this DateInput component.
4
- function shouldPropagateOnBlur(a){var b=a.target,c=a.relatedTarget,d=b.closest(".tw-date"),e=c||(document.activeElement===b?null:document.activeElement),f=e&&e.closest(".tw-date");return d!==f}DateInput.propTypes={disabled:PropTypes.bool,size:PropTypes.oneOf(["sm","md","lg"]),value:PropTypes.oneOfType([PropTypes.string,PropTypes.instanceOf(Date)]),onChange:PropTypes.func.isRequired,onFocus:PropTypes.func,onBlur:PropTypes.func,dayLabel:PropTypes.string,monthLabel:PropTypes.string,yearLabel:PropTypes.string,monthFormat:PropTypes.oneOf(["long","short"]),mode:PropTypes.oneOf(["day-month-year","month-year"]),placeholders:PropTypes.shape({day:PropTypes.node,month:PropTypes.node,year:PropTypes.node}),id:PropTypes.string,selectProps:PropTypes.object},DateInput.defaultProps={disabled:!1,size:Size.MEDIUM,value:null,onFocus:null,onBlur:null,monthFormat:MonthFormat.LONG,mode:DateMode.DAY_MONTH_YEAR,id:"",selectProps:{}};export default DateInput;
@@ -1 +0,0 @@
1
- import{defineMessages}from"react-intl";export default defineMessages({monthLabel:{id:"neptune.DateInput.month.label"},dayLabel:{id:"neptune.DateInput.day.label"},yearLabel:{id:"neptune.DateInput.year.label"}});
@@ -1 +0,0 @@
1
- import DateInput from"./DateInput";export default DateInput;
@@ -1,2 +0,0 @@
1
- export var convertToLocalMidnight=function(a){var b=new Date(a.split("T")[0]);// using YYYY-MM-DD creates UTC date
2
- return new Date(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate())};
@@ -1 +0,0 @@
1
- export{convertToLocalMidnight}from"./convertToLocalMidnight";
@@ -1 +0,0 @@
1
- export var explodeDate=function(a){var b=a.getFullYear(),c=a.getMonth(),d=a.getDate();return{year:b,month:c,day:d}};
@@ -1 +0,0 @@
1
- export{explodeDate}from"./explodeDate";
@@ -1 +0,0 @@
1
- export{explodeDate}from"./explodeDate";export{convertToLocalMidnight}from"./convertToLocalMidnight";
@@ -1,3 +0,0 @@
1
- import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _defineProperty from"@babel/runtime/helpers/defineProperty";function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}import PropTypes from"prop-types";import{createRef,PureComponent}from"react";import{Size,MonthFormat,Position}from"../common";import{isWithinRange,moveToWithinRange}from"../common/dateUtils";import KeyCodes from"../common/keyCodes";import ResponsivePanel from"../common/responsivePanel";import DateTrigger from"./dateTrigger";import DayCalendar from"./dayCalendar";import{getStartOfDay}from"./getStartOfDay";import MonthCalendar from"./monthCalendar";import YearCalendar from"./yearCalendar";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var MODE={DAY:"day",MONTH:"month",YEAR:"year"},DateLookup=/*#__PURE__*/function(a){function b(a){var d;return _classCallCheck(this,b),d=c.call(this,a),_defineProperty(_assertThisInitialized(d),"element",/*#__PURE__*/createRef()),_defineProperty(_assertThisInitialized(d),"dropdown",/*#__PURE__*/createRef()),_defineProperty(_assertThisInitialized(d),"open",function(){var a=d.props.onFocus;d.setState({open:!0,mode:MODE.DAY}),a&&a()}),_defineProperty(_assertThisInitialized(d),"close",function(){var a=d.props.onBlur;d.setState({open:!1}),a&&a()}),_defineProperty(_assertThisInitialized(d),"handleKeyDown",function(a){var b=d.state.open;switch(a.keyCode){case KeyCodes.LEFT:b?d.adjustDate(-1,-1,-1):d.open(),a.preventDefault();break;case KeyCodes.UP:b?d.adjustDate(-7,-4,-4):d.open(),a.preventDefault();break;case KeyCodes.RIGHT:b?d.adjustDate(1,1,1):d.open(),a.preventDefault();break;case KeyCodes.DOWN:b?d.adjustDate(7,4,4):d.open(),a.preventDefault();break;case KeyCodes.ESCAPE:d.close(),a.preventDefault();break;default:}}),_defineProperty(_assertThisInitialized(d),"adjustDate",function(a,b,c){var e,f=d.state,g=f.selectedDate,h=f.min,i=f.max,j=f.mode;e=g?new Date(j===MODE.YEAR?g.getFullYear()+c:g.getFullYear(),j===MODE.MONTH?g.getMonth()+b:g.getMonth(),j===MODE.DAY?g.getDate()+a:g.getDate()):getStartOfDay(new Date),e=moveToWithinRange(e,h,i),+e!=+g&&d.props.onChange(e)}),_defineProperty(_assertThisInitialized(d),"focusOn",function(a,b){var c=d.element.current.querySelector(a);c?c.focus():b&&d.focusOn(b)}),_defineProperty(_assertThisInitialized(d),"switchMode",function(a){d.setState({mode:a},function(){d.focusOn(".active",".today")})}),_defineProperty(_assertThisInitialized(d),"switchToDays",function(){return d.switchMode(MODE.DAY)}),_defineProperty(_assertThisInitialized(d),"switchToMonths",function(){return d.switchMode(MODE.MONTH)}),_defineProperty(_assertThisInitialized(d),"switchToYears",function(){return d.switchMode(MODE.YEAR)}),_defineProperty(_assertThisInitialized(d),"handleSelectedDateUpdate",function(a){d.setState({selectedDate:a},function(){d.props.onChange(a),d.close(),d.focusOn(".btn")})}),_defineProperty(_assertThisInitialized(d),"handleViewDateUpdate",function(a){var b=a.month,c=void 0===b?d.state.viewMonth:b,e=a.year,f=void 0===e?d.state.viewYear:e;d.setState({viewMonth:c,viewYear:f})}),_defineProperty(_assertThisInitialized(d),"getCalendar",function(){var a=d.state,b=a.selectedDate,c=a.min,e=a.max,f=a.viewMonth,g=a.viewYear,h=a.mode,i=d.props,j=i.placeholder,k=i.monthFormat;return/*#__PURE__*/_jsxs("div",{className:"p-a-1",children:[h===MODE.DAY&&/*#__PURE__*/_jsx(DayCalendar,{selectedDate:b,min:c,max:e,viewMonth:f,viewYear:g,monthFormat:k,onSelect:d.handleSelectedDateUpdate,onLabelClick:d.switchToYears,onViewDateUpdate:d.handleViewDateUpdate}),h===MODE.MONTH&&/*#__PURE__*/_jsx(MonthCalendar,{selectedDate:b,min:c,max:e,viewYear:g,placeholder:j,onSelect:d.switchToDays,onLabelClick:d.switchToYears,onViewDateUpdate:d.handleViewDateUpdate}),h===MODE.YEAR&&/*#__PURE__*/_jsx(YearCalendar,{selectedDate:b,min:c,max:e,viewYear:g,placeholder:j,onSelect:d.switchToMonths,onViewDateUpdate:d.handleViewDateUpdate})]})}),_defineProperty(_assertThisInitialized(d),"handleClear",function(){d.props.onChange(null),d.focusOn(".np-date-trigger")}),d.state={selectedDate:getStartOfDay(a.value),min:getStartOfDay(a.min),max:getStartOfDay(a.max),viewMonth:(a.value||new Date).getMonth(),viewYear:(a.value||new Date).getFullYear(),open:!1,mode:MODE.DAY},d}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"componentDidUpdate",value:function componentDidUpdate(a){+this.props.value!=+a.value&&this.state.open&&this.focusOn(".active")}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setState=function(){}}},{key:"render",value:function render(){var a=this.state,b=a.selectedDate,c=a.open,d=this.props,e=d.size,f=d.placeholder,g=d.label,h=d.monthFormat,i=d.disabled,j=d.clearable,k=d.value;return/*#__PURE__*/_jsxs("div",{// eslint-disable-line jsx-a11y/no-static-element-interactions
2
- ref:this.element,className:"btn-group btn-block",onKeyDown:this.handleKeyDown,children:[/*#__PURE__*/_jsx(DateTrigger,{selectedDate:b,size:e,placeholder:f,label:g,monthFormat:h,disabled:i,onClick:this.open,onClear:!i&&j&&k?this.handleClear:null}),/*#__PURE__*/_jsx(ResponsivePanel,{anchorRef:this.element,open:c,className:"tw-date-lookup-menu",position:Position.BOTTOM,onClose:this.close,children:this.getCalendar()})]})}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(a,b){var c=getStartOfDay(a.value),d=getStartOfDay(a.min),e=getStartOfDay(a.max),f=+b.selectedDate!=+c,g=+b.min!=+d,h=+b.max!=+e;if(f||g||h){var i=f?c:b.selectedDate,j=g?d:b.min,k=h?e:b.max;// make sure that selected date is within allowed range
3
- if(!isWithinRange(i,j,k))return a.onChange(moveToWithinRange(i,j,k)),null;var l=(i||new Date).getMonth(),m=(i||new Date).getFullYear();return{selectedDate:i,min:j,max:k,viewMonth:l,viewYear:m}}return null}}]),b}(PureComponent);DateLookup.propTypes={value:PropTypes.instanceOf(Date).isRequired,min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),size:PropTypes.oneOf(["sm","md","lg"]),placeholder:PropTypes.string,label:PropTypes.string,monthFormat:PropTypes.oneOf(["long","short"]),disabled:PropTypes.bool,onChange:PropTypes.func.isRequired,onFocus:PropTypes.func,onBlur:PropTypes.func,clearable:PropTypes.bool},DateLookup.defaultProps={min:null,max:null,size:Size.MEDIUM,placeholder:"",label:"",monthFormat:MonthFormat.LONG,disabled:!1,onFocus:null,onBlur:null,clearable:!1};export default DateLookup;
@@ -1 +0,0 @@
1
- import PropTypes from"prop-types";import Chevron from"../../chevron";import{Position,Size}from"../../common";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var buttonClasses="btn-link p-a-0 text-no-decoration np-text-body-large-bold rounded-sm",DateHeader=function(a){var b=a.label,c=a.onLabelClick,d=a.onPreviousClick,e=a.onNextClick;return/*#__PURE__*/_jsxs("div",{className:"text-xs-center p-t-1 p-b-2 clearfix",children:[/*#__PURE__*/_jsx("div",{className:"pull-left-single-direction",children:/*#__PURE__*/_jsx("button",{type:"button",className:"d-inline-flex ".concat(buttonClasses),onClick:d,children:/*#__PURE__*/_jsx(Chevron,{orientation:Position.LEFT,className:"left-single-direction",size:Size.MEDIUM})})}),b&&/*#__PURE__*/_jsx("button",{type:"button",className:"tw-date-lookup-header-current ".concat(buttonClasses),onClick:c,children:b}),/*#__PURE__*/_jsx("div",{className:"pull-right-single-direction",children:/*#__PURE__*/_jsx("button",{type:"button",className:"d-inline-flex ".concat(buttonClasses),onClick:e,children:/*#__PURE__*/_jsx(Chevron,{orientation:Position.RIGHT,className:"right-single-direction",size:Size.MEDIUM})})})]})};DateHeader.propTypes={label:PropTypes.string,onLabelClick:PropTypes.func,onPreviousClick:PropTypes.func.isRequired,onNextClick:PropTypes.func.isRequired},DateHeader.defaultProps={label:null,onLabelClick:function onLabelClick(){}};export default DateHeader;
@@ -1 +0,0 @@
1
- export{default}from"./DateHeader";
@@ -1 +0,0 @@
1
- import{formatDate}from"@transferwise/formatting";import{isKey}from"@transferwise/neptune-validation";import{useTheme}from"@wise/components-theming";import PropTypes from"prop-types";import{useIntl}from"react-intl";import Chevron from"../../chevron";import{Size,Position}from"../../common";import CloseButton from"../../common/closeButton/CloseButton";import messages from"./DateTrigger.messages";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var DateTrigger=function(a){var b=a.selectedDate,c=a.size,d=a.placeholder,e=a.label,f=a.monthFormat,g=a.disabled,h=a.onClick,i=a.onClear,j=useTheme(),k=j.isModern,l=useIntl(),m=l.locale,n=l.formatMessage;return/*#__PURE__*/_jsxs("button",{className:"btn btn-".concat(c," btn-input np-date-trigger np-date-trigger--").concat(c),disabled:g,type:"button",onClick:h,children:[e&&/*#__PURE__*/_jsx("span",{className:"control-label small m-r-1",children:e}),b?/*#__PURE__*/_jsx("span",{className:k?"":"font-weight-normal",children:formatDate(b,m,{day:"numeric",month:f,year:"numeric"})}):/*#__PURE__*/_jsx("span",{className:"form-control-placeholder visible-xs-inline visible-sm-inline visible-md-inline visible-lg-inline visible-xl-inline",children:d}),i?/*#__PURE__*/_jsx(CloseButton,{className:"clear-btn d-flex align-items-center","aria-label":n(messages.ariaLabel),size:c===Size.SMALL?16:24,onClick:function(a){a.stopPropagation(),a.preventDefault(),i()},onKeyPress:function handleKeyDown(a){(isKey({keyType:"Space",event:a})||isKey({keyType:"Enter",event:a}))&&(a.stopPropagation(),a.preventDefault(),i())}}):/*#__PURE__*/_jsx(Chevron,{orientation:Position.BOTTOM,disabled:g})]})};DateTrigger.propTypes={selectedDate:PropTypes.instanceOf(Date),size:PropTypes.oneOf(["sm","md","lg"]),placeholder:PropTypes.string.isRequired,label:PropTypes.string.isRequired,monthFormat:PropTypes.oneOf(["short","long"]).isRequired,disabled:PropTypes.bool.isRequired,onClick:PropTypes.func.isRequired,onClear:PropTypes.func},DateTrigger.defaultProps={selectedDate:null,size:Size.MEDIUM,onClear:void 0};export default DateTrigger;
@@ -1 +0,0 @@
1
- import{defineMessages}from"react-intl";export default defineMessages({ariaLabel:{id:"neptune.ClearButton.ariaLabel"}});
@@ -1 +0,0 @@
1
- export{default}from"./DateTrigger";
@@ -1 +0,0 @@
1
- import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _defineProperty from"@babel/runtime/helpers/defineProperty";function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}import{formatDate}from"@transferwise/formatting";import PropTypes from"prop-types";import{PureComponent}from"react";import{injectIntl}from"react-intl";import{MonthFormat}from"../../common";import DateHeader from"../dateHeader";import DayCalendarTable from"./table";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var DayCalendar=/*#__PURE__*/function(a){function b(){var a;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return a=c.call.apply(c,[this].concat(e)),_defineProperty(_assertThisInitialized(a),"selectPreviousMonth",function(){var b=a.props,c=b.viewMonth,d=b.viewYear;a.props.onViewDateUpdate({month:0>=c?11:c-1,year:0>=c?d-1:d})}),_defineProperty(_assertThisInitialized(a),"selectNextMonth",function(){var b=a.props,c=b.viewMonth,d=b.viewYear;a.props.onViewDateUpdate({month:11<=c?0:c+1,year:11<=c?d+1:d})}),a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"render",value:function render(){var a=this.props,b=a.selectedDate,c=a.min,d=a.max,e=a.viewMonth,f=a.viewYear,g=a.intl.locale,h=a.monthFormat,i=a.onLabelClick,j=a.onSelect;return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(DateHeader,{label:formatDate(new Date(f,e),g,{month:h,year:"numeric"}),onLabelClick:i,onPreviousClick:this.selectPreviousMonth,onNextClick:this.selectNextMonth}),/*#__PURE__*/_jsx(DayCalendarTable,{selectedDate:b,min:c,max:d,viewMonth:e,viewYear:f,onSelect:j})]})}}]),b}(PureComponent);DayCalendar.propTypes={selectedDate:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),viewMonth:PropTypes.number.isRequired,viewYear:PropTypes.number.isRequired,monthFormat:PropTypes.oneOf([MonthFormat.LONG,MonthFormat.SHORT]).isRequired,onSelect:PropTypes.func.isRequired,onLabelClick:PropTypes.func.isRequired,onViewDateUpdate:PropTypes.func.isRequired},DayCalendar.defaultProps={selectedDate:null,min:null,max:null};export default injectIntl(DayCalendar);
@@ -1 +0,0 @@
1
- export{default}from"./DayCalendar";
@@ -1,4 +0,0 @@
1
- import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _defineProperty from"@babel/runtime/helpers/defineProperty";function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}import{formatDate}from"@transferwise/formatting";import PropTypes from"prop-types";import{PureComponent}from"react";import{injectIntl}from"react-intl";import{getDayNames,isWithinRange}from"../../../common/dateUtils";import{getStartOfDay}from"../../getStartOfDay";import TableLink from"../../tableLink";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var SHORT_DAY_FORMAT={day:"numeric"},DayCalendarTable=/*#__PURE__*/function(a){function b(){var a;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return a=c.call.apply(c,[this].concat(e)),_defineProperty(_assertThisInitialized(a),"getTableStructure",function(){var b=a.props,c=b.viewMonth,d=b.viewYear,e=new Date(d,c,1).getDay();0===e&&(e=7);var f,g=new Date(d,c+1,0).getDate(),h=[],j=[];// Pad first week
2
- for(f=1;f<e;f+=1)h.push(!1);// Fill in days
3
- for(f=1;f<=g;f+=1)h.push(f),0==(e+f-1)%7&&(j.push(h),h=[]);if(0<h.length){// Pad last week
4
- for(f=h.length;7>f;f+=1)h.push(!1);j.push(h)}return j}),_defineProperty(_assertThisInitialized(a),"days",getDayNames(a.props.intl.locale,"short")),_defineProperty(_assertThisInitialized(a),"daysShort",getDayNames(a.props.intl.locale,"narrow")),_defineProperty(_assertThisInitialized(a),"selectDay",function(b){var c=a.props,d=c.viewMonth,e=c.viewYear,f=c.onSelect;f(new Date(e,d,b))}),_defineProperty(_assertThisInitialized(a),"isDisabled",function(b){var c=a.props,d=c.min,e=c.max,f=c.viewMonth,g=c.viewYear,h=new Date(g,f,b);return!isWithinRange(h,d,e)}),_defineProperty(_assertThisInitialized(a),"isActive",function(b){var c=a.props,d=c.selectedDate,e=c.viewMonth,f=c.viewYear;return!!(d&&+new Date(f,e,b)==+d)}),a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"render",value:function render(){var a=this,b=this.props,c=b.viewMonth,d=b.viewYear,e=b.intl.locale,f=this.getTableStructure();return/*#__PURE__*/_jsxs("table",{className:"table table-condensed table-bordered tw-date-lookup-calendar m-b-0",children:[/*#__PURE__*/_jsx("thead",{children:/*#__PURE__*/_jsx("tr",{children:this.days.map(function(b,c){return/*#__PURE__*/_jsxs("th",{className:"text-xs-center np-text-body-default-bold",children:[/*#__PURE__*/_jsx("span",{className:"hidden-xs",children:b.slice(0,3)}),/*#__PURE__*/_jsx("span",{className:"visible-xs-inline-block",children:a.daysShort[c].slice(0,2)})]},b)})})}),/*#__PURE__*/_jsx("tbody",{children:f.map(function(b,f){return/*#__PURE__*/_jsx("tr",{children:b.map(function(b,f){return/*#__PURE__*/_jsx("td",{className:4<f?"default":"",children:b&&/*#__PURE__*/_jsx(TableLink,{item:b,type:"day",title:formatDate(new Date(d,c,b),e,SHORT_DAY_FORMAT),longTitle:formatDate(new Date(d,c,b),e),active:a.isActive(b),disabled:a.isDisabled(b),today:+getStartOfDay(new Date)==+new Date(d,c,b),onClick:a.selectDay})},f)})},f)})})]})}}]),b}(PureComponent);DayCalendarTable.propTypes={selectedDate:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),viewMonth:PropTypes.number.isRequired,viewYear:PropTypes.number.isRequired,onSelect:PropTypes.func.isRequired},DayCalendarTable.defaultProps={selectedDate:null,min:null,max:null};export default injectIntl(DayCalendarTable);
@@ -1 +0,0 @@
1
- export{default}from"./DayCalendarTable";
@@ -1,5 +0,0 @@
1
- // NB! Using with UTC timestamp (YYYY-MM-DD) might lead to unexpected results, for example
2
- // getStartOfDay(new Date('1995-01-01')) in Los Angeles returns 31 Dec 1994, but in
3
- // in Singapore it is 1 Jan 1995.
4
- // You might want to use/implement `getUTCStartOfDay` if you want it to be 1995 in any timezone
5
- export function getStartOfDay(a){return a?new Date(a.getFullYear(),a.getMonth(),a.getDate()):null}
@@ -1 +0,0 @@
1
- export{getStartOfDay}from"./getStartOfDay";
@@ -1 +0,0 @@
1
- export{default}from"./DateLookup";
@@ -1 +0,0 @@
1
- import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _defineProperty from"@babel/runtime/helpers/defineProperty";function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}import{formatDate}from"@transferwise/formatting";import PropTypes from"prop-types";import{PureComponent}from"react";import{injectIntl}from"react-intl";import DateHeader from"../dateHeader";import MonthCalendarTable from"./table";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var MonthCalendar=/*#__PURE__*/function(a){function b(){var a;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return a=c.call.apply(c,[this].concat(e)),_defineProperty(_assertThisInitialized(a),"onMonthSelect",function(b){a.props.onViewDateUpdate({month:b}),a.props.onSelect()}),_defineProperty(_assertThisInitialized(a),"selectPreviousYear",function(){a.props.onViewDateUpdate({year:a.props.viewYear-1})}),_defineProperty(_assertThisInitialized(a),"selectNextYear",function(){a.props.onViewDateUpdate({year:a.props.viewYear+1})}),a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"render",value:function render(){var a=this.props,b=a.selectedDate,c=a.min,d=a.max,e=a.viewYear,f=a.intl.locale,g=a.placeholder,h=a.onLabelClick;return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(DateHeader,{label:formatDate(new Date(e,0),f,{year:"numeric"}),onLabelClick:h,onPreviousClick:this.selectPreviousYear,onNextClick:this.selectNextYear}),/*#__PURE__*/_jsx(MonthCalendarTable,{selectedDate:b,min:c,max:d,viewYear:e,placeholder:g,onSelect:this.onMonthSelect})]})}}]),b}(PureComponent);MonthCalendar.propTypes={selectedDate:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),viewYear:PropTypes.number.isRequired,placeholder:PropTypes.string.isRequired,onSelect:PropTypes.func.isRequired,onLabelClick:PropTypes.func.isRequired,onViewDateUpdate:PropTypes.func.isRequired},MonthCalendar.defaultProps={selectedDate:null,min:null,max:null};export default injectIntl(MonthCalendar);
@@ -1 +0,0 @@
1
- export{default}from"./MonthCalendar";
@@ -1 +0,0 @@
1
- import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import{formatDate}from"@transferwise/formatting";import PropTypes from"prop-types";import{useIntl}from"react-intl";import TableLink from"../../tableLink";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var ROWS=3,COLS=4,MONTH_ONLY_FORMAY={month:"short"},MonthCalendarTable=function(a){var b=a.selectedDate,c=a.min,d=a.max,e=a.viewYear,f=a.placeholder,g=a.onSelect,h=useIntl(),i=h.locale,j=function(a){return/*#__PURE__*/_jsx(TableLink,{item:a,type:"month",title:formatDate(new Date(e,a),i,MONTH_ONLY_FORMAY),active:!!(b&&a===b.getMonth()&&e===b.getFullYear()),disabled:k(a),today:e===new Date().getFullYear()&&a===new Date().getMonth(),onClick:g})},k=function(a){var b=new Date(e,a);return!!(c&&b<new Date(c.getFullYear(),c.getMonth())||d&&b>new Date(d.getFullYear(),d.getMonth()))};return/*#__PURE__*/_jsxs("table",{className:"table table-condensed table-bordered tw-date-lookup-calendar np-text-body-default-bold m-b-0",children:[/*#__PURE__*/_jsx("thead",{className:"sr-only",children:/*#__PURE__*/_jsx("tr",{children:/*#__PURE__*/_jsx("th",{colSpan:"3",children:f})})}),/*#__PURE__*/_jsx("tbody",{children:_toConsumableArray([,,,]).map(function(a,b){return/*#__PURE__*/_jsx("tr",{children:_toConsumableArray(Array(COLS)).map(function(a,c){return/*#__PURE__*/_jsx("td",{children:j(b*COLS+c)},c)})},b)})})]})};MonthCalendarTable.propTypes={selectedDate:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),viewYear:PropTypes.number.isRequired,placeholder:PropTypes.string.isRequired,onSelect:PropTypes.func.isRequired},MonthCalendarTable.defaultProps={selectedDate:null,min:null,max:null};export default MonthCalendarTable;
@@ -1 +0,0 @@
1
- export{default}from"./MonthCalendarTable";
@@ -1,2 +0,0 @@
1
- import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _defineProperty from"@babel/runtime/helpers/defineProperty";function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}import PropTypes from"prop-types";import{PureComponent}from"react";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";var TableLink=/*#__PURE__*/function(a){function b(){var a;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return a=c.call.apply(c,[this].concat(e)),_defineProperty(_assertThisInitialized(a),"onClick",function(b){b.preventDefault(),a.props.disabled||a.props.onClick(a.props.item)}),a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"render",value:function render(){var a=this.props,b=a.item,c=a.type,d=a.title,e=a.longTitle,f=a.active,g=a.disabled,h=a.today;return/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx("button",{type:"button",className:"tw-date-lookup-".concat(c,"-option ").concat(f?"active":""," ").concat(h?"today":""," np-text-body-default-bold"),disabled:g,"aria-label":e,onClick:this.onClick,children:d||b})})}}]),b}(PureComponent);TableLink.propTypes={item:PropTypes.number.isRequired,// day (1-31), month (0-11) or year (2018 etc)
2
- type:PropTypes.oneOf(["day","month","year"]).isRequired,title:PropTypes.string,longTitle:PropTypes.string,active:PropTypes.bool.isRequired,disabled:PropTypes.bool.isRequired,today:PropTypes.bool.isRequired,onClick:PropTypes.func.isRequired},TableLink.defaultProps={title:null,longTitle:null};export default TableLink;
@@ -1 +0,0 @@
1
- export{default}from"./TableLink";
@@ -1 +0,0 @@
1
- import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _defineProperty from"@babel/runtime/helpers/defineProperty";function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}import PropTypes from"prop-types";import{PureComponent}from"react";import DateHeader from"../dateHeader";import YearCalendarTable from"./table";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var YearCalendar=/*#__PURE__*/function(a){function b(){var a;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return a=c.call.apply(c,[this].concat(e)),_defineProperty(_assertThisInitialized(a),"onYearSelect",function(b){a.props.onViewDateUpdate({year:b}),a.props.onSelect()}),_defineProperty(_assertThisInitialized(a),"selectPreviousYears",function(){a.props.onViewDateUpdate({year:a.props.viewYear-20})}),_defineProperty(_assertThisInitialized(a),"selectNextYears",function(){a.props.onViewDateUpdate({year:a.props.viewYear+20})}),a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"render",value:function render(){var a=this.props,b=a.selectedDate,c=a.min,d=a.max,e=a.viewYear,f=a.placeholder;return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(DateHeader,{onPreviousClick:this.selectPreviousYears,onNextClick:this.selectNextYears}),/*#__PURE__*/_jsx(YearCalendarTable,{selectedDate:b,min:c,max:d,viewYear:e,placeholder:f,onSelect:this.onYearSelect})]})}}]),b}(PureComponent);YearCalendar.propTypes={selectedDate:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),viewYear:PropTypes.number.isRequired,placeholder:PropTypes.string.isRequired,onSelect:PropTypes.func.isRequired,onViewDateUpdate:PropTypes.func.isRequired},YearCalendar.defaultProps={selectedDate:null,min:null,max:null};export default YearCalendar;
@@ -1 +0,0 @@
1
- export{default}from"./YearCalendar";
@@ -1 +0,0 @@
1
- import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import{formatDate}from"@transferwise/formatting";import PropTypes from"prop-types";import{useIntl}from"react-intl";import TableLink from"../../tableLink";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var ROWS=5,COLS=4,YEAR_ONLY_FORMAT={year:"numeric"},YearCalendarTable=function(a){var b=a.selectedDate,c=a.min,d=a.max,e=a.viewYear,f=a.placeholder,g=a.onSelect,h=useIntl(),i=h.locale,j=function(a){return/*#__PURE__*/_jsx(TableLink,{item:a,type:"year",title:formatDate(new Date(a,0),i,YEAR_ONLY_FORMAT),active:!!(b&&a===b.getFullYear()),disabled:!!(c&&a<c.getFullYear()||d&&a>d.getFullYear()),today:a===new Date().getFullYear(),onClick:g})};return/*#__PURE__*/_jsxs("table",{className:"table table-condensed table-bordered tw-date-lookup-calendar m-b-0",children:[/*#__PURE__*/_jsx("thead",{className:"sr-only",children:/*#__PURE__*/_jsx("tr",{children:/*#__PURE__*/_jsx("th",{colSpan:"4",children:f})})}),/*#__PURE__*/_jsx("tbody",{children:_toConsumableArray([,,,,,]).map(function(a,b){return/*#__PURE__*/_jsx("tr",{children:_toConsumableArray(Array(COLS)).map(function(a,c){return/*#__PURE__*/_jsx("td",{children:j(e-e%20+b*COLS+c)},c)})},b)})})]})};YearCalendarTable.propTypes={selectedDate:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),viewYear:PropTypes.number.isRequired,placeholder:PropTypes.string.isRequired,onSelect:PropTypes.func.isRequired},YearCalendarTable.defaultProps={selectedDate:null,min:null,max:null};export default YearCalendarTable;
@@ -1 +0,0 @@
1
- export{default}from"./YearCalendarTable";
@@ -1,5 +0,0 @@
1
- import classNames from"classnames";import PropTypes from"prop-types";import requiredIf from"react-required-if";import{Size,Breakpoint}from"../common";import NavigationOption from"../navigationOption";import SizeSwapper from"../sizeSwapper";import Tile from"../tile";import{Presentation,Type}from"./decisionEnums";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";var Decision=function(a){var b=a.options,c=a.presentation,d=a.type,e=a.showMediaCircleInList,f=a.size;if(d===Type.NAVIGATION){var g=Presentation.LIST_BLOCK,h=Presentation.LIST_BLOCK_GRID;if(c===g||c===h){var i=f===Size.SMALL,j=c===h,k=[{items:[],layout:SizeSwapper.Layout.COLUMN},{items:[],breakpoint:i?Breakpoint.EXTRA_SMALL:Breakpoint.SMALL,wrap:j}];return b.forEach(function(a,b){var c=a.description,d=a.disabled,f=a.href,g=a.target,h=a.media,l=h.block,m=h.list,n=a.onClick,o=a.title;k[0].items.push(/*#__PURE__*/_jsx(NavigationOption// eslint-disable-next-line react/no-array-index-key
2
- ,{complex:!1,content:c,disabled:d,href:f,target:g,media:m,showMediaAtAllSizes:!0,showMediaCircle:e,title:o,onClick:n},"nav-".concat(b))),k[1].items.push(/*#__PURE__*/_jsx(Tile// eslint-disable-next-line react/no-array-index-key
3
- ,{className:classNames("np-decision__tile".concat(i?"--small":""),{"np-decision__tile--fixed-width":j}),description:c,disabled:d,href:f,target:g,media:l,size:i?Size.SMALL:Size.MEDIUM,title:o,onClick:n},"tile-".concat(b)))}),/*#__PURE__*/_jsx("div",{className:classNames("np-decision",{"np-decision--small":i,"np-decision--grid":j}),children:/*#__PURE__*/_jsx(SizeSwapper,{items:k})})}// LIST
4
- return b.map(function(a,b){var c=a.title,d=a.description,f=a.disabled,g=a.href,h=a.target,i=a.media.list,j=a.onClick;return/*#__PURE__*/_jsx(NavigationOption// eslint-disable-next-line react/no-array-index-key
5
- ,{complex:!1,content:d,disabled:f,href:g,target:h,media:i,showMediaAtAllSizes:!0,showMediaCircle:e,title:c,onClick:j},"nav-".concat(b))})}return/*#__PURE__*/_jsx(_Fragment,{})};Decision.propTypes={/** A list of elements to be rendered */options:PropTypes.arrayOf(PropTypes.shape({description:PropTypes.node,disabled:PropTypes.bool,href:requiredIf(PropTypes.string,function(a){return a.type===Type.NAVIGATION}),target:PropTypes.oneOf(["_self","_blank","_parent","_top"]),media:PropTypes.shape({block:PropTypes.node.isRequired,list:PropTypes.node.isRequired}),onClick:PropTypes.func,title:PropTypes.node.isRequired})).isRequired,/** Handles the display mode of the component */presentation:PropTypes.oneOf(["LIST","LIST_BLOCK","LIST_BLOCK_GRID"]),/** Size currently affects only Tile dimension */size:PropTypes.oneOf(["sm","md"]),/** Decide which kind of element type needs to be rendered ex: Navigation Options or in the future Radio or Checkbox Options */type:PropTypes.oneOf(["NAVIGATION"]),/** Display media in a circle in list presentation */showMediaCircleInList:PropTypes.bool},Decision.defaultProps={presentation:Presentation.LIST,size:Size.MEDIUM,type:Type.NAVIGATION,showMediaCircleInList:!0};export default Decision;
@@ -1,3 +0,0 @@
1
- // TODO: consider to move this enum into component file once we migrate it on TypeScript or replace with some common enum
2
- export var Presentation;// TODO: consider to move this enum into component file once we migrate it on TypeScript or replace with some common enum
3
- (function(a){a.LIST="LIST",a.LIST_BLOCK="LIST_BLOCK",a.LIST_BLOCK_GRID="LIST_BLOCK_GRID"})(Presentation||(Presentation={}));export var Type;(function(a){a.NAVIGATION="NAVIGATION"})(Type||(Type={}));