@decisiv/ui-components 2.0.1-alpha.19 → 2.0.1-alpha.191

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 (539) 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/HelpMessage.d.ts +1 -1
  24. package/lib/atoms/InputField/HelpMessage.d.ts.map +1 -1
  25. package/lib/atoms/InputField/HelpMessage.js +2 -1
  26. package/lib/atoms/InputField/InputLabel.d.ts +1 -0
  27. package/lib/atoms/InputField/InputLabel.d.ts.map +1 -1
  28. package/lib/atoms/InputField/InputLabel.js +2 -1
  29. package/lib/atoms/InputField/index.d.ts +8 -1
  30. package/lib/atoms/InputField/index.d.ts.map +1 -1
  31. package/lib/atoms/InputField/index.js +27 -9
  32. package/lib/atoms/InputField/index.test.js +91 -0
  33. package/lib/atoms/InputField/schema.d.ts.map +1 -1
  34. package/lib/atoms/InputField/schema.js +3 -2
  35. package/lib/atoms/OptionsList/Category/index.d.ts +4 -0
  36. package/lib/atoms/OptionsList/Category/index.d.ts.map +1 -0
  37. package/lib/atoms/OptionsList/{Category.js → Category/index.js} +13 -21
  38. package/lib/atoms/OptionsList/Category/styles.d.ts +6 -0
  39. package/lib/atoms/OptionsList/Category/styles.d.ts.map +1 -0
  40. package/lib/atoms/OptionsList/Category/styles.js +36 -0
  41. package/lib/atoms/OptionsList/{Option.d.ts → Option/index.d.ts} +2 -2
  42. package/lib/atoms/OptionsList/Option/index.d.ts.map +1 -0
  43. package/lib/atoms/OptionsList/Option/index.js +169 -0
  44. package/lib/atoms/OptionsList/Option/styles.d.ts +17 -0
  45. package/lib/atoms/OptionsList/Option/styles.d.ts.map +1 -0
  46. package/lib/atoms/OptionsList/Option/styles.js +83 -0
  47. package/lib/atoms/OptionsList/index.d.ts.map +1 -1
  48. package/lib/atoms/OptionsList/index.js +16 -7
  49. package/lib/atoms/OptionsList/index.test.js +249 -156
  50. package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
  51. package/lib/atoms/OptionsList/schema.js +3 -1
  52. package/lib/atoms/OptionsList/types.d.ts +23 -0
  53. package/lib/atoms/OptionsList/types.d.ts.map +1 -1
  54. package/lib/atoms/OptionsList/types.js +5 -1
  55. package/lib/atoms/RequiredIcon.d.ts +9 -0
  56. package/lib/atoms/RequiredIcon.d.ts.map +1 -0
  57. package/lib/atoms/{InputField/RequiredIcon.js → RequiredIcon.js} +7 -3
  58. package/lib/components/Accordion/types.js +5 -1
  59. package/lib/components/Accordion/useAccordion/types.js +5 -1
  60. package/lib/components/Alert/Container.d.ts +201 -0
  61. package/lib/components/Alert/Container.d.ts.map +1 -0
  62. package/lib/components/Alert/Container.js +26 -0
  63. package/lib/components/Alert/StyledButton.d.ts +5 -0
  64. package/lib/components/Alert/StyledButton.d.ts.map +1 -0
  65. package/lib/components/Alert/StyledButton.js +23 -0
  66. package/lib/components/Alert/index.d.ts +27 -0
  67. package/lib/components/Alert/index.d.ts.map +1 -0
  68. package/lib/components/Alert/index.js +112 -0
  69. package/lib/components/Alert/index.test.js +79 -0
  70. package/lib/components/Alert/intents.d.ts +13 -0
  71. package/lib/components/Alert/intents.d.ts.map +1 -0
  72. package/lib/components/Alert/intents.js +72 -0
  73. package/lib/components/{Tabs/schema.tab.d.ts → Alert/schema.d.ts} +1 -1
  74. package/lib/components/Alert/schema.d.ts.map +1 -0
  75. package/lib/components/Alert/schema.js +25 -0
  76. package/lib/components/Alert/types.d.ts +36 -0
  77. package/lib/components/Alert/types.d.ts.map +1 -0
  78. package/lib/components/Alert/types.js +32 -0
  79. package/lib/components/Avatar/AvatarContainer.d.ts +1 -13
  80. package/lib/components/Avatar/AvatarContainer.d.ts.map +1 -1
  81. package/lib/components/Avatar/AvatarContainer.js +12 -13
  82. package/lib/components/Avatar/AvatarContent.d.ts +2 -2
  83. package/lib/components/Avatar/AvatarContent.d.ts.map +1 -1
  84. package/lib/components/Avatar/AvatarContent.js +24 -20
  85. package/lib/components/Avatar/index.d.ts.map +1 -1
  86. package/lib/components/Avatar/index.js +39 -5
  87. package/lib/components/Avatar/index.test.js +4 -0
  88. package/lib/components/Avatar/schema.d.ts.map +1 -1
  89. package/lib/components/Avatar/schema.js +3 -1
  90. package/lib/components/Avatar/types.d.ts +15 -2
  91. package/lib/components/Avatar/types.d.ts.map +1 -1
  92. package/lib/components/Avatar/types.js +5 -1
  93. package/lib/components/Badge/constants.d.ts +2 -0
  94. package/lib/components/Badge/constants.d.ts.map +1 -0
  95. package/lib/components/Badge/constants.js +29 -0
  96. package/lib/components/Badge/index.d.ts.map +1 -1
  97. package/lib/components/Badge/index.js +3 -70
  98. package/lib/components/Badge/index.test.js +62 -8
  99. package/lib/components/Badge/schema.d.ts.map +1 -1
  100. package/lib/components/Badge/schema.js +2 -1
  101. package/lib/components/Badge/styles.d.ts +3 -0
  102. package/lib/components/Badge/styles.d.ts.map +1 -0
  103. package/lib/components/Badge/styles.js +96 -0
  104. package/lib/components/Badge/types.d.ts +2 -1
  105. package/lib/components/Badge/types.d.ts.map +1 -1
  106. package/lib/components/Badge/types.js +7 -3
  107. package/lib/components/Breadcrumbs/types.js +5 -1
  108. package/lib/components/Button/StyledButton.d.ts +3 -6
  109. package/lib/components/Button/StyledButton.d.ts.map +1 -1
  110. package/lib/components/Button/StyledButton.js +39 -11
  111. package/lib/components/Button/index.d.ts.map +1 -1
  112. package/lib/components/Button/index.js +51 -12
  113. package/lib/components/Button/index.test.js +43 -8
  114. package/lib/components/Button/schema.d.ts.map +1 -1
  115. package/lib/components/Button/schema.js +4 -1
  116. package/lib/components/Button/types.d.ts +4 -1
  117. package/lib/components/Button/types.d.ts.map +1 -1
  118. package/lib/components/Button/types.js +5 -1
  119. package/lib/components/Checkbox/index.d.ts.map +1 -1
  120. package/lib/components/Checkbox/index.js +3 -1
  121. package/lib/components/Checkbox/schema.d.ts.map +1 -1
  122. package/lib/components/Checkbox/schema.js +2 -0
  123. package/lib/components/CheckboxGroup/index.d.ts +1 -1
  124. package/lib/components/Combobox/Target.d.ts.map +1 -1
  125. package/lib/components/Combobox/Target.js +52 -14
  126. package/lib/components/Combobox/index.d.ts.map +1 -1
  127. package/lib/components/Combobox/index.js +196 -66
  128. package/lib/components/Combobox/index.test.js +369 -146
  129. package/lib/components/Combobox/schema.d.ts.map +1 -1
  130. package/lib/components/Combobox/schema.js +10 -2
  131. package/lib/components/Combobox/types.d.ts +12 -3
  132. package/lib/components/Combobox/types.d.ts.map +1 -1
  133. package/lib/components/Combobox/types.js +5 -1
  134. package/lib/components/Drawer/index.d.ts +22 -0
  135. package/lib/components/Drawer/index.d.ts.map +1 -0
  136. package/lib/components/Drawer/index.js +105 -0
  137. package/lib/components/Drawer/index.test.js +122 -0
  138. package/lib/components/Drawer/schema.d.ts +3 -0
  139. package/lib/components/Drawer/schema.d.ts.map +1 -0
  140. package/lib/components/Drawer/schema.js +32 -0
  141. package/lib/components/Drawer/styles.d.ts +11 -0
  142. package/lib/components/Drawer/styles.d.ts.map +1 -0
  143. package/lib/components/Drawer/styles.js +79 -0
  144. package/lib/components/DropdownList/index.d.ts +1 -0
  145. package/lib/components/DropdownList/index.d.ts.map +1 -1
  146. package/lib/components/DropdownList/index.js +70 -22
  147. package/lib/components/DropdownList/propTypes.d.ts +4 -0
  148. package/lib/components/DropdownList/propTypes.d.ts.map +1 -0
  149. package/lib/components/DropdownList/propTypes.js +42 -0
  150. package/lib/components/DropdownList/schema.d.ts.map +1 -1
  151. package/lib/components/DropdownList/schema.js +2 -1
  152. package/lib/components/DropdownList/types.d.ts +2 -0
  153. package/lib/components/DropdownList/types.d.ts.map +1 -1
  154. package/lib/components/Filter/ActionFilter/index.d.ts +5 -0
  155. package/lib/components/Filter/ActionFilter/index.d.ts.map +1 -0
  156. package/lib/components/Filter/ActionFilter/index.js +43 -0
  157. package/lib/components/Filter/IconWrapper/index.d.ts +197 -0
  158. package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -0
  159. package/lib/components/Filter/IconWrapper/index.js +35 -0
  160. package/lib/components/Filter/SimplePrimary/index.d.ts +5 -0
  161. package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -0
  162. package/lib/components/Filter/SimplePrimary/index.js +46 -0
  163. package/lib/components/Filter/SimplePrimary/index.test.js +34 -0
  164. package/lib/components/Filter/StyledFilter.d.ts +4 -0
  165. package/lib/components/Filter/StyledFilter.d.ts.map +1 -0
  166. package/lib/components/Filter/StyledFilter.js +66 -0
  167. package/lib/components/Filter/StyledLabel/index.d.ts +8 -0
  168. package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -0
  169. package/lib/components/Filter/StyledLabel/index.js +38 -0
  170. package/lib/components/Filter/index.d.ts +6 -0
  171. package/lib/components/Filter/index.d.ts.map +1 -0
  172. package/lib/components/Filter/index.js +107 -0
  173. package/lib/components/Filter/index.test.js +70 -0
  174. package/lib/components/Filter/kind.d.ts +7 -0
  175. package/lib/components/Filter/kind.d.ts.map +1 -0
  176. package/lib/components/Filter/kind.js +43 -0
  177. package/lib/components/Filter/schema.d.ts +9 -0
  178. package/lib/components/Filter/schema.d.ts.map +1 -0
  179. package/lib/components/Filter/schema.js +37 -0
  180. package/lib/components/Filter/types.d.ts +31 -0
  181. package/lib/components/Filter/types.d.ts.map +1 -0
  182. package/lib/components/Filter/types.js +5 -0
  183. package/lib/components/JumpTo/JumpToMenu.d.ts +2 -2
  184. package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
  185. package/lib/components/JumpTo/JumpToMenu.js +3 -3
  186. package/lib/components/JumpTo/types.js +5 -1
  187. package/lib/components/JumpTo/utils.d.ts.map +1 -1
  188. package/lib/components/JumpTo/utils.js +3 -7
  189. package/lib/components/LeftNav/Item/ClickArea.js +1 -1
  190. package/lib/components/LeftNav/Item/ItemWrapper.d.ts.map +1 -1
  191. package/lib/components/LeftNav/Item/ItemWrapper.js +3 -3
  192. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts +7 -0
  193. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts.map +1 -0
  194. package/lib/components/LeftNav/Item/MenuItemWrapper.js +20 -0
  195. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.d.ts.map +1 -1
  196. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.js +7 -5
  197. package/lib/components/LeftNav/Item/NavExpandedItem/index.d.ts.map +1 -1
  198. package/lib/components/LeftNav/Item/NavExpandedItem/index.js +24 -13
  199. package/lib/components/LeftNav/Item/types.d.ts +1 -1
  200. package/lib/components/LeftNav/Item/types.d.ts.map +1 -1
  201. package/lib/components/LeftNav/Item/types.js +5 -1
  202. package/lib/components/LeftNav/index.test.js +13 -3
  203. package/lib/components/LeftNav/schema.d.ts.map +1 -1
  204. package/lib/components/LeftNav/schema.js +2 -0
  205. package/lib/components/LeftNav/types.d.ts +1 -0
  206. package/lib/components/LeftNav/types.d.ts.map +1 -1
  207. package/lib/components/LeftNav/types.js +5 -1
  208. package/lib/components/Link/DisabledLink.d.ts +7 -0
  209. package/lib/components/Link/DisabledLink.d.ts.map +1 -0
  210. package/lib/components/Link/DisabledLink.js +46 -0
  211. package/lib/components/Link/Link.d.ts +4 -0
  212. package/lib/components/Link/Link.d.ts.map +1 -0
  213. package/lib/components/Link/Link.js +67 -0
  214. package/lib/components/Link/index.d.ts +4 -23
  215. package/lib/components/Link/index.d.ts.map +1 -1
  216. package/lib/components/Link/index.js +20 -158
  217. package/lib/components/Link/index.test.js +63 -42
  218. package/lib/components/Link/schema.d.ts.map +1 -1
  219. package/lib/components/Link/schema.js +2 -1
  220. package/lib/components/Link/styles.d.ts +20 -0
  221. package/lib/components/Link/styles.d.ts.map +1 -0
  222. package/lib/components/Link/styles.js +131 -0
  223. package/lib/components/Link/types.d.ts +28 -0
  224. package/lib/components/Link/types.d.ts.map +1 -0
  225. package/lib/components/Link/types.js +5 -0
  226. package/lib/components/Loading/Loading.d.ts +12 -0
  227. package/lib/components/Loading/Loading.d.ts.map +1 -0
  228. package/lib/components/Loading/Loading.js +70 -0
  229. package/lib/components/Loading/index.d.ts +4 -0
  230. package/lib/components/Loading/index.d.ts.map +1 -0
  231. package/lib/components/Loading/index.js +33 -0
  232. package/lib/components/Loading/index.test.js +55 -0
  233. package/lib/components/Loading/schema.d.ts +4 -0
  234. package/lib/components/Loading/schema.d.ts.map +1 -0
  235. package/lib/components/Loading/schema.js +31 -0
  236. package/lib/components/Loading/styles.d.ts +211 -0
  237. package/lib/components/Loading/styles.d.ts.map +1 -0
  238. package/lib/components/Loading/styles.js +77 -0
  239. package/lib/components/Loading/types.d.ts +10 -0
  240. package/lib/components/Loading/types.d.ts.map +1 -0
  241. package/lib/components/Loading/types.js +5 -0
  242. package/lib/components/Menu/types.js +5 -1
  243. package/lib/components/Modal/Manager.d.ts +6 -0
  244. package/lib/components/Modal/Manager.d.ts.map +1 -0
  245. package/lib/components/Modal/Manager.js +53 -0
  246. package/lib/components/Modal/ResponsiveModalWrapper.d.ts +12 -0
  247. package/lib/components/Modal/ResponsiveModalWrapper.d.ts.map +1 -0
  248. package/lib/components/Modal/ResponsiveModalWrapper.js +79 -0
  249. package/lib/components/Modal/components.d.ts +199 -3
  250. package/lib/components/Modal/components.d.ts.map +1 -1
  251. package/lib/components/Modal/components.js +16 -24
  252. package/lib/components/Modal/index.d.ts +8 -4
  253. package/lib/components/Modal/index.d.ts.map +1 -1
  254. package/lib/components/Modal/index.js +44 -91
  255. package/lib/components/Modal/types.js +5 -1
  256. package/lib/components/Notifications/Notification/components.d.ts +3 -3
  257. package/lib/components/Notifications/Notification/components.d.ts.map +1 -1
  258. package/lib/components/Notifications/Notification/components.js +12 -6
  259. package/lib/components/Notifications/Notification/index.d.ts +3 -6
  260. package/lib/components/Notifications/Notification/index.d.ts.map +1 -1
  261. package/lib/components/Notifications/Notification/index.js +19 -12
  262. package/lib/components/Notifications/Notification/index.test.js +38 -19
  263. package/lib/components/Notifications/NotificationsPanel/index.d.ts +2 -1
  264. package/lib/components/Notifications/NotificationsPanel/index.d.ts.map +1 -1
  265. package/lib/components/Notifications/NotificationsPanel/index.js +41 -22
  266. package/lib/components/Notifications/NotificationsPanel/schema.js +1 -1
  267. package/lib/components/Notifications/Notifier.test.js +79 -10
  268. package/lib/components/Notifications/constants.d.ts +2 -0
  269. package/lib/components/Notifications/constants.d.ts.map +1 -0
  270. package/lib/components/Notifications/constants.js +16 -0
  271. package/lib/components/Notifications/schema.d.ts.map +1 -1
  272. package/lib/components/Notifications/schema.js +2 -1
  273. package/lib/components/Notifications/useNotifications.d.ts +1 -0
  274. package/lib/components/Notifications/useNotifications.d.ts.map +1 -1
  275. package/lib/components/Notifications/useNotifications.test.js +7 -4
  276. package/lib/components/Pagination/Pagination.d.ts +1 -1
  277. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  278. package/lib/components/Pagination/Pagination.js +1 -0
  279. package/lib/components/Pagination/Pagination.test.js +9 -0
  280. package/lib/components/Pagination/types.js +5 -1
  281. package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
  282. package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
  283. package/lib/components/PasswordField/IconWrapper.js +32 -0
  284. package/lib/components/PasswordField/Input.d.ts +6 -0
  285. package/lib/components/PasswordField/Input.d.ts.map +1 -0
  286. package/lib/components/PasswordField/Input.js +28 -0
  287. package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
  288. package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
  289. package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
  290. package/lib/components/PasswordField/index.d.ts +14 -0
  291. package/lib/components/PasswordField/index.d.ts.map +1 -0
  292. package/lib/components/PasswordField/index.js +113 -0
  293. package/lib/components/PasswordField/index.test.js +217 -0
  294. package/lib/components/PasswordField/schema.d.ts +3 -0
  295. package/lib/components/PasswordField/schema.d.ts.map +1 -0
  296. package/lib/components/PasswordField/schema.js +27 -0
  297. package/lib/components/Popover/Arrow.d.ts +2 -2
  298. package/lib/components/Popover/index.d.ts.map +1 -1
  299. package/lib/components/Popover/index.js +6 -3
  300. package/lib/components/Popover/schema.d.ts.map +1 -1
  301. package/lib/components/Popover/schema.js +27 -20
  302. package/lib/components/Popover/types.d.ts +1 -0
  303. package/lib/components/Popover/types.d.ts.map +1 -1
  304. package/lib/components/Popover/utils.d.ts +1 -1
  305. package/lib/components/SearchInput/index.d.ts +11 -0
  306. package/lib/components/SearchInput/index.d.ts.map +1 -0
  307. package/lib/components/SearchInput/index.js +174 -0
  308. package/lib/components/SearchInput/index.test.js +660 -0
  309. package/lib/components/SearchInput/schema.d.ts +3 -0
  310. package/lib/components/SearchInput/schema.d.ts.map +1 -0
  311. package/lib/components/SearchInput/schema.js +36 -0
  312. package/lib/components/SearchInput/styles.d.ts +1176 -0
  313. package/lib/components/SearchInput/styles.d.ts.map +1 -0
  314. package/lib/components/SearchInput/styles.js +97 -0
  315. package/lib/components/SearchInput/types.d.ts +37 -0
  316. package/lib/components/SearchInput/types.d.ts.map +1 -0
  317. package/lib/components/SearchInput/types.js +5 -0
  318. package/lib/components/Select/Target.d.ts.map +1 -1
  319. package/lib/components/Select/Target.js +6 -2
  320. package/lib/components/Select/index.d.ts.map +1 -1
  321. package/lib/components/Select/index.js +26 -3
  322. package/lib/components/Select/index.test.js +106 -23
  323. package/lib/components/Select/schema.d.ts.map +1 -1
  324. package/lib/components/Select/schema.js +5 -0
  325. package/lib/components/Select/types.d.ts +6 -3
  326. package/lib/components/Select/types.d.ts.map +1 -1
  327. package/lib/components/Select/types.js +5 -1
  328. package/lib/components/SelectDate/Target.d.ts.map +1 -1
  329. package/lib/components/SelectDate/Target.js +6 -2
  330. package/lib/components/SelectDate/index.d.ts.map +1 -1
  331. package/lib/components/SelectDate/index.js +32 -3
  332. package/lib/components/SelectDate/index.test.js +108 -51
  333. package/lib/components/SelectDate/schema.d.ts.map +1 -1
  334. package/lib/components/SelectDate/schema.js +3 -0
  335. package/lib/components/SelectDate/types.d.ts +3 -0
  336. package/lib/components/SelectDate/types.d.ts.map +1 -1
  337. package/lib/components/SelectDate/types.js +5 -1
  338. package/lib/components/SelectDateRange/index.d.ts.map +1 -1
  339. package/lib/components/SelectDateRange/index.js +31 -2
  340. package/lib/components/SelectDateRange/index.test.js +115 -58
  341. package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
  342. package/lib/components/SelectDateRange/schema.js +3 -0
  343. package/lib/components/SelectDateRange/types.js +5 -1
  344. package/lib/components/StepTracker/index.d.ts +11 -0
  345. package/lib/components/StepTracker/index.d.ts.map +1 -0
  346. package/lib/components/StepTracker/index.js +56 -0
  347. package/lib/components/StepTracker/index.test.js +89 -0
  348. package/lib/components/StepTracker/schema.d.ts +3 -0
  349. package/lib/components/StepTracker/schema.d.ts.map +1 -0
  350. package/lib/components/StepTracker/schema.js +19 -0
  351. package/lib/components/StepTracker/styles.d.ts +605 -0
  352. package/lib/components/StepTracker/styles.d.ts.map +1 -0
  353. package/lib/components/StepTracker/styles.js +114 -0
  354. package/lib/components/Table/Body.d.ts.map +1 -1
  355. package/lib/components/Table/Body.js +28 -17
  356. package/lib/components/Table/Container.d.ts.map +1 -1
  357. package/lib/components/Table/Container.js +6 -1
  358. package/lib/components/Table/DataRow.d.ts.map +1 -1
  359. package/lib/components/Table/DataRow.js +26 -18
  360. package/lib/components/Table/Head.d.ts +1 -1
  361. package/lib/components/Table/Head.d.ts.map +1 -1
  362. package/lib/components/Table/Head.js +10 -5
  363. package/lib/components/Table/HeaderCell/index.d.ts.map +1 -1
  364. package/lib/components/Table/HeaderCell/index.js +19 -6
  365. package/lib/components/Table/HeaderCell/types.d.ts +6 -1
  366. package/lib/components/Table/HeaderCell/types.d.ts.map +1 -1
  367. package/lib/components/Table/HeaderCell/types.js +5 -1
  368. package/lib/components/Table/Provider.d.ts +5 -5
  369. package/lib/components/Table/Provider.d.ts.map +1 -1
  370. package/lib/components/Table/Provider.js +10 -11
  371. package/lib/components/Table/index.d.ts.map +1 -1
  372. package/lib/components/Table/index.js +110 -20
  373. package/lib/components/Table/index.test.js +80 -33
  374. package/lib/components/Table/schema.columns.d.ts.map +1 -1
  375. package/lib/components/Table/schema.columns.js +6 -4
  376. package/lib/components/Table/schema.d.ts.map +1 -1
  377. package/lib/components/Table/schema.js +7 -6
  378. package/lib/components/Table/types.d.ts +19 -4
  379. package/lib/components/Table/types.d.ts.map +1 -1
  380. package/lib/components/Table/utils.d.ts +2 -8
  381. package/lib/components/Table/utils.d.ts.map +1 -1
  382. package/lib/components/Table/utils.js +21 -20
  383. package/lib/components/Tabs/Tab/index.d.ts +13 -0
  384. package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
  385. package/lib/components/Tabs/Tab/index.js +94 -0
  386. package/lib/components/Tabs/Tab/schema.d.ts +3 -0
  387. package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
  388. package/lib/components/Tabs/Tab/styles.d.ts +7 -0
  389. package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
  390. package/lib/components/Tabs/Tab/styles.js +37 -0
  391. package/lib/components/Tabs/context.d.ts +2 -2
  392. package/lib/components/Tabs/context.d.ts.map +1 -1
  393. package/lib/components/Tabs/context.js +1 -1
  394. package/lib/components/Tabs/index.d.ts +17 -6
  395. package/lib/components/Tabs/index.d.ts.map +1 -1
  396. package/lib/components/Tabs/index.js +104 -163
  397. package/lib/components/Tabs/index.test.js +54 -2
  398. package/lib/components/Tabs/styles.d.ts +4 -0
  399. package/lib/components/Tabs/styles.d.ts.map +1 -0
  400. package/lib/components/Tabs/styles.js +35 -0
  401. package/lib/components/Tag/Action.d.ts +4 -0
  402. package/lib/components/Tag/Action.d.ts.map +1 -0
  403. package/lib/components/Tag/Action.js +39 -0
  404. package/lib/components/Tag/constants.d.ts +2 -2
  405. package/lib/components/Tag/constants.d.ts.map +1 -1
  406. package/lib/components/Tag/constants.js +4 -4
  407. package/lib/components/Tag/index.d.ts +1 -3
  408. package/lib/components/Tag/index.d.ts.map +1 -1
  409. package/lib/components/Tag/index.js +40 -97
  410. package/lib/components/Tag/index.test.js +239 -2
  411. package/lib/components/Tag/propTypes.d.ts +3 -0
  412. package/lib/components/Tag/propTypes.d.ts.map +1 -1
  413. package/lib/components/Tag/propTypes.js +5 -2
  414. package/lib/components/Tag/schema.d.ts.map +1 -1
  415. package/lib/components/Tag/schema.js +2 -0
  416. package/lib/components/Tag/styles.d.ts +13 -0
  417. package/lib/components/Tag/styles.d.ts.map +1 -0
  418. package/lib/components/Tag/styles.js +133 -0
  419. package/lib/components/Tag/types.d.ts +9 -10
  420. package/lib/components/Tag/types.d.ts.map +1 -1
  421. package/lib/components/Tag/types.js +5 -1
  422. package/lib/components/TagInput/index.d.ts +10 -0
  423. package/lib/components/TagInput/index.d.ts.map +1 -0
  424. package/lib/components/TagInput/index.js +217 -0
  425. package/lib/components/TagInput/index.test.js +1001 -0
  426. package/lib/components/TagInput/schema.d.ts +3 -0
  427. package/lib/components/TagInput/schema.d.ts.map +1 -0
  428. package/lib/components/TagInput/schema.js +30 -0
  429. package/lib/components/TagInput/styles.d.ts +10 -0
  430. package/lib/components/TagInput/styles.d.ts.map +1 -0
  431. package/lib/components/TagInput/styles.js +52 -0
  432. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  433. package/lib/components/TextArea/TextArea.js +1 -1
  434. package/lib/components/TextArea/index.js +1 -0
  435. package/lib/components/TextArea/index.test.js +5 -0
  436. package/lib/components/TextField/Input.js +1 -1
  437. package/lib/components/TextField/index.test.js +5 -0
  438. package/lib/components/Toggle/Fieldset.d.ts.map +1 -1
  439. package/lib/components/Toggle/Fieldset.js +20 -11
  440. package/lib/components/Toggle/Option.d.ts.map +1 -1
  441. package/lib/components/Toggle/Option.js +1 -1
  442. package/lib/components/Toggle/Slider.d.ts +1 -3
  443. package/lib/components/Toggle/Slider.d.ts.map +1 -1
  444. package/lib/components/Toggle/Slider.js +29 -24
  445. package/lib/components/Toggle/index.d.ts.map +1 -1
  446. package/lib/components/Toggle/index.js +6 -1
  447. package/lib/components/Toggle/index.test.js +39 -10
  448. package/lib/components/Toggle/propTypes.js +1 -1
  449. package/lib/components/Toggle/schema.js +1 -1
  450. package/lib/components/Toggle/types.d.ts +3 -2
  451. package/lib/components/Toggle/types.d.ts.map +1 -1
  452. package/lib/components/Toggle/types.js +5 -1
  453. package/lib/components/ToggleView/ToggleView.d.ts +5 -0
  454. package/lib/components/ToggleView/ToggleView.d.ts.map +1 -0
  455. package/lib/components/ToggleView/ToggleView.js +80 -0
  456. package/lib/components/ToggleView/index.d.ts +4 -0
  457. package/lib/components/ToggleView/index.d.ts.map +1 -0
  458. package/lib/components/ToggleView/index.js +33 -0
  459. package/lib/components/ToggleView/index.test.js +61 -0
  460. package/lib/components/ToggleView/schema.d.ts +3 -0
  461. package/lib/components/ToggleView/schema.d.ts.map +1 -0
  462. package/lib/components/ToggleView/schema.js +24 -0
  463. package/lib/components/ToggleView/styles.d.ts +6 -0
  464. package/lib/components/ToggleView/styles.d.ts.map +1 -0
  465. package/lib/components/ToggleView/styles.js +23 -0
  466. package/lib/components/ToggleView/types.d.ts +23 -0
  467. package/lib/components/ToggleView/types.d.ts.map +1 -0
  468. package/lib/components/ToggleView/types.js +12 -0
  469. package/lib/components/Tooltip/index.d.ts.map +1 -1
  470. package/lib/components/Tooltip/index.js +3 -13
  471. package/lib/components/Tooltip/schema.d.ts +3 -0
  472. package/lib/components/Tooltip/schema.d.ts.map +1 -0
  473. package/lib/components/Tooltip/schema.js +29 -0
  474. package/lib/components/Typography/withColors.d.ts +1 -1
  475. package/lib/components/Typography/withColors.d.ts.map +1 -1
  476. package/lib/components/Typography/withColors.js +1 -1
  477. package/lib/components/Wizard/index.d.ts +24 -0
  478. package/lib/components/Wizard/index.d.ts.map +1 -0
  479. package/lib/components/Wizard/index.js +142 -0
  480. package/lib/components/Wizard/index.test.js +591 -0
  481. package/lib/components/Wizard/schema.d.ts +3 -0
  482. package/lib/components/Wizard/schema.d.ts.map +1 -0
  483. package/lib/components/Wizard/schema.js +37 -0
  484. package/lib/components/Wizard/styles.d.ts +989 -0
  485. package/lib/components/Wizard/styles.d.ts.map +1 -0
  486. package/lib/components/Wizard/styles.js +79 -0
  487. package/lib/components/index.d.ts +11 -1
  488. package/lib/components/index.d.ts.map +1 -1
  489. package/lib/components/index.js +182 -1
  490. package/lib/modifiers/palette.d.ts +36 -0
  491. package/lib/modifiers/palette.d.ts.map +1 -0
  492. package/lib/modifiers/palette.js +88 -0
  493. package/lib/modifiers/spacingSchema.d.ts.map +1 -1
  494. package/lib/modifiers/spacingSchema.js +29 -16
  495. package/lib/providers/ConfigProvider/index.d.ts.map +1 -1
  496. package/lib/providers/ConfigProvider/index.js +5 -1
  497. package/lib/providers/ConfigProvider/utils/context.d.ts +1 -1
  498. package/lib/providers/ConfigProvider/utils/context.d.ts.map +1 -1
  499. package/lib/providers/ConfigProvider/utils/normalizer.d.ts.map +1 -1
  500. package/lib/providers/ConfigProvider/utils/normalizer.js +1 -1
  501. package/lib/providers/ConfigProvider/utils/translations.d.ts +40 -0
  502. package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
  503. package/lib/providers/ConfigProvider/utils/translations.js +40 -0
  504. package/lib/providers/NotificationsProvider/index.d.ts +6 -5
  505. package/lib/providers/NotificationsProvider/index.d.ts.map +1 -1
  506. package/lib/providers/NotificationsProvider/index.js +47 -28
  507. package/lib/providers/NotificationsProvider/types.d.ts +4 -1
  508. package/lib/providers/NotificationsProvider/types.d.ts.map +1 -1
  509. package/lib/utils/commonUIColors.d.ts +350 -2
  510. package/lib/utils/commonUIColors.d.ts.map +1 -1
  511. package/lib/utils/commonUIColors.js +6 -2
  512. package/lib/utils/joinClassnames.d.ts +3 -0
  513. package/lib/utils/joinClassnames.d.ts.map +1 -0
  514. package/lib/utils/joinClassnames.js +26 -0
  515. package/lib/utils/useFirstMount.d.ts +2 -0
  516. package/lib/utils/useFirstMount.d.ts.map +1 -0
  517. package/lib/utils/useFirstMount.js +19 -0
  518. package/lib/utils/useUpdateEffect.d.ts +4 -0
  519. package/lib/utils/useUpdateEffect.d.ts.map +1 -0
  520. package/lib/utils/useUpdateEffect.js +28 -0
  521. package/package.json +2 -2
  522. package/CHANGELOG.md +0 -796
  523. package/lib/atoms/InputField/RequiredIcon.d.ts +0 -4
  524. package/lib/atoms/InputField/RequiredIcon.d.ts.map +0 -1
  525. package/lib/atoms/OptionsList/Category.d.ts +0 -4
  526. package/lib/atoms/OptionsList/Category.d.ts.map +0 -1
  527. package/lib/atoms/OptionsList/Option.d.ts.map +0 -1
  528. package/lib/atoms/OptionsList/Option.js +0 -194
  529. package/lib/components/Tabs/Tab.d.ts +0 -5
  530. package/lib/components/Tabs/Tab.d.ts.map +0 -1
  531. package/lib/components/Tabs/Tab.js +0 -109
  532. package/lib/components/Tabs/schema.tab.d.ts.map +0 -1
  533. package/lib/components/Tabs/types.d.ts +0 -27
  534. package/lib/components/Tabs/types.d.ts.map +0 -1
  535. package/lib/components/Tabs/types.js +0 -1
  536. package/lib/components/Tag/ActionButton.d.ts +0 -5
  537. package/lib/components/Tag/ActionButton.d.ts.map +0 -1
  538. package/lib/components/Tag/ActionButton.js +0 -56
  539. /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
