@infonomic/uikit 5.16.0 → 5.18.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 (421) hide show
  1. package/dist/components/accordion/accordion.d.ts.map +1 -1
  2. package/dist/components/accordion/accordion.js +1 -1
  3. package/dist/components/accordion/accordion.module.css +1 -2
  4. package/dist/components/animation/fade-in-lift.d.ts.map +1 -1
  5. package/dist/components/avatar/avatar.d.ts.map +1 -1
  6. package/dist/components/avatar/avatar.module.css +7 -4
  7. package/dist/components/badge/badge.d.ts +1 -1
  8. package/dist/components/badge/badge.d.ts.map +1 -1
  9. package/dist/components/badge/badge.module.css +7 -2
  10. package/dist/components/button/@types/button.d.ts +1 -2
  11. package/dist/components/button/@types/button.d.ts.map +1 -1
  12. package/dist/components/button/button-group.d.ts +1 -1
  13. package/dist/components/button/button-group.d.ts.map +1 -1
  14. package/dist/components/button/button-group.js +1 -1
  15. package/dist/components/button/button-group.module.css +1 -1
  16. package/dist/components/button/button.d.ts.map +1 -1
  17. package/dist/components/button/button.module.css +52 -18
  18. package/dist/components/button/control-buttons.d.ts.map +1 -1
  19. package/dist/components/button/control-buttons.module.css +1 -2
  20. package/dist/components/button/copy-button.d.ts.map +1 -1
  21. package/dist/components/button/copy-button.js +1 -1
  22. package/dist/components/button/copy-button.module.css +7 -2
  23. package/dist/components/button/icon-button.d.ts.map +1 -1
  24. package/dist/components/button/index.d.ts +3 -3
  25. package/dist/components/button/index.d.ts.map +1 -1
  26. package/dist/components/button/index.js +3 -3
  27. package/dist/components/card/card.d.ts.map +1 -1
  28. package/dist/components/card/card.module.css +8 -3
  29. package/dist/components/chips/chip.d.ts.map +1 -1
  30. package/dist/components/chips/chip.js +1 -1
  31. package/dist/components/chips/chip.module.css +34 -12
  32. package/dist/components/chips/index.js +1 -1
  33. package/dist/components/container/container.module.css +7 -2
  34. package/dist/components/dropdown/dropdown.d.ts +1 -1
  35. package/dist/components/dropdown/dropdown.d.ts.map +1 -1
  36. package/dist/components/dropdown/dropdown.module.css +7 -5
  37. package/dist/components/forms/calendar.d.ts +7 -0
  38. package/dist/components/forms/calendar.d.ts.map +1 -1
  39. package/dist/components/forms/calendar.js +1 -1
  40. package/dist/components/forms/calendar.module.css +19 -15
  41. package/dist/components/forms/checkbox.d.ts.map +1 -1
  42. package/dist/components/forms/checkbox.js +1 -1
  43. package/dist/components/forms/checkbox.module.css +9 -4
  44. package/dist/components/forms/error-text.d.ts.map +1 -1
  45. package/dist/components/forms/error-text.module.css +8 -3
  46. package/dist/components/forms/help-text.d.ts.map +1 -1
  47. package/dist/components/forms/help-text.module.css +8 -3
  48. package/dist/components/forms/index.js +2 -2
  49. package/dist/components/forms/input-adornment.d.ts.map +1 -1
  50. package/dist/components/forms/input-adornment.module.css +7 -2
  51. package/dist/components/forms/input.d.ts +1 -1
  52. package/dist/components/forms/input.d.ts.map +1 -1
  53. package/dist/components/forms/input.module.css +8 -5
  54. package/dist/components/forms/label.d.ts.map +1 -1
  55. package/dist/components/forms/label.module.css +8 -3
  56. package/dist/components/forms/radio-group.d.ts +1 -1
  57. package/dist/components/forms/radio-group.d.ts.map +1 -1
  58. package/dist/components/forms/radio-group.module.css +8 -5
  59. package/dist/components/forms/select.d.ts +1 -1
  60. package/dist/components/forms/select.d.ts.map +1 -1
  61. package/dist/components/forms/select.module.css +7 -2
  62. package/dist/components/forms/text-area.d.ts.map +1 -1
  63. package/dist/components/forms/text-area.module.css +11 -5
  64. package/dist/components/notifications/@types/alert.d.ts.map +1 -1
  65. package/dist/components/notifications/alert.d.ts.map +1 -1
  66. package/dist/components/notifications/alert.js +1 -1
  67. package/dist/components/notifications/alert.module.css +7 -2
  68. package/dist/components/notifications/toast.d.ts +1 -1
  69. package/dist/components/notifications/toast.d.ts.map +1 -1
  70. package/dist/components/notifications/toast.js +1 -1
  71. package/dist/components/notifications/toast.module.css +7 -5
  72. package/dist/components/overlay/overlay.d.ts.map +1 -1
  73. package/dist/components/overlay/overlay.module.css +1 -1
  74. package/dist/components/pager/ellipses.d.ts.map +1 -1
  75. package/dist/components/pager/first-button.d.ts.map +1 -1
  76. package/dist/components/pager/icons/index.js +2 -2
  77. package/dist/components/pager/index.js +2 -2
  78. package/dist/components/pager/last-button.d.ts.map +1 -1
  79. package/dist/components/pager/next-button.d.ts.map +1 -1
  80. package/dist/components/pager/number-button.d.ts.map +1 -1
  81. package/dist/components/pager/number-button.js +2 -4
  82. package/dist/components/pager/pagination.d.ts +1 -1
  83. package/dist/components/pager/pagination.d.ts.map +1 -1
  84. package/dist/components/pager/pagination.js +1 -1
  85. package/dist/components/pager/pagination.module.css +8 -6
  86. package/dist/components/pager/previous-button.d.ts.map +1 -1
  87. package/dist/components/scroll-area/scroll-area.d.ts +1 -1
  88. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
  89. package/dist/components/scroll-area/scroll-area.module.css +7 -2
  90. package/dist/components/scroll-to-top/scroll-to-top.d.ts.map +1 -1
  91. package/dist/components/scroll-to-top/scroll-to-top.js +12 -6
  92. package/dist/components/scroll-to-top/scroll-to-top.module.css +6 -2
  93. package/dist/components/section/section.module.css +7 -2
  94. package/dist/components/shimmer/shimmer.d.ts.map +1 -1
  95. package/dist/components/shimmer/shimmer.js +0 -1
  96. package/dist/components/shimmer/shimmer.module.css +9 -10
  97. package/dist/components/table/table.d.ts.map +1 -1
  98. package/dist/components/table/table.module.css +8 -4
  99. package/dist/components/tabs/tabs.d.ts +1 -1
  100. package/dist/components/tabs/tabs.d.ts.map +1 -1
  101. package/dist/components/tabs/tabs.module.css +7 -3
  102. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  103. package/dist/components/tooltip/tooltip.module.css +7 -4
  104. package/dist/icons/activity-icon.d.ts.map +1 -1
  105. package/dist/icons/calendar-icon.d.ts.map +1 -1
  106. package/dist/icons/check-icon.d.ts.map +1 -1
  107. package/dist/icons/check-icon.js +0 -1
  108. package/dist/icons/chevron-down-icon.d.ts.map +1 -1
  109. package/dist/icons/chevron-left-double-icon.d.ts.map +1 -1
  110. package/dist/icons/chevron-left-icon.d.ts.map +1 -1
  111. package/dist/icons/chevron-right-double-icon.d.ts.map +1 -1
  112. package/dist/icons/chevron-right-icon.d.ts.map +1 -1
  113. package/dist/icons/chevrons-up-down.d.ts.map +1 -1
  114. package/dist/icons/close-icon.d.ts.map +1 -1
  115. package/dist/icons/copy-icon.d.ts.map +1 -1
  116. package/dist/icons/danger-icon.d.ts.map +1 -1
  117. package/dist/icons/dashboard-icon.d.ts.map +1 -1
  118. package/dist/icons/delete-icon.d.ts.map +1 -1
  119. package/dist/icons/document-icon.d.ts.map +1 -1
  120. package/dist/icons/download-icon.d.ts.map +1 -1
  121. package/dist/icons/edit-icon.d.ts.map +1 -1
  122. package/dist/icons/ellipsis-icon.d.ts.map +1 -1
  123. package/dist/icons/email-icon.d.ts.map +1 -1
  124. package/dist/icons/external-link-icon.d.ts.map +1 -1
  125. package/dist/icons/github-icon.d.ts.map +1 -1
  126. package/dist/icons/globe-icon.d.ts.map +1 -1
  127. package/dist/icons/google-icon.d.ts.map +1 -1
  128. package/dist/icons/gripper-vertical-icon.d.ts.map +1 -1
  129. package/dist/icons/history-icon.d.ts.map +1 -1
  130. package/dist/icons/home-icon.d.ts.map +1 -1
  131. package/dist/icons/icon-element.d.ts +1 -1
  132. package/dist/icons/icon-element.d.ts.map +1 -1
  133. package/dist/icons/icon-element.js +1 -1
  134. package/dist/icons/icon-sprite.js +10 -5
  135. package/dist/icons/icons.module.css +1 -2
  136. package/dist/icons/index.d.ts +27 -27
  137. package/dist/icons/index.d.ts.map +1 -1
  138. package/dist/icons/index.js +27 -27
  139. package/dist/icons/info-icon.d.ts.map +1 -1
  140. package/dist/icons/infonomic-icon.d.ts.map +1 -1
  141. package/dist/icons/light-icon.d.ts.map +1 -1
  142. package/dist/icons/location-pin-icon.d.ts.map +1 -1
  143. package/dist/icons/moon-icon.d.ts.map +1 -1
  144. package/dist/icons/plus-icon.d.ts.map +1 -1
  145. package/dist/icons/primary-icon.d.ts.map +1 -1
  146. package/dist/icons/refresh-icon.d.ts.map +1 -1
  147. package/dist/icons/return-icon.d.ts.map +1 -1
  148. package/dist/icons/roles-icon.d.ts.map +1 -1
  149. package/dist/icons/search-icon.d.ts.map +1 -1
  150. package/dist/icons/search-menu-icon.d.ts.map +1 -1
  151. package/dist/icons/settings-gear-icon.d.ts.map +1 -1
  152. package/dist/icons/settings-sliders-icon.d.ts.map +1 -1
  153. package/dist/icons/sign-out-icon.d.ts.map +1 -1
  154. package/dist/icons/stopwatch-icon.d.ts.map +1 -1
  155. package/dist/icons/success-icon.d.ts.map +1 -1
  156. package/dist/icons/user-icon.d.ts.map +1 -1
  157. package/dist/icons/users-icon.d.ts.map +1 -1
  158. package/dist/icons/wallet-icon.d.ts.map +1 -1
  159. package/dist/icons/warning-icon.d.ts.map +1 -1
  160. package/dist/icons/x-icon.d.ts.map +1 -1
  161. package/dist/react.d.ts +3 -3
  162. package/dist/react.d.ts.map +1 -1
  163. package/dist/react.js +3 -3
  164. package/dist/styles/styles.css +1 -1
  165. package/dist/styles/typography.css +1 -1
  166. package/dist/utils/getPortalRoot.js +1 -1
  167. package/dist/utils/isTouchDevice.js +1 -1
  168. package/dist/utils/objectsToArray.js +3 -9
  169. package/dist/widgets/datepicker/datepicker.d.ts +6 -0
  170. package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
  171. package/dist/widgets/datepicker/datepicker.js +3 -3
  172. package/dist/widgets/datepicker/datepicker.module.css +3 -4
  173. package/dist/widgets/drawer/drawer-container.d.ts.map +1 -1
  174. package/dist/widgets/drawer/drawer-content.d.ts.map +1 -1
  175. package/dist/widgets/drawer/drawer-context.d.ts.map +1 -1
  176. package/dist/widgets/drawer/drawer-header.d.ts.map +1 -1
  177. package/dist/widgets/drawer/drawer-top-actions.d.ts.map +1 -1
  178. package/dist/widgets/drawer/drawer-wrapper.d.ts.map +1 -1
  179. package/dist/widgets/drawer/drawer-wrapper.js +1 -1
  180. package/dist/widgets/drawer/drawer.d.ts +4 -5
  181. package/dist/widgets/drawer/drawer.d.ts.map +1 -1
  182. package/dist/widgets/drawer/drawer.js +3 -3
  183. package/dist/widgets/drawer/drawer.module.css +2 -3
  184. package/dist/widgets/drawer/motionDomAnimation.d.ts.map +1 -1
  185. package/dist/widgets/drawer/motionDomMax.d.ts.map +1 -1
  186. package/dist/widgets/modal/modal-actions.d.ts.map +1 -1
  187. package/dist/widgets/modal/modal-container.d.ts.map +1 -1
  188. package/dist/widgets/modal/modal-content.d.ts.map +1 -1
  189. package/dist/widgets/modal/modal-header.d.ts.map +1 -1
  190. package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -1
  191. package/dist/widgets/modal/modal.d.ts.map +1 -1
  192. package/dist/widgets/modal/modal.js +1 -1
  193. package/dist/widgets/modal/modal.module.css +1 -1
  194. package/dist/widgets/modal/motionDomAnimation.d.ts.map +1 -1
  195. package/dist/widgets/modal/motionDomMax.d.ts.map +1 -1
  196. package/dist/widgets/search/search.d.ts.map +1 -1
  197. package/dist/widgets/timeline/timeline.module.css +7 -2
  198. package/package.json +23 -19
  199. package/src/astro.js +2 -3
  200. package/src/components/accordion/accordion.module.css +1 -2
  201. package/src/components/accordion/accordion.stories.tsx +1 -2
  202. package/src/components/accordion/accordion.tsx +2 -2
  203. package/src/components/animation/fade-in-lift.tsx +1 -0
  204. package/src/components/avatar/avatar.module.css +7 -4
  205. package/src/components/avatar/avatar.stories.tsx +2 -1
  206. package/src/components/avatar/avatar.tsx +2 -1
  207. package/src/components/badge/badge.module.css +7 -2
  208. package/src/components/badge/badge.stories.tsx +1 -2
  209. package/src/components/badge/badge.tsx +11 -6
  210. package/src/components/button/@types/button.ts +1 -3
  211. package/src/components/button/button-group.module.css +1 -1
  212. package/src/components/button/button-group.tsx +3 -3
  213. package/src/components/button/button-intents.stories.tsx +29 -5
  214. package/src/components/button/button-overrides.stories.tsx +25 -8
  215. package/src/components/button/button-test.stories.tsx +25 -7
  216. package/src/components/button/button-variants.stories.tsx +28 -30
  217. package/src/components/button/button.module.css +52 -18
  218. package/src/components/button/button.tsx +5 -4
  219. package/src/components/button/control-buttons.module.css +1 -2
  220. package/src/components/button/control-buttons.stories.tsx +1 -1
  221. package/src/components/button/control-buttons.tsx +5 -2
  222. package/src/components/button/copy-button.module.css +7 -2
  223. package/src/components/button/copy-button.tsx +3 -3
  224. package/src/components/button/icon-button.stories.tsx +82 -86
  225. package/src/components/button/icon-button.tsx +4 -3
  226. package/src/components/button/index.ts +3 -3
  227. package/src/components/card/card.module.css +8 -3
  228. package/src/components/card/card.stories.tsx +0 -1
  229. package/src/components/card/card.tsx +2 -1
  230. package/src/components/chips/chip.module.css +34 -12
  231. package/src/components/chips/chip.stories.tsx +21 -9
  232. package/src/components/chips/chip.tsx +162 -154
  233. package/src/components/chips/index.ts +1 -1
  234. package/src/components/container/container.module.css +7 -2
  235. package/src/components/dropdown/dropdown.module.css +7 -5
  236. package/src/components/dropdown/dropdown.tsx +2 -1
  237. package/src/components/forms/calendar.module.css +19 -15
  238. package/src/components/forms/calendar.stories.tsx +8 -6
  239. package/src/components/forms/calendar.tsx +4 -2
  240. package/src/components/forms/checkbox.module.css +9 -4
  241. package/src/components/forms/checkbox.stories.tsx +21 -25
  242. package/src/components/forms/checkbox.tsx +6 -5
  243. package/src/components/forms/error-text.module.css +8 -3
  244. package/src/components/forms/error-text.tsx +2 -1
  245. package/src/components/forms/help-text.module.css +8 -3
  246. package/src/components/forms/help-text.tsx +2 -1
  247. package/src/components/forms/index.tsx +2 -2
  248. package/src/components/forms/input-adornment.module.css +7 -2
  249. package/src/components/forms/input-adornment.tsx +2 -1
  250. package/src/components/forms/input.module.css +8 -5
  251. package/src/components/forms/input.stories.tsx +110 -117
  252. package/src/components/forms/input.tsx +5 -5
  253. package/src/components/forms/label.module.css +8 -3
  254. package/src/components/forms/label.tsx +2 -1
  255. package/src/components/forms/radio-group.module.css +8 -5
  256. package/src/components/forms/radio-group.stories.tsx +1 -1
  257. package/src/components/forms/radio-group.tsx +5 -2
  258. package/src/components/forms/select.module.css +7 -2
  259. package/src/components/forms/select.stories.tsx +9 -11
  260. package/src/components/forms/select.tsx +6 -5
  261. package/src/components/forms/text-area.module.css +11 -5
  262. package/src/components/forms/text-area.stories.tsx +25 -30
  263. package/src/components/forms/text-area.tsx +3 -2
  264. package/src/components/notifications/@types/alert.ts +0 -3
  265. package/src/components/notifications/alert.module.css +7 -2
  266. package/src/components/notifications/alert.stories.tsx +21 -4
  267. package/src/components/notifications/alert.tsx +4 -4
  268. package/src/components/notifications/toast.module.css +7 -5
  269. package/src/components/notifications/toast.stories.tsx +2 -2
  270. package/src/components/notifications/toast.tsx +5 -3
  271. package/src/components/overlay/index.stories.tsx +0 -3
  272. package/src/components/overlay/overlay.module.css +1 -1
  273. package/src/components/overlay/overlay.tsx +7 -6
  274. package/src/components/pager/ellipses.tsx +2 -2
  275. package/src/components/pager/event-pager.tsx +3 -1
  276. package/src/components/pager/first-button.tsx +4 -3
  277. package/src/components/pager/icons/index.tsx +2 -2
  278. package/src/components/pager/index.ts +2 -2
  279. package/src/components/pager/last-button.tsx +4 -3
  280. package/src/components/pager/next-button.tsx +4 -3
  281. package/src/components/pager/number-button.tsx +5 -5
  282. package/src/components/pager/pagination.module.css +8 -6
  283. package/src/components/pager/pagination.stories.tsx +3 -3
  284. package/src/components/pager/pagination.tsx +4 -3
  285. package/src/components/pager/previous-button.tsx +4 -3
  286. package/src/components/scroll-area/scroll-area.module.css +7 -2
  287. package/src/components/scroll-area/scroll-area.tsx +2 -1
  288. package/src/components/scroll-to-top/scroll-to-top.module.css +6 -2
  289. package/src/components/scroll-to-top/scroll-to-top.tsx +5 -2
  290. package/src/components/section/section.module.css +7 -2
  291. package/src/components/shimmer/shimmer.module.css +9 -10
  292. package/src/components/shimmer/shimmer.tsx +3 -2
  293. package/src/components/table/table.module.css +8 -4
  294. package/src/components/table/table.tsx +2 -1
  295. package/src/components/tabs/tabs.module.css +7 -3
  296. package/src/components/tabs/tabs.tsx +2 -2
  297. package/src/components/tooltip/tooltip.module.css +7 -4
  298. package/src/components/tooltip/tooltip.stories.tsx +35 -37
  299. package/src/components/tooltip/tooltip.tsx +2 -1
  300. package/src/hooks/use-media-query.ts +1 -1
  301. package/src/icons/activity-icon.tsx +2 -1
  302. package/src/icons/calendar-icon.tsx +1 -3
  303. package/src/icons/check-icon.tsx +1 -4
  304. package/src/icons/chevron-down-icon.tsx +1 -3
  305. package/src/icons/chevron-left-double-icon.tsx +2 -1
  306. package/src/icons/chevron-left-icon.tsx +2 -1
  307. package/src/icons/chevron-right-double-icon.tsx +2 -1
  308. package/src/icons/chevron-right-icon.tsx +2 -1
  309. package/src/icons/chevrons-up-down.tsx +2 -1
  310. package/src/icons/close-icon.tsx +13 -11
  311. package/src/icons/copy-icon.tsx +1 -3
  312. package/src/icons/danger-icon.tsx +2 -1
  313. package/src/icons/dashboard-icon.tsx +1 -3
  314. package/src/icons/delete-icon.tsx +1 -3
  315. package/src/icons/document-icon.tsx +1 -3
  316. package/src/icons/download-icon.tsx +1 -3
  317. package/src/icons/edit-icon.tsx +1 -3
  318. package/src/icons/ellipsis-icon.tsx +1 -3
  319. package/src/icons/email-icon.tsx +1 -3
  320. package/src/icons/external-link-icon.tsx +1 -3
  321. package/src/icons/github-icon.tsx +2 -1
  322. package/src/icons/globe-icon.tsx +1 -3
  323. package/src/icons/google-icon.tsx +0 -1
  324. package/src/icons/gripper-vertical-icon.tsx +1 -3
  325. package/src/icons/history-icon.tsx +2 -1
  326. package/src/icons/home-icon.tsx +1 -3
  327. package/src/icons/icon-element.tsx +3 -3
  328. package/src/icons/icon-sprite.tsx +2 -2
  329. package/src/icons/icons.module.css +1 -2
  330. package/src/icons/index.ts +27 -27
  331. package/src/icons/info-icon.tsx +2 -1
  332. package/src/icons/infonomic-icon.tsx +0 -1
  333. package/src/icons/light-icon.tsx +1 -3
  334. package/src/icons/location-pin-icon.tsx +1 -3
  335. package/src/icons/moon-icon.tsx +1 -3
  336. package/src/icons/plus-icon.tsx +1 -3
  337. package/src/icons/primary-icon.tsx +3 -3
  338. package/src/icons/refresh-icon.tsx +1 -3
  339. package/src/icons/return-icon.tsx +1 -3
  340. package/src/icons/roles-icon.tsx +1 -3
  341. package/src/icons/search-icon.tsx +1 -3
  342. package/src/icons/search-menu-icon.tsx +1 -3
  343. package/src/icons/settings-gear-icon.tsx +1 -3
  344. package/src/icons/settings-sliders-icon.tsx +1 -3
  345. package/src/icons/sign-out-icon.tsx +1 -3
  346. package/src/icons/stopwatch-icon.tsx +1 -3
  347. package/src/icons/success-icon.tsx +2 -1
  348. package/src/icons/user-icon.tsx +1 -3
  349. package/src/icons/users-icon.tsx +1 -3
  350. package/src/icons/wallet-icon.tsx +1 -3
  351. package/src/icons/warning-icon.tsx +2 -1
  352. package/src/icons/x-icon.tsx +1 -3
  353. package/src/loaders/loaders.stories.tsx +5 -7
  354. package/src/react.ts +3 -5
  355. package/src/styles/base/animations.css +1 -3
  356. package/src/styles/base/base.css +0 -1
  357. package/src/styles/base/borders.css +1 -1
  358. package/src/styles/base/breakpoints.css +2 -2
  359. package/src/styles/base/colors.css +17 -16
  360. package/src/styles/base/opacity.css +2 -2
  361. package/src/styles/base/reset.css +9 -7
  362. package/src/styles/base/shadows.css +1 -1
  363. package/src/styles/base/size.css +21 -21
  364. package/src/styles/base/spacing.css +21 -21
  365. package/src/styles/base/transitions.css +1 -1
  366. package/src/styles/base/typography.css +1 -2
  367. package/src/styles/base/z-index.css +1 -1
  368. package/src/styles/components/components.css +1 -1
  369. package/src/styles/components/fade-in-lift.css +3 -1
  370. package/src/styles/components/hamburger.css +20 -7
  371. package/src/styles/functional/borders.css +1 -1
  372. package/src/styles/functional/colors.css +37 -17
  373. package/src/styles/functional/functional.css +1 -1
  374. package/src/styles/functional/grid-flex.css +1 -1
  375. package/src/styles/functional/surfaces.css +11 -12
  376. package/src/styles/functional/typography.css +2 -3
  377. package/src/styles/local-fonts.css +1 -1
  378. package/src/styles/styles.css +7 -2
  379. package/src/styles/theme/autofill.css +15 -15
  380. package/src/styles/theme/defaults.css +1 -1
  381. package/src/styles/theme/scrollers.css +1 -1
  382. package/src/styles/theme/theme.css +3 -3
  383. package/src/styles/theme/theme.stories.tsx +14 -15
  384. package/src/styles/typography/article.stories.tsx +22 -23
  385. package/src/styles/typography/code.stories.tsx +16 -19
  386. package/src/styles/typography/default.stories.tsx +31 -33
  387. package/src/styles/typography/fonts.css +10 -7
  388. package/src/styles/typography/lists.stories.tsx +30 -32
  389. package/src/styles/typography/prose.css +14 -7
  390. package/src/styles/typography/quote.stories.tsx +20 -19
  391. package/src/styles/typography.css +1 -1
  392. package/src/styles/utils/utility-classes.css +9 -14
  393. package/src/theme/theme-provider/provider.tsx +2 -2
  394. package/src/utils/externalLinkProps.ts +1 -1
  395. package/src/utils/objectsToArray.ts +3 -5
  396. package/src/utils/polymorphic.ts +1 -1
  397. package/src/widgets/datepicker/datepicker.module.css +3 -4
  398. package/src/widgets/datepicker/datepicker.tsx +15 -5
  399. package/src/widgets/drawer/drawer-container.tsx +1 -0
  400. package/src/widgets/drawer/drawer-content.tsx +1 -0
  401. package/src/widgets/drawer/drawer-context.tsx +1 -3
  402. package/src/widgets/drawer/drawer-header.tsx +1 -0
  403. package/src/widgets/drawer/drawer-top-actions.tsx +1 -0
  404. package/src/widgets/drawer/drawer-wrapper.tsx +3 -4
  405. package/src/widgets/drawer/drawer.module.css +2 -3
  406. package/src/widgets/drawer/drawer.stories.tsx +38 -41
  407. package/src/widgets/drawer/drawer.tsx +6 -9
  408. package/src/widgets/drawer/motionDomAnimation.ts +1 -0
  409. package/src/widgets/drawer/motionDomMax.ts +1 -0
  410. package/src/widgets/modal/modal-actions.tsx +1 -0
  411. package/src/widgets/modal/modal-container.tsx +1 -0
  412. package/src/widgets/modal/modal-content.tsx +1 -0
  413. package/src/widgets/modal/modal-header.tsx +1 -0
  414. package/src/widgets/modal/modal-wrapper.tsx +2 -2
  415. package/src/widgets/modal/modal.module.css +1 -1
  416. package/src/widgets/modal/modal.stories.tsx +0 -1
  417. package/src/widgets/modal/modal.tsx +2 -2
  418. package/src/widgets/modal/motionDomAnimation.ts +1 -0
  419. package/src/widgets/modal/motionDomMax.ts +1 -0
  420. package/src/widgets/search/search.tsx +1 -1
  421. package/src/widgets/timeline/timeline.module.css +7 -2
