@infonomic/uikit 6.8.1 → 6.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/README.md +183 -19
  2. package/dist/components/accordion/accordion.js +11 -11
  3. package/dist/components/accordion/accordion.module.css +11 -1
  4. package/dist/components/accordion/accordion_module.css +3 -1
  5. package/dist/components/avatar/avatar.js +5 -5
  6. package/dist/components/avatar/avatar.module.css +9 -4
  7. package/dist/components/avatar/avatar_module.css +3 -1
  8. package/dist/components/badge/badge.d.ts +1 -1
  9. package/dist/components/badge/badge.js +2 -2
  10. package/dist/components/badge/badge.module.css +9 -4
  11. package/dist/components/badge/badge_module.css +3 -1
  12. package/dist/components/button/button-group.d.ts +1 -1
  13. package/dist/components/button/button-group.js +2 -2
  14. package/dist/components/button/button-group.module.css +11 -1
  15. package/dist/components/button/button-group_module.css +4 -2
  16. package/dist/components/button/button.js +2 -2
  17. package/dist/components/button/button.module.css +9 -4
  18. package/dist/components/button/button_module.css +3 -1
  19. package/dist/components/button/combo-button.d.ts +1 -1
  20. package/dist/components/button/combo-button.js +8 -8
  21. package/dist/components/button/combo-button.module.css +11 -1
  22. package/dist/components/button/combo-button_module.css +3 -1
  23. package/dist/components/button/control-buttons.js +4 -4
  24. package/dist/components/button/control-buttons.module.css +11 -1
  25. package/dist/components/button/control-buttons_module.css +3 -1
  26. package/dist/components/button/copy-button.js +3 -3
  27. package/dist/components/button/copy-button.module.css +9 -4
  28. package/dist/components/button/copy-button_module.css +3 -1
  29. package/dist/components/button/icon-button.js +2 -2
  30. package/dist/components/button/index.d.ts +5 -5
  31. package/dist/components/card/card.js +7 -7
  32. package/dist/components/card/card.module.css +9 -4
  33. package/dist/components/card/card_module.css +3 -1
  34. package/dist/components/chips/chip.js +6 -6
  35. package/dist/components/chips/chip.module.css +9 -4
  36. package/dist/components/chips/chip_module.css +3 -1
  37. package/dist/components/container/container.js +2 -2
  38. package/dist/components/container/container.module.css +9 -4
  39. package/dist/components/container/container_module.css +6 -4
  40. package/dist/components/dropdown/dropdown.js +20 -20
  41. package/dist/components/dropdown/dropdown.module.css +9 -4
  42. package/dist/components/dropdown/dropdown_module.css +3 -1
  43. package/dist/components/hamburger/hamburger.js +4 -4
  44. package/dist/components/hamburger/hamburger.module.css +9 -4
  45. package/dist/components/hamburger/hamburger_module.css +3 -1
  46. package/dist/components/inputs/autocomplete.js +10 -10
  47. package/dist/components/inputs/autocomplete.module.css +9 -4
  48. package/dist/components/inputs/autocomplete_module.css +3 -1
  49. package/dist/components/inputs/calendar.js +24 -24
  50. package/dist/components/inputs/calendar.module.css +9 -4
  51. package/dist/components/inputs/calendar_module.css +4 -2
  52. package/dist/components/inputs/checkbox-group.js +2 -2
  53. package/dist/components/inputs/checkbox-group.module.css +9 -4
  54. package/dist/components/inputs/checkbox-group_module.css +3 -1
  55. package/dist/components/inputs/checkbox.js +6 -6
  56. package/dist/components/inputs/checkbox.module.css +9 -4
  57. package/dist/components/inputs/checkbox_module.css +3 -1
  58. package/dist/components/inputs/error-text.js +2 -2
  59. package/dist/components/inputs/error-text.module.css +9 -4
  60. package/dist/components/inputs/error-text_module.css +3 -1
  61. package/dist/components/inputs/help-text.js +2 -2
  62. package/dist/components/inputs/help-text.module.css +9 -4
  63. package/dist/components/inputs/help-text_module.css +3 -1
  64. package/dist/components/inputs/input-adornment.js +2 -2
  65. package/dist/components/inputs/input-adornment.module.css +9 -4
  66. package/dist/components/inputs/input-adornment_module.css +3 -1
  67. package/dist/components/inputs/input-password.d.ts +18 -2
  68. package/dist/components/inputs/input-password.d.ts.map +1 -1
  69. package/dist/components/inputs/input-password.js +19 -11
  70. package/dist/components/inputs/input-password.module.css +55 -0
  71. package/dist/components/inputs/input-password.module.js +5 -0
  72. package/dist/components/inputs/input-password_module.css +25 -0
  73. package/dist/components/inputs/input.d.ts +1 -1
  74. package/dist/components/inputs/input.js +6 -6
  75. package/dist/components/inputs/input.module.css +9 -4
  76. package/dist/components/inputs/input_module.css +3 -1
  77. package/dist/components/inputs/label.js +2 -2
  78. package/dist/components/inputs/label.module.css +9 -4
  79. package/dist/components/inputs/label_module.css +3 -1
  80. package/dist/components/inputs/radio-group.d.ts +1 -1
  81. package/dist/components/inputs/radio-group.js +3 -3
  82. package/dist/components/inputs/radio-group.module.css +9 -4
  83. package/dist/components/inputs/radio-group_module.css +3 -1
  84. package/dist/components/inputs/select.js +6 -6
  85. package/dist/components/inputs/select.module.css +9 -4
  86. package/dist/components/inputs/select_module.css +3 -1
  87. package/dist/components/inputs/text-area.js +3 -3
  88. package/dist/components/inputs/text-area.module.css +9 -4
  89. package/dist/components/inputs/text-area_module.css +3 -1
  90. package/dist/components/notifications/alert.js +11 -11
  91. package/dist/components/notifications/alert.module.css +9 -4
  92. package/dist/components/notifications/alert_module.css +4 -2
  93. package/dist/components/notifications/toast.js +8 -8
  94. package/dist/components/notifications/toast.module.css +9 -4
  95. package/dist/components/notifications/toast_module.css +5 -3
  96. package/dist/components/pager/ellipses.js +2 -2
  97. package/dist/components/pager/first-button.d.ts +1 -1
  98. package/dist/components/pager/first-button.js +2 -2
  99. package/dist/components/pager/hooks/usePagination.d.ts +1 -1
  100. package/dist/components/pager/last-button.d.ts +1 -1
  101. package/dist/components/pager/last-button.js +2 -2
  102. package/dist/components/pager/next-button.d.ts +1 -1
  103. package/dist/components/pager/next-button.js +2 -2
  104. package/dist/components/pager/number-button.d.ts +1 -1
  105. package/dist/components/pager/number-button.js +3 -3
  106. package/dist/components/pager/pagination.d.ts +7 -7
  107. package/dist/components/pager/pagination.js +3 -3
  108. package/dist/components/pager/pagination.module.css +9 -4
  109. package/dist/components/pager/pagination_module.css +4 -2
  110. package/dist/components/pager/previous-button.d.ts +1 -1
  111. package/dist/components/pager/previous-button.js +2 -2
  112. package/dist/components/scroll-area/scroll-area.js +8 -8
  113. package/dist/components/scroll-area/scroll-area.module.css +9 -4
  114. package/dist/components/scroll-area/scroll-area_module.css +3 -1
  115. package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
  116. package/dist/components/scroll-to-top/scroll-to-top.module.css +9 -3
  117. package/dist/components/scroll-to-top/scroll-to-top_module.css +4 -2
  118. package/dist/components/section/section.js +2 -2
  119. package/dist/components/section/section.module.css +9 -4
  120. package/dist/components/section/section_module.css +3 -1
  121. package/dist/components/shimmer/shimmer.js +4 -4
  122. package/dist/components/shimmer/shimmer.module.css +9 -4
  123. package/dist/components/shimmer/shimmer_module.css +3 -1
  124. package/dist/components/table/table.js +10 -10
  125. package/dist/components/table/table.module.css +9 -4
  126. package/dist/components/table/table_module.css +3 -1
  127. package/dist/components/tabs/tabs.js +5 -5
  128. package/dist/components/tabs/tabs.module.css +9 -4
  129. package/dist/components/tabs/tabs_module.css +3 -1
  130. package/dist/components/tooltip/tooltip.js +3 -3
  131. package/dist/components/tooltip/tooltip.module.css +9 -4
  132. package/dist/components/tooltip/tooltip_module.css +3 -1
  133. package/dist/css-layers.d.ts +23 -0
  134. package/dist/css-layers.d.ts.map +1 -0
  135. package/dist/css-layers.js +14 -0
  136. package/dist/icons/activity-icon.js +3 -3
  137. package/dist/icons/ai-icon.js +3 -3
  138. package/dist/icons/calendar-icon.js +3 -3
  139. package/dist/icons/check-icon.js +3 -3
  140. package/dist/icons/chevron-down-icon.js +3 -3
  141. package/dist/icons/chevron-left-double-icon.js +3 -3
  142. package/dist/icons/chevron-left-icon.js +3 -3
  143. package/dist/icons/chevron-right-double-icon.js +3 -3
  144. package/dist/icons/chevron-right-icon.js +3 -3
  145. package/dist/icons/chevron-up-icon.js +3 -3
  146. package/dist/icons/chevrons-up-down.js +3 -3
  147. package/dist/icons/close-icon.js +3 -3
  148. package/dist/icons/copy-icon.js +3 -3
  149. package/dist/icons/danger-icon.js +3 -3
  150. package/dist/icons/dashboard-icon.js +3 -3
  151. package/dist/icons/delete-icon.js +3 -3
  152. package/dist/icons/document-icon.js +3 -3
  153. package/dist/icons/download-icon.js +3 -3
  154. package/dist/icons/edit-icon.js +3 -3
  155. package/dist/icons/ellipsis-icon.js +3 -3
  156. package/dist/icons/email-icon.js +3 -3
  157. package/dist/icons/external-link-icon.js +3 -3
  158. package/dist/icons/eye-closed-icon.js +3 -3
  159. package/dist/icons/eye-open-icon.js +3 -3
  160. package/dist/icons/github-icon.js +3 -3
  161. package/dist/icons/globe-icon.js +3 -3
  162. package/dist/icons/google-icon.js +2 -2
  163. package/dist/icons/gripper-vertical-icon.js +3 -3
  164. package/dist/icons/history-icon.js +3 -3
  165. package/dist/icons/home-icon.js +3 -3
  166. package/dist/icons/icon-element.js +2 -2
  167. package/dist/icons/icons.module.css +11 -1
  168. package/dist/icons/icons_module.css +3 -1
  169. package/dist/icons/info-icon.js +3 -3
  170. package/dist/icons/infonomic-icon.js +3 -3
  171. package/dist/icons/light-icon.js +3 -3
  172. package/dist/icons/location-pin-icon.js +3 -3
  173. package/dist/icons/markdown-icon.js +3 -3
  174. package/dist/icons/moon-icon.js +3 -3
  175. package/dist/icons/plus-icon.js +3 -3
  176. package/dist/icons/primary-icon.js +3 -3
  177. package/dist/icons/refresh-icon.js +3 -3
  178. package/dist/icons/return-icon.js +3 -3
  179. package/dist/icons/roles-icon.js +3 -3
  180. package/dist/icons/search-icon.js +3 -3
  181. package/dist/icons/search-menu-icon.js +3 -3
  182. package/dist/icons/settings-gear-icon.js +3 -3
  183. package/dist/icons/settings-sliders-icon.js +3 -3
  184. package/dist/icons/sign-out-icon.js +3 -3
  185. package/dist/icons/stop-icon.js +3 -3
  186. package/dist/icons/stopwatch-icon.d.ts +1 -1
  187. package/dist/icons/stopwatch-icon.js +3 -3
  188. package/dist/icons/success-icon.js +3 -3
  189. package/dist/icons/user-icon.js +3 -3
  190. package/dist/icons/users-icon.js +3 -3
  191. package/dist/icons/wallet-icon.js +3 -3
  192. package/dist/icons/warning-icon.js +3 -3
  193. package/dist/icons/x-icon.js +3 -3
  194. package/dist/loaders/ellipses.js +3 -3
  195. package/dist/loaders/ellipses.module.css +9 -4
  196. package/dist/loaders/ellipses_module.css +3 -1
  197. package/dist/loaders/ring.js +3 -3
  198. package/dist/loaders/ring.module.css +9 -4
  199. package/dist/loaders/ring_module.css +3 -1
  200. package/dist/loaders/spinner.js +4 -4
  201. package/dist/loaders/spinner.module.css +9 -4
  202. package/dist/loaders/spinner_module.css +3 -1
  203. package/dist/react.d.ts +14 -14
  204. package/dist/styles/components-vanilla.css +1 -1
  205. package/dist/styles/reset.css +1 -1
  206. package/dist/styles/styles.css +1 -1
  207. package/dist/styles/typography.css +1 -1
  208. package/dist/widgets/datepicker/datepicker.d.ts +42 -1
  209. package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
  210. package/dist/widgets/datepicker/datepicker.js +46 -16
  211. package/dist/widgets/datepicker/datepicker.module.css +21 -2
  212. package/dist/widgets/datepicker/datepicker.module.js +1 -0
  213. package/dist/widgets/datepicker/datepicker_module.css +7 -2
  214. package/dist/widgets/drawer/drawer-container.js +2 -2
  215. package/dist/widgets/drawer/drawer-content.js +2 -2
  216. package/dist/widgets/drawer/drawer-header.js +2 -2
  217. package/dist/widgets/drawer/drawer-top-actions.js +2 -2
  218. package/dist/widgets/drawer/drawer.d.ts +4 -4
  219. package/dist/widgets/drawer/drawer.js +3 -3
  220. package/dist/widgets/drawer/drawer.module.css +11 -1
  221. package/dist/widgets/drawer/drawer_module.css +4 -2
  222. package/dist/widgets/modal/modal-actions.js +2 -2
  223. package/dist/widgets/modal/modal-container.js +2 -2
  224. package/dist/widgets/modal/modal-content.js +2 -2
  225. package/dist/widgets/modal/modal-context.d.ts +20 -0
  226. package/dist/widgets/modal/modal-context.d.ts.map +1 -0
  227. package/dist/widgets/modal/modal-context.js +4 -0
  228. package/dist/widgets/modal/modal-header.d.ts +1 -1
  229. package/dist/widgets/modal/modal-header.d.ts.map +1 -1
  230. package/dist/widgets/modal/modal-header.js +25 -3
  231. package/dist/widgets/modal/modal.d.ts +13 -8
  232. package/dist/widgets/modal/modal.d.ts.map +1 -1
  233. package/dist/widgets/modal/modal.js +11 -7
  234. package/dist/widgets/modal/modal.module.css +11 -1
  235. package/dist/widgets/modal/modal_module.css +5 -3
  236. package/dist/widgets/timeline/timeline.js +8 -8
  237. package/dist/widgets/timeline/timeline.module.css +9 -4
  238. package/dist/widgets/timeline/timeline_module.css +3 -1
  239. package/package.json +46 -33
  240. package/src/components/accordion/accordion.module.css +11 -1
  241. package/src/components/accordion/accordion.tsx +1 -1
  242. package/src/components/avatar/avatar.module.css +9 -4
  243. package/src/components/avatar/avatar.tsx +1 -1
  244. package/src/components/badge/badge.module.css +9 -4
  245. package/src/components/badge/badge.tsx +1 -1
  246. package/src/components/button/button-group.module.css +11 -1
  247. package/src/components/button/button-group.tsx +1 -1
  248. package/src/components/button/button.module.css +9 -4
  249. package/src/components/button/button.tsx +1 -1
  250. package/src/components/button/combo-button.module.css +11 -1
  251. package/src/components/button/combo-button.tsx +1 -1
  252. package/src/components/button/control-buttons.module.css +11 -1
  253. package/src/components/button/control-buttons.tsx +1 -1
  254. package/src/components/button/copy-button.module.css +9 -4
  255. package/src/components/button/copy-button.tsx +1 -1
  256. package/src/components/button/icon-button.tsx +1 -1
  257. package/src/components/card/card.module.css +9 -4
  258. package/src/components/card/card.tsx +1 -1
  259. package/src/components/chips/chip.module.css +9 -4
  260. package/src/components/chips/chip.tsx +1 -1
  261. package/src/components/container/container.module.css +9 -4
  262. package/src/components/container/container.tsx +1 -1
  263. package/src/components/dropdown/dropdown.module.css +9 -4
  264. package/src/components/dropdown/dropdown.tsx +1 -1
  265. package/src/components/hamburger/hamburger.module.css +9 -4
  266. package/src/components/hamburger/hamburger.tsx +1 -1
  267. package/src/components/inputs/autocomplete.module.css +9 -4
  268. package/src/components/inputs/autocomplete.tsx +1 -1
  269. package/src/components/inputs/calendar.module.css +9 -4
  270. package/src/components/inputs/calendar.tsx +1 -1
  271. package/src/components/inputs/checkbox-group.module.css +9 -4
  272. package/src/components/inputs/checkbox-group.tsx +1 -1
  273. package/src/components/inputs/checkbox.module.css +9 -4
  274. package/src/components/inputs/checkbox.tsx +1 -1
  275. package/src/components/inputs/error-text.module.css +9 -4
  276. package/src/components/inputs/error-text.tsx +1 -1
  277. package/src/components/inputs/help-text.module.css +9 -4
  278. package/src/components/inputs/help-text.tsx +1 -1
  279. package/src/components/inputs/input-adornment.module.css +9 -4
  280. package/src/components/inputs/input-adornment.tsx +1 -1
  281. package/src/components/inputs/input-password.module.css +55 -0
  282. package/src/components/inputs/input-password.tsx +49 -7
  283. package/src/components/inputs/input.module.css +9 -4
  284. package/src/components/inputs/input.tsx +1 -1
  285. package/src/components/inputs/label.module.css +9 -4
  286. package/src/components/inputs/label.tsx +1 -1
  287. package/src/components/inputs/radio-group.module.css +9 -4
  288. package/src/components/inputs/radio-group.tsx +1 -1
  289. package/src/components/inputs/select.module.css +9 -4
  290. package/src/components/inputs/select.tsx +1 -1
  291. package/src/components/inputs/text-area.module.css +9 -4
  292. package/src/components/inputs/text-area.tsx +1 -1
  293. package/src/components/notifications/alert.module.css +9 -4
  294. package/src/components/notifications/alert.tsx +1 -1
  295. package/src/components/notifications/toast.module.css +9 -4
  296. package/src/components/notifications/toast.tsx +1 -1
  297. package/src/components/pager/ellipses.tsx +1 -1
  298. package/src/components/pager/first-button.tsx +1 -1
  299. package/src/components/pager/last-button.tsx +1 -1
  300. package/src/components/pager/next-button.tsx +1 -1
  301. package/src/components/pager/number-button.tsx +1 -1
  302. package/src/components/pager/pagination.module.css +9 -4
  303. package/src/components/pager/pagination.tsx +1 -1
  304. package/src/components/pager/previous-button.tsx +1 -1
  305. package/src/components/scroll-area/scroll-area.module.css +9 -4
  306. package/src/components/scroll-area/scroll-area.tsx +1 -1
  307. package/src/components/scroll-to-top/scroll-to-top.module.css +9 -3
  308. package/src/components/scroll-to-top/scroll-to-top.tsx +1 -1
  309. package/src/components/section/section.module.css +9 -4
  310. package/src/components/section/section.tsx +1 -1
  311. package/src/components/shimmer/shimmer.module.css +9 -4
  312. package/src/components/shimmer/shimmer.tsx +1 -1
  313. package/src/components/table/table.module.css +9 -4
  314. package/src/components/table/table.tsx +1 -1
  315. package/src/components/tabs/tabs.module.css +9 -4
  316. package/src/components/tabs/tabs.tsx +1 -1
  317. package/src/components/tooltip/tooltip.module.css +9 -4
  318. package/src/components/tooltip/tooltip.tsx +1 -1
  319. package/src/css-layers.ts +34 -0
  320. package/src/icons/activity-icon.tsx +1 -1
  321. package/src/icons/ai-icon.tsx +1 -1
  322. package/src/icons/calendar-icon.tsx +1 -1
  323. package/src/icons/check-icon.tsx +1 -1
  324. package/src/icons/chevron-down-icon.tsx +1 -1
  325. package/src/icons/chevron-left-double-icon.tsx +1 -1
  326. package/src/icons/chevron-left-icon.tsx +1 -1
  327. package/src/icons/chevron-right-double-icon.tsx +1 -1
  328. package/src/icons/chevron-right-icon.tsx +1 -1
  329. package/src/icons/chevron-up-icon.tsx +1 -1
  330. package/src/icons/chevrons-up-down.tsx +1 -1
  331. package/src/icons/close-icon.tsx +1 -1
  332. package/src/icons/copy-icon.tsx +1 -1
  333. package/src/icons/danger-icon.tsx +1 -1
  334. package/src/icons/dashboard-icon.tsx +1 -1
  335. package/src/icons/delete-icon.tsx +1 -1
  336. package/src/icons/document-icon.tsx +1 -1
  337. package/src/icons/download-icon.tsx +1 -1
  338. package/src/icons/edit-icon.tsx +1 -1
  339. package/src/icons/ellipsis-icon.tsx +1 -1
  340. package/src/icons/email-icon.tsx +1 -1
  341. package/src/icons/external-link-icon.tsx +1 -1
  342. package/src/icons/eye-closed-icon.tsx +1 -1
  343. package/src/icons/eye-open-icon.tsx +1 -1
  344. package/src/icons/github-icon.tsx +1 -1
  345. package/src/icons/globe-icon.tsx +1 -1
  346. package/src/icons/google-icon.tsx +1 -1
  347. package/src/icons/gripper-vertical-icon.tsx +1 -1
  348. package/src/icons/history-icon.tsx +1 -1
  349. package/src/icons/home-icon.tsx +1 -1
  350. package/src/icons/icon-element.tsx +1 -1
  351. package/src/icons/icons.module.css +11 -1
  352. package/src/icons/info-icon.tsx +1 -1
  353. package/src/icons/infonomic-icon.tsx +1 -1
  354. package/src/icons/light-icon.tsx +1 -1
  355. package/src/icons/location-pin-icon.tsx +1 -1
  356. package/src/icons/markdown-icon.tsx +1 -1
  357. package/src/icons/moon-icon.tsx +1 -1
  358. package/src/icons/plus-icon.tsx +1 -1
  359. package/src/icons/primary-icon.tsx +1 -1
  360. package/src/icons/refresh-icon.tsx +1 -1
  361. package/src/icons/return-icon.tsx +1 -1
  362. package/src/icons/roles-icon.tsx +1 -1
  363. package/src/icons/search-icon.tsx +1 -1
  364. package/src/icons/search-menu-icon.tsx +1 -1
  365. package/src/icons/settings-gear-icon.tsx +1 -1
  366. package/src/icons/settings-sliders-icon.tsx +1 -1
  367. package/src/icons/sign-out-icon.tsx +1 -1
  368. package/src/icons/stop-icon.tsx +1 -1
  369. package/src/icons/stopwatch-icon.tsx +1 -1
  370. package/src/icons/success-icon.tsx +1 -1
  371. package/src/icons/user-icon.tsx +1 -1
  372. package/src/icons/users-icon.tsx +1 -1
  373. package/src/icons/wallet-icon.tsx +1 -1
  374. package/src/icons/warning-icon.tsx +1 -1
  375. package/src/icons/x-icon.tsx +1 -1
  376. package/src/loaders/ellipses.module.css +9 -4
  377. package/src/loaders/ellipses.tsx +1 -1
  378. package/src/loaders/ring.module.css +9 -4
  379. package/src/loaders/ring.tsx +1 -1
  380. package/src/loaders/spinner.module.css +9 -4
  381. package/src/loaders/spinner.tsx +1 -1
  382. package/src/styles/base/animations.css +12 -0
  383. package/src/styles/base/base.css +12 -0
  384. package/src/styles/base/borders.css +12 -0
  385. package/src/styles/base/breakpoints.css +12 -0
  386. package/src/styles/base/colors.css +12 -0
  387. package/src/styles/base/opacity.css +12 -0
  388. package/src/styles/base/shadows.css +12 -0
  389. package/src/styles/base/size.css +12 -0
  390. package/src/styles/base/spacing.css +12 -0
  391. package/src/styles/base/transitions.css +12 -0
  392. package/src/styles/base/typography.css +12 -0
  393. package/src/styles/base/z-index.css +12 -0
  394. package/src/styles/components/components.css +12 -0
  395. package/src/styles/components/fade-in-lift.css +27 -13
  396. package/src/styles/components/hamburger.css +11 -6
  397. package/src/styles/components/loaders.css +168 -154
  398. package/src/styles/functional/README.md +18 -18
  399. package/src/styles/functional/borders.css +12 -0
  400. package/src/styles/functional/colors.css +12 -0
  401. package/src/styles/functional/functional.css +12 -0
  402. package/src/styles/functional/grid-flex.css +12 -0
  403. package/src/styles/functional/shadcn-compat.css +12 -0
  404. package/src/styles/functional/surfaces.css +12 -0
  405. package/src/styles/functional/typography.css +12 -0
  406. package/src/styles/local-fonts.css +12 -0
  407. package/src/styles/reset.css +18 -0
  408. package/src/styles/styles.css +9 -4
  409. package/src/styles/theme/autofill.css +12 -0
  410. package/src/styles/theme/defaults.css +12 -0
  411. package/src/styles/theme/scrollers.css +12 -0
  412. package/src/styles/theme/theme.css +12 -0
  413. package/src/styles/typography/fonts.css +12 -0
  414. package/src/styles/typography/prose.css +12 -0
  415. package/src/styles/typography.css +12 -0
  416. package/src/styles/utils/scroll-layout-shift.css +12 -0
  417. package/src/styles/utils/utility-classes.css +12 -0
  418. package/src/styles/utils/utils.css +12 -0
  419. package/src/widgets/datepicker/datepicker.module.css +21 -2
  420. package/src/widgets/datepicker/datepicker.tsx +98 -5
  421. package/src/widgets/drawer/drawer-container.tsx +1 -1
  422. package/src/widgets/drawer/drawer-content.tsx +1 -1
  423. package/src/widgets/drawer/drawer-header.tsx +1 -1
  424. package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
  425. package/src/widgets/drawer/drawer.module.css +11 -1
  426. package/src/widgets/drawer/drawer.tsx +1 -1
  427. package/src/widgets/modal/modal-actions.tsx +1 -1
  428. package/src/widgets/modal/modal-container.tsx +1 -1
  429. package/src/widgets/modal/modal-content.tsx +1 -1
  430. package/src/widgets/modal/modal-context.ts +23 -0
  431. package/src/widgets/modal/modal-header.tsx +30 -3
  432. package/src/widgets/modal/modal.module.css +11 -1
  433. package/src/widgets/modal/modal.tsx +16 -7
  434. package/src/widgets/timeline/timeline.module.css +9 -4
  435. package/src/widgets/timeline/timeline.tsx +1 -1
