@transferwise/components 45.12.0 → 45.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2654) hide show
  1. package/build/index.esm.js +14389 -0
  2. package/build/index.esm.js.map +1 -0
  3. package/build/index.js +14521 -0
  4. package/build/index.js.map +1 -0
  5. package/build/main.css +1 -1
  6. package/build/styles/avatar/Avatar.css +1 -1
  7. package/build/styles/badge/Badge.css +1 -1
  8. package/build/styles/header/Header.css +1 -1
  9. package/build/styles/image/Image.css +1 -1
  10. package/build/styles/info/Info.css +1 -1
  11. package/build/styles/inputs/InputGroup.css +1 -0
  12. package/build/styles/inputs/TextArea.css +1 -1
  13. package/build/styles/loader/Loader.css +1 -1
  14. package/build/styles/main.css +1 -1
  15. package/build/styles/summary/Summary.css +1 -1
  16. package/build/styles/tooltip/Tooltip.css +1 -1
  17. package/build/types/accordion/Accordion.d.ts +61 -22
  18. package/build/types/accordion/Accordion.d.ts.map +1 -0
  19. package/build/types/accordion/AccordionItem/AccordionItem.d.ts +55 -29
  20. package/build/types/accordion/AccordionItem/AccordionItem.d.ts.map +1 -0
  21. package/build/types/accordion/AccordionItem/index.d.ts +3 -1
  22. package/build/types/accordion/AccordionItem/index.d.ts.map +1 -0
  23. package/build/types/accordion/index.d.ts +2 -1
  24. package/build/types/accordion/index.d.ts.map +1 -0
  25. package/build/types/actionButton/ActionButton.d.ts +1 -0
  26. package/build/types/actionButton/ActionButton.d.ts.map +1 -0
  27. package/build/types/actionButton/index.d.ts +1 -0
  28. package/build/types/actionButton/index.d.ts.map +1 -0
  29. package/build/types/actionOption/ActionOption.d.ts +1 -0
  30. package/build/types/actionOption/ActionOption.d.ts.map +1 -0
  31. package/build/types/actionOption/index.d.ts +1 -0
  32. package/build/types/actionOption/index.d.ts.map +1 -0
  33. package/build/types/alert/Alert.d.ts.map +1 -0
  34. package/build/types/alert/index.d.ts +1 -0
  35. package/build/types/alert/index.d.ts.map +1 -0
  36. package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts +2 -1
  37. package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts.map +1 -0
  38. package/build/types/alert/inlineMarkdown/index.d.ts +1 -0
  39. package/build/types/alert/inlineMarkdown/index.d.ts.map +1 -0
  40. package/build/types/alert/withArrow/alertArrowPositions.d.ts +1 -0
  41. package/build/types/alert/withArrow/alertArrowPositions.d.ts.map +1 -0
  42. package/build/types/alert/withArrow/index.d.ts +1 -0
  43. package/build/types/alert/withArrow/index.d.ts.map +1 -0
  44. package/build/types/alert/withArrow/withArrow.d.ts +2 -1
  45. package/build/types/alert/withArrow/withArrow.d.ts.map +1 -0
  46. package/build/types/avatar/Avatar.d.ts +1 -0
  47. package/build/types/avatar/Avatar.d.ts.map +1 -0
  48. package/build/types/avatar/avatarTypes.d.ts +1 -0
  49. package/build/types/avatar/avatarTypes.d.ts.map +1 -0
  50. package/build/types/avatar/colors/colors.d.ts +1 -0
  51. package/build/types/avatar/colors/colors.d.ts.map +1 -0
  52. package/build/types/avatar/colors/index.d.ts +1 -0
  53. package/build/types/avatar/colors/index.d.ts.map +1 -0
  54. package/build/types/avatar/index.d.ts +1 -0
  55. package/build/types/avatar/index.d.ts.map +1 -0
  56. package/build/types/avatarWrapper/AvatarWrapper.d.ts +18 -28
  57. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -0
  58. package/build/types/avatarWrapper/index.d.ts +2 -1
  59. package/build/types/avatarWrapper/index.d.ts.map +1 -0
  60. package/build/types/badge/Badge.d.ts +3 -2
  61. package/build/types/badge/Badge.d.ts.map +1 -0
  62. package/build/types/badge/index.d.ts +3 -1
  63. package/build/types/badge/index.d.ts.map +1 -0
  64. package/build/types/body/Body.d.ts +3 -2
  65. package/build/types/body/Body.d.ts.map +1 -0
  66. package/build/types/body/index.d.ts +1 -0
  67. package/build/types/body/index.d.ts.map +1 -0
  68. package/build/types/button/Button.d.ts +1 -0
  69. package/build/types/button/Button.d.ts.map +1 -0
  70. package/build/types/button/classMap.d.ts +1 -0
  71. package/build/types/button/classMap.d.ts.map +1 -0
  72. package/build/types/button/index.d.ts +1 -0
  73. package/build/types/button/index.d.ts.map +1 -0
  74. package/build/types/button/legacyUtils/index.d.ts +1 -0
  75. package/build/types/button/legacyUtils/index.d.ts.map +1 -0
  76. package/build/types/button/legacyUtils/legacyUtils.d.ts +1 -0
  77. package/build/types/button/legacyUtils/legacyUtils.d.ts.map +1 -0
  78. package/build/types/card/Card.d.ts.map +1 -0
  79. package/build/types/card/index.d.ts +1 -0
  80. package/build/types/card/index.d.ts.map +1 -0
  81. package/build/types/checkbox/Checkbox.d.ts.map +1 -0
  82. package/build/types/checkbox/index.d.ts +1 -0
  83. package/build/types/checkbox/index.d.ts.map +1 -0
  84. package/build/types/checkboxButton/CheckboxButton.d.ts +1 -0
  85. package/build/types/checkboxButton/CheckboxButton.d.ts.map +1 -0
  86. package/build/types/checkboxButton/index.d.ts +1 -0
  87. package/build/types/checkboxButton/index.d.ts.map +1 -0
  88. package/build/types/checkboxOption/CheckboxOption.d.ts +1 -0
  89. package/build/types/checkboxOption/CheckboxOption.d.ts.map +1 -0
  90. package/build/types/checkboxOption/index.d.ts +1 -0
  91. package/build/types/checkboxOption/index.d.ts.map +1 -0
  92. package/build/types/chevron/Chevron.d.ts.map +1 -0
  93. package/build/types/chevron/index.d.ts +1 -0
  94. package/build/types/chevron/index.d.ts.map +1 -0
  95. package/build/types/chips/Chip.d.ts +1 -0
  96. package/build/types/chips/Chip.d.ts.map +1 -0
  97. package/build/types/chips/Chips.d.ts +1 -0
  98. package/build/types/chips/Chips.d.ts.map +1 -0
  99. package/build/types/chips/Chips.messages.d.ts +1 -0
  100. package/build/types/chips/Chips.messages.d.ts.map +1 -0
  101. package/build/types/chips/index.d.ts +1 -0
  102. package/build/types/chips/index.d.ts.map +1 -0
  103. package/build/types/circularButton/CircularButton.d.ts.map +1 -0
  104. package/build/types/circularButton/index.d.ts +1 -0
  105. package/build/types/circularButton/index.d.ts.map +1 -0
  106. package/build/types/common/DOMOperations/DOMOperations.d.ts +1 -0
  107. package/build/types/common/DOMOperations/DOMOperations.d.ts.map +1 -0
  108. package/build/types/common/DOMOperations/index.d.ts +1 -0
  109. package/build/types/common/DOMOperations/index.d.ts.map +1 -0
  110. package/build/types/common/Option/Option.d.ts +1 -0
  111. package/build/types/common/Option/Option.d.ts.map +1 -0
  112. package/build/types/common/Option/index.d.ts +1 -0
  113. package/build/types/common/Option/index.d.ts.map +1 -0
  114. package/build/types/common/RadioButton/RadioButton.d.ts +2 -1
  115. package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -0
  116. package/build/types/common/RadioButton/index.d.ts +1 -0
  117. package/build/types/common/RadioButton/index.d.ts.map +1 -0
  118. package/build/types/common/bottomSheet/BottomSheet.d.ts +1 -0
  119. package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -0
  120. package/build/types/common/bottomSheet/index.d.ts +1 -0
  121. package/build/types/common/bottomSheet/index.d.ts.map +1 -0
  122. package/build/types/common/card/Card.d.ts +1 -0
  123. package/build/types/common/card/Card.d.ts.map +1 -0
  124. package/build/types/common/card/index.d.ts +1 -0
  125. package/build/types/common/card/index.d.ts.map +1 -0
  126. package/build/types/common/closeButton/CloseButton.d.ts +1 -0
  127. package/build/types/common/closeButton/CloseButton.d.ts.map +1 -0
  128. package/build/types/common/closeButton/CloseButton.messages.d.ts +1 -0
  129. package/build/types/common/closeButton/CloseButton.messages.d.ts.map +1 -0
  130. package/build/types/common/closeButton/index.d.ts +1 -0
  131. package/build/types/common/closeButton/index.d.ts.map +1 -0
  132. package/build/types/common/commonProps.d.ts +1 -0
  133. package/build/types/common/commonProps.d.ts.map +1 -0
  134. package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts +1 -0
  135. package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts.map +1 -0
  136. package/build/types/common/dateUtils/getDayNames/index.d.ts +1 -0
  137. package/build/types/common/dateUtils/getDayNames/index.d.ts.map +1 -0
  138. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +1 -0
  139. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -0
  140. package/build/types/common/dateUtils/getMonthNames/index.d.ts +1 -0
  141. package/build/types/common/dateUtils/getMonthNames/index.d.ts.map +1 -0
  142. package/build/types/common/dateUtils/index.d.ts +1 -0
  143. package/build/types/common/dateUtils/index.d.ts.map +1 -0
  144. package/build/types/common/dateUtils/isDateValid/index.d.ts +1 -0
  145. package/build/types/common/dateUtils/isDateValid/index.d.ts.map +1 -0
  146. package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts +1 -0
  147. package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -0
  148. package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts +1 -0
  149. package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +1 -0
  150. package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +1 -0
  151. package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -0
  152. package/build/types/common/dateUtils/isWithinRange/index.d.ts +1 -0
  153. package/build/types/common/dateUtils/isWithinRange/index.d.ts.map +1 -0
  154. package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +1 -0
  155. package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -0
  156. package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +1 -0
  157. package/build/types/common/dateUtils/moveToWithinRange/index.d.ts.map +1 -0
  158. package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +1 -0
  159. package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -0
  160. package/build/types/common/deviceDetection/deviceDetection.d.ts +1 -0
  161. package/build/types/common/deviceDetection/deviceDetection.d.ts.map +1 -0
  162. package/build/types/common/deviceDetection/index.d.ts +1 -0
  163. package/build/types/common/deviceDetection/index.d.ts.map +1 -0
  164. package/build/types/common/direction.d.ts +1 -0
  165. package/build/types/common/direction.d.ts.map +1 -0
  166. package/build/types/common/domHelpers/documentIosClick.d.ts +1 -0
  167. package/build/types/common/domHelpers/documentIosClick.d.ts.map +1 -0
  168. package/build/types/common/domHelpers/index.d.ts +1 -0
  169. package/build/types/common/domHelpers/index.d.ts.map +1 -0
  170. package/build/types/common/fileType.d.ts +1 -0
  171. package/build/types/common/fileType.d.ts.map +1 -0
  172. package/build/types/common/flowHeader/FlowHeader.d.ts +1 -0
  173. package/build/types/common/flowHeader/FlowHeader.d.ts.map +1 -0
  174. package/build/types/common/focusBoundary/FocusBoundary.d.ts +2 -1
  175. package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -0
  176. package/build/types/common/focusBoundary/index.d.ts +1 -0
  177. package/build/types/common/focusBoundary/index.d.ts.map +1 -0
  178. package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts +1 -0
  179. package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts.map +1 -0
  180. package/build/types/common/focusBoundary/utils/index.d.ts +1 -0
  181. package/build/types/common/focusBoundary/utils/index.d.ts.map +1 -0
  182. package/build/types/common/focusBoundary/utils/resetFocus.d.ts +1 -0
  183. package/build/types/common/focusBoundary/utils/resetFocus.d.ts.map +1 -0
  184. package/build/types/common/historyNavigator/historyNavigator.d.ts +1 -0
  185. package/build/types/common/historyNavigator/historyNavigator.d.ts.map +1 -0
  186. package/build/types/common/historyNavigator/index.d.ts +1 -0
  187. package/build/types/common/historyNavigator/index.d.ts.map +1 -0
  188. package/build/types/common/hooks/index.d.ts +1 -0
  189. package/build/types/common/hooks/index.d.ts.map +1 -0
  190. package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts +1 -0
  191. package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts.map +1 -0
  192. package/build/types/common/hooks/useConditionalListener/index.d.ts +1 -0
  193. package/build/types/common/hooks/useConditionalListener/index.d.ts.map +1 -0
  194. package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts +1 -0
  195. package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +1 -0
  196. package/build/types/common/hooks/useDirection/index.d.ts +1 -0
  197. package/build/types/common/hooks/useDirection/index.d.ts.map +1 -0
  198. package/build/types/common/hooks/useDirection/useDirection.d.ts +1 -0
  199. package/build/types/common/hooks/useDirection/useDirection.d.ts.map +1 -0
  200. package/build/types/common/hooks/useEffectEvent.d.ts +2 -0
  201. package/build/types/common/hooks/useEffectEvent.d.ts.map +1 -0
  202. package/build/types/common/hooks/useHasIntersected/index.d.ts +1 -0
  203. package/build/types/common/hooks/useHasIntersected/index.d.ts.map +1 -0
  204. package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts +1 -0
  205. package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -0
  206. package/build/types/common/hooks/useLayout/index.d.ts +1 -0
  207. package/build/types/common/hooks/useLayout/index.d.ts.map +1 -0
  208. package/build/types/common/hooks/useLayout/useLayout.d.ts +1 -0
  209. package/build/types/common/hooks/useLayout/useLayout.d.ts.map +1 -0
  210. package/build/types/common/hooks/useResizeObserver.d.ts +3 -0
  211. package/build/types/common/hooks/useResizeObserver.d.ts.map +1 -0
  212. package/build/types/common/index.d.ts +3 -2
  213. package/build/types/common/index.d.ts.map +1 -0
  214. package/build/types/common/key.d.ts +1 -0
  215. package/build/types/common/key.d.ts.map +1 -0
  216. package/build/types/common/keyCodes.d.ts +1 -0
  217. package/build/types/common/keyCodes.d.ts.map +1 -0
  218. package/build/types/common/locale/index.d.ts +1 -0
  219. package/build/types/common/locale/index.d.ts.map +1 -0
  220. package/build/types/common/panel/Panel.d.ts +2 -1
  221. package/build/types/common/panel/Panel.d.ts.map +1 -0
  222. package/build/types/common/panel/index.d.ts +1 -0
  223. package/build/types/common/panel/index.d.ts.map +1 -0
  224. package/build/types/common/propsValues/breakpoint.d.ts +1 -0
  225. package/build/types/common/propsValues/breakpoint.d.ts.map +1 -0
  226. package/build/types/common/propsValues/control.d.ts +1 -0
  227. package/build/types/common/propsValues/control.d.ts.map +1 -0
  228. package/build/types/common/propsValues/dateMode.d.ts +1 -0
  229. package/build/types/common/propsValues/dateMode.d.ts.map +1 -0
  230. package/build/types/common/propsValues/layouts.d.ts +1 -0
  231. package/build/types/common/propsValues/layouts.d.ts.map +1 -0
  232. package/build/types/common/propsValues/markdownNodeType.d.ts +1 -0
  233. package/build/types/common/propsValues/markdownNodeType.d.ts.map +1 -0
  234. package/build/types/common/propsValues/monthFormat.d.ts +1 -0
  235. package/build/types/common/propsValues/monthFormat.d.ts.map +1 -0
  236. package/build/types/common/propsValues/position.d.ts +1 -0
  237. package/build/types/common/propsValues/position.d.ts.map +1 -0
  238. package/build/types/common/propsValues/profileType.d.ts +3 -0
  239. package/build/types/common/propsValues/profileType.d.ts.map +1 -0
  240. package/build/types/common/propsValues/scroll.d.ts +1 -0
  241. package/build/types/common/propsValues/scroll.d.ts.map +1 -0
  242. package/build/types/common/propsValues/sentiment.d.ts +2 -0
  243. package/build/types/common/propsValues/sentiment.d.ts.map +1 -0
  244. package/build/types/common/propsValues/size.d.ts +1 -0
  245. package/build/types/common/propsValues/size.d.ts.map +1 -0
  246. package/build/types/common/propsValues/status.d.ts +8 -0
  247. package/build/types/common/propsValues/status.d.ts.map +1 -0
  248. package/build/types/common/propsValues/type.d.ts +1 -0
  249. package/build/types/common/propsValues/type.d.ts.map +1 -0
  250. package/build/types/common/propsValues/typography.d.ts +1 -0
  251. package/build/types/common/propsValues/typography.d.ts.map +1 -0
  252. package/build/types/common/propsValues/variant.d.ts +1 -0
  253. package/build/types/common/propsValues/variant.d.ts.map +1 -0
  254. package/build/types/common/propsValues/width.d.ts +1 -0
  255. package/build/types/common/propsValues/width.d.ts.map +1 -0
  256. package/build/types/common/requirements.d.ts +1 -0
  257. package/build/types/common/requirements.d.ts.map +1 -0
  258. package/build/types/common/responsivePanel/ResponsivePanel.d.ts +2 -1
  259. package/build/types/common/responsivePanel/ResponsivePanel.d.ts.map +1 -0
  260. package/build/types/common/responsivePanel/index.d.ts +1 -0
  261. package/build/types/common/responsivePanel/index.d.ts.map +1 -0
  262. package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts +1 -0
  263. package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -0
  264. package/build/types/common/textFormat/formatWithPattern/index.d.ts +1 -0
  265. package/build/types/common/textFormat/formatWithPattern/index.d.ts.map +1 -0
  266. package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts +1 -0
  267. package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -0
  268. package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts +1 -0
  269. package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts.map +1 -0
  270. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts +1 -0
  271. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -0
  272. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts +1 -0
  273. package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts.map +1 -0
  274. package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts +1 -0
  275. package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -0
  276. package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts +1 -0
  277. package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts.map +1 -0
  278. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts +1 -0
  279. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -0
  280. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts +1 -0
  281. package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts.map +1 -0
  282. package/build/types/common/textFormat/index.d.ts +1 -0
  283. package/build/types/common/textFormat/index.d.ts.map +1 -0
  284. package/build/types/common/textFormat/unformatWithPattern/index.d.ts +1 -0
  285. package/build/types/common/textFormat/unformatWithPattern/index.d.ts.map +1 -0
  286. package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts +1 -0
  287. package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -0
  288. package/build/types/common/theme.d.ts +1 -0
  289. package/build/types/common/theme.d.ts.map +1 -0
  290. package/build/types/criticalBanner/CriticalCommsBanner.d.ts +2 -1
  291. package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -0
  292. package/build/types/criticalBanner/index.d.ts +1 -0
  293. package/build/types/criticalBanner/index.d.ts.map +1 -0
  294. package/build/types/dateInput/DateInput.d.ts.map +1 -0
  295. package/build/types/dateInput/DateInput.messages.d.ts +1 -0
  296. package/build/types/dateInput/DateInput.messages.d.ts.map +1 -0
  297. package/build/types/dateInput/index.d.ts +1 -0
  298. package/build/types/dateInput/index.d.ts.map +1 -0
  299. package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +1 -0
  300. package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -0
  301. package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts +1 -0
  302. package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts.map +1 -0
  303. package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts +1 -0
  304. package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts.map +1 -0
  305. package/build/types/dateInput/utils/explodeDate/index.d.ts +1 -0
  306. package/build/types/dateInput/utils/explodeDate/index.d.ts.map +1 -0
  307. package/build/types/dateInput/utils/index.d.ts +1 -0
  308. package/build/types/dateInput/utils/index.d.ts.map +1 -0
  309. package/build/types/dateLookup/DateLookup.d.ts.map +1 -0
  310. package/build/types/dateLookup/dateHeader/DateHeader.d.ts +2 -1
  311. package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -0
  312. package/build/types/dateLookup/dateHeader/index.d.ts +1 -0
  313. package/build/types/dateLookup/dateHeader/index.d.ts.map +1 -0
  314. package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts +2 -1
  315. package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts.map +1 -0
  316. package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts +1 -0
  317. package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts.map +1 -0
  318. package/build/types/dateLookup/dateTrigger/index.d.ts +1 -0
  319. package/build/types/dateLookup/dateTrigger/index.d.ts.map +1 -0
  320. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +1 -0
  321. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts.map +1 -0
  322. package/build/types/dateLookup/dayCalendar/index.d.ts +1 -0
  323. package/build/types/dateLookup/dayCalendar/index.d.ts.map +1 -0
  324. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +1 -0
  325. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +1 -0
  326. package/build/types/dateLookup/dayCalendar/table/index.d.ts +1 -0
  327. package/build/types/dateLookup/dayCalendar/table/index.d.ts.map +1 -0
  328. package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts +1 -0
  329. package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +1 -0
  330. package/build/types/dateLookup/getStartOfDay/index.d.ts +1 -0
  331. package/build/types/dateLookup/getStartOfDay/index.d.ts.map +1 -0
  332. package/build/types/dateLookup/index.d.ts +1 -0
  333. package/build/types/dateLookup/index.d.ts.map +1 -0
  334. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +1 -0
  335. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts.map +1 -0
  336. package/build/types/dateLookup/monthCalendar/index.d.ts +1 -0
  337. package/build/types/dateLookup/monthCalendar/index.d.ts.map +1 -0
  338. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts +2 -1
  339. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -0
  340. package/build/types/dateLookup/monthCalendar/table/index.d.ts +1 -0
  341. package/build/types/dateLookup/monthCalendar/table/index.d.ts.map +1 -0
  342. package/build/types/dateLookup/tableLink/TableLink.d.ts +2 -1
  343. package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -0
  344. package/build/types/dateLookup/tableLink/index.d.ts +1 -0
  345. package/build/types/dateLookup/tableLink/index.d.ts.map +1 -0
  346. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +2 -1
  347. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -0
  348. package/build/types/dateLookup/yearCalendar/index.d.ts +1 -0
  349. package/build/types/dateLookup/yearCalendar/index.d.ts.map +1 -0
  350. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts +2 -1
  351. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -0
  352. package/build/types/dateLookup/yearCalendar/table/index.d.ts +1 -0
  353. package/build/types/dateLookup/yearCalendar/table/index.d.ts.map +1 -0
  354. package/build/types/decision/Decision.d.ts.map +1 -0
  355. package/build/types/decision/decisionEnums.d.ts +1 -0
  356. package/build/types/decision/decisionEnums.d.ts.map +1 -0
  357. package/build/types/decision/index.d.ts +1 -0
  358. package/build/types/decision/index.d.ts.map +1 -0
  359. package/build/types/definitionList/DefinitionList.d.ts.map +1 -0
  360. package/build/types/definitionList/index.d.ts +1 -0
  361. package/build/types/definitionList/index.d.ts.map +1 -0
  362. package/build/types/dimmer/Dimmer.d.ts +3 -2
  363. package/build/types/dimmer/Dimmer.d.ts.map +1 -0
  364. package/build/types/dimmer/dimmerManager/DimmerManager.d.ts +1 -0
  365. package/build/types/dimmer/dimmerManager/DimmerManager.d.ts.map +1 -0
  366. package/build/types/dimmer/dimmerManager/index.d.ts +1 -0
  367. package/build/types/dimmer/dimmerManager/index.d.ts.map +1 -0
  368. package/build/types/dimmer/index.d.ts +1 -0
  369. package/build/types/dimmer/index.d.ts.map +1 -0
  370. package/build/types/display/Display.d.ts +2 -1
  371. package/build/types/display/Display.d.ts.map +1 -0
  372. package/build/types/display/index.d.ts +1 -0
  373. package/build/types/display/index.d.ts.map +1 -0
  374. package/build/types/drawer/Drawer.d.ts.map +1 -0
  375. package/build/types/drawer/index.d.ts +1 -0
  376. package/build/types/drawer/index.d.ts.map +1 -0
  377. package/build/types/dropFade/DropFade.d.ts +3 -2
  378. package/build/types/dropFade/DropFade.d.ts.map +1 -0
  379. package/build/types/dropFade/index.d.ts +1 -0
  380. package/build/types/dropFade/index.d.ts.map +1 -0
  381. package/build/types/dynamicFieldDefinitionList/DynamicFieldDefinitionList.d.ts.map +1 -0
  382. package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +2 -1
  383. package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts.map +1 -0
  384. package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts +1 -0
  385. package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts.map +1 -0
  386. package/build/types/dynamicFieldDefinitionList/index.d.ts +1 -0
  387. package/build/types/dynamicFieldDefinitionList/index.d.ts.map +1 -0
  388. package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts +1 -0
  389. package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts.map +1 -0
  390. package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts +1 -0
  391. package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts.map +1 -0
  392. package/build/types/emphasis/Emphasis.d.ts +1 -0
  393. package/build/types/emphasis/Emphasis.d.ts.map +1 -0
  394. package/build/types/emphasis/EmphasisHtmlTransformer.d.ts +1 -0
  395. package/build/types/emphasis/EmphasisHtmlTransformer.d.ts.map +1 -0
  396. package/build/types/emphasis/index.d.ts +1 -0
  397. package/build/types/emphasis/index.d.ts.map +1 -0
  398. package/build/types/flowNavigation/FlowNavigation.d.ts +2 -1
  399. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -0
  400. package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts +2 -1
  401. package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +1 -0
  402. package/build/types/flowNavigation/animatedLabel/index.d.ts +1 -0
  403. package/build/types/flowNavigation/animatedLabel/index.d.ts.map +1 -0
  404. package/build/types/flowNavigation/backButton/BackButton.d.ts +2 -1
  405. package/build/types/flowNavigation/backButton/BackButton.d.ts.map +1 -0
  406. package/build/types/flowNavigation/backButton/index.d.ts +1 -0
  407. package/build/types/flowNavigation/backButton/index.d.ts.map +1 -0
  408. package/build/types/header/Header.d.ts +2 -1
  409. package/build/types/header/Header.d.ts.map +1 -0
  410. package/build/types/header/index.d.ts +1 -0
  411. package/build/types/header/index.d.ts.map +1 -0
  412. package/build/types/i18n/index.d.ts +1 -0
  413. package/build/types/i18n/index.d.ts.map +1 -0
  414. package/build/types/image/Image.d.ts +17 -21
  415. package/build/types/image/Image.d.ts.map +1 -0
  416. package/build/types/image/index.d.ts +2 -1
  417. package/build/types/image/index.d.ts.map +1 -0
  418. package/build/types/index.d.ts +3 -0
  419. package/build/types/index.d.ts.map +1 -0
  420. package/build/types/info/Info.d.ts +29 -35
  421. package/build/types/info/Info.d.ts.map +1 -0
  422. package/build/types/info/index.d.ts +4 -2
  423. package/build/types/info/index.d.ts.map +1 -0
  424. package/build/types/info/infoPresentations.d.ts +1 -0
  425. package/build/types/info/infoPresentations.d.ts.map +1 -0
  426. package/build/types/inlineAlert/InlineAlert.d.ts +12 -15
  427. package/build/types/inlineAlert/InlineAlert.d.ts.map +1 -0
  428. package/build/types/inlineAlert/index.d.ts +2 -1
  429. package/build/types/inlineAlert/index.d.ts.map +1 -0
  430. package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -0
  431. package/build/types/inputWithDisplayFormat/index.d.ts +1 -0
  432. package/build/types/inputWithDisplayFormat/index.d.ts.map +1 -0
  433. package/build/types/inputs/Input.d.ts +5 -8
  434. package/build/types/inputs/Input.d.ts.map +1 -0
  435. package/build/types/inputs/InputGroup.d.ts +21 -0
  436. package/build/types/inputs/InputGroup.d.ts.map +1 -0
  437. package/build/types/inputs/TextArea.d.ts +5 -7
  438. package/build/types/inputs/TextArea.d.ts.map +1 -0
  439. package/build/types/inputs/_common.d.ts +1 -0
  440. package/build/types/inputs/_common.d.ts.map +1 -0
  441. package/build/types/instructionsList/InstructionsList.d.ts +2 -1
  442. package/build/types/instructionsList/InstructionsList.d.ts.map +1 -0
  443. package/build/types/instructionsList/index.d.ts +1 -0
  444. package/build/types/instructionsList/index.d.ts.map +1 -0
  445. package/build/types/link/Link.d.ts +3 -2
  446. package/build/types/link/Link.d.ts.map +1 -0
  447. package/build/types/link/index.d.ts +3 -1
  448. package/build/types/link/index.d.ts.map +1 -0
  449. package/build/types/listItem/ListItem.d.ts +1 -0
  450. package/build/types/listItem/ListItem.d.ts.map +1 -0
  451. package/build/types/listItem/index.d.ts +1 -0
  452. package/build/types/listItem/index.d.ts.map +1 -0
  453. package/build/types/loader/Loader.d.ts +1 -0
  454. package/build/types/loader/Loader.d.ts.map +1 -0
  455. package/build/types/loader/index.d.ts +1 -0
  456. package/build/types/loader/index.d.ts.map +1 -0
  457. package/build/types/logo/Logo.d.ts.map +1 -0
  458. package/build/types/logo/index.d.ts +1 -0
  459. package/build/types/logo/index.d.ts.map +1 -0
  460. package/build/types/logo/logoTypes.d.ts +1 -0
  461. package/build/types/logo/logoTypes.d.ts.map +1 -0
  462. package/build/types/markdown/Markdown.d.ts.map +1 -0
  463. package/build/types/markdown/index.d.ts +1 -0
  464. package/build/types/markdown/index.d.ts.map +1 -0
  465. package/build/types/modal/Modal.d.ts +2 -1
  466. package/build/types/modal/Modal.d.ts.map +1 -0
  467. package/build/types/modal/index.d.ts +1 -0
  468. package/build/types/modal/index.d.ts.map +1 -0
  469. package/build/types/money/Money.d.ts.map +1 -0
  470. package/build/types/money/index.d.ts +1 -0
  471. package/build/types/money/index.d.ts.map +1 -0
  472. package/build/types/moneyInput/MoneyInput.d.ts.map +1 -0
  473. package/build/types/moneyInput/MoneyInput.messages.d.ts +1 -0
  474. package/build/types/moneyInput/MoneyInput.messages.d.ts.map +1 -0
  475. package/build/types/moneyInput/currencyFormatting.d.ts +1 -0
  476. package/build/types/moneyInput/currencyFormatting.d.ts.map +1 -0
  477. package/build/types/moneyInput/index.d.ts +1 -0
  478. package/build/types/moneyInput/index.d.ts.map +1 -0
  479. package/build/types/navigationOption/NavigationOption.d.ts +1 -0
  480. package/build/types/navigationOption/NavigationOption.d.ts.map +1 -0
  481. package/build/types/navigationOption/index.d.ts +1 -0
  482. package/build/types/navigationOption/index.d.ts.map +1 -0
  483. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -0
  484. package/build/types/navigationOptionsList/index.d.ts +1 -0
  485. package/build/types/navigationOptionsList/index.d.ts.map +1 -0
  486. package/build/types/nudge/Nudge.d.ts +2 -1
  487. package/build/types/nudge/Nudge.d.ts.map +1 -0
  488. package/build/types/nudge/index.d.ts +1 -0
  489. package/build/types/nudge/index.d.ts.map +1 -0
  490. package/build/types/overlayHeader/OverlayHeader.d.ts.map +1 -0
  491. package/build/types/overlayHeader/index.d.ts +1 -0
  492. package/build/types/overlayHeader/index.d.ts.map +1 -0
  493. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -0
  494. package/build/types/phoneNumberInput/data/countries.d.ts +1 -0
  495. package/build/types/phoneNumberInput/data/countries.d.ts.map +1 -0
  496. package/build/types/phoneNumberInput/index.d.ts +1 -0
  497. package/build/types/phoneNumberInput/index.d.ts.map +1 -0
  498. package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts +1 -0
  499. package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -0
  500. package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts +1 -0
  501. package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts.map +1 -0
  502. package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts +1 -0
  503. package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -0
  504. package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts +1 -0
  505. package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts.map +1 -0
  506. package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts +1 -0
  507. package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -0
  508. package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts +1 -0
  509. package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts.map +1 -0
  510. package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts +1 -0
  511. package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -0
  512. package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts +1 -0
  513. package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -0
  514. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts +1 -0
  515. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -0
  516. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts +1 -0
  517. package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts.map +1 -0
  518. package/build/types/phoneNumberInput/utils/index.d.ts +1 -0
  519. package/build/types/phoneNumberInput/utils/index.d.ts.map +1 -0
  520. package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts +1 -0
  521. package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts.map +1 -0
  522. package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts +1 -0
  523. package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts.map +1 -0
  524. package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts +1 -0
  525. package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts.map +1 -0
  526. package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts +1 -0
  527. package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -0
  528. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts +1 -0
  529. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts.map +1 -0
  530. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts +1 -0
  531. package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -0
  532. package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts +1 -0
  533. package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -0
  534. package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts +1 -0
  535. package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -0
  536. package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts +1 -0
  537. package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts.map +1 -0
  538. package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts +1 -0
  539. package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts.map +1 -0
  540. package/build/types/popover/Popover.d.ts.map +1 -0
  541. package/build/types/popover/index.d.ts +1 -0
  542. package/build/types/popover/index.d.ts.map +1 -0
  543. package/build/types/processIndicator/ProcessIndicator.d.ts.map +1 -0
  544. package/build/types/processIndicator/index.d.ts +1 -0
  545. package/build/types/processIndicator/index.d.ts.map +1 -0
  546. package/build/types/progress/Progress.d.ts +1 -0
  547. package/build/types/progress/Progress.d.ts.map +1 -0
  548. package/build/types/progress/index.d.ts +1 -0
  549. package/build/types/progress/index.d.ts.map +1 -0
  550. package/build/types/progressBar/ProgressBar.d.ts +1 -0
  551. package/build/types/progressBar/ProgressBar.d.ts.map +1 -0
  552. package/build/types/progressBar/index.d.ts +1 -0
  553. package/build/types/progressBar/index.d.ts.map +1 -0
  554. package/build/types/promoCard/PromoCard.d.ts +1 -0
  555. package/build/types/promoCard/PromoCard.d.ts.map +1 -0
  556. package/build/types/promoCard/PromoCardContext.d.ts +1 -0
  557. package/build/types/promoCard/PromoCardContext.d.ts.map +1 -0
  558. package/build/types/promoCard/PromoCardGroup.d.ts +1 -0
  559. package/build/types/promoCard/PromoCardGroup.d.ts.map +1 -0
  560. package/build/types/promoCard/PromoCardIndicator.d.ts +1 -0
  561. package/build/types/promoCard/PromoCardIndicator.d.ts.map +1 -0
  562. package/build/types/promoCard/index.d.ts +1 -0
  563. package/build/types/promoCard/index.d.ts.map +1 -0
  564. package/build/types/provider/Provider.d.ts.map +1 -0
  565. package/build/types/provider/direction/DirectionProvider.d.ts +1 -0
  566. package/build/types/provider/direction/DirectionProvider.d.ts.map +1 -0
  567. package/build/types/provider/direction/index.d.ts +1 -0
  568. package/build/types/provider/direction/index.d.ts.map +1 -0
  569. package/build/types/provider/index.d.ts +1 -0
  570. package/build/types/provider/index.d.ts.map +1 -0
  571. package/build/types/provider/language/LanguageProvider.d.ts +1 -0
  572. package/build/types/provider/language/LanguageProvider.d.ts.map +1 -0
  573. package/build/types/provider/language/index.d.ts +1 -0
  574. package/build/types/provider/language/index.d.ts.map +1 -0
  575. package/build/types/radio/Radio.d.ts.map +1 -0
  576. package/build/types/radio/index.d.ts +1 -0
  577. package/build/types/radio/index.d.ts.map +1 -0
  578. package/build/types/radioGroup/RadioGroup.d.ts.map +1 -0
  579. package/build/types/radioGroup/index.d.ts +1 -0
  580. package/build/types/radioGroup/index.d.ts.map +1 -0
  581. package/build/types/radioOption/RadioOption.d.ts.map +1 -0
  582. package/build/types/radioOption/index.d.ts +1 -0
  583. package/build/types/radioOption/index.d.ts.map +1 -0
  584. package/build/types/section/Section.d.ts +2 -1
  585. package/build/types/section/Section.d.ts.map +1 -0
  586. package/build/types/section/index.d.ts +1 -0
  587. package/build/types/section/index.d.ts.map +1 -0
  588. package/build/types/select/Select.d.ts.map +1 -0
  589. package/build/types/select/Select.messages.d.ts +1 -0
  590. package/build/types/select/Select.messages.d.ts.map +1 -0
  591. package/build/types/select/index.d.ts +1 -0
  592. package/build/types/select/index.d.ts.map +1 -0
  593. package/build/types/select/option/Option.d.ts +2 -1
  594. package/build/types/select/option/Option.d.ts.map +1 -0
  595. package/build/types/select/option/index.d.ts +1 -0
  596. package/build/types/select/option/index.d.ts.map +1 -0
  597. package/build/types/select/searchBox/SearchBox.d.ts +2 -1
  598. package/build/types/select/searchBox/SearchBox.d.ts.map +1 -0
  599. package/build/types/select/searchBox/index.d.ts +1 -0
  600. package/build/types/select/searchBox/index.d.ts.map +1 -0
  601. package/build/types/sizeSwapper/SizeSwapper.d.ts +1 -0
  602. package/build/types/sizeSwapper/SizeSwapper.d.ts.map +1 -0
  603. package/build/types/sizeSwapper/index.d.ts +1 -0
  604. package/build/types/sizeSwapper/index.d.ts.map +1 -0
  605. package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -0
  606. package/build/types/slidingPanel/index.d.ts +1 -0
  607. package/build/types/slidingPanel/index.d.ts.map +1 -0
  608. package/build/types/snackbar/Snackbar.d.ts.map +1 -0
  609. package/build/types/snackbar/SnackbarContext.d.ts +1 -0
  610. package/build/types/snackbar/SnackbarContext.d.ts.map +1 -0
  611. package/build/types/snackbar/SnackbarProvider.d.ts.map +1 -0
  612. package/build/types/snackbar/useSnackbar.d.ts +1 -0
  613. package/build/types/snackbar/useSnackbar.d.ts.map +1 -0
  614. package/build/types/statusIcon/StatusIcon.d.ts +1 -0
  615. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -0
  616. package/build/types/statusIcon/index.d.ts +1 -0
  617. package/build/types/statusIcon/index.d.ts.map +1 -0
  618. package/build/types/stepper/Stepper.d.ts +2 -1
  619. package/build/types/stepper/Stepper.d.ts.map +1 -0
  620. package/build/types/stepper/deviceDetection.d.ts +1 -0
  621. package/build/types/stepper/deviceDetection.d.ts.map +1 -0
  622. package/build/types/sticky/Sticky.d.ts.map +1 -0
  623. package/build/types/sticky/index.d.ts +1 -0
  624. package/build/types/sticky/index.d.ts.map +1 -0
  625. package/build/types/summary/Summary.d.ts +58 -71
  626. package/build/types/summary/Summary.d.ts.map +1 -0
  627. package/build/types/summary/Summary.messages.d.ts +15 -18
  628. package/build/types/summary/Summary.messages.d.ts.map +1 -0
  629. package/build/types/summary/index.d.ts +3 -1
  630. package/build/types/summary/index.d.ts.map +1 -0
  631. package/build/types/switch/Switch.d.ts +1 -0
  632. package/build/types/switch/Switch.d.ts.map +1 -0
  633. package/build/types/switch/index.d.ts +1 -0
  634. package/build/types/switch/index.d.ts.map +1 -0
  635. package/build/types/switchOption/SwitchOption.d.ts +1 -0
  636. package/build/types/switchOption/SwitchOption.d.ts.map +1 -0
  637. package/build/types/switchOption/index.d.ts +1 -0
  638. package/build/types/switchOption/index.d.ts.map +1 -0
  639. package/build/types/tabs/Tab.d.ts +1 -0
  640. package/build/types/tabs/Tab.d.ts.map +1 -0
  641. package/build/types/tabs/TabList.d.ts +2 -1
  642. package/build/types/tabs/TabList.d.ts.map +1 -0
  643. package/build/types/tabs/TabPanel.d.ts +2 -1
  644. package/build/types/tabs/TabPanel.d.ts.map +1 -0
  645. package/build/types/tabs/Tabs.d.ts.map +1 -0
  646. package/build/types/tabs/index.d.ts +1 -0
  647. package/build/types/tabs/index.d.ts.map +1 -0
  648. package/build/types/tabs/utils.d.ts +1 -0
  649. package/build/types/tabs/utils.d.ts.map +1 -0
  650. package/build/types/test-utils/fake-data.d.ts +1 -0
  651. package/build/types/test-utils/fake-data.d.ts.map +1 -0
  652. package/build/types/test-utils/story-config.d.ts +1 -0
  653. package/build/types/test-utils/story-config.d.ts.map +1 -0
  654. package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -0
  655. package/build/types/textareaWithDisplayFormat/index.d.ts +1 -0
  656. package/build/types/textareaWithDisplayFormat/index.d.ts.map +1 -0
  657. package/build/types/tile/Tile.d.ts +2 -1
  658. package/build/types/tile/Tile.d.ts.map +1 -0
  659. package/build/types/tile/index.d.ts +1 -0
  660. package/build/types/tile/index.d.ts.map +1 -0
  661. package/build/types/title/Title.d.ts +2 -1
  662. package/build/types/title/Title.d.ts.map +1 -0
  663. package/build/types/title/index.d.ts +1 -0
  664. package/build/types/title/index.d.ts.map +1 -0
  665. package/build/types/tooltip/Tooltip.d.ts +1 -0
  666. package/build/types/tooltip/Tooltip.d.ts.map +1 -0
  667. package/build/types/tooltip/index.d.ts +1 -0
  668. package/build/types/tooltip/index.d.ts.map +1 -0
  669. package/build/types/typeahead/Typeahead.d.ts.map +1 -0
  670. package/build/types/typeahead/index.d.ts +1 -0
  671. package/build/types/typeahead/index.d.ts.map +1 -0
  672. package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts +3 -2
  673. package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts.map +1 -0
  674. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +2 -1
  675. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -0
  676. package/build/types/typeahead/util/highlight.d.ts +1 -0
  677. package/build/types/typeahead/util/highlight.d.ts.map +1 -0
  678. package/build/types/upload/Upload.d.ts.map +1 -0
  679. package/build/types/upload/Upload.messages.d.ts +1 -0
  680. package/build/types/upload/Upload.messages.d.ts.map +1 -0
  681. package/build/types/upload/index.d.ts +1 -0
  682. package/build/types/upload/index.d.ts.map +1 -0
  683. package/build/types/upload/steps/completeStep/completeStep.d.ts +2 -1
  684. package/build/types/upload/steps/completeStep/completeStep.d.ts.map +1 -0
  685. package/build/types/upload/steps/completeStep/index.d.ts +1 -0
  686. package/build/types/upload/steps/completeStep/index.d.ts.map +1 -0
  687. package/build/types/upload/steps/index.d.ts +1 -0
  688. package/build/types/upload/steps/index.d.ts.map +1 -0
  689. package/build/types/upload/steps/mediaUploadStep/index.d.ts +1 -0
  690. package/build/types/upload/steps/mediaUploadStep/index.d.ts.map +1 -0
  691. package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +2 -1
  692. package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts.map +1 -0
  693. package/build/types/upload/steps/processingStep/index.d.ts +1 -0
  694. package/build/types/upload/steps/processingStep/index.d.ts.map +1 -0
  695. package/build/types/upload/steps/processingStep/processingStep.d.ts +2 -1
  696. package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -0
  697. package/build/types/upload/steps/uploadImageStep/index.d.ts +1 -0
  698. package/build/types/upload/steps/uploadImageStep/index.d.ts.map +1 -0
  699. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +2 -1
  700. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -0
  701. package/build/types/upload/uploadSteps.d.ts +1 -0
  702. package/build/types/upload/uploadSteps.d.ts.map +1 -0
  703. package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts +1 -0
  704. package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts.map +1 -0
  705. package/build/types/upload/utils/asyncFileRead/index.d.ts +1 -0
  706. package/build/types/upload/utils/asyncFileRead/index.d.ts.map +1 -0
  707. package/build/types/upload/utils/getFileType/getFileType.d.ts +1 -0
  708. package/build/types/upload/utils/getFileType/getFileType.d.ts.map +1 -0
  709. package/build/types/upload/utils/getFileType/index.d.ts +1 -0
  710. package/build/types/upload/utils/getFileType/index.d.ts.map +1 -0
  711. package/build/types/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.d.ts +1 -0
  712. package/build/types/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.d.ts.map +1 -0
  713. package/build/types/upload/utils/getSupportedSpotMimeTypes/index.d.ts +1 -0
  714. package/build/types/upload/utils/getSupportedSpotMimeTypes/index.d.ts.map +1 -0
  715. package/build/types/upload/utils/index.d.ts +1 -0
  716. package/build/types/upload/utils/index.d.ts.map +1 -0
  717. package/build/types/upload/utils/isSizeValid/index.d.ts +1 -0
  718. package/build/types/upload/utils/isSizeValid/index.d.ts.map +1 -0
  719. package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts +1 -0
  720. package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts.map +1 -0
  721. package/build/types/upload/utils/isTypeValid/index.d.ts +1 -0
  722. package/build/types/upload/utils/isTypeValid/index.d.ts.map +1 -0
  723. package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts +1 -0
  724. package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts.map +1 -0
  725. package/build/types/upload/utils/postData/index.d.ts +1 -0
  726. package/build/types/upload/utils/postData/index.d.ts.map +1 -0
  727. package/build/types/upload/utils/postData/postData.d.ts +1 -0
  728. package/build/types/upload/utils/postData/postData.d.ts.map +1 -0
  729. package/build/types/upload/utils/requestMedia/index.d.ts +1 -0
  730. package/build/types/upload/utils/requestMedia/index.d.ts.map +1 -0
  731. package/build/types/upload/utils/requestMedia/requestMedia.d.ts +1 -0
  732. package/build/types/upload/utils/requestMedia/requestMedia.d.ts.map +1 -0
  733. package/build/types/uploadInput/UploadInput.d.ts +1 -0
  734. package/build/types/uploadInput/UploadInput.d.ts.map +1 -0
  735. package/build/types/uploadInput/UploadInput.messages.d.ts +1 -0
  736. package/build/types/uploadInput/UploadInput.messages.d.ts.map +1 -0
  737. package/build/types/uploadInput/index.d.ts +1 -0
  738. package/build/types/uploadInput/index.d.ts.map +1 -0
  739. package/build/types/uploadInput/types.d.ts +1 -0
  740. package/build/types/uploadInput/types.d.ts.map +1 -0
  741. package/build/types/uploadInput/uploadButton/UploadButton.d.ts +2 -1
  742. package/build/types/uploadInput/uploadButton/UploadButton.d.ts.map +1 -0
  743. package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts +1 -0
  744. package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts.map +1 -0
  745. package/build/types/uploadInput/uploadButton/defaults.d.ts +1 -0
  746. package/build/types/uploadInput/uploadButton/defaults.d.ts.map +1 -0
  747. package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts +1 -0
  748. package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -0
  749. package/build/types/uploadInput/uploadItem/UploadItem.d.ts +2 -1
  750. package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -0
  751. package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts +1 -0
  752. package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts.map +1 -0
  753. package/build/types/uploadInput/uploadItem/UploadItemBody.d.ts +2 -1
  754. package/build/types/uploadInput/uploadItem/UploadItemBody.d.ts.map +1 -0
  755. package/build/types/utilities/cssValueWithUnit.d.ts +2 -0
  756. package/build/types/utilities/cssValueWithUnit.d.ts.map +1 -0
  757. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts +1 -0
  758. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -0
  759. package/build/types/utilities/deprecatedProperty/index.d.ts +1 -0
  760. package/build/types/utilities/deprecatedProperty/index.d.ts.map +1 -0
  761. package/build/types/utilities/index.d.ts +1 -0
  762. package/build/types/utilities/index.d.ts.map +1 -0
  763. package/build/types/utilities/logActionRequired.d.ts +1 -0
  764. package/build/types/utilities/logActionRequired.d.ts.map +1 -0
  765. package/build/types/utils.d.ts +1 -0
  766. package/build/types/utils.d.ts.map +1 -0
  767. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +1 -0
  768. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -0
  769. package/build/types/withDisplayFormat/index.d.ts +1 -0
  770. package/build/types/withDisplayFormat/index.d.ts.map +1 -0
  771. package/build/types/withNextPortal/withNextPortal.d.ts +1 -0
  772. package/build/types/withNextPortal/withNextPortal.d.ts.map +1 -0
  773. package/package.json +37 -35
  774. package/src/accordion/Accordion.css +1 -0
  775. package/src/accordion/Accordion.less +81 -0
  776. package/src/accordion/Accordion.spec.js +76 -0
  777. package/src/accordion/Accordion.story.tsx +123 -0
  778. package/src/accordion/Accordion.tsx +98 -0
  779. package/src/accordion/AccordionItem/AccordionItem.spec.js +51 -0
  780. package/src/accordion/AccordionItem/AccordionItem.tsx +110 -0
  781. package/src/accordion/AccordionItem/__snapshots__/AccordionItem.spec.js.snap +102 -0
  782. package/src/accordion/AccordionItem/index.ts +2 -0
  783. package/src/accordion/__snapshots__/Accordion.spec.js.snap +3 -0
  784. package/src/accordion/index.ts +1 -0
  785. package/src/actionButton/ActionButton.css +1 -0
  786. package/src/actionButton/ActionButton.less +46 -0
  787. package/src/actionButton/ActionButton.spec.tsx +83 -0
  788. package/src/actionButton/ActionButton.story.tsx +52 -0
  789. package/src/actionButton/ActionButton.tsx +45 -0
  790. package/src/actionButton/__snapshots__/ActionButton.spec.tsx.snap +12 -0
  791. package/src/actionButton/index.ts +2 -0
  792. package/src/actionOption/ActionOption.spec.js +99 -0
  793. package/src/actionOption/ActionOption.story.tsx +50 -0
  794. package/src/actionOption/ActionOption.tsx +79 -0
  795. package/src/actionOption/index.ts +1 -0
  796. package/src/alert/Alert.js +194 -0
  797. package/src/alert/Alert.spec.js +444 -0
  798. package/src/alert/Alert.story.tsx +95 -0
  799. package/src/alert/index.js +1 -0
  800. package/src/alert/inlineMarkdown/InlineMarkdown.js +21 -0
  801. package/src/alert/inlineMarkdown/index.js +1 -0
  802. package/src/alert/withArrow/alertArrowPositions.ts +9 -0
  803. package/src/alert/withArrow/index.js +2 -0
  804. package/src/alert/withArrow/withArrow.js +50 -0
  805. package/src/alert/withArrow/withArrow.spec.js +51 -0
  806. package/src/avatar/Avatar.css +1 -0
  807. package/src/avatar/Avatar.less +158 -0
  808. package/src/avatar/Avatar.spec.js +51 -0
  809. package/src/avatar/Avatar.story.tsx +227 -0
  810. package/src/avatar/Avatar.tsx +85 -0
  811. package/src/avatar/avatarTypes.ts +7 -0
  812. package/src/avatar/colors/colors.ts +36 -0
  813. package/src/avatar/colors/index.ts +1 -0
  814. package/src/avatar/index.ts +3 -0
  815. package/src/avatarWrapper/AvatarWrapper.spec.tsx +105 -0
  816. package/src/avatarWrapper/AvatarWrapper.story.tsx +101 -0
  817. package/src/avatarWrapper/AvatarWrapper.tsx +119 -0
  818. package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.tsx.snap +212 -0
  819. package/src/avatarWrapper/index.ts +3 -0
  820. package/src/badge/Badge.css +1 -0
  821. package/src/badge/Badge.less +94 -0
  822. package/src/badge/Badge.spec.js +36 -0
  823. package/src/badge/Badge.story.js +68 -0
  824. package/src/badge/Badge.tsx +46 -0
  825. package/src/badge/index.ts +2 -0
  826. package/src/body/Body.spec.tsx +44 -0
  827. package/src/body/Body.story.tsx +105 -0
  828. package/src/body/Body.tsx +46 -0
  829. package/src/body/index.ts +1 -0
  830. package/src/button/Button.css +1 -0
  831. package/src/button/Button.less +18 -0
  832. package/src/button/Button.spec.js +199 -0
  833. package/src/button/Button.story.tsx +123 -0
  834. package/src/button/Button.tsx +123 -0
  835. package/src/button/__snapshots__/Button.spec.js.snap +258 -0
  836. package/src/button/classMap.js +13 -0
  837. package/src/button/index.ts +3 -0
  838. package/src/button/legacyUtils/index.js +1 -0
  839. package/src/button/legacyUtils/legacyUtils.js +54 -0
  840. package/src/button/legacyUtils/legacyUtils.spec.js +103 -0
  841. package/src/card/Card.css +1 -0
  842. package/src/card/Card.js +88 -0
  843. package/src/card/Card.less +101 -0
  844. package/src/card/Card.spec.js +123 -0
  845. package/src/card/Card.story.js +63 -0
  846. package/src/card/index.js +1 -0
  847. package/src/checkbox/Checkbox.js +91 -0
  848. package/src/checkbox/Checkbox.spec.js +123 -0
  849. package/src/checkbox/Checkbox.story.tsx +39 -0
  850. package/src/checkbox/__snapshots__/Checkbox.spec.js.snap +37 -0
  851. package/src/checkbox/index.js +3 -0
  852. package/src/checkboxButton/CheckboxButton.css +1 -0
  853. package/src/checkboxButton/CheckboxButton.less +29 -0
  854. package/src/checkboxButton/CheckboxButton.spec.tsx +43 -0
  855. package/src/checkboxButton/CheckboxButton.story.tsx +31 -0
  856. package/src/checkboxButton/CheckboxButton.tsx +24 -0
  857. package/src/checkboxButton/index.js +1 -0
  858. package/src/checkboxOption/CheckboxOption.spec.tsx +76 -0
  859. package/src/checkboxOption/CheckboxOption.story.tsx +75 -0
  860. package/src/checkboxOption/CheckboxOption.tsx +38 -0
  861. package/src/checkboxOption/index.ts +1 -0
  862. package/src/chevron/Chevron.js +67 -0
  863. package/src/chevron/Chevron.spec.js +54 -0
  864. package/src/chevron/Chevron.story.tsx +32 -0
  865. package/src/chevron/__mocks__/index.js +7 -0
  866. package/src/chevron/__snapshots__/Chevron.spec.js.snap +24 -0
  867. package/src/chevron/index.js +1 -0
  868. package/src/chips/Chip.css +1 -0
  869. package/src/chips/Chip.less +193 -0
  870. package/src/chips/Chip.tsx +91 -0
  871. package/src/chips/Chips.messages.ts +9 -0
  872. package/src/chips/Chips.spec.tsx +96 -0
  873. package/src/chips/Chips.story.tsx +111 -0
  874. package/src/chips/Chips.tsx +90 -0
  875. package/src/chips/__snapshots__/Chips.spec.tsx.snap +149 -0
  876. package/src/chips/index.ts +2 -0
  877. package/src/circularButton/CircularButton.css +1 -0
  878. package/src/circularButton/CircularButton.js +57 -0
  879. package/src/circularButton/CircularButton.less +126 -0
  880. package/src/circularButton/CircularButton.spec.js +103 -0
  881. package/src/circularButton/CircularButton.story.js +97 -0
  882. package/src/circularButton/__snapshots__/CircularButton.spec.js.snap +371 -0
  883. package/src/circularButton/_button-label-states.less +34 -0
  884. package/src/circularButton/index.js +1 -0
  885. package/src/common/DOMOperations/DOMOperations.js +20 -0
  886. package/src/common/DOMOperations/DOMOperations.spec.js +31 -0
  887. package/src/common/DOMOperations/index.js +3 -0
  888. package/src/common/Option/Option.css +1 -0
  889. package/src/common/Option/Option.less +97 -0
  890. package/src/common/Option/Option.spec.js +129 -0
  891. package/src/common/Option/Option.tsx +104 -0
  892. package/src/common/Option/index.ts +1 -0
  893. package/src/common/RadioButton/RadioButton.css +1 -0
  894. package/src/common/RadioButton/RadioButton.js +41 -0
  895. package/src/common/RadioButton/RadioButton.less +3 -0
  896. package/src/common/RadioButton/RadioButton.spec.js +36 -0
  897. package/src/common/RadioButton/__snapshots__/RadioButton.spec.js.snap +58 -0
  898. package/src/common/RadioButton/index.js +1 -0
  899. package/src/common/bottomSheet/BottomSheet.css +1 -0
  900. package/src/common/bottomSheet/BottomSheet.less +58 -0
  901. package/src/common/bottomSheet/BottomSheet.spec.tsx +23 -0
  902. package/src/common/bottomSheet/BottomSheet.story.tsx +107 -0
  903. package/src/common/bottomSheet/BottomSheet.tsx +202 -0
  904. package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +69 -0
  905. package/src/common/bottomSheet/index.js +1 -0
  906. package/src/common/captcha.png +0 -0
  907. package/src/common/card/Card.css +1 -0
  908. package/src/common/card/Card.less +53 -0
  909. package/src/common/card/Card.spec.tsx +97 -0
  910. package/src/common/card/Card.story.tsx +27 -0
  911. package/src/common/card/Card.tsx +91 -0
  912. package/src/common/card/__snapshots__/Card.spec.tsx.snap +10 -0
  913. package/src/common/card/index.ts +1 -0
  914. package/src/common/closeButton/CloseButton.css +1 -0
  915. package/src/common/closeButton/CloseButton.less +54 -0
  916. package/src/common/closeButton/CloseButton.messages.js +9 -0
  917. package/src/common/closeButton/CloseButton.spec.js +14 -0
  918. package/src/common/closeButton/CloseButton.tsx +59 -0
  919. package/src/common/closeButton/__snapshots__/CloseButton.spec.js.snap +30 -0
  920. package/src/common/closeButton/index.ts +2 -0
  921. package/src/common/commonProps.ts +23 -0
  922. package/src/common/dateUtils/getDayNames/getDayNames.js +11 -0
  923. package/src/common/dateUtils/getDayNames/getDayNames.spec.js +17 -0
  924. package/src/common/dateUtils/getDayNames/index.js +1 -0
  925. package/src/common/dateUtils/getMonthNames/getMonthNames.js +13 -0
  926. package/src/common/dateUtils/getMonthNames/getMonthNames.spec.js +17 -0
  927. package/src/common/dateUtils/getMonthNames/index.js +1 -0
  928. package/src/common/dateUtils/index.js +6 -0
  929. package/src/common/dateUtils/isDateValid/index.js +1 -0
  930. package/src/common/dateUtils/isDateValid/isDateValid.js +6 -0
  931. package/src/common/dateUtils/isDateValid/isDateValid.spec.js +11 -0
  932. package/src/common/dateUtils/isMonthAndYearFormat/index.js +1 -0
  933. package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +4 -0
  934. package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.spec.js +15 -0
  935. package/src/common/dateUtils/isWithinRange/index.js +1 -0
  936. package/src/common/dateUtils/isWithinRange/isWithinRange.js +3 -0
  937. package/src/common/dateUtils/isWithinRange/isWithinRange.spec.js +41 -0
  938. package/src/common/dateUtils/moveToWithinRange/index.js +1 -0
  939. package/src/common/dateUtils/moveToWithinRange/moveToWithinRange.js +6 -0
  940. package/src/common/dateUtils/moveToWithinRange/moveToWithinRange.spec.js +36 -0
  941. package/src/common/deviceDetection/deviceDetection.js +7 -0
  942. package/src/common/deviceDetection/deviceDetection.spec.js +45 -0
  943. package/src/common/deviceDetection/index.js +1 -0
  944. package/src/common/direction.ts +7 -0
  945. package/src/common/domHelpers/documentIosClick.js +19 -0
  946. package/src/common/domHelpers/documentIosClick.spec.js +50 -0
  947. package/src/common/domHelpers/index.ts +27 -0
  948. package/src/common/fakeEvents.js +15 -0
  949. package/src/common/fileType.ts +6 -0
  950. package/src/common/flowHeader/FlowHeader.spec.js +22 -0
  951. package/src/common/flowHeader/FlowHeader.tsx +73 -0
  952. package/src/common/flowHeader/__snapshots__/FlowHeader.spec.js.snap +49 -0
  953. package/src/common/focusBoundary/FocusBoundary.spec.tsx +66 -0
  954. package/src/common/focusBoundary/FocusBoundary.tsx +46 -0
  955. package/src/common/focusBoundary/__snapshots__/FocusBoundary.spec.tsx.snap +16 -0
  956. package/src/common/focusBoundary/index.js +1 -0
  957. package/src/common/focusBoundary/utils/getFocusableElements.js +25 -0
  958. package/src/common/focusBoundary/utils/getFocusableElements.spec.js +51 -0
  959. package/src/common/focusBoundary/utils/index.js +2 -0
  960. package/src/common/focusBoundary/utils/resetFocus.js +23 -0
  961. package/src/common/focusBoundary/utils/resetFocus.spec.js +103 -0
  962. package/src/common/historyNavigator/historyNavigator.js +37 -0
  963. package/src/common/historyNavigator/historyNavigator.spec.js +43 -0
  964. package/src/common/historyNavigator/index.js +1 -0
  965. package/src/common/hooks/index.js +5 -0
  966. package/src/common/hooks/useClientWidth/useClientWidth.spec.js +77 -0
  967. package/src/common/hooks/useClientWidth/useClientWidth.tsx +47 -0
  968. package/src/common/hooks/useConditionalListener/index.js +1 -0
  969. package/src/common/hooks/useConditionalListener/useConditionalListener.spec.js +68 -0
  970. package/src/common/hooks/useConditionalListener/useConditionalListener.ts +25 -0
  971. package/src/common/hooks/useDirection/index.js +1 -0
  972. package/src/common/hooks/useDirection/useDirection.spec.js +21 -0
  973. package/src/common/hooks/useDirection/useDirection.ts +12 -0
  974. package/src/common/hooks/useEffectEvent.ts +22 -0
  975. package/src/common/hooks/useHasIntersected/index.js +1 -0
  976. package/src/common/hooks/useHasIntersected/useHasIntersected.js +60 -0
  977. package/src/common/hooks/useHasIntersected/useHasIntersected.spec.js +119 -0
  978. package/src/common/hooks/useLayout/index.ts +1 -0
  979. package/src/common/hooks/useLayout/useLayout.ts +57 -0
  980. package/src/common/hooks/useResizeObserver.ts +22 -0
  981. package/src/common/index.js +26 -0
  982. package/src/common/key.js +8 -0
  983. package/src/common/keyCodes.js +19 -0
  984. package/src/common/locale/index.js +130 -0
  985. package/src/common/locale/index.spec.js +127 -0
  986. package/src/common/panel/Panel.css +1 -0
  987. package/src/common/panel/Panel.less +94 -0
  988. package/src/common/panel/Panel.spec.js +80 -0
  989. package/src/common/panel/Panel.tsx +145 -0
  990. package/src/common/panel/__snapshots__/Panel.spec.js.snap +3 -0
  991. package/src/common/panel/index.js +1 -0
  992. package/src/common/propsValues/breakpoint.ts +7 -0
  993. package/src/common/propsValues/control.ts +19 -0
  994. package/src/common/propsValues/dateMode.ts +4 -0
  995. package/src/common/propsValues/layouts.ts +9 -0
  996. package/src/common/propsValues/markdownNodeType.ts +18 -0
  997. package/src/common/propsValues/monthFormat.ts +4 -0
  998. package/src/common/propsValues/position.ts +17 -0
  999. package/src/common/propsValues/profileType.ts +7 -0
  1000. package/src/common/propsValues/scroll.ts +7 -0
  1001. package/src/common/propsValues/sentiment.ts +30 -0
  1002. package/src/common/propsValues/size.ts +13 -0
  1003. package/src/common/propsValues/status.ts +17 -0
  1004. package/src/common/propsValues/type.ts +14 -0
  1005. package/src/common/propsValues/typography.ts +73 -0
  1006. package/src/common/propsValues/variant.ts +4 -0
  1007. package/src/common/propsValues/width.ts +4 -0
  1008. package/src/common/requirements.js +440 -0
  1009. package/src/common/responsivePanel/ResponsivePanel.spec.js +75 -0
  1010. package/src/common/responsivePanel/ResponsivePanel.tsx +52 -0
  1011. package/src/common/responsivePanel/__snapshots__/ResponsivePanel.spec.js.snap +21 -0
  1012. package/src/common/responsivePanel/index.js +1 -0
  1013. package/src/common/textFormat/formatWithPattern/formatWithPattern.js +25 -0
  1014. package/src/common/textFormat/formatWithPattern/formatWithPattern.spec.js +45 -0
  1015. package/src/common/textFormat/formatWithPattern/index.js +1 -0
  1016. package/src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +8 -0
  1017. package/src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.spec.js +51 -0
  1018. package/src/common/textFormat/getCountOfSymbolsInSelection/index.js +1 -0
  1019. package/src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +41 -0
  1020. package/src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.spec.js +134 -0
  1021. package/src/common/textFormat/getCursorPositionAfterKeystroke/index.js +1 -0
  1022. package/src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +31 -0
  1023. package/src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.spec.js +36 -0
  1024. package/src/common/textFormat/getDistanceToSymbol/index.js +1 -0
  1025. package/src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +13 -0
  1026. package/src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.spec.js +13 -0
  1027. package/src/common/textFormat/getSymbolsInPatternWithPosition/index.js +1 -0
  1028. package/src/common/textFormat/index.js +7 -0
  1029. package/src/common/textFormat/unformatWithPattern/index.js +1 -0
  1030. package/src/common/textFormat/unformatWithPattern/unformatWithPattern.js +13 -0
  1031. package/src/common/textFormat/unformatWithPattern/unformatWithPattern.spec.js +28 -0
  1032. package/src/common/theme.ts +35 -0
  1033. package/src/criticalBanner/CriticalCommsBanner.css +1 -0
  1034. package/src/criticalBanner/CriticalCommsBanner.less +78 -0
  1035. package/src/criticalBanner/CriticalCommsBanner.story.tsx +19 -0
  1036. package/src/criticalBanner/CriticalCommsBanner.tsx +70 -0
  1037. package/src/criticalBanner/index.ts +1 -0
  1038. package/src/dateInput/DateInput.css +1 -0
  1039. package/src/dateInput/DateInput.js +331 -0
  1040. package/src/dateInput/DateInput.less +5 -0
  1041. package/src/dateInput/DateInput.messages.js +16 -0
  1042. package/src/dateInput/DateInput.spec.js +620 -0
  1043. package/src/dateInput/DateInput.story.tsx +41 -0
  1044. package/src/dateInput/README.md +25 -0
  1045. package/src/dateInput/index.js +3 -0
  1046. package/src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +5 -0
  1047. package/src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.spec.js +23 -0
  1048. package/src/dateInput/utils/convertToLocalMidnight/index.js +1 -0
  1049. package/src/dateInput/utils/explodeDate/explodeDate.js +7 -0
  1050. package/src/dateInput/utils/explodeDate/explodeDate.spec.js +11 -0
  1051. package/src/dateInput/utils/explodeDate/index.js +1 -0
  1052. package/src/dateInput/utils/index.js +2 -0
  1053. package/src/dateLookup/DateLookup.css +1 -0
  1054. package/src/dateLookup/DateLookup.js +279 -0
  1055. package/src/dateLookup/DateLookup.keyboardEvents.spec.js +166 -0
  1056. package/src/dateLookup/DateLookup.less +99 -0
  1057. package/src/dateLookup/DateLookup.state.spec.js +69 -0
  1058. package/src/dateLookup/DateLookup.story.js +81 -0
  1059. package/src/dateLookup/DateLookup.testingLibrary.spec.js +156 -0
  1060. package/src/dateLookup/DateLookup.view.spec.js +142 -0
  1061. package/src/dateLookup/EXAMPLES.md +63 -0
  1062. package/src/dateLookup/dateHeader/DateHeader.js +48 -0
  1063. package/src/dateLookup/dateHeader/DateHeader.spec.js +56 -0
  1064. package/src/dateLookup/dateHeader/index.js +1 -0
  1065. package/src/dateLookup/dateTrigger/DateTrigger.css +1 -0
  1066. package/src/dateLookup/dateTrigger/DateTrigger.js +98 -0
  1067. package/src/dateLookup/dateTrigger/DateTrigger.less +59 -0
  1068. package/src/dateLookup/dateTrigger/DateTrigger.messages.js +9 -0
  1069. package/src/dateLookup/dateTrigger/DateTrigger.spec.js +136 -0
  1070. package/src/dateLookup/dateTrigger/index.js +1 -0
  1071. package/src/dateLookup/dayCalendar/DayCalendar.js +75 -0
  1072. package/src/dateLookup/dayCalendar/DayCalendar.spec.js +116 -0
  1073. package/src/dateLookup/dayCalendar/index.js +1 -0
  1074. package/src/dateLookup/dayCalendar/table/DayCalendarTable.js +135 -0
  1075. package/src/dateLookup/dayCalendar/table/DayCalendarTable.spec.js +121 -0
  1076. package/src/dateLookup/dayCalendar/table/index.js +1 -0
  1077. package/src/dateLookup/getStartOfDay/getStartOfDay.js +10 -0
  1078. package/src/dateLookup/getStartOfDay/getStartOfDay.spec.js +52 -0
  1079. package/src/dateLookup/getStartOfDay/index.js +1 -0
  1080. package/src/dateLookup/index.js +1 -0
  1081. package/src/dateLookup/monthCalendar/MonthCalendar.js +68 -0
  1082. package/src/dateLookup/monthCalendar/MonthCalendar.spec.js +99 -0
  1083. package/src/dateLookup/monthCalendar/index.js +1 -0
  1084. package/src/dateLookup/monthCalendar/table/MonthCalendarTable.js +76 -0
  1085. package/src/dateLookup/monthCalendar/table/MonthCalendarTable.spec.js +88 -0
  1086. package/src/dateLookup/monthCalendar/table/index.js +1 -0
  1087. package/src/dateLookup/tableLink/TableLink.js +48 -0
  1088. package/src/dateLookup/tableLink/TableLink.spec.js +56 -0
  1089. package/src/dateLookup/tableLink/index.js +1 -0
  1090. package/src/dateLookup/yearCalendar/YearCalendar.js +52 -0
  1091. package/src/dateLookup/yearCalendar/YearCalendar.spec.js +75 -0
  1092. package/src/dateLookup/yearCalendar/index.js +1 -0
  1093. package/src/dateLookup/yearCalendar/table/YearCalendarTable.js +62 -0
  1094. package/src/dateLookup/yearCalendar/table/YearCalendarTable.spec.js +96 -0
  1095. package/src/dateLookup/yearCalendar/table/index.js +1 -0
  1096. package/src/decision/Decision.css +1 -0
  1097. package/src/decision/Decision.js +148 -0
  1098. package/src/decision/Decision.less +60 -0
  1099. package/src/decision/Decision.spec.js +136 -0
  1100. package/src/decision/Decision.story.js +253 -0
  1101. package/src/decision/decisionEnums.ts +11 -0
  1102. package/src/decision/index.js +2 -0
  1103. package/src/definitionList/DefinitionList.css +1 -0
  1104. package/src/definitionList/DefinitionList.js +100 -0
  1105. package/src/definitionList/DefinitionList.less +62 -0
  1106. package/src/definitionList/DefinitionList.spec.js +91 -0
  1107. package/src/definitionList/DefinitionList.story.js +69 -0
  1108. package/src/definitionList/index.js +1 -0
  1109. package/src/dimmer/Dimmer.css +1 -0
  1110. package/src/dimmer/Dimmer.less +98 -0
  1111. package/src/dimmer/Dimmer.rtl.spec.js +152 -0
  1112. package/src/dimmer/Dimmer.spec.js +83 -0
  1113. package/src/dimmer/Dimmer.story.tsx +38 -0
  1114. package/src/dimmer/Dimmer.tsx +219 -0
  1115. package/src/dimmer/dimmerManager/DimmerManager.ts +37 -0
  1116. package/src/dimmer/dimmerManager/index.ts +1 -0
  1117. package/src/dimmer/index.js +1 -0
  1118. package/src/display/Display.story.tsx +121 -0
  1119. package/src/display/Display.tsx +27 -0
  1120. package/src/display/index.ts +1 -0
  1121. package/src/drawer/Drawer.css +1 -0
  1122. package/src/drawer/Drawer.js +66 -0
  1123. package/src/drawer/Drawer.less +102 -0
  1124. package/src/drawer/Drawer.rtl.spec.js +55 -0
  1125. package/src/drawer/Drawer.spec.js +80 -0
  1126. package/src/drawer/Drawer.story.js +83 -0
  1127. package/src/drawer/__snapshots__/Drawer.rtl.spec.js.snap +54 -0
  1128. package/src/drawer/index.js +1 -0
  1129. package/src/dropFade/DropFade.css +1 -0
  1130. package/src/dropFade/DropFade.less +22 -0
  1131. package/src/dropFade/DropFade.story.tsx +43 -0
  1132. package/src/dropFade/DropFade.tsx +37 -0
  1133. package/src/dropFade/index.ts +1 -0
  1134. package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +41 -0
  1135. package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.spec.js +21 -0
  1136. package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.story.js +134 -0
  1137. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +1 -0
  1138. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +73 -0
  1139. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.less +4 -0
  1140. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.spec.js +200 -0
  1141. package/src/dynamicFieldDefinitionList/FormattedValue/index.js +1 -0
  1142. package/src/dynamicFieldDefinitionList/index.js +1 -0
  1143. package/src/dynamicFieldDefinitionList/utils/createDefinitions.js +33 -0
  1144. package/src/dynamicFieldDefinitionList/utils/createDefinitions.spec.js +83 -0
  1145. package/src/dynamicFieldDefinitionList/utils/text-format.js +46 -0
  1146. package/src/dynamicFieldDefinitionList/utils/text-format.spec.js +43 -0
  1147. package/src/emphasis/Emphasis.css +1 -0
  1148. package/src/emphasis/Emphasis.less +32 -0
  1149. package/src/emphasis/Emphasis.spec.js +26 -0
  1150. package/src/emphasis/Emphasis.story.tsx +22 -0
  1151. package/src/emphasis/Emphasis.tsx +22 -0
  1152. package/src/emphasis/EmphasisHtmlTransformer.spec.js +48 -0
  1153. package/src/emphasis/EmphasisHtmlTransformer.ts +56 -0
  1154. package/src/emphasis/index.ts +1 -0
  1155. package/src/flowNavigation/FlowNavigation.css +1 -0
  1156. package/src/flowNavigation/FlowNavigation.less +81 -0
  1157. package/src/flowNavigation/FlowNavigation.spec.js +205 -0
  1158. package/src/flowNavigation/FlowNavigation.story.js +397 -0
  1159. package/src/flowNavigation/FlowNavigation.tsx +110 -0
  1160. package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +230 -0
  1161. package/src/flowNavigation/animatedLabel/AnimatedLabel.css +1 -0
  1162. package/src/flowNavigation/animatedLabel/AnimatedLabel.js +36 -0
  1163. package/src/flowNavigation/animatedLabel/AnimatedLabel.less +37 -0
  1164. package/src/flowNavigation/animatedLabel/AnimatedLabel.spec.js +62 -0
  1165. package/src/flowNavigation/animatedLabel/AnimatedLabel.story.js +22 -0
  1166. package/src/flowNavigation/animatedLabel/__snapshots__/AnimatedLabel.spec.js.snap +25 -0
  1167. package/src/flowNavigation/animatedLabel/index.js +1 -0
  1168. package/src/flowNavigation/backButton/BackButton.css +1 -0
  1169. package/src/flowNavigation/backButton/BackButton.js +27 -0
  1170. package/src/flowNavigation/backButton/BackButton.less +36 -0
  1171. package/src/flowNavigation/backButton/BackButton.spec.js +15 -0
  1172. package/src/flowNavigation/backButton/__snapshots__/BackButton.spec.js.snap +30 -0
  1173. package/src/flowNavigation/backButton/index.js +3 -0
  1174. package/src/header/Header.css +1 -0
  1175. package/src/header/Header.less +22 -0
  1176. package/src/header/Header.spec.tsx +95 -0
  1177. package/src/header/Header.story.tsx +53 -0
  1178. package/src/header/Header.tsx +79 -0
  1179. package/src/header/index.ts +1 -0
  1180. package/src/i18n/index.ts +37 -0
  1181. package/src/image/Image.css +1 -0
  1182. package/src/image/Image.less +15 -0
  1183. package/src/image/Image.spec.tsx +94 -0
  1184. package/src/image/Image.story.tsx +62 -0
  1185. package/src/image/Image.tsx +65 -0
  1186. package/src/image/index.ts +1 -0
  1187. package/src/index.ts +161 -0
  1188. package/src/info/Info.css +1 -0
  1189. package/src/info/Info.less +43 -0
  1190. package/src/info/Info.spec.js +68 -0
  1191. package/src/info/Info.story.tsx +53 -0
  1192. package/src/info/Info.tsx +94 -0
  1193. package/src/info/index.ts +3 -0
  1194. package/src/info/infoPresentations.ts +5 -0
  1195. package/src/inlineAlert/InlineAlert.spec.tsx +83 -0
  1196. package/src/inlineAlert/InlineAlert.story.tsx +100 -0
  1197. package/src/inlineAlert/InlineAlert.tsx +59 -0
  1198. package/src/inlineAlert/index.ts +1 -0
  1199. package/src/inputWithDisplayFormat/InputWithDisplayFormat.js +14 -0
  1200. package/src/inputWithDisplayFormat/InputWithDisplayFormat.spec.js +34 -0
  1201. package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.js +94 -0
  1202. package/src/inputWithDisplayFormat/index.js +1 -0
  1203. package/src/inputs/Input.css +1 -0
  1204. package/src/inputs/Input.less +1 -0
  1205. package/src/inputs/Input.tsx +34 -0
  1206. package/src/inputs/InputGroup.css +1 -0
  1207. package/src/inputs/InputGroup.less +61 -0
  1208. package/src/inputs/InputGroup.story.tsx +73 -0
  1209. package/src/inputs/InputGroup.tsx +142 -0
  1210. package/src/inputs/TextArea.css +1 -0
  1211. package/src/inputs/TextArea.less +8 -0
  1212. package/src/inputs/TextArea.tsx +27 -0
  1213. package/src/inputs/_common.less +63 -0
  1214. package/src/inputs/_common.ts +21 -0
  1215. package/src/instructionsList/InstructionList.story.js +27 -0
  1216. package/src/instructionsList/InstructionsList.css +1 -0
  1217. package/src/instructionsList/InstructionsList.less +36 -0
  1218. package/src/instructionsList/InstructionsList.spec.js +29 -0
  1219. package/src/instructionsList/InstructionsList.tsx +46 -0
  1220. package/src/instructionsList/index.js +3 -0
  1221. package/src/link/Link.css +1 -0
  1222. package/src/link/Link.less +14 -0
  1223. package/src/link/Link.spec.tsx +47 -0
  1224. package/src/link/Link.story.tsx +93 -0
  1225. package/src/link/Link.tsx +47 -0
  1226. package/src/link/index.ts +2 -0
  1227. package/src/listItem/ListItem.css +1 -0
  1228. package/src/listItem/ListItem.less +7 -0
  1229. package/src/listItem/ListItem.spec.tsx +51 -0
  1230. package/src/listItem/ListItem.story.tsx +148 -0
  1231. package/src/listItem/ListItem.tsx +53 -0
  1232. package/src/listItem/index.js +1 -0
  1233. package/src/loader/Loader.css +1 -0
  1234. package/src/loader/Loader.less +332 -0
  1235. package/src/loader/Loader.spec.js +51 -0
  1236. package/src/loader/Loader.story.tsx +24 -0
  1237. package/src/loader/Loader.tsx +100 -0
  1238. package/src/loader/index.js +3 -0
  1239. package/src/logo/Logo.css +1 -0
  1240. package/src/logo/Logo.js +71 -0
  1241. package/src/logo/Logo.less +13 -0
  1242. package/src/logo/Logo.spec.js +41 -0
  1243. package/src/logo/Logo.story.tsx +28 -0
  1244. package/src/logo/__snapshots__/Logo.spec.js.snap +61 -0
  1245. package/src/logo/index.js +2 -0
  1246. package/src/logo/logoTypes.ts +5 -0
  1247. package/src/main.css +1 -0
  1248. package/src/main.less +71 -0
  1249. package/src/markdown/Markdown.js +131 -0
  1250. package/src/markdown/Markdown.spec.js +141 -0
  1251. package/src/markdown/Markdown.story.tsx +21 -0
  1252. package/src/markdown/index.js +1 -0
  1253. package/src/modal/Modal.css +1 -0
  1254. package/src/modal/Modal.less +187 -0
  1255. package/src/modal/Modal.rtl.spec.js +57 -0
  1256. package/src/modal/Modal.spec.js +177 -0
  1257. package/src/modal/Modal.story.tsx +82 -0
  1258. package/src/modal/Modal.tsx +167 -0
  1259. package/src/modal/index.ts +2 -0
  1260. package/src/money/Money.js +15 -0
  1261. package/src/money/Money.spec.js +18 -0
  1262. package/src/money/Money.story.tsx +17 -0
  1263. package/src/money/index.js +1 -0
  1264. package/src/moneyInput/MoneyInput.css +1 -0
  1265. package/src/moneyInput/MoneyInput.js +446 -0
  1266. package/src/moneyInput/MoneyInput.less +188 -0
  1267. package/src/moneyInput/MoneyInput.messages.js +8 -0
  1268. package/src/moneyInput/MoneyInput.spec.js +606 -0
  1269. package/src/moneyInput/MoneyInput.story.tsx +113 -0
  1270. package/src/moneyInput/currencyFormatting.js +81 -0
  1271. package/src/moneyInput/currencyFormatting.spec.js +44 -0
  1272. package/src/moneyInput/index.js +1 -0
  1273. package/src/navigationOption/NavigationOption.css +1 -0
  1274. package/src/navigationOption/NavigationOption.less +67 -0
  1275. package/src/navigationOption/NavigationOption.spec.js +93 -0
  1276. package/src/navigationOption/NavigationOption.story.js +281 -0
  1277. package/src/navigationOption/NavigationOption.tsx +40 -0
  1278. package/src/navigationOption/index.ts +1 -0
  1279. package/src/navigationOptionsList/NavigationOptionsList.css +1 -0
  1280. package/src/navigationOptionsList/NavigationOptionsList.js +20 -0
  1281. package/src/navigationOptionsList/NavigationOptionsList.less +12 -0
  1282. package/src/navigationOptionsList/NavigationOptionsList.spec.js +17 -0
  1283. package/src/navigationOptionsList/NavigationOptionsList.story.js +17 -0
  1284. package/src/navigationOptionsList/index.js +1 -0
  1285. package/src/nudge/Nudge.css +1 -0
  1286. package/src/nudge/Nudge.less +134 -0
  1287. package/src/nudge/Nudge.spec.tsx +126 -0
  1288. package/src/nudge/Nudge.story.tsx +106 -0
  1289. package/src/nudge/Nudge.tsx +184 -0
  1290. package/src/nudge/index.ts +1 -0
  1291. package/src/overlayHeader/OverlayHeader.css +1 -0
  1292. package/src/overlayHeader/OverlayHeader.js +40 -0
  1293. package/src/overlayHeader/OverlayHeader.less +31 -0
  1294. package/src/overlayHeader/OverlayHeader.spec.js +32 -0
  1295. package/src/overlayHeader/OverlayHeader.story.js +51 -0
  1296. package/src/overlayHeader/__snapshots__/OverlayHeader.spec.js.snap +67 -0
  1297. package/src/overlayHeader/index.js +1 -0
  1298. package/src/phoneNumberInput/PhoneNumberInput.css +1 -0
  1299. package/src/phoneNumberInput/PhoneNumberInput.js +210 -0
  1300. package/src/phoneNumberInput/PhoneNumberInput.less +20 -0
  1301. package/src/phoneNumberInput/PhoneNumberInput.spec.js +379 -0
  1302. package/src/phoneNumberInput/PhoneNumberInput.story.js +34 -0
  1303. package/src/phoneNumberInput/data/countries.js +1529 -0
  1304. package/src/phoneNumberInput/data/countries.spec.js +12 -0
  1305. package/src/phoneNumberInput/index.js +1 -0
  1306. package/src/phoneNumberInput/utils/cleanNumber/cleanNumber.js +4 -0
  1307. package/src/phoneNumberInput/utils/cleanNumber/cleanNumber.spec.js +17 -0
  1308. package/src/phoneNumberInput/utils/cleanNumber/index.js +1 -0
  1309. package/src/phoneNumberInput/utils/excludeCountries/excludeCountries.js +18 -0
  1310. package/src/phoneNumberInput/utils/excludeCountries/excludeCountries.spec.js +23 -0
  1311. package/src/phoneNumberInput/utils/excludeCountries/index.js +1 -0
  1312. package/src/phoneNumberInput/utils/explodeNumberModel/explodeNumberModel.spec.js +21 -0
  1313. package/src/phoneNumberInput/utils/explodeNumberModel/index.js +27 -0
  1314. package/src/phoneNumberInput/utils/filterOptionsForQuery/filterOptionsForQuery.spec.js +36 -0
  1315. package/src/phoneNumberInput/utils/filterOptionsForQuery/index.js +11 -0
  1316. package/src/phoneNumberInput/utils/findCountryByCode/findCountryByCode.spec.js +21 -0
  1317. package/src/phoneNumberInput/utils/findCountryByCode/index.js +10 -0
  1318. package/src/phoneNumberInput/utils/findCountryByPrefix/findCountryByPrefix.spec.js +16 -0
  1319. package/src/phoneNumberInput/utils/findCountryByPrefix/index.js +11 -0
  1320. package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +26 -0
  1321. package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.spec.js +67 -0
  1322. package/src/phoneNumberInput/utils/groupCountriesByPrefix/index.js +1 -0
  1323. package/src/phoneNumberInput/utils/index.js +13 -0
  1324. package/src/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +1 -0
  1325. package/src/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +25 -0
  1326. package/src/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.spec.js +66 -0
  1327. package/src/phoneNumberInput/utils/isStringNumeric/index.js +1 -0
  1328. package/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +1 -0
  1329. package/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.spec.js +15 -0
  1330. package/src/phoneNumberInput/utils/isValidPhoneNumber/index.js +1 -0
  1331. package/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +10 -0
  1332. package/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.spec.js +17 -0
  1333. package/src/phoneNumberInput/utils/longestMatchingPrefix/index.js +2 -0
  1334. package/src/phoneNumberInput/utils/longestMatchingPrefix/longestMatchingPrefix.spec.js +21 -0
  1335. package/src/phoneNumberInput/utils/setDefaultPrefix/index.js +25 -0
  1336. package/src/phoneNumberInput/utils/setDefaultPrefix/setDefaultPrefix.spec.js +34 -0
  1337. package/src/phoneNumberInput/utils/sortArrayByProperty/index.js +1 -0
  1338. package/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +3 -0
  1339. package/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.spec.js +56 -0
  1340. package/src/popover/Popover.css +1 -0
  1341. package/src/popover/Popover.js +97 -0
  1342. package/src/popover/Popover.less +40 -0
  1343. package/src/popover/Popover.spec.js +119 -0
  1344. package/src/popover/Popover.story.js +54 -0
  1345. package/src/popover/__snapshots__/Popover.spec.js.snap +106 -0
  1346. package/src/popover/index.js +1 -0
  1347. package/src/processIndicator/ProcessIndicator.js +117 -0
  1348. package/src/processIndicator/ProcessIndicator.spec.js +101 -0
  1349. package/src/processIndicator/ProcessIndicator.story.tsx +20 -0
  1350. package/src/processIndicator/index.js +2 -0
  1351. package/src/progress/Progress.css +1 -0
  1352. package/src/progress/Progress.less +40 -0
  1353. package/src/progress/Progress.spec.js +21 -0
  1354. package/src/progress/Progress.story.tsx +16 -0
  1355. package/src/progress/Progress.tsx +29 -0
  1356. package/src/progress/index.ts +1 -0
  1357. package/src/progressBar/ProgressBar.css +1 -0
  1358. package/src/progressBar/ProgressBar.less +14 -0
  1359. package/src/progressBar/ProgressBar.spec.js +32 -0
  1360. package/src/progressBar/ProgressBar.story.tsx +21 -0
  1361. package/src/progressBar/ProgressBar.tsx +51 -0
  1362. package/src/progressBar/index.ts +1 -0
  1363. package/src/promoCard/PromoCard.css +1 -0
  1364. package/src/promoCard/PromoCard.less +193 -0
  1365. package/src/promoCard/PromoCard.spec.tsx +160 -0
  1366. package/src/promoCard/PromoCard.story.tsx +90 -0
  1367. package/src/promoCard/PromoCard.tsx +338 -0
  1368. package/src/promoCard/PromoCardContext.spec.tsx +52 -0
  1369. package/src/promoCard/PromoCardContext.tsx +58 -0
  1370. package/src/promoCard/PromoCardGroup.spec.tsx +138 -0
  1371. package/src/promoCard/PromoCardGroup.story.tsx +82 -0
  1372. package/src/promoCard/PromoCardGroup.tsx +131 -0
  1373. package/src/promoCard/PromoCardIndicator.tsx +74 -0
  1374. package/src/promoCard/__snapshots__/PromoCard.spec.tsx.snap +39 -0
  1375. package/src/promoCard/__snapshots__/PromoCardGroup.spec.tsx.snap +78 -0
  1376. package/src/promoCard/index.ts +2 -0
  1377. package/src/provider/Provider.js +55 -0
  1378. package/src/provider/Provider.spec.tsx +99 -0
  1379. package/src/provider/Provider.story.tsx +20 -0
  1380. package/src/provider/direction/DirectionProvider.spec.tsx +31 -0
  1381. package/src/provider/direction/DirectionProvider.tsx +11 -0
  1382. package/src/provider/direction/index.js +1 -0
  1383. package/src/provider/index.js +3 -0
  1384. package/src/provider/language/LanguageProvider.spec.tsx +22 -0
  1385. package/src/provider/language/LanguageProvider.tsx +11 -0
  1386. package/src/provider/language/index.js +1 -0
  1387. package/src/radio/Radio.js +67 -0
  1388. package/src/radio/Radio.rtl.spec.js +24 -0
  1389. package/src/radio/Radio.spec.js +76 -0
  1390. package/src/radio/Radio.story.js +85 -0
  1391. package/src/radio/__snapshots__/Radio.rtl.spec.js.snap +50 -0
  1392. package/src/radio/index.js +3 -0
  1393. package/src/radioGroup/RadioGroup.js +66 -0
  1394. package/src/radioGroup/RadioGroup.spec.js +74 -0
  1395. package/src/radioGroup/RadioGroup.story.js +57 -0
  1396. package/src/radioGroup/index.js +1 -0
  1397. package/src/radioOption/RadioOption.js +81 -0
  1398. package/src/radioOption/RadioOption.spec.js +67 -0
  1399. package/src/radioOption/RadioOption.story.js +83 -0
  1400. package/src/radioOption/index.js +1 -0
  1401. package/src/section/Section.css +1 -0
  1402. package/src/section/Section.less +8 -0
  1403. package/src/section/Section.spec.tsx +11 -0
  1404. package/src/section/Section.story.tsx +117 -0
  1405. package/src/section/Section.tsx +29 -0
  1406. package/src/section/index.ts +1 -0
  1407. package/src/select/Select.css +1 -0
  1408. package/src/select/Select.js +637 -0
  1409. package/src/select/Select.less +347 -0
  1410. package/src/select/Select.messages.ts +8 -0
  1411. package/src/select/Select.spec.js +627 -0
  1412. package/src/select/Select.story.js +408 -0
  1413. package/src/select/index.js +3 -0
  1414. package/src/select/option/Option.spec.js +61 -0
  1415. package/src/select/option/Option.tsx +87 -0
  1416. package/src/select/option/index.js +3 -0
  1417. package/src/select/searchBox/SearchBox.spec.js +24 -0
  1418. package/src/select/searchBox/SearchBox.tsx +55 -0
  1419. package/src/select/searchBox/__snapshots__/SearchBox.spec.js.snap +46 -0
  1420. package/src/select/searchBox/index.js +1 -0
  1421. package/src/sizeSwapper/SizeSwapper.js +69 -0
  1422. package/src/sizeSwapper/SizeSwapper.spec.js +100 -0
  1423. package/src/sizeSwapper/SizeSwapper.story.js +34 -0
  1424. package/src/sizeSwapper/index.js +1 -0
  1425. package/src/slidingPanel/SlidingPanel.css +1 -0
  1426. package/src/slidingPanel/SlidingPanel.js +72 -0
  1427. package/src/slidingPanel/SlidingPanel.less +98 -0
  1428. package/src/slidingPanel/SlidingPanel.spec.js +65 -0
  1429. package/src/slidingPanel/SlidingPanel.story.js +32 -0
  1430. package/src/slidingPanel/index.js +1 -0
  1431. package/src/snackbar/Snackbar.css +1 -0
  1432. package/src/snackbar/Snackbar.js +126 -0
  1433. package/src/snackbar/Snackbar.less +86 -0
  1434. package/src/snackbar/Snackbar.spec.js +112 -0
  1435. package/src/snackbar/Snackbar.story.js +126 -0
  1436. package/src/snackbar/SnackbarContext.js +4 -0
  1437. package/src/snackbar/SnackbarProvider.js +51 -0
  1438. package/src/snackbar/__snapshots__/Snackbar.spec.js.snap +5 -0
  1439. package/src/snackbar/index.js +1 -0
  1440. package/src/snackbar/useSnackbar.js +11 -0
  1441. package/src/ssr.spec.js +221 -0
  1442. package/src/statusIcon/StatusIcon.css +1 -0
  1443. package/src/statusIcon/StatusIcon.less +63 -0
  1444. package/src/statusIcon/StatusIcon.spec.js +70 -0
  1445. package/src/statusIcon/StatusIcon.story.tsx +51 -0
  1446. package/src/statusIcon/StatusIcon.tsx +37 -0
  1447. package/src/statusIcon/index.js +1 -0
  1448. package/src/stepper/Stepper.css +1 -0
  1449. package/src/stepper/Stepper.less +118 -0
  1450. package/src/stepper/Stepper.spec.js +211 -0
  1451. package/src/stepper/Stepper.story.js +40 -0
  1452. package/src/stepper/Stepper.tsx +94 -0
  1453. package/src/stepper/deviceDetection.js +31 -0
  1454. package/src/stepper/deviceDetection.spec.js +63 -0
  1455. package/src/sticky/Sticky.js +23 -0
  1456. package/src/sticky/Sticky.spec.js +35 -0
  1457. package/src/sticky/Sticky.story.js +23 -0
  1458. package/src/sticky/index.js +1 -0
  1459. package/src/summary/Summary.css +1 -0
  1460. package/src/summary/Summary.less +85 -0
  1461. package/src/summary/Summary.messages.ts +16 -0
  1462. package/src/summary/Summary.spec.tsx +74 -0
  1463. package/src/summary/Summary.story.tsx +90 -0
  1464. package/src/summary/Summary.tsx +193 -0
  1465. package/src/summary/index.ts +2 -0
  1466. package/src/switch/Switch.css +1 -0
  1467. package/src/switch/Switch.less +70 -0
  1468. package/src/switch/Switch.spec.js +85 -0
  1469. package/src/switch/Switch.story.tsx +61 -0
  1470. package/src/switch/Switch.tsx +90 -0
  1471. package/src/switch/__snapshots__/Switch.spec.js.snap +86 -0
  1472. package/src/switch/index.ts +1 -0
  1473. package/src/switchOption/SwitchOption.spec.js +128 -0
  1474. package/src/switchOption/SwitchOption.story.tsx +74 -0
  1475. package/src/switchOption/SwitchOption.tsx +81 -0
  1476. package/src/switchOption/index.ts +1 -0
  1477. package/src/tabs/Tab.js +75 -0
  1478. package/src/tabs/TabList.js +15 -0
  1479. package/src/tabs/TabPanel.js +20 -0
  1480. package/src/tabs/Tabs.css +1 -0
  1481. package/src/tabs/Tabs.js +597 -0
  1482. package/src/tabs/Tabs.less +140 -0
  1483. package/src/tabs/Tabs.spec.js +404 -0
  1484. package/src/tabs/Tabs.story.js +135 -0
  1485. package/src/tabs/index.js +1 -0
  1486. package/src/tabs/utils.js +51 -0
  1487. package/src/tabs/utils.spec.js +123 -0
  1488. package/src/test-utils/Parameters.d.ts +61 -0
  1489. package/src/test-utils/fake-data.ts +14 -0
  1490. package/src/test-utils/index.js +37 -0
  1491. package/src/test-utils/jest.setup.js +28 -0
  1492. package/src/test-utils/story-config.ts +60 -0
  1493. package/src/test-utils/style-mock.js +1 -0
  1494. package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +14 -0
  1495. package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.spec.js +15 -0
  1496. package/src/textareaWithDisplayFormat/index.js +1 -0
  1497. package/src/tile/Tile.css +1 -0
  1498. package/src/tile/Tile.js +93 -0
  1499. package/src/tile/Tile.less +77 -0
  1500. package/src/tile/Tile.spec.js +77 -0
  1501. package/src/tile/Tile.story.js +56 -0
  1502. package/src/tile/__snapshots__/Tile.spec.js.snap +57 -0
  1503. package/src/tile/index.js +1 -0
  1504. package/src/title/Title.spec.tsx +44 -0
  1505. package/src/title/Title.story.tsx +28 -0
  1506. package/src/title/Title.tsx +40 -0
  1507. package/src/title/index.ts +1 -0
  1508. package/src/tooltip/Tooltip.css +1 -0
  1509. package/src/tooltip/Tooltip.less +49 -0
  1510. package/src/tooltip/Tooltip.spec.tsx +48 -0
  1511. package/src/tooltip/Tooltip.story.tsx +42 -0
  1512. package/src/tooltip/Tooltip.tsx +131 -0
  1513. package/src/tooltip/index.js +3 -0
  1514. package/src/typeahead/Typeahead.css +1 -0
  1515. package/src/typeahead/Typeahead.js +510 -0
  1516. package/src/typeahead/Typeahead.less +229 -0
  1517. package/src/typeahead/Typeahead.spec.js +379 -0
  1518. package/src/typeahead/Typeahead.story.js +116 -0
  1519. package/src/typeahead/index.js +3 -0
  1520. package/src/typeahead/typeaheadInput/TypeaheadInput.js +144 -0
  1521. package/src/typeahead/typeaheadInput/TypeaheadInput.spec.js +67 -0
  1522. package/src/typeahead/typeaheadOption/TypeaheadOption.css +1 -0
  1523. package/src/typeahead/typeaheadOption/TypeaheadOption.js +45 -0
  1524. package/src/typeahead/typeaheadOption/TypeaheadOption.less +13 -0
  1525. package/src/typeahead/typeaheadOption/TypeaheadOption.spec.js +64 -0
  1526. package/src/typeahead/util/highlight.js +16 -0
  1527. package/src/typeahead/util/highlight.spec.js +34 -0
  1528. package/src/upload/Upload.css +1 -0
  1529. package/src/upload/Upload.events.spec.js +49 -0
  1530. package/src/upload/Upload.js +436 -0
  1531. package/src/upload/Upload.less +21 -0
  1532. package/src/upload/Upload.messages.js +44 -0
  1533. package/src/upload/Upload.spec.js +266 -0
  1534. package/src/upload/Upload.story.js +36 -0
  1535. package/src/upload/index.js +2 -0
  1536. package/src/upload/steps/completeStep/completeStep.js +95 -0
  1537. package/src/upload/steps/completeStep/completeStep.spec.js +59 -0
  1538. package/src/upload/steps/completeStep/index.js +1 -0
  1539. package/src/upload/steps/index.js +4 -0
  1540. package/src/upload/steps/mediaUploadStep/index.js +1 -0
  1541. package/src/upload/steps/mediaUploadStep/mediaUploadStep.js +80 -0
  1542. package/src/upload/steps/mediaUploadStep/mediaUploadStep.spec.js +77 -0
  1543. package/src/upload/steps/processingStep/index.js +1 -0
  1544. package/src/upload/steps/processingStep/processingStep.js +72 -0
  1545. package/src/upload/steps/processingStep/processingStep.spec.js +55 -0
  1546. package/src/upload/steps/uploadImageStep/index.js +1 -0
  1547. package/src/upload/steps/uploadImageStep/uploadImageStep.js +81 -0
  1548. package/src/upload/steps/uploadImageStep/uploadImageStep.spec.js +66 -0
  1549. package/src/upload/uploadSteps.ts +5 -0
  1550. package/src/upload/utils/asyncFileRead/asyncFileRead.js +11 -0
  1551. package/src/upload/utils/asyncFileRead/asyncFileRead.spec.js +17 -0
  1552. package/src/upload/utils/asyncFileRead/index.js +1 -0
  1553. package/src/upload/utils/getFileType/getFileType.js +19 -0
  1554. package/src/upload/utils/getFileType/getFileType.spec.js +33 -0
  1555. package/src/upload/utils/getFileType/index.js +1 -0
  1556. package/src/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +18 -0
  1557. package/src/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.spec.js +22 -0
  1558. package/src/upload/utils/getSupportedSpotMimeTypes/index.js +1 -0
  1559. package/src/upload/utils/index.js +7 -0
  1560. package/src/upload/utils/isSizeValid/index.js +1 -0
  1561. package/src/upload/utils/isSizeValid/isSizeValid.js +1 -0
  1562. package/src/upload/utils/isSizeValid/isSizeValid.spec.js +17 -0
  1563. package/src/upload/utils/isTypeValid/index.js +1 -0
  1564. package/src/upload/utils/isTypeValid/isTypeValid.js +26 -0
  1565. package/src/upload/utils/isTypeValid/isTypeValid.spec.js +68 -0
  1566. package/src/upload/utils/postData/index.js +1 -0
  1567. package/src/upload/utils/postData/postData.js +18 -0
  1568. package/src/upload/utils/postData/postData.spec.js +109 -0
  1569. package/src/upload/utils/requestMedia/index.js +1 -0
  1570. package/src/upload/utils/requestMedia/requestMedia.js +26 -0
  1571. package/src/upload/utils/requestMedia/requestMedia.spec.js +44 -0
  1572. package/src/uploadInput/UploadInput.css +1 -0
  1573. package/src/uploadInput/UploadInput.less +71 -0
  1574. package/src/uploadInput/UploadInput.messages.ts +41 -0
  1575. package/src/uploadInput/UploadInput.spec.tsx +314 -0
  1576. package/src/uploadInput/UploadInput.story.tsx +168 -0
  1577. package/src/uploadInput/UploadInput.tsx +382 -0
  1578. package/src/uploadInput/index.ts +1 -0
  1579. package/src/uploadInput/types.ts +58 -0
  1580. package/src/uploadInput/uploadButton/UploadButton.css +1 -0
  1581. package/src/uploadInput/uploadButton/UploadButton.less +57 -0
  1582. package/src/uploadInput/uploadButton/UploadButton.messages.ts +33 -0
  1583. package/src/uploadInput/uploadButton/UploadButton.spec.tsx +111 -0
  1584. package/src/uploadInput/uploadButton/UploadButton.tsx +268 -0
  1585. package/src/uploadInput/uploadButton/defaults.ts +5 -0
  1586. package/src/uploadInput/uploadButton/getAllowedFileTypes.spec.ts +41 -0
  1587. package/src/uploadInput/uploadButton/getAllowedFileTypes.ts +12 -0
  1588. package/src/uploadInput/uploadItem/UploadItem.css +1 -0
  1589. package/src/uploadInput/uploadItem/UploadItem.less +77 -0
  1590. package/src/uploadInput/uploadItem/UploadItem.messages.ts +39 -0
  1591. package/src/uploadInput/uploadItem/UploadItem.spec.tsx +122 -0
  1592. package/src/uploadInput/uploadItem/UploadItem.tsx +164 -0
  1593. package/src/uploadInput/uploadItem/UploadItemBody.tsx +30 -0
  1594. package/src/utilities/cssValueWithUnit.ts +3 -0
  1595. package/src/utilities/deprecatedProperty/deprecatedProperty.js +41 -0
  1596. package/src/utilities/deprecatedProperty/deprecatedProperty.spec.js +89 -0
  1597. package/src/utilities/deprecatedProperty/index.js +1 -0
  1598. package/src/utilities/index.js +2 -0
  1599. package/src/utilities/logActionRequired.js +12 -0
  1600. package/src/utils.ts +1 -0
  1601. package/src/withDisplayFormat/WithDisplayFormat.js +312 -0
  1602. package/src/withDisplayFormat/WithDisplayFormat.spec.js +235 -0
  1603. package/src/withDisplayFormat/WithDisplayFormat.state.spec.js +42 -0
  1604. package/src/withDisplayFormat/index.js +1 -0
  1605. package/src/withNextPortal/withNextPortal.spec.js +26 -0
  1606. package/src/withNextPortal/withNextPortal.tsx +15 -0
  1607. package/build/es/no-polyfill/accordion/Accordion.js +0 -1
  1608. package/build/es/no-polyfill/accordion/Accordion.story.js +0 -1
  1609. package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +0 -1
  1610. package/build/es/no-polyfill/accordion/AccordionItem/index.js +0 -1
  1611. package/build/es/no-polyfill/accordion/index.js +0 -1
  1612. package/build/es/no-polyfill/actionButton/ActionButton.js +0 -1
  1613. package/build/es/no-polyfill/actionButton/ActionButton.spec.js +0 -1
  1614. package/build/es/no-polyfill/actionButton/ActionButton.story.js +0 -1
  1615. package/build/es/no-polyfill/actionButton/index.js +0 -1
  1616. package/build/es/no-polyfill/actionOption/ActionOption.js +0 -1
  1617. package/build/es/no-polyfill/actionOption/ActionOption.story.js +0 -1
  1618. package/build/es/no-polyfill/actionOption/index.js +0 -1
  1619. package/build/es/no-polyfill/alert/Alert.js +0 -1
  1620. package/build/es/no-polyfill/alert/Alert.story.js +0 -1
  1621. package/build/es/no-polyfill/alert/index.js +0 -1
  1622. package/build/es/no-polyfill/alert/inlineMarkdown/InlineMarkdown.js +0 -1
  1623. package/build/es/no-polyfill/alert/inlineMarkdown/index.js +0 -1
  1624. package/build/es/no-polyfill/alert/withArrow/alertArrowPositions.js +0 -2
  1625. package/build/es/no-polyfill/alert/withArrow/index.js +0 -1
  1626. package/build/es/no-polyfill/alert/withArrow/withArrow.js +0 -1
  1627. package/build/es/no-polyfill/avatar/Avatar.js +0 -1
  1628. package/build/es/no-polyfill/avatar/Avatar.story.js +0 -1
  1629. package/build/es/no-polyfill/avatar/avatarTypes.js +0 -2
  1630. package/build/es/no-polyfill/avatar/colors/colors.js +0 -10
  1631. package/build/es/no-polyfill/avatar/colors/index.js +0 -1
  1632. package/build/es/no-polyfill/avatar/index.js +0 -1
  1633. package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +0 -1
  1634. package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.story.js +0 -1
  1635. package/build/es/no-polyfill/avatarWrapper/index.js +0 -1
  1636. package/build/es/no-polyfill/badge/Badge.js +0 -1
  1637. package/build/es/no-polyfill/badge/index.js +0 -1
  1638. package/build/es/no-polyfill/body/Body.js +0 -3
  1639. package/build/es/no-polyfill/body/Body.spec.js +0 -1
  1640. package/build/es/no-polyfill/body/Body.story.js +0 -1
  1641. package/build/es/no-polyfill/body/index.js +0 -1
  1642. package/build/es/no-polyfill/button/Button.js +0 -7
  1643. package/build/es/no-polyfill/button/Button.story.js +0 -1
  1644. package/build/es/no-polyfill/button/classMap.js +0 -1
  1645. package/build/es/no-polyfill/button/index.js +0 -1
  1646. package/build/es/no-polyfill/button/legacyUtils/index.js +0 -1
  1647. package/build/es/no-polyfill/button/legacyUtils/legacyUtils.js +0 -4
  1648. package/build/es/no-polyfill/card/Card.js +0 -1
  1649. package/build/es/no-polyfill/card/index.js +0 -1
  1650. package/build/es/no-polyfill/checkbox/Checkbox.js +0 -1
  1651. package/build/es/no-polyfill/checkbox/Checkbox.story.js +0 -1
  1652. package/build/es/no-polyfill/checkbox/index.js +0 -1
  1653. package/build/es/no-polyfill/checkboxButton/CheckboxButton.js +0 -1
  1654. package/build/es/no-polyfill/checkboxButton/CheckboxButton.spec.js +0 -1
  1655. package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +0 -2
  1656. package/build/es/no-polyfill/checkboxButton/index.js +0 -1
  1657. package/build/es/no-polyfill/checkboxOption/CheckboxOption.js +0 -1
  1658. package/build/es/no-polyfill/checkboxOption/CheckboxOption.spec.js +0 -1
  1659. package/build/es/no-polyfill/checkboxOption/CheckboxOption.story.js +0 -1
  1660. package/build/es/no-polyfill/checkboxOption/index.js +0 -1
  1661. package/build/es/no-polyfill/chevron/Chevron.js +0 -1
  1662. package/build/es/no-polyfill/chevron/Chevron.story.js +0 -1
  1663. package/build/es/no-polyfill/chevron/index.js +0 -1
  1664. package/build/es/no-polyfill/chips/Chip.js +0 -1
  1665. package/build/es/no-polyfill/chips/Chips.js +0 -1
  1666. package/build/es/no-polyfill/chips/Chips.messages.js +0 -1
  1667. package/build/es/no-polyfill/chips/Chips.spec.js +0 -1
  1668. package/build/es/no-polyfill/chips/Chips.story.js +0 -1
  1669. package/build/es/no-polyfill/chips/index.js +0 -1
  1670. package/build/es/no-polyfill/circularButton/CircularButton.js +0 -1
  1671. package/build/es/no-polyfill/circularButton/index.js +0 -1
  1672. package/build/es/no-polyfill/common/DOMOperations/DOMOperations.js +0 -9
  1673. package/build/es/no-polyfill/common/DOMOperations/index.js +0 -1
  1674. package/build/es/no-polyfill/common/Option/Option.js +0 -1
  1675. package/build/es/no-polyfill/common/Option/index.js +0 -1
  1676. package/build/es/no-polyfill/common/RadioButton/RadioButton.js +0 -1
  1677. package/build/es/no-polyfill/common/RadioButton/index.js +0 -1
  1678. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +0 -10
  1679. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.spec.js +0 -1
  1680. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.story.js +0 -2
  1681. package/build/es/no-polyfill/common/bottomSheet/index.js +0 -1
  1682. package/build/es/no-polyfill/common/card/Card.js +0 -21
  1683. package/build/es/no-polyfill/common/card/Card.spec.js +0 -6
  1684. package/build/es/no-polyfill/common/card/Card.story.js +0 -1
  1685. package/build/es/no-polyfill/common/card/index.js +0 -1
  1686. package/build/es/no-polyfill/common/closeButton/CloseButton.js +0 -1
  1687. package/build/es/no-polyfill/common/closeButton/CloseButton.messages.js +0 -1
  1688. package/build/es/no-polyfill/common/closeButton/index.js +0 -1
  1689. package/build/es/no-polyfill/common/commonProps.js +0 -0
  1690. package/build/es/no-polyfill/common/dateUtils/getDayNames/getDayNames.js +0 -2
  1691. package/build/es/no-polyfill/common/dateUtils/getDayNames/index.js +0 -1
  1692. package/build/es/no-polyfill/common/dateUtils/getMonthNames/getMonthNames.js +0 -1
  1693. package/build/es/no-polyfill/common/dateUtils/getMonthNames/index.js +0 -1
  1694. package/build/es/no-polyfill/common/dateUtils/index.js +0 -1
  1695. package/build/es/no-polyfill/common/dateUtils/isDateValid/index.js +0 -1
  1696. package/build/es/no-polyfill/common/dateUtils/isDateValid/isDateValid.js +0 -1
  1697. package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/index.js +0 -1
  1698. package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -1
  1699. package/build/es/no-polyfill/common/dateUtils/isWithinRange/index.js +0 -1
  1700. package/build/es/no-polyfill/common/dateUtils/isWithinRange/isWithinRange.js +0 -1
  1701. package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/index.js +0 -1
  1702. package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -2
  1703. package/build/es/no-polyfill/common/deviceDetection/deviceDetection.js +0 -1
  1704. package/build/es/no-polyfill/common/deviceDetection/index.js +0 -1
  1705. package/build/es/no-polyfill/common/direction.js +0 -1
  1706. package/build/es/no-polyfill/common/domHelpers/documentIosClick.js +0 -5
  1707. package/build/es/no-polyfill/common/domHelpers/index.js +0 -1
  1708. package/build/es/no-polyfill/common/fakeEvents.js +0 -1
  1709. package/build/es/no-polyfill/common/fileType.js +0 -1
  1710. package/build/es/no-polyfill/common/flowHeader/FlowHeader.js +0 -1
  1711. package/build/es/no-polyfill/common/focusBoundary/FocusBoundary.js +0 -1
  1712. package/build/es/no-polyfill/common/focusBoundary/FocusBoundary.spec.js +0 -1
  1713. package/build/es/no-polyfill/common/focusBoundary/index.js +0 -1
  1714. package/build/es/no-polyfill/common/focusBoundary/utils/getFocusableElements.js +0 -6
  1715. package/build/es/no-polyfill/common/focusBoundary/utils/index.js +0 -1
  1716. package/build/es/no-polyfill/common/focusBoundary/utils/resetFocus.js +0 -6
  1717. package/build/es/no-polyfill/common/historyNavigator/historyNavigator.js +0 -1
  1718. package/build/es/no-polyfill/common/historyNavigator/index.js +0 -1
  1719. package/build/es/no-polyfill/common/hooks/index.js +0 -1
  1720. package/build/es/no-polyfill/common/hooks/useClientWidth/useClientWidth.js +0 -5
  1721. package/build/es/no-polyfill/common/hooks/useConditionalListener/index.js +0 -1
  1722. package/build/es/no-polyfill/common/hooks/useConditionalListener/useConditionalListener.js +0 -1
  1723. package/build/es/no-polyfill/common/hooks/useDirection/index.js +0 -1
  1724. package/build/es/no-polyfill/common/hooks/useDirection/useDirection.js +0 -1
  1725. package/build/es/no-polyfill/common/hooks/useHasIntersected/index.js +0 -1
  1726. package/build/es/no-polyfill/common/hooks/useHasIntersected/useHasIntersected.js +0 -11
  1727. package/build/es/no-polyfill/common/hooks/useLayout/index.js +0 -1
  1728. package/build/es/no-polyfill/common/hooks/useLayout/useLayout.js +0 -1
  1729. package/build/es/no-polyfill/common/index.js +0 -2
  1730. package/build/es/no-polyfill/common/key.js +0 -1
  1731. package/build/es/no-polyfill/common/keyCodes.js +0 -5
  1732. package/build/es/no-polyfill/common/locale/index.js +0 -37
  1733. package/build/es/no-polyfill/common/panel/Panel.js +0 -10
  1734. package/build/es/no-polyfill/common/panel/index.js +0 -1
  1735. package/build/es/no-polyfill/common/propsValues/breakpoint.js +0 -1
  1736. package/build/es/no-polyfill/common/propsValues/control.js +0 -1
  1737. package/build/es/no-polyfill/common/propsValues/dateMode.js +0 -1
  1738. package/build/es/no-polyfill/common/propsValues/layouts.js +0 -1
  1739. package/build/es/no-polyfill/common/propsValues/markdownNodeType.js +0 -1
  1740. package/build/es/no-polyfill/common/propsValues/monthFormat.js +0 -1
  1741. package/build/es/no-polyfill/common/propsValues/position.js +0 -1
  1742. package/build/es/no-polyfill/common/propsValues/profileType.js +0 -1
  1743. package/build/es/no-polyfill/common/propsValues/scroll.js +0 -1
  1744. package/build/es/no-polyfill/common/propsValues/sentiment.js +0 -1
  1745. package/build/es/no-polyfill/common/propsValues/size.js +0 -1
  1746. package/build/es/no-polyfill/common/propsValues/status.js +0 -1
  1747. package/build/es/no-polyfill/common/propsValues/type.js +0 -3
  1748. package/build/es/no-polyfill/common/propsValues/typography.js +0 -3
  1749. package/build/es/no-polyfill/common/propsValues/variant.js +0 -1
  1750. package/build/es/no-polyfill/common/propsValues/width.js +0 -1
  1751. package/build/es/no-polyfill/common/requirements.js +0 -3
  1752. package/build/es/no-polyfill/common/responsivePanel/ResponsivePanel.js +0 -1
  1753. package/build/es/no-polyfill/common/responsivePanel/index.js +0 -1
  1754. package/build/es/no-polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +0 -2
  1755. package/build/es/no-polyfill/common/textFormat/formatWithPattern/index.js +0 -1
  1756. package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -1
  1757. package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +0 -1
  1758. package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -1
  1759. package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +0 -1
  1760. package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -2
  1761. package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/index.js +0 -1
  1762. package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -1
  1763. package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +0 -1
  1764. package/build/es/no-polyfill/common/textFormat/index.js +0 -1
  1765. package/build/es/no-polyfill/common/textFormat/unformatWithPattern/index.js +0 -1
  1766. package/build/es/no-polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -1
  1767. package/build/es/no-polyfill/common/theme.js +0 -1
  1768. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
  1769. package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
  1770. package/build/es/no-polyfill/criticalBanner/index.js +0 -1
  1771. package/build/es/no-polyfill/dateInput/DateInput.js +0 -4
  1772. package/build/es/no-polyfill/dateInput/DateInput.messages.js +0 -1
  1773. package/build/es/no-polyfill/dateInput/DateInput.story.js +0 -1
  1774. package/build/es/no-polyfill/dateInput/index.js +0 -1
  1775. package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -2
  1776. package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/index.js +0 -1
  1777. package/build/es/no-polyfill/dateInput/utils/explodeDate/explodeDate.js +0 -1
  1778. package/build/es/no-polyfill/dateInput/utils/explodeDate/index.js +0 -1
  1779. package/build/es/no-polyfill/dateInput/utils/index.js +0 -1
  1780. package/build/es/no-polyfill/dateLookup/DateLookup.js +0 -3
  1781. package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +0 -1
  1782. package/build/es/no-polyfill/dateLookup/dateHeader/index.js +0 -1
  1783. package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.js +0 -1
  1784. package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +0 -1
  1785. package/build/es/no-polyfill/dateLookup/dateTrigger/index.js +0 -1
  1786. package/build/es/no-polyfill/dateLookup/dayCalendar/DayCalendar.js +0 -1
  1787. package/build/es/no-polyfill/dateLookup/dayCalendar/index.js +0 -1
  1788. package/build/es/no-polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -4
  1789. package/build/es/no-polyfill/dateLookup/dayCalendar/table/index.js +0 -1
  1790. package/build/es/no-polyfill/dateLookup/getStartOfDay/getStartOfDay.js +0 -5
  1791. package/build/es/no-polyfill/dateLookup/getStartOfDay/index.js +0 -1
  1792. package/build/es/no-polyfill/dateLookup/index.js +0 -1
  1793. package/build/es/no-polyfill/dateLookup/monthCalendar/MonthCalendar.js +0 -1
  1794. package/build/es/no-polyfill/dateLookup/monthCalendar/index.js +0 -1
  1795. package/build/es/no-polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -1
  1796. package/build/es/no-polyfill/dateLookup/monthCalendar/table/index.js +0 -1
  1797. package/build/es/no-polyfill/dateLookup/tableLink/TableLink.js +0 -2
  1798. package/build/es/no-polyfill/dateLookup/tableLink/index.js +0 -1
  1799. package/build/es/no-polyfill/dateLookup/yearCalendar/YearCalendar.js +0 -1
  1800. package/build/es/no-polyfill/dateLookup/yearCalendar/index.js +0 -1
  1801. package/build/es/no-polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -1
  1802. package/build/es/no-polyfill/dateLookup/yearCalendar/table/index.js +0 -1
  1803. package/build/es/no-polyfill/decision/Decision.js +0 -5
  1804. package/build/es/no-polyfill/decision/decisionEnums.js +0 -3
  1805. package/build/es/no-polyfill/decision/index.js +0 -1
  1806. package/build/es/no-polyfill/definitionList/DefinitionList.js +0 -1
  1807. package/build/es/no-polyfill/definitionList/index.js +0 -1
  1808. package/build/es/no-polyfill/dimmer/Dimmer.js +0 -6
  1809. package/build/es/no-polyfill/dimmer/Dimmer.story.js +0 -2
  1810. package/build/es/no-polyfill/dimmer/dimmerManager/DimmerManager.js +0 -5
  1811. package/build/es/no-polyfill/dimmer/dimmerManager/index.js +0 -1
  1812. package/build/es/no-polyfill/dimmer/index.js +0 -1
  1813. package/build/es/no-polyfill/display/Display.js +0 -1
  1814. package/build/es/no-polyfill/display/Display.story.js +0 -2
  1815. package/build/es/no-polyfill/display/index.js +0 -1
  1816. package/build/es/no-polyfill/drawer/Drawer.js +0 -1
  1817. package/build/es/no-polyfill/drawer/index.js +0 -1
  1818. package/build/es/no-polyfill/dropFade/DropFade.js +0 -3
  1819. package/build/es/no-polyfill/dropFade/DropFade.story.js +0 -1
  1820. package/build/es/no-polyfill/dropFade/index.js +0 -1
  1821. package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +0 -1
  1822. package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +0 -8
  1823. package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +0 -1
  1824. package/build/es/no-polyfill/dynamicFieldDefinitionList/index.js +0 -1
  1825. package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +0 -2
  1826. package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/text-format.js +0 -1
  1827. package/build/es/no-polyfill/emphasis/Emphasis.js +0 -2
  1828. package/build/es/no-polyfill/emphasis/Emphasis.story.js +0 -1
  1829. package/build/es/no-polyfill/emphasis/EmphasisHtmlTransformer.js +0 -7
  1830. package/build/es/no-polyfill/emphasis/index.js +0 -1
  1831. package/build/es/no-polyfill/flowNavigation/FlowNavigation.js +0 -2
  1832. package/build/es/no-polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +0 -1
  1833. package/build/es/no-polyfill/flowNavigation/animatedLabel/index.js +0 -1
  1834. package/build/es/no-polyfill/flowNavigation/backButton/BackButton.js +0 -1
  1835. package/build/es/no-polyfill/flowNavigation/backButton/index.js +0 -1
  1836. package/build/es/no-polyfill/header/Header.js +0 -5
  1837. package/build/es/no-polyfill/header/Header.spec.js +0 -1
  1838. package/build/es/no-polyfill/header/Header.story.js +0 -2
  1839. package/build/es/no-polyfill/header/index.js +0 -1
  1840. package/build/es/no-polyfill/i18n/index.js +0 -1
  1841. package/build/es/no-polyfill/image/Image.js +0 -12
  1842. package/build/es/no-polyfill/image/index.js +0 -1
  1843. package/build/es/no-polyfill/index.js +0 -13
  1844. package/build/es/no-polyfill/info/Info.js +0 -1
  1845. package/build/es/no-polyfill/info/Info.story.js +0 -1
  1846. package/build/es/no-polyfill/info/index.js +0 -1
  1847. package/build/es/no-polyfill/info/infoPresentations.js +0 -2
  1848. package/build/es/no-polyfill/inlineAlert/InlineAlert.js +0 -1
  1849. package/build/es/no-polyfill/inlineAlert/index.js +0 -1
  1850. package/build/es/no-polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -1
  1851. package/build/es/no-polyfill/inputWithDisplayFormat/index.js +0 -1
  1852. package/build/es/no-polyfill/inputs/Input.js +0 -1
  1853. package/build/es/no-polyfill/inputs/TextArea.js +0 -1
  1854. package/build/es/no-polyfill/inputs/_common.js +0 -2
  1855. package/build/es/no-polyfill/instructionsList/InstructionsList.js +0 -3
  1856. package/build/es/no-polyfill/instructionsList/index.js +0 -1
  1857. package/build/es/no-polyfill/link/Link.js +0 -5
  1858. package/build/es/no-polyfill/link/Link.spec.js +0 -1
  1859. package/build/es/no-polyfill/link/Link.story.js +0 -1
  1860. package/build/es/no-polyfill/link/index.js +0 -1
  1861. package/build/es/no-polyfill/listItem/ListItem.js +0 -1
  1862. package/build/es/no-polyfill/listItem/ListItem.spec.js +0 -1
  1863. package/build/es/no-polyfill/listItem/ListItem.story.js +0 -1
  1864. package/build/es/no-polyfill/listItem/index.js +0 -1
  1865. package/build/es/no-polyfill/loader/Loader.js +0 -11
  1866. package/build/es/no-polyfill/loader/Loader.story.js +0 -1
  1867. package/build/es/no-polyfill/loader/index.js +0 -1
  1868. package/build/es/no-polyfill/logo/Logo.js +0 -1
  1869. package/build/es/no-polyfill/logo/Logo.story.js +0 -1
  1870. package/build/es/no-polyfill/logo/index.js +0 -1
  1871. package/build/es/no-polyfill/logo/logoTypes.js +0 -2
  1872. package/build/es/no-polyfill/markdown/Markdown.js +0 -1
  1873. package/build/es/no-polyfill/markdown/Markdown.story.js +0 -1
  1874. package/build/es/no-polyfill/markdown/index.js +0 -1
  1875. package/build/es/no-polyfill/modal/Modal.js +0 -1
  1876. package/build/es/no-polyfill/modal/Modal.story.js +0 -2
  1877. package/build/es/no-polyfill/modal/index.js +0 -1
  1878. package/build/es/no-polyfill/money/Money.js +0 -1
  1879. package/build/es/no-polyfill/money/Money.story.js +0 -1
  1880. package/build/es/no-polyfill/money/index.js +0 -1
  1881. package/build/es/no-polyfill/moneyInput/MoneyInput.js +0 -5
  1882. package/build/es/no-polyfill/moneyInput/MoneyInput.messages.js +0 -1
  1883. package/build/es/no-polyfill/moneyInput/MoneyInput.story.js +0 -1
  1884. package/build/es/no-polyfill/moneyInput/currencyFormatting.js +0 -4
  1885. package/build/es/no-polyfill/moneyInput/index.js +0 -1
  1886. package/build/es/no-polyfill/navigationOption/NavigationOption.js +0 -1
  1887. package/build/es/no-polyfill/navigationOption/index.js +0 -1
  1888. package/build/es/no-polyfill/navigationOptionsList/NavigationOptionsList.js +0 -1
  1889. package/build/es/no-polyfill/navigationOptionsList/index.js +0 -1
  1890. package/build/es/no-polyfill/nudge/Nudge.js +0 -3
  1891. package/build/es/no-polyfill/nudge/Nudge.spec.js +0 -1
  1892. package/build/es/no-polyfill/nudge/Nudge.story.js +0 -1
  1893. package/build/es/no-polyfill/nudge/index.js +0 -1
  1894. package/build/es/no-polyfill/overlayHeader/OverlayHeader.js +0 -1
  1895. package/build/es/no-polyfill/overlayHeader/index.js +0 -1
  1896. package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +0 -1
  1897. package/build/es/no-polyfill/phoneNumberInput/data/countries.js +0 -1
  1898. package/build/es/no-polyfill/phoneNumberInput/index.js +0 -1
  1899. package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -1
  1900. package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/index.js +0 -1
  1901. package/build/es/no-polyfill/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -8
  1902. package/build/es/no-polyfill/phoneNumberInput/utils/excludeCountries/index.js +0 -1
  1903. package/build/es/no-polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +0 -7
  1904. package/build/es/no-polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +0 -7
  1905. package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByCode/index.js +0 -1
  1906. package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -1
  1907. package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -1
  1908. package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +0 -1
  1909. package/build/es/no-polyfill/phoneNumberInput/utils/index.js +0 -1
  1910. package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +0 -1
  1911. package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +0 -7
  1912. package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/index.js +0 -1
  1913. package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +0 -1
  1914. package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +0 -1
  1915. package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -6
  1916. package/build/es/no-polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -1
  1917. package/build/es/no-polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -11
  1918. package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +0 -1
  1919. package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -2
  1920. package/build/es/no-polyfill/popover/Popover.js +0 -4
  1921. package/build/es/no-polyfill/popover/index.js +0 -1
  1922. package/build/es/no-polyfill/processIndicator/ProcessIndicator.js +0 -12
  1923. package/build/es/no-polyfill/processIndicator/ProcessIndicator.story.js +0 -1
  1924. package/build/es/no-polyfill/processIndicator/index.js +0 -1
  1925. package/build/es/no-polyfill/progress/Progress.js +0 -1
  1926. package/build/es/no-polyfill/progress/Progress.story.js +0 -1
  1927. package/build/es/no-polyfill/progress/index.js +0 -1
  1928. package/build/es/no-polyfill/progressBar/ProgressBar.js +0 -1
  1929. package/build/es/no-polyfill/progressBar/ProgressBar.story.js +0 -1
  1930. package/build/es/no-polyfill/progressBar/index.js +0 -1
  1931. package/build/es/no-polyfill/promoCard/PromoCard.js +0 -51
  1932. package/build/es/no-polyfill/promoCard/PromoCard.spec.js +0 -13
  1933. package/build/es/no-polyfill/promoCard/PromoCard.story.js +0 -1
  1934. package/build/es/no-polyfill/promoCard/PromoCardContext.js +0 -19
  1935. package/build/es/no-polyfill/promoCard/PromoCardContext.spec.js +0 -4
  1936. package/build/es/no-polyfill/promoCard/PromoCardGroup.js +0 -20
  1937. package/build/es/no-polyfill/promoCard/PromoCardGroup.spec.js +0 -5
  1938. package/build/es/no-polyfill/promoCard/PromoCardGroup.story.js +0 -1
  1939. package/build/es/no-polyfill/promoCard/PromoCardIndicator.js +0 -16
  1940. package/build/es/no-polyfill/promoCard/index.js +0 -1
  1941. package/build/es/no-polyfill/provider/Provider.js +0 -1
  1942. package/build/es/no-polyfill/provider/Provider.spec.js +0 -1
  1943. package/build/es/no-polyfill/provider/Provider.story.js +0 -1
  1944. package/build/es/no-polyfill/provider/direction/DirectionProvider.js +0 -1
  1945. package/build/es/no-polyfill/provider/direction/DirectionProvider.spec.js +0 -1
  1946. package/build/es/no-polyfill/provider/direction/index.js +0 -1
  1947. package/build/es/no-polyfill/provider/index.js +0 -1
  1948. package/build/es/no-polyfill/provider/language/LanguageProvider.js +0 -1
  1949. package/build/es/no-polyfill/provider/language/LanguageProvider.spec.js +0 -1
  1950. package/build/es/no-polyfill/provider/language/index.js +0 -1
  1951. package/build/es/no-polyfill/radio/Radio.js +0 -1
  1952. package/build/es/no-polyfill/radio/index.js +0 -1
  1953. package/build/es/no-polyfill/radioGroup/RadioGroup.js +0 -2
  1954. package/build/es/no-polyfill/radioGroup/index.js +0 -1
  1955. package/build/es/no-polyfill/radioOption/RadioOption.js +0 -1
  1956. package/build/es/no-polyfill/radioOption/index.js +0 -1
  1957. package/build/es/no-polyfill/section/Section.js +0 -5
  1958. package/build/es/no-polyfill/section/Section.spec.js +0 -1
  1959. package/build/es/no-polyfill/section/Section.story.js +0 -1
  1960. package/build/es/no-polyfill/section/index.js +0 -1
  1961. package/build/es/no-polyfill/select/Select.js +0 -16
  1962. package/build/es/no-polyfill/select/Select.messages.js +0 -1
  1963. package/build/es/no-polyfill/select/index.js +0 -1
  1964. package/build/es/no-polyfill/select/option/Option.js +0 -2
  1965. package/build/es/no-polyfill/select/option/index.js +0 -1
  1966. package/build/es/no-polyfill/select/searchBox/SearchBox.js +0 -1
  1967. package/build/es/no-polyfill/select/searchBox/index.js +0 -1
  1968. package/build/es/no-polyfill/sizeSwapper/SizeSwapper.js +0 -5
  1969. package/build/es/no-polyfill/sizeSwapper/index.js +0 -1
  1970. package/build/es/no-polyfill/slidingPanel/SlidingPanel.js +0 -2
  1971. package/build/es/no-polyfill/slidingPanel/index.js +0 -1
  1972. package/build/es/no-polyfill/snackbar/Snackbar.js +0 -1
  1973. package/build/es/no-polyfill/snackbar/SnackbarContext.js +0 -1
  1974. package/build/es/no-polyfill/snackbar/SnackbarProvider.js +0 -1
  1975. package/build/es/no-polyfill/snackbar/index.js +0 -1
  1976. package/build/es/no-polyfill/snackbar/useSnackbar.js +0 -1
  1977. package/build/es/no-polyfill/statusIcon/StatusIcon.js +0 -1
  1978. package/build/es/no-polyfill/statusIcon/StatusIcon.story.js +0 -1
  1979. package/build/es/no-polyfill/statusIcon/index.js +0 -1
  1980. package/build/es/no-polyfill/stepper/Stepper.js +0 -1
  1981. package/build/es/no-polyfill/stepper/deviceDetection.js +0 -4
  1982. package/build/es/no-polyfill/sticky/Sticky.js +0 -1
  1983. package/build/es/no-polyfill/sticky/index.js +0 -1
  1984. package/build/es/no-polyfill/summary/Summary.js +0 -1
  1985. package/build/es/no-polyfill/summary/Summary.messages.js +0 -1
  1986. package/build/es/no-polyfill/summary/index.js +0 -1
  1987. package/build/es/no-polyfill/switch/Switch.js +0 -1
  1988. package/build/es/no-polyfill/switch/Switch.story.js +0 -1
  1989. package/build/es/no-polyfill/switch/index.js +0 -1
  1990. package/build/es/no-polyfill/switchOption/SwitchOption.js +0 -1
  1991. package/build/es/no-polyfill/switchOption/SwitchOption.story.js +0 -1
  1992. package/build/es/no-polyfill/switchOption/index.js +0 -1
  1993. package/build/es/no-polyfill/tabs/Tab.js +0 -1
  1994. package/build/es/no-polyfill/tabs/TabList.js +0 -1
  1995. package/build/es/no-polyfill/tabs/TabPanel.js +0 -1
  1996. package/build/es/no-polyfill/tabs/Tabs.js +0 -1
  1997. package/build/es/no-polyfill/tabs/index.js +0 -1
  1998. package/build/es/no-polyfill/tabs/utils.js +0 -5
  1999. package/build/es/no-polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -1
  2000. package/build/es/no-polyfill/textareaWithDisplayFormat/index.js +0 -1
  2001. package/build/es/no-polyfill/tile/Tile.js +0 -1
  2002. package/build/es/no-polyfill/tile/index.js +0 -1
  2003. package/build/es/no-polyfill/title/Title.js +0 -1
  2004. package/build/es/no-polyfill/title/Title.spec.js +0 -1
  2005. package/build/es/no-polyfill/title/Title.story.js +0 -1
  2006. package/build/es/no-polyfill/title/index.js +0 -1
  2007. package/build/es/no-polyfill/tooltip/Tooltip.js +0 -8
  2008. package/build/es/no-polyfill/tooltip/Tooltip.spec.js +0 -1
  2009. package/build/es/no-polyfill/tooltip/Tooltip.story.js +0 -1
  2010. package/build/es/no-polyfill/tooltip/index.js +0 -1
  2011. package/build/es/no-polyfill/typeahead/Typeahead.js +0 -1
  2012. package/build/es/no-polyfill/typeahead/index.js +0 -1
  2013. package/build/es/no-polyfill/typeahead/typeaheadInput/TypeaheadInput.js +0 -1
  2014. package/build/es/no-polyfill/typeahead/typeaheadOption/TypeaheadOption.js +0 -1
  2015. package/build/es/no-polyfill/typeahead/util/highlight.js +0 -1
  2016. package/build/es/no-polyfill/upload/Upload.js +0 -12
  2017. package/build/es/no-polyfill/upload/Upload.messages.js +0 -1
  2018. package/build/es/no-polyfill/upload/index.js +0 -1
  2019. package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +0 -1
  2020. package/build/es/no-polyfill/upload/steps/completeStep/index.js +0 -1
  2021. package/build/es/no-polyfill/upload/steps/index.js +0 -1
  2022. package/build/es/no-polyfill/upload/steps/mediaUploadStep/index.js +0 -1
  2023. package/build/es/no-polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -1
  2024. package/build/es/no-polyfill/upload/steps/processingStep/index.js +0 -1
  2025. package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +0 -1
  2026. package/build/es/no-polyfill/upload/steps/uploadImageStep/index.js +0 -1
  2027. package/build/es/no-polyfill/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
  2028. package/build/es/no-polyfill/upload/uploadSteps.js +0 -2
  2029. package/build/es/no-polyfill/upload/utils/asyncFileRead/asyncFileRead.js +0 -1
  2030. package/build/es/no-polyfill/upload/utils/asyncFileRead/index.js +0 -1
  2031. package/build/es/no-polyfill/upload/utils/getFileType/getFileType.js +0 -1
  2032. package/build/es/no-polyfill/upload/utils/getFileType/index.js +0 -1
  2033. package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -2
  2034. package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +0 -1
  2035. package/build/es/no-polyfill/upload/utils/index.js +0 -1
  2036. package/build/es/no-polyfill/upload/utils/isSizeValid/index.js +0 -1
  2037. package/build/es/no-polyfill/upload/utils/isSizeValid/isSizeValid.js +0 -1
  2038. package/build/es/no-polyfill/upload/utils/isTypeValid/index.js +0 -1
  2039. package/build/es/no-polyfill/upload/utils/isTypeValid/isTypeValid.js +0 -1
  2040. package/build/es/no-polyfill/upload/utils/postData/index.js +0 -1
  2041. package/build/es/no-polyfill/upload/utils/postData/postData.js +0 -1
  2042. package/build/es/no-polyfill/upload/utils/requestMedia/index.js +0 -1
  2043. package/build/es/no-polyfill/upload/utils/requestMedia/requestMedia.js +0 -1
  2044. package/build/es/no-polyfill/uploadInput/UploadInput.js +0 -8
  2045. package/build/es/no-polyfill/uploadInput/UploadInput.messages.js +0 -1
  2046. package/build/es/no-polyfill/uploadInput/UploadInput.spec.js +0 -1
  2047. package/build/es/no-polyfill/uploadInput/UploadInput.story.js +0 -1
  2048. package/build/es/no-polyfill/uploadInput/index.js +0 -1
  2049. package/build/es/no-polyfill/uploadInput/types.js +0 -1
  2050. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +0 -1
  2051. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.messages.js +0 -1
  2052. package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.spec.js +0 -3
  2053. package/build/es/no-polyfill/uploadInput/uploadButton/defaults.js +0 -1
  2054. package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +0 -3
  2055. package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +0 -1
  2056. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +0 -2
  2057. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.messages.js +0 -1
  2058. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.spec.js +0 -1
  2059. package/build/es/no-polyfill/uploadInput/uploadItem/UploadItemBody.js +0 -1
  2060. package/build/es/no-polyfill/utilities/deprecatedProperty/deprecatedProperty.js +0 -1
  2061. package/build/es/no-polyfill/utilities/deprecatedProperty/index.js +0 -1
  2062. package/build/es/no-polyfill/utilities/index.js +0 -1
  2063. package/build/es/no-polyfill/utilities/logActionRequired.js +0 -1
  2064. package/build/es/no-polyfill/utils.js +0 -0
  2065. package/build/es/no-polyfill/withDisplayFormat/WithDisplayFormat.js +0 -8
  2066. package/build/es/no-polyfill/withDisplayFormat/index.js +0 -1
  2067. package/build/es/no-polyfill/withNextPortal/withNextPortal.js +0 -1
  2068. package/build/es/polyfill/accordion/Accordion.js +0 -1
  2069. package/build/es/polyfill/accordion/Accordion.story.js +0 -1
  2070. package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +0 -1
  2071. package/build/es/polyfill/accordion/AccordionItem/index.js +0 -1
  2072. package/build/es/polyfill/accordion/index.js +0 -1
  2073. package/build/es/polyfill/actionButton/ActionButton.js +0 -1
  2074. package/build/es/polyfill/actionButton/ActionButton.spec.js +0 -1
  2075. package/build/es/polyfill/actionButton/ActionButton.story.js +0 -1
  2076. package/build/es/polyfill/actionButton/index.js +0 -1
  2077. package/build/es/polyfill/actionOption/ActionOption.js +0 -1
  2078. package/build/es/polyfill/actionOption/ActionOption.story.js +0 -1
  2079. package/build/es/polyfill/actionOption/index.js +0 -1
  2080. package/build/es/polyfill/alert/Alert.js +0 -1
  2081. package/build/es/polyfill/alert/Alert.story.js +0 -1
  2082. package/build/es/polyfill/alert/index.js +0 -1
  2083. package/build/es/polyfill/alert/inlineMarkdown/InlineMarkdown.js +0 -1
  2084. package/build/es/polyfill/alert/inlineMarkdown/index.js +0 -1
  2085. package/build/es/polyfill/alert/withArrow/alertArrowPositions.js +0 -2
  2086. package/build/es/polyfill/alert/withArrow/index.js +0 -1
  2087. package/build/es/polyfill/alert/withArrow/withArrow.js +0 -1
  2088. package/build/es/polyfill/avatar/Avatar.js +0 -1
  2089. package/build/es/polyfill/avatar/Avatar.story.js +0 -1
  2090. package/build/es/polyfill/avatar/avatarTypes.js +0 -2
  2091. package/build/es/polyfill/avatar/colors/colors.js +0 -10
  2092. package/build/es/polyfill/avatar/colors/index.js +0 -1
  2093. package/build/es/polyfill/avatar/index.js +0 -1
  2094. package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +0 -1
  2095. package/build/es/polyfill/avatarWrapper/AvatarWrapper.story.js +0 -1
  2096. package/build/es/polyfill/avatarWrapper/index.js +0 -1
  2097. package/build/es/polyfill/badge/Badge.js +0 -1
  2098. package/build/es/polyfill/badge/index.js +0 -1
  2099. package/build/es/polyfill/body/Body.js +0 -3
  2100. package/build/es/polyfill/body/Body.spec.js +0 -1
  2101. package/build/es/polyfill/body/Body.story.js +0 -1
  2102. package/build/es/polyfill/body/index.js +0 -1
  2103. package/build/es/polyfill/button/Button.js +0 -7
  2104. package/build/es/polyfill/button/Button.story.js +0 -1
  2105. package/build/es/polyfill/button/classMap.js +0 -1
  2106. package/build/es/polyfill/button/index.js +0 -1
  2107. package/build/es/polyfill/button/legacyUtils/index.js +0 -1
  2108. package/build/es/polyfill/button/legacyUtils/legacyUtils.js +0 -4
  2109. package/build/es/polyfill/card/Card.js +0 -1
  2110. package/build/es/polyfill/card/index.js +0 -1
  2111. package/build/es/polyfill/checkbox/Checkbox.js +0 -1
  2112. package/build/es/polyfill/checkbox/Checkbox.story.js +0 -1
  2113. package/build/es/polyfill/checkbox/index.js +0 -1
  2114. package/build/es/polyfill/checkboxButton/CheckboxButton.js +0 -1
  2115. package/build/es/polyfill/checkboxButton/CheckboxButton.spec.js +0 -1
  2116. package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +0 -2
  2117. package/build/es/polyfill/checkboxButton/index.js +0 -1
  2118. package/build/es/polyfill/checkboxOption/CheckboxOption.js +0 -1
  2119. package/build/es/polyfill/checkboxOption/CheckboxOption.spec.js +0 -1
  2120. package/build/es/polyfill/checkboxOption/CheckboxOption.story.js +0 -1
  2121. package/build/es/polyfill/checkboxOption/index.js +0 -1
  2122. package/build/es/polyfill/chevron/Chevron.js +0 -1
  2123. package/build/es/polyfill/chevron/Chevron.story.js +0 -1
  2124. package/build/es/polyfill/chevron/index.js +0 -1
  2125. package/build/es/polyfill/chips/Chip.js +0 -1
  2126. package/build/es/polyfill/chips/Chips.js +0 -1
  2127. package/build/es/polyfill/chips/Chips.messages.js +0 -1
  2128. package/build/es/polyfill/chips/Chips.spec.js +0 -1
  2129. package/build/es/polyfill/chips/Chips.story.js +0 -1
  2130. package/build/es/polyfill/chips/index.js +0 -1
  2131. package/build/es/polyfill/circularButton/CircularButton.js +0 -1
  2132. package/build/es/polyfill/circularButton/index.js +0 -1
  2133. package/build/es/polyfill/common/DOMOperations/DOMOperations.js +0 -9
  2134. package/build/es/polyfill/common/DOMOperations/index.js +0 -1
  2135. package/build/es/polyfill/common/Option/Option.js +0 -1
  2136. package/build/es/polyfill/common/Option/index.js +0 -1
  2137. package/build/es/polyfill/common/RadioButton/RadioButton.js +0 -1
  2138. package/build/es/polyfill/common/RadioButton/index.js +0 -1
  2139. package/build/es/polyfill/common/bottomSheet/BottomSheet.js +0 -10
  2140. package/build/es/polyfill/common/bottomSheet/BottomSheet.spec.js +0 -1
  2141. package/build/es/polyfill/common/bottomSheet/BottomSheet.story.js +0 -2
  2142. package/build/es/polyfill/common/bottomSheet/index.js +0 -1
  2143. package/build/es/polyfill/common/card/Card.js +0 -21
  2144. package/build/es/polyfill/common/card/Card.spec.js +0 -6
  2145. package/build/es/polyfill/common/card/Card.story.js +0 -1
  2146. package/build/es/polyfill/common/card/index.js +0 -1
  2147. package/build/es/polyfill/common/closeButton/CloseButton.js +0 -1
  2148. package/build/es/polyfill/common/closeButton/CloseButton.messages.js +0 -1
  2149. package/build/es/polyfill/common/closeButton/index.js +0 -1
  2150. package/build/es/polyfill/common/commonProps.js +0 -0
  2151. package/build/es/polyfill/common/dateUtils/getDayNames/getDayNames.js +0 -2
  2152. package/build/es/polyfill/common/dateUtils/getDayNames/index.js +0 -1
  2153. package/build/es/polyfill/common/dateUtils/getMonthNames/getMonthNames.js +0 -1
  2154. package/build/es/polyfill/common/dateUtils/getMonthNames/index.js +0 -1
  2155. package/build/es/polyfill/common/dateUtils/index.js +0 -1
  2156. package/build/es/polyfill/common/dateUtils/isDateValid/index.js +0 -1
  2157. package/build/es/polyfill/common/dateUtils/isDateValid/isDateValid.js +0 -1
  2158. package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/index.js +0 -1
  2159. package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -1
  2160. package/build/es/polyfill/common/dateUtils/isWithinRange/index.js +0 -1
  2161. package/build/es/polyfill/common/dateUtils/isWithinRange/isWithinRange.js +0 -1
  2162. package/build/es/polyfill/common/dateUtils/moveToWithinRange/index.js +0 -1
  2163. package/build/es/polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -2
  2164. package/build/es/polyfill/common/deviceDetection/deviceDetection.js +0 -1
  2165. package/build/es/polyfill/common/deviceDetection/index.js +0 -1
  2166. package/build/es/polyfill/common/direction.js +0 -1
  2167. package/build/es/polyfill/common/domHelpers/documentIosClick.js +0 -5
  2168. package/build/es/polyfill/common/domHelpers/index.js +0 -1
  2169. package/build/es/polyfill/common/fakeEvents.js +0 -1
  2170. package/build/es/polyfill/common/fileType.js +0 -1
  2171. package/build/es/polyfill/common/flowHeader/FlowHeader.js +0 -1
  2172. package/build/es/polyfill/common/focusBoundary/FocusBoundary.js +0 -1
  2173. package/build/es/polyfill/common/focusBoundary/FocusBoundary.spec.js +0 -1
  2174. package/build/es/polyfill/common/focusBoundary/index.js +0 -1
  2175. package/build/es/polyfill/common/focusBoundary/utils/getFocusableElements.js +0 -6
  2176. package/build/es/polyfill/common/focusBoundary/utils/index.js +0 -1
  2177. package/build/es/polyfill/common/focusBoundary/utils/resetFocus.js +0 -6
  2178. package/build/es/polyfill/common/historyNavigator/historyNavigator.js +0 -1
  2179. package/build/es/polyfill/common/historyNavigator/index.js +0 -1
  2180. package/build/es/polyfill/common/hooks/index.js +0 -1
  2181. package/build/es/polyfill/common/hooks/useClientWidth/useClientWidth.js +0 -5
  2182. package/build/es/polyfill/common/hooks/useConditionalListener/index.js +0 -1
  2183. package/build/es/polyfill/common/hooks/useConditionalListener/useConditionalListener.js +0 -1
  2184. package/build/es/polyfill/common/hooks/useDirection/index.js +0 -1
  2185. package/build/es/polyfill/common/hooks/useDirection/useDirection.js +0 -1
  2186. package/build/es/polyfill/common/hooks/useHasIntersected/index.js +0 -1
  2187. package/build/es/polyfill/common/hooks/useHasIntersected/useHasIntersected.js +0 -11
  2188. package/build/es/polyfill/common/hooks/useLayout/index.js +0 -1
  2189. package/build/es/polyfill/common/hooks/useLayout/useLayout.js +0 -1
  2190. package/build/es/polyfill/common/index.js +0 -2
  2191. package/build/es/polyfill/common/key.js +0 -1
  2192. package/build/es/polyfill/common/keyCodes.js +0 -5
  2193. package/build/es/polyfill/common/locale/index.js +0 -37
  2194. package/build/es/polyfill/common/panel/Panel.js +0 -10
  2195. package/build/es/polyfill/common/panel/index.js +0 -1
  2196. package/build/es/polyfill/common/propsValues/breakpoint.js +0 -1
  2197. package/build/es/polyfill/common/propsValues/control.js +0 -1
  2198. package/build/es/polyfill/common/propsValues/dateMode.js +0 -1
  2199. package/build/es/polyfill/common/propsValues/layouts.js +0 -1
  2200. package/build/es/polyfill/common/propsValues/markdownNodeType.js +0 -1
  2201. package/build/es/polyfill/common/propsValues/monthFormat.js +0 -1
  2202. package/build/es/polyfill/common/propsValues/position.js +0 -1
  2203. package/build/es/polyfill/common/propsValues/profileType.js +0 -1
  2204. package/build/es/polyfill/common/propsValues/scroll.js +0 -1
  2205. package/build/es/polyfill/common/propsValues/sentiment.js +0 -1
  2206. package/build/es/polyfill/common/propsValues/size.js +0 -1
  2207. package/build/es/polyfill/common/propsValues/status.js +0 -1
  2208. package/build/es/polyfill/common/propsValues/type.js +0 -3
  2209. package/build/es/polyfill/common/propsValues/typography.js +0 -3
  2210. package/build/es/polyfill/common/propsValues/variant.js +0 -1
  2211. package/build/es/polyfill/common/propsValues/width.js +0 -1
  2212. package/build/es/polyfill/common/requirements.js +0 -3
  2213. package/build/es/polyfill/common/responsivePanel/ResponsivePanel.js +0 -1
  2214. package/build/es/polyfill/common/responsivePanel/index.js +0 -1
  2215. package/build/es/polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +0 -2
  2216. package/build/es/polyfill/common/textFormat/formatWithPattern/index.js +0 -1
  2217. package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -1
  2218. package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +0 -1
  2219. package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -1
  2220. package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +0 -1
  2221. package/build/es/polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -2
  2222. package/build/es/polyfill/common/textFormat/getDistanceToSymbol/index.js +0 -1
  2223. package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -1
  2224. package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +0 -1
  2225. package/build/es/polyfill/common/textFormat/index.js +0 -1
  2226. package/build/es/polyfill/common/textFormat/unformatWithPattern/index.js +0 -1
  2227. package/build/es/polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -1
  2228. package/build/es/polyfill/common/theme.js +0 -1
  2229. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
  2230. package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
  2231. package/build/es/polyfill/criticalBanner/index.js +0 -1
  2232. package/build/es/polyfill/dateInput/DateInput.js +0 -4
  2233. package/build/es/polyfill/dateInput/DateInput.messages.js +0 -1
  2234. package/build/es/polyfill/dateInput/DateInput.story.js +0 -1
  2235. package/build/es/polyfill/dateInput/index.js +0 -1
  2236. package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -2
  2237. package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/index.js +0 -1
  2238. package/build/es/polyfill/dateInput/utils/explodeDate/explodeDate.js +0 -1
  2239. package/build/es/polyfill/dateInput/utils/explodeDate/index.js +0 -1
  2240. package/build/es/polyfill/dateInput/utils/index.js +0 -1
  2241. package/build/es/polyfill/dateLookup/DateLookup.js +0 -3
  2242. package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +0 -1
  2243. package/build/es/polyfill/dateLookup/dateHeader/index.js +0 -1
  2244. package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.js +0 -1
  2245. package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +0 -1
  2246. package/build/es/polyfill/dateLookup/dateTrigger/index.js +0 -1
  2247. package/build/es/polyfill/dateLookup/dayCalendar/DayCalendar.js +0 -1
  2248. package/build/es/polyfill/dateLookup/dayCalendar/index.js +0 -1
  2249. package/build/es/polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -4
  2250. package/build/es/polyfill/dateLookup/dayCalendar/table/index.js +0 -1
  2251. package/build/es/polyfill/dateLookup/getStartOfDay/getStartOfDay.js +0 -5
  2252. package/build/es/polyfill/dateLookup/getStartOfDay/index.js +0 -1
  2253. package/build/es/polyfill/dateLookup/index.js +0 -1
  2254. package/build/es/polyfill/dateLookup/monthCalendar/MonthCalendar.js +0 -1
  2255. package/build/es/polyfill/dateLookup/monthCalendar/index.js +0 -1
  2256. package/build/es/polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -1
  2257. package/build/es/polyfill/dateLookup/monthCalendar/table/index.js +0 -1
  2258. package/build/es/polyfill/dateLookup/tableLink/TableLink.js +0 -2
  2259. package/build/es/polyfill/dateLookup/tableLink/index.js +0 -1
  2260. package/build/es/polyfill/dateLookup/yearCalendar/YearCalendar.js +0 -1
  2261. package/build/es/polyfill/dateLookup/yearCalendar/index.js +0 -1
  2262. package/build/es/polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -1
  2263. package/build/es/polyfill/dateLookup/yearCalendar/table/index.js +0 -1
  2264. package/build/es/polyfill/decision/Decision.js +0 -5
  2265. package/build/es/polyfill/decision/decisionEnums.js +0 -3
  2266. package/build/es/polyfill/decision/index.js +0 -1
  2267. package/build/es/polyfill/definitionList/DefinitionList.js +0 -1
  2268. package/build/es/polyfill/definitionList/index.js +0 -1
  2269. package/build/es/polyfill/dimmer/Dimmer.js +0 -6
  2270. package/build/es/polyfill/dimmer/Dimmer.story.js +0 -2
  2271. package/build/es/polyfill/dimmer/dimmerManager/DimmerManager.js +0 -5
  2272. package/build/es/polyfill/dimmer/dimmerManager/index.js +0 -1
  2273. package/build/es/polyfill/dimmer/index.js +0 -1
  2274. package/build/es/polyfill/display/Display.js +0 -1
  2275. package/build/es/polyfill/display/Display.story.js +0 -2
  2276. package/build/es/polyfill/display/index.js +0 -1
  2277. package/build/es/polyfill/drawer/Drawer.js +0 -1
  2278. package/build/es/polyfill/drawer/index.js +0 -1
  2279. package/build/es/polyfill/dropFade/DropFade.js +0 -3
  2280. package/build/es/polyfill/dropFade/DropFade.story.js +0 -1
  2281. package/build/es/polyfill/dropFade/index.js +0 -1
  2282. package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +0 -1
  2283. package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +0 -8
  2284. package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +0 -1
  2285. package/build/es/polyfill/dynamicFieldDefinitionList/index.js +0 -1
  2286. package/build/es/polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +0 -2
  2287. package/build/es/polyfill/dynamicFieldDefinitionList/utils/text-format.js +0 -1
  2288. package/build/es/polyfill/emphasis/Emphasis.js +0 -2
  2289. package/build/es/polyfill/emphasis/Emphasis.story.js +0 -1
  2290. package/build/es/polyfill/emphasis/EmphasisHtmlTransformer.js +0 -7
  2291. package/build/es/polyfill/emphasis/index.js +0 -1
  2292. package/build/es/polyfill/flowNavigation/FlowNavigation.js +0 -2
  2293. package/build/es/polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +0 -1
  2294. package/build/es/polyfill/flowNavigation/animatedLabel/index.js +0 -1
  2295. package/build/es/polyfill/flowNavigation/backButton/BackButton.js +0 -1
  2296. package/build/es/polyfill/flowNavigation/backButton/index.js +0 -1
  2297. package/build/es/polyfill/header/Header.js +0 -5
  2298. package/build/es/polyfill/header/Header.spec.js +0 -1
  2299. package/build/es/polyfill/header/Header.story.js +0 -2
  2300. package/build/es/polyfill/header/index.js +0 -1
  2301. package/build/es/polyfill/i18n/cs.json +0 -44
  2302. package/build/es/polyfill/i18n/de.json +0 -44
  2303. package/build/es/polyfill/i18n/en.json +0 -41
  2304. package/build/es/polyfill/i18n/es.json +0 -44
  2305. package/build/es/polyfill/i18n/fr.json +0 -44
  2306. package/build/es/polyfill/i18n/hu.json +0 -44
  2307. package/build/es/polyfill/i18n/id.json +0 -44
  2308. package/build/es/polyfill/i18n/index.js +0 -1
  2309. package/build/es/polyfill/i18n/it.json +0 -44
  2310. package/build/es/polyfill/i18n/ja.json +0 -44
  2311. package/build/es/polyfill/i18n/pl.json +0 -44
  2312. package/build/es/polyfill/i18n/pt.json +0 -44
  2313. package/build/es/polyfill/i18n/ro.json +0 -44
  2314. package/build/es/polyfill/i18n/ru.json +0 -44
  2315. package/build/es/polyfill/i18n/th.json +0 -44
  2316. package/build/es/polyfill/i18n/tr.json +0 -44
  2317. package/build/es/polyfill/i18n/uk.json +0 -44
  2318. package/build/es/polyfill/i18n/zh-CN.json +0 -44
  2319. package/build/es/polyfill/i18n/zh.json +0 -44
  2320. package/build/es/polyfill/i18n/zh_CN.json +0 -44
  2321. package/build/es/polyfill/image/Image.js +0 -12
  2322. package/build/es/polyfill/image/index.js +0 -1
  2323. package/build/es/polyfill/index.js +0 -13
  2324. package/build/es/polyfill/info/Info.js +0 -1
  2325. package/build/es/polyfill/info/Info.story.js +0 -1
  2326. package/build/es/polyfill/info/index.js +0 -1
  2327. package/build/es/polyfill/info/infoPresentations.js +0 -2
  2328. package/build/es/polyfill/inlineAlert/InlineAlert.js +0 -1
  2329. package/build/es/polyfill/inlineAlert/index.js +0 -1
  2330. package/build/es/polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -1
  2331. package/build/es/polyfill/inputWithDisplayFormat/index.js +0 -1
  2332. package/build/es/polyfill/inputs/Input.js +0 -1
  2333. package/build/es/polyfill/inputs/TextArea.js +0 -1
  2334. package/build/es/polyfill/inputs/_common.js +0 -2
  2335. package/build/es/polyfill/instructionsList/InstructionsList.js +0 -3
  2336. package/build/es/polyfill/instructionsList/index.js +0 -1
  2337. package/build/es/polyfill/link/Link.js +0 -5
  2338. package/build/es/polyfill/link/Link.spec.js +0 -1
  2339. package/build/es/polyfill/link/Link.story.js +0 -1
  2340. package/build/es/polyfill/link/index.js +0 -1
  2341. package/build/es/polyfill/listItem/ListItem.js +0 -1
  2342. package/build/es/polyfill/listItem/ListItem.spec.js +0 -1
  2343. package/build/es/polyfill/listItem/ListItem.story.js +0 -1
  2344. package/build/es/polyfill/listItem/index.js +0 -1
  2345. package/build/es/polyfill/loader/Loader.js +0 -11
  2346. package/build/es/polyfill/loader/Loader.story.js +0 -1
  2347. package/build/es/polyfill/loader/index.js +0 -1
  2348. package/build/es/polyfill/logo/Logo.js +0 -1
  2349. package/build/es/polyfill/logo/Logo.story.js +0 -1
  2350. package/build/es/polyfill/logo/index.js +0 -1
  2351. package/build/es/polyfill/logo/logoTypes.js +0 -2
  2352. package/build/es/polyfill/markdown/Markdown.js +0 -1
  2353. package/build/es/polyfill/markdown/Markdown.story.js +0 -1
  2354. package/build/es/polyfill/markdown/index.js +0 -1
  2355. package/build/es/polyfill/modal/Modal.js +0 -1
  2356. package/build/es/polyfill/modal/Modal.story.js +0 -2
  2357. package/build/es/polyfill/modal/index.js +0 -1
  2358. package/build/es/polyfill/money/Money.js +0 -1
  2359. package/build/es/polyfill/money/Money.story.js +0 -1
  2360. package/build/es/polyfill/money/index.js +0 -1
  2361. package/build/es/polyfill/moneyInput/MoneyInput.js +0 -5
  2362. package/build/es/polyfill/moneyInput/MoneyInput.messages.js +0 -1
  2363. package/build/es/polyfill/moneyInput/MoneyInput.story.js +0 -1
  2364. package/build/es/polyfill/moneyInput/currencyFormatting.js +0 -4
  2365. package/build/es/polyfill/moneyInput/index.js +0 -1
  2366. package/build/es/polyfill/navigationOption/NavigationOption.js +0 -1
  2367. package/build/es/polyfill/navigationOption/index.js +0 -1
  2368. package/build/es/polyfill/navigationOptionsList/NavigationOptionsList.js +0 -1
  2369. package/build/es/polyfill/navigationOptionsList/index.js +0 -1
  2370. package/build/es/polyfill/nudge/Nudge.js +0 -3
  2371. package/build/es/polyfill/nudge/Nudge.spec.js +0 -1
  2372. package/build/es/polyfill/nudge/Nudge.story.js +0 -1
  2373. package/build/es/polyfill/nudge/index.js +0 -1
  2374. package/build/es/polyfill/overlayHeader/OverlayHeader.js +0 -1
  2375. package/build/es/polyfill/overlayHeader/index.js +0 -1
  2376. package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +0 -1
  2377. package/build/es/polyfill/phoneNumberInput/data/countries.js +0 -1
  2378. package/build/es/polyfill/phoneNumberInput/index.js +0 -1
  2379. package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -1
  2380. package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/index.js +0 -1
  2381. package/build/es/polyfill/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -8
  2382. package/build/es/polyfill/phoneNumberInput/utils/excludeCountries/index.js +0 -1
  2383. package/build/es/polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +0 -7
  2384. package/build/es/polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +0 -7
  2385. package/build/es/polyfill/phoneNumberInput/utils/findCountryByCode/index.js +0 -1
  2386. package/build/es/polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -1
  2387. package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -1
  2388. package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +0 -1
  2389. package/build/es/polyfill/phoneNumberInput/utils/index.js +0 -1
  2390. package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +0 -1
  2391. package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +0 -7
  2392. package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/index.js +0 -1
  2393. package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +0 -1
  2394. package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +0 -1
  2395. package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -6
  2396. package/build/es/polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -1
  2397. package/build/es/polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -11
  2398. package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +0 -1
  2399. package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -2
  2400. package/build/es/polyfill/popover/Popover.js +0 -4
  2401. package/build/es/polyfill/popover/index.js +0 -1
  2402. package/build/es/polyfill/processIndicator/ProcessIndicator.js +0 -12
  2403. package/build/es/polyfill/processIndicator/ProcessIndicator.story.js +0 -1
  2404. package/build/es/polyfill/processIndicator/index.js +0 -1
  2405. package/build/es/polyfill/progress/Progress.js +0 -1
  2406. package/build/es/polyfill/progress/Progress.story.js +0 -1
  2407. package/build/es/polyfill/progress/index.js +0 -1
  2408. package/build/es/polyfill/progressBar/ProgressBar.js +0 -1
  2409. package/build/es/polyfill/progressBar/ProgressBar.story.js +0 -1
  2410. package/build/es/polyfill/progressBar/index.js +0 -1
  2411. package/build/es/polyfill/promoCard/PromoCard.js +0 -51
  2412. package/build/es/polyfill/promoCard/PromoCard.spec.js +0 -13
  2413. package/build/es/polyfill/promoCard/PromoCard.story.js +0 -1
  2414. package/build/es/polyfill/promoCard/PromoCardContext.js +0 -19
  2415. package/build/es/polyfill/promoCard/PromoCardContext.spec.js +0 -4
  2416. package/build/es/polyfill/promoCard/PromoCardGroup.js +0 -20
  2417. package/build/es/polyfill/promoCard/PromoCardGroup.spec.js +0 -5
  2418. package/build/es/polyfill/promoCard/PromoCardGroup.story.js +0 -1
  2419. package/build/es/polyfill/promoCard/PromoCardIndicator.js +0 -16
  2420. package/build/es/polyfill/promoCard/index.js +0 -1
  2421. package/build/es/polyfill/provider/Provider.js +0 -1
  2422. package/build/es/polyfill/provider/Provider.spec.js +0 -1
  2423. package/build/es/polyfill/provider/Provider.story.js +0 -1
  2424. package/build/es/polyfill/provider/direction/DirectionProvider.js +0 -1
  2425. package/build/es/polyfill/provider/direction/DirectionProvider.spec.js +0 -1
  2426. package/build/es/polyfill/provider/direction/index.js +0 -1
  2427. package/build/es/polyfill/provider/index.js +0 -1
  2428. package/build/es/polyfill/provider/language/LanguageProvider.js +0 -1
  2429. package/build/es/polyfill/provider/language/LanguageProvider.spec.js +0 -1
  2430. package/build/es/polyfill/provider/language/index.js +0 -1
  2431. package/build/es/polyfill/radio/Radio.js +0 -1
  2432. package/build/es/polyfill/radio/index.js +0 -1
  2433. package/build/es/polyfill/radioGroup/RadioGroup.js +0 -2
  2434. package/build/es/polyfill/radioGroup/index.js +0 -1
  2435. package/build/es/polyfill/radioOption/RadioOption.js +0 -1
  2436. package/build/es/polyfill/radioOption/index.js +0 -1
  2437. package/build/es/polyfill/section/Section.js +0 -5
  2438. package/build/es/polyfill/section/Section.spec.js +0 -1
  2439. package/build/es/polyfill/section/Section.story.js +0 -1
  2440. package/build/es/polyfill/section/index.js +0 -1
  2441. package/build/es/polyfill/select/Select.js +0 -16
  2442. package/build/es/polyfill/select/Select.messages.js +0 -1
  2443. package/build/es/polyfill/select/index.js +0 -1
  2444. package/build/es/polyfill/select/option/Option.js +0 -2
  2445. package/build/es/polyfill/select/option/index.js +0 -1
  2446. package/build/es/polyfill/select/searchBox/SearchBox.js +0 -1
  2447. package/build/es/polyfill/select/searchBox/index.js +0 -1
  2448. package/build/es/polyfill/sizeSwapper/SizeSwapper.js +0 -5
  2449. package/build/es/polyfill/sizeSwapper/index.js +0 -1
  2450. package/build/es/polyfill/slidingPanel/SlidingPanel.js +0 -2
  2451. package/build/es/polyfill/slidingPanel/index.js +0 -1
  2452. package/build/es/polyfill/snackbar/Snackbar.js +0 -1
  2453. package/build/es/polyfill/snackbar/SnackbarContext.js +0 -1
  2454. package/build/es/polyfill/snackbar/SnackbarProvider.js +0 -1
  2455. package/build/es/polyfill/snackbar/index.js +0 -1
  2456. package/build/es/polyfill/snackbar/useSnackbar.js +0 -1
  2457. package/build/es/polyfill/statusIcon/StatusIcon.js +0 -1
  2458. package/build/es/polyfill/statusIcon/StatusIcon.story.js +0 -1
  2459. package/build/es/polyfill/statusIcon/index.js +0 -1
  2460. package/build/es/polyfill/stepper/Stepper.js +0 -1
  2461. package/build/es/polyfill/stepper/deviceDetection.js +0 -4
  2462. package/build/es/polyfill/sticky/Sticky.js +0 -1
  2463. package/build/es/polyfill/sticky/index.js +0 -1
  2464. package/build/es/polyfill/summary/Summary.js +0 -1
  2465. package/build/es/polyfill/summary/Summary.messages.js +0 -1
  2466. package/build/es/polyfill/summary/index.js +0 -1
  2467. package/build/es/polyfill/switch/Switch.js +0 -1
  2468. package/build/es/polyfill/switch/Switch.story.js +0 -1
  2469. package/build/es/polyfill/switch/index.js +0 -1
  2470. package/build/es/polyfill/switchOption/SwitchOption.js +0 -1
  2471. package/build/es/polyfill/switchOption/SwitchOption.story.js +0 -1
  2472. package/build/es/polyfill/switchOption/index.js +0 -1
  2473. package/build/es/polyfill/tabs/Tab.js +0 -1
  2474. package/build/es/polyfill/tabs/TabList.js +0 -1
  2475. package/build/es/polyfill/tabs/TabPanel.js +0 -1
  2476. package/build/es/polyfill/tabs/Tabs.js +0 -1
  2477. package/build/es/polyfill/tabs/index.js +0 -1
  2478. package/build/es/polyfill/tabs/utils.js +0 -5
  2479. package/build/es/polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -1
  2480. package/build/es/polyfill/textareaWithDisplayFormat/index.js +0 -1
  2481. package/build/es/polyfill/tile/Tile.js +0 -1
  2482. package/build/es/polyfill/tile/index.js +0 -1
  2483. package/build/es/polyfill/title/Title.js +0 -1
  2484. package/build/es/polyfill/title/Title.spec.js +0 -1
  2485. package/build/es/polyfill/title/Title.story.js +0 -1
  2486. package/build/es/polyfill/title/index.js +0 -1
  2487. package/build/es/polyfill/tooltip/Tooltip.js +0 -8
  2488. package/build/es/polyfill/tooltip/Tooltip.spec.js +0 -1
  2489. package/build/es/polyfill/tooltip/Tooltip.story.js +0 -1
  2490. package/build/es/polyfill/tooltip/index.js +0 -1
  2491. package/build/es/polyfill/typeahead/Typeahead.js +0 -1
  2492. package/build/es/polyfill/typeahead/index.js +0 -1
  2493. package/build/es/polyfill/typeahead/typeaheadInput/TypeaheadInput.js +0 -1
  2494. package/build/es/polyfill/typeahead/typeaheadOption/TypeaheadOption.js +0 -1
  2495. package/build/es/polyfill/typeahead/util/highlight.js +0 -1
  2496. package/build/es/polyfill/upload/Upload.js +0 -12
  2497. package/build/es/polyfill/upload/Upload.messages.js +0 -1
  2498. package/build/es/polyfill/upload/index.js +0 -1
  2499. package/build/es/polyfill/upload/steps/completeStep/completeStep.js +0 -1
  2500. package/build/es/polyfill/upload/steps/completeStep/index.js +0 -1
  2501. package/build/es/polyfill/upload/steps/index.js +0 -1
  2502. package/build/es/polyfill/upload/steps/mediaUploadStep/index.js +0 -1
  2503. package/build/es/polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -1
  2504. package/build/es/polyfill/upload/steps/processingStep/index.js +0 -1
  2505. package/build/es/polyfill/upload/steps/processingStep/processingStep.js +0 -1
  2506. package/build/es/polyfill/upload/steps/uploadImageStep/index.js +0 -1
  2507. package/build/es/polyfill/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
  2508. package/build/es/polyfill/upload/uploadSteps.js +0 -2
  2509. package/build/es/polyfill/upload/utils/asyncFileRead/asyncFileRead.js +0 -1
  2510. package/build/es/polyfill/upload/utils/asyncFileRead/index.js +0 -1
  2511. package/build/es/polyfill/upload/utils/getFileType/getFileType.js +0 -1
  2512. package/build/es/polyfill/upload/utils/getFileType/index.js +0 -1
  2513. package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -2
  2514. package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +0 -1
  2515. package/build/es/polyfill/upload/utils/index.js +0 -1
  2516. package/build/es/polyfill/upload/utils/isSizeValid/index.js +0 -1
  2517. package/build/es/polyfill/upload/utils/isSizeValid/isSizeValid.js +0 -1
  2518. package/build/es/polyfill/upload/utils/isTypeValid/index.js +0 -1
  2519. package/build/es/polyfill/upload/utils/isTypeValid/isTypeValid.js +0 -1
  2520. package/build/es/polyfill/upload/utils/postData/index.js +0 -1
  2521. package/build/es/polyfill/upload/utils/postData/postData.js +0 -1
  2522. package/build/es/polyfill/upload/utils/requestMedia/index.js +0 -1
  2523. package/build/es/polyfill/upload/utils/requestMedia/requestMedia.js +0 -1
  2524. package/build/es/polyfill/uploadInput/UploadInput.js +0 -8
  2525. package/build/es/polyfill/uploadInput/UploadInput.messages.js +0 -1
  2526. package/build/es/polyfill/uploadInput/UploadInput.spec.js +0 -1
  2527. package/build/es/polyfill/uploadInput/UploadInput.story.js +0 -1
  2528. package/build/es/polyfill/uploadInput/index.js +0 -1
  2529. package/build/es/polyfill/uploadInput/types.js +0 -1
  2530. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +0 -1
  2531. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.messages.js +0 -1
  2532. package/build/es/polyfill/uploadInput/uploadButton/UploadButton.spec.js +0 -3
  2533. package/build/es/polyfill/uploadInput/uploadButton/defaults.js +0 -1
  2534. package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +0 -3
  2535. package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +0 -1
  2536. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +0 -2
  2537. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.messages.js +0 -1
  2538. package/build/es/polyfill/uploadInput/uploadItem/UploadItem.spec.js +0 -1
  2539. package/build/es/polyfill/uploadInput/uploadItem/UploadItemBody.js +0 -1
  2540. package/build/es/polyfill/utilities/deprecatedProperty/deprecatedProperty.js +0 -1
  2541. package/build/es/polyfill/utilities/deprecatedProperty/index.js +0 -1
  2542. package/build/es/polyfill/utilities/index.js +0 -1
  2543. package/build/es/polyfill/utilities/logActionRequired.js +0 -1
  2544. package/build/es/polyfill/utils.js +0 -0
  2545. package/build/es/polyfill/withDisplayFormat/WithDisplayFormat.js +0 -8
  2546. package/build/es/polyfill/withDisplayFormat/index.js +0 -1
  2547. package/build/es/polyfill/withNextPortal/withNextPortal.js +0 -1
  2548. package/build/types/accordion/Accordion.story.d.ts +0 -46
  2549. package/build/types/actionButton/ActionButton.spec.d.ts +0 -1
  2550. package/build/types/actionButton/ActionButton.story.d.ts +0 -15
  2551. package/build/types/actionOption/ActionOption.story.d.ts +0 -32
  2552. package/build/types/alert/Alert.story.d.ts +0 -59
  2553. package/build/types/avatar/Avatar.story.d.ts +0 -13
  2554. package/build/types/avatarWrapper/AvatarWrapper.story.d.ts +0 -62
  2555. package/build/types/body/Body.spec.d.ts +0 -1
  2556. package/build/types/body/Body.story.d.ts +0 -11
  2557. package/build/types/button/Button.story.d.ts +0 -4619
  2558. package/build/types/checkbox/Checkbox.story.d.ts +0 -54
  2559. package/build/types/checkboxButton/CheckboxButton.spec.d.ts +0 -1
  2560. package/build/types/checkboxButton/CheckboxButton.story.d.ts +0 -16
  2561. package/build/types/checkboxOption/CheckboxOption.spec.d.ts +0 -1
  2562. package/build/types/checkboxOption/CheckboxOption.story.d.ts +0 -8
  2563. package/build/types/chevron/Chevron.story.d.ts +0 -44
  2564. package/build/types/chips/Chips.spec.d.ts +0 -1
  2565. package/build/types/chips/Chips.story.d.ts +0 -9
  2566. package/build/types/common/bottomSheet/BottomSheet.spec.d.ts +0 -1
  2567. package/build/types/common/bottomSheet/BottomSheet.story.d.ts +0 -29
  2568. package/build/types/common/card/Card.spec.d.ts +0 -1
  2569. package/build/types/common/card/Card.story.d.ts +0 -6
  2570. package/build/types/common/focusBoundary/FocusBoundary.spec.d.ts +0 -1
  2571. package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +0 -10
  2572. package/build/types/dateInput/DateInput.story.d.ts +0 -71
  2573. package/build/types/dimmer/Dimmer.story.d.ts +0 -25
  2574. package/build/types/display/Display.story.d.ts +0 -7
  2575. package/build/types/dropFade/DropFade.story.d.ts +0 -10
  2576. package/build/types/emphasis/Emphasis.story.d.ts +0 -13
  2577. package/build/types/header/Header.spec.d.ts +0 -1
  2578. package/build/types/header/Header.story.d.ts +0 -10
  2579. package/build/types/info/Info.story.d.ts +0 -39
  2580. package/build/types/link/Link.spec.d.ts +0 -1
  2581. package/build/types/link/Link.story.d.ts +0 -9
  2582. package/build/types/listItem/ListItem.spec.d.ts +0 -1
  2583. package/build/types/listItem/ListItem.story.d.ts +0 -17
  2584. package/build/types/loader/Loader.story.d.ts +0 -28
  2585. package/build/types/logo/Logo.story.d.ts +0 -32
  2586. package/build/types/markdown/Markdown.story.d.ts +0 -39
  2587. package/build/types/modal/Modal.story.d.ts +0 -27
  2588. package/build/types/money/Money.story.d.ts +0 -19
  2589. package/build/types/moneyInput/MoneyInput.story.d.ts +0 -35
  2590. package/build/types/nudge/Nudge.spec.d.ts +0 -1
  2591. package/build/types/nudge/Nudge.story.d.ts +0 -8
  2592. package/build/types/processIndicator/ProcessIndicator.story.d.ts +0 -10
  2593. package/build/types/progress/Progress.story.d.ts +0 -17
  2594. package/build/types/progressBar/ProgressBar.story.d.ts +0 -11
  2595. package/build/types/promoCard/PromoCard.spec.d.ts +0 -1
  2596. package/build/types/promoCard/PromoCard.story.d.ts +0 -11
  2597. package/build/types/promoCard/PromoCardContext.spec.d.ts +0 -1
  2598. package/build/types/promoCard/PromoCardGroup.spec.d.ts +0 -1
  2599. package/build/types/promoCard/PromoCardGroup.story.d.ts +0 -8
  2600. package/build/types/provider/Provider.spec.d.ts +0 -1
  2601. package/build/types/provider/Provider.story.d.ts +0 -22
  2602. package/build/types/provider/direction/DirectionProvider.spec.d.ts +0 -1
  2603. package/build/types/provider/language/LanguageProvider.spec.d.ts +0 -1
  2604. package/build/types/section/Section.spec.d.ts +0 -1
  2605. package/build/types/section/Section.story.d.ts +0 -15
  2606. package/build/types/statusIcon/StatusIcon.story.d.ts +0 -15
  2607. package/build/types/switch/Switch.story.d.ts +0 -15
  2608. package/build/types/switchOption/SwitchOption.story.d.ts +0 -22
  2609. package/build/types/test-utils/index.d.ts +0 -103
  2610. package/build/types/title/Title.spec.d.ts +0 -1
  2611. package/build/types/title/Title.story.d.ts +0 -8
  2612. package/build/types/tooltip/Tooltip.spec.d.ts +0 -1
  2613. package/build/types/tooltip/Tooltip.story.d.ts +0 -28
  2614. package/build/types/uploadInput/UploadInput.spec.d.ts +0 -1
  2615. package/build/types/uploadInput/UploadInput.story.d.ts +0 -20
  2616. package/build/types/uploadInput/uploadButton/UploadButton.spec.d.ts +0 -1
  2617. package/build/types/uploadInput/uploadButton/getAllowedFileTypes.spec.d.ts +0 -1
  2618. package/build/types/uploadInput/uploadItem/UploadItem.spec.d.ts +0 -1
  2619. package/build/umd/no-polyfill/main.js +0 -1
  2620. package/build/umd/polyfill/main.js +0 -1
  2621. package/scripts/generate-type-declarations.js +0 -75
  2622. /package/build/{es/no-polyfill/avatar → avatar}/colors/avatarColorTestCases.json +0 -0
  2623. /package/build/{es/no-polyfill/logo → logo}/svg/flag-inverse.svg +0 -0
  2624. /package/build/{es/no-polyfill/logo → logo}/svg/flag.svg +0 -0
  2625. /package/build/{es/no-polyfill/logo → logo}/svg/logo-business-inverse.svg +0 -0
  2626. /package/build/{es/no-polyfill/logo → logo}/svg/logo-business.svg +0 -0
  2627. /package/build/{es/no-polyfill/logo → logo}/svg/logo-inverse.svg +0 -0
  2628. /package/build/{es/no-polyfill/logo → logo}/svg/logo.svg +0 -0
  2629. /package/{build/es/polyfill → src}/avatar/colors/avatarColorTestCases.json +0 -0
  2630. /package/{build/es/no-polyfill → src}/i18n/cs.json +0 -0
  2631. /package/{build/es/no-polyfill → src}/i18n/de.json +0 -0
  2632. /package/{build/es/no-polyfill → src}/i18n/en.json +0 -0
  2633. /package/{build/es/no-polyfill → src}/i18n/es.json +0 -0
  2634. /package/{build/es/no-polyfill → src}/i18n/fr.json +0 -0
  2635. /package/{build/es/no-polyfill → src}/i18n/hu.json +0 -0
  2636. /package/{build/es/no-polyfill → src}/i18n/id.json +0 -0
  2637. /package/{build/es/no-polyfill → src}/i18n/it.json +0 -0
  2638. /package/{build/es/no-polyfill → src}/i18n/ja.json +0 -0
  2639. /package/{build/es/no-polyfill → src}/i18n/pl.json +0 -0
  2640. /package/{build/es/no-polyfill → src}/i18n/pt.json +0 -0
  2641. /package/{build/es/no-polyfill → src}/i18n/ro.json +0 -0
  2642. /package/{build/es/no-polyfill → src}/i18n/ru.json +0 -0
  2643. /package/{build/es/no-polyfill → src}/i18n/th.json +0 -0
  2644. /package/{build/es/no-polyfill → src}/i18n/tr.json +0 -0
  2645. /package/{build/es/no-polyfill → src}/i18n/uk.json +0 -0
  2646. /package/{build/es/no-polyfill → src}/i18n/zh-CN.json +0 -0
  2647. /package/{build/es/no-polyfill → src}/i18n/zh.json +0 -0
  2648. /package/{build/es/no-polyfill → src}/i18n/zh_CN.json +0 -0
  2649. /package/{build/es/polyfill → src}/logo/svg/flag-inverse.svg +0 -0
  2650. /package/{build/es/polyfill → src}/logo/svg/flag.svg +0 -0
  2651. /package/{build/es/polyfill → src}/logo/svg/logo-business-inverse.svg +0 -0
  2652. /package/{build/es/polyfill → src}/logo/svg/logo-business.svg +0 -0
  2653. /package/{build/es/polyfill → src}/logo/svg/logo-inverse.svg +0 -0
  2654. /package/{build/es/polyfill → src}/logo/svg/logo.svg +0 -0