@@ -1,4 +1,9 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
1
+ @layer infonomic-base,
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
2
7
 
3
8
  /* 'border-collapse w-full text-sm text-left text-gray-700 dark:text-gray-400 m-0', */
4
9
  @layer infonomic-components {
@@ -6,20 +11,14 @@
6
11
  position: relative;
7
12
  overflow: hidden;
8
13
  background-color: #f0f0f0;
9
- background-image: linear-gradient(90deg,
10
- transparent,
11
- rgba(255, 255, 255, 0.6),
12
- transparent);
14
+ background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
13
15
  background-size: 200% 100%;
14
16
  animation: shimmer 1.5s infinite;
15
17
  }
16
18
 
17
19
  .shimmer:is(:global(.dark) *) {
18
20
  background-color: #141414;
19
- background-image: linear-gradient(90deg,
20
- transparent,
21
- rgba(255, 255, 255, 0.01),
22
- transparent);
21
+ background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.01), transparent);
23
22
  }
24
23
 
25
24
  .shimmerContainer {
@@ -50,4 +49,4 @@
50
49
  background-position: 200% 0;
51
50
  }
52
51
  }
53
- }
52
+ }
@@ -1,5 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type React from 'react'
2
+
3
+ import cx from 'classnames'
4
+
3
5
  import styles from './shimmer.module.css'