@@ -4,11 +4,206 @@ export declare const Overlay: import("styled-components").StyledComponent<"div",
4
4
  }, never>;
5
5
  export declare const Body: import("styled-components").StyledComponent<"div", any, {
6
6
  size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
7
+ widthSize: "normal" | "extraLarge" | undefined;
7
8
  }, never>;
8
9
  export declare const ScrollYBox: import("styled-components").StyledComponent<"div", any, {
9
10
  size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
10
11
  }, never>;
11
- export declare const Header: import("styled-components").StyledComponent<"div", any, import("../Flex").FlexComponentProps, never>;
12
+ export declare const Header: import("styled-components").StyledComponent<"div", any, Partial<{
13
+ readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
14
+ readonly XS: "XS";
15
+ readonly SM: "SM";
16
+ readonly MD: "MD";
17
+ readonly LG: "LG";
18
+ readonly XL: "XL";
19
+ }> | undefined;
20
+ readonly alignItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
21
+ readonly XS: "XS";
22
+ readonly SM: "SM";
23
+ readonly MD: "MD";
24
+ readonly LG: "LG";
25
+ readonly XL: "XL";
26
+ }> | undefined;
27
+ readonly alignSelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
28
+ readonly XS: "XS";
29
+ readonly SM: "SM";
30
+ readonly MD: "MD";
31
+ readonly LG: "LG";
32
+ readonly XL: "XL";
33
+ }> | undefined;
34
+ readonly flex?: string | number | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("react").ReactText, {
35
+ readonly XS: "XS";
36
+ readonly SM: "SM";
37
+ readonly MD: "MD";
38
+ readonly LG: "LG";
39
+ readonly XL: "XL";
40
+ }> | undefined;
41
+ readonly flexBasis?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
42
+ readonly XS: "XS";
43
+ readonly SM: "SM";
44
+ readonly MD: "MD";
45
+ readonly LG: "LG";
46
+ readonly XL: "XL";
47
+ }> | undefined;
48
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
49
+ readonly XS: "XS";
50
+ readonly SM: "SM";
51
+ readonly MD: "MD";
52
+ readonly LG: "LG";
53
+ readonly XL: "XL";
54
+ }> | undefined;
55
+ readonly flexGrow?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
56
+ readonly XS: "XS";
57
+ readonly SM: "SM";
58
+ readonly MD: "MD";
59
+ readonly LG: "LG";
60
+ readonly XL: "XL";
61
+ }> | undefined;
62
+ readonly flexShrink?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
63
+ readonly XS: "XS";
64
+ readonly SM: "SM";
65
+ readonly MD: "MD";
66
+ readonly LG: "LG";
67
+ readonly XL: "XL";
68
+ }> | undefined;
69
+ readonly flexWrap?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexWrapProperty, {
70
+ readonly XS: "XS";
71
+ readonly SM: "SM";
72
+ readonly MD: "MD";
73
+ readonly LG: "LG";
74
+ readonly XL: "XL";
75
+ }> | undefined;
76
+ readonly justifyContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
77
+ readonly XS: "XS";
78
+ readonly SM: "SM";
79
+ readonly MD: "MD";
80
+ readonly LG: "LG";
81
+ readonly XL: "XL";
82
+ }> | undefined;
83
+ readonly justifyItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
84
+ readonly XS: "XS";
85
+ readonly SM: "SM";
86
+ readonly MD: "MD";
87
+ readonly LG: "LG";
88
+ readonly XL: "XL";
89
+ }> | undefined;
90
+ readonly justifySelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
91
+ readonly XS: "XS";
92
+ readonly SM: "SM";
93
+ readonly MD: "MD";
94
+ readonly LG: "LG";
95
+ readonly XL: "XL";
96
+ }> | undefined;
97
+ readonly order?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
98
+ readonly XS: "XS";
99
+ readonly SM: "SM";
100
+ readonly MD: "MD";
101
+ readonly LG: "LG";
102
+ readonly XL: "XL";
103
+ }> | undefined;
104
+ readonly size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
105
+ }> & Partial<{
106
+ readonly margin: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
107
+ readonly XS: "XS";
108
+ readonly SM: "SM";
109
+ readonly MD: "MD";
110
+ readonly LG: "LG";
111
+ readonly XL: "XL";
112
+ }>;
113
+ readonly marginBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
114
+ readonly XS: "XS";
115
+ readonly SM: "SM";
116
+ readonly MD: "MD";
117
+ readonly LG: "LG";
118
+ readonly XL: "XL";
119
+ }>;
120
+ readonly marginLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
121
+ readonly XS: "XS";
122
+ readonly SM: "SM";
123
+ readonly MD: "MD";
124
+ readonly LG: "LG";
125
+ readonly XL: "XL";
126
+ }>;
127
+ readonly marginRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
128
+ readonly XS: "XS";
129
+ readonly SM: "SM";
130
+ readonly MD: "MD";
131
+ readonly LG: "LG";
132
+ readonly XL: "XL";
133
+ }>;
134
+ readonly marginTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
135
+ readonly XS: "XS";
136
+ readonly SM: "SM";
137
+ readonly MD: "MD";
138
+ readonly LG: "LG";
139
+ readonly XL: "XL";
140
+ }>;
141
+ readonly marginX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
142
+ readonly XS: "XS";
143
+ readonly SM: "SM";
144
+ readonly MD: "MD";
145
+ readonly LG: "LG";
146
+ readonly XL: "XL";
147
+ }>;
148
+ readonly marginY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
149
+ readonly XS: "XS";
150
+ readonly SM: "SM";
151
+ readonly MD: "MD";
152
+ readonly LG: "LG";
153
+ readonly XL: "XL";
154
+ }>;
155
+ readonly padding: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
156
+ readonly XS: "XS";
157
+ readonly SM: "SM";
158
+ readonly MD: "MD";
159
+ readonly LG: "LG";
160
+ readonly XL: "XL";
161
+ }>;
162
+ readonly paddingBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
163
+ readonly XS: "XS";
164
+ readonly SM: "SM";
165
+ readonly MD: "MD";
166
+ readonly LG: "LG";
167
+ readonly XL: "XL";
168
+ }>;
169
+ readonly paddingLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
170
+ readonly XS: "XS";
171
+ readonly SM: "SM";
172
+ readonly MD: "MD";
173
+ readonly LG: "LG";
174
+ readonly XL: "XL";
175
+ }>;
176
+ readonly paddingRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
177
+ readonly XS: "XS";
178
+ readonly SM: "SM";
179
+ readonly MD: "MD";
180
+ readonly LG: "LG";
181
+ readonly XL: "XL";
182
+ }>;
183
+ readonly paddingTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
184
+ readonly XS: "XS";
185
+ readonly SM: "SM";
186
+ readonly MD: "MD";
187
+ readonly LG: "LG";
188
+ readonly XL: "XL";
189
+ }>;
190
+ readonly paddingX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
191
+ readonly XS: "XS";
192
+ readonly SM: "SM";
193
+ readonly MD: "MD";
194
+ readonly LG: "LG";
195
+ readonly XL: "XL";
196
+ }>;
197
+ readonly paddingY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
198
+ readonly XS: "XS";
199
+ readonly SM: "SM";
200
+ readonly MD: "MD";
201
+ readonly LG: "LG";
202
+ readonly XL: "XL";
203
+ }>;
204
+ }> & {
205
+ flexDirection: string;
206
+ }, "flexDirection">;
12
207
  export declare const CloseButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