@@ -1,13 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{render,fireEvent,screen}from"@testing-library/react";import React from"react";import PromoCard from"./PromoCard";import{jsx as _jsx}from"react/jsx-runtime";describe("PromoCard",function(){var a,b={title:"Test Title",imageSource:"test.jpg",imageAlt:"Test Image",description:"Test Description",indicatorLabel:"Test Indicator Label",testId:"test-promo-card"};beforeEach(function(){var c=render(/*#__PURE__*/_jsx(PromoCard,_objectSpread({},b))),d=c.rerender;a=function(a){d(/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),a)))}}),it("matches snapshot",function(){var a=render(/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),{},{id:"test-promo-card"}))),c=a.container;expect(c.firstChild).toMatchSnapshot()}),it("renders",function(){var c=_objectSpread(_objectSpread({},b),{},{title:"Test text"});// Change props
2
- expect(screen.getByTestId("test-promo-card")).toBeInTheDocument(),expect(screen.getByTestId("test-promo-card")).toHaveClass("np-Card--promoCard"),a(c),expect(screen.getByText("Test text")).toBeInTheDocument()}),it("renders title as an `h3`",function(){var c=_objectSpread(_objectSpread({},b),{},{headingLevel:"h4"});// Change props
3
- expect(screen.getByRole("heading",{level:3})).toBeInTheDocument(),expect(screen.queryByRole("heading",{level:4})).not.toBeInTheDocument(),a(c),expect(screen.getByRole("heading",{level:4})).toBeInTheDocument(),expect(screen.queryByRole("heading",{level:3})).not.toBeInTheDocument()}),it("renders as an link element",function(){var c=_objectSpread(_objectSpread({},b),{},{href:"https://wise.com/"});// Change props
4
- expect(screen.getByTestId("test-promo-card")).not.toHaveClass("np-Card--link"),expect(screen.getByText("Test Title")).not.toHaveAttribute("href"),a(c),expect(screen.getByTestId("test-promo-card")).toHaveClass("np-Card--link"),expect(screen.getByText("Test Title")).toHaveAttribute("href")}),it("renders the component with checkbox props",function(){var c=_objectSpread(_objectSpread({},b),{},{type:"checkbox"// or 'radio'
5
- });// Change props
6
- expect(screen.getByTestId("test-promo-card")).not.toHaveClass("np-Card--checked"),expect(screen.queryByRole("checkbox")).not.toBeInTheDocument(),a(c),expect(screen.getByTestId("test-promo-card")).toHaveClass("np-Card--checked"),expect(screen.getByRole("checkbox")).toBeInTheDocument()}),it("renders the component with radio props",function(){var c=_objectSpread(_objectSpread({},b),{},{type:"radio"// or 'checkbox'
7
- });// Change props
8
- expect(screen.getByTestId("test-promo-card")).not.toHaveClass("np-Card--checked"),expect(screen.queryByRole("radio")).not.toBeInTheDocument(),a(c),expect(screen.getByTestId("test-promo-card")).toHaveClass("np-Card--checked"),expect(screen.getByRole("radio")).toBeInTheDocument()}),it("doesnt render as a link or checked card when `herf` or `type` has been set",function(){var c=_objectSpread(_objectSpread({},b),{},{type:"radio",// or 'checkbox'
9
- href:"https://wise.com/"});// Change props
10
- a(c),expect(screen.getByTestId("test-promo-card")).not.toHaveClass("np-Card--checked"),expect(screen.getByTestId("test-promo-card")).not.toHaveClass("np-Card--link"),expect(screen.queryByRole("radio")).not.toBeInTheDocument(),expect(screen.getByText("Test Title")).not.toHaveAttribute("href")}),it("is set with class by the `className` prop",function(){var c=_objectSpread(_objectSpread({},b),{},{className:"test-custom"});// Change props
11
- expect(screen.getByTestId("test-promo-card")).not.toHaveClass("test-custom"),a(c),expect(screen.getByTestId("test-promo-card")).toHaveClass("test-custom")}),it("applies `is-disabled` class when isDisabled is true",function(){var c=_objectSpread(_objectSpread({},b),{},{isDisabled:!0});// Change props
12
- expect(screen.getByTestId("test-promo-card")).not.toHaveClass("is-disabled"),a(c),expect(screen.getByTestId("test-promo-card")).toHaveClass("is-disabled")}),it("calls the onClick function when the checkbox is clicked",function(){var c=_objectSpread(_objectSpread({},b),{},{type:"checkbox",isChecked:!1});// Change props
13
- a(c),expect(screen.getByTestId("test-promo-card")).not.toHaveClass("is-checked"),fireEvent.click(screen.getByRole("checkbox")),expect(screen.getByTestId("test-promo-card")).toHaveClass("is-checked")})});
@@ -1 +0,0 @@
1
- import PromoCard from"./PromoCard";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var meta={component:PromoCard,title:"Layouts/PromoCard",tags:["autodocs"]};export default meta;export var Default={args:{description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",title:"Digital",indicatorLabel:"Free",imageSource:"https://wise.com/web-art/assets/illustrations/digital-card-2-medium@2x.webp"}};export var Link={args:{description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",title:"Digital",href:"https://wise.com",indicatorLabel:"Free",imageSource:"https://wise.com/web-art/assets/illustrations/digital-card-2-medium@2x.webp"}};export var Check={args:{description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",title:"Digital",type:"checkbox",indicatorLabel:"Free",imageSource:"https://wise.com/web-art/assets/illustrations/digital-card-2-medium@2x.webp"}};export var DefaultChecked={args:{description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",title:"Digital",type:"checkbox",indicatorLabel:"Free",defaultChecked:!0,imageSource:"https://wise.com/web-art/assets/illustrations/digital-card-2-medium@2x.webp"}};export var Disabled={args:{description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",title:"Digital",type:"checkbox",isDisabled:!0,indicatorLabel:"Free",imageSource:"https://wise.com/web-art/assets/illustrations/digital-card-2-medium@2x.webp"}};export var CustomClass={args:{description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",title:"Digital",href:"https://wise.com",className:"np-CustomPromoCard",indicatorLabel:"Free",imageSource:"https://wise.com/web-art/assets/illustrations/digital-card-medium@2x.webp"},decorators:[function(a){return/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsx("style",{children:"\n .np-CustomPromoCard {\n --Card-background-color: var(--color-bright-yellow);\n --Card-indicator-icon-background-color: var(--color-dark-gold);\n --Card-indicator-icon-color: var(--color-contrast);\n }\n "}),/*#__PURE__*/_jsx(a,{})]})}]};
@@ -1,19 +0,0 @@
1
- import{useContext,createContext}from"react";/**
2
- * The type of the PromoCard context object.
3
- *
4
- * The context object contains the current state of the PromoCard group, whether
5
- * the group is disabled or not, and a function to call when the group value
6
- * changes. This value is used to provide context to child PromoCard components,
7
- * allowing them to interact with the group and update its state.
8
- */var defaultPromoCardContext={state:"",isDisabled:!1,// eslint-disable-next-line @typescript-eslint/no-empty-function
9
- onChange:function onChange(){}};/**
10
- * The PromoCard context object.
11
- */export var PromoCardContext=/*#__PURE__*/createContext(defaultPromoCardContext);/**
12
- * A custom hook for accessing the PromoCard context object.
13
- *
14
- * The `usePromoCardContext` hook is used to access the PromoCard context object
15
- * from within a child PromoCard component. It throws an error if the context
16
- * object is not available, which can help with debugging and development.
17
- *
18
- * @returns {PromoCardContextType} - The PromoCard context object.
19
- */export var usePromoCardContext=function(){return useContext(PromoCardContext)};export default PromoCardContext;
@@ -1,4 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.regexp.to-string.js";import{render,screen}from"@testing-library/react";import React from"react";import{PromoCardContext,usePromoCardContext}from"./PromoCardContext";// A simple component that consumes the context
2
- import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var TestComponent=function(){var a=usePromoCardContext();return/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsx("p",{children:"Value: ".concat(a.state)}),/*#__PURE__*/_jsx("p",{children:"Disabled: ".concat(a.isDisabled.toString())})]})};describe("PromoCardContext",function(){it("default values are accessible",function(){var a={state:"",isDisabled:!1,onChange:jest.fn()// You can mock this function for testing
3
- };render(/*#__PURE__*/_jsx(PromoCardContext.Provider,{value:a,children:/*#__PURE__*/_jsx(TestComponent,{})})),expect(screen.getByText("Value:")).toBeInTheDocument(),expect(screen.getByText("Disabled: false")).toBeInTheDocument()}),it("context value changes are reflected",function(){var a={state:"new value",isDisabled:!0,onChange:jest.fn()// You can mock this function for testing
4
- };render(/*#__PURE__*/_jsx(PromoCardContext.Provider,{value:a,children:/*#__PURE__*/_jsx(TestComponent,{})})),expect(screen.getByText("Value: new value")).toBeInTheDocument(),expect(screen.getByText("Disabled: true")).toBeInTheDocument()})});
@@ -1,20 +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"core-js/modules/es.array.map.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import classNames from"classnames";import React,{useState,useEffect,useMemo}from"react";import PromoCardContext from"./PromoCardContext";import{jsx as _jsx}from"react/jsx-runtime";/**
2
- * PromoCardGroup component.
3
- *
4
- * A PromoCardGroup is a container for PromoCard components that allows the user to select one or more
5
- * cards from a group. It can be used to display a set of related options, and can be customized with
6
- * various props to suit different use cases.
7
- *
8
- * @param {ReactNode} children - The PromoCard components to display inside the group.
9
- * @param {string} className - Optional class name(s) to add to the group container.
10
- * @param {string} defaultChecked - The default value for the group.
11
- * @param {string} id - Optional ID to add to the group container.
12
- * @param {boolean} isDisabled=false - Whether the group is disabled or not.
13
- * @param {string} label - Optional label to display above the group.
14
- * @param {Function} onChange - Optional function to call when the group value changes.
15
- * @param {string} testId - Optional ID to add to the group container for testing purposes.
16
- * @returns {JSX.Element} - The PromoCardGroup component.
17
- */var PromoCardGroup=function(a){var b=a.children,c=a.className,d=a.defaultChecked,e=void 0===d?"":d,f=a.id,g=a.isDisabled,h=void 0!==g&&g,i=a.onChange,j=void 0===i?function(){}:i,k=a.testId,l=useState(e),m=_slicedToArray(l,2),n=m[0],o=m[1],p=useState(null),q=_slicedToArray(p,2),r=q[0],s=q[1],t=useMemo(function(){return{state:n,isDisabled:h,onChange:function handleOnChange(a){o(a),j(a)}}},[n,h,j]),u=classNames(_defineProperty({"np-CardGroup":!0,"is-disabled":h},"".concat(c||""),c));return useEffect(function(){var a,c;o(e);// Collect an array of types from the children PromoCard components
18
- var d=null!==(a=null===(c=React.Children.map(b,function(a){return/*#__PURE__*/React.isValidElement(a)&&a.props.type?a.props.type:null}))||void 0===c?void 0:c.filter(function(a){return null!==a&&void 0!==a}))&&void 0!==a?a:[],f=d.every(function(a){return a===d[0]});// Check if all types are the same
19
- s(f&&"radio"===d[0]?"radiogroup":null)},[e,b]),/*#__PURE__*/_jsx(PromoCardContext.Provider,{value:t,children:/*#__PURE__*/_jsx("div",_objectSpread(_objectSpread({},{className:u,id:f,"data-testid":k,role:r// Add the role attribute here
20
- }),{},{children:b}))})};export default/*#__PURE__*/React.memo(PromoCardGroup);
@@ -1,5 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{render,screen}from"@testing-library/react";import PromoCard from"./PromoCard";import PromoCardGroup from"./PromoCardGroup";import{jsx as _jsx}from"react/jsx-runtime";describe("PromoCardGroup",function(){var a,b={title:"Test Card",description:"Test Description",imageSource:"https://via.placeholder.com/150",type:"radio"},c={testId:"test-promo-card-group",children:[/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),{},{testId:"test-1",value:"radio-1",id:"radio-1"}),"radio-1"),/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),{},{testId:"test-2",value:"radio-2",id:"radio-2"}),"radio-2")]};beforeEach(function(){var b=render(/*#__PURE__*/_jsx(PromoCardGroup,_objectSpread({},c))),d=b.rerender;a=function(a){d(/*#__PURE__*/_jsx(PromoCardGroup,_objectSpread(_objectSpread({},c),a)))}}),it("matches snapshot",function(){var a=render(/*#__PURE__*/_jsx(PromoCardGroup,_objectSpread({},c))),b=a.container;expect(b.firstChild).toMatchSnapshot()}),it("renders",function(){var d=_objectSpread(_objectSpread({},c),{},{children:[/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),{},{type:"checkbox",testId:"test-3",value:"radio-3"}),"radio-3"),/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),{},{type:"checkbox",testId:"test-4",value:"radio-4"}),"radio-4")]});// Change children
2
- expect(screen.getByTestId("test-promo-card-group")).toBeInTheDocument(),expect(screen.getByTestId("test-promo-card-group")).toHaveClass("np-CardGroup"),expect(screen.getByRole("radiogroup")).toBeInTheDocument(),a(d),expect(screen.getByTestId("test-4")).toBeInTheDocument()}),it("sets the `defaultValue` for the group",function(){var b=_objectSpread(_objectSpread({},c),{},{defaultChecked:"radio-1"});// Change children
3
- expect(screen.getByTestId("test-1")).not.toHaveClass("is-checked"),a(b),expect(screen.getByTestId("test-1")).toHaveClass("is-checked")}),it("not to render as a `radiogroup` if we have a mix of PromoCard types",function(){var d=_objectSpread(_objectSpread({},c),{},{children:[/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),{},{type:"checkbox",testId:"test-3",value:"radio-3"}),"radio-3"),/*#__PURE__*/_jsx(PromoCard,_objectSpread(_objectSpread({},b),{},{type:"checkbox",testId:"test-4 ",value:"radio-4"}),"radio-4")]});// Change children
4
- expect(screen.getByRole("radiogroup")).toBeInTheDocument(),a(d),expect(screen.queryByRole("radiogroup")).not.toBeInTheDocument(),expect(screen.getByTestId("test-4")).toBeInTheDocument()}),it("applies `is-disabled` class to all children when isDisabled is true",function(){var b=_objectSpread(_objectSpread({},c),{},{isDisabled:!0});// Change children
5
- expect(screen.getByTestId("test-1")).not.toHaveClass("is-disabled"),expect(screen.getByTestId("test-2")).not.toHaveClass("is-disabled"),a(b),expect(screen.getByTestId("test-1")).toHaveClass("is-disabled"),expect(screen.getByTestId("test-2")).toHaveClass("is-disabled")})});
@@ -1 +0,0 @@
1
- import PromoCard from"./PromoCard";import PromoCardGroup from"./PromoCardGroup";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 PromoCards=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(PromoCard,{title:"Digital",description:"A card that lives online and works anywhere. Easy, secure, and always on hand.",type:"radio",value:"digital",id:"digital",imageAlt:"",indicatorLabel:"Free",imageSource:"https://wise.com/web-art/assets/illustrations/digital-card-2-medium@2x.webp"}),/*#__PURE__*/_jsx(PromoCard,{title:"Standard",description:"Spend and withdraw money around the world. In your wallet and on your side.",type:"radio",value:"standard",id:"standard",imageAlt:"",indicatorLabel:"7 GBP",imageSource:"https://wise.com/web-art/assets/illustrations/personal-card-medium@2x.webp"}),/*#__PURE__*/_jsx(PromoCard,{title:"Eco",description:"A debit card made to biodegrade \u2014 no toxic gases, no toxic fees.",type:"radio",value:"eco",id:"eco",imageAlt:"",indicatorLabel:"9 GBP",imageSource:"https://wise.com/web-art/assets/illustrations/eco-card-medium@2x.webp"})]})},meta={component:PromoCardGroup,title:"Layouts/PromoCardGroup",tags:["autodocs"]};export default meta;export var Default={args:{children:/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(PromoCards,{})})}};export var DefaultChecked={args:{children:/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(PromoCards,{})}),defaultChecked:"standard"}};export var Disabled={args:{children:/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(PromoCards,{})}),isDisabled:!0}};
@@ -1,16 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["className","children","label","icon","testid"];import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{ArrowRight,Check,Download}from"@transferwise/icons";import classNames from"classnames";import Body from"../body";import{Typography}from"../common";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";/**
2
- * PromoCardIndicator component.
3
- *
4
- * A PromoCardIndicator is a small component that can be used to display
5
- * additional information or actions related to a PromoCard. It can be
6
- * customized with various props to suit different use cases.
7
- *
8
- * @param {string} className - Optional class name(s) to add to the indicator container.
9
- * @param {string} label - Optional label to display next to the indicator.
10
- * @param {string} icon - Optional icon to display in the indicator.
11
- * @param {string} testid - Optional ID to add to the indicator container for testing purposes.
12
- * @param {ReactNode} children - Optional children to display inside the indicator.
13
- * @returns {JSX.Element} - The PromoCardIndicator component.
14
- * @example
15
- * <PromoCardIndicator label="Download" icon="download" />
16
- */var PromoCardIndicator=function(a){var b=a.className,c=a.children,d=a.label,e=a.icon,f=a.testid,g=_objectWithoutProperties(a,_excluded),h=e&&{check:Check,arrow:ArrowRight,download:Download}[e];return/*#__PURE__*/_jsxs("div",_objectSpread(_objectSpread({className:classNames("np-Card-indicator",b),"data-testid":f},g),{},{children:[d&&/*#__PURE__*/_jsx(Body,{as:"span",type:Typography.BODY_LARGE_BOLD,className:"np-Card-indicatorText",children:d}),h&&/*#__PURE__*/_jsx("span",{className:"np-Card-indicatorIcon",children:/*#__PURE__*/_jsx(h,{size:24,"aria-hidden":"true"})}),c]}))};export default PromoCardIndicator;
@@ -1 +0,0 @@
1
- export{default}from"./PromoCard";export{default as PromoCardGroup}from"./PromoCardGroup";
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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"core-js/modules/es.array.concat.js";import PropTypes from"prop-types";import{IntlProvider}from"react-intl";import{adjustLocale,DEFAULT_LOCALE,getDirectionFromLocale}from"../common";import en from"../i18n/en.json";import{DirectionProvider}from"./direction";import{LanguageProvider}from"./language";import{jsx as _jsx}from"react/jsx-runtime";var Provider=function(a){var b,c=a.i18n,d=a.children,e=c.locale,f=c.messages,g=c.defaultRichTextElements,h=adjustLocale(e);return null===h?(console.warn("Unsupported locale value was provided: '".concat(e,"', defaulting to '").concat(DEFAULT_LOCALE,"'")),b={locale:DEFAULT_LOCALE,messages:_objectSpread(_objectSpread({},en),f)}):b={locale:h,messages:f},/*#__PURE__*/_jsx(DirectionProvider,{direction:getDirectionFromLocale(e),children:/*#__PURE__*/_jsx(LanguageProvider,{locale:e,children:/*#__PURE__*/_jsx(IntlProvider,{defaultLocale:DEFAULT_LOCALE,locale:b.locale,messages:b.messages,defaultRichTextElements:g,children:d})})})};Provider.propTypes={i18n:PropTypes.shape({locale:PropTypes.string.isRequired,messages:PropTypes.shape({}).isRequired,defaultRichTextElements:PropTypes.shape({})}).isRequired,children:PropTypes.node},Provider.defaultProps={children:void 0};export default Provider;
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";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 _regeneratorRuntime from"@babel/runtime/regenerator";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import{render,waitFor,screen}from"@testing-library/react";import{FormattedMessage,useIntl}from"react-intl";import closeButtonMessages from"../common/closeButton/CloseButton.messages";import Provider from".";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";describe("Provider",function(){beforeAll(function(){jest.spyOn(console,"error").mockImplementation(function(){return jest.fn()}),jest.spyOn(console,"error").mockImplementation(function(){return jest.fn()}),jest.spyOn(console,"warn").mockImplementation(function(){return jest.fn()})}),afterAll(function(){jest.restoreAllMocks()}),it("does not add any elements in the DOM",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function a(){var b,c,d,e;return _regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return b="en",a.next=3,import("../i18n/".concat(b,".json"));case 3:c=a.sent,d=render(/*#__PURE__*/_jsx(Provider,{i18n:{locale:b,messages:c}})),e=d.container,expect(e).toBeEmptyDOMElement();case 6:case"end":return a.stop();}},a)}))),it.each([["zh-HK","zh-HK"],["ru","ru"],["en-GB","en-GB"],["en-US","en-US"],["en_US","en-US"],["en_GB","en-GB"],["ja","ja"],["ja-JP","ja-JP"],["","en-GB"],[" ","en-GB"],[null,"en-GB"],[void 0,"en-GB"]])("check locale value \"%s\"",function(a,b){var c=render(/*#__PURE__*/_jsx(Provider,{i18n:{locale:a,messages:{}},children:/*#__PURE__*/_jsx(function TestComponent(){var a=useIntl();return/*#__PURE__*/_jsxs(_Fragment,{children:["locale: ",a.locale]})},{})})),d=c.container;expect(d).toHaveTextContent("locale: ".concat(b))}),it.each([["ru","\u0417\u0430\u043A\u0440\u044B\u0442\u044C"],["en","Close"]])("switching locale (%s)",/*#__PURE__*/function(){var a=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function c(a,b){var d;return _regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return expect(document.body).toBeEmptyDOMElement(),c.next=3,import("../i18n/".concat(a,".json"));case 3:return d=c.sent,render(/*#__PURE__*/_jsx(Provider,{i18n:{locale:a,messages:d},children:/*#__PURE__*/_jsx(FormattedMessage,_objectSpread({},closeButtonMessages.ariaLabel))})),c.next=7,waitFor(function(){expect(screen.getByText(b)).toBeInTheDocument()});case 7:case"end":return c.stop();}},c)}));return function(){return a.apply(this,arguments)}}()),it("does not override passed in messages if parsing locale fails",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function a(){var b,c,d,e;return _regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return expect(document.body).toBeEmptyDOMElement(),b="some.message.that.was.passed.in",c="Boop",d="en-GB",e=_defineProperty({},b,c),Object.defineProperty(Intl,"Locale",{value:void 0}),render(/*#__PURE__*/_jsxs(Provider,{i18n:{locale:d,messages:e},children:[/*#__PURE__*/_jsx("span",{children:/*#__PURE__*/_jsx(FormattedMessage,{id:b})}),/*#__PURE__*/_jsx("span",{children:/*#__PURE__*/_jsx(FormattedMessage,_objectSpread({},closeButtonMessages.ariaLabel))})]})),a.t0=expect,a.next=10,screen.findByText(c);case 10:a.t1=a.sent,(0,a.t0)(a.t1).toBeInTheDocument(),expect(screen.getByText("Close")).toBeInTheDocument();case 13:case"end":return a.stop();}},a)})))});
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{FormattedMessage}from"react-intl";import{Provider}from"..";import closeButtonMessages from"../common/closeButton/CloseButton.messages";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:Provider,title:"Other/Provider"};export var Basic={render:function render(){return/*#__PURE__*/_jsxs(_Fragment,{children:["Translated message: ",/*#__PURE__*/_jsx(FormattedMessage,_objectSpread({},closeButtonMessages.ariaLabel))]})}};
@@ -1 +0,0 @@
1
- import{createContext}from"react";import{Direction}from"../../common/direction";import{jsx as _jsx}from"react/jsx-runtime";export var DirectionContext=/*#__PURE__*/createContext(Direction.LTR);export var DirectionProvider=function(a){var b=a.direction,c=a.children;return/*#__PURE__*/_jsx(DirectionContext.Provider,{value:b,children:c})};
@@ -1 +0,0 @@
1
- import{Direction}from"../../common";import{useDirection}from"../../common/hooks";import{render}from"../../test-utils";import{DirectionProvider}from".";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsx as _jsx}from"react/jsx-runtime";describe("DirectionProvider",function(){beforeEach(function(){document.documentElement.removeAttribute("dir")}),it.each([[Direction.LTR,!1],[Direction.RTL,!0]])("store direction %s in React Context",function(a,b){var c=null;render(/*#__PURE__*/_jsx(DirectionProvider,{direction:a,children:/*#__PURE__*/_jsx(function TestComponent(){return c=useDirection(),/*#__PURE__*/_jsx(_Fragment,{})},{})})),expect(c).not.toBeNull(),expect(c).toHaveProperty("direction",a),expect(c).toHaveProperty("isRTL",b)})});
@@ -1 +0,0 @@
1
- export{DirectionProvider,DirectionContext}from"./DirectionProvider";
@@ -1 +0,0 @@
1
- export{DirectionProvider}from"./direction";export{LanguageProvider}from"./language";export{default}from"./Provider";
@@ -1 +0,0 @@
1
- import{createContext}from"react";import{DEFAULT_LOCALE}from"../../common/locale";import{jsx as _jsx}from"react/jsx-runtime";export var LanguageContext=/*#__PURE__*/createContext(DEFAULT_LOCALE);export var LanguageProvider=function(a){var b=a.locale,c=a.children;return/*#__PURE__*/_jsx(LanguageContext.Provider,{value:b,children:c})};
@@ -1 +0,0 @@
1
- import{render}from"../../test-utils";import{LanguageProvider}from".";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";import{jsx as _jsx}from"react/jsx-runtime";describe("LanguageProvider",function(){beforeEach(function(){document.documentElement.removeAttribute("lang")}),it.each([["en"],["ru"],["ja"]])("store language %s in React Context",function(a){var b=render(/*#__PURE__*/_jsx(LanguageProvider,{locale:a,children:/*#__PURE__*/_jsx(function TestComponent(){return/*#__PURE__*/_jsxs(_Fragment,{children:["locale: ",a]})},{})})),c=b.container;expect(c).toHaveTextContent("locale: ".concat(a))})});
@@ -1 +0,0 @@
1
- export{LanguageProvider}from"./LanguageProvider";
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["label","id","disabled","className","avatar","secondary"];import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import Body from"../body/Body";import{Typography}from"../common";import RadioButton from"../common/RadioButton";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Radio=function(a){var b=a.label,c=a.id,d=a.disabled,e=a.className,f=a.avatar,g=a.secondary,h=_objectWithoutProperties(a,_excluded),i=useTheme(),j=i.isModern;return/*#__PURE__*/_jsx("div",{className:classNames("radio np-radio",{"radio-lg":g,disabled:j&&d},e),children:/*#__PURE__*/_jsxs("label",{className:classNames({disabled:d}),htmlFor:c,children:[/*#__PURE__*/_jsx("span",{className:classNames(j?"m-r-2":"p-r-2","np-radio-button"),children:/*#__PURE__*/_jsx(RadioButton,_objectSpread({id:c,disabled:d},h))}),/*#__PURE__*/_jsxs(Body,{as:"span",type:g?Typography.BODY_LARGE_BOLD:Typography.BODY_LARGE,className:"np-radio__text",children:[b,g&&/*#__PURE__*/_jsx(Body,{as:"span",className:classNames({secondary:!j}),children:g})]}),f&&/*#__PURE__*/_jsx("span",{className:"np-radio__avatar m-l-auto",children:f})]})})};Radio.propTypes={avatar:PropTypes.element,checked:PropTypes.bool,disabled:PropTypes.bool,id:PropTypes.string,label:PropTypes.string.isRequired,name:PropTypes.string.isRequired,onChange:PropTypes.func.isRequired,secondary:PropTypes.string,value:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),className:PropTypes.string},Radio.defaultProps={avatar:void 0,checked:!1,disabled:!1,id:null,secondary:null,value:"",className:void 0};export default Radio;
@@ -1 +0,0 @@
1
- import Radio from"./Radio";export default Radio;
@@ -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";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.map.js";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{Component}from"react";import Radio from"../radio";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";var RadioGroup=/*#__PURE__*/function(a){function b(a){var d;return _classCallCheck(this,b),d=c.call(this,a),_defineProperty(_assertThisInitialized(d),"handleOnChange",function(a){var b=d.props.onChange;d.setState({selectedValue:a},b&&b(a))}),d.state={selectedValue:a.selectedValue},d}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"render",value:function render(){var a=this,b=this.props,c=b.radios,d=b.name,e=this.state.selectedValue;return c&&1<c.length?/*#__PURE__*/_jsx(_Fragment,{children:c.map(function(b,c){var f=b.id,g=b.avatar,h=b.value,i=b.label,j=b.disabled,k=b.secondary,l=b.readOnly;return/*#__PURE__*/_jsx(Radio// eslint-disable-next-line react/no-array-index-key
2
- ,{id:f,value:h,label:i,name:d,disabled:j,checked:e===h,secondary:k,readOnly:l,avatar:g,onChange:function onChange(b){return a.handleOnChange(b)}},c)})}):null}}]),b}(Component);RadioGroup.propTypes={radios:PropTypes.arrayOf(PropTypes.shape({id:PropTypes.string,avatar:PropTypes.element,value:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),secondary:PropTypes.string,label:PropTypes.string.isRequired,disabled:PropTypes.bool,readOnly:PropTypes.bool})).isRequired,onChange:PropTypes.func.isRequired,selectedValue:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),name:PropTypes.string.isRequired},RadioGroup.defaultProps={selectedValue:null};export default RadioGroup;
@@ -1 +0,0 @@
1
- export{default}from"./RadioGroup";
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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"core-js/modules/es.function.name.js";import PropTypes from"prop-types";import Option from"../common/Option";import RadioButton from"../common/RadioButton";import{jsx as _jsx}from"react/jsx-runtime";var RadioOption=function(a){var b=a["aria-label"],c=a.media,d=a.title,e=a.content,f=a.id,g=a.name,h=a.checked,i=a.onChange,j=a.complex,k=a.disabled,l=a.value,m=a.showMediaCircle,n=a.showMediaAtAllSizes,o=a.isContainerAligned;return/*#__PURE__*/_jsx(Option,_objectSpread(_objectSpread({},{"aria-label":b,media:c,title:d,content:e,name:g,complex:j,disabled:k,showMediaCircle:m,showMediaAtAllSizes:n,isContainerAligned:o}),{},{button:/*#__PURE__*/_jsx(RadioButton,{id:f,name:g,checked:h,disabled:k,value:l,onChange:i})}))};RadioOption.propTypes={"aria-label":PropTypes.string,media:PropTypes.node,id:PropTypes.string.isRequired,name:PropTypes.string.isRequired,title:PropTypes.node.isRequired,content:PropTypes.node,checked:PropTypes.bool,onChange:PropTypes.func.isRequired,complex:PropTypes.bool,disabled:PropTypes.bool,value:PropTypes.string,showMediaCircle:PropTypes.bool,showMediaAtAllSizes:PropTypes.bool,isContainerAligned:PropTypes.bool},RadioOption.defaultProps={"aria-label":void 0,media:null,content:null,checked:!1,complex:!1,disabled:!1,showMediaCircle:!0,showMediaAtAllSizes:!1,isContainerAligned:!1,value:""};export default RadioOption;
@@ -1 +0,0 @@
1
- export{default}from"./RadioOption";
@@ -1,5 +0,0 @@
1
- import classNames from"classnames";import{jsx as _jsx}from"react/jsx-runtime";/**
2
- *
3
- * Neptune Web: https://transferwise.github.io/neptune-web/components/content/Section
4
- *
5
- */var Section=function(a){var b=a.children,c=a.className,d=a.withHorizontalPadding;return/*#__PURE__*/_jsx("div",{className:classNames("np-section",c,{"np-section--with-horizontal-padding":void 0!==d&&d}),children:b})};export default Section;
@@ -1 +0,0 @@
1
- import{render,screen}from"../test-utils";import Section from".";import{jsx as _jsx}from"react/jsx-runtime";describe("Section",function(){it("can render children",function(){render(/*#__PURE__*/_jsx(Section,{children:"Children here"})),expect(screen.getByText("Children here")).toBeInTheDocument()})});
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{FastFlag as FastFlagIcon}from"@transferwise/icons";import{useState}from"react";import Accordion from"../accordion";import Card from"../card";import Header from"../header";import NavigationOption from"../navigationOption";import Section from"./Section";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:Section,title:"Content/Section"};export var Basic=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Section,{children:"Section 1 content"}),/*#__PURE__*/_jsx(Section,{children:"Section 2 content"})]})};export var WithHeader=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(Section,{children:[/*#__PURE__*/_jsx(Header,{title:"Section 1 title"}),"Section 1 content"]}),/*#__PURE__*/_jsxs(Section,{children:[/*#__PURE__*/_jsx(Header,{title:"Section 2 title"}),"Section 2 content"]})]})};export var withAccordion=function(){var a=[{id:"Item 1",title:"If you have a deadline, set up your transfer early",content:"Most large transfers take around 2\u20134 working days from start to finish. So set up your transfer early if you have a deadline coming up.",icon:/*#__PURE__*/_jsx(FastFlagIcon,{size:24})},{id:"Item 2",title:"Have documents on hand to speed things up",content:"When you set up your transfer, we might ask for documents that show where your money comes from. Documents you might need (opens in a new tab)",icon:/*#__PURE__*/_jsx(FastFlagIcon,{size:24})},{id:"Item 3",title:"Lorem ipsum",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed scelerisque velit nec ex rutrum efficitur sit amet at enim. Nam a neque magna. Nullam est urna, dignissim nec erat id, euismod aliquet nulla.",icon:/*#__PURE__*/_jsx(FastFlagIcon,{size:24})}];return/*#__PURE__*/_jsxs(Section,{children:[/*#__PURE__*/_jsx(Header,{title:"Section with accordion"}),/*#__PURE__*/_jsx(Accordion,{items:a,indexOpen:0})]})};export var WithCards=function(){var a=useState(null),b=_slicedToArray(a,2),c=b[0],d=b[1],e=function(a){return c===a?d(null):void d(a)};return/*#__PURE__*/_jsxs(Section,{children:[/*#__PURE__*/_jsx(Header,{title:"Section with cards"}),/*#__PURE__*/_jsx(Card,{title:"What's in the box?!",details:"Click me to reveal.",icon:/*#__PURE__*/_jsx(FastFlagIcon,{size:24}),isExpanded:0===c,onClick:function onClick(){return e(0)},children:/*#__PURE__*/_jsx("div",{children:"Hello there!"})}),/*#__PURE__*/_jsx(Card,{title:"What's in the box?!",details:"Click me to reveal.",icon:/*#__PURE__*/_jsx(FastFlagIcon,{size:24}),isExpanded:1===c,onClick:function onClick(){return e(1)},children:/*#__PURE__*/_jsx("div",{children:"Hello there!"})})]})};export var WithNavigationOptions=function(){return/*#__PURE__*/_jsxs(Section,{children:[/*#__PURE__*/_jsx(Header,{title:"Section with options"}),/*#__PURE__*/_jsx(NavigationOption,{title:"Option 1",onClick:function onClick(){return alert("Option 1")}}),/*#__PURE__*/_jsx(NavigationOption,{title:"Option 2",onClick:function onClick(){return alert("Option 2")}})]})};
@@ -1 +0,0 @@
1
- export{default}from"./Section";
@@ -1,16 +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"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.string.search.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import{useState,useEffect,useRef,useMemo}from"react";import{useIntl}from"react-intl";import Button from"../button";import Chevron from"../chevron";import{Position,getSimpleRandomId}from"../common";import BottomSheet from"../common/bottomSheet";import{stopPropagation}from"../common/domHelpers";import{useLayout}from"../common/hooks";import KeyCodes from"../common/keyCodes";import Panel from"../common/panel";import Drawer from"../drawer";import messages from"./Select.messages";import Option from"./option";import SearchBox from"./searchBox";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var DEFAULT_SEARCH_VALUE="",DEFAULT_OPTIONS_PAGE_SIZE=1e3,includesString=function(a,b){return a.toLowerCase().includes(b.toLowerCase())};function defaultFilterFunction(a,b){if(isPlaceholderOption(a))return!0;var c=a.label,d=a.note,e=a.secondary,f=a.currency,g=a.searchStrings;return!!c&&includesString(c,b)||!!d&&includesString(d,b)||!!e&&includesString(e,b)||!!f&&includesString(f,b)||!!g&&g.some(function(a){return includesString(a,b)})}function isActionableOption(a){return!a.header&&!a.separator&&!a.disabled}function isHeaderOption(a){return null!=a&&"header"in a}function isSeparatorOption(a){return null!=a&&"separator"in a}function clamp(a,b,c){return Math.max(Math.min(b,c),a)}/**
2
- * No option or placeholder option is selected
3
- */var DEFAULT_SELECTED_OPTION=null;function isPlaceholderOption(a){return a===DEFAULT_SELECTED_OPTION||"placeholder"in a}function isSearchableOption(a){return!isHeaderOption(a)&&!isSeparatorOption(a)&&!isPlaceholderOption(a)}var getUniqueIdForOption=function(){var a,b,c=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",d=1<arguments.length?arguments[1]:void 0;if(null!=d){var e=d.value||(null!==(a=null===(b=d.label)||void 0===b?void 0:b.replace(/\s/g,""))&&void 0!==a?a:"");return"option-".concat(c,"-").concat(e)}};export default function Select(a){function b(){null!=W&&0<ka.length&&e(ka[W])}function c(a){var b,c=ka.reduce(function(a,b,c){return null==a?k(v,b)?c:null:a},null),d=null!==(b=Z.current)&&void 0!==b?b:-1,e=d;-1===d&&(null==c?X(0):e=c);var f=e+a,g=clamp(0,ka.length-1,f);X(g)}function d(a){return function(b){stopPropagation(b),e(a)}}function e(a){x(isPlaceholderOption(a)?DEFAULT_SELECTED_OPTION:a),sa()}function f(){var a,b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=b.className,d=classNames(M("np-dropdown-menu"),(a={},_defineProperty(a,M("np-dropdown-menu-desktop"),!qa),_defineProperty(a,M("np-dropdown-menu-".concat(r)),!qa&&!ha),a),M(c));return/*#__PURE__*/_jsxs("ul",_objectSpread(_objectSpread({ref:fa,id:na,role:"listbox",tabIndex:"-1",className:d},G),{},{children:[!o&&!ga&&!!m&&/*#__PURE__*/_jsx(h,{}),ga&&/*#__PURE__*/_jsx(SearchBox,{ref:ca,id:oa,classNames:E,value:C||S,placeholder:D||J(messages.searchPlaceholder),focusedOptionId:getUniqueIdForOption(n,la),onChange:ra,onClick:stopPropagation}),ja.slice(0,aa).map(ta),aa<ja.length&&/*#__PURE__*/_jsx(g,{})]}))}function g(){function a(a){stopPropagation(a),ba(aa+DEFAULT_OPTIONS_PAGE_SIZE)}return/*#__PURE__*/ (/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */_jsx("li",{className:classNames(M("clickable"),M("border-bottom"),M("show-more")),onClick:a,onKeyPress:a,children:/*#__PURE__*/_jsx("a",{children:"..."})}))}function h(){var a={placeholder:m};return/*#__PURE__*/ (/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */_jsx("li",{className:classNames(M("clickable"),M("border-bottom")),onClick:d(a),onKeyPress:d(a),children:/*#__PURE__*/_jsx("a",{children:m})}))}// eslint-disable-next-line react/prop-types
4
- function i(){return/*#__PURE__*/_jsx("li",{className:M("np-separator"),"aria-hidden":!0})}// eslint-disable-next-line react/prop-types
5
- function j(a){var b=a.children;return/*#__PURE__*/_jsx("li",{// eslint-disable-line jsx-a11y/no-noninteractive-element-interactions
6
- className:classNames(M("np-dropdown-header"),M("np-text-title-group")),onClick:stopPropagation,onKeyPress:stopPropagation,children:b})}function k(a,b){return(null===a||void 0===a?void 0:a.value)===(null===b||void 0===b?void 0:b.value)}function l(a){return ja.reduce(function(b,c,d){return d<a&&isActionableOption(c)?b+1:b},0)}var m=a.placeholder,n=a.id,o=a.required,p=a.disabled,q=a.inverse,r=a.dropdownWidth,t=a.size,u=a.block,v=a.selected,w=a.search,x=a.onChange,y=a.onFocus,z=a.onBlur,A=a.options,B=a.onSearchChange,C=a.searchValue,D=a.searchPlaceholder,E=a.classNames,F=a.dropdownUp,G=a.dropdownProps,H=a.buttonProps,I=useIntl(),J=I.formatMessage,K=useTheme(),L=K.isModern,M=function(a){return E[a]||a},s=useState(!1),N=_slicedToArray(s,2),O=N[0],P=N[1],Q=useState(DEFAULT_SEARCH_VALUE),R=_slicedToArray(Q,2),S=R[0],T=R[1],U=useState(null),V=_slicedToArray(U,2),W=V[0],X=V[1],Y=useRef(),Z=useRef(),$=useState(DEFAULT_OPTIONS_PAGE_SIZE),_=_slicedToArray($,2),aa=_[0],ba=_[1],ca=useRef(null),da=useRef(null),ea=useRef(null),fa=useRef(null),ga=!!B||!!w,ha=null==r,ia=useMemo(function(){return getSimpleRandomId("np-select-")},[]),ja=useMemo(function(){return w&&S?A.filter(isSearchableOption).filter(function(a){return"function"==typeof w?w(a,S):defaultFilterFunction(a,S)}):A},[A,w,S]),ka=useMemo(function(){return ja.filter(isActionableOption)},[ja]),la=ka[W],ma=n||ia,na="".concat(ma,"-listbox"),oa="".concat(ma,"-searchbox"),pa=useLayout(),qa=pa.isMobile;useEffect(function(){var a;if(0<=W)return requestAnimationFrame(function(){if(!a)if(ga){var b,c;null===(b=Y.current)||void 0===b||null===(c=b.scrollIntoView)||void 0===c?void 0:c.call(b,{block:"center"})}else{var d;null===(d=Y.current)||void 0===d?void 0:d.focus()}}),function(){a=!0}},[W,ga]);var ra=function(a){ba(DEFAULT_OPTIONS_PAGE_SIZE),T(a.target.value),B&&B(a.target.value)};useEffect(function(){O?((!qa||S)&&(ga&&!!ca.current&&ca.current.focus(),!ga&&fa.current&&(null==Z.current||Number.isNaN(Z.current))&&fa.current.focus()),Z.current=W):Z.current=null},[O,S,ga,qa,W]);var sa=function(){P(!1),X(null),ea.current&&ea.current.focus()},ta=function(a,b){var c,e=a;if(isSeparatorOption(e)&&null!==e&&void 0!==e&&e.separator)return/*#__PURE__*/_jsx(i,{},b);var f=a;if(isHeaderOption(f)&&f.header)return/*#__PURE__*/_jsx(j,{children:f.header},b);var g=k(v,a),h=a,m=!h.disabled&&W===l(b),o=classNames(M("np-dropdown-item"),h.disabled?[M("disabled")]:M("clickable"),(c={},_defineProperty(c,M("active"),g),_defineProperty(c,M("np-dropdown-item--focused"),m),c)),p=h.disabled?stopPropagation:d(h);return/*#__PURE__*/ (/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */_jsx("li",{ref:m?Y:void 0,id:getUniqueIdForOption(n,a),"aria-selected":g,"aria-disabled":a.disabled,role:"option",tabIndex:"-1",className:o,onClick:p,onKeyPress:p,children:/*#__PURE__*/_jsx("a",{disabled:h.disabled,children:/*#__PURE__*/_jsx(Option,_objectSpread(_objectSpread({},h),{},{classNames:E}))})},b))},ua=!!A.length;return O&&(C||S)&&(ua&&null==W&&X(0),!ua&&null!=W&&X(null)),/*#__PURE__*/_jsxs("div",{// eslint-disable-line jsx-a11y/no-static-element-interactions
7
- ref:da,className:classNames(M("np-select"),u?M("btn-block"):null,M("btn-group")),onKeyDown:function handleKeyDown(a){switch(a.keyCode){case KeyCodes.UP:case KeyCodes.DOWN:O?c(a.keyCode===KeyCodes.UP?-1:1):P(!0),stopPropagation(a);break;case KeyCodes.SPACE:a.target!==ca.current&&(O?b():P(!0),stopPropagation(a));break;case KeyCodes.ENTER:O?b():P(!0),stopPropagation(a);break;case KeyCodes.ESCAPE:sa(),stopPropagation(a);break;case KeyCodes.TAB:O&&b();break;default:}},onTouchMove:function handleTouchStart(a){a.currentTarget===a.target&&O&&sa()},onFocus:function handleOnFocus(a){y&&y(a)},onBlur:function handleOnBlur(a){var b=a.nativeEvent;if(b){var c=b.relatedTarget,d=a.currentTarget;if(d&&c&&d.contains(c))return}z&&z(a)},children:[/*#__PURE__*/_jsxs(Button,_objectSpread(_objectSpread({ref:ea,id:ma,block:u,size:t,htmlType:"button",className:classNames(M("np-dropdown-toggle"),M("np-text-body-large"),q?M("np-dropdown-toggle-navy"):null)// reset Button's styles
8
- ,type:null,priority:null,disabled:p,role:"combobox","aria-controls":na,"aria-expanded":O,"aria-autocomplete":"none",onClick:function handleOnClick(){P(!0)}},H),{},{children:[v?/*#__PURE__*/_jsx(Option,_objectSpread(_objectSpread({},v),{},{classNames:E,selected:!0})):/*#__PURE__*/_jsx("span",{className:M("form-control-placeholder"),children:m}),/*#__PURE__*/_jsx(Chevron// disabled={disabled}
9
- ,{className:classNames(M("tw-icon"),M("tw-chevron-up-icon"),M("tw-chevron"),M("bottom"),M("np-select-chevron"))})]})),qa?ga?/*#__PURE__*/_jsx(Drawer,{open:O,headerTitle:D||J(messages.searchPlaceholder),onClose:sa,children:f()}):/*#__PURE__*/_jsx(BottomSheet,{open:O,onClose:sa,children:f({className:L?"":"p-a-1"})}):/*#__PURE__*/_jsx(Panel,{open:O,flip:!1,altAxis:!0,anchorRef:da,anchorWidth:ha,position:F?Position.TOP:Position.BOTTOM,onClose:sa,children:f({className:"p-a-1"})})]})}Select.propTypes={placeholder:PropTypes.string,id:PropTypes.string,required:PropTypes.bool,disabled:PropTypes.bool,inverse:PropTypes.bool,dropdownRight:PropTypes.oneOf(["xs","sm","md","lg","xl"]),dropdownWidth:PropTypes.oneOf(["sm","md","lg"]),size:PropTypes.oneOf(["sm","md","lg"]),block:PropTypes.bool,selected:PropTypes.shape({value:PropTypes.any.isRequired,label:PropTypes.node,icon:PropTypes.node,currency:PropTypes.string,note:PropTypes.node,secondary:PropTypes.node}),/**
10
- * Search toggle
11
- * if `true` default search functionality being enabled (not case sensitive search in option labels & currency props)
12
- * if `function` you can define your own search function to implement custom search experience. This search function used while filtering the options array. The custom search function takes two parameters. First is the option the second is the keyword.
13
- */search:PropTypes.oneOfType([PropTypes.bool,PropTypes.func]),onChange:PropTypes.func.isRequired,onFocus:PropTypes.func,onBlur:PropTypes.func,options:PropTypes.arrayOf(PropTypes.shape({value:PropTypes.any,label:PropTypes.node,header:PropTypes.node,icon:PropTypes.node,currency:PropTypes.string,note:PropTypes.node,secondary:PropTypes.node,separator:PropTypes.bool,disabled:PropTypes.bool,searchStrings:PropTypes.arrayOf(PropTypes.string)})).isRequired,/**
14
- * To have full control of your search value and response use `onSearchChange` function combined with `searchValue` and custom filtering on the options array.
15
- * DO NOT USE TOGETHER WITH `search` PROPERTY
16
- */onSearchChange:PropTypes.func,searchValue:PropTypes.string,searchPlaceholder:PropTypes.string,classNames:PropTypes.objectOf(PropTypes.string),dropdownUp:PropTypes.bool,buttonProps:PropTypes.object,dropdownProps:PropTypes.object},Select.defaultProps={id:void 0,placeholder:void 0,size:"md",dropdownRight:null,dropdownWidth:null,inverse:!1,required:!1,disabled:!1,block:!0,selected:null,onFocus:null,onBlur:null,onSearchChange:void 0,search:!1,searchValue:"",searchPlaceholder:void 0,classNames:{},dropdownUp:!1,buttonProps:{},dropdownProps:{}};
@@ -1 +0,0 @@
1
- import{defineMessages}from"react-intl";export default defineMessages({searchPlaceholder:{id:"neptune.Select.searchPlaceholder"}});
@@ -1 +0,0 @@
1
- import Select from"./Select";export default Select;
@@ -1,2 +0,0 @@
1
- import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";// Option.tsx NEW
2
- import{useTheme}from"@wise/components-theming";import{cloneElement}from"react";import Body from"../../body";import{Typography}from"../../common";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";function Option(a){var b=a.label,c=a.currency,d=void 0===c?"":c,e=a.note,f=void 0===e?"":e,g=a.secondary,h=void 0===g?"":g,i=a.icon,j=a.classNames,k=void 0===j?{}:j,l=a.selected,m=void 0!==l&&l,n=useTheme(),o=n.isModern,p=d?function style(a){return a.map(function(a){return k[a]||a}).join(" ")}(["currency-flag","currency-flag-".concat(d.toLowerCase())]):void 0,q=i?/*#__PURE__*/cloneElement(i,{size:24,className:"tw-icon"}):d&&/*#__PURE__*/_jsx("i",{className:p}),r=/*#__PURE__*/_jsxs(Body,{as:"span",type:Typography.BODY_LARGE,className:m?"text-ellipsis":void 0,children:[b,f&&/*#__PURE__*/_jsx(Body,{as:"span",className:o?"m-l-1":"m-l-1 body-2",children:f})]}),s=h&&/*#__PURE__*/_jsx(Body,{className:function secondaryElementClassNames(){var a;return m&&(a="text-ellipsis"),o?a:"".concat(a?a+" ":"","body-2")}(),children:h});return q?/*#__PURE__*/_jsxs("div",{className:"d-flex np-option-content",children:[/*#__PURE__*/_jsx("div",{className:"d-flex flex-column".concat(m?" justify-content-center":""),children:q}),/*#__PURE__*/_jsxs("div",{className:"d-flex flex-column justify-content-center",children:[r,s]})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[q,r,s]})}export default Option;
@@ -1 +0,0 @@
1
- import Option from"./Option";export default Option;
@@ -1 +0,0 @@
1
- import"core-js/modules/es.array.concat.js";import{Search as SearchIcon}from"@transferwise/icons";import classnames from"classnames";import{forwardRef}from"react";import{Input}from"../../inputs/Input";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var SearchBox=/*#__PURE__*/forwardRef(function(a,b){var c=a.id,d=a.classNames,e=void 0===d?{}:d,f=a.focusedOptionId,g=a.onChange,h=a.onClick,i=a.placeholder,j=void 0===i?void 0:i,k=a.value,l=void 0===k?"":k,m=function(a){return e[a]||a};return/*#__PURE__*/_jsx("li",{className:m("border-bottom"),children:/*#__PURE__*/_jsx("a",{className:"".concat(m("np-select-filter-link")," ").concat(m("p-a-0")),children:/*#__PURE__*/_jsxs("div",{className:m("input-group"),children:[/*#__PURE__*/_jsx("span",{className:classnames("input-group-addon","input-group-addon--search"),children:/*#__PURE__*/_jsx(SearchIcon,{className:classnames(m("tw-icon"),m("tw-icon-search")),size:24})}),/*#__PURE__*/_jsx(Input,{ref:b,id:c,className:classnames(m("np-select-filter")),placeholder:j,value:l,spellCheck:"false","aria-activedescendant":f,onChange:g,onClick:h})]})})})});export default SearchBox;
@@ -1 +0,0 @@
1
- export{default}from"./SearchBox";
@@ -1,5 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.object.values.js";import classNames from"classnames";import PropTypes from"prop-types";import{forwardRef,useRef}from"react";import{Breakpoint}from"../common";import{useClientWidth}from"../common/hooks";import{jsx as _jsx}from"react/jsx-runtime";var Layout={COLUMN:"COLUMN"},SizeSwapper=/*#__PURE__*/forwardRef(function(a,b){var c=a.items,d=a.inline,e=useRef(null),f=useClientWidth({ref:b||e}),g=_slicedToArray(f,1),h=g[0];if(!c||0===c.length)return null;// If all breakpoints are specified and clientWidth never > breakpoint itemsToRender can be undefined.
2
- // Do not use deconstruct here to get items and layout.
3
- var i=[];// Always return parent container even if there are no items to display to
4
- // keep the ref on DOM and let clientWidth be calculated properly.
5
- return h?i=c.filter(function(a){var b=a.breakpoint,c=void 0===b?0:b;return h>=c}).pop():i.items=c.map(function(a){var b=a.items;return Object.values(b)}),/*#__PURE__*/_jsx("div",{ref:e,className:classNames("np-size-swapper",{"d-flex":!d,"d-inline-flex":d,"flex-column":i&&i.layout===Layout.COLUMN,"flex-wrap":i&&i.wrap}),style:{visibility:h?"visible":"hidden"},children:i&&i.items})});SizeSwapper.Breakpoint=Breakpoint,SizeSwapper.Layout=Layout,SizeSwapper.propTypes={inline:PropTypes.bool,/** List of items that will appear at the specified breakpoint and presented in row or columns depending on layout */items:PropTypes.arrayOf(PropTypes.shape({items:PropTypes.arrayOf(PropTypes.element),breakpoint:PropTypes.number,layout:PropTypes.oneOf([SizeSwapper.Layout.COLUMN]),wrap:PropTypes.bool})).isRequired},SizeSwapper.defaultProps={inline:!1};export default SizeSwapper;
@@ -1 +0,0 @@
1
- export{default}from"./SizeSwapper";
@@ -1,2 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","className","open","position","showSlidingPanelBorder","slidingPanelPositionFixed"];import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{forwardRef,useRef}from"react";import mergeRefs from"react-merge-refs";import CSSTransition from"react-transition-group/CSSTransition";import{jsx as _jsx}from"react/jsx-runtime";export var EXIT_ANIMATION=350;var SlidingPanel=/*#__PURE__*/forwardRef(function(a,b){var c=a.children,d=a.className,e=a.open,f=a.position,g=a.showSlidingPanelBorder,h=a.slidingPanelPositionFixed,i=_objectWithoutProperties(a,_excluded),j=useRef(null);return/*#__PURE__*/_jsx(CSSTransition,_objectSpread(_objectSpread({},i),{},{nodeRef:j,in:e// Wait for animation to finish before unmount.
2
- ,timeout:{enter:0,exit:EXIT_ANIMATION},classNames:classNames("sliding-panel--open-".concat(f),g&&"sliding-panel--border-".concat(f),{"sliding-panel--fixed":h},"sliding-panel"),appear:!0,unmountOnExit:!0,children:/*#__PURE__*/_jsx("div",{ref:mergeRefs([b,j]),className:classNames("sliding-panel","sliding-panel--open-".concat(f),d),children:c})}))});SlidingPanel.propTypes={children:PropTypes.node,className:PropTypes.string,open:PropTypes.bool,position:PropTypes.oneOf(["top","bottom","left","right"]),showSlidingPanelBorder:PropTypes.bool,slidingPanelPositionFixed:PropTypes.bool},SlidingPanel.defaultProps={children:null,className:void 0,open:!1,position:"left",showSlidingPanelBorder:!1,slidingPanelPositionFixed:!1};export default SlidingPanel;
@@ -1 +0,0 @@
1
- export{default}from"./SlidingPanel";
@@ -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";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.reflect.construct.js";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{Component,createRef}from"react";import CSSTransition from"react-transition-group/CSSTransition";import ActionButton from"../actionButton";import Body from"../body";import{Theme}from"../common";import{DirectionContext}from"../provider/direction";import withNextPortal from"../withNextPortal/withNextPortal";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export var CSS_TRANSITION_DURATION=400;export var Snackbar=/*#__PURE__*/function(a){/** @type {RefObject<HTMLSpanElement>} */function b(){var a;return _classCallCheck(this,b),a=c.call(this),_defineProperty(_assertThisInitialized(a),"bodyRef",/*#__PURE__*/createRef()),_defineProperty(_assertThisInitialized(a),"setLeaveTimeout",function(){var b=a.props.timeout;a.timeout=setTimeout(function(){a.setState({visible:!1})},b)}),a.state={visible:!1,text:""},a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.transitionTimeout)}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(a,b){return!!a.text&&(a.timestamp!==this.props.timestamp||b.visible!==this.state.visible||b.text!==this.state.text)}},{key:"componentDidUpdate",value:function componentDidUpdate(a){var b=this,c=this.props,d=c.action,e=c.text,f=c.theme,g=c.timestamp;a.text?a.timestamp!==g&&(clearTimeout(this.timeout),this.state.visible?this.setState({visible:!1},function(){b.transitionTimeout=setTimeout(function(){b.setState({visible:!0,action:d,text:e,theme:f}),b.setLeaveTimeout()},CSS_TRANSITION_DURATION)}):(this.setState({visible:!0,action:d,text:e,theme:f}),this.setLeaveTimeout())):this.setState({visible:!0,action:d,text:e,theme:f},function(){b.setLeaveTimeout()})}},{key:"render",value:function render(){var a=this.state,b=a.action,c=a.text,d=a.theme,e=a.visible,f=this.props.timeout;return/*#__PURE__*/_jsx("div",{className:"snackbar",children:/*#__PURE__*/_jsx(CSSTransition,{nodeRef:this.bodyRef,in:e,classNames:"snackbar__text-container",timeout:{appear:0,enter:f,exit:CSS_TRANSITION_DURATION},unmountOnExit:!0,children:/*#__PURE__*/_jsxs(Body,{ref:this.bodyRef,as:"span",className:"snackbar__text snackbar__text--".concat(d),children:[c,b?/*#__PURE__*/_jsx(ActionButton,{className:"snackbar__text__action",onClick:b.onClick,children:b.label}):null]})})})}}]),b}(Component);Snackbar.contextType=DirectionContext,Snackbar.propTypes={action:PropTypes.shape({label:PropTypes.string.isRequired,onClick:PropTypes.func}),text:PropTypes.node.isRequired,theme:PropTypes.oneOf(["light","dark"]),timeout:PropTypes.number.isRequired,timestamp:PropTypes.number.isRequired},Snackbar.defaultProps={action:null,theme:Theme.LIGHT};export default withNextPortal(Snackbar);
@@ -1 +0,0 @@
1
- import{createContext}from"react";export var SnackbarContext=/*#__PURE__*/createContext();export var SnackbarConsumer=SnackbarContext.Consumer;
@@ -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";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.reflect.construct.js";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{Component}from"react";import SnackbarPortal from"./Snackbar";import{SnackbarContext}from"./SnackbarContext";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var SnackbarProvider=/*#__PURE__*/function(a){function b(){var a;return _classCallCheck(this,b),a=c.call(this),_defineProperty(_assertThisInitialized(a),"create",function(b){var c=b.action,d=b.text,e=b.theme;a.setState({action:c,text:d,theme:e,timestamp:Date.now()})}),a.state={text:"",timestamp:0},a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"render",value:function render(){var a=this.state,b=a.action,c=a.text,d=a.theme,e=a.timestamp;return/*#__PURE__*/_jsxs(SnackbarContext.Provider,{value:{createSnackbar:this.create},children:[/*#__PURE__*/_jsx(SnackbarPortal,{action:b,text:c,timestamp:e,timeout:this.props.timeout,theme:d}),this.props.children]})}}]),b}(Component);SnackbarProvider.propTypes={children:PropTypes.node.isRequired,timeout:PropTypes.number},SnackbarProvider.defaultProps={timeout:4500};export default SnackbarProvider;
@@ -1 +0,0 @@
1
- export{default as Snackbar}from"./Snackbar";
@@ -1 +0,0 @@
1
- import{useContext}from"react";import{SnackbarContext}from"./SnackbarContext";function useSnackbar(){var a=useContext(SnackbarContext),b=a.createSnackbar;return b}export default useSnackbar;
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import{Info,Alert,Cross,Check,ClockBorderless}from"@transferwise/icons";import classNames from"classnames";import{Sentiment}from"../common";import{jsx as _jsx}from"react/jsx-runtime";var StatusIcon=function(a){var b,c=a.sentiment,d=void 0===c?Sentiment.NEUTRAL:c,e=a.size,f=(b={},_defineProperty(b,Sentiment.POSITIVE,Check),_defineProperty(b,Sentiment.NEUTRAL,Info),_defineProperty(b,Sentiment.WARNING,Alert),_defineProperty(b,Sentiment.NEGATIVE,Cross),_defineProperty(b,Sentiment.PENDING,ClockBorderless),_defineProperty(b,Sentiment.INFO,Info),_defineProperty(b,Sentiment.ERROR,Cross),_defineProperty(b,Sentiment.SUCCESS,Check),b),g=[Sentiment.WARNING,Sentiment.PENDING].includes(d)?"dark":"light",h=f[d];return/*#__PURE__*/_jsx("span",{"data-testid":"status-icon",className:classNames("status-circle","status-circle-"+e,d),children:/*#__PURE__*/_jsx(h,{className:classNames("status-icon",g)})})};export default StatusIcon;
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"core-js/modules/es.array.map.js";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{Size,Sentiment}from"../common";import StatusIcon from"./StatusIcon";import{jsx as _jsx}from"react/jsx-runtime";export default{component:StatusIcon,title:"Other/StatusIcon"};export var Basic={render:function render(a){return/*#__PURE__*/_jsx("span",{style:{display:"flex"},children:/*#__PURE__*/_jsx(StatusIcon,_objectSpread({},a))})}};export var Variants={render:function render(){return/*#__PURE__*/_jsx("span",{style:{display:"flex",justifyContent:"space-between",maxWidth:"400px"},children:[Sentiment.POSITIVE,Sentiment.NEGATIVE,Sentiment.NEUTRAL,Sentiment.WARNING,Sentiment.PENDING].map(function(a){return/*#__PURE__*/_jsx("span",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column",minHeight:"150px",alignItems:"center"},children:[Size.SMALL,Size.MEDIUM,Size.LARGE].map(function(b){return/*#__PURE__*/_jsx(StatusIcon,{size:b,sentiment:a},b)})},a)})})}};
@@ -1 +0,0 @@
1
- export{default}from"./StatusIcon";
@@ -1 +0,0 @@
1
- import"core-js/modules/es.array.map.js";import classNames from"classnames";import*as React from"react";import Body from"../body/Body";import{Position}from"../common";import{useDirection}from"../common/hooks";import Tooltip from"../tooltip";import{isTouchDevice}from"./deviceDetection";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";function clamp(a,b,c){return Math.max(Math.min(b,c),a)}/* eslint-disable react/no-array-index-key */var Stepper=function(a){var b=a.steps,c=a.activeStep,d=void 0===c?0:c,e=a.className,f=useDirection(),g=f.isRTL;if(0===b.length)return null;var h=clamp(0,b.length-1,d),i=1/(b.length-1),j=h/(b.length-1);return/*#__PURE__*/_jsxs("div",{className:classNames("tw-stepper",e),children:[/*#__PURE__*/_jsx("div",{className:"progress",children:/*#__PURE__*/_jsx("div",{className:"progress-bar",style:{width:"".concat(100*j,"%")}})}),/*#__PURE__*/_jsx("ul",{className:"tw-stepper-steps p-t-1 m-b-0",children:b.map(function renderStep(a,b){var c=b===h,d=a.onClick&&!c,e=d?/*#__PURE__*/_jsx("button",{type:"button",className:"btn-unstyled tw-stepper__step-label",onClick:function onClick(){var b;return d&&(null===(b=a.onClick)||void 0===b?void 0:b.call(a))},children:/*#__PURE__*/_jsx("small",{children:a.label})}):/*#__PURE__*/_jsx(Body,{as:"span",className:"tw-stepper__step-label small",children:a.label});return/*#__PURE__*/_jsx("li",{className:classNames("hidden-xs","tw-stepper__step",c&&"tw-stepper__step--active",d&&"tw-stepper__step--clickable",a.hoverLabel&&"tw-stepper__step--has-tooltip"),style:g?{right:"".concat(100*(b*i),"%")}:{left:"".concat(100*(b*i),"%")},children:a.hoverLabel&&!isTouchDevice()?/*#__PURE__*/_jsx(Tooltip,{position:Position.BOTTOM,label:a.hoverLabel,children:e}):e},b)})})]})};/* eslint-enable react/no-array-index-key */export default Stepper;
@@ -1,4 +0,0 @@
1
- import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.string.match.js";function supportsTouchEvents(){var a="undefined"!=typeof window&&window.ontouchstart!==void 0,b="undefined"!=typeof navigator&&navigator.maxTouchPoints,c="undefined"!=typeof window&&window.DocumentTouch&&document instanceof window.DocumentTouch;// eslint-disable-next-line compat/compat
2
- return!!(a||b||c)}function userAgentSuggestsTouchDevice(){var a=["android","iemobile","iphone","ipad","ipod","blackberry","bada"].map(function(a){return"(".concat(a,")")}).join("|"),b=new RegExp(a,"ig");return"undefined"!=typeof navigator&&!!navigator.userAgent.match(b)}// Important: this is not fool-proof! It gives false positives and negatives, and will be outdated.
3
- // Only use this for small vanity changes where it still works either way.
4
- export function isTouchDevice(){return supportsTouchEvents()||userAgentSuggestsTouchDevice()}
@@ -1 +0,0 @@
1
- import PropTypes from"prop-types";import SlidingPanel from"../slidingPanel";import{jsx as _jsx}from"react/jsx-runtime";var Sticky=function(a){var b=a.open,c=a.position,d=a.children;return/*#__PURE__*/_jsx(SlidingPanel,{open:b,position:c,slidingPanelPositionFixed:!0,showSlidingPanelBorder:!0,children:d})};Sticky.propTypes={open:PropTypes.bool,position:PropTypes.oneOf(["top","bottom"]),children:PropTypes.node},Sticky.defaultProps={open:!0,position:"bottom",children:null};export default Sticky;
@@ -1 +0,0 @@
1
- export{default}from"./Sticky";
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";var _statusLabels,_statusMapping;import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import{CheckCircleFill as CheckCircleIcon,ClockFill as PendingCircleIcon}from"@transferwise/icons";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import{cloneElement}from"react";import{useIntl}from"react-intl";import requiredIf from"react-required-if";import Body from"../body";import{Status,Size,Typography,Sentiment}from"../common";import Info from"../info";import Link from"../link/Link";import StatusIcon from"../statusIcon";import{deprecated}from"../utilities";import messages from"./Summary.messages";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var BadgeIcons={done:CheckCircleIcon,pending:PendingCircleIcon},statusLabels=(_statusLabels={},_defineProperty(_statusLabels,Status.NOT_DONE,"statusNotDone"),_defineProperty(_statusLabels,Status.DONE,"statusDone"),_defineProperty(_statusLabels,Status.PENDING,"statusPending"),_statusLabels),statusMapping=(_statusMapping={},_defineProperty(_statusMapping,Status.DONE,Sentiment.POSITIVE),_defineProperty(_statusMapping,Status.PENDING,Sentiment.PENDING),_statusMapping),expiryDate=new Date("03-01-2021"),Summary=function(a){var b=a.action,c=a.as,d=a.className,e=a.content,f=a.description,g=void 0===f?e:f,h=a.help,i=a.icon,j=a.illustration,k=a.info,l=void 0===k?h:k,m=a.status,n=a.title,o=useTheme(),p=o.isModern,q=useIntl(),r=j;if(i){var s,t=null===i||void 0===i||null===(s=i.props)||void 0===s?void 0:s.size;r=24===t?i:/*#__PURE__*/cloneElement(i,{size:24})}var u=m&&BadgeIcons[m];return/*#__PURE__*/_jsxs(c,{className:classNames("np-summary d-flex align-items-start",d),"aria-label":m&&q.formatMessage(messages[statusLabels[m]]),children:[/*#__PURE__*/_jsxs("div",{className:"np-summary__icon",children:[r,u&&(p?/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(StatusIcon,{size:Size.SMALL,sentiment:statusMapping[m]})}):/*#__PURE__*/_jsx(u,{size:16,className:"np-summary-icon__".concat(m)}))]}),/*#__PURE__*/_jsxs("div",{className:"np-summary__body m-l-2",children:[/*#__PURE__*/_jsxs("div",{className:"np-summary__title d-flex",children:[/*#__PURE__*/_jsx(Body,{as:"span",type:Typography.BODY_LARGE_BOLD,className:"text-primary m-b-1",children:n}),l&&/*#__PURE__*/_jsx(Info,{"aria-label":l["aria-label"],className:"m-l-1 hidden-xs",content:l.content,presentation:l.presentation,size:p?Size.LARGE:Size.SMALL,title:l.title,onClick:l.onClick})]}),g&&/*#__PURE__*/_jsx(Body,{as:"span",type:Typography.BODY_DEFAULT,className:"d-block np-summary__description",children:g}),b&&/*#__PURE__*/_jsx(Link,{href:b.href,target:b.target,className:"np-summary__action","aria-label":b["aria-label"],onClick:b.onClick,children:b.text})]}),l&&/*#__PURE__*/_jsx(Info,{"aria-label":l["aria-label"],className:"m-l-2 hidden-sm hidden-md hidden-lg hidden-xl",content:l.content,presentation:l.presentation,size:p?Size.LARGE:Size.SMALL,title:l.title,onClick:l.onClick})]})};Summary.propTypes={/** Action displayed at the bottom of the Summary */action:PropTypes.shape({text:PropTypes.node.isRequired,href:PropTypes.string.isRequired,"aria-label":PropTypes.string,target:PropTypes.string,onClick:PropTypes.func}),/** Decides which html element should wrap the Summary */as:PropTypes.string,/** Extra classes applied to Summary */className:PropTypes.string,/** @deprecated please use description instead */content:deprecated(PropTypes.node,{component:"Summary",newProp:"description",expiryDate:expiryDate}),/** Summary description */description:PropTypes.node,/** @deprecated please use info instead */help:deprecated(PropTypes.shape({content:PropTypes.node.isRequired,title:PropTypes.node}),{component:"Summary",newProp:"info",expiryDate:expiryDate}),/** Infos displayed on help Icon click inside Popover or Modal */info:PropTypes.shape({"aria-label":PropTypes.string.isRequired,content:PropTypes.node.isRequired,onClick:PropTypes.func,presentation:PropTypes.oneOf(["POPOVER","MODAL"]),title:PropTypes.node}),/** @deprecated please use icon instead */illustration:deprecated(PropTypes.node,{component:"Summary",newProp:"icon",expiryDate:expiryDate}),/** Main Summary Icon */icon:requiredIf(PropTypes.node,function(a){var b=a.illustration;return!b}),/** Decides the badge applied to Icon */status:PropTypes.oneOf(["notDone","done","pending"]),/** Summary title */title:PropTypes.node.isRequired},Summary.defaultProps={action:null,as:"div",className:null,content:null,help:null,illustration:null,status:null};export default Summary;
@@ -1 +0,0 @@
1
- import{defineMessages}from"react-intl";export default defineMessages({statusNotDone:{id:"neptune.Summary.statusNotDone"},statusPending:{id:"neptune.Summary.statusPending"},statusDone:{id:"neptune.Summary.statusDone"}});
@@ -1 +0,0 @@
1
- export{default}from"./Summary";
@@ -1 +0,0 @@
1
- import{CheckCircleFill,CrossCircleFill}from"@transferwise/icons";import{useTheme}from"@wise/components-theming";import classnames from"classnames";import KeyCodes from"../common/keyCodes";import{logActionRequiredIf}from"../utilities";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Switch=function(a){var b=useTheme(),c=b.isModern,d=a.checked,e=a.className,f=a.id,g=a.onClick,h=a.disabled,i=a["aria-label"],j=i?void 0:a["aria-labelledby"];return logActionRequiredIf("Switch now expects either `aria-label` or `aria-labelledby`, and will soon make these props required. Please update your usage to provide one or the other.",!i&&!j),/*#__PURE__*/_jsxs("span",{className:classnames("np-switch",{"np-switch--unchecked":!d,"np-switch--checked":d,disabled:h},e),tabIndex:0,role:"switch","aria-checked":d,"aria-label":i,"aria-labelledby":j,id:f,"aria-disabled":h,onClick:h?void 0:g,onKeyDown:h?void 0:function handleKeyDown(a){("32"===a.code||a.keyCode===KeyCodes.SPACE)&&(a.preventDefault(),g())},children:[function returnIcon(){return c?/*#__PURE__*/_jsx("span",{className:"np-switch--thumb"}):d?/*#__PURE__*/_jsx("span",{className:"np-switch--thumb",children:/*#__PURE__*/_jsx(CheckCircleFill,{size:24})}):/*#__PURE__*/_jsx("span",{className:"np-switch--thumb",children:/*#__PURE__*/_jsx(CrossCircleFill,{size:24})})}(),/*#__PURE__*/_jsx("input",{type:"checkbox",checked:d,readOnly:!0})]})};export default Switch;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useState}from"react";import Switch from"./Switch";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:Switch,title:"Actions/Switch"};export var Basic=function(){var a=useState(!1),b=_slicedToArray(a,2),c=b[0],d=b[1],e=useState(!1),f=_slicedToArray(e,2),g=f[0],h=f[1];return/*#__PURE__*/_jsxs("div",{className:"d-flex flex-column",children:[/*#__PURE__*/_jsx("label",{id:"labelID",htmlFor:"switchId",children:"A switch with a label"}),/*#__PURE__*/_jsx(Switch,{checked:c,className:"a-class-name","aria-labelledby":"labelID",id:"switchId",onClick:function onClick(){return d(!c)}}),/*#__PURE__*/_jsx(Switch,{checked:g,className:"a-class-name m-t-4","aria-label":"I'm a switch without label",onClick:function onClick(){return h(!g)}})]})};export var Disabled=function(){var a=useState(!1),b=_slicedToArray(a,2),c=b[0],d=b[1];return/*#__PURE__*/_jsxs("div",{className:"d-flex flex-column",children:[/*#__PURE__*/_jsx(Switch,{checked:c,disabled:!0,className:"a-class-name","aria-labelledby":"labelID",id:"switchId",onClick:function onClick(){return d(!c)}}),/*#__PURE__*/_jsx(Switch,{checked:!c,disabled:!0,className:"a-class-name","aria-labelledby":"labelID",id:"switchId",onClick:function onClick(){return d(!c)}})]})};
@@ -1 +0,0 @@
1
- export{default}from"./Switch";
@@ -1 +0,0 @@
1
- import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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 Option from"../common/Option";import Switch from"../switch";import{jsx as _jsx}from"react/jsx-runtime";var stopPropagation=function(a){a&&(a.stopPropagation(),a.preventDefault(),a.nativeEvent&&a.nativeEvent.stopImmediatePropagation&&a.nativeEvent.stopImmediatePropagation())},SwitchOption=function(a){var b=a.checked,c=a.complex,d=a.content,e=a.disabled,f=a.id,g=a.media,h=a.onChange,i=a.title,j=a.showMediaCircle,k=a.showMediaAtAllSizes,l=a.isContainerAligned,m=a["aria-label"],n=function(a){stopPropagation(a);e||h(!b)};return/*#__PURE__*/_jsx(Option,_objectSpread(_objectSpread({},{media:g,title:i,content:d,complex:c,disabled:e,showMediaCircle:j,showMediaAtAllSizes:k,isContainerAligned:l}),{},{button:/*#__PURE__*/_jsx(Switch,{id:f,checked:b,disabled:e,"aria-label":m,onClick:n}),onClick:n}))};export default SwitchOption;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{action}from"@storybook/addon-actions";import{text,boolean}from"@storybook/addon-knobs";import{FastFlag as FastFlagIcon}from"@transferwise/icons";import{useState}from"react";import{Nudge}from"..";import SwitchOption from"./SwitchOption";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:SwitchOption,title:"Option/SwitchOption"};var Template=function(){var a=useState(!1),b=_slicedToArray(a,2),c=b[0],d=b[1],e=text("title","Switch option"),f=text("content","Normally, the button and icon are vertically centered."),g=boolean("disabled",!1),h=boolean("showMediaAtAllSizes",!1),i=boolean("isContainerAligned",!1);return/*#__PURE__*/_jsx(SwitchOption,{media:/*#__PURE__*/_jsx(FastFlagIcon,{}),title:e,content:f,id:"id",checked:c,complex:!1,disabled:g,showMediaAtAllSizes:h,isContainerAligned:i,"aria-label":e,onChange:d})};export var Basic=function(){return/*#__PURE__*/_jsx(Template,{})};export var Multiple=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{})]})};export var WithContainerContent=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("h2",{className:"m-b-2",children:"Choose how to pay"}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(Nudge,{className:"m-t-2",mediaName:"globe",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")})})]})};
@@ -1 +0,0 @@
1
- export{default}from"./SwitchOption";
@@ -1 +0,0 @@
1
- import classNames from"classnames";import PropTypes from"prop-types";import{forwardRef,useEffect,useRef}from"react";import{jsx as _jsx}from"react/jsx-runtime";var Tab=/*#__PURE__*/forwardRef(function(a,b){var c=a.children,d=a.id,e=a.disabled,f=a.panelId,g=a.selected,h=a.onKeyDown,i=a.onClick,j=a.style,k=a.focusTab,l=useRef(!0),m=function(){return l.current?void(l.current=!1):void(g&&k&&k())};return useEffect(function(){m()},[g]),/*#__PURE__*/_jsx("li",{ref:b,className:classNames("tabs__tab",g?"np-text-body-large-bold":"np-text-body-large",{"tabs__tab--selected":g,clickable:!e,disabled:e}),role:"tab",id:d,"aria-selected":g?"true":"false","aria-disabled":e?"true":"false","aria-controls":e?null:f,tabIndex:"0",style:j,onKeyDown:e?null:h,onClick:i,children:/*#__PURE__*/_jsx("span",{className:"tabs__tab__content",children:c})})});Tab.defaultProps={disabled:!1,selected:!1,onClick:null,style:null,focusTab:null},Tab.propTypes={children:PropTypes.node.isRequired,disabled:PropTypes.bool,selected:PropTypes.bool,id:PropTypes.string.isRequired,panelId:PropTypes.string.isRequired,onKeyDown:PropTypes.func.isRequired,onClick:PropTypes.func,style:PropTypes.shape({width:PropTypes.string}),focusTab:PropTypes.func};export default Tab;
@@ -1 +0,0 @@
1
- import PropTypes from"prop-types";import{jsx as _jsx}from"react/jsx-runtime";var TabList=function(a){var b=a.children;return/*#__PURE__*/_jsx("ul",{className:"tabs__tab-list",role:"tablist",children:b})};TabList.propTypes={children:PropTypes.oneOfType([PropTypes.object,PropTypes.array]).isRequired};export default TabList;
@@ -1 +0,0 @@
1
- import PropTypes from"prop-types";import{jsx as _jsx}from"react/jsx-runtime";var TabPanel=function(a){var b=a.children,c=a.id,d=a.tabId,e=a.style;return/*#__PURE__*/_jsx("div",{className:"tabs__panel",role:"tabpanel",id:c,"aria-labelledby":d,style:e,children:b})};TabPanel.propTypes={children:PropTypes.node.isRequired,id:PropTypes.string.isRequired,tabId:PropTypes.string.isRequired,style:PropTypes.shape({width:PropTypes.string.isRequired}).isRequired};export default TabPanel;
@@ -1 +0,0 @@
1
- import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";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";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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"core-js/modules/es.array.reduce.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.constructor.js";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}}/* eslint-disable react/forbid-dom-props */import{Spring,animated}from"@react-spring/web";import classNames from"classnames";import clamp from"lodash.clamp";import PropTypes from"prop-types";import{Component,createRef,Fragment}from"react";import{Size,Width,Direction}from"../common";import KeyCodes from"../common/keyCodes";import{DirectionContext}from"../provider/direction";import Tab from"./Tab";import TabList from"./TabList";import TabPanel from"./TabPanel";import{getElasticDragDifference,getSwipeDifference,swipedLeftToRight,swipedRightToLeft,swipeShouldChangeTab,getVelocity}from"./utils";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var MIN_INDEX=0,enabledTabsFilter=function(a){return!a.disabled},SpacerWidth={default:0,xs:8,sm:16,md:24,lg:32},Tabs=/*#__PURE__*/function(a){/** @type {RefObject<HTMLDivElement>} */function b(a){var d;return _classCallCheck(this,b),d=c.call(this,a),_defineProperty(_assertThisInitialized(d),"containerReference",/*#__PURE__*/createRef()),_defineProperty(_assertThisInitialized(d),"container",null),_defineProperty(_assertThisInitialized(d),"containerWidth",0),_defineProperty(_assertThisInitialized(d),"tabRefs",[]),_defineProperty(_assertThisInitialized(d),"handleResize",function(){d.setContainerWidth(d.container),d.setState(function(a){var b=a.selectedTabIndex;return{translateTo:-(d.containerWidth*b)}})}),_defineProperty(_assertThisInitialized(d),"setContainerRefAndWidth",function(a){d.container=a,d.setContainerWidth(a)}),_defineProperty(_assertThisInitialized(d),"setContainerWidth",function(a){if(a){var b=a.getBoundingClientRect(),c=b.width;d.containerWidth=c}}),_defineProperty(_assertThisInitialized(d),"isTabDisabled",function(a){var b=d.props.tabs;return b[a]&&b[a].disabled}),_defineProperty(_assertThisInitialized(d),"getAllTabsWidth",function(){return d.tabRefs.map(function(a){return a?a.getBoundingClientRect().width:0}).reduce(function(c,a){return c+a},0)}),_defineProperty(_assertThisInitialized(d),"getDistanceToSelectedTab",function(a){return d.tabRefs.filter(function(b,c){return c<a}).map(function(a){return a?a.getBoundingClientRect().width:0}).reduce(function(c,a){return c+a},0)}),_defineProperty(_assertThisInitialized(d),"setTabWidth",function(){var a=d.state.fullWidthTabs,b=d.props,c=b.headerWidth,e=b.selected,f=d.getAllTabsWidth();!a&&(c===Width.BLOCK||d.containerWidth<f)&&d.setState({fullWidthTabs:!0,translateLineX:"".concat(100*e,"%")}),a&&c===Width.AUTO&&d.containerWidth>=f&&d.setState({fullWidthTabs:!1,translateLineX:"".concat(d.getDistanceToSelectedTab(e),"px")})}),_defineProperty(_assertThisInitialized(d),"getTabLineWidth",function(){var a=d.state.fullWidthTabs,b=d.props,c=b.selected,e=b.tabs;if(a)return"".concat(100*(1/e.length),"%");var f=d.tabRefs[c]||d.tabRefs[d.tabRefs.length-1],g=f?f.getBoundingClientRect().width:0;return"".concat(g,"px")}),_defineProperty(_assertThisInitialized(d),"getTabToSelect",function(a,b,c){var e=a;if(swipedLeftToRight(b,c)){if(e-=1,e>MIN_INDEX&&d.isTabDisabled(e))return d.getTabToSelect(e,b,c);}else if(swipedRightToLeft(b,c)&&(e+=1,e<d.MAX_INDEX&&d.isTabDisabled(e)))return d.getTabToSelect(e,b,c);return e=clamp(e,Math.max(a-1,MIN_INDEX),Math.min(a+1,d.MAX_INDEX)),d.isTabDisabled(e)?a:e}),_defineProperty(_assertThisInitialized(d),"swipedOverHalfOfContainer",function(a){return .5<=a/d.containerWidth}),_defineProperty(_assertThisInitialized(d),"calculateApplicableDragDifference",function(a){var b=a.currentSelected,c=a.nextSelected,e=a.start,f=a.end,g=getSwipeDifference(e,f),h=getElasticDragDifference(g);return swipedLeftToRight(e,f)?b>MIN_INDEX&&b!==c?Math.min(g,d.containerWidth):h:!!swipedRightToLeft(e,f)&&(b<d.MAX_INDEX&&b!==c?-Math.min(g,d.containerWidth):-h)}),_defineProperty(_assertThisInitialized(d),"switchTab",function(a){var b=d.props.onTabSelect;b(a)}),_defineProperty(_assertThisInitialized(d),"animateToTab",function(a,b){d.animateLine(a),d.animatePanel(d.getTabIndexWithoutDisabledTabs(a),b)}),_defineProperty(_assertThisInitialized(d),"animateLine",function(a){d.setState(function(b){return{translateLineX:b.fullWidthTabs?"".concat(100*a,"%"):"".concat(d.getDistanceToSelectedTab(a),"px")}})}),_defineProperty(_assertThisInitialized(d),"animatePanel",function(a){var b=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],c=d.state.translateTo,e=c,f=-(d.containerWidth*a);d.setState({selectedTabIndex:a,isAnimating:!b&&e!==f,translateFrom:e,translateTo:f})}),_defineProperty(_assertThisInitialized(d),"disableScroll",function(a){var b=d.state.isSwiping;b&&a.preventDefault()}),_defineProperty(_assertThisInitialized(d),"handleTabClick",function(a){return function(){d.switchTab(a)}}),_defineProperty(_assertThisInitialized(d),"onKeyDown",function(a){return function(b){b&&b.keyCode===KeyCodes.ENTER&&d.switchTab(a)}}),_defineProperty(_assertThisInitialized(d),"handleTouchStart",function(a){var b={x:a.nativeEvent.touches[0].clientX,y:a.nativeEvent.touches[0].clientY,time:Date.now()};d.setState({start:b,currentSwipe:[b]}),a.persist()}),_defineProperty(_assertThisInitialized(d),"handleTouchMove",function(a){var b=d.state.start,c=d.props.selected,e=d.getTabIndexWithoutDisabledTabs(c),f={x:a.nativeEvent.changedTouches[0].clientX,y:a.nativeEvent.changedTouches[0].clientY,time:Date.now()},g=getSwipeDifference(b,f),h=getSwipeDifference(b,f,"y"),i=d.state,j=i.isScrolling,k=i.isSwiping;if(a.persist(),j||k||(g>h?k=!0:j=!0),d.setState({isScrolling:j,isSwiping:k}),k){var l=d.getTabToSelect(c,b,f);d.animateLine(d.swipedOverHalfOfContainer(g)?l:c);var m=d.calculateApplicableDragDifference({currentSelected:c,nextSelected:l,start:b,end:f}),n=!!m&&-(d.containerWidth*e)+m;d.setState(function(a){return{currentSwipe:[].concat(_toConsumableArray(a.currentSwipe),[f]),translateFrom:n||a.translateFrom,translateTo:n||a.translateTo}})}}),_defineProperty(_assertThisInitialized(d),"handleTouchEnd",function(a){var b=d.state,c=b.start,e=b.isSwiping,f=d.props.selected,g={x:a.nativeEvent.changedTouches[0].clientX,y:a.nativeEvent.changedTouches[0].clientY,time:Date.now()},h=getSwipeDifference(c,g),i=getVelocity([].concat(_toConsumableArray(d.state.currentSwipe),[g]));d.setState({currentSwipe:[]});var j=f;a.persist(),e&&((swipeShouldChangeTab(c,g)||d.swipedOverHalfOfContainer(h))&&(j=d.getTabToSelect(j,c,g)),j===f?d.animateToTab(j):(d.switchTab(j),d.setState({lastSwipeVelocity:i}))),d.setState({isSwiping:!1,isScrolling:!1})}),d.state={start:null,translateX:0,translateFrom:0,translateTo:0,translateLineX:null,isAnimating:!1,isSwiping:!1,isScrolling:!1,lastSwipeVelocity:0,fullWidthTabs:a.headerWidth===Width.BLOCK},d}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"filteredTabsLength",get:function get(){return this.props.tabs.filter(enabledTabsFilter).length}},{key:"MAX_INDEX",get:function get(){return this.props.tabs.length-1}},{key:"componentDidMount",value:function componentDidMount(){var a=this.props.selected;this.setTabWidth(),this.switchTab(clamp(a,MIN_INDEX,this.MAX_INDEX)),this.animateToTab(clamp(a,MIN_INDEX,this.MAX_INDEX),!0),document.body.addEventListener("touchmove",this.disableScroll,{passive:!1}),document.body.addEventListener("touchforcechange",this.disableScroll,{passive:!1}),window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function componentDidUpdate(a,b){var c=this.props.selected,d=a.selected,e=this.props.tabs[c],f=e&&e.disabled,g=a.tabs[d],h=g&&g.disabled,i=this.props.tabs.length,j=a.tabs.length,k=this.props.tabs.filter(enabledTabsFilter).length,l=a.tabs.filter(enabledTabsFilter).length,m=this.props.headerWidth,n=a.headerWidth,o=this.props.animatePanelsOnClick,p=!o&&!b.isSwiping;(m!==n||i!==j)&&this.setTabWidth(),(c!==d||k!==l||f!==h)&&this.animateToTab(clamp(c,MIN_INDEX,this.MAX_INDEX),c===d||p)}},{key:"componentWillUnmount",value:function componentWillUnmount(){document.body.removeEventListener("touchmove",this.disableScroll),document.body.removeEventListener("touchforcechange",this.disableScroll),window.removeEventListener("resize",this.handleResize)}},{key:"getTabIndexWithoutDisabledTabs",value:function getTabIndexWithoutDisabledTabs(a){return a-this.props.tabs.slice(0,a).filter(function(a){return!enabledTabsFilter(a)}).length}},{key:"render",value:function render(){var a=this,b=this.props,c=b.tabs,d=b.changeTabOnSwipe,e=b.name,f=b.selected,g=b.className,h=b.transitionSpacing,i=b.headerWidth,j=this.state,k=j.isSwiping,l=j.translateLineX,m=j.isAnimating,n=j.translateFrom,o=j.translateTo,p=j.lastSwipeVelocity,q=j.fullWidthTabs,r=SpacerWidth[h],s=this.filteredTabsLength,t=Math.abs(-n-this.containerWidth*f),u=k?1-t/this.containerWidth:1-Math.abs(t/this.containerWidth-1),v=(Number.isNaN(u)?0:u)*Math.min(10*Math.E,10*p*Math.E),w=m||k,x=s*this.containerWidth+2*r,y=function(a){var b=a.id;return 0<r&&/*#__PURE__*/_jsx("div",{style:{width:r,display:w?"block":"none"}},b)};return/*#__PURE__*/_jsx(DirectionContext.Consumer,{children:function children(b){var h=b===Direction.RTL;return/*#__PURE__*/_jsxs("div",{ref:a.containerReference,className:classNames("tabs",g,{"tabs--auto-width":i===Width.AUTO}),onTouchStart:d?a.handleTouchStart:void 0,onTouchEnd:d?a.handleTouchEnd:void 0,onTouchMove:d?a.handleTouchMove:void 0,children:[/*#__PURE__*/_jsxs(TabList,{children:[c.map(function(b,d){var g=b.title,h=b.disabled;return/*#__PURE__*/_jsx(Tab,_objectSpread(_objectSpread({ref:function ref(b){a.tabRefs[d]=b},id:"".concat(e,"-tab-").concat(d),panelId:"".concat(e,"-panel-").concat(d),selected:f===d,disabled:h,focusTab:function focusTab(){var b;null!==(b=a.containerReference.current)&&void 0!==b&&b.contains(document.activeElement)&&a.tabRefs[d].focus()},onClick:h?null:a.handleTabClick(d),onKeyDown:a.onKeyDown(d)},q?{style:{width:"".concat(100*(1/c.length),"%")}}:{}),{},{children:g}),g)}),l?/*#__PURE__*/_jsx("li",{className:classNames("tabs__line"),style:{width:a.getTabLineWidth(),transform:h?"translateX(-".concat(l,")"):"translateX(".concat(l,")")}}):null]}),/*#__PURE__*/_jsx("div",{ref:a.setContainerRefAndWidth,className:"tabs__panel-container",style:{overflow:w?"hidden":"visible"},children:/*#__PURE__*/_jsx(Spring,{from:{transform:"translateX(".concat(n-r,"px)")},to:{transform:"translateX(".concat(o-r,"px)")},config:{precision:k?1:.01,velocity:k?0:v,clamp:!0},onRest:function onRest(){m&&a.setState({isAnimating:!1,lastSwipeVelocity:0})},children:function children(b){return/*#__PURE__*/_jsx(animated.div,{className:"tabs__slider",style:{width:w?"".concat(x,"px"):"100%",transform:w?b.transform:"translateX(0px)"},children:c.map(function(b,d){var g=b.content,h=b.disabled;return h?null:/*#__PURE__*/_jsxs(Fragment,{children:[d===f&&/*#__PURE__*/_jsx(y,{id:"left-spacer"}),/*#__PURE__*/_jsx(TabPanel,{tabId:"".concat(e,"-tab-").concat(d),id:"".concat(e,"-panel-").concat(d),style:{width:w?"".concat(a.containerWidth,"px"):"100%",display:w||d===f?"block":"none"},children:g},c[d].title),d===f&&/*#__PURE__*/_jsx(y,{id:"right-spacer"})]},"".concat(c[d].title,"-fragment"))})})}})})]})}})}}]),b}(Component),SpacerSizes=_objectSpread(_objectSpread({},Size),{},{NONE:"default"});Tabs.propTypes={tabs:PropTypes.arrayOf(PropTypes.shape({title:PropTypes.string.isRequired,content:PropTypes.node.isRequired,disabled:PropTypes.bool.isRequired})).isRequired,selected:PropTypes.number.isRequired,onTabSelect:PropTypes.func.isRequired,name:PropTypes.string.isRequired,animatePanelsOnClick:PropTypes.bool,changeTabOnSwipe:PropTypes.bool,className:PropTypes.string,transitionSpacing:PropTypes.oneOf(["default","xs","sm","md","lg"]),headerWidth:PropTypes.oneOf(["auto","block"]),id:PropTypes.string},Tabs.defaultProps={animatePanelsOnClick:!1,changeTabOnSwipe:!0,className:"",transitionSpacing:SpacerSizes.NONE,headerWidth:Width.BLOCK};export default Tabs;
@@ -1 +0,0 @@
1
- export{default}from"./Tabs";