@orfium/ictinus 4.75.0 → 4.76.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 (365) hide show
  1. package/dist/components/Avatar/Avatar.d.ts +1 -1
  2. package/dist/components/Avatar/Avatar.js +9 -22
  3. package/dist/components/Avatar/Avatar.style.js +3 -18
  4. package/dist/components/Avatar/AvatarStack/AvatarStack.d.ts +1 -1
  5. package/dist/components/Avatar/AvatarStack/AvatarStack.js +8 -24
  6. package/dist/components/Avatar/AvatarStack/AvatarStack.style.js +1 -12
  7. package/dist/components/Avatar/AvatarStack/index.js +0 -3
  8. package/dist/components/Avatar/AvatarStack/utils.js +1 -3
  9. package/dist/components/Avatar/index.js +0 -3
  10. package/dist/components/Avatar/utils.js +0 -5
  11. package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -2
  12. package/dist/components/Breadcrumb/Breadcrumb.js +5 -17
  13. package/dist/components/Breadcrumb/Breadcrumb.style.js +1 -9
  14. package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.js +2 -9
  15. package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.js +0 -5
  16. package/dist/components/Breadcrumb/Separator/Separator.js +1 -10
  17. package/dist/components/Breadcrumb/Separator/Separator.style.js +0 -4
  18. package/dist/components/Breadcrumb/index.js +0 -3
  19. package/dist/components/Button/Button.js +22 -37
  20. package/dist/components/Button/Button.style.js +3 -9
  21. package/dist/components/Button/ButtonLoader/ButtonLoader.js +5 -16
  22. package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +0 -6
  23. package/dist/components/Button/ButtonLoader/index.js +0 -3
  24. package/dist/components/Button/index.js +0 -3
  25. package/dist/components/Button/utils.js +1 -15
  26. package/dist/components/ButtonBase/ButtonBase.d.ts +4 -4
  27. package/dist/components/ButtonBase/ButtonBase.js +31 -41
  28. package/dist/components/ButtonBase/ButtonBase.style.js +10 -28
  29. package/dist/components/ButtonBase/config.js +1 -1
  30. package/dist/components/ButtonBase/index.js +0 -3
  31. package/dist/components/ButtonBase/utils.js +6 -20
  32. package/dist/components/Card/Card.d.ts +2 -2
  33. package/dist/components/Card/Card.js +4 -10
  34. package/dist/components/Card/Card.style.js +3 -10
  35. package/dist/components/Card/index.js +0 -3
  36. package/dist/components/Chart/BarChart/BarChart.js +10 -29
  37. package/dist/components/Chart/BarChart/components/CustomLabel/CustomLabel.js +6 -13
  38. package/dist/components/Chart/BarChart/components/CustomLabel/index.js +0 -3
  39. package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.js +5 -15
  40. package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.js +1 -12
  41. package/dist/components/Chart/BarChart/components/CustomTooltip/index.js +0 -3
  42. package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js +4 -11
  43. package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js +1 -10
  44. package/dist/components/Chart/BarChart/components/CustomTooltipContent/index.js +0 -3
  45. package/dist/components/Chart/BarChart/index.js +0 -3
  46. package/dist/components/Chart/BarChart/utils.js +4 -24
  47. package/dist/components/Chart/DonutChart/DonutChart.js +2 -13
  48. package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.js +4 -11
  49. package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.js +0 -8
  50. package/dist/components/Chart/DonutChart/components/CustomLabel/index.js +0 -3
  51. package/dist/components/Chart/DonutChart/index.js +0 -3
  52. package/dist/components/Chart/LineChart/LineChart.js +7 -22
  53. package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.js +2 -8
  54. package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.js +1 -10
  55. package/dist/components/Chart/LineChart/components/CustomTooltip/index.js +0 -3
  56. package/dist/components/Chart/LineChart/components/GradientLine/GradientLine.js +1 -7
  57. package/dist/components/Chart/LineChart/components/GradientLine/index.js +0 -3
  58. package/dist/components/Chart/LineChart/index.js +0 -3
  59. package/dist/components/Chart/LineChart/story.utils.js +0 -5
  60. package/dist/components/Chart/LineChart/utils.js +3 -9
  61. package/dist/components/Chart/Wrapper.js +2 -14
  62. package/dist/components/CheckBox/CheckBox.js +17 -39
  63. package/dist/components/CheckBox/CheckBox.style.js +4 -26
  64. package/dist/components/CheckBox/index.js +0 -3
  65. package/dist/components/Chip/Chip.js +13 -33
  66. package/dist/components/Chip/Chip.style.js +5 -15
  67. package/dist/components/Chip/Chip.types.js +1 -1
  68. package/dist/components/Chip/components/Badge/Badge.js +3 -10
  69. package/dist/components/Chip/components/Badge/Badge.style.js +2 -7
  70. package/dist/components/Chip/components/Badge/index.js +0 -3
  71. package/dist/components/Chip/index.js +0 -3
  72. package/dist/components/Chip/utils.js +5 -8
  73. package/dist/components/DatePicker/DatePickInput/DatePickInput.js +16 -37
  74. package/dist/components/DatePicker/DatePickInput/DatePickInput.style.js +0 -5
  75. package/dist/components/DatePicker/DatePickInput/index.js +0 -3
  76. package/dist/components/DatePicker/DatePicker.js +31 -63
  77. package/dist/components/DatePicker/DatePicker.style.js +0 -4
  78. package/dist/components/DatePicker/Day/Day.js +15 -32
  79. package/dist/components/DatePicker/Day/Day.style.js +11 -23
  80. package/dist/components/DatePicker/Day/index.js +0 -3
  81. package/dist/components/DatePicker/Month/Month.js +6 -26
  82. package/dist/components/DatePicker/Month/Month.style.js +1 -12
  83. package/dist/components/DatePicker/Month/Month.utils.js +1 -25
  84. package/dist/components/DatePicker/Month/index.js +0 -3
  85. package/dist/components/DatePicker/OverlayComponent/OverlayComponent.js +17 -33
  86. package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.js +1 -21
  87. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.js +13 -32
  88. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js +2 -20
  89. package/dist/components/DatePicker/OverlayComponent/index.js +0 -3
  90. package/dist/components/DatePicker/index.js +0 -4
  91. package/dist/components/DatePicker/utils.js +0 -7
  92. package/dist/components/Drawer/Drawer.js +0 -9
  93. package/dist/components/Drawer/Drawer.style.js +0 -6
  94. package/dist/components/Drawer/Navigation/MenuItem/MenuItem.js +10 -26
  95. package/dist/components/Drawer/Navigation/Navigation.js +5 -20
  96. package/dist/components/Drawer/Navigation/Navigation.style.js +1 -34
  97. package/dist/components/Drawer/index.js +0 -3
  98. package/dist/components/ExpandCollapse/ExpandCollapse.js +15 -31
  99. package/dist/components/ExpandCollapse/ExpandCollapse.style.js +0 -5
  100. package/dist/components/ExpandCollapse/index.js +0 -3
  101. package/dist/components/ExpandCollapse/useManageContentRef.js +0 -13
  102. package/dist/components/ExpandCollapse/utils.js +2 -4
  103. package/dist/components/Filter/Filter.js +54 -90
  104. package/dist/components/Filter/Filter.style.js +15 -46
  105. package/dist/components/Filter/components/FilterBase/FilterBase.js +18 -36
  106. package/dist/components/Filter/components/FilterBase/index.js +0 -3
  107. package/dist/components/Filter/components/MultiFilter/MultiFilter.js +9 -23
  108. package/dist/components/Filter/components/MultiFilter/MultiFilter.style.js +1 -11
  109. package/dist/components/Filter/components/MultiFilter/index.js +0 -3
  110. package/dist/components/Filter/components/Options/Options.js +7 -16
  111. package/dist/components/Filter/components/Options/Options.style.js +0 -6
  112. package/dist/components/Filter/components/SingleFilter/SingleFilter.js +10 -19
  113. package/dist/components/Filter/components/SingleFilter/components/SearchInput/SearchInput.js +3 -16
  114. package/dist/components/Filter/components/SingleFilter/components/SearchInput/SearchInput.style.js +1 -9
  115. package/dist/components/Filter/components/SingleFilter/components/SearchInput/index.js +0 -3
  116. package/dist/components/Filter/components/SingleFilter/index.js +0 -3
  117. package/dist/components/Filter/hooks/useMultiFilterUtils.js +14 -32
  118. package/dist/components/Filter/index.js +0 -3
  119. package/dist/components/Filter/utils.d.ts +1 -1
  120. package/dist/components/Filter/utils.js +17 -39
  121. package/dist/components/Icon/Icon.js +8 -16
  122. package/dist/components/Icon/Icon.style.js +3 -9
  123. package/dist/components/Icon/assets/iconSelector.js +0 -347
  124. package/dist/components/Icon/index.js +0 -4
  125. package/dist/components/IconButton/IconButton.js +10 -24
  126. package/dist/components/IconButton/IconButton.style.js +0 -3
  127. package/dist/components/IconButton/index.js +0 -3
  128. package/dist/components/Label/Label.js +9 -17
  129. package/dist/components/Label/Label.style.js +1 -8
  130. package/dist/components/Label/index.js +0 -3
  131. package/dist/components/List/List.js +11 -24
  132. package/dist/components/List/List.style.js +4 -16
  133. package/dist/components/List/ListItem/ListItem.js +14 -23
  134. package/dist/components/List/ListItem/ListItem.style.js +5 -14
  135. package/dist/components/List/ListItem/index.js +0 -3
  136. package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.js +4 -11
  137. package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.js +2 -11
  138. package/dist/components/List/ListItemGroup/ListGroupTitle/index.js +0 -3
  139. package/dist/components/List/ListItemGroup/ListItemGroup.js +6 -17
  140. package/dist/components/List/ListItemGroup/index.js +0 -3
  141. package/dist/components/List/NormalList/NormalList.js +9 -20
  142. package/dist/components/List/NormalList/index.js +0 -3
  143. package/dist/components/List/VirtualizedList/VirtualizedList.js +12 -34
  144. package/dist/components/List/VirtualizedList/index.js +0 -3
  145. package/dist/components/List/index.js +0 -3
  146. package/dist/components/List/utils.d.ts +1 -1
  147. package/dist/components/List/utils.js +5 -24
  148. package/dist/components/Loader/Loader.js +3 -10
  149. package/dist/components/Loader/Loader.style.js +0 -5
  150. package/dist/components/Loader/Loader.utils.d.ts +2 -2
  151. package/dist/components/Loader/Loader.utils.js +1 -12
  152. package/dist/components/Loader/components/DotsLoader/DotsLoader.js +1 -8
  153. package/dist/components/Loader/components/DotsLoader/DotsLoader.style.js +1 -14
  154. package/dist/components/Loader/components/DotsLoader/index.js +0 -3
  155. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.js +1 -8
  156. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.js +1 -19
  157. package/dist/components/Loader/components/IndeterminateLoader/index.js +0 -3
  158. package/dist/components/Loader/components/Spinner/Spinner.js +1 -8
  159. package/dist/components/Loader/components/Spinner/Spinner.style.js +0 -7
  160. package/dist/components/Loader/components/Spinner/index.js +0 -3
  161. package/dist/components/Loader/index.js +0 -3
  162. package/dist/components/Menu/Menu.js +24 -46
  163. package/dist/components/Menu/Menu.style.js +4 -11
  164. package/dist/components/Menu/index.js +0 -3
  165. package/dist/components/Modal/Modal.d.ts +2 -3
  166. package/dist/components/Modal/Modal.js +11 -26
  167. package/dist/components/Modal/Modal.style.js +1 -14
  168. package/dist/components/Modal/ModalContent/ModalContent.js +7 -17
  169. package/dist/components/Modal/ModalContent/ModalContent.style.js +1 -18
  170. package/dist/components/Modal/ModalContent/index.js +0 -3
  171. package/dist/components/Modal/index.js +0 -3
  172. package/dist/components/MultiTextFieldBase/MultiTextFieldBase.js +42 -67
  173. package/dist/components/MultiTextFieldBase/MultiTextFieldBase.style.js +7 -34
  174. package/dist/components/MultiTextFieldBase/hooks.js +9 -30
  175. package/dist/components/MultiTextFieldBase/index.js +0 -3
  176. package/dist/components/Notification/Banner/Banner.js +12 -20
  177. package/dist/components/Notification/Banner/index.js +0 -3
  178. package/dist/components/Notification/InlineNotification/InlineNotification.js +11 -19
  179. package/dist/components/Notification/InlineNotification/index.js +0 -3
  180. package/dist/components/Notification/Notification.style.js +3 -22
  181. package/dist/components/Notification/NotificationVisual/NotificationVisual.js +8 -19
  182. package/dist/components/Notification/NotificationVisual/NotificationVisual.style.js +1 -9
  183. package/dist/components/Notification/NotificationVisual/index.js +0 -3
  184. package/dist/components/Notification/NotificationsContainer/NotificationsContainer.js +3 -12
  185. package/dist/components/Notification/NotificationsContainer/NotificationsContainer.style.js +0 -8
  186. package/dist/components/Notification/NotificationsContainer/index.js +0 -3
  187. package/dist/components/Notification/Snackbar/Snackbar.js +13 -29
  188. package/dist/components/Notification/Snackbar/Snackbar.style.js +1 -18
  189. package/dist/components/Notification/Snackbar/index.js +0 -3
  190. package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js +14 -32
  191. package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js +1 -23
  192. package/dist/components/Notification/subcomponents/CompactNotification/index.js +0 -3
  193. package/dist/components/Notification/subcomponents/NotificationActionsArea/NotificationActionsArea.js +5 -13
  194. package/dist/components/Notification/subcomponents/NotificationActionsArea/index.js +0 -3
  195. package/dist/components/Overlay/Overlay.d.ts +1 -1
  196. package/dist/components/Overlay/Overlay.js +7 -18
  197. package/dist/components/Overlay/Overlay.style.js +3 -33
  198. package/dist/components/Overlay/index.js +0 -3
  199. package/dist/components/Pagination/Pagination.js +19 -29
  200. package/dist/components/Pagination/index.js +0 -3
  201. package/dist/components/Radio/Radio.js +19 -38
  202. package/dist/components/Radio/Radio.style.js +3 -27
  203. package/dist/components/Radio/index.js +0 -3
  204. package/dist/components/RadioGroup/RadioGroup.js +7 -22
  205. package/dist/components/RadioGroup/RadioGroupContext.js +0 -4
  206. package/dist/components/RadioGroup/index.js +0 -3
  207. package/dist/components/RadioGroup/useRadioGroup.js +0 -6
  208. package/dist/components/SearchField/SearchField.js +12 -31
  209. package/dist/components/SearchField/SearchFieldShowcase.js +4 -15
  210. package/dist/components/SearchField/index.js +0 -3
  211. package/dist/components/Select/Select.js +63 -124
  212. package/dist/components/Select/Select.style.js +1 -10
  213. package/dist/components/Select/components/SelectMenu/SelectMenu.js +7 -23
  214. package/dist/components/Select/components/SelectMenu/SelectMenu.style.js +5 -15
  215. package/dist/components/Select/components/SelectMenu/index.js +0 -3
  216. package/dist/components/Select/hooks/useMultiselectUtils.js +18 -39
  217. package/dist/components/Select/index.js +0 -3
  218. package/dist/components/Slider/Slider.js +12 -42
  219. package/dist/components/Slider/Slider.style.js +4 -9
  220. package/dist/components/Slider/components/SliderMark/SliderMark.js +7 -19
  221. package/dist/components/Slider/components/SliderMark/SliderMark.style.js +3 -7
  222. package/dist/components/Slider/components/SliderMark/index.js +0 -3
  223. package/dist/components/Slider/components/SliderThumb/SliderThumb.js +5 -13
  224. package/dist/components/Slider/components/SliderThumb/SliderThumb.style.js +4 -10
  225. package/dist/components/Slider/components/SliderThumb/index.js +0 -3
  226. package/dist/components/Slider/components/SliderTrack/SliderTrack.d.ts +2 -3
  227. package/dist/components/Slider/components/SliderTrack/SliderTrack.js +8 -20
  228. package/dist/components/Slider/components/SliderTrack/SliderTrack.style.js +1 -5
  229. package/dist/components/Slider/components/SliderTrack/index.js +0 -3
  230. package/dist/components/Slider/index.js +0 -3
  231. package/dist/components/Switch/Switch.js +8 -20
  232. package/dist/components/Switch/Switch.style.js +9 -14
  233. package/dist/components/Switch/index.js +0 -3
  234. package/dist/components/Table/Table.d.ts +4 -4
  235. package/dist/components/Table/Table.js +40 -76
  236. package/dist/components/Table/Table.style.js +1 -14
  237. package/dist/components/Table/TableRowContext.js +0 -4
  238. package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.js +10 -27
  239. package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.js +0 -9
  240. package/dist/components/Table/components/ExtendedColumnItem/index.js +0 -3
  241. package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.js +30 -59
  242. package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.js +4 -13
  243. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.js +12 -22
  244. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.js +0 -4
  245. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/index.js +0 -3
  246. package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.js +6 -16
  247. package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.js +0 -3
  248. package/dist/components/Table/components/RenderRowOrNestedRow/index.js +0 -3
  249. package/dist/components/Table/components/TableCell/TableCell.d.ts +2 -2
  250. package/dist/components/Table/components/TableCell/TableCell.js +24 -36
  251. package/dist/components/Table/components/TableCell/TableCell.style.js +0 -8
  252. package/dist/components/Table/components/TableCell/index.js +0 -3
  253. package/dist/components/Table/components/TableCell/utils.js +0 -3
  254. package/dist/components/Table/components/TableRow/TableRow.d.ts +2 -2
  255. package/dist/components/Table/components/TableRow/TableRow.js +6 -18
  256. package/dist/components/Table/components/TableRow/index.js +0 -3
  257. package/dist/components/Table/components/TableRowWrapper/TableRowWrapper.js +14 -24
  258. package/dist/components/Table/components/TableRowWrapper/index.js +0 -3
  259. package/dist/components/Table/index.js +0 -3
  260. package/dist/components/Table/utils/index.js +0 -2
  261. package/dist/components/Table/utils/utils.js +1 -7
  262. package/dist/components/TextArea/TextArea.js +10 -27
  263. package/dist/components/TextArea/TextArea.style.js +0 -4
  264. package/dist/components/TextArea/index.js +0 -3
  265. package/dist/components/TextField/TextField.js +55 -85
  266. package/dist/components/TextField/TextField.style.js +1 -6
  267. package/dist/components/TextField/components/commons.d.ts +3 -2
  268. package/dist/components/TextField/components/commons.js +2 -8
  269. package/dist/components/TextField/hooks/useMultiTextFieldUtils.js +14 -31
  270. package/dist/components/TextField/index.js +0 -3
  271. package/dist/components/TextInputBase/TextInputBase.d.ts +6 -6
  272. package/dist/components/TextInputBase/TextInputBase.js +21 -31
  273. package/dist/components/TextInputBase/TextInputBase.style.js +21 -43
  274. package/dist/components/TextInputBase/config.js +1 -1
  275. package/dist/components/TextInputBase/index.js +0 -4
  276. package/dist/components/ThemeProvider/ThemeProvider.d.ts +2 -3
  277. package/dist/components/ThemeProvider/ThemeProvider.js +6 -24
  278. package/dist/components/ThemeProvider/ThemeProvider.style.js +1 -9
  279. package/dist/components/ThemeProvider/index.js +0 -3
  280. package/dist/components/Toast/Toast.d.ts +2 -3
  281. package/dist/components/Toast/Toast.js +16 -33
  282. package/dist/components/Toast/Toast.style.js +1 -28
  283. package/dist/components/Toast/index.js +0 -3
  284. package/dist/components/Tooltip/Tooltip.js +11 -18
  285. package/dist/components/Tooltip/Tooltip.style.js +1 -10
  286. package/dist/components/Tooltip/index.js +0 -3
  287. package/dist/components/TopAppBar/TopAppBar.js +14 -24
  288. package/dist/components/TopAppBar/TopAppBar.style.js +0 -13
  289. package/dist/components/TopAppBar/TopAppBar.types.d.ts +2 -2
  290. package/dist/components/TopAppBar/components/Logo/Logo.style.js +1 -8
  291. package/dist/components/TopAppBar/components/Logo/Logo.wrapper.d.ts +2 -2
  292. package/dist/components/TopAppBar/components/Logo/Logo.wrapper.js +0 -7
  293. package/dist/components/TopAppBar/components/Logo/index.js +0 -3
  294. package/dist/components/TopAppBar/components/Search/Search.js +9 -18
  295. package/dist/components/TopAppBar/components/Search/Search.style.js +1 -13
  296. package/dist/components/TopAppBar/components/Search/index.js +0 -3
  297. package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.js +0 -7
  298. package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.js +0 -4
  299. package/dist/components/TopAppBar/components/SidebarMenuIcon/index.js +0 -3
  300. package/dist/components/TopAppBar/components/UserMenu/UserMenu.js +5 -12
  301. package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.js +0 -4
  302. package/dist/components/TopAppBar/components/UserMenu/index.js +0 -3
  303. package/dist/components/TopAppBar/components/index.js +0 -7
  304. package/dist/components/TopAppBar/index.js +0 -3
  305. package/dist/components/TruncatedContent/TruncatedContent.d.ts +2 -2
  306. package/dist/components/TruncatedContent/TruncatedContent.js +7 -20
  307. package/dist/components/TruncatedContent/TruncatedContent.style.js +1 -5
  308. package/dist/components/TruncatedContent/index.js +0 -3
  309. package/dist/components/storyUtils/Stack/Stack.d.ts +2 -2
  310. package/dist/components/utils/ClickAwayListener/ClickAwayListener.d.ts +2 -2
  311. package/dist/components/utils/ClickAwayListener/ClickAwayListener.js +6 -17
  312. package/dist/components/utils/ClickAwayListener/index.js +0 -3
  313. package/dist/components/utils/DropdownOptions/index.js +0 -5
  314. package/dist/components/utils/PositionInScreen/PositionInScreen.d.ts +3 -2
  315. package/dist/components/utils/PositionInScreen/PositionInScreen.js +13 -24
  316. package/dist/components/utils/PositionInScreen/PositionInScreen.style.js +1 -10
  317. package/dist/components/utils/PositionInScreen/hooks.js +39 -60
  318. package/dist/components/utils/PositionInScreen/index.js +0 -3
  319. package/dist/components/utils/PositionInScreen/utils.js +1 -6
  320. package/dist/components/utils/handleSearch.js +7 -13
  321. package/dist/hooks/index.js +0 -3
  322. package/dist/hooks/useBreakpoints.js +1 -7
  323. package/dist/hooks/useCheck.d.ts +1 -1
  324. package/dist/hooks/useCheck.js +4 -9
  325. package/dist/hooks/useCombinedRefs.js +0 -7
  326. package/dist/hooks/useEscape.js +0 -4
  327. package/dist/hooks/useLoading.js +2 -7
  328. package/dist/hooks/useLocationToGetCurrentMenuItem.js +4 -10
  329. package/dist/hooks/usePagination.js +6 -17
  330. package/dist/hooks/useSearchQueryParams.js +1 -6
  331. package/dist/hooks/useTheme.js +0 -3
  332. package/dist/hooks/useThemeSwitch.d.ts +2 -2
  333. package/dist/hooks/useThemeSwitch.js +4 -15
  334. package/dist/hooks/useToggle.js +2 -9
  335. package/dist/hooks/useTypeColorToColorMatch.d.ts +4 -4
  336. package/dist/hooks/useTypeColorToColorMatch.js +6 -21
  337. package/dist/index.js +1 -108
  338. package/dist/test/index.js +0 -2
  339. package/dist/test/setup.js +2 -5
  340. package/dist/test/utils.d.ts +2 -2
  341. package/dist/test/utils.js +15 -39
  342. package/dist/theme/functions.js +5 -15
  343. package/dist/theme/index.js +0 -12
  344. package/dist/theme/palette.config.js +2 -4
  345. package/dist/theme/palette.js +12 -24
  346. package/dist/theme/spacing.js +1 -3
  347. package/dist/theme/states/disabled.js +1 -4
  348. package/dist/theme/states/focus.js +3 -7
  349. package/dist/theme/states/hover.js +2 -10
  350. package/dist/theme/states/index.js +0 -8
  351. package/dist/theme/states/pressed.js +2 -10
  352. package/dist/theme/states/statesConfig.js +1 -1
  353. package/dist/theme/states/utils.js +4 -9
  354. package/dist/theme/typography.js +0 -2
  355. package/dist/theme/utils.js +2 -23
  356. package/dist/utils/common.js +6 -3
  357. package/dist/utils/errors.js +4 -21
  358. package/dist/utils/helpers.d.ts +2 -2
  359. package/dist/utils/helpers.js +10 -26
  360. package/dist/utils/initLocaleFormat.js +1 -10
  361. package/dist/utils/size-utils.js +2 -20
  362. package/dist/utils/storyshots.js +4 -8
  363. package/dist/utils/themeFunctions.js +3 -25
  364. package/dist/utils/types.d.ts +2 -0
  365. package/package.json +16 -15