4
6
 
5
7
  interface ShimmerProps {
@@ -34,7 +36,6 @@ export function Shimmer({
34
36
  return styles.text
35
37
  case 'circular':
36
38
  return styles.circular
37
- case 'rectangular':
38
39
  default:
39
40
  return styles.rectangular
40
41
  }
@@ -1,8 +1,12 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
1
+ @layer infonomic-base,
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
2
7
 
3
8
  /* 'border-collapse w-full text-sm text-left text-gray-700 dark:text-gray-400 m-0', */
4
9
  @layer infonomic-components {
5
-
6
10
  /* 'table--container break-normal overflow-hidden relative shadow-md rounded-md my-[16px] dark:border dark:border-canvas-700', */
7
11
  .table-container {
8
12
  display: block;
@@ -86,7 +90,7 @@
86
90
  }
87
91
 
88
92
  .table-row:hover:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
89
- background-color: oklch(from var(--canvas-800) calc(l * 1.1) c h)
93
+ background-color: oklch(from var(--canvas-800) calc(l * 1.1) c h);
90
94
  }
91
95
 
92
96
  .table-heading-cell:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
@@ -97,4 +101,4 @@
97
101
  background-color: var(--canvas-800);
98
102
  }
99
103
  }
100
- }
104
+ }
@@ -1,6 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type * as React from 'react'
3
2
 
