@decisiv/ui-components 2.0.1-alpha.17 → 2.0.1-alpha.173

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 (469) hide show
  1. package/lib/atoms/BaseButton/index.d.ts.map +1 -1
  2. package/lib/atoms/BaseButton/index.js +1 -1
  3. package/lib/atoms/BooleanInput/elements.d.ts.map +1 -1
  4. package/lib/atoms/BooleanInput/elements.js +8 -3
  5. package/lib/atoms/BooleanInput/index.d.ts.map +1 -1
  6. package/lib/atoms/BooleanInput/index.js +26 -5
  7. package/lib/atoms/BooleanInput/index.test.js +17 -6
  8. package/lib/atoms/BooleanInput/types.d.ts +4 -0
  9. package/lib/atoms/BooleanInput/types.d.ts.map +1 -1
  10. package/lib/atoms/BooleanInput/types.js +5 -1
  11. package/lib/atoms/Calendar/hooks/useCalendar/index.d.ts.map +1 -1
  12. package/lib/atoms/Calendar/hooks/useCalendar/index.js +2 -1
  13. package/lib/atoms/Calendar/hooks/useCalendar/index.test.js +5 -6
  14. package/lib/atoms/Calendar/index.d.ts.map +1 -1
  15. package/lib/atoms/Calendar/index.js +46 -6
  16. package/lib/atoms/Calendar/index.test.js +68 -38
  17. package/lib/atoms/Calendar/types.d.ts +1 -1
  18. package/lib/atoms/Calendar/types.d.ts.map +1 -1
  19. package/lib/atoms/Calendar/types.js +5 -1
  20. package/lib/atoms/InputField/Containers.d.ts +12 -6
  21. package/lib/atoms/InputField/Containers.d.ts.map +1 -1
  22. package/lib/atoms/InputField/Containers.js +8 -6
  23. package/lib/atoms/InputField/InputLabel.d.ts +1 -0
  24. package/lib/atoms/InputField/InputLabel.d.ts.map +1 -1
  25. package/lib/atoms/InputField/InputLabel.js +2 -1
  26. package/lib/atoms/InputField/index.d.ts +6 -0
  27. package/lib/atoms/InputField/index.d.ts.map +1 -1
  28. package/lib/atoms/InputField/index.js +25 -8
  29. package/lib/atoms/InputField/index.test.js +91 -0
  30. package/lib/atoms/InputField/schema.d.ts.map +1 -1
  31. package/lib/atoms/InputField/schema.js +3 -2
  32. package/lib/atoms/OptionsList/Category.d.ts +1 -1
  33. package/lib/atoms/OptionsList/Category.d.ts.map +1 -1
  34. package/lib/atoms/OptionsList/Category.js +4 -2
  35. package/lib/atoms/OptionsList/Footer.d.ts +8 -0
  36. package/lib/atoms/OptionsList/Footer.d.ts.map +1 -0
  37. package/lib/atoms/OptionsList/Footer.js +72 -0
  38. package/lib/atoms/OptionsList/Option.d.ts.map +1 -1
  39. package/lib/atoms/OptionsList/Option.js +24 -9
  40. package/lib/atoms/OptionsList/index.d.ts.map +1 -1
  41. package/lib/atoms/OptionsList/index.js +44 -17
  42. package/lib/atoms/OptionsList/index.test.js +127 -17
  43. package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
  44. package/lib/atoms/OptionsList/schema.js +5 -0
  45. package/lib/atoms/OptionsList/types.d.ts +15 -0
  46. package/lib/atoms/OptionsList/types.d.ts.map +1 -1
  47. package/lib/atoms/OptionsList/types.js +5 -1
  48. package/lib/atoms/RequiredIcon.d.ts +9 -0
  49. package/lib/atoms/RequiredIcon.d.ts.map +1 -0
  50. package/lib/atoms/{InputField/RequiredIcon.js → RequiredIcon.js} +7 -3
  51. package/lib/components/Accordion/types.js +5 -1
  52. package/lib/components/Accordion/useAccordion/types.js +5 -1
  53. package/lib/components/Alert/Container.d.ts +201 -0
  54. package/lib/components/Alert/Container.d.ts.map +1 -0
  55. package/lib/components/Alert/Container.js +26 -0
  56. package/lib/components/Alert/StyledButton.d.ts +5 -0
  57. package/lib/components/Alert/StyledButton.d.ts.map +1 -0
  58. package/lib/components/Alert/StyledButton.js +23 -0
  59. package/lib/components/Alert/index.d.ts +27 -0
  60. package/lib/components/Alert/index.d.ts.map +1 -0
  61. package/lib/components/Alert/index.js +112 -0
  62. package/lib/components/Alert/index.test.js +79 -0
  63. package/lib/components/Alert/intents.d.ts +13 -0
  64. package/lib/components/Alert/intents.d.ts.map +1 -0
  65. package/lib/components/Alert/intents.js +72 -0
  66. package/lib/components/{Tabs/schema.tab.d.ts → Alert/schema.d.ts} +1 -1
  67. package/lib/components/Alert/schema.d.ts.map +1 -0
  68. package/lib/components/Alert/schema.js +25 -0
  69. package/lib/components/Alert/types.d.ts +36 -0
  70. package/lib/components/Alert/types.d.ts.map +1 -0
  71. package/lib/components/Alert/types.js +32 -0
  72. package/lib/components/Avatar/types.js +5 -1
  73. package/lib/components/Badge/constants.d.ts +2 -0
  74. package/lib/components/Badge/constants.d.ts.map +1 -0
  75. package/lib/components/Badge/constants.js +29 -0
  76. package/lib/components/Badge/index.d.ts.map +1 -1
  77. package/lib/components/Badge/index.js +12 -23
  78. package/lib/components/Badge/index.test.js +51 -8
  79. package/lib/components/Badge/schema.js +1 -1
  80. package/lib/components/Badge/types.d.ts +1 -1
  81. package/lib/components/Badge/types.d.ts.map +1 -1
  82. package/lib/components/Badge/types.js +7 -3
  83. package/lib/components/Breadcrumbs/types.js +5 -1
  84. package/lib/components/Button/StyledButton.d.ts +3 -2
  85. package/lib/components/Button/StyledButton.d.ts.map +1 -1
  86. package/lib/components/Button/StyledButton.js +21 -7
  87. package/lib/components/Button/index.d.ts.map +1 -1
  88. package/lib/components/Button/index.js +19 -9
  89. package/lib/components/Button/index.test.js +24 -8
  90. package/lib/components/Button/schema.d.ts +6 -1
  91. package/lib/components/Button/schema.d.ts.map +1 -1
  92. package/lib/components/Button/schema.js +11 -5
  93. package/lib/components/Button/types.d.ts +2 -1
  94. package/lib/components/Button/types.d.ts.map +1 -1
  95. package/lib/components/Button/types.js +5 -1
  96. package/lib/components/Checkbox/index.d.ts.map +1 -1
  97. package/lib/components/Checkbox/index.js +3 -1
  98. package/lib/components/Checkbox/schema.d.ts.map +1 -1
  99. package/lib/components/Checkbox/schema.js +2 -0
  100. package/lib/components/Combobox/Target.d.ts.map +1 -1
  101. package/lib/components/Combobox/Target.js +52 -14
  102. package/lib/components/Combobox/index.d.ts.map +1 -1
  103. package/lib/components/Combobox/index.js +196 -66
  104. package/lib/components/Combobox/index.test.js +369 -146
  105. package/lib/components/Combobox/schema.d.ts.map +1 -1
  106. package/lib/components/Combobox/schema.js +10 -2
  107. package/lib/components/Combobox/types.d.ts +12 -3
  108. package/lib/components/Combobox/types.d.ts.map +1 -1
  109. package/lib/components/Combobox/types.js +5 -1
  110. package/lib/components/Drawer/index.d.ts +22 -0
  111. package/lib/components/Drawer/index.d.ts.map +1 -0
  112. package/lib/components/Drawer/index.js +105 -0
  113. package/lib/components/Drawer/index.test.js +122 -0
  114. package/lib/components/Drawer/schema.d.ts +3 -0
  115. package/lib/components/Drawer/schema.d.ts.map +1 -0
  116. package/lib/components/Drawer/schema.js +32 -0
  117. package/lib/components/Drawer/styles.d.ts +11 -0
  118. package/lib/components/Drawer/styles.d.ts.map +1 -0
  119. package/lib/components/Drawer/styles.js +79 -0
  120. package/lib/components/DropdownList/index.d.ts +4 -0
  121. package/lib/components/DropdownList/index.d.ts.map +1 -1
  122. package/lib/components/DropdownList/index.js +76 -11
  123. package/lib/components/DropdownList/propTypes.d.ts +4 -0
  124. package/lib/components/DropdownList/propTypes.d.ts.map +1 -0
  125. package/lib/components/DropdownList/propTypes.js +42 -0
  126. package/lib/components/DropdownList/schema.d.ts.map +1 -1
  127. package/lib/components/DropdownList/schema.js +6 -1
  128. package/lib/components/DropdownList/types.d.ts +4 -1
  129. package/lib/components/DropdownList/types.d.ts.map +1 -1
  130. package/lib/components/Filter/IconWrapper/index.d.ts +197 -0
  131. package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -0
  132. package/lib/components/Filter/IconWrapper/index.js +35 -0
  133. package/lib/components/Filter/SimplePrimary/index.d.ts +31 -0
  134. package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -0
  135. package/lib/components/Filter/SimplePrimary/index.js +58 -0
  136. package/lib/components/Filter/SimplePrimary/index.test.js +34 -0
  137. package/lib/components/Filter/StyledFilter.d.ts +4 -0
  138. package/lib/components/Filter/StyledFilter.d.ts.map +1 -0
  139. package/lib/components/Filter/StyledFilter.js +41 -0
  140. package/lib/components/Filter/StyledLabel/index.d.ts +8 -0
  141. package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -0
  142. package/lib/components/Filter/StyledLabel/index.js +30 -0
  143. package/lib/components/Filter/index.d.ts +5 -0
  144. package/lib/components/Filter/index.d.ts.map +1 -0
  145. package/lib/components/Filter/index.js +107 -0
  146. package/lib/components/Filter/index.test.js +60 -0
  147. package/lib/components/Filter/kind.d.ts +6 -0
  148. package/lib/components/Filter/kind.d.ts.map +1 -0
  149. package/lib/components/Filter/kind.js +45 -0
  150. package/lib/components/Filter/schema.d.ts +9 -0
  151. package/lib/components/Filter/schema.d.ts.map +1 -0
  152. package/lib/components/Filter/schema.js +33 -0
  153. package/lib/components/Filter/types.d.ts +18 -0
  154. package/lib/components/Filter/types.d.ts.map +1 -0
  155. package/lib/components/Filter/types.js +5 -0
  156. package/lib/components/JumpTo/JumpToMenu.d.ts +2 -2
  157. package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
  158. package/lib/components/JumpTo/JumpToMenu.js +3 -3
  159. package/lib/components/JumpTo/types.js +5 -1
  160. package/lib/components/JumpTo/utils.d.ts.map +1 -1
  161. package/lib/components/JumpTo/utils.js +3 -7
  162. package/lib/components/LeftNav/Item/ClickArea.js +1 -1
  163. package/lib/components/LeftNav/Item/ItemWrapper.d.ts.map +1 -1
  164. package/lib/components/LeftNav/Item/ItemWrapper.js +3 -3
  165. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts +7 -0
  166. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts.map +1 -0
  167. package/lib/components/LeftNav/Item/MenuItemWrapper.js +20 -0
  168. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.d.ts.map +1 -1
  169. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.js +7 -5
  170. package/lib/components/LeftNav/Item/NavExpandedItem/index.d.ts.map +1 -1
  171. package/lib/components/LeftNav/Item/NavExpandedItem/index.js +24 -13
  172. package/lib/components/LeftNav/Item/types.d.ts +1 -1
  173. package/lib/components/LeftNav/Item/types.d.ts.map +1 -1
  174. package/lib/components/LeftNav/Item/types.js +5 -1
  175. package/lib/components/LeftNav/index.test.js +13 -3
  176. package/lib/components/LeftNav/schema.d.ts.map +1 -1
  177. package/lib/components/LeftNav/schema.js +2 -0
  178. package/lib/components/LeftNav/types.d.ts +1 -0
  179. package/lib/components/LeftNav/types.d.ts.map +1 -1
  180. package/lib/components/LeftNav/types.js +5 -1
  181. package/lib/components/Link/DisabledLink.d.ts +7 -0
  182. package/lib/components/Link/DisabledLink.d.ts.map +1 -0
  183. package/lib/components/Link/DisabledLink.js +46 -0
  184. package/lib/components/Link/Link.d.ts +4 -0
  185. package/lib/components/Link/Link.d.ts.map +1 -0
  186. package/lib/components/Link/Link.js +67 -0
  187. package/lib/components/Link/index.d.ts +4 -23
  188. package/lib/components/Link/index.d.ts.map +1 -1
  189. package/lib/components/Link/index.js +20 -158
  190. package/lib/components/Link/index.test.js +63 -42
  191. package/lib/components/Link/schema.d.ts.map +1 -1
  192. package/lib/components/Link/schema.js +2 -1
  193. package/lib/components/Link/styles.d.ts +20 -0
  194. package/lib/components/Link/styles.d.ts.map +1 -0
  195. package/lib/components/Link/styles.js +131 -0
  196. package/lib/components/Link/types.d.ts +28 -0
  197. package/lib/components/Link/types.d.ts.map +1 -0
  198. package/lib/components/Link/types.js +5 -0
  199. package/lib/components/Loading/Loading.d.ts +12 -0
  200. package/lib/components/Loading/Loading.d.ts.map +1 -0
  201. package/lib/components/Loading/Loading.js +70 -0
  202. package/lib/components/Loading/index.d.ts +4 -0
  203. package/lib/components/Loading/index.d.ts.map +1 -0
  204. package/lib/components/Loading/index.js +33 -0
  205. package/lib/components/Loading/index.test.js +55 -0
  206. package/lib/components/Loading/schema.d.ts +4 -0
  207. package/lib/components/Loading/schema.d.ts.map +1 -0
  208. package/lib/components/Loading/schema.js +31 -0
  209. package/lib/components/Loading/styles.d.ts +211 -0
  210. package/lib/components/Loading/styles.d.ts.map +1 -0
  211. package/lib/components/Loading/styles.js +77 -0
  212. package/lib/components/Loading/types.d.ts +10 -0
  213. package/lib/components/Loading/types.d.ts.map +1 -0
  214. package/lib/components/Loading/types.js +5 -0
  215. package/lib/components/Menu/index.d.ts.map +1 -1
  216. package/lib/components/Menu/index.js +3 -1
  217. package/lib/components/Menu/types.d.ts +2 -0
  218. package/lib/components/Menu/types.d.ts.map +1 -1
  219. package/lib/components/Menu/types.js +5 -1
  220. package/lib/components/Modal/components.d.ts +2 -2
  221. package/lib/components/Modal/types.js +5 -1
  222. package/lib/components/Notifications/Notification/components.d.ts +3 -3
  223. package/lib/components/Notifications/Notification/components.d.ts.map +1 -1
  224. package/lib/components/Notifications/Notification/components.js +12 -6
  225. package/lib/components/Notifications/Notification/index.d.ts +3 -6
  226. package/lib/components/Notifications/Notification/index.d.ts.map +1 -1
  227. package/lib/components/Notifications/Notification/index.js +19 -12
  228. package/lib/components/Notifications/Notification/index.test.js +38 -19
  229. package/lib/components/Notifications/NotificationsPanel/index.d.ts +2 -1
  230. package/lib/components/Notifications/NotificationsPanel/index.d.ts.map +1 -1
  231. package/lib/components/Notifications/NotificationsPanel/index.js +41 -22
  232. package/lib/components/Notifications/NotificationsPanel/schema.js +1 -1
  233. package/lib/components/Notifications/Notifier.test.js +79 -10
  234. package/lib/components/Notifications/constants.d.ts +2 -0
  235. package/lib/components/Notifications/constants.d.ts.map +1 -0
  236. package/lib/components/Notifications/constants.js +16 -0
  237. package/lib/components/Notifications/schema.d.ts.map +1 -1
  238. package/lib/components/Notifications/schema.js +2 -1
  239. package/lib/components/Notifications/useNotifications.d.ts +1 -0
  240. package/lib/components/Notifications/useNotifications.d.ts.map +1 -1
  241. package/lib/components/Notifications/useNotifications.test.js +7 -4
  242. package/lib/components/Pagination/Pagination.d.ts +1 -1
  243. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  244. package/lib/components/Pagination/Pagination.js +1 -0
  245. package/lib/components/Pagination/Pagination.test.js +9 -0
  246. package/lib/components/Pagination/types.js +5 -1
  247. package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
  248. package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
  249. package/lib/components/PasswordField/IconWrapper.js +32 -0
  250. package/lib/components/PasswordField/Input.d.ts +6 -0
  251. package/lib/components/PasswordField/Input.d.ts.map +1 -0
  252. package/lib/components/PasswordField/Input.js +28 -0
  253. package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
  254. package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
  255. package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
  256. package/lib/components/PasswordField/index.d.ts +14 -0
  257. package/lib/components/PasswordField/index.d.ts.map +1 -0
  258. package/lib/components/PasswordField/index.js +113 -0
  259. package/lib/components/PasswordField/index.test.js +217 -0
  260. package/lib/components/PasswordField/schema.d.ts +3 -0
  261. package/lib/components/PasswordField/schema.d.ts.map +1 -0
  262. package/lib/components/PasswordField/schema.js +27 -0
  263. package/lib/components/Popover/index.d.ts.map +1 -1
  264. package/lib/components/Popover/index.js +6 -3
  265. package/lib/components/Popover/schema.d.ts.map +1 -1
  266. package/lib/components/Popover/schema.js +27 -20
  267. package/lib/components/Popover/types.d.ts +1 -0
  268. package/lib/components/Popover/types.d.ts.map +1 -1
  269. package/lib/components/Popover/utils.d.ts +1 -1
  270. package/lib/components/SearchInput/index.d.ts +11 -0
  271. package/lib/components/SearchInput/index.d.ts.map +1 -0
  272. package/lib/components/SearchInput/index.js +190 -0
  273. package/lib/components/SearchInput/index.test.js +417 -0
  274. package/lib/components/SearchInput/schema.d.ts +3 -0
  275. package/lib/components/SearchInput/schema.d.ts.map +1 -0
  276. package/lib/components/SearchInput/schema.js +24 -0
  277. package/lib/components/SearchInput/types.d.ts +28 -0
  278. package/lib/components/SearchInput/types.d.ts.map +1 -0
  279. package/lib/components/SearchInput/types.js +5 -0
  280. package/lib/components/Select/Target.d.ts.map +1 -1
  281. package/lib/components/Select/Target.js +6 -2
  282. package/lib/components/Select/index.d.ts.map +1 -1
  283. package/lib/components/Select/index.js +44 -4
  284. package/lib/components/Select/index.test.js +106 -23
  285. package/lib/components/Select/schema.d.ts.map +1 -1
  286. package/lib/components/Select/schema.js +9 -0
  287. package/lib/components/Select/types.d.ts +6 -1
  288. package/lib/components/Select/types.d.ts.map +1 -1
  289. package/lib/components/Select/types.js +5 -1
  290. package/lib/components/SelectDate/Target.d.ts.map +1 -1
  291. package/lib/components/SelectDate/Target.js +6 -2
  292. package/lib/components/SelectDate/index.d.ts.map +1 -1
  293. package/lib/components/SelectDate/index.js +32 -3
  294. package/lib/components/SelectDate/index.test.js +108 -51
  295. package/lib/components/SelectDate/schema.d.ts.map +1 -1
  296. package/lib/components/SelectDate/schema.js +3 -0
  297. package/lib/components/SelectDate/types.d.ts +3 -0
  298. package/lib/components/SelectDate/types.d.ts.map +1 -1
  299. package/lib/components/SelectDate/types.js +5 -1
  300. package/lib/components/SelectDateRange/index.d.ts.map +1 -1
  301. package/lib/components/SelectDateRange/index.js +31 -2
  302. package/lib/components/SelectDateRange/index.test.js +115 -58
  303. package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
  304. package/lib/components/SelectDateRange/schema.js +3 -0
  305. package/lib/components/SelectDateRange/types.js +5 -1
  306. package/lib/components/SelectMenu/index.d.ts +5 -0
  307. package/lib/components/SelectMenu/index.d.ts.map +1 -1
  308. package/lib/components/SelectMenu/index.js +27 -3
  309. package/lib/components/SelectMenu/schema.d.ts.map +1 -1
  310. package/lib/components/SelectMenu/schema.js +4 -0
  311. package/lib/components/Table/Body.d.ts.map +1 -1
  312. package/lib/components/Table/Body.js +28 -17
  313. package/lib/components/Table/Container.d.ts.map +1 -1
  314. package/lib/components/Table/Container.js +6 -1
  315. package/lib/components/Table/DataRow.d.ts.map +1 -1
  316. package/lib/components/Table/DataRow.js +26 -18
  317. package/lib/components/Table/Head.d.ts +1 -1
  318. package/lib/components/Table/Head.d.ts.map +1 -1
  319. package/lib/components/Table/Head.js +10 -5
  320. package/lib/components/Table/HeaderCell/index.d.ts.map +1 -1
  321. package/lib/components/Table/HeaderCell/index.js +19 -6
  322. package/lib/components/Table/HeaderCell/types.d.ts +6 -1
  323. package/lib/components/Table/HeaderCell/types.d.ts.map +1 -1
  324. package/lib/components/Table/HeaderCell/types.js +5 -1
  325. package/lib/components/Table/Provider.d.ts +5 -5
  326. package/lib/components/Table/Provider.d.ts.map +1 -1
  327. package/lib/components/Table/Provider.js +10 -11
  328. package/lib/components/Table/index.d.ts.map +1 -1
  329. package/lib/components/Table/index.js +110 -20
  330. package/lib/components/Table/index.test.js +80 -33
  331. package/lib/components/Table/schema.columns.d.ts.map +1 -1
  332. package/lib/components/Table/schema.columns.js +6 -4
  333. package/lib/components/Table/schema.d.ts.map +1 -1
  334. package/lib/components/Table/schema.js +7 -6
  335. package/lib/components/Table/types.d.ts +19 -4
  336. package/lib/components/Table/types.d.ts.map +1 -1
  337. package/lib/components/Table/utils.d.ts +2 -8
  338. package/lib/components/Table/utils.d.ts.map +1 -1
  339. package/lib/components/Table/utils.js +21 -20
  340. package/lib/components/Tabs/Tab/index.d.ts +13 -0
  341. package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
  342. package/lib/components/Tabs/Tab/index.js +94 -0
  343. package/lib/components/Tabs/Tab/schema.d.ts +3 -0
  344. package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
  345. package/lib/components/Tabs/Tab/styles.d.ts +7 -0
  346. package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
  347. package/lib/components/Tabs/Tab/styles.js +37 -0
  348. package/lib/components/Tabs/context.d.ts +2 -2
  349. package/lib/components/Tabs/context.d.ts.map +1 -1
  350. package/lib/components/Tabs/context.js +1 -1
  351. package/lib/components/Tabs/index.d.ts +17 -6
  352. package/lib/components/Tabs/index.d.ts.map +1 -1
  353. package/lib/components/Tabs/index.js +104 -163
  354. package/lib/components/Tabs/index.test.js +54 -2
  355. package/lib/components/Tabs/styles.d.ts +4 -0
  356. package/lib/components/Tabs/styles.d.ts.map +1 -0
  357. package/lib/components/Tabs/styles.js +35 -0
  358. package/lib/components/Tag/Action.d.ts +4 -0
  359. package/lib/components/Tag/Action.d.ts.map +1 -0
  360. package/lib/components/Tag/Action.js +39 -0
  361. package/lib/components/Tag/constants.d.ts +2 -2
  362. package/lib/components/Tag/constants.d.ts.map +1 -1
  363. package/lib/components/Tag/constants.js +4 -4
  364. package/lib/components/Tag/index.d.ts +1 -3
  365. package/lib/components/Tag/index.d.ts.map +1 -1
  366. package/lib/components/Tag/index.js +40 -97
  367. package/lib/components/Tag/index.test.js +239 -2
  368. package/lib/components/Tag/propTypes.d.ts +3 -0
  369. package/lib/components/Tag/propTypes.d.ts.map +1 -1
  370. package/lib/components/Tag/propTypes.js +5 -2
  371. package/lib/components/Tag/schema.d.ts.map +1 -1
  372. package/lib/components/Tag/schema.js +2 -0
  373. package/lib/components/Tag/styles.d.ts +13 -0
  374. package/lib/components/Tag/styles.d.ts.map +1 -0
  375. package/lib/components/Tag/styles.js +167 -0
  376. package/lib/components/Tag/types.d.ts +9 -10
  377. package/lib/components/Tag/types.d.ts.map +1 -1
  378. package/lib/components/Tag/types.js +5 -1
  379. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  380. package/lib/components/TextArea/TextArea.js +1 -1
  381. package/lib/components/TextArea/index.js +1 -0
  382. package/lib/components/TextArea/index.test.js +5 -0
  383. package/lib/components/TextField/Input.js +1 -1
  384. package/lib/components/TextField/index.test.js +5 -0
  385. package/lib/components/Toggle/Fieldset.d.ts.map +1 -1
  386. package/lib/components/Toggle/Fieldset.js +20 -11
  387. package/lib/components/Toggle/Option.d.ts.map +1 -1
  388. package/lib/components/Toggle/Option.js +1 -1
  389. package/lib/components/Toggle/Slider.d.ts +1 -3
  390. package/lib/components/Toggle/Slider.d.ts.map +1 -1
  391. package/lib/components/Toggle/Slider.js +29 -24
  392. package/lib/components/Toggle/index.d.ts.map +1 -1
  393. package/lib/components/Toggle/index.js +6 -1
  394. package/lib/components/Toggle/index.test.js +39 -10
  395. package/lib/components/Toggle/propTypes.js +1 -1
  396. package/lib/components/Toggle/schema.js +1 -1
  397. package/lib/components/Toggle/types.d.ts +3 -2
  398. package/lib/components/Toggle/types.d.ts.map +1 -1
  399. package/lib/components/Toggle/types.js +5 -1
  400. package/lib/components/ToggleView/ToggleView.d.ts +5 -0
  401. package/lib/components/ToggleView/ToggleView.d.ts.map +1 -0
  402. package/lib/components/ToggleView/ToggleView.js +80 -0
  403. package/lib/components/ToggleView/index.d.ts +4 -0
  404. package/lib/components/ToggleView/index.d.ts.map +1 -0
  405. package/lib/components/ToggleView/index.js +33 -0
  406. package/lib/components/ToggleView/index.test.js +61 -0
  407. package/lib/components/ToggleView/schema.d.ts +3 -0
  408. package/lib/components/ToggleView/schema.d.ts.map +1 -0
  409. package/lib/components/ToggleView/schema.js +24 -0
  410. package/lib/components/ToggleView/styles.d.ts +6 -0
  411. package/lib/components/ToggleView/styles.d.ts.map +1 -0
  412. package/lib/components/ToggleView/styles.js +23 -0
  413. package/lib/components/ToggleView/types.d.ts +23 -0
  414. package/lib/components/ToggleView/types.d.ts.map +1 -0
  415. package/lib/components/ToggleView/types.js +12 -0
  416. package/lib/components/Tooltip/index.d.ts.map +1 -1
  417. package/lib/components/Tooltip/index.js +3 -13
  418. package/lib/components/Tooltip/schema.d.ts +3 -0
  419. package/lib/components/Tooltip/schema.d.ts.map +1 -0
  420. package/lib/components/Tooltip/schema.js +29 -0
  421. package/lib/components/Typography/withColors.d.ts +1 -1
  422. package/lib/components/Typography/withColors.d.ts.map +1 -1
  423. package/lib/components/Typography/withColors.js +1 -1
  424. package/lib/components/index.d.ts +8 -1
  425. package/lib/components/index.d.ts.map +1 -1
  426. package/lib/components/index.js +126 -0
  427. package/lib/modifiers/spacingSchema.d.ts.map +1 -1
  428. package/lib/modifiers/spacingSchema.js +29 -16
  429. package/lib/providers/ConfigProvider/index.d.ts.map +1 -1
  430. package/lib/providers/ConfigProvider/index.js +5 -1
  431. package/lib/providers/ConfigProvider/utils/context.d.ts +1 -1
  432. package/lib/providers/ConfigProvider/utils/context.d.ts.map +1 -1
  433. package/lib/providers/ConfigProvider/utils/normalizer.d.ts.map +1 -1
  434. package/lib/providers/ConfigProvider/utils/normalizer.js +1 -1
  435. package/lib/providers/ConfigProvider/utils/translations.d.ts +24 -0
  436. package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
  437. package/lib/providers/ConfigProvider/utils/translations.js +24 -0
  438. package/lib/providers/NotificationsProvider/index.d.ts +6 -5
  439. package/lib/providers/NotificationsProvider/index.d.ts.map +1 -1
  440. package/lib/providers/NotificationsProvider/index.js +47 -28
  441. package/lib/providers/NotificationsProvider/types.d.ts +4 -1
  442. package/lib/providers/NotificationsProvider/types.d.ts.map +1 -1
  443. package/lib/utils/commonUIColors.d.ts +349 -1
  444. package/lib/utils/commonUIColors.d.ts.map +1 -1
  445. package/lib/utils/commonUIColors.js +6 -2
  446. package/lib/utils/joinClassnames.d.ts +3 -0
  447. package/lib/utils/joinClassnames.d.ts.map +1 -0
  448. package/lib/utils/joinClassnames.js +26 -0
  449. package/lib/utils/useFirstMount.d.ts +2 -0
  450. package/lib/utils/useFirstMount.d.ts.map +1 -0
  451. package/lib/utils/useFirstMount.js +19 -0
  452. package/lib/utils/useUpdateEffect.d.ts +4 -0
  453. package/lib/utils/useUpdateEffect.d.ts.map +1 -0
  454. package/lib/utils/useUpdateEffect.js +28 -0
  455. package/package.json +2 -2
  456. package/CHANGELOG.md +0 -796
  457. package/lib/atoms/InputField/RequiredIcon.d.ts +0 -4
  458. package/lib/atoms/InputField/RequiredIcon.d.ts.map +0 -1
  459. package/lib/components/Tabs/Tab.d.ts +0 -5
  460. package/lib/components/Tabs/Tab.d.ts.map +0 -1
  461. package/lib/components/Tabs/Tab.js +0 -109
  462. package/lib/components/Tabs/schema.tab.d.ts.map +0 -1
  463. package/lib/components/Tabs/types.d.ts +0 -27
  464. package/lib/components/Tabs/types.d.ts.map +0 -1
  465. package/lib/components/Tabs/types.js +0 -1
  466. package/lib/components/Tag/ActionButton.d.ts +0 -5
  467. package/lib/components/Tag/ActionButton.d.ts.map +0 -1
  468. package/lib/components/Tag/ActionButton.js +0 -56
  469. /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {
7
7
  Accordion: true,
8
+ Alert: true,
9
+ AlertProps: true,
8
10
  AvatarProps: true,
9
11
  AvatarRef: true,
10
12
  Avatar: true,
@@ -17,11 +19,13 @@ var _exportNames = {
17
19
  Checkbox: true,
18
20
  CheckboxGroup: true,
19
21
  Combobox: true,
22
+ Drawer: true,
20
23
  DropdownList: true,
21
24
  DropdownListCategory: true,
22
25
  DropdownListItem: true,
23
26
  DropdownListOption: true,
24
27
  DropdownListProps: true,
28
+ Filter: true,
25
29
  Flex: true,
26
30
  Column: true,
27
31
  Container: true,
@@ -32,6 +36,10 @@ var _exportNames = {
32
36
  LeftNav: true,
33
37
  useStickyLeftNav: true,
34
38
  Link: true,
39
+ Loading: true,
40
+ LoadingProps: true,
41
+ LoadingSize: true,
42
+ LoadingVariant: true,
35
43
  Menu: true,
36
44
  Message: true,
37
45
  Modal: true,
@@ -41,9 +49,12 @@ var _exportNames = {
41
49
  Notifier: true,
42
50
  useNotifications: true,
43
51
  Pagination: true,
52
+ PasswordField: true,
44
53
  Popover: true,
45
54
  RadioGroup: true,
46
55
  Select: true,
56
+ SearchInput: true,
57
+ SearchItem: true,
47
58
  SelectDate: true,
48
59
  DisabledDateRuleName: true,
49
60
  DayOfWeek: true,
@@ -53,12 +64,17 @@ var _exportNames = {
53
64
  TableProps: true,
54
65
  Tabs: true,
55
66
  Tab: true,
67
+ TabsProps: true,
68
+ TabData: true,
69
+ TabIcon: true,
70
+ TabProps: true,
56
71
  Tag: true,
57
72
  TagActionButtonRef: true,
58
73
  TagRef: true,
59
74
  TextArea: true,
60
75
  TextField: true,
61
76
  Toggle: true,
77
+ ToggleView: true,
62
78
  TopNav: true,
63
79
  Tooltip: true
64
80
  };
@@ -68,6 +84,18 @@ Object.defineProperty(exports, "Accordion", {
68
84
  return _Accordion.default;
69
85
  }
70
86
  });
87
+ Object.defineProperty(exports, "Alert", {
88
+ enumerable: true,
89
+ get: function get() {
90
+ return _Alert.default;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, "AlertProps", {
94
+ enumerable: true,
95
+ get: function get() {
96
+ return _Alert.AlertProps;
97
+ }
98
+ });
71
99
  Object.defineProperty(exports, "AvatarProps", {
72
100
  enumerable: true,
73
101
  get: function get() {
@@ -140,6 +168,12 @@ Object.defineProperty(exports, "Combobox", {
140
168
  return _Combobox.default;
141
169
  }
142
170
  });
171
+ Object.defineProperty(exports, "Drawer", {
172
+ enumerable: true,
173
+ get: function get() {
174
+ return _Drawer.default;
175
+ }
176
+ });
143
177
  Object.defineProperty(exports, "DropdownList", {
144
178
  enumerable: true,
145
179
  get: function get() {
@@ -170,6 +204,12 @@ Object.defineProperty(exports, "DropdownListProps", {
170
204
  return _DropdownList.DropdownListProps;
171
205
  }
172
206
  });
207
+ Object.defineProperty(exports, "Filter", {
208
+ enumerable: true,
209
+ get: function get() {
210
+ return _Filter.default;
211
+ }
212
+ });
173
213
  Object.defineProperty(exports, "Flex", {
174
214
  enumerable: true,
175
215
  get: function get() {
@@ -230,6 +270,30 @@ Object.defineProperty(exports, "Link", {
230
270
  return _Link.default;
231
271
  }
232
272
  });
273
+ Object.defineProperty(exports, "Loading", {
274
+ enumerable: true,
275
+ get: function get() {
276
+ return _Loading.default;
277
+ }
278
+ });
279
+ Object.defineProperty(exports, "LoadingProps", {
280
+ enumerable: true,
281
+ get: function get() {
282
+ return _Loading.LoadingProps;
283
+ }
284
+ });
285
+ Object.defineProperty(exports, "LoadingSize", {
286
+ enumerable: true,
287
+ get: function get() {
288
+ return _Loading.LoadingSize;
289
+ }
290
+ });
291
+ Object.defineProperty(exports, "LoadingVariant", {
292
+ enumerable: true,
293
+ get: function get() {
294
+ return _Loading.LoadingVariant;
295
+ }
296
+ });
233
297
  Object.defineProperty(exports, "Menu", {
234
298
  enumerable: true,
235
299
  get: function get() {
@@ -284,6 +348,12 @@ Object.defineProperty(exports, "Pagination", {
284
348
  return _Pagination.default;
285
349
  }
286
350
  });
351
+ Object.defineProperty(exports, "PasswordField", {
352
+ enumerable: true,
353
+ get: function get() {
354
+ return _PasswordField.default;
355
+ }
356
+ });
287
357
  Object.defineProperty(exports, "Popover", {
288
358
  enumerable: true,
289
359
  get: function get() {
@@ -302,6 +372,18 @@ Object.defineProperty(exports, "Select", {
302
372
  return _Select.default;
303
373
  }
304
374
  });
375
+ Object.defineProperty(exports, "SearchInput", {
376
+ enumerable: true,
377
+ get: function get() {
378
+ return _SearchInput.default;
379
+ }
380
+ });
381
+ Object.defineProperty(exports, "SearchItem", {
382
+ enumerable: true,
383
+ get: function get() {
384
+ return _SearchInput.SearchItem;
385
+ }
386
+ });
305
387
  Object.defineProperty(exports, "SelectDate", {
306
388
  enumerable: true,
307
389
  get: function get() {
@@ -356,6 +438,30 @@ Object.defineProperty(exports, "Tab", {
356
438
  return _Tabs.Tab;
357
439
  }
358
440
  });
441
+ Object.defineProperty(exports, "TabsProps", {
442
+ enumerable: true,
443
+ get: function get() {
444
+ return _Tabs.TabsProps;
445
+ }
446
+ });
447
+ Object.defineProperty(exports, "TabData", {
448
+ enumerable: true,
449
+ get: function get() {
450
+ return _Tabs.TabData;
451
+ }
452
+ });
453
+ Object.defineProperty(exports, "TabIcon", {
454
+ enumerable: true,
455
+ get: function get() {
456
+ return _Tabs.TabIcon;
457
+ }
458
+ });
459
+ Object.defineProperty(exports, "TabProps", {
460
+ enumerable: true,
461
+ get: function get() {
462
+ return _Tabs.TabProps;
463
+ }
464
+ });
359
465
  Object.defineProperty(exports, "Tag", {
360
466
  enumerable: true,
361
467
  get: function get() {
@@ -392,6 +498,12 @@ Object.defineProperty(exports, "Toggle", {
392
498
  return _Toggle.default;
393
499
  }
394
500
  });
501
+ Object.defineProperty(exports, "ToggleView", {
502
+ enumerable: true,
503
+ get: function get() {
504
+ return _ToggleView.default;
505
+ }
506
+ });
395
507
  Object.defineProperty(exports, "TopNav", {
396
508
  enumerable: true,
397
509
  get: function get() {
@@ -407,6 +519,8 @@ Object.defineProperty(exports, "Tooltip", {
407
519
 
408
520
  var _Accordion = _interopRequireDefault(require("./Accordion"));
409
521
 
522
+ var _Alert = _interopRequireWildcard(require("./Alert"));
523
+
410
524
  var _Avatar = _interopRequireWildcard(require("./Avatar"));
411
525
 
412
526
  var _Badge = _interopRequireWildcard(require("./Badge"));
@@ -421,8 +535,12 @@ var _CheckboxGroup = _interopRequireDefault(require("./CheckboxGroup"));
421
535
 
422
536
  var _Combobox = _interopRequireDefault(require("./Combobox"));
423
537
 
538
+ var _Drawer = _interopRequireDefault(require("./Drawer"));
539
+
424
540
  var _DropdownList = _interopRequireWildcard(require("./DropdownList"));
425
541
 
542
+ var _Filter = _interopRequireDefault(require("./Filter"));
543
+
426
544
  var _Flex = _interopRequireDefault(require("./Flex"));
427
545
 
428
546
  var _Grid = _interopRequireWildcard(require("./Grid"));
@@ -433,6 +551,8 @@ var _LeftNav = _interopRequireWildcard(require("./LeftNav"));
433
551
 
434
552
  var _Link = _interopRequireDefault(require("./Link"));
435
553
 
554
+ var _Loading = _interopRequireWildcard(require("./Loading"));
555
+
436
556
  var _Menu = _interopRequireDefault(require("./Menu"));
437
557
 
438
558
  var _Message = _interopRequireDefault(require("./Message"));
@@ -445,12 +565,16 @@ var _Notifications = require("./Notifications");
445
565
 
446
566
  var _Pagination = _interopRequireDefault(require("./Pagination"));
447
567
 
568
+ var _PasswordField = _interopRequireDefault(require("./PasswordField"));
569
+
448
570
  var _Popover = _interopRequireDefault(require("./Popover"));
449
571
 
450
572
  var _RadioGroup = _interopRequireDefault(require("./RadioGroup"));
451
573
 
452
574
  var _Select = _interopRequireDefault(require("./Select"));
453
575
 
576
+ var _SearchInput = _interopRequireWildcard(require("./SearchInput"));
577
+
454
578
  var _SelectDate = _interopRequireWildcard(require("./SelectDate"));
455
579
 
456
580
  var _SelectDateRange = _interopRequireDefault(require("./SelectDateRange"));
@@ -469,6 +593,8 @@ var _TextField = _interopRequireDefault(require("./TextField"));
469
593
 
470
594
  var _Toggle = _interopRequireDefault(require("./Toggle"));
471
595
 
596
+ var _ToggleView = _interopRequireDefault(require("./ToggleView"));
597
+
472
598
  var _TopNav = _interopRequireDefault(require("./TopNav"));
473
599
 
474
600
  var _Tooltip = _interopRequireDefault(require("./Tooltip"));
@@ -1 +1 @@
1
- {"version":3,"file":"spacingSchema.d.ts","sourceRoot":"","sources":["../../src/modifiers/spacingSchema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,0BAA0B,cA2CrC,CAAC"}
1
+ {"version":3,"file":"spacingSchema.d.ts","sourceRoot":"","sources":["../../src/modifiers/spacingSchema.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B,cA2CrC,CAAC"}
@@ -7,24 +7,37 @@ exports.makeSpacingSchemaPropTypes = void 0;
7
7
 
8
8
  var _reactDesc = require("react-desc");
9
9
 
10
- // @ts-ignore no module typings
11
- // eslint-disable-next-line import/prefer-default-export
10
+ var _breakpointObserver = require("@decisiv/breakpoint-observer");
11
+
12
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+
14
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
15
+
16
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
17
+
18
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
19
+
20
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
21
+
22
+ var numberOrDynamicModifierProp = _reactDesc.PropTypes.oneOfType([_reactDesc.PropTypes.number, _reactDesc.PropTypes.shape(_defineProperty({}, _reactDesc.PropTypes.oneOf(['_'].concat(_toConsumableArray(Object.keys(_breakpointObserver.sizes)))), _reactDesc.PropTypes.number))]); // eslint-disable-next-line import/prefer-default-export
23
+
24
+
12
25
  var makeSpacingSchemaPropTypes = function makeSpacingSchemaPropTypes() {
13
26
  return {
14
- margin: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on all axis margin.'),
15
- marginBottom: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the bottom margin.'),
16
- marginLeft: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the left margin.'),
17
- marginRight: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the right margin.'),
18
- marginTop: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the top margin.'),
19
- marginX: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the X axis margin.'),
20
- marginY: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the Y axis margin.'),
21
- padding: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on all axis padding.'),
22
- paddingBottom: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the bottom padding.'),
23
- paddingLeft: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the left padding.'),
24
- paddingRight: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the right padding.'),
25
- paddingTop: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the top padding.'),
26
- paddingX: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the X axis padding.'),
27
- paddingY: _reactDesc.PropTypes.number.description('Defines the spacing multiplier for use on the Y axis padding.')
27
+ margin: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on all axis margin.'),
28
+ marginBottom: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the bottom margin.'),
29
+ marginLeft: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the left margin.'),
30
+ marginRight: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the right margin.'),
31
+ marginTop: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the top margin.'),
32
+ marginX: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the X axis margin.'),
33
+ marginY: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the Y axis margin.'),
34
+ padding: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on all axis padding.'),
35
+ paddingBottom: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the bottom padding.'),
36
+ paddingLeft: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the left padding.'),
37
+ paddingRight: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the right padding.'),
38
+ paddingTop: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the top padding.'),
39
+ paddingX: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the X axis padding.'),
40
+ paddingY: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the Y axis padding.')
28
41
  };
29
42
  };
30
43
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/ConfigProvider/index.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAUf,OAAO,EAGL,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAQzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,aAAa,CAoGpD,CAAC;AAQF,QAAA,MAAM,SAAS,qBACkB,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/ConfigProvider/index.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAUf,OAAO,EAGL,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAQzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,aAAa,CAwGpD,CAAC;AAQF,QAAA,MAAM,SAAS,qBACkB,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC"}
@@ -166,7 +166,11 @@ var ConfigProvider = function ConfigProvider(props) {
166
166
  var managerProps = {};
167
167
 
168
168
  if (extraScope) {
169
- managerProps.stylisPlugins = [(0, _stylisPluginExtraScope.default)(extraScope)];
169
+ var extraScopePlugin = (0, _stylisPluginExtraScope.default)(extraScope);
170
+ Object.defineProperty(extraScopePlugin, 'name', {
171
+ value: 'extraScopePlugin'
172
+ });
173
+ managerProps.stylisPlugins = [extraScopePlugin];
170
174
  }
171
175
 
172
176
  return managerProps;
@@ -17,7 +17,7 @@ export interface DefaultConfig {
17
17
  export declare const defaultConfig: DefaultConfig;
18
18
  export declare const ConfigContext: React.Context<DefaultConfig>;
19
19
  export interface ProviderProps {
20
- children: React.ReactChild;
20
+ children?: React.ReactChild;
21
21
  extraScope?: string;
22
22
  linkRenderer?: LinkRenderer;
23
23
  portalsRoot?: HTMLElement | string;
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,mBAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAqB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9C,OAA4B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnE,oBAAY,YAAY,GAAG,OAAO,mBAAmB,CAAC;AAEtD,oBAAY,wBAAwB,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;AAE7E,aAAK,aAAa,GAAG,CACnB,QAAQ,EAAE,SAAS,EACnB,kBAAkB,CAAC,EAAE,MAAM,KACxB,WAAW,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,wBAAwB,CAAC;IACzD,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,aAoB3B,CAAC;AAEF,eAAO,MAAM,aAAa,8BAA+B,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CACtC"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,mBAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAqB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9C,OAA4B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnE,oBAAY,YAAY,GAAG,OAAO,mBAAmB,CAAC;AAEtD,oBAAY,wBAAwB,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;AAE7E,aAAK,aAAa,GAAG,CACnB,QAAQ,EAAE,SAAS,EACnB,kBAAkB,CAAC,EAAE,MAAM,KACxB,WAAW,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,wBAAwB,CAAC;IACzD,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,aAoB3B,CAAC;AAEF,eAAO,MAAM,aAAa,8BAA+B,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/normalizer.tsx"],"names":[],"mappings":"AA4IA,QAAA,MAAM,UAAU,oEAIf,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/normalizer.tsx"],"names":[],"mappings":"AA8IA,QAAA,MAAM,UAAU,oEAIf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -38,7 +38,7 @@ var cssReset = (0, _styledComponents.css)(["*,*::before,*::after{box-sizing:bord
38
38
  * Basic typography styling that should be applied globally.
39
39
  */
40
40
 
41
- var typographyBase = (0, _styledComponents.css)(["font-family:", ";font-size:", ";font-weight:", ";color:", ";letter-spacing:normal;"], _designTokens.typography.typeface.default, (0, _rem.default)(_designTokens.typography.size.alias.default), _designTokens.typography.weight.alias.default, (0, _toColorString.default)(_designTokens.color.base.charcoal));
41
+ var typographyBase = (0, _styledComponents.css)(["font-family:", ";font-size:", ";font-weight:", ";color:", ";letter-spacing:normal;font-feature-settings:normal;font-variant-numeric:normal;"], _designTokens.typography.typeface.default, (0, _rem.default)(_designTokens.typography.size.alias.default), _designTokens.typography.weight.alias.default, (0, _toColorString.default)(_designTokens.color.base.charcoal));
42
42
 
43
43
  var Normalizer = _styledComponents.default.div.withConfig({
44
44
  displayName: "normalizer__Normalizer",
@@ -5,6 +5,10 @@ declare const translations: {
5
5
  readonly expand: "Expand";
6
6
  readonly expandAll: "Expand All";
7
7
  };
8
+ alert: {
9
+ readonly closeAlert: "Close Alert";
10
+ readonly close: "Close";
11
+ };
8
12
  avatar: {
9
13
  aria: {
10
14
  readonly label: "{descriptor} avatar";
@@ -49,6 +53,10 @@ declare const translations: {
49
53
  readonly viewNextMonth: "View next month";
50
54
  readonly viewPrevMonth: "View previous month";
51
55
  };
56
+ drawer: {
57
+ readonly closeBtnTooltip: "Close";
58
+ readonly closeBtn: "Close Drawer";
59
+ };
52
60
  jumpTo: {
53
61
  readonly menuLabel: "Jump To";
54
62
  readonly navLabel: "Jump To:";
@@ -118,6 +126,22 @@ declare const translations: {
118
126
  textField: {
119
127
  readonly requiredMessage: "Required";
120
128
  };
129
+ toggleView: {
130
+ aria: {
131
+ readonly label: "Toggle View";
132
+ readonly element: "View element {id}";
133
+ };
134
+ };
135
+ passwordField: {
136
+ readonly showPassword: "Show Password";
137
+ readonly hidePassword: "Hide Password";
138
+ readonly password: "Password";
139
+ };
140
+ searchInput: {
141
+ readonly clear: "Clear";
142
+ readonly search: "Search";
143
+ readonly clearSearch: "Clear search";
144
+ };
121
145
  };
122
146
  export declare type Translations = typeof translations;
123
147
  export default translations;
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHR,CAAC;AAEX,oBAAY,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIR,CAAC;AAEX,oBAAY,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAe,YAAY,CAAC"}
@@ -11,6 +11,10 @@ var translations = {
11
11
  expand: 'Expand',
12
12
  expandAll: 'Expand All'
13
13
  },
14
+ alert: {
15
+ closeAlert: 'Close Alert',
16
+ close: 'Close'
17
+ },
14
18
  avatar: {
15
19
  aria: {
16
20
  label: '{descriptor} avatar'
@@ -55,6 +59,10 @@ var translations = {
55
59
  viewNextMonth: 'View next month',
56
60
  viewPrevMonth: 'View previous month'
57
61
  },
62
+ drawer: {
63
+ closeBtnTooltip: 'Close',
64
+ closeBtn: 'Close Drawer'
65
+ },
58
66
  jumpTo: {
59
67
  menuLabel: 'Jump To',
60
68
  navLabel: 'Jump To:'
@@ -123,6 +131,22 @@ var translations = {
123
131
  },
124
132
  textField: {
125
133
  requiredMessage: 'Required'
134
+ },
135
+ toggleView: {
136
+ aria: {
137
+ label: 'Toggle View',
138
+ element: 'View element {id}'
139
+ }
140
+ },
141
+ passwordField: {
142
+ showPassword: 'Show Password',
143
+ hidePassword: 'Hide Password',
144
+ password: 'Password'
145
+ },
146
+ searchInput: {
147
+ clear: 'Clear',
148
+ search: 'Search',
149
+ clearSearch: 'Clear search'
126
150
  }
127
151
  };
128
152
  var _default = translations;
@@ -1,18 +1,19 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { NotificationState, TNotificationProps, TNotifications } from './types';
3
3
  declare type TNotifierOptions = Omit<TNotificationProps, 'onClose'> & {
4
4
  onClose?: React.MouseEventHandler;
5
5
  };
6
- declare let notifyCB: (oldNotifications: TNotifications) => void | [TNotifierOptions] | [TNotifierOptions, JSX.Element];
7
- declare let notifyHandler: (...args: [typeof notifyCB] | [TNotifierOptions] | [TNotifierOptions, JSX.Element]) => void;
6
+ declare type TNotifyHandlerCallbackFn = (oldNotifications: TNotifications) => void | [TNotifierOptions] | [TNotifierOptions, JSX.Element];
7
+ declare type TNotifyHandlerFn = (...args: [TNotifyHandlerCallbackFn] | [TNotifierOptions] | [TNotifierOptions, JSX.Element]) => void;
8
8
  export interface TNotificationsContext {
9
9
  dismissAll: () => void;
10
+ isDismissingAll: boolean;
10
11
  notifications: TNotifications;
11
- notify: typeof notifyHandler;
12
+ notify: TNotifyHandlerFn;
12
13
  }
13
14
  export declare const NotificationsContext: React.Context<TNotificationsContext>;
14
15
  interface TNotificationsProviderProps {
15
- children: React.ReactChild | React.ReactChildren;
16
+ children?: React.ReactChild | React.ReactChildren;
16
17
  }
17
18
  export declare const transitions: {
18
19
  ENTERING: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/NotificationsProvider/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,EACL,iBAAiB,EAGjB,kBAAkB,EAClB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,aAAK,gBAAgB,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAAG;IAC5D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;CACnC,CAAC;AAEF,QAAA,IAAI,QAAQ,EAAE,CACZ,gBAAgB,EAAE,cAAc,KAC7B,IAAI,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;AAEjE,QAAA,IAAI,aAAa,EAAE,CACjB,GAAG,IAAI,EACH,CAAC,OAAO,QAAQ,CAAC,GACjB,CAAC,gBAAgB,CAAC,GAClB,CAAC,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,KAChC,IAAI,CAAC;AAEV,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,EAAE,cAAc,CAAC;IAC9B,MAAM,EAAE,OAAO,aAAa,CAAC;CAC9B;AAED,eAAO,MAAM,oBAAoB,sCAM/B,CAAC;AAEH,UAAU,2BAA2B;IACnC,QAAQ,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC;CAClD;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBd,CAAC;AAEX,iBAAS,qBAAqB,CAAC,EAC7B,QAAQ,GACT,EAAE,2BAA2B,GAAG,GAAG,CAAC,OAAO,CA2I3C;AAED,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/NotificationsProvider/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,iBAAiB,EAGjB,kBAAkB,EAClB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,aAAK,gBAAgB,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAAG;IAC5D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;CACnC,CAAC;AAEF,aAAK,wBAAwB,GAAG,CAC9B,gBAAgB,EAAE,cAAc,KAC7B,IAAI,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;AAEjE,aAAK,gBAAgB,GAAG,CACtB,GAAG,IAAI,EACH,CAAC,wBAAwB,CAAC,GAC1B,CAAC,gBAAgB,CAAC,GAClB,CAAC,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,KAChC,IAAI,CAAC;AAEV,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,cAAc,CAAC;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,oBAAoB,sCAK/B,CAAC;AAEH,UAAU,2BAA2B;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC;CACnD;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBd,CAAC;AAEX,iBAAS,qBAAqB,CAAC,EAC7B,QAAQ,GACT,EAAE,2BAA2B,GAAG,GAAG,CAAC,OAAO,CA8K3C;AAED,eAAe,qBAAqB,CAAC"}
@@ -11,7 +11,9 @@ var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
11
11
 
12
12
  var _uniqueId = _interopRequireDefault(require("lodash/uniqueId"));
13
13
 
14
- var _react = _interopRequireWildcard(require("react"));
14
+ var _noop = _interopRequireDefault(require("lodash/noop"));
15
+
16
+ var React = _interopRequireWildcard(require("react"));
15
17
 
16
18
  var _types = require("./types");
17
19
 
@@ -47,15 +49,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
49
 
48
50
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
49
51
 
50
- var notifyCB;
51
- var notifyHandler;
52
- var NotificationsContext = (0, _react.createContext)({
53
- /* istanbul ignore next */
54
- dismissAll: function dismissAll() {},
52
+ var NotificationsContext = React.createContext({
53
+ dismissAll: _noop.default,
54
+ isDismissingAll: false,
55
55
  notifications: [],
56
-
57
- /* istanbul ignore next */
58
- notify: function notify() {}
56
+ notify: _noop.default
59
57
  });
60
58
  exports.NotificationsContext = NotificationsContext;
61
59
  var transitions = (_transitions = {}, _defineProperty(_transitions, _types.NotificationState.ENTERING, {
@@ -76,10 +74,10 @@ exports.transitions = transitions;
76
74
  function NotificationsProvider(_ref) {
77
75
  var children = _ref.children;
78
76
 
79
- var _useState = (0, _react.useState)([]),
80
- _useState2 = _slicedToArray(_useState, 2),
81
- notifications = _useState2[0],
82
- setNotifications = _useState2[1];
77
+ var _React$useState = React.useState([]),
78
+ _React$useState2 = _slicedToArray(_React$useState, 2),
79
+ notifications = _React$useState2[0],
80
+ setNotifications = _React$useState2[1];
83
81
  /**
84
82
  * Advances a notification to either the specified state or the next state for the current state
85
83
  */
@@ -112,6 +110,16 @@ function NotificationsProvider(_ref) {
112
110
  })];
113
111
  }
114
112
 
113
+ if (meta.state === _types.NotificationState.COLLAPSING_ALL && props.onClose) {
114
+ try {
115
+ props.onClose(new MouseEvent('click'));
116
+ } catch (_unused) {
117
+ // IE doesn't support MouseEvent. If you support IE, you must verify or mock
118
+ // attributes required by this event handler.
119
+ props.onClose({});
120
+ }
121
+ }
122
+
115
123
  return undefined;
116
124
  }
117
125
 
@@ -134,7 +142,7 @@ function NotificationsProvider(_ref) {
134
142
  });
135
143
  };
136
144
 
137
- var notify = (0, _react.useCallback)(function () {
145
+ var notify = React.useCallback(function () {
138
146
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
139
147
  args[_key] = arguments[_key];
140
148
  }
@@ -148,25 +156,23 @@ function NotificationsProvider(_ref) {
148
156
  // notification dispatched.
149
157
  var newNotificationParams = args[0](oldNotifications);
150
158
 
151
- if ((0, _isEmpty.default)(newNotificationParams)) {
159
+ if (!newNotificationParams) {
152
160
  // In the scenario where a callback arg is provided but returns void,
153
161
  // block the rest of the logic and move on. There should be no change.
154
162
  return oldNotifications;
155
163
  }
156
164
 
157
- var _ref6 = newNotificationParams;
165
+ var _newNotificationParam = _slicedToArray(newNotificationParams, 2);
166
+
167
+ options = _newNotificationParam[0];
168
+ body = _newNotificationParam[1];
169
+ } else {
170
+ var _ref6 = args;
158
171
 
159
172
  var _ref7 = _slicedToArray(_ref6, 2);
160
173
 
161
174
  options = _ref7[0];
162
175
  body = _ref7[1];
163
- } else {
164
- var _ref8 = args;
165
-
166
- var _ref9 = _slicedToArray(_ref8, 2);
167
-
168
- options = _ref9[0];
169
- body = _ref9[1];
170
176
  }
171
177
 
172
178
  var notificationID = (0, _uniqueId.default)("notification-".concat(options.id, "-"));
@@ -174,6 +180,9 @@ function NotificationsProvider(_ref) {
174
180
  setTimeout(function () {
175
181
  transition(notificationID);
176
182
  }, duration);
183
+ var autoDismiss = options.duration && setTimeout(function () {
184
+ transition(notificationID, _types.NotificationState.COLLAPSING);
185
+ }, duration + options.duration);
177
186
 
178
187
  var closeNotificationAfter = function closeNotificationAfter(callback) {
179
188
  return function (event) {
@@ -185,9 +194,13 @@ function NotificationsProvider(_ref) {
185
194
  };
186
195
  };
187
196
 
188
- var actions = options.actions && options.actions.map(function (_ref10) {
189
- var onClick = _ref10.onClick,
190
- rest = _objectWithoutProperties(_ref10, ["onClick"]);
197
+ var suspendAutoDismiss = function suspendAutoDismiss() {
198
+ clearTimeout(autoDismiss);
199
+ };
200
+
201
+ var actions = options.actions && options.actions.map(function (_ref8) {
202
+ var onClick = _ref8.onClick,
203
+ rest = _objectWithoutProperties(_ref8, ["onClick"]);
191
204
 
192
205
  return _objectSpread({
193
206
  onClick: closeNotificationAfter(onClick)
@@ -196,7 +209,9 @@ function NotificationsProvider(_ref) {
196
209
  return [[_objectSpread({}, options, {
197
210
  actions: actions,
198
211
  id: options.id || notificationID,
199
- onClose: closeNotificationAfter(options.onClose)
212
+ onClose: options.onClose && closeNotificationAfter(options.onClose),
213
+ onFocus: suspendAutoDismiss,
214
+ onHover: suspendAutoDismiss
200
215
  }), body, {
201
216
  notificationID: notificationID,
202
217
  state: _types.NotificationState.ENTERING
@@ -204,9 +219,13 @@ function NotificationsProvider(_ref) {
204
219
  });
205
220
  }, // eslint-disable-next-line react-hooks/exhaustive-deps
206
221
  [setNotifications]);
207
- return _react.default.createElement(NotificationsContext.Provider, {
222
+ var isDismissingAll = React.useMemo(function () {
223
+ return !(0, _isEmpty.default)(notifications) && notifications[0][2].state === _types.NotificationState.COLLAPSING_ALL;
224
+ }, [notifications]);
225
+ return React.createElement(NotificationsContext.Provider, {
208
226
  value: {
209
227
  dismissAll: dismissAll,
228
+ isDismissingAll: isDismissingAll,
210
229
  notifications: notifications,
211
230
  notify: notify
212
231
  }