13
208
  export declare const Content: import("styled-components").StyledComponent<"div", any, Partial<{
14
209
  readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
@@ -46,7 +241,7 @@ export declare const Content: import("styled-components").StyledComponent<"div",
46
241
  readonly LG: "LG";
47
242
  readonly XL: "XL";
48
243
  }> | undefined;
49
- readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
244
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
50
245
  readonly XS: "XS";
51
246
  readonly SM: "SM";
52
247
  readonly MD: "MD";
@@ -241,7 +436,7 @@ export declare const Footer: import("styled-components").StyledComponent<"div",
241
436
  readonly LG: "LG";
242
437
  readonly XL: "XL";
243
438
  }> | undefined;
244
- readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
439
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
245
440
  readonly XS: "XS";
246
441
  readonly SM: "SM";
247
442
  readonly MD: "MD";
@@ -400,4 +595,5 @@ export declare const Footer: import("styled-components").StyledComponent<"div",
400
595
  }> & {
401
596
  hasIcon?: boolean | undefined;
402
597
  }, never>;
598
+ export declare const ActionWrapper: import("styled-components").StyledComponent<"div", any, import("../Flex").FlexComponentProps, never>;
403
599
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/components.tsx"],"names":[],"mappings":";AAwCA,eAAO,MAAM,OAAO;;SASnB,CAAC;AAEF,eAAO,MAAM,IAAI;;SA6BhB,CAAC;AAEF,eAAO,MAAM,UAAU;;SAetB,CAAC;AAEF,eAAO,MAAM,MAAM,sGAAiB,CAAC;AAErC,eAAO,MAAM,oBAAoB,oEAIhC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAOnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAoBlB,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/components.tsx"],"names":[],"mappings":";AAaA,eAAO,MAAM,OAAO;;SASnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;SAuChB,CAAC;AAEF,eAAO,MAAM,UAAU;;SAgBtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAoD,CAAC;AAExE,eAAO,MAAM,oBAAoB,oEAIhC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAoBlB,CAAC;AAEF,eAAO,MAAM,aAAa,sGAkBzB,CAAC"}
@@ -3,10 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Footer = exports.Content = exports.CloseButtonContainer = exports.Header = exports.ScrollYBox = exports.Body = exports.Overlay = void 0;
6
+ exports.ActionWrapper = exports.Footer = exports.Content = exports.CloseButtonContainer = exports.Header = exports.ScrollYBox = exports.Body = exports.Overlay = void 0;
7
7
 