3
+ import cx from 'classnames'
4
+
4
5
  import styles from './table.module.css'
5
6
 
6
7
  export type TableProps = React.JSX.IntrinsicElements['table']
@@ -1,7 +1,11 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
1
+ @layer infonomic-base,
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
2
7
 
3
8
  @layer infonomic-components {
4
-
5
9
  .tabs-root {
6
10
  display: flex;
7
11
  padding: var(--spacing-8);
@@ -63,4 +67,4 @@
63
67
  outline: none;
64
68
  }
65
69
  }
66
- }
70
+ }
@@ -1,9 +1,9 @@
1
1
  'use client'
2
2
 
3
- import cx from 'classnames'
3
+ import type * as React from 'react'
4
4
 
5
+ import cx from 'classnames'
5
6
  import { Tabs as TabsPrimitive } from 'radix-ui'
6
- import type * as React from 'react'
7
7
 
8
8
  import styles from './tabs.module.css'
9
9
 
@@ -1,4 +1,9 @@
1
- @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
1
+ @layer infonomic-base,
2
+ infonomic-functional,
3
+ infonomic-utilities,
4
+ infonomic-theme,
5
+ infonomic-typography,
6
+ infonomic-components;
2
7
 
3
8
  @layer infonomic-components {
4
9
  .tooltip {
@@ -27,14 +32,12 @@
27
32
  animation-name: slideLeftAndFade;
28
33
  }
29
34
 
30
-
31
35
  .tooltip[data-state="delayed-open"][data-side="left"] :global {
32
36
  animation-name: slideRightAndFade;
33
37
  }
34
38
 
35
39
  .tooltip[data-state="delayed-open"][data-side="bottom"] :global {
36
40
  animation-name: slideUpAndFade;
37
-
38
41
  }
39
42
 
40
43
  .tooltip-arrow {
@@ -42,4 +45,4 @@
42
45
  }
43
46
 
44
47
  /* Dark mode handled by semantic tokens in theme layer */
45
- }
48
+ }
@@ -1,49 +1,47 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
2
  import type React from 'react'