@@ -1,3 +1,15 @@
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
12
+
1
13
  /*
2
14
  * Adapted from Tailwind typography plugin
3
15
  * Portions copyright (c) Tailwind Labs, Inc.
@@ -1,3 +1,15 @@
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
12
+
1
13
  @import "./typography/fonts.css";
2
14
  @import "./typography/prose.css";
3
15
 
@@ -1,3 +1,15 @@
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
12
+
1
13
  @layer infonomic-utilities {
2
14
  .fix-scroll-layout-shift-right {
3
15
  padding-right: var(--removed-body-scroll-bar-size);
@@ -1,3 +1,15 @@
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
12
+
1
13
  /**
2
14
  * UTILITY CLASSES
3
15
  *
@@ -1,2 +1,14 @@
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
12
+
1
13
  @import "./utility-classes.css";
2
14
  @import "./scroll-layout-shift.css";
@@ -1,4 +1,14 @@
1
- @layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-components;
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
2
12
 
3
13
  @layer infonomic-components {
4
14
  .container,
@@ -13,10 +23,19 @@
13
23
  width: 100%;
14
24
  }
15
25
 
26
+ /* Base UI's Positioner is the absolutely-positioned element, so it is the
27
+ one that can take part in z-index stacking. The Popup inside it is
28
+ `position: static`, where a z-index is inert — which is why the calendar
29
+ lost to any positioned ancestor above it in the tree, most visibly by
30
+ rendering behind a Modal. */
31
+ .positioner,
32
+ :global(.infonomic-datepicker-positioner) {
33
+ z-index: 50;
34
+ }
35
+
16
36
  .content,