8
8
  var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
9
9
 
10
+ var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
11
+
10
12
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
13
 
12
14
  var _breakpointObserver = require("@decisiv/breakpoint-observer");
@@ -23,23 +25,6 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
23
25
 
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
27
 
26
- function withIcon() {
27
- return (0, _styledComponents.css)(["", ";"], (0, _dynamicModifiers.applyDynamicModifiers)('hasIcon', function (_ref) {
28
- var hasIcon = _ref.hasIcon,
29
- size = _ref.size;
30
-
31
- if (hasIcon) {
32
- if (size === _breakpointObserver.sizes.XS) {
33
- return (0, _styledComponents.css)(["padding-left:", "px;"], _designTokens.spacing.base * 2 + 42);
34
- }
35
-
36
- return (0, _styledComponents.css)(["padding-left:", "px;"], _designTokens.spacing.base * 3 + 42);
37
- }
38
-
39
- return '';
40
- }));
41
- }
42
-
43
28
  var Overlay = _styledComponents.default.div.withConfig({
44
29
  displayName: "components__Overlay",
45
30
  componentId: "zcog99-0"
@@ -50,17 +35,19 @@ exports.Overlay = Overlay;
50
35
  var Body = _styledComponents.default.div.withConfig({
51
36
  displayName: "components__Body",
52
37
  componentId: "zcog99-1"
53
- })(["background:", ";border-radius:2px;box-shadow:0 1px 4px ", ";margin:40px auto;max-height:calc(100% - 80px);max-width:650px;overflow:hidden;padding-bottom:75px;position:relative;width:100%;", ";"], (0, _toColorString.default)(_designTokens.color.base.snowWhite), (0, _toColorString.default)(_designTokens.color.shadow.light.default), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["border-radius:0;bottom:0;left:0;margin:0;max-height:100%;overflow:hidden;position:fixed;right:0;top:0;"])));
38
+ })(["background:", ";border-radius:2px;box-shadow:0 1px 4px ", ";margin:40px auto;max-height:calc(100% - 80px);max-width:650px;overflow:hidden;padding-bottom:75px;position:relative;width:100%;", ";", ""], (0, _toColorString.default)(_designTokens.color.base.snowWhite), (0, _toColorString.default)(_designTokens.color.shadow.light.default), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["border-radius:0;bottom:0;left:0;margin:0;max-height:100%;overflow:hidden;position:fixed;right:0;top:0;padding-bottom:0;"])), (0, _styleModifiers.when)('widthSize', 'extraLarge', (0, _styledComponents.css)(["max-width:", ";"], (0, _rem.default)(_designTokens.spacing.base * 90))));
54
39
 