3
3
 
4
- import type { Meta, StoryObj } from '@storybook/react-vite'
4
+ import type { Meta } from '@storybook/react-vite'
5
5
 
6
6
  import { Button } from '../button/button.js'
7
7
  import { Tooltip as TooltipComponent } from './tooltip.js'
8
8
 
9
9
  export const Tooltip = (): React.JSX.Element => {
10
10
  return (
11
- <>
12
- <div
13
- style={{
14
- maxWidth: '100px',
15
- marginLeft: '12rem',
16
- marginTop: '3rem',
17
- display: 'flex',
18
- flexDirection: 'column',
19
- gap: '46px',
20
- alignItems: 'center',
21
- justifyContent: 'center',
22
- padding: '16px',
23
- }}
24
- >
25
- <TooltipComponent text="I'm a tooltip" side="top" sideOffset={5}>
26
- <Button fullWidth={true} size="sm">
27
- Top
28
- </Button>
29
- </TooltipComponent>
30
- <TooltipComponent text="I'm a tooltip" side="left" sideOffset={5}>
31
- <Button fullWidth={true} size="sm">
32
- Left
33
- </Button>
34
- </TooltipComponent>
35
- <TooltipComponent text="I'm a tooltip" side="right" sideOffset={5}>
36
- <Button fullWidth={true} size="sm">
37
- Right
38
- </Button>
39
- </TooltipComponent>
40
- <TooltipComponent text="I'm a tooltip" side="bottom" sideOffset={5}>
41
- <Button fullWidth={true} size="sm">
42
- Bottom
43
- </Button>
44
- </TooltipComponent>
45
- </div>
46
- </>
11
+ <div
12
+ style={{
13
+ maxWidth: '100px',
14
+ marginLeft: '12rem',
15
+ marginTop: '3rem',
16
+ display: 'flex',
17
+ flexDirection: 'column',
18
+ gap: '46px',
19
+ alignItems: 'center',
20
+ justifyContent: 'center',
21
+ padding: '16px',
22
+ }}
23
+ >
24
+ <TooltipComponent text="I'm a tooltip" side="top" sideOffset={5}>
25
+ <Button fullWidth={true} size="sm">
26
+ Top
27
+ </Button>
28
+ </TooltipComponent>
29
+ <TooltipComponent text="I'm a tooltip" side="left" sideOffset={5}>
30
+ <Button fullWidth={true} size="sm">
31
+ Left
32
+ </Button>
33
+ </TooltipComponent>
34
+ <TooltipComponent text="I'm a tooltip" side="right" sideOffset={5}>
35
+ <Button fullWidth={true} size="sm">
36
+ Right
37
+ </Button>
38
+ </TooltipComponent>
39
+ <TooltipComponent text="I'm a tooltip" side="bottom" sideOffset={5}>
40
+ <Button fullWidth={true} size="sm">
41
+ Bottom
42
+ </Button>
43
+ </TooltipComponent>
44
+ </div>
47
45
  )
48
46
  }