17
37
  :global(.infonomic-datepicker-content) {
18
38
  width: 100%;
19
- z-index: 50;
20
39
  border-radius: 4px;
21
40
  padding-top: var(--spacing-16);
22
41
  padding-bottom: var(--spacing-8);
@@ -11,7 +11,7 @@ import type React from 'react'
11
11
  import { useEffect, useRef, useState } from 'react'
12
12
 
13
13
  import { Popover } from '@base-ui/react/popover'
14
- import cx from 'classnames'
14
+ import cx from 'clsx'
15
15
  import { format } from 'date-fns'
16
16
 
17
17
  import { Button } from '../../components/button/button.js'
@@ -25,6 +25,24 @@ import { CloseIcon } from '../../icons/close-icon.js'
25
25
  import styles from './datepicker.module.css'
26
26
  import type { Intent, Size, Variant } from '../../components/inputs/@types/input.js'
27
27
 
28
+ /**
29
+ * The selection as the editor made it: a calendar day and a clock reading,
30
+ * with no instant attached.
31
+ *
32
+ * `onDateChange` reports a `Date`, which is an instant, and building one from a
33
+ * wall time goes through `setHours` — so on the two days a year the clocks
34
+ * change, the instant is not the time that was picked. A spring-forward 02:30
35
+ * comes back as 03:30, and an ambiguous autumn 01:30 silently resolves to the
36
+ * earlier of its two instants. Callers that must reject or disambiguate those
37
+ * cases need the wall time itself, which is what this carries.
38
+ */
39
+ export interface DatePickerWallTime {
40
+ /** Calendar day as `YYYY-MM-DD`. */
41
+ date: string
42
+ /** Clock reading as `HH:mm`, 24-hour. */
43
+ time: string
44
+ }
45
+
28
46
  export interface DatePickerProps extends React.InputHTMLAttributes<HTMLInputElement> {
29
47
  id: string
30
48
  name: string
@@ -32,6 +50,23 @@ export interface DatePickerProps extends React.InputHTMLAttributes<HTMLInputElem
32
50
  required?: boolean
33
51
  initialValue?: Date | null
34
52
  mode?: 'date' | 'datetime'
53
+ /**
54
+ * Earliest selectable day. Days before it are disabled in the calendar and
55
+ * the month navigation will not go back past its month.
56
+ *
57
+ * Day granularity only — the day containing `minDate` stays selectable in
58
+ * full, and in `datetime` mode every slot in the time list remains offered.
59
+ * A caller that needs a cutoff finer than a day has to enforce it itself.
60
+ */
61
+ minDate?: Date
62
+ /**
63
+ * Latest selectable day, the mirror of `minDate`: days after it are disabled
64
+ * and the month navigation will not go forward past its month. Takes
65
+ * precedence over `yearsInFuture`, which otherwise sets the upper bound.
66
+ *
67
+ * Day granularity only, on the same terms as `minDate`.
68
+ */
69
+ maxDate?: Date
35
70
  yearsInFuture?: number
36
71
  yearsInPast?: number
37
72
  variant?: Variant
@@ -47,6 +82,13 @@ export interface DatePickerProps extends React.InputHTMLAttributes<HTMLInputElem
47
82
  ariaLabelForClear?: string
48
83
  onClear?: () => void
49
84
  onDateChange?: (value: Date | null) => void
85
+ /**
86
+ * Fired alongside `onDateChange` with the day and clock reading the editor
87
+ * actually selected, before any instant is derived from them. Optional and
88
+ * additive — callers that are happy with the `Date` can ignore it entirely.
89
+ * Reports `null` when the selection is cleared.
90
+ */
91
+ onWallTimeChange?: (wall: DatePickerWallTime | null) => void
50
92
  validatorFn?: (value: Date) => {
51
93
  valid: boolean
52
94
  value: Date
@@ -61,6 +103,8 @@ export function DatePicker({
61
103
  required,
62
104
  initialValue,
63
105
  mode = 'datetime',
106
+ minDate,
107
+ maxDate,
64
108
  yearsInFuture = 1,
65
109
  yearsInPast = 10,
66
110
  variant,
@@ -72,6 +116,7 @@ export function DatePicker({
72
116
  contentClassName,
73
117
  onClear = () => {},
74
118
  onDateChange = () => {},
119
+ onWallTimeChange,
75
120
  validatorFn,
76
121
  helpText,
77
122
  errorText,
@@ -81,7 +126,6 @@ export function DatePicker({
81
126
  ...rest
82
127
  }: DatePickerProps): React.JSX.Element {
83
128
  const [isOpen, setIsOpen] = useState(false)
84
- const [time, setTime] = useState<string>('08:00')
85
129
  const [date, setDate] = useState<Date | null>(() => {
86
130
  if (initialValue) {
87
131
  return initialValue
@@ -91,6 +135,11 @@ export function DatePicker({
91
135
  }
92
136
  return null
93
137
  })
138
+ // Seeded from the incoming date so the clock the widget holds agrees with the
139
+ // date it is showing. Declared after `date` for that reason. Previously this
140
+ // always started at 08:00, so picking a different day on a picker opened at
141
+ // 17:56 silently moved the value to 08:00.
142
+ const [time, setTime] = useState<string>(() => (date != null ? format(date, 'HH:mm') : '08:00'))
94
143
  const [month, setMonth] = useState<Date | null>(date)
95
144
  const calendarRef = useRef<HTMLDivElement | null>(null)
96
145
  const inputRef = useRef<HTMLInputElement>(null)
@@ -102,6 +151,7 @@ export function DatePicker({
102
151
  }
103
152
  setDate(null)
104
153
  onDateChange(null)
154
+ emitWallTime(null, time)
105
155
  onClear()
106
156
  }
107
157
 
@@ -111,6 +161,26 @@ export function DatePicker({
111
161
  }
112
162
  }
113
163
 
164
+ /**
165
+ * Report the selection as a wall time. `clock` is passed explicitly wherever
166
+ * the editor's chosen clock reading is known independently of `day`, because
167
+ * `day` has already been through `setHours` by then and cannot be trusted to
168
+ * still say what was picked.
169
+ */
170
+ const emitWallTime = (day: Date | null, clock: string): void => {
171
+ if (onWallTimeChange == null) return
172
+ onWallTimeChange(day == null ? null : { date: format(day, 'yyyy-MM-dd'), time: clock })
173
+ }
174
+
175
+ // Two separate matchers, never one `{ before, after }` object: that shape is
176
+ // react-day-picker's DateInterval and matches the days *between* the two
177
+ // bounds — the exact inverse of an allowed window. An array of matchers is
178
+ // OR'd, so each bound disables its own side.
179
+ const disabledDays = [
180
+ ...(minDate == null ? [] : [{ before: minDate }]),
181
+ ...(maxDate == null ? [] : [{ after: maxDate }]),
182
+ ]
183
+
114
184
  const handleOnKeyDown = (e: React.KeyboardEvent<HTMLInputElement>): void => {
115
185
  if (e.key === 'ArrowDown') {
116
186
  e.preventDefault()
@@ -132,6 +202,7 @@ export function DatePicker({
132
202
  ) {
133
203
  hasInitialized.current = true
134
204
  onDateChange(date)
205
+ emitWallTime(date, time)
135
206
  }
136
207
  })
137
208
 
@@ -205,7 +276,10 @@ export function DatePicker({
205
276
  <span className="sr-only">Select date</span>
206
277
  </Popover.Trigger>
207
278
  <Popover.Portal>
208
- <Popover.Positioner sideOffset={5}>
279
+ <Popover.Positioner
280
+ sideOffset={5}
281
+ className={cx('infonomic-datepicker-positioner', styles.positioner)}
282
+ >
209
283
  <Popover.Popup
210
284
  className={cx('infonomic-datepicker-content', styles.content, contentClassName)}
211
285
  >
@@ -225,6 +299,10 @@ export function DatePicker({
225
299
  onMonthChange={setMonth}
226
300
  onSelect={(selectedDate: Date) => {
227
301
  if (selectedDate) {
302
+ // Read the day before `setHours` mutates it: the
303
+ // editor picked this day at the clock reading already
304
+ // held in `time`, and normalization can move both.
305
+ const day = new Date(selectedDate.getTime())
228
306
  const [hours, minutes] = time.split(':')
229
307
  selectedDate.setHours(
230
308
  Number.parseInt(hours, 10),
@@ -233,10 +311,15 @@ export function DatePicker({
233
311
  setDate(selectedDate)
234
312
  setMonth(selectedDate)
235
313
  handleOnDateChange(selectedDate)
314
+ emitWallTime(day, time)
236
315
  }
237
316
  }}
238
- startMonth={new Date(new Date().getFullYear() - yearsInPast, 0)}
239
- endMonth={new Date(new Date().getFullYear() + yearsInFuture, 0)}
317
+ disabled={disabledDays.length > 0 ? disabledDays : undefined}
318
+ // Clamp the navigable range to the bounds as well as
319
+ // disabling the days, so the caller is not offered months
320
+ // in which nothing can be picked.
321
+ startMonth={minDate ?? new Date(new Date().getFullYear() - yearsInPast, 0)}
322
+ endMonth={maxDate ?? new Date(new Date().getFullYear() + yearsInFuture, 0)}
240
323
  // TODO: add props
241
324
  // disabled={(date) =>
242
325
  // Number(date) < Date.now() - 1000 * 60 * 60 * 24 ||
@@ -271,6 +354,10 @@ export function DatePicker({
271
354
  )
272
355
  setDate(newDate)
273
356
  handleOnDateChange(newDate)
357
+ // `date`, not `newDate` — the grid label is
358
+ // what was clicked, and `newDate` may have
359
+ // been normalized away from it.
360
+ emitWallTime(date, timeValue)
274
361
  }
275
362
  }}
276
363
  >
@@ -307,9 +394,14 @@ export function DatePicker({
307
394
  )}
308
395
  onClick={() => {
309
396
  const today = new Date()
397
+ const clock = format(today, 'HH:mm')
310
398
  setDate(today)
311
399
  setMonth(today)
400
+ // Keep the held clock in step with the value, so a
401
+ // subsequent day pick preserves this time.
402
+ setTime(clock)
312
403
  handleOnDateChange(today)
404
+ emitWallTime(today, clock)
313
405
  }}
314
406
  >
315
407
  Today
@@ -339,6 +431,7 @@ export function DatePicker({
339
431
  onClick={() => {
340
432
  setIsOpen(false)
341
433
  handleOnDateChange(date)
434
+ emitWallTime(date, time)
342
435
  }}
343
436
  >
344
437
  Select
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type * as React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './drawer.module.css'
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type * as React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './drawer.module.css'
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type * as React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './drawer.module.css'
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type * as React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './drawer.module.css'
8
8
 
@@ -1,4 +1,14 @@
1
- @layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-components;
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
2
12
 
3
13
  @layer infonomic-components {
4
14
  /* Backdrop overlay (replaces previous Overlay component) */
@@ -4,7 +4,7 @@ import type { ReactNode } from 'react'
4
4
  import { useEffect } from 'react'
5
5
 
6
6
  import { Drawer as BaseDrawer } from '@base-ui/react/drawer'
7
- import cx from 'classnames'
7
+ import cx from 'clsx'
8
8
 
9
9
  import styles from './drawer.module.css'
10
10
  import { DrawerContainer } from './drawer-container'
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type * as React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './modal.module.css'
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type * as React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './modal.module.css'
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type * as React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './modal.module.css'
8
8
 
@@ -0,0 +1,23 @@
1
+ 'use client'
2
+
3
+ import { createContext } from 'react'
4
+
5
+ /**
6
+ * Shared between `Modal` and its slots. Lives in its own module because
7
+ * `Modal` renders `Modal.Header` while `Modal.Header` needs the context —
8
+ * importing it from `modal.tsx` would make the two modules circular.
9
+ */
10
+ export const ModalContext = createContext<{
11
+ onDismiss?: () => void
12
+ /**
13
+ * Id the dialog points `aria-labelledby` at. `Modal.Header` puts it on the
14
+ * heading it finds among its children, which is what gives the dialog its
15
+ * accessible name — without it a screen reader announces the modal as an
16
+ * unnamed "dialog".
17
+ *
18
+ * A dangling reference degrades safely: name computation ignores an
19
+ * `aria-labelledby` that resolves to nothing and falls through, so a modal
20
+ * with no header is no worse off than before.
21
+ */
22
+ headingId?: string
23
+ }>({})
@@ -1,16 +1,42 @@
1
1
  'use client'
2
2
 
3
- import type * as React from 'react'
3
+ import * as React from 'react'
4
+ import { useContext } from 'react'
4
5
 
5
- import cx from 'classnames'
6
+ import cx from 'clsx'
6
7
 
7
8
  import styles from './modal.module.css'
9
+ import { ModalContext } from './modal-context.js'
8
10
 
9
11
  type ModalHeaderIntrinsicProps = React.JSX.IntrinsicElements['div']
10
12
  export interface ModalHeaderProps extends ModalHeaderIntrinsicProps {
11
13
  className?: string
12
14
  }
13
15
 
16
+ const HEADING_TAGS = new Set(['h1', 'h2', 'h3', 'h4', 'h5', 'h6'])
17
+
18
+ /**
19
+ * Give the dialog's heading the id that `Modal` points `aria-labelledby` at.
20
+ *
21
+ * The heading is found rather than declared, so no caller has to change: a
22
+ * header is conventionally written as a heading element optionally followed by
23
+ * a close button. Only the first heading is labelled, and only direct children
24
+ * are searched — a header deep enough to hide its heading is better served by
25
+ * `Modal`'s explicit `ariaLabel`.
26
+ *
27
+ * `Modal.Header` owns the heading's `id` for this reason; an id set by a caller
28
+ * is replaced, because the dialog's name depends on this one resolving.
29
+ */
30
+ function labelHeading(children: React.ReactNode, headingId: string): React.ReactNode {
31
+ let labelled = false
32
+ return React.Children.map(children, (child) => {
33
+ if (labelled || !React.isValidElement(child)) return child
34
+ if (typeof child.type !== 'string' || !HEADING_TAGS.has(child.type)) return child
35
+ labelled = true
36
+ return React.cloneElement(child as React.ReactElement<{ id?: string }>, { id: headingId })
37
+ })
38
+ }
39
+
14
40
  export const ModalHeader = function ModalHeader({
15
41
  ref,
16
42
  children,
@@ -19,10 +45,11 @@ export const ModalHeader = function ModalHeader({
19
45
  }: ModalHeaderProps & {
20
46
  ref?: React.RefObject<HTMLDivElement>
21
47
  }) {
48
+ const { headingId } = useContext(ModalContext)
22
49
  const classes = cx('infonomic-modal-header', styles['modal-header'], 'prose', className)
23
50
  return (
24
51
  <div style={{ overflowWrap: 'anywhere' }} ref={ref} {...rest} className={classes}>
25
- {children}
52
+ {headingId == null ? children : labelHeading(children, headingId)}
26
53
  </div>
27
54
  )
28
55
  }
@@ -1,4 +1,14 @@
1
- @layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-components;
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
+ infonomic-theme,
5
+ infonomic-functional,
6
+ infonomic-typography,
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
2
12
 
3
13
  @layer infonomic-components {
4
14
  /* Backdrop overlay */
@@ -1,28 +1,33 @@
1
1
  'use client'
2
2
 
3
3
  import type React from 'react'
4
- import { createContext, useCallback, useRef, useState } from 'react'
4
+ import { useCallback, useId, useRef, useState } from 'react'
5
5
 
6
6
  import { Dialog } from '@base-ui/react/dialog'
7
- import cx from 'classnames'
7
+ import cx from 'clsx'
8
8
 
9
9
  import styles from './modal.module.css'
10
10
  import { ModalActions } from './modal-actions'
11
11
  import { ModalContainer } from './modal-container'
12
12
  import { ModalContent } from './modal-content'
13
+ import { ModalContext } from './modal-context.js'
13
14
  import { ModalHeader } from './modal-header'
14
15
 
16
+ export { ModalContext }
17
+
15
18
  export interface ModalProps {
16
19
  isOpen?: boolean
17
20
  onDismiss?: () => void
18
21
  closeOnOverlayClick?: boolean
22
+ /**
23
+ * Accessible name for the dialog, for modals that carry no `Modal.Header`
24
+ * heading to borrow one from. Modals that do have a heading need nothing
25
+ * here — see `ModalContext.headingId`.
26
+ */
27
+ ariaLabel?: string
19
28
  children?: React.ReactNode
20
29
  }
21
30
 
22
- export const ModalContext = createContext<{
23
- onDismiss?: () => void
24
- }>({})
25
-
26
31
  export type UseModalProps = ReturnType<typeof useModal>
27
32
 
28
33
  export function useModal(): {
@@ -53,8 +58,10 @@ function Modal({
53
58
  isOpen,
54
59
  onDismiss,
55
60
  closeOnOverlayClick,
61
+ ariaLabel,
56
62
  children,
57
63
  }: ModalProps): React.JSX.Element {
64
+ const headingId = useId()
58
65
  // Overlay dismissal is handled here rather than by Base UI's outside-press
59
66
  // detection. `Dialog.Popup` below is the full-viewport flex box that centres
60
67
  // the dialog, not the dialog box itself, so a click on the empty space around
@@ -83,7 +90,7 @@ function Modal({
83
90
  }
84
91
 
85
92
  return (
86
- <ModalContext.Provider value={{ onDismiss }}>
93
+ <ModalContext.Provider value={{ onDismiss, headingId }}>
87
94
  <Dialog.Root
88
95
  open={isOpen}
89
96
  onOpenChange={(open) => {
@@ -98,6 +105,8 @@ function Modal({
98
105
  <Dialog.Backdrop className={cx('infonomic-modal-backdrop', styles.backdrop)} />
99
106
  <Dialog.Popup
100
107
  className={cx('infonomic-modal-wrapper', styles['modal-wrapper'])}
108
+ aria-label={ariaLabel}
109
+ aria-labelledby={ariaLabel == null ? headingId : undefined}
101
110
  onPointerDown={handleOverlayPointerDown}
102
111
  onClick={handleOverlayClick}
103
112
  >
@@ -1,9 +1,14 @@
1
- @layer infonomic-base,
2
- infonomic-functional,
3
- infonomic-utilities,
1
+ @layer base,
2
+ infonomic-base,
3
+ theme,
4
4
  infonomic-theme,
5
+ infonomic-functional,
5
6
  infonomic-typography,
6
- infonomic-components;
7
+ components,
8
+ infonomic-components,
9
+ overrides,
10
+ infonomic-utilities,
11
+ utilities;
7
12
 
8
13
  @layer infonomic-components {
9
14
  .timeline,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type React from 'react'
4
4
 
5
- import cx from 'classnames'
5
+ import cx from 'clsx'
6
6
 
7
7
  import styles from './timeline.module.css'
8
8