55
40
  exports.Body = Body;
56
41
 
57
42
  var ScrollYBox = _styledComponents.default.div.withConfig({
58
43
  displayName: "components__ScrollYBox",
59
44
  componentId: "zcog99-2"
60
- })(["overflow-y:auto;position:relative;height:100%;max-height:calc(100vh - 150px);", ";"], (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["max-height:calc(100vh - 70px);"])));
45
+ })(["width:100%;overflow-y:auto;position:relative;height:100%;max-height:calc(100vh - 150px);", ";"], (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["max-height:calc(100vh - 70px);"])));
61
46
 
62
47
  exports.ScrollYBox = ScrollYBox;
63
- var Header = (0, _styledComponents.default)(_Flex.default).withConfig({
48
+ var Header = (0, _styledComponents.default)(_Flex.default).attrs({
49
+ flexDirection: 'column'
50
+ }).withConfig({
64
51
  displayName: "components__Header",
65
52
  componentId: "zcog99-3"
66
53
  })([""]);
@@ -75,10 +62,15 @@ exports.CloseButtonContainer = CloseButtonContainer;
75
62
  var Content = (0, _styledComponents.default)(_Flex.default).withConfig({
76
63
  displayName: "components__Content",
77
64
  componentId: "zcog99-5"
78
- })(["flex:1;flex-direction:row;", ";"], withIcon());
65
+ })(["flex:1;flex-direction:row;"]);
79
66
  exports.Content = Content;
80
67
  var Footer = (0, _styledComponents.default)(_Flex.default).withConfig({
81
68
  displayName: "components__Footer",
82
69
  componentId: "zcog99-6"
83
- })(["background-color:", ";border-radius:0 0 2px 2px;border-top:1px solid ", ";bottom:0;left:0;position:absolute;right:0;", ";", ";"], (0, _toColorString.default)(_designTokens.color.base.fullMoon), (0, _toColorString.default)(_designTokens.color.opacity.charcoal15), withIcon(), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["border-radius:0;"])));
84
- exports.Footer = Footer;
70
+ })(["background-color:", ";border-radius:0 0 2px 2px;border-top:1px solid ", ";bottom:0;left:0;position:absolute;right:0;", ";"], (0, _toColorString.default)(_designTokens.color.base.fullMoon), (0, _toColorString.default)(_designTokens.color.opacity.charcoal15), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["border-radius:0;background-color:", ";flex-direction:column;"], (0, _toColorString.default)(_designTokens.color.base.fullMoon))));
71
+ exports.Footer = Footer;
72
+ var ActionWrapper = (0, _styledComponents.default)(_Flex.default).withConfig({
73
+ displayName: "components__ActionWrapper",
74
+ componentId: "zcog99-7"
75
+ })(["", ";"], (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["width:100%;&:not(:first-child){margin-top:", ";}button{font-size:", ";width:100%;height:", ";}"], (0, _rem.default)(_designTokens.spacing.base * 0.5), (0, _rem.default)(_designTokens.typography.size.alias.extraLarge), (0, _rem.default)(_designTokens.spacing.base * 5))));
76
+ exports.ActionWrapper = ActionWrapper;
@@ -1,9 +1,13 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ModalProps } from './types';
3
- declare function Manager({ onClose, visible, children, ...rest }: ModalProps): React.ReactPortal | null;
4
- declare namespace Manager {
3
+ declare function ModalWrapper({ onClose, visible, children, ...rest }: ModalProps): JSX.Element;
4
+ declare namespace ModalWrapper {
5
5
  var propTypes: any;
6
+ var defaultProps: {
7
+ actions: undefined;
8
+ icon: undefined;
9
+ };
6
10
  var displayName: string;
7
11
  }
8
- export default Manager;
12
+ export default ModalWrapper;
9
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0C,MAAM,OAAO,CAAC;AA8B/D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAyJrC,iBAAS,OAAO,CAAC,EACf,OAAO,EACP,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,UAAU,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAmCvC;kBAxCQ,OAAO;;;;AAmDhB,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AA+BA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA2HrC,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,eAQxE;kBARQ,YAAY;;;;;;;;AAwBrB,eAAe,YAAY,CAAC"}
@@ -5,25 +5,21 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _get = _interopRequireDefault(require("lodash/get"));
9
-
10
- var _omit = _interopRequireDefault(require("lodash/omit"));
11
-
12
- var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
8
+ var _react = _interopRequireWildcard(require("react"));
13
9
 
14
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
11
 
16
- var _react = _interopRequireWildcard(require("react"));
17
-
18
12
  var _breakpointObserver = require("@decisiv/breakpoint-observer");
19
13
 
20
14
  var _designTokens = require("@decisiv/design-tokens");
21
15
 
22
16
  var _Times = _interopRequireDefault(require("@decisiv/iconix/lib/components/Times"));
23
17
 
24
- var _ConfigProvider = require("../../providers/ConfigProvider");
18
+ var _get = _interopRequireDefault(require("lodash/get"));
25
19
 
26
- var _canUseDOM = _interopRequireDefault(require("../../utils/canUseDOM"));
20
+ var _omit = _interopRequireDefault(require("lodash/omit"));
21
+
22
+ var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
27
23
 
28
24
  var _commonUIColors = require("../../utils/commonUIColors");
29
25
 
@@ -43,16 +39,18 @@ var _components = require("./components");
43
39
 
44
40
  var _constants = require("./constants");
45
41
 
42
+ var _Manager = _interopRequireDefault(require("./Manager"));
43
+
46
44
  var _proptypeValidators = require("./proptypeValidators");
47
45
 
46
+ var _ResponsiveModalWrapper = _interopRequireDefault(require("./ResponsiveModalWrapper"));
47
+
48
48
  var _schema = _interopRequireDefault(require("./schema"));
49
49
 
50
- var _utils = require("./utils");
50
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
51
51
 
52
52
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
53
53
 
54
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
55
-
56
54
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
57
55
 
58
56
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -78,7 +76,7 @@ var actionProps = [{}, {
78
76
  }];
79
77
 
80
78
  function Modal(_ref) {
81
- var _ref2, _ref3, _ref4, _ref5, _ref6;
79
+ var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
82
80
 
83
81
  var actions = _ref.actions,
84
82
  children = _ref.children,
@@ -113,43 +111,16 @@ function Modal(_ref) {
113
111
 
114
112
  return null;
115
113
  }, [colorProp, icon, intent]);
116
-
117
- var _useElement = (0, _utils.useElement)(),
118
- _useElement2 = _slicedToArray(_useElement, 2),
119
- container = _useElement2[0],
120
- containerRef = _useElement2[1];
121
-
122
- (0, _utils.useKeepFocusWithin)(container);
123
114
  var uuid = (0, _useUniqueId.default)(id, 'modal-');
124
115
  var modalHeaderId = "modal-header-".concat(uuid);
125
116
  var modalContentId = "modal-content-".concat(uuid);
126
- var modalFooterId = "modal-footer-".concat(uuid); // Any click within the overlay should stay within the overlay. This click event should close
127
- // the modal, but not bubble up to any parent elements.
128
-
129
- var handleOverlayClick = (0, _react.useCallback)(function (event) {
130
- event.preventDefault();
131
- event.stopPropagation();
132
- onClose && onClose(event);
133
- }, [onClose]); // Any click within the body should stay within the body. This prevents the click event from
134
- // bubbling up and firing the onClose handler via the Overlay's onClick.
135
-
136
- var handleBodyClick = (0, _react.useCallback)(function (event) {
137
- event.preventDefault();
138
- event.stopPropagation();
139
- }, []);
140
- return _react.default.createElement(_components.Overlay, {
141
- onClick: handleOverlayClick,
142
- ref: observedElementRef,
143
- zIndex: zIndex
144
- }, _react.default.createElement(_components.Body, {
145
- "aria-describedby": modalContentId,
146
- "aria-labelledby": modalHeaderId,
147
- "aria-modal": "true",
148
- size: breakpoint,
149
- id: uuid,
150
- onClick: handleBodyClick,
151
- ref: containerRef,
152
- role: "dialog"
117
+ var modalFooterId = "modal-footer-".concat(uuid);
118
+ return _react.default.createElement(_ResponsiveModalWrapper.default, {
119
+ id: id,
120
+ zIndex: zIndex,
121
+ onClose: onClose,
122
+ breakpoint: breakpoint,
123
+ observedElementRef: observedElementRef
153
124
  }, _react.default.createElement(_components.ScrollYBox, {
154
125
  size: breakpoint
155
126
  }, _react.default.createElement(_components.Header, {
@@ -168,7 +139,7 @@ function Modal(_ref) {
168
139
  }),
169
140
  zIndex: zIndex + 10
170
141
  }, translate(closeHint, 'modal.closeHint'))), IconComponent && _react.default.createElement(_Flex.default, {
171
- marginRight: 1
142
+ marginBottom: 0.5
172
143
  }, IconComponent), _react.default.createElement(_Typography.H2, null, title)), _react.default.createElement(_components.Content, {
173
144
  hasIcon: !!IconComponent,
174
145
  id: modalContentId,
@@ -179,59 +150,41 @@ function Modal(_ref) {
179
150
  hasIcon: !!IconComponent,
180
151
  id: modalFooterId,
181
152
  paddingX: (_ref6 = {}, _defineProperty(_ref6, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref6, _breakpointObserver.sizes.XS, 2), _ref6),
182
- paddingY: 2,
153
+ paddingY: (_ref7 = {}, _defineProperty(_ref7, _breakpointObserver.sizes.LG, 2), _defineProperty(_ref7, _breakpointObserver.sizes.XS, 1.5), _ref7),
183
154
  size: breakpoint
184
155
  }, actions.map(function (action, index) {
185
- return _react.default.createElement(_Flex.default, {
156
+ return _react.default.createElement(_components.ActionWrapper, {
186
157
  key: action.text,
187
- marginRight: 0.5
158
+ marginRight: 0.5,
159
+ size: breakpoint
188
160
  }, _react.default.createElement(_Button.default, _extends({}, (0, _omit.default)(action, ['kind', 'size', 'variant']), actionProps[index])));
189
- }))));
161
+ })));
190
162
  }