49
47
 
@@ -1,8 +1,9 @@
1
1
  'use client'
2
2
 
3
- import { Tooltip as TooltipPrimitive } from 'radix-ui'
4
3
  import type React from 'react'
5
4
 
5
+ import { Tooltip as TooltipPrimitive } from 'radix-ui'
6
+
6
7
  type TooltipIntrinsicProps = React.JSX.IntrinsicElements['div']
7
8
  export interface TooltipProps extends TooltipIntrinsicProps {
8
9
  text: string
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useState } from 'react'
1
+ import { useEffect, useState } from 'react'
2
2
 
3
3
  export const useMediaQuery = (query: string): boolean | null => {
4
4
  const [matches, setMatches] = useState<boolean | null>(null)
@@ -1,6 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type React from 'react'
3
2
 
3
+ import cx from 'classnames'
4
+
4
5
  import { IconElement } from './icon-element.js'
5
6
  import styles from './icons.module.css'
6
7
  import type { IconProps } from './types/icon.js'
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const CalendarIcon = ({
12
10
  className,
@@ -3,14 +3,11 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const CheckIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
12
10
  const applied = cx(styles['fill-current'], svgClassName)
13
- console.log('CheckIcon className:', className)
14
11
  return (
15
12
  <IconElement className={cx('check-icon', className)} {...rest}>
16
13
  <svg
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const ChevronDownIcon = ({
12
10
  className,
@@ -19,9 +19,10 @@
19
19
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import cx from 'classnames'
23
22
  import type React from 'react'
24
23
 
24
+ import cx from 'classnames'
25
+
25
26
  import { IconElement } from './icon-element.jsx'
26
27
  import styles from './icons.module.css'
27
28
  import type { IconProps } from './types/icon.js'
@@ -19,9 +19,10 @@
19
19
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import cx from 'classnames'
23
22
  import type React from 'react'
24
23
 
24
+ import cx from 'classnames'
25
+
25
26
  import { IconElement } from './icon-element.jsx'
26
27
  import styles from './icons.module.css'
27
28
  import type { IconProps } from './types/icon.js'
@@ -19,9 +19,10 @@
19
19
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import cx from 'classnames'
23
22
  import type React from 'react'
24
23
 
24
+ import cx from 'classnames'
25
+
25
26
  import { IconElement } from './icon-element.jsx'
26
27
  import styles from './icons.module.css'
27
28
  import type { IconProps } from './types/icon.js'
@@ -19,9 +19,10 @@
19
19
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import cx from 'classnames'
23
22
  import type React from 'react'
24
23
 
24
+ import cx from 'classnames'
25
+
25
26
  import { IconElement } from './icon-element.jsx'
26
27
  import styles from './icons.module.css'
27
28
  import type { IconProps } from './types/icon.js'
@@ -1,6 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type React from 'react'
3
2
 
3
+ import cx from 'classnames'
4
+
4
5
  import { IconElement } from './icon-element.jsx'
5
6
  import styles from './icons.module.css'
6
7
  import type { IconProps } from './types/icon.js'
@@ -1,6 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type React from 'react'
3
2
 
3
+ import cx from 'classnames'
4
+
4
5
  import { IconElement } from './icon-element.js'
5
6
  import styles from './icons.module.css'
6
7
  import type { IconProps } from './types/icon.js'
@@ -10,20 +11,21 @@ export const CloseIcon = ({ className, svgClassName, ...rest }: IconProps): Reac
10
11
 
11
12
  return (
12
13
  <IconElement className={cx('close-icon', className)} {...rest}>
13
- <svg
14
+ <svg
14
15
  className={applied}
15
- xmlns="http://www.w3.org/2000/svg"
16
+ xmlns="http://www.w3.org/2000/svg"
16
17
  focusable="false"
17
18
  aria-hidden="true"
18
- viewBox="0 0 24 24" fill="none"
19
- strokeWidth="2"
20
- strokeLinecap="round"
19
+ viewBox="0 0 24 24"
20
+ fill="none"
21
+ strokeWidth="2"
22
+ strokeLinecap="round"
21
23
  strokeLinejoin="round"
22
- >
23
- <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
24
- <path d="M18 6l-12 12" />
25
- <path d="M6 6l12 12" />
26
- </svg>
24
+ >
25
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
26
+ <path d="M18 6l-12 12" />
27
+ <path d="M6 6l12 12" />
28
+ </svg>
27
29
  </IconElement>
28
30
  )
29
31
  }
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const CopyIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
12
10
  const applied = cx(styles['fill-current'], svgClassName)
@@ -1,6 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type React from 'react'
3
2
 
3
+ import cx from 'classnames'
4
+
4
5
  import { IconElement } from './icon-element.js'
5
6
  import styles from './icons.module.css'
6
7
  import type { IconProps } from './types/icon.js'
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.jsx'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const DashboardIcon = ({
12
10
  className,
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const DeleteIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
12
10
  const applied = cx(styles['fill-none'], styles['stroke-danger'], svgClassName)
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const DocumentIcon = ({
12
10
  className,
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const DownloadIcon = ({
12
10
  className,
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const EditIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
12
10
  const applied = cx(styles['fill-none'], styles['stroke-current'], svgClassName)
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const EllipsisIcon = ({
12
10
  className,
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const EmailIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
12
10
  const applied = cx(styles['fill-none'], styles['stroke-current'], svgClassName)
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const ExternalLinkIcon = ({
12
10
  className,
@@ -1,6 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type React from 'react'
3
2
 
3
+ import cx from 'classnames'
4
+
4
5
  import { IconElement } from './icon-element.js'
5
6
  import styles from './icons.module.css'
6
7
  import type { IconProps } from './types/icon.js'
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const GlobeIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
12
10
  const applied = cx(styles['fill-current'], styles['stroke-none'], svgClassName)
@@ -3,7 +3,6 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
6
  import type { IconProps } from './types/icon.js'
8
7
 
9
8
  export const GoogleIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const GripperVerticalIcon = ({
12
10
  className,
@@ -1,6 +1,7 @@
1
- import cx from 'classnames'
2
1
  import type React from 'react'
3
2
 
3
+ import cx from 'classnames'
4
+
4
5
  import { IconElement } from './icon-element.jsx'
5
6
  import styles from './icons.module.css'
6
7
  import type { IconProps } from './types/icon.js'
@@ -3,10 +3,8 @@ import type React from 'react'
3
3
  import cx from 'classnames'
4
4
 
5
5
  import { IconElement } from './icon-element.js'
6
-
7
- import type { IconProps } from './types/icon.js'
8
-
9
6
  import styles from './icons.module.css'
7
+ import type { IconProps } from './types/icon.js'
10
8
 
11
9
  export const HomeIcon = ({ className, svgClassName, ...rest }: IconProps): React.JSX.Element => {
12
10
  const applied = cx(styles['fill-none'], styles['stroke-current'], svgClassName)
@@ -1,10 +1,10 @@
1
- import type { ReactNode } from 'react'
2
1
  import type React from 'react'
3
-
4
- import styles from './icons.module.css'
2
+ import type { ReactNode } from 'react'
5
3
 
6
4
  import cx from 'classnames'
7
5
 
6
+ import styles from './icons.module.css'
7
+
8
8
  export interface IconElementProps extends React.ComponentProps<'div'> {
9
9
  width?: string
10
10
  height?: string
@@ -1,8 +1,7 @@
1
1
  import type React from 'react'
2
- import ReactDOM from 'react-dom'
3
2
 
4
3
  // keep a list of the icon ids we put in the symbol
5
- const icons = ['icon-1', 'icon-2']
4
+ const _icons = ['icon-1', 'icon-2']
6
5
 
7
6
  export interface IconSpriteProps {
8
7
  id: string
@@ -12,6 +11,7 @@ export interface IconSpriteProps {
12
11
  export function IconSprite({ id, ...props }: IconSpriteProps): React.JSX.Element {
13
12
  return (
14
13
  <svg {...props}>
14
+ <title>Sprites</title>
15
15
  <use href={`/sprite.svg#${id}`} />
16
16
  </svg>
17
17
  )