@@ -2,36 +2,30 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _react = require("react");
7
-
8
6
  var useMultiTextFieldUtils = function useMultiTextFieldUtils(_ref) {
9
7
  var _ref$multiValues = _ref.multiValues,
10
- multiValues = _ref$multiValues === void 0 ? [] : _ref$multiValues,
11
- maxMultiValues = _ref.maxMultiValues,
12
- onMultiValueCreate = _ref.onMultiValueCreate,
13
- onMultiValueDelete = _ref.onMultiValueDelete,
14
- onClearAllValues = _ref.onClearAllValues,
15
- onInput = _ref.onInput,
16
- _ref$multiValuesHandl = _ref.multiValuesHandler,
17
- multiValuesHandler = _ref$multiValuesHandl === void 0 ? function (value) {
18
- return value;
19
- } : _ref$multiValuesHandl;
20
-
8
+ multiValues = _ref$multiValues === void 0 ? [] : _ref$multiValues,
9
+ maxMultiValues = _ref.maxMultiValues,
10
+ onMultiValueCreate = _ref.onMultiValueCreate,
11
+ onMultiValueDelete = _ref.onMultiValueDelete,
12
+ onClearAllValues = _ref.onClearAllValues,
13
+ onInput = _ref.onInput,
14
+ _ref$multiValuesHandl = _ref.multiValuesHandler,
15
+ multiValuesHandler = _ref$multiValuesHandl === void 0 ? function (value) {
16
+ return value;
17
+ } : _ref$multiValuesHandl;
21
18
  var _useState = (0, _react.useState)(multiValues),
22
- values = _useState[0],
23
- setValues = _useState[1];
24
-
19
+ values = _useState[0],
20
+ setValues = _useState[1];
25
21
  var _useState2 = (0, _react.useState)(''),
26
- inputValue = _useState2[0],
27
- setInputValue = _useState2[1];
28
-
22
+ inputValue = _useState2[0],
23
+ setInputValue = _useState2[1];
29
24
  var handleValueDelete = function handleValueDelete(option) {
30
25
  if (option) {
31
26
  setValues(values.filter(function (opt) {
32
27
  return opt !== option;
33
28
  }));
34
-
35
29
  if (onMultiValueDelete) {
36
30
  onMultiValueDelete(option);
37
31
  }
@@ -44,42 +38,33 @@ var useMultiTextFieldUtils = function useMultiTextFieldUtils(_ref) {
44
38
  }
45
39
  }
46
40
  };
47
-
48
41
  var handleClearAllValues = function handleClearAllValues() {
49
42
  setValues([]);
50
43
  setInputValue('');
51
-
52
44
  if (onClearAllValues) {
53
45
  onClearAllValues();
54
46
  }
55
47
  };
56
-
57
48
  var handleTyping = function handleTyping(event) {
58
49
  setInputValue(event.target.value);
59
-
60
50
  if (onInput) {
61
51
  onInput(event);
62
52
  }
63
53
  };
64
-
65
54
  var handleKeyDown = function handleKeyDown(event) {
66
55
  if (maxMultiValues && values.length >= maxMultiValues) {
67
56
  event.preventDefault();
68
57
  return;
69
58
  }
70
-
71
59
  if (event.key === 'Enter') {
72
60
  if (inputValue === '') {
73
61
  event.preventDefault();
74
62
  }
75
-
76
63
  var handledInputValue = multiValuesHandler(inputValue);
77
64
  setValues([].concat(values, Array.isArray(handledInputValue) ? handledInputValue : [handledInputValue]));
78
-
79
65
  if (onMultiValueCreate) {
80
66
  onMultiValueCreate(inputValue);
81
67
  }
82
-
83
68
  setInputValue('');
84
69
  } else if (event.key === 'Backspace') {
85
70
  if (inputValue === '') {
@@ -87,7 +72,6 @@ var useMultiTextFieldUtils = function useMultiTextFieldUtils(_ref) {
87
72
  }
88
73
  }
89
74
  };
90
-
91
75
  return {
92
76
  values: values,
93
77
  handleValueDelete: handleValueDelete,
@@ -97,6 +81,5 @@ var useMultiTextFieldUtils = function useMultiTextFieldUtils(_ref) {
97
81
  inputValue: inputValue
98
82
  };
99
83
  };
100
-
101
84
  var _default = useMultiTextFieldUtils;
102
85
  exports["default"] = _default;
@@ -2,9 +2,6 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _TextField = _interopRequireDefault(require("./TextField"));
7
-
8
6
  exports["default"] = _TextField["default"];
9
-
10
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -1,7 +1,7 @@
1
1
  import { CSSObject } from '@emotion/serialize';
2
- import React, { FC } from 'react';
2
+ import React from 'react';
3
3
  import { formFieldStyles } from 'theme/palette';
4
- import { TestProps } from '../../utils/types';
4
+ import { ReactFCC, TestProps } from 'utils/types';
5
5
  import { textInputSizes } from './config';
6
6
  import { AcceptedIconNames } from 'components/Icon/types';
7
7
  export declare type Props = {
@@ -11,10 +11,10 @@ export declare type Props = {
11
11
  placeholder?: string;
12
12
  /** An optional icon to show to the left
13
13
  * TODO This prop will be renamed to 'prefix', like: https://ant.design/components/input/#components-input-demo-presuffix */
14
- leftIcon?: AcceptedIconNames | JSX.Element | null;
14
+ leftIcon?: AcceptedIconNames | React.ReactElement | null;
15
15
  /** An optional icon to show to the right
16
16
  * TODO This prop will be renamed to 'suffix', like: https://ant.design/components/input/#components-input-demo-presuffix */
17
- rightIcon?: AcceptedIconNames | JSX.Element | null;
17
+ rightIcon?: AcceptedIconNames | React.ReactElement | null;
18
18
  /** If the text field value is required */
19
19
  required?: boolean;
20
20
  /** If the text field is disabled */
@@ -32,7 +32,7 @@ export declare type Props = {
32
32
  /** Style of input field */
33
33
  styleType?: formFieldStyles;
34
34
  /** Sets the size of the textField */
35
- size?: typeof textInputSizes[number];
35
+ size?: (typeof textInputSizes)[number];
36
36
  /** The status of the button regarding the status which is in - default normal */
37
37
  status?: 'success' | 'normal' | 'hint' | 'error';
38
38
  /** Sx prop to override specific properties */
@@ -49,5 +49,5 @@ export declare type Props = {
49
49
  };
50
50
  /** This Component is a wrapper for all primitives that hold text like Select, TextArea, TextInput. Here we keep the
51
51
  * logic of all the hover, focus status etc and the styling of these centralized **/
52
- declare const TextInputBase: FC<Props & TestProps>;
52
+ declare const TextInputBase: ReactFCC<Props & TestProps>;
53
53
  export default TextInputBase;
@@ -2,47 +2,38 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _useTheme = _interopRequireDefault(require("../../hooks/useTheme"));
7
-
8
6
  var _react = _interopRequireDefault(require("react"));
9
-
10
7
  var _sizeUtils = require("../../utils/size-utils");
11
-
12
- var _helpers = require("../../utils/helpers");
13
-
14
8
  var _TextInputBase = require("./TextInputBase.style");
15
-
9
+ var _helpers = require("../../utils/helpers");
16
10
  var _Icon = _interopRequireDefault(require("../Icon"));
17
-
18
11
  var _react2 = require("@emotion/react");
19
-
20
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
13
  /** This Component is a wrapper for all primitives that hold text like Select, TextArea, TextInput. Here we keep the
23
14
  * logic of all the hover, focus status etc and the styling of these centralized **/
24
15
  var TextInputBase = function TextInputBase(_ref) {
25
16
  var _ref$lean = _ref.lean,
26
- lean = _ref$lean === void 0 ? false : _ref$lean,
27
- disabled = _ref.disabled,
28
- hintMsg = _ref.hintMsg,
29
- _ref$styleType = _ref.styleType,
30
- styleType = _ref$styleType === void 0 ? 'filled' : _ref$styleType,
31
- dataTestId = _ref.dataTestId,
32
- _ref$status = _ref.status,
33
- status = _ref$status === void 0 ? 'normal' : _ref$status,
34
- _ref$locked = _ref.locked,
35
- locked = _ref$locked === void 0 ? false : _ref$locked,
36
- _ref$size = _ref.size,
37
- size = _ref$size === void 0 ? _sizeUtils.DEFAULT_SIZE : _ref$size,
38
- _ref$dark = _ref.dark,
39
- dark = _ref$dark === void 0 ? false : _ref$dark,
40
- _ref$isInteractive = _ref.isInteractive,
41
- isInteractive = _ref$isInteractive === void 0 ? true : _ref$isInteractive,
42
- children = _ref.children,
43
- sx = _ref.sx,
44
- _ref$hasMinWidthCompa = _ref.hasMinWidthCompat,
45
- hasMinWidthCompat = _ref$hasMinWidthCompa === void 0 ? true : _ref$hasMinWidthCompa;
17
+ lean = _ref$lean === void 0 ? false : _ref$lean,
18
+ disabled = _ref.disabled,
19
+ hintMsg = _ref.hintMsg,
20
+ _ref$styleType = _ref.styleType,
21
+ styleType = _ref$styleType === void 0 ? 'filled' : _ref$styleType,
22
+ dataTestId = _ref.dataTestId,
23
+ _ref$status = _ref.status,
24
+ status = _ref$status === void 0 ? 'normal' : _ref$status,
25
+ _ref$locked = _ref.locked,
26
+ locked = _ref$locked === void 0 ? false : _ref$locked,
27
+ _ref$size = _ref.size,
28
+ size = _ref$size === void 0 ? _sizeUtils.DEFAULT_SIZE : _ref$size,
29
+ _ref$dark = _ref.dark,
30
+ dark = _ref$dark === void 0 ? false : _ref$dark,
31
+ _ref$isInteractive = _ref.isInteractive,
32
+ isInteractive = _ref$isInteractive === void 0 ? true : _ref$isInteractive,
33
+ children = _ref.children,
34
+ sx = _ref.sx,
35
+ _ref$hasMinWidthCompa = _ref.hasMinWidthCompat,
36
+ hasMinWidthCompat = _ref$hasMinWidthCompa === void 0 ? true : _ref$hasMinWidthCompa;
46
37
  var theme = (0, _useTheme["default"])();
47
38
  var hintMessageToShow = hintMsg && (0, _react2.jsx)("div", {
48
39
  "data-testid": (0, _helpers.generateTestDataId)('error', dataTestId),
@@ -77,6 +68,5 @@ var TextInputBase = function TextInputBase(_ref) {
77
68
  })
78
69
  }, children)), hintMsg && status !== 'normal' && hintMessageToShow);
79
70
  };
80
-
81
71
  var _default = TextInputBase;
82
72
  exports["default"] = _default;
@@ -1,33 +1,23 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.errorMsgStyle = exports.inputStyle = exports.textFieldStyle = exports.wrapperStyle = void 0;
5
-
4
+ exports.wrapperStyle = exports.textFieldStyle = exports.inputStyle = exports.errorMsgStyle = void 0;
6
5
  var _react = require("@emotion/react");
7
-
8
6
  var _utils = require("../../theme/utils");
9
-
10
7
  var _sizeUtils = require("../../utils/size-utils");
11
-
12
8
  var _states = require("../../theme/states");
13
-
14
9
  var _config = require("./config");
15
-
16
10
  var _Label = require("../Label/Label.style");
17
-
18
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
11
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
12
  var wrapperStyleSwitch = function wrapperStyleSwitch(theme, colorScheme, lean, error, disabled, isInteractive) {
21
13
  if (colorScheme === void 0) {
22
14
  colorScheme = 'light';
23
15
  }
24
-
25
16
  if (lean) {
26
17
  return {
27
18
  backgroundColor: 'transparent'
28
19
  };
29
20
  }
30
-
31
21
  var borderConfig = _config.textInputConfig.types[colorScheme].outlined.border;
32
22
  var backgroundColor = colorScheme === 'dark' ? theme.utils.getColor('darkGrey', 700) : theme.palette.white;
33
23
  var borderColorName = !error ? borderConfig.color.pressed.name : borderConfig.color.error.name;
@@ -53,22 +43,21 @@ var wrapperStyleSwitch = function wrapperStyleSwitch(theme, colorScheme, lean, e
53
43
  backgroundColor: backgroundColor
54
44
  }, isInteractive ? events : {});
55
45
  };
46
+
56
47
  /**
57
48
  * this wrapper must remain simple and not mess with children properties as it will be used
58
49
  * in custom implementation needed eg: datepicker
59
50
  * */
60
-
61
-
62
51
  var wrapperStyle = function wrapperStyle(_ref) {
63
52
  var disabled = _ref.disabled,
64
- locked = _ref.locked,
65
- status = _ref.status,
66
- lean = _ref.lean,
67
- dark = _ref.dark,
68
- size = _ref.size,
69
- sx = _ref.sx,
70
- isInteractive = _ref.isInteractive,
71
- hasMinWidthCompat = _ref.hasMinWidthCompat;
53
+ locked = _ref.locked,
54
+ status = _ref.status,
55
+ lean = _ref.lean,
56
+ dark = _ref.dark,
57
+ size = _ref.size,
58
+ sx = _ref.sx,
59
+ isInteractive = _ref.isInteractive,
60
+ hasMinWidthCompat = _ref.hasMinWidthCompat;
72
61
  return function (theme) {
73
62
  var colorScheme = dark ? 'dark' : theme.colorScheme;
74
63
  var error = status === 'error';
@@ -76,7 +65,6 @@ var wrapperStyle = function wrapperStyle(_ref) {
76
65
  var borderConfig = _config.textInputConfig.types[colorScheme].outlined.border;
77
66
  return (
78
67
  /*#__PURE__*/
79
-
80
68
  /*#__PURE__*/
81
69
  (0, _react.css)(_extends({
82
70
  display: 'flex',
@@ -92,18 +80,15 @@ var wrapperStyle = function wrapperStyle(_ref) {
92
80
  );
93
81
  };
94
82
  };
95
-
96
83
  exports.wrapperStyle = wrapperStyle;
97
-
98
84
  var textFieldStyle = function textFieldStyle(_ref2) {
99
85
  var lean = _ref2.lean,
100
- sx = _ref2.sx,
101
- disabled = _ref2.disabled,
102
- locked = _ref2.locked;
86
+ sx = _ref2.sx,
87
+ disabled = _ref2.disabled,
88
+ locked = _ref2.locked;
103
89
  return function (theme) {
104
90
  return (
105
91
  /*#__PURE__*/
106
-
107
92
  /*#__PURE__*/
108
93
  (0, _react.css)(_extends({
109
94
  position: 'relative',
@@ -121,22 +106,19 @@ var textFieldStyle = function textFieldStyle(_ref2) {
121
106
  );
122
107
  };
123
108
  };
124
-
125
109
  exports.textFieldStyle = textFieldStyle;
126
-
127
110
  var inputStyle = function inputStyle(_ref3) {
128
111
  var label = _ref3.label,
129
- placeholder = _ref3.placeholder,
130
- _ref3$size = _ref3.size,
131
- size = _ref3$size === void 0 ? _sizeUtils.DEFAULT_SIZE : _ref3$size,
132
- dark = _ref3.dark,
133
- sx = _ref3.sx,
134
- disabled = _ref3.disabled,
135
- locked = _ref3.locked;
112
+ placeholder = _ref3.placeholder,
113
+ _ref3$size = _ref3.size,
114
+ size = _ref3$size === void 0 ? _sizeUtils.DEFAULT_SIZE : _ref3$size,
115
+ dark = _ref3.dark,
116
+ sx = _ref3.sx,
117
+ disabled = _ref3.disabled,
118
+ locked = _ref3.locked;
136
119
  return function (theme) {
137
120
  return (
138
121
  /*#__PURE__*/
139
-
140
122
  /*#__PURE__*/
141
123
  (0, _react.css)(_extends({
142
124
  background: 'transparent',
@@ -178,15 +160,12 @@ var inputStyle = function inputStyle(_ref3) {
178
160
  );
179
161
  };
180
162
  };
181
-
182
163
  exports.inputStyle = inputStyle;
183
-
184
164
  var errorMsgStyle = function errorMsgStyle(_ref4) {
185
165
  var status = _ref4.status;
186
166
  return function (theme) {
187
167
  return (
188
168
  /*#__PURE__*/
189
-
190
169
  /*#__PURE__*/
191
170
  (0, _react.css)({
192
171
  display: 'flex',
@@ -205,5 +184,4 @@ var errorMsgStyle = function errorMsgStyle(_ref4) {
205
184
  );
206
185
  };
207
186
  };
208
-
209
187
  exports.errorMsgStyle = errorMsgStyle;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.textInputConfig = exports.textInputStates = exports.textInputSizes = exports.MULTI_WIDTH = exports.MIN_WIDTH = exports.SM_HEIGHT = exports.MD_HEIGHT = exports.SM = exports.MD = void 0;
4
+ exports.textInputStates = exports.textInputSizes = exports.textInputConfig = exports.SM_HEIGHT = exports.SM = exports.MULTI_WIDTH = exports.MIN_WIDTH = exports.MD_HEIGHT = exports.MD = void 0;
5
5
  var MD = 'md';
6
6
  exports.MD = MD;
7
7
  var SM = 'sm';
@@ -3,9 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  var _exportNames = {};
5
5
  exports["default"] = void 0;
6
-
7
6
  var _TextInputBase = _interopRequireWildcard(require("./TextInputBase"));
8
-
9
7
  exports["default"] = _TextInputBase["default"];
10
8
  Object.keys(_TextInputBase).forEach(function (key) {
11
9
  if (key === "default" || key === "__esModule") return;
@@ -13,7 +11,5 @@ Object.keys(_TextInputBase).forEach(function (key) {
13
11
  if (key in exports && exports[key] === _TextInputBase[key]) return;
14
12
  exports[key] = _TextInputBase[key];
15
13
  });
16
-
17
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
-
19
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  import { ThemeConfig } from 'theme';
3
- import { DeepPartial } from '../../utils/types';
2
+ import { DeepPartial, ReactFCC } from 'utils/types';
4
3
  import 'utils/initLocaleFormat';
5
4
  declare type Props = {
6
5
  /** Theme properties to override or pass theming down to library */
7
6
  theme?: DeepPartial<ThemeConfig>;
8
7
  };
9
- declare const ThemeProvider: React.FC<Props>;
8
+ declare const ThemeProvider: ReactFCC<Props>;
10
9
  export default ThemeProvider;
@@ -2,61 +2,43 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _react = require("@emotion/react");
7
-
8
6
  var _useThemeSwitch = require("../../hooks/useThemeSwitch");
9
-
10
7
  var _lodash = require("lodash");
11
-
12
8
  var _react2 = _interopRequireDefault(require("react"));
13
-
14
9
  var _theme = _interopRequireDefault(require("../../theme"));
15
-
10
+ var _ThemeProvider = require("./ThemeProvider.style");
16
11
  var _useTypeColorToColorMatch = require("../../hooks/useTypeColorToColorMatch");
17
-
18
12
  var _utils = require("../../theme/utils");
19
-
20
13
  require("../../utils/initLocaleFormat");
21
-
22
- var _ThemeProvider = require("./ThemeProvider.style");
23
-
24
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
-
15
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
28
16
  var deepMergeTheme = function deepMergeTheme(newTheme, theming) {
29
17
  return (0, _lodash.merge)((0, _theme["default"])(theming), (0, _lodash.pick)(newTheme, (0, _lodash.keys)((0, _theme["default"])(theming))));
30
18
  };
31
-
32
19
  var ThemeProvider = function ThemeProvider(_ref) {
33
20
  var _ref$theme = _ref.theme,
34
- theme = _ref$theme === void 0 ? {} : _ref$theme,
35
- children = _ref.children;
21
+ theme = _ref$theme === void 0 ? {} : _ref$theme,
22
+ children = _ref.children;
36
23
  return (0, _react.jsx)(_useThemeSwitch.ThemeSwitchProvider, null, (0, _react.jsx)(ThemeProviderContents, {
37
24
  theme: theme
38
25
  }, children));
39
26
  };
40
-
41
27
  var ThemeProviderContents = function ThemeProviderContents(_ref2) {
42
28
  var _ref2$theme = _ref2.theme,
43
- theme = _ref2$theme === void 0 ? {} : _ref2$theme,
44
- children = _ref2.children;
29
+ theme = _ref2$theme === void 0 ? {} : _ref2$theme,
30
+ children = _ref2.children;
45
31
  var themeSwitchState = (0, _useThemeSwitch.useThemeSwitch)();
46
32
  var colorScheme = themeSwitchState.dark ? 'dark' : 'light';
47
-
48
33
  var newTheme = _extends({}, theme, {
49
34
  colorScheme: colorScheme,
50
35
  palette: theme != null && theme.palette ? (0, _utils.enhancePaletteWithShades)(theme.palette) : {}
51
36
  });
52
-
53
37
  return (0, _react.jsx)(_react.ThemeProvider, {
54
38
  theme: deepMergeTheme(newTheme, colorScheme)
55
39
  }, (0, _react.jsx)(_useTypeColorToColorMatch.TypeColorToColorMatchProvider, null, (0, _react.jsx)(_react.Global, {
56
40
  styles: _ThemeProvider.globalStyles
57
41
  }), children));
58
42
  };
59
-
60
43
  var _default = ThemeProvider; //force deployment
61
-
62
44
  exports["default"] = _default;
@@ -1,30 +1,22 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.globalStyles = exports.scrollbar = void 0;
5
-
4
+ exports.scrollbar = exports.globalStyles = void 0;
6
5
  var _react = require("@emotion/react");
7
-
8
6
  var _polished = require("polished");
9
-
10
7
  var scrollbar = function scrollbar(theme) {
11
8
  return (
12
9
  /*#__PURE__*/
13
-
14
10
  /*#__PURE__*/
15
11
  (0, _react.css)("*{scrollbar-width:thin;}::-webkit-scrollbar{width:", theme.spacing.sm, ";height:", theme.spacing.sm, ";}::-webkit-scrollbar-track{background:transparent;}::-webkit-scrollbar-thumb{background:", theme.utils.getColor('lightGrey', 350), ";border-radius:", theme.spacing.xl, ";}::-webkit-scrollbar-thumb:hover{background:", theme.utils.getColor('lightGrey', 500), ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:scrollbar;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RoZW1lUHJvdmlkZXIvVGhlbWVQcm92aWRlci5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJZ0UiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvVGhlbWVQcm92aWRlci9UaGVtZVByb3ZpZGVyLnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VyaWFsaXplZFN0eWxlcywgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgbm9ybWFsaXplIH0gZnJvbSAncG9saXNoZWQnO1xuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICd0aGVtZSc7XG5cbmV4cG9ydCBjb25zdCBzY3JvbGxiYXIgPSAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIC8vIGZvciBGaXJlZm94XG4gICoge1xuICAgIHNjcm9sbGJhci13aWR0aDogdGhpbjtcbiAgfVxuXG4gIC8vIGZvciBDaHJvbWVcbiAgOjotd2Via2l0LXNjcm9sbGJhciB7XG4gICAgd2lkdGg6ICR7dGhlbWUuc3BhY2luZy5zbX07XG4gICAgaGVpZ2h0OiAke3RoZW1lLnNwYWNpbmcuc219O1xuICB9XG5cbiAgOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7XG4gICAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gIH1cblxuICA6Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iIHtcbiAgICBiYWNrZ3JvdW5kOiAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdsaWdodEdyZXknLCAzNTApfTtcbiAgICBib3JkZXItcmFkaXVzOiAke3RoZW1lLnNwYWNpbmcueGx9O1xuICB9XG5cbiAgOjotd2Via2l0LXNjcm9sbGJhci10aHVtYjpob3ZlciB7XG4gICAgYmFja2dyb3VuZDogJHt0aGVtZS51dGlscy5nZXRDb2xvcignbGlnaHRHcmV5JywgNTAwKX07XG4gIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBnbG9iYWxTdHlsZXMgPSAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIEBpbXBvcnQgdXJsKCdodHRwczovL2ZvbnRzLmdvb2dsZWFwaXMuY29tL2Nzcz9mYW1pbHk9Um9ib3RvOjMwMCw0MDAsNTAwLDcwMCw5MDAnKTtcbiAgJHtub3JtYWxpemUoKX07XG4gICR7c2Nyb2xsYmFyKHRoZW1lKX1cblxuICBib2R5LFxuICBodG1sIHtcbiAgICBmb250LWZhbWlseTogJ1JvYm90bycsIFRhaG9tYSwgc2Fucy1zZXJpZjtcbiAgICBmb250LXNpemU6IDE2cHg7XG4gICAgZm9udC13ZWlnaHQ6IG5vcm1hbDtcbiAgfVxuXG4gICNyb290IHtcbiAgfVxuXG4gIC8vIGRlZmF1bHQgb3V0bGluZSBmb3IgYWxsIGZvY3VzZWQgZWxlbWVudHMgZGVmaW5lZCBieSB0aGUgZGVzaWduIHRlYW1cbiAgLy8gb3VyIGxpZ2h0R3JleSBiYXNlIGNvbG9yICg1MDAgc2hhZGUpIHdpdGggb3BhY2l0eSBhdCA1MCVcbiAgKjpmb2N1cyB7XG4gICAgb3V0bGluZTogMDtcbiAgfVxuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:scrollbar;")
16
12
  );
17
13
  };
18
-
19
14
  exports.scrollbar = scrollbar;
20
-
21
15
  var globalStyles = function globalStyles(theme) {
22
16
  return (
23
17
  /*#__PURE__*/
24
-
25
18
  /*#__PURE__*/
26
19
  (0, _react.css)("@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900');{}", (0, _polished.normalize)(), ";", scrollbar(theme), " body,html{font-family:'Roboto',Tahoma,sans-serif;font-size:16px;font-weight:normal;}#root{}*:focus{outline:0;}" + (process.env.NODE_ENV === "production" ? "" : ";label:globalStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RoZW1lUHJvdmlkZXIvVGhlbWVQcm92aWRlci5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4Qm1FIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RoZW1lUHJvdmlkZXIvVGhlbWVQcm92aWRlci5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlcmlhbGl6ZWRTdHlsZXMsIGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IG5vcm1hbGl6ZSB9IGZyb20gJ3BvbGlzaGVkJztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAndGhlbWUnO1xuXG5leHBvcnQgY29uc3Qgc2Nyb2xsYmFyID0gKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICAvLyBmb3IgRmlyZWZveFxuICAqIHtcbiAgICBzY3JvbGxiYXItd2lkdGg6IHRoaW47XG4gIH1cblxuICAvLyBmb3IgQ2hyb21lXG4gIDo6LXdlYmtpdC1zY3JvbGxiYXIge1xuICAgIHdpZHRoOiAke3RoZW1lLnNwYWNpbmcuc219O1xuICAgIGhlaWdodDogJHt0aGVtZS5zcGFjaW5nLnNtfTtcbiAgfVxuXG4gIDo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2sge1xuICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICB9XG5cbiAgOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7XG4gICAgYmFja2dyb3VuZDogJHt0aGVtZS51dGlscy5nZXRDb2xvcignbGlnaHRHcmV5JywgMzUwKX07XG4gICAgYm9yZGVyLXJhZGl1czogJHt0aGVtZS5zcGFjaW5nLnhsfTtcbiAgfVxuXG4gIDo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWI6aG92ZXIge1xuICAgIGJhY2tncm91bmQ6ICR7dGhlbWUudXRpbHMuZ2V0Q29sb3IoJ2xpZ2h0R3JleScsIDUwMCl9O1xuICB9XG5gO1xuXG5leHBvcnQgY29uc3QgZ2xvYmFsU3R5bGVzID0gKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICBAaW1wb3J0IHVybCgnaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3M/ZmFtaWx5PVJvYm90bzozMDAsNDAwLDUwMCw3MDAsOTAwJyk7XG4gICR7bm9ybWFsaXplKCl9O1xuICAke3Njcm9sbGJhcih0aGVtZSl9XG5cbiAgYm9keSxcbiAgaHRtbCB7XG4gICAgZm9udC1mYW1pbHk6ICdSb2JvdG8nLCBUYWhvbWEsIHNhbnMtc2VyaWY7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7XG4gIH1cblxuICAjcm9vdCB7XG4gIH1cblxuICAvLyBkZWZhdWx0IG91dGxpbmUgZm9yIGFsbCBmb2N1c2VkIGVsZW1lbnRzIGRlZmluZWQgYnkgdGhlIGRlc2lnbiB0ZWFtXG4gIC8vIG91ciBsaWdodEdyZXkgYmFzZSBjb2xvciAoNTAwIHNoYWRlKSB3aXRoIG9wYWNpdHkgYXQgNTAlXG4gICo6Zm9jdXMge1xuICAgIG91dGxpbmU6IDA7XG4gIH1cbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:globalStyles;")
27
20
  );
28
21
  };
29
-
30
22
  exports.globalStyles = globalStyles;
@@ -2,9 +2,6 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
-
6
5
  var _ThemeProvider = _interopRequireDefault(require("./ThemeProvider"));
7
-
8
6
  exports["default"] = _ThemeProvider["default"];
9
-
10
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -1,6 +1,5 @@
1
- import * as React from 'react';
1
+ import { ReactFCC, TestId } from 'utils/types';
2
2
  import { AcceptedColorComponentTypes } from '../../utils/themeFunctions';
3
- import { TestId } from '../../utils/types';
4
3
  import { NotificationStyleType, NotificationTypes } from '../Notification/Notification';
5
4
  export declare type Props = {
6
5
  /** The informative message of the Toast */
@@ -19,5 +18,5 @@ export declare type Props = {
19
18
  dataTestId?: TestId;
20
19
  };
21
20
  export declare const isNotificationTypes: (type: string) => type is NotificationTypes;
22
- declare const Toast: React.FC<Props>;
21
+ declare const Toast: ReactFCC<Props>;
23
22
  export default Toast;
@@ -1,54 +1,38 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports["default"] = exports.isNotificationTypes = void 0;
5
-
4
+ exports.isNotificationTypes = exports["default"] = void 0;
6
5
  var React = _interopRequireWildcard(require("react"));
7
-
6
+ var _Toast = require("./Toast.style");
8
7
  var _helpers = require("../../utils/helpers");
9
-
10
8
  var _Icon = _interopRequireDefault(require("../Icon"));
11
-
12
9
  var _Notification = require("../Notification/Notification.style");
13
-
14
10
  var _CompactNotification = require("../Notification/subcomponents/CompactNotification/CompactNotification");
15
-
16
- var _Toast = require("./Toast.style");
17
-
18
11
  var _react2 = require("@emotion/react");
19
-
20
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
-
26
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
-
15
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
28
16
  var isNotificationTypes = function isNotificationTypes(type) {
29
17
  return ['success', 'error', 'warning', 'info'].includes(type);
30
18
  };
31
-
32
19
  exports.isNotificationTypes = isNotificationTypes;
33
-
34
20
  var Toast = function Toast(_ref) {
35
21
  var message = _ref.message,
36
- _ref$type = _ref.type,
37
- type = _ref$type === void 0 ? 'primary' : _ref$type,
38
- _ref$styleType = _ref.styleType,
39
- styleType = _ref$styleType === void 0 ? 'elevated' : _ref$styleType,
40
- closeCTA = _ref.closeCTA,
41
- _ref$expanded = _ref.expanded,
42
- expanded = _ref$expanded === void 0 ? false : _ref$expanded,
43
- _ref$hasMinimumHeight = _ref.hasMinimumHeight,
44
- hasMinimumHeight = _ref$hasMinimumHeight === void 0 ? true : _ref$hasMinimumHeight,
45
- children = _ref.children,
46
- dataTestId = _ref.dataTestId;
47
-
22
+ _ref$type = _ref.type,
23
+ type = _ref$type === void 0 ? 'primary' : _ref$type,
24
+ _ref$styleType = _ref.styleType,
25
+ styleType = _ref$styleType === void 0 ? 'elevated' : _ref$styleType,
26
+ closeCTA = _ref.closeCTA,
27
+ _ref$expanded = _ref.expanded,
28
+ expanded = _ref$expanded === void 0 ? false : _ref$expanded,
29
+ _ref$hasMinimumHeight = _ref.hasMinimumHeight,
30
+ hasMinimumHeight = _ref$hasMinimumHeight === void 0 ? true : _ref$hasMinimumHeight,
31
+ children = _ref.children,
32
+ dataTestId = _ref.dataTestId;
48
33
  var _useState = (0, React.useState)(expanded),
49
- isExpanded = _useState[0],
50
- setExpanded = _useState[1];
51
-
34
+ isExpanded = _useState[0],
35
+ setExpanded = _useState[1];
52
36
  return (0, _react2.jsx)("div", _extends({
53
37
  css: (0, _Toast.toastContainer)(type, styleType)
54
38
  }, isNotificationTypes(type) && {
@@ -88,6 +72,5 @@ var Toast = function Toast(_ref) {
88
72
  "data-testid": (0, _helpers.generateTestDataId)('expanded-container', dataTestId)
89
73
  }, children));
90
74
  };
91
-
92
75
  var _default = Toast;
93
76
  exports["default"] = _default;