191
163
 
192
- function Manager(_ref7) {
193
- var onClose = _ref7.onClose,
194
- visible = _ref7.visible,
195
- children = _ref7.children,
196
- rest = _objectWithoutProperties(_ref7, ["onClose", "visible", "children"]);
197
-
198
- (0, _utils.useReturnFocus)(!visible);
199
-
200
- var _useConfig = (0, _ConfigProvider.useConfig)(),
201
- createPortal = _useConfig.createPortal;
202
-
203
- var onKeyDown = (0, _react.useCallback)(function (event) {
204
- if (event.key === 'Escape') {
205
- onClose && onClose(event);
206
- }
207
- }, [onClose]); // Allow closing the modal by pressing the Escape key
208
-
209
- (0, _react.useEffect)(function () {
210
- if (visible && _canUseDOM.default) {
211
- document.addEventListener('keydown', onKeyDown);
212
- return function () {
213
- document.removeEventListener('keydown', onKeyDown);
214
- };
215
- } // eslint has issues with no return statement here...
216
-
217
-
218
- return undefined;
219
- }, [visible, onKeyDown]);
220
-
221
- if (visible) {
222
- return createPortal(_react.default.createElement(Modal, _extends({
223
- onClose: onClose
224
- }, rest), children));
225
- }
226
-
227
- return null;
164
+ function ModalWrapper(_ref8) {
165
+ var onClose = _ref8.onClose,
166
+ visible = _ref8.visible,
167
+ children = _ref8.children,
168
+ rest = _objectWithoutProperties(_ref8, ["onClose", "visible", "children"]);
169
+
170
+ return _react.default.createElement(_Manager.default, {
171
+ onClose: onClose,
172
+ visible: visible
173
+ }, _react.default.createElement(Modal, _extends({
174
+ onClose: onClose,
175
+ visible: visible
176
+ }, rest), children));
228
177
  } // @ts-ignore
229
178
 
230
179
 
231
- Manager.propTypes = _objectSpread({}, _schema.default.propTypes, {
180
+ ModalWrapper.propTypes = _objectSpread({}, _schema.default.propTypes, {
232
181
  actions: _proptypeValidators.actionsValidator,
233
182
  icon: _propTypes.default.elementType
234
183
  });
235
- Manager.displayName = 'Modal';
236
- var _default = Manager;
184
+ ModalWrapper.defaultProps = {
185
+ actions: undefined,
186
+ icon: undefined
187
+ };
188
+ ModalWrapper.displayName = 'Modal';
189
+ var _default = ModalWrapper;
237
190
  exports.default = _default;
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -102,9 +102,9 @@ export declare const NotificationCard: import("styled-components").StyledCompone
102
102
  }> & {
103
103
  borderColor: string;
104
104
  }, never>;
105
- export declare const IconColumn: import("styled-components").StyledComponent<"div", any, import("../../Grid/Column/types").default & {
106
- span: string;
107
- }, "span">;
105
+ export declare const IconColumn: import("styled-components").StyledComponent<"div", any, {
106
+ right?: boolean | undefined;
107
+ }, never>;
108
108
  export declare const CloseButton: import("styled-components").StyledComponent<import("react").RefForwardingComponent<HTMLButtonElement, ButtonProps>, any, ButtonProps, never>;
109
109
  export declare const ActionButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
110
110
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/components.ts"],"names":[],"mappings":";AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAa5B,CAAC;AAEF,eAAO,MAAM,UAAU;;UAGtB,CAAC;AAEF,eAAO,MAAM,WAAW,8IAEvB,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAGjC,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/components.ts"],"names":[],"mappings":";AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAInD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAa5B,CAAC;AAEF,eAAO,MAAM,UAAU;;SAOtB,CAAC;AAEF,eAAO,MAAM,WAAW,8IAEvB,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAGjC,CAAC"}
@@ -15,7 +15,7 @@ var _color = _interopRequireDefault(require("@decisiv/design-tokens/lib/color"))
15
15
 
16
16
  var _spacing = _interopRequireDefault(require("@decisiv/design-tokens/lib/spacing"));
17
17
 
18
- var _dynamicModifiers = require("../../../utils/dynamicModifiers");
18
+ var _utils = require("../../../utils");
19
19
 
20
20
  var _skyPlane = _interopRequireDefault(require("../../../utils/skyPlane"));
21
21
 
@@ -23,6 +23,8 @@ var _Grid = _interopRequireDefault(require("../../Grid"));
23
23
 
24
24
  var _Button = _interopRequireDefault(require("../../Button"));
25
25
 
26
+ var _constants = require("../constants");
27
+
26
28
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
27
29
 
28
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -30,17 +32,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
30
32
  var NotificationCard = (0, _styledComponents.default)(_Grid.default.Container).withConfig({
31
33
  displayName: "components__NotificationCard",
32
34
  componentId: "ds1zkc-0"
33
- })(["background-color:", ";box-shadow:", ";border-radius:2px;width:", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _skyPlane.default)(2), (0, _rem.default)(_spacing.default.base * 34), (0, _dynamicModifiers.applyDynamicModifiers)('borderColor', function (_ref) {
35
+ })(["background-color:", ";box-shadow:", ";border-radius:2px;width:", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _skyPlane.default)(2), _constants.NOTIFICATION_CARD_WIDTH, (0, _utils.applyDynamicModifiers)('borderColor', function (_ref) {
34
36
  var borderColor = _ref.borderColor;
35
37
  return (0, _styledComponents.css)(["border-left:2px solid ", ";"], borderColor);
36
38
  }));
37
39
  exports.NotificationCard = NotificationCard;
38
- var IconColumn = (0, _styledComponents.default)(_Grid.default.Column).attrs({
39
- span: '0'
40
- }).withConfig({
40
+
41
+ var IconColumn = _styledComponents.default.div.withConfig({
41
42
  displayName: "components__IconColumn",
42
43
  componentId: "ds1zkc-1"
43
- })(["top:1px;width:", ";"], (0, _rem.default)(_spacing.default.base * 4));
44
+ })(["padding-left:", ";", ""], (0, _rem.default)(_spacing.default.base), function (_ref2) {
45
+ var _ref2$right = _ref2.right,
46
+ right = _ref2$right === void 0 ? false : _ref2$right;
47
+ return right && (0, _styledComponents.css)(["padding-right:", ";"], (0, _rem.default)(_spacing.default.base));
48
+ });
49
+
44
50
  exports.IconColumn = IconColumn;
45
51
  var CloseButton = (0, _styledComponents.default)(_Button.default).withConfig({
46
52
  displayName: "components__CloseButton",
@@ -1,13 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
2
3
  import { TNotificationProps } from '../../../providers/NotificationsProvider/types';
3
4
  declare function Notification(props: TNotificationProps): JSX.Element;
4
5
  declare namespace Notification {
5
- var propTypes: any;
6
- var defaultProps: {
7
- actions: undefined;
8
- children: null;
9
- icon: undefined;
10
- };
6
+ var propTypes: PropTypes.ValidationMap<TNotificationProps>;
7
+ var defaultProps: Partial<TNotificationProps>;
11
8
  var displayName: string;
12
9
  }
13
10
  export default Notification;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAwBpF,iBAAS,YAAY,CAAC,KAAK,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAiG5D;kBAjGQ,YAAY;;;;;;;;;AAqHrB,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/index.tsx"],"names":[],"mappings":";AAGA,OAAO,SAA4B,MAAM,YAAY,CAAC;AAMtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAwBpF,iBAAS,YAAY,CAAC,KAAK,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAuG5D;kBAvGQ,YAAY;;;;;AA8HrB,eAAe,YAAY,CAAC"}