@decisiv/ui-components 1.36.1-alpha.3 → 2.0.1-alpha.100

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 (323) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/lib/atoms/BaseButton/index.d.ts.map +1 -1
  3. package/lib/atoms/BaseButton/index.js +1 -1
  4. package/lib/atoms/BooleanInput/elements.d.ts.map +1 -1
  5. package/lib/atoms/BooleanInput/elements.js +8 -3
  6. package/lib/atoms/BooleanInput/index.d.ts.map +1 -1
  7. package/lib/atoms/BooleanInput/index.js +26 -5
  8. package/lib/atoms/BooleanInput/index.test.js +17 -6
  9. package/lib/atoms/BooleanInput/types.d.ts +4 -0
  10. package/lib/atoms/BooleanInput/types.d.ts.map +1 -1
  11. package/lib/atoms/BooleanInput/types.js +5 -1
  12. package/lib/atoms/Calendar/hooks/useCalendar/index.d.ts.map +1 -1
  13. package/lib/atoms/Calendar/hooks/useCalendar/index.js +2 -1
  14. package/lib/atoms/Calendar/hooks/useCalendar/index.test.js +5 -6
  15. package/lib/atoms/Calendar/index.d.ts.map +1 -1
  16. package/lib/atoms/Calendar/index.js +8 -1
  17. package/lib/atoms/Calendar/index.test.js +70 -40
  18. package/lib/atoms/Calendar/types.js +5 -1
  19. package/lib/atoms/InputField/Containers.d.ts +11 -6
  20. package/lib/atoms/InputField/Containers.d.ts.map +1 -1
  21. package/lib/atoms/InputField/Containers.js +6 -6
  22. package/lib/atoms/InputField/InputLabel.d.ts +1 -0
  23. package/lib/atoms/InputField/InputLabel.d.ts.map +1 -1
  24. package/lib/atoms/InputField/InputLabel.js +2 -1
  25. package/lib/atoms/InputField/index.d.ts +5 -0
  26. package/lib/atoms/InputField/index.d.ts.map +1 -1
  27. package/lib/atoms/InputField/index.js +21 -7
  28. package/lib/atoms/InputField/index.test.js +91 -0
  29. package/lib/atoms/InputField/schema.d.ts.map +1 -1
  30. package/lib/atoms/InputField/schema.js +1 -0
  31. package/lib/atoms/OptionsList/Category.d.ts +1 -1
  32. package/lib/atoms/OptionsList/Category.d.ts.map +1 -1
  33. package/lib/atoms/OptionsList/Category.js +4 -2
  34. package/lib/atoms/OptionsList/Footer.d.ts +8 -0
  35. package/lib/atoms/OptionsList/Footer.d.ts.map +1 -0
  36. package/lib/atoms/OptionsList/Footer.js +72 -0
  37. package/lib/atoms/OptionsList/Option.d.ts.map +1 -1
  38. package/lib/atoms/OptionsList/Option.js +8 -5
  39. package/lib/atoms/OptionsList/index.d.ts.map +1 -1
  40. package/lib/atoms/OptionsList/index.js +43 -16
  41. package/lib/atoms/OptionsList/index.test.js +107 -11
  42. package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
  43. package/lib/atoms/OptionsList/schema.js +4 -0
  44. package/lib/atoms/OptionsList/types.d.ts +14 -0
  45. package/lib/atoms/OptionsList/types.d.ts.map +1 -1
  46. package/lib/atoms/OptionsList/types.js +5 -1
  47. package/lib/atoms/OptionsList/useListSelectionKeyboardActions.d.ts.map +1 -1
  48. package/lib/atoms/OptionsList/useListSelectionKeyboardActions.js +9 -4
  49. package/lib/atoms/RequiredIcon.d.ts +9 -0
  50. package/lib/atoms/RequiredIcon.d.ts.map +1 -0
  51. package/lib/atoms/{InputField/RequiredIcon.js → RequiredIcon.js} +7 -3
  52. package/lib/components/Accordion/types.js +5 -1
  53. package/lib/components/Accordion/useAccordion/types.js +5 -1
  54. package/lib/components/Alert/Container.d.ts +201 -0
  55. package/lib/components/Alert/Container.d.ts.map +1 -0
  56. package/lib/components/Alert/Container.js +26 -0
  57. package/lib/components/Alert/StyledButton.d.ts +5 -0
  58. package/lib/components/Alert/StyledButton.d.ts.map +1 -0
  59. package/lib/components/Alert/StyledButton.js +23 -0
  60. package/lib/components/Alert/index.d.ts +27 -0
  61. package/lib/components/Alert/index.d.ts.map +1 -0
  62. package/lib/components/Alert/index.js +112 -0
  63. package/lib/components/Alert/index.test.js +79 -0
  64. package/lib/components/Alert/intents.d.ts +13 -0
  65. package/lib/components/Alert/intents.d.ts.map +1 -0
  66. package/lib/components/Alert/intents.js +72 -0
  67. package/lib/components/Alert/schema.d.ts +3 -0
  68. package/lib/components/Alert/schema.d.ts.map +1 -0
  69. package/lib/components/Alert/schema.js +25 -0
  70. package/lib/components/Alert/types.d.ts +36 -0
  71. package/lib/components/Alert/types.d.ts.map +1 -0
  72. package/lib/components/Alert/types.js +32 -0
  73. package/lib/components/Avatar/types.js +5 -1
  74. package/lib/components/Badge/constants.d.ts +2 -0
  75. package/lib/components/Badge/constants.d.ts.map +1 -0
  76. package/lib/components/Badge/constants.js +29 -0
  77. package/lib/components/Badge/index.d.ts.map +1 -1
  78. package/lib/components/Badge/index.js +12 -23
  79. package/lib/components/Badge/index.test.js +51 -8
  80. package/lib/components/Badge/schema.js +1 -1
  81. package/lib/components/Badge/types.d.ts +1 -1
  82. package/lib/components/Badge/types.d.ts.map +1 -1
  83. package/lib/components/Badge/types.js +7 -3
  84. package/lib/components/Breadcrumbs/types.js +5 -1
  85. package/lib/components/Button/schema.d.ts +6 -1
  86. package/lib/components/Button/schema.d.ts.map +1 -1
  87. package/lib/components/Button/schema.js +9 -4
  88. package/lib/components/Button/types.js +5 -1
  89. package/lib/components/Checkbox/index.d.ts.map +1 -1
  90. package/lib/components/Checkbox/index.js +3 -1
  91. package/lib/components/Checkbox/schema.d.ts.map +1 -1
  92. package/lib/components/Checkbox/schema.js +2 -0
  93. package/lib/components/Combobox/Target.d.ts.map +1 -1
  94. package/lib/components/Combobox/Target.js +45 -14
  95. package/lib/components/Combobox/index.d.ts.map +1 -1
  96. package/lib/components/Combobox/index.js +193 -65
  97. package/lib/components/Combobox/index.test.js +358 -135
  98. package/lib/components/Combobox/schema.d.ts.map +1 -1
  99. package/lib/components/Combobox/schema.js +9 -2
  100. package/lib/components/Combobox/types.d.ts +12 -3
  101. package/lib/components/Combobox/types.d.ts.map +1 -1
  102. package/lib/components/Combobox/types.js +5 -1
  103. package/lib/components/DropdownList/index.d.ts +4 -0
  104. package/lib/components/DropdownList/index.d.ts.map +1 -1
  105. package/lib/components/DropdownList/index.js +76 -11
  106. package/lib/components/DropdownList/propTypes.d.ts +4 -0
  107. package/lib/components/DropdownList/propTypes.d.ts.map +1 -0
  108. package/lib/components/DropdownList/propTypes.js +42 -0
  109. package/lib/components/DropdownList/schema.d.ts.map +1 -1
  110. package/lib/components/DropdownList/schema.js +5 -0
  111. package/lib/components/DropdownList/types.d.ts +4 -1
  112. package/lib/components/DropdownList/types.d.ts.map +1 -1
  113. package/lib/components/Filter/IconWrapper/index.d.ts +197 -0
  114. package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -0
  115. package/lib/components/Filter/IconWrapper/index.js +35 -0
  116. package/lib/components/Filter/SimplePrimary/index.d.ts +31 -0
  117. package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -0
  118. package/lib/components/Filter/SimplePrimary/index.js +58 -0
  119. package/lib/components/Filter/SimplePrimary/index.test.js +34 -0
  120. package/lib/components/Filter/StyledFilter.d.ts +4 -0
  121. package/lib/components/Filter/StyledFilter.d.ts.map +1 -0
  122. package/lib/components/Filter/StyledFilter.js +39 -0
  123. package/lib/components/Filter/StyledLabel/index.d.ts +8 -0
  124. package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -0
  125. package/lib/components/Filter/StyledLabel/index.js +30 -0
  126. package/lib/components/Filter/index.d.ts +27 -0
  127. package/lib/components/Filter/index.d.ts.map +1 -0
  128. package/lib/components/Filter/index.js +95 -0
  129. package/lib/components/Filter/index.test.js +41 -0
  130. package/lib/components/Filter/kind.d.ts +6 -0
  131. package/lib/components/Filter/kind.d.ts.map +1 -0
  132. package/lib/components/Filter/kind.js +45 -0
  133. package/lib/components/Filter/schema.d.ts +9 -0
  134. package/lib/components/Filter/schema.d.ts.map +1 -0
  135. package/lib/components/Filter/schema.js +32 -0
  136. package/lib/components/Filter/types.d.ts +17 -0
  137. package/lib/components/Filter/types.d.ts.map +1 -0
  138. package/lib/components/Filter/types.js +5 -0
  139. package/lib/components/JumpTo/JumpToMenu.d.ts +2 -2
  140. package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
  141. package/lib/components/JumpTo/JumpToMenu.js +3 -3
  142. package/lib/components/JumpTo/types.js +5 -1
  143. package/lib/components/LeftNav/Item/ClickArea.d.ts.map +1 -1
  144. package/lib/components/LeftNav/Item/ClickArea.js +2 -2
  145. package/lib/components/LeftNav/Item/ItemWrapper.d.ts.map +1 -1
  146. package/lib/components/LeftNav/Item/ItemWrapper.js +3 -3
  147. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts +7 -0
  148. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts.map +1 -0
  149. package/lib/components/LeftNav/Item/MenuItemWrapper.js +20 -0
  150. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.d.ts.map +1 -1
  151. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.js +7 -5
  152. package/lib/components/LeftNav/Item/NavExpandedItem/index.d.ts.map +1 -1
  153. package/lib/components/LeftNav/Item/NavExpandedItem/index.js +24 -13
  154. package/lib/components/LeftNav/Item/types.d.ts +1 -1
  155. package/lib/components/LeftNav/Item/types.d.ts.map +1 -1
  156. package/lib/components/LeftNav/Item/types.js +5 -1
  157. package/lib/components/LeftNav/index.test.js +13 -3
  158. package/lib/components/LeftNav/schema.d.ts.map +1 -1
  159. package/lib/components/LeftNav/schema.js +2 -0
  160. package/lib/components/LeftNav/types.d.ts +1 -0
  161. package/lib/components/LeftNav/types.d.ts.map +1 -1
  162. package/lib/components/LeftNav/types.js +5 -1
  163. package/lib/components/Link/index.d.ts +2 -2
  164. package/lib/components/Link/index.d.ts.map +1 -1
  165. package/lib/components/Link/index.js +1 -1
  166. package/lib/components/Link/index.test.js +8 -0
  167. package/lib/components/Link/schema.d.ts.map +1 -1
  168. package/lib/components/Link/schema.js +1 -1
  169. package/lib/components/Menu/index.d.ts.map +1 -1
  170. package/lib/components/Menu/index.js +3 -1
  171. package/lib/components/Menu/types.d.ts +2 -0
  172. package/lib/components/Menu/types.d.ts.map +1 -1
  173. package/lib/components/Menu/types.js +5 -1
  174. package/lib/components/Modal/components.d.ts +2 -2
  175. package/lib/components/Modal/index.d.ts.map +1 -1
  176. package/lib/components/Modal/index.js +5 -5
  177. package/lib/components/Modal/index.test.js +32 -0
  178. package/lib/components/Modal/schema.d.ts.map +1 -1
  179. package/lib/components/Modal/schema.js +2 -2
  180. package/lib/components/Modal/types.d.ts +2 -2
  181. package/lib/components/Modal/types.d.ts.map +1 -1
  182. package/lib/components/Modal/types.js +5 -1
  183. package/lib/components/Notifications/Notification/components.d.ts +3 -3
  184. package/lib/components/Notifications/Notification/components.d.ts.map +1 -1
  185. package/lib/components/Notifications/Notification/components.js +12 -6
  186. package/lib/components/Notifications/Notification/index.d.ts +3 -6
  187. package/lib/components/Notifications/Notification/index.d.ts.map +1 -1
  188. package/lib/components/Notifications/Notification/index.js +19 -12
  189. package/lib/components/Notifications/Notification/index.test.js +38 -19
  190. package/lib/components/Notifications/NotificationsPanel/index.d.ts +2 -1
  191. package/lib/components/Notifications/NotificationsPanel/index.d.ts.map +1 -1
  192. package/lib/components/Notifications/NotificationsPanel/index.js +44 -21
  193. package/lib/components/Notifications/NotificationsPanel/schema.js +1 -1
  194. package/lib/components/Notifications/Notifier.test.js +79 -10
  195. package/lib/components/Notifications/constants.d.ts +2 -0
  196. package/lib/components/Notifications/constants.d.ts.map +1 -0
  197. package/lib/components/Notifications/constants.js +16 -0
  198. package/lib/components/Notifications/schema.d.ts.map +1 -1
  199. package/lib/components/Notifications/schema.js +2 -1
  200. package/lib/components/Notifications/useNotifications.d.ts +1 -0
  201. package/lib/components/Notifications/useNotifications.d.ts.map +1 -1
  202. package/lib/components/Notifications/useNotifications.js +3 -3
  203. package/lib/components/Notifications/useNotifications.test.js +7 -4
  204. package/lib/components/Pagination/Pagination.d.ts +1 -1
  205. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  206. package/lib/components/Pagination/Pagination.js +1 -0
  207. package/lib/components/Pagination/Pagination.test.js +9 -0
  208. package/lib/components/Pagination/types.js +5 -1
  209. package/lib/components/Select/Target.js +1 -1
  210. package/lib/components/Select/index.d.ts.map +1 -1
  211. package/lib/components/Select/index.js +37 -1
  212. package/lib/components/Select/index.test.js +82 -23
  213. package/lib/components/Select/schema.d.ts.map +1 -1
  214. package/lib/components/Select/schema.js +7 -0
  215. package/lib/components/Select/types.d.ts +4 -1
  216. package/lib/components/Select/types.d.ts.map +1 -1
  217. package/lib/components/Select/types.js +5 -1
  218. package/lib/components/SelectDate/Target.js +1 -1
  219. package/lib/components/SelectDate/index.d.ts.map +1 -1
  220. package/lib/components/SelectDate/index.js +28 -1
  221. package/lib/components/SelectDate/index.test.js +108 -51
  222. package/lib/components/SelectDate/schema.d.ts.map +1 -1
  223. package/lib/components/SelectDate/schema.js +2 -0
  224. package/lib/components/SelectDate/types.d.ts +2 -0
  225. package/lib/components/SelectDate/types.d.ts.map +1 -1
  226. package/lib/components/SelectDate/types.js +5 -1
  227. package/lib/components/SelectDateRange/index.d.ts.map +1 -1
  228. package/lib/components/SelectDateRange/index.js +28 -1
  229. package/lib/components/SelectDateRange/index.test.js +115 -58
  230. package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
  231. package/lib/components/SelectDateRange/schema.js +2 -0
  232. package/lib/components/SelectDateRange/types.js +5 -1
  233. package/lib/components/SelectMenu/index.d.ts +5 -0
  234. package/lib/components/SelectMenu/index.d.ts.map +1 -1
  235. package/lib/components/SelectMenu/index.js +27 -3
  236. package/lib/components/SelectMenu/schema.d.ts.map +1 -1
  237. package/lib/components/SelectMenu/schema.js +4 -0
  238. package/lib/components/Table/Body.d.ts.map +1 -1
  239. package/lib/components/Table/Body.js +182 -38
  240. package/lib/components/Table/Container.d.ts.map +1 -1
  241. package/lib/components/Table/Container.js +3 -3
  242. package/lib/components/Table/DataRow.d.ts.map +1 -1
  243. package/lib/components/Table/DataRow.js +54 -10
  244. package/lib/components/Table/DraggableWrapper.d.ts +5 -0
  245. package/lib/components/Table/DraggableWrapper.d.ts.map +1 -0
  246. package/lib/components/Table/DraggableWrapper.js +38 -0
  247. package/lib/components/Table/Grip.d.ts +4 -0
  248. package/lib/components/Table/Grip.d.ts.map +1 -0
  249. package/lib/components/Table/Grip.js +30 -0
  250. package/lib/components/Table/Head.d.ts +1 -1
  251. package/lib/components/Table/Head.d.ts.map +1 -1
  252. package/lib/components/Table/Head.js +12 -9
  253. package/lib/components/Table/HeaderCell/index.d.ts.map +1 -1
  254. package/lib/components/Table/HeaderCell/index.js +57 -4
  255. package/lib/components/Table/HeaderCell/types.d.ts +6 -0
  256. package/lib/components/Table/HeaderCell/types.d.ts.map +1 -1
  257. package/lib/components/Table/HeaderCell/types.js +5 -1
  258. package/lib/components/Table/Provider.d.ts +18 -3
  259. package/lib/components/Table/Provider.d.ts.map +1 -1
  260. package/lib/components/Table/Provider.js +50 -4
  261. package/lib/components/Table/index.d.ts.map +1 -1
  262. package/lib/components/Table/index.js +167 -21
  263. package/lib/components/Table/index.test.js +335 -64
  264. package/lib/components/Table/schema.columns.d.ts.map +1 -1
  265. package/lib/components/Table/schema.columns.js +7 -4
  266. package/lib/components/Table/schema.d.ts.map +1 -1
  267. package/lib/components/Table/schema.js +8 -6
  268. package/lib/components/Table/types.d.ts +34 -3
  269. package/lib/components/Table/types.d.ts.map +1 -1
  270. package/lib/components/Table/utils.d.ts +4 -1
  271. package/lib/components/Table/utils.d.ts.map +1 -1
  272. package/lib/components/Table/utils.js +30 -1
  273. package/lib/components/Tabs/types.js +5 -1
  274. package/lib/components/Tag/types.d.ts +1 -1
  275. package/lib/components/Tag/types.d.ts.map +1 -1
  276. package/lib/components/Tag/types.js +5 -1
  277. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  278. package/lib/components/TextArea/TextArea.js +1 -1
  279. package/lib/components/TextArea/index.js +1 -0
  280. package/lib/components/TextArea/index.test.js +5 -0
  281. package/lib/components/TextField/Input.js +1 -1
  282. package/lib/components/TextField/index.test.js +5 -0
  283. package/lib/components/Toggle/index.d.ts.map +1 -1
  284. package/lib/components/Toggle/index.js +4 -0
  285. package/lib/components/Toggle/index.test.js +39 -10
  286. package/lib/components/Toggle/types.js +5 -1
  287. package/lib/components/TopNav/BrandInfo/index.d.ts +2 -1
  288. package/lib/components/TopNav/BrandInfo/index.d.ts.map +1 -1
  289. package/lib/components/TopNav/BrandInfo/index.js +9 -1
  290. package/lib/components/TopNav/BrandInfo/schema.d.ts.map +1 -1
  291. package/lib/components/TopNav/BrandInfo/schema.js +4 -1
  292. package/lib/components/TopNav/index.test.js +28 -0
  293. package/lib/components/Typography/withColors.d.ts +1 -1
  294. package/lib/components/Typography/withColors.js +2 -2
  295. package/lib/components/index.d.ts +2 -0
  296. package/lib/components/index.d.ts.map +1 -1
  297. package/lib/components/index.js +25 -0
  298. package/lib/providers/ConfigProvider/index.d.ts.map +1 -1
  299. package/lib/providers/ConfigProvider/index.js +5 -1
  300. package/lib/providers/ConfigProvider/utils/context.d.ts +1 -1
  301. package/lib/providers/ConfigProvider/utils/context.d.ts.map +1 -1
  302. package/lib/providers/ConfigProvider/utils/normalizer.d.ts.map +1 -1
  303. package/lib/providers/ConfigProvider/utils/normalizer.js +1 -1
  304. package/lib/providers/ConfigProvider/utils/translations.d.ts +5 -1
  305. package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
  306. package/lib/providers/ConfigProvider/utils/translations.js +5 -1
  307. package/lib/providers/NotificationsProvider/index.d.ts +6 -5
  308. package/lib/providers/NotificationsProvider/index.d.ts.map +1 -1
  309. package/lib/providers/NotificationsProvider/index.js +47 -28
  310. package/lib/providers/NotificationsProvider/types.d.ts +4 -1
  311. package/lib/providers/NotificationsProvider/types.d.ts.map +1 -1
  312. package/lib/utils/joinClassnames.d.ts +3 -0
  313. package/lib/utils/joinClassnames.d.ts.map +1 -0
  314. package/lib/utils/joinClassnames.js +26 -0
  315. package/lib/utils/useFirstMount.d.ts +2 -0
  316. package/lib/utils/useFirstMount.d.ts.map +1 -0
  317. package/lib/utils/useFirstMount.js +19 -0
  318. package/lib/utils/useUpdateEffect.d.ts +4 -0
  319. package/lib/utils/useUpdateEffect.d.ts.map +1 -0
  320. package/lib/utils/useUpdateEffect.js +28 -0
  321. package/package.json +9 -7
  322. package/lib/atoms/InputField/RequiredIcon.d.ts +0 -4
  323. package/lib/atoms/InputField/RequiredIcon.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,oBAAY,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,MAAM,CAAC,CAAC;AAClE,oBAAY,gBAAgB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEpE,oBAAY,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAC3D,oBAAY,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAE1C,oBAAY,qBAAqB,GAAG,IAAI,CACtC,eAAe,EACf,UAAU,GAAG,WAAW,GAAG,UAAU,CACtC,CAAC;AAEF,UAAU,gBAAiB,SAAQ,iBAAiB;IAClD,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,eAAgB,SAAQ,gBAAgB;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CA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AAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,uBAAuB,GAAG,gBAAgB,CAAC"}
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"useListSelectionKeyboardActions.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/useListSelectionKeyboardActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAAE,MAAM,OAAO,CAAC;AAEzE,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,QAAA,MAAM,+BAA+B;;CAkEpC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
1
+ {"version":3,"file":"useListSelectionKeyboardActions.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/useListSelectionKeyboardActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAAE,MAAM,OAAO,CAAC;AAEzE,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAOD,QAAA,MAAM,+BAA+B;;CAkEpC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
@@ -7,6 +7,11 @@ exports.default = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
+ var ARROW_UP = 'ArrowUp';
11
+ var ARROW_DOWN = 'ArrowDown';
12
+ var HOME = 'Home';
13
+ var END = 'End';
14
+
10
15
  var useListSelectionKeyboardActions = function useListSelectionKeyboardActions(_ref) {
11
16
  var _ref$itemIds = _ref.itemIds,
12
17
  itemIds = _ref$itemIds === void 0 ? [] : _ref$itemIds,
@@ -26,7 +31,7 @@ var useListSelectionKeyboardActions = function useListSelectionKeyboardActions(_
26
31
  var newActiveIdx = activeIdx;
27
32
 
28
33
  switch (event.key) {
29
- case 'ArrowUp':
34
+ case ARROW_UP:
30
35
  // Prevent page scroll
31
36
  event.preventDefault();
32
37
 
@@ -38,7 +43,7 @@ var useListSelectionKeyboardActions = function useListSelectionKeyboardActions(_
38
43
 
39
44
  break;
40
45
 
41
- case 'ArrowDown':
46
+ case ARROW_DOWN:
42
47
  // Prevent page scroll
43
48
  event.preventDefault();
44
49
 
@@ -50,13 +55,13 @@ var useListSelectionKeyboardActions = function useListSelectionKeyboardActions(_
50
55
 
51
56
  break;
52
57
 
53
- case 'Home':
58
+ case HOME:
54
59
  // Prevent page scroll
55
60
  event.preventDefault();
56
61
  newActiveIdx = 0;
57
62
  break;
58
63
 
59
- case 'End':
64
+ case END:
60
65
  // Prevent page scroll
61
66
  event.preventDefault();
62
67
  newActiveIdx = totalIds - 1;
@@ -0,0 +1,9 @@
1
+ import { RefForwardingComponent, RefAttributes } from 'react';
2
+ interface Props {
3
+ marginLeft?: string;
4
+ marginTop?: string;
5
+ }
6
+ declare type RequiredIconType = RefForwardingComponent<HTMLDivElement, RefAttributes<HTMLDivElement> & Props>;
7
+ declare const RequiredIcon: RequiredIconType;
8
+ export default RequiredIcon;
9
+ //# sourceMappingURL=RequiredIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequiredIcon.d.ts","sourceRoot":"","sources":["../../src/atoms/RequiredIcon.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,sBAAsB,EAGtB,aAAa,EACd,MAAM,OAAO,CAAC;AAOf,UAAU,KAAK;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAQD,aAAK,gBAAgB,GAAG,sBAAsB,CAC5C,cAAc,EACd,aAAa,CAAC,cAAc,CAAC,GAAG,KAAK,CACtC,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,gBASnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -21,10 +21,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
21
21
 
22
22
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
23
 
24
- var RequiredIconContainer = _styledComponents.default.span.withConfig({
24
+ var RequiredIconContainer = _styledComponents.default.div.withConfig({
25
25
  displayName: "RequiredIcon__RequiredIconContainer",
26
- componentId: "d5jm3s-0"
27
- })(["margin-left:5px;"]);
26
+ componentId: "sc-18pnvm5-0"
27
+ })(["display:inline;margin-left:", ";margin-top:", ";"], function (props) {
28
+ return props.marginLeft || '3px';
29
+ }, function (props) {
30
+ return props.marginTop || '0px';
31
+ });
28
32
 
29
33
  var RequiredIcon = (0, _react.forwardRef)(function (props, ref) {
30
34
  return _react.default.createElement(RequiredIconContainer, _extends({}, props, {
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,201 @@
1
+ /// <reference types="react" />
2
+ import intents from './intents';
3
+ import { FlexComponentProps } from '../Flex';
4
+ interface ContainerProps extends FlexComponentProps {
5
+ intent?: keyof typeof intents;
6
+ }
7
+ declare const Container: import("styled-components").StyledComponent<"div", any, Partial<{
8
+ readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
9
+ readonly XS: "XS";
10
+ readonly SM: "SM";
11
+ readonly MD: "MD";
12
+ readonly LG: "LG";
13
+ readonly XL: "XL";
14
+ }> | undefined;
15
+ readonly alignItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
16
+ readonly XS: "XS";
17
+ readonly SM: "SM";
18
+ readonly MD: "MD";
19
+ readonly LG: "LG";
20
+ readonly XL: "XL";
21
+ }> | undefined;
22
+ readonly alignSelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
23
+ readonly XS: "XS";
24
+ readonly SM: "SM";
25
+ readonly MD: "MD";
26
+ readonly LG: "LG";
27
+ readonly XL: "XL";
28
+ }> | undefined;
29
+ readonly flex?: string | number | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("react").ReactText, {
30
+ readonly XS: "XS";
31
+ readonly SM: "SM";
32
+ readonly MD: "MD";
33
+ readonly LG: "LG";
34
+ readonly XL: "XL";
35
+ }> | undefined;
36
+ readonly flexBasis?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
37
+ readonly XS: "XS";
38
+ readonly SM: "SM";
39
+ readonly MD: "MD";
40
+ readonly LG: "LG";
41
+ readonly XL: "XL";
42
+ }> | undefined;
43
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
44
+ readonly XS: "XS";
45
+ readonly SM: "SM";
46
+ readonly MD: "MD";
47
+ readonly LG: "LG";
48
+ readonly XL: "XL";
49
+ }> | undefined;
50
+ readonly flexGrow?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
51
+ readonly XS: "XS";
52
+ readonly SM: "SM";
53
+ readonly MD: "MD";
54
+ readonly LG: "LG";
55
+ readonly XL: "XL";
56
+ }> | undefined;
57
+ readonly flexShrink?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
58
+ readonly XS: "XS";
59
+ readonly SM: "SM";
60
+ readonly MD: "MD";
61
+ readonly LG: "LG";
62
+ readonly XL: "XL";
63
+ }> | undefined;
64
+ readonly flexWrap?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexWrapProperty, {
65
+ readonly XS: "XS";
66
+ readonly SM: "SM";
67
+ readonly MD: "MD";
68
+ readonly LG: "LG";
69
+ readonly XL: "XL";
70
+ }> | undefined;
71
+ readonly justifyContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
72
+ readonly XS: "XS";
73
+ readonly SM: "SM";
74
+ readonly MD: "MD";
75
+ readonly LG: "LG";
76
+ readonly XL: "XL";
77
+ }> | undefined;
78
+ readonly justifyItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
79
+ readonly XS: "XS";
80
+ readonly SM: "SM";
81
+ readonly MD: "MD";
82
+ readonly LG: "LG";
83
+ readonly XL: "XL";
84
+ }> | undefined;
85
+ readonly justifySelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
86
+ readonly XS: "XS";
87
+ readonly SM: "SM";
88
+ readonly MD: "MD";
89
+ readonly LG: "LG";
90
+ readonly XL: "XL";
91
+ }> | undefined;
92
+ readonly order?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
93
+ readonly XS: "XS";
94
+ readonly SM: "SM";
95
+ readonly MD: "MD";
96
+ readonly LG: "LG";
97
+ readonly XL: "XL";
98
+ }> | undefined;
99
+ readonly size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
100
+ }> & Partial<{
101
+ readonly margin: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
102
+ readonly XS: "XS";
103
+ readonly SM: "SM";
104
+ readonly MD: "MD";
105
+ readonly LG: "LG";
106
+ readonly XL: "XL";
107
+ }>;
108
+ readonly marginBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
109
+ readonly XS: "XS";
110
+ readonly SM: "SM";
111
+ readonly MD: "MD";
112
+ readonly LG: "LG";
113
+ readonly XL: "XL";
114
+ }>;
115
+ readonly marginLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
116
+ readonly XS: "XS";
117
+ readonly SM: "SM";
118
+ readonly MD: "MD";
119
+ readonly LG: "LG";
120
+ readonly XL: "XL";
121
+ }>;
122
+ readonly marginRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
123
+ readonly XS: "XS";
124
+ readonly SM: "SM";
125
+ readonly MD: "MD";
126
+ readonly LG: "LG";
127
+ readonly XL: "XL";
128
+ }>;
129
+ readonly marginTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
130
+ readonly XS: "XS";
131
+ readonly SM: "SM";
132
+ readonly MD: "MD";
133
+ readonly LG: "LG";
134
+ readonly XL: "XL";
135
+ }>;
136
+ readonly marginX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
137
+ readonly XS: "XS";
138
+ readonly SM: "SM";
139
+ readonly MD: "MD";
140
+ readonly LG: "LG";
141
+ readonly XL: "XL";
142
+ }>;
143
+ readonly marginY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
144
+ readonly XS: "XS";
145
+ readonly SM: "SM";
146
+ readonly MD: "MD";
147
+ readonly LG: "LG";
148
+ readonly XL: "XL";
149
+ }>;
150
+ readonly padding: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
151
+ readonly XS: "XS";
152
+ readonly SM: "SM";
153
+ readonly MD: "MD";
154
+ readonly LG: "LG";
155
+ readonly XL: "XL";
156
+ }>;
157
+ readonly paddingBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
158
+ readonly XS: "XS";
159
+ readonly SM: "SM";
160
+ readonly MD: "MD";
161
+ readonly LG: "LG";
162
+ readonly XL: "XL";
163
+ }>;
164
+ readonly paddingLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
165
+ readonly XS: "XS";
166
+ readonly SM: "SM";
167
+ readonly MD: "MD";
168
+ readonly LG: "LG";
169
+ readonly XL: "XL";
170
+ }>;
171
+ readonly paddingRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
172
+ readonly XS: "XS";
173
+ readonly SM: "SM";
174
+ readonly MD: "MD";
175
+ readonly LG: "LG";
176
+ readonly XL: "XL";
177
+ }>;
178
+ readonly paddingTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
179
+ readonly XS: "XS";
180
+ readonly SM: "SM";
181
+ readonly MD: "MD";
182
+ readonly LG: "LG";
183
+ readonly XL: "XL";
184
+ }>;
185
+ readonly paddingX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
186
+ readonly XS: "XS";
187
+ readonly SM: "SM";
188
+ readonly MD: "MD";
189
+ readonly LG: "LG";
190
+ readonly XL: "XL";
191
+ }>;
192
+ readonly paddingY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
193
+ readonly XS: "XS";
194
+ readonly SM: "SM";
195
+ readonly MD: "MD";
196
+ readonly LG: "LG";
197
+ readonly XL: "XL";
198
+ }>;
199
+ }> & ContainerProps, never>;
200
+ export default Container;
201
+ //# sourceMappingURL=Container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Container.ts"],"names":[],"mappings":";AAIA,OAAO,OAAwB,MAAM,WAAW,CAAC;AAEjD,OAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEnD,UAAU,cAAe,SAAQ,kBAAkB;IACjD,MAAM,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;CAC/B;AAGD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
+
10
+ var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
11
+
12
+ var _spacing = _interopRequireDefault(require("@decisiv/design-tokens/lib/spacing"));
13
+
14
+ var _intents = require("./intents");
15
+
16
+ var _Flex = _interopRequireDefault(require("../Flex"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ // @ts-ignore
21
+ var Container = (0, _styledComponents.default)(_Flex.default).withConfig({
22
+ displayName: "Container",
23
+ componentId: "egscd9-0"
24
+ })(["border-left-style:solid;border-left-width:", ";border-radius:", ";text-align:left;& > svg{margin-top:", ";height:", ";width:", ";}", ""], (0, _rem.default)(_spacing.default.base * 0.2), (0, _rem.default)(_spacing.default.base * 0.2), (0, _rem.default)(_spacing.default.base * 0.1), (0, _rem.default)(_spacing.default.base * 1.6), (0, _rem.default)(_spacing.default.base * 1.6), _intents.intentStyle);
25
+ var _default = Container;
26
+ exports.default = _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from '../Button';
3
+ declare const StyledButton: import("styled-components").StyledComponent<import("react").RefForwardingComponent<HTMLButtonElement, ButtonProps>, any, ButtonProps, never>;
4
+ export default StyledButton;
5
+ //# sourceMappingURL=StyledButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledButton.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/StyledButton.ts"],"names":[],"mappings":";AAIA,OAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEhD,QAAA,MAAM,YAAY,8IAUjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
+
10
+ var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
11
+
12
+ var _spacing = _interopRequireDefault(require("@decisiv/design-tokens/lib/spacing"));
13
+
14
+ var _Button = _interopRequireDefault(require("../Button"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ var StyledButton = (0, _styledComponents.default)(_Button.default).withConfig({
19
+ displayName: "StyledButton",
20
+ componentId: "sc-128m29n-0"
21
+ })(["margin-left:auto;height:", ";width:", ";& svg{height:", ";width:", ";}"], (0, _rem.default)(_spacing.default.base * 1.2), (0, _rem.default)(_spacing.default.base * 1.2), (0, _rem.default)(_spacing.default.base * 1.2), (0, _rem.default)(_spacing.default.base * 1.2));
22
+ var _default = StyledButton;
23
+ exports.default = _default;
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { AlertProps } from './types';
3
+ export { AlertProps };
4
+ declare function Alert({ 'aria-label': ariaLabel, children, description, dismissable, icon, intent, onDismissClick, title, tooltipText, }: AlertProps): JSX.Element;
5
+ declare namespace Alert {
6
+ var propTypes: {
7
+ 'aria-label': import("prop-types").Requireable<string>;
8
+ description: import("prop-types").Requireable<string>;
9
+ dismissable: import("prop-types").Requireable<boolean>;
10
+ icon: import("prop-types").Requireable<import("prop-types").ReactElementLike>;
11
+ intent: import("prop-types").Requireable<string>;
12
+ title: import("prop-types").Validator<string>;
13
+ onDismissClick: import("prop-types").Requireable<(...args: any[]) => any>;
14
+ tooltipText: import("prop-types").Requireable<string>;
15
+ };
16
+ var defaultProps: {
17
+ 'aria-label': undefined;
18
+ description: undefined;
19
+ dismissable: boolean;
20
+ icon: undefined;
21
+ intent: string;
22
+ onDismissClick: undefined;
23
+ tooltipText: undefined;
24
+ };
25
+ }
26
+ export default Alert;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,UAAU,EAA2B,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,iBAAwB,KAAK,CAAC,EAC5B,YAAY,EAAE,SAAS,EACvB,QAAQ,EACR,WAAW,EACX,WAAW,EACX,IAAI,EACJ,MAAsB,EACtB,cAAc,EACd,KAAK,EACL,WAAW,GACZ,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAwD1B;kBAlEuB,KAAK;;;;;;;;;;;;;;;;;;;;;eAAL,KAAK"}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = Alert;
7
+ Object.defineProperty(exports, "AlertProps", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _types.AlertProps;
11
+ }
12
+ });
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
17
+
18
+ var _Times = _interopRequireDefault(require("@decisiv/iconix/lib/components/Times"));
19
+
20
+ var _useTranslations = _interopRequireDefault(require("../../utils/useTranslations"));
21
+
22
+ var _StyledButton = _interopRequireDefault(require("./StyledButton"));
23
+
24
+ var _Container = _interopRequireDefault(require("./Container"));
25
+
26
+ var _Flex = _interopRequireDefault(require("../Flex"));
27
+
28
+ var _Tooltip = _interopRequireDefault(require("../Tooltip"));
29
+
30
+ var _Typography = require("../Typography");
31
+
32
+ var _intents = _interopRequireDefault(require("./intents"));
33
+
34
+ var _types = require("./types");
35
+
36
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
+
38
+ 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; } }
39
+
40
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
41
+
42
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
43
+
44
+ function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
45
+
46
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
+
48
+ function Alert(_ref) {
49
+ var ariaLabel = _ref['aria-label'],
50
+ children = _ref.children,
51
+ description = _ref.description,
52
+ dismissable = _ref.dismissable,
53
+ icon = _ref.icon,
54
+ _ref$intent = _ref.intent,
55
+ intent = _ref$intent === void 0 ? 'information' : _ref$intent,
56
+ onDismissClick = _ref.onDismissClick,
57
+ title = _ref.title,
58
+ tooltipText = _ref.tooltipText;
59
+
60
+ var _useState = (0, _react.useState)(true),
61
+ _useState2 = _slicedToArray(_useState, 2),
62
+ open = _useState2[0],
63
+ setOpen = _useState2[1];
64
+
65
+ var translate = (0, _useTranslations.default)();
66
+ var borderColor = (0, _toColorString.default)(_intents.default[intent].borderColor);
67
+ var Icon = icon || _intents.default[intent].icon;
68
+
69
+ var handleClick = function handleClick() {
70
+ setOpen(false);
71
+ if (onDismissClick) onDismissClick();
72
+ };
73
+
74
+ if (!open) {
75
+ return _react.default.createElement(_react.default.Fragment, null);
76
+ }
77
+
78
+ return _react.default.createElement(_Container.default, {
79
+ flex: 1,
80
+ paddingLeft: 1.5,
81
+ paddingRight: 1.6,
82
+ paddingTop: 1.3,
83
+ paddingBottom: 1.1,
84
+ intent: intent
85
+ }, _react.default.createElement(Icon, {
86
+ color: borderColor
87
+ }), _react.default.createElement(_Flex.default, {
88
+ flexDirection: "column",
89
+ marginLeft: 1,
90
+ flex: 1
91
+ }, _react.default.createElement(_Flex.default, {
92
+ alignItems: "center",
93
+ flex: 1
94
+ }, _react.default.createElement(_Typography.P, {
95
+ weight: "semibold",
96
+ marginRight: 1
97
+ }, title), dismissable && _react.default.createElement(_Tooltip.default, {
98
+ placement: "auto",
99
+ target: // eslint-disable-next-line react/jsx-wrap-multilines
100
+ _react.default.createElement(_StyledButton.default, {
101
+ variant: "ghost",
102
+ icon: _Times.default,
103
+ onClick: handleClick,
104
+ "aria-label": translate(ariaLabel, 'alert.closeAlert')
105
+ })
106
+ }, translate(tooltipText, 'alert.close'))), _react.default.createElement(_Typography.P, {
107
+ size: "small"
108
+ }, children || description)));
109
+ }
110
+
111
+ Alert.propTypes = _types.propTypes;
112
+ Alert.defaultProps = _types.defaultProps;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ var _react = _interopRequireDefault(require("react"));
4
+
5
+ var _react2 = require("@testing-library/react");
6
+
7
+ var _ = _interopRequireDefault(require("."));
8
+
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+
11
+ describe('Alert', function () {
12
+ it('renders Title', function () {
13
+ var _render = (0, _react2.render)(_react.default.createElement(_.default, {
14
+ title: "Alert Title"
15
+ })),
16
+ getByText = _render.getByText;
17
+
18
+ expect(getByText(/alert title/i)).toBeInTheDocument();
19
+ });
20
+ describe('when has description', function () {
21
+ it('renders description', function () {
22
+ var _render2 = (0, _react2.render)(_react.default.createElement(_.default, {
23
+ title: "Alert Title",
24
+ description: "Alert Description"
25
+ })),
26
+ getByText = _render2.getByText;
27
+
28
+ expect(getByText(/alert description/i)).toBeInTheDocument();
29
+ });
30
+ it('renders children as description', function () {
31
+ var _render3 = (0, _react2.render)(_react.default.createElement(_.default, {
32
+ title: "Alert Title"
33
+ }, "Alert Description")),
34
+ getByText = _render3.getByText;
35
+
36
+ expect(getByText(/alert description/i)).toBeInTheDocument();
37
+ });
38
+ });
39
+ describe('when it is dismissable', function () {
40
+ it('renders close button', function () {
41
+ var _render4 = (0, _react2.render)(_react.default.createElement(_.default, {
42
+ title: "Alert Title",
43
+ dismissable: true,
44
+ "aria-label": "Close Alert"
45
+ })),
46
+ getByLabelText = _render4.getByLabelText;
47
+
48
+ expect(getByLabelText(/close alert/i)).toBeInTheDocument();
49
+ });
50
+ it('closes alert when clicking on dismiss button', function () {
51
+ var _render5 = (0, _react2.render)(_react.default.createElement(_.default, {
52
+ title: "Alert Title",
53
+ dismissable: true,
54
+ "aria-label": "Close Alert"
55
+ })),
56
+ getByLabelText = _render5.getByLabelText,
57
+ queryByText = _render5.queryByText;
58
+
59
+ _react2.fireEvent.click(getByLabelText(/close alert/i));
60
+
61
+ expect(queryByText(/alert title/i)).not.toBeInTheDocument();
62
+ });
63
+ it('triggers onDismissClick when clicking on dismiss button', function () {
64
+ var onDismissClick = jest.fn();
65
+
66
+ var _render6 = (0, _react2.render)(_react.default.createElement(_.default, {
67
+ title: "Alert Title",
68
+ dismissable: true,
69
+ "aria-label": "Close Alert",
70
+ onDismissClick: onDismissClick
71
+ })),
72
+ getByLabelText = _render6.getByLabelText;
73
+
74
+ _react2.fireEvent.click(getByLabelText(/close alert/i));
75
+
76
+ expect(onDismissClick).toHaveBeenCalled();
77
+ });
78
+ });
79
+ });
@@ -0,0 +1,13 @@
1
+ import theme from 'styled-theming';
2
+ import { Color } from '@decisiv/design-tokens/lib/color';
3
+ import InfoCircle from '@decisiv/iconix/lib/components/InfoCircle';
4
+ interface IntentRecord {
5
+ color: Color;
6
+ borderColor: Color;
7
+ icon: typeof InfoCircle;
8
+ }
9
+ declare type IntentType = Record<string, IntentRecord>;
10
+ declare const intents: IntentType;
11
+ export declare const intentStyle: theme.VariantSet;
12
+ export default intents;
13
+ //# sourceMappingURL=intents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intents.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/intents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,gBAAgB,CAAC;AAGnC,OAAc,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAKhE,OAAO,UAAU,MAAM,2CAA2C,CAAC;AAKnE,UAAU,YAAY;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,KAAK,CAAC;IACnB,IAAI,EAAE,OAAO,UAAU,CAAC;CACzB;AAED,aAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAE/C,QAAA,MAAM,OAAO,EAAE,UAqBd,CAAC;AAEF,eAAO,MAAM,WAAW,kBAyCtB,CAAC;AAEH,eAAe,OAAO,CAAC"}