@infonomic/uikit 5.16.0 → 5.17.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 (420) 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/chevron-down-icon.d.ts.map +1 -1
  108. package/dist/icons/chevron-left-double-icon.d.ts.map +1 -1
  109. package/dist/icons/chevron-left-icon.d.ts.map +1 -1
  110. package/dist/icons/chevron-right-double-icon.d.ts.map +1 -1
  111. package/dist/icons/chevron-right-icon.d.ts.map +1 -1
  112. package/dist/icons/chevrons-up-down.d.ts.map +1 -1
  113. package/dist/icons/close-icon.d.ts.map +1 -1
  114. package/dist/icons/copy-icon.d.ts.map +1 -1
  115. package/dist/icons/danger-icon.d.ts.map +1 -1
  116. package/dist/icons/dashboard-icon.d.ts.map +1 -1
  117. package/dist/icons/delete-icon.d.ts.map +1 -1
  118. package/dist/icons/document-icon.d.ts.map +1 -1
  119. package/dist/icons/download-icon.d.ts.map +1 -1
  120. package/dist/icons/edit-icon.d.ts.map +1 -1
  121. package/dist/icons/ellipsis-icon.d.ts.map +1 -1
  122. package/dist/icons/email-icon.d.ts.map +1 -1
  123. package/dist/icons/external-link-icon.d.ts.map +1 -1
  124. package/dist/icons/github-icon.d.ts.map +1 -1
  125. package/dist/icons/globe-icon.d.ts.map +1 -1
  126. package/dist/icons/google-icon.d.ts.map +1 -1
  127. package/dist/icons/gripper-vertical-icon.d.ts.map +1 -1
  128. package/dist/icons/history-icon.d.ts.map +1 -1
  129. package/dist/icons/home-icon.d.ts.map +1 -1
  130. package/dist/icons/icon-element.d.ts +1 -1
  131. package/dist/icons/icon-element.d.ts.map +1 -1
  132. package/dist/icons/icon-element.js +1 -1
  133. package/dist/icons/icon-sprite.js +10 -5
  134. package/dist/icons/icons.module.css +1 -2
  135. package/dist/icons/index.d.ts +27 -27
  136. package/dist/icons/index.d.ts.map +1 -1
  137. package/dist/icons/index.js +27 -27
  138. package/dist/icons/info-icon.d.ts.map +1 -1
  139. package/dist/icons/infonomic-icon.d.ts.map +1 -1
  140. package/dist/icons/light-icon.d.ts.map +1 -1
  141. package/dist/icons/location-pin-icon.d.ts.map +1 -1
  142. package/dist/icons/moon-icon.d.ts.map +1 -1
  143. package/dist/icons/plus-icon.d.ts.map +1 -1
  144. package/dist/icons/primary-icon.d.ts.map +1 -1
  145. package/dist/icons/refresh-icon.d.ts.map +1 -1
  146. package/dist/icons/return-icon.d.ts.map +1 -1
  147. package/dist/icons/roles-icon.d.ts.map +1 -1
  148. package/dist/icons/search-icon.d.ts.map +1 -1
  149. package/dist/icons/search-menu-icon.d.ts.map +1 -1
  150. package/dist/icons/settings-gear-icon.d.ts.map +1 -1
  151. package/dist/icons/settings-sliders-icon.d.ts.map +1 -1
  152. package/dist/icons/sign-out-icon.d.ts.map +1 -1
  153. package/dist/icons/stopwatch-icon.d.ts.map +1 -1
  154. package/dist/icons/success-icon.d.ts.map +1 -1
  155. package/dist/icons/user-icon.d.ts.map +1 -1
  156. package/dist/icons/users-icon.d.ts.map +1 -1
  157. package/dist/icons/wallet-icon.d.ts.map +1 -1
  158. package/dist/icons/warning-icon.d.ts.map +1 -1
  159. package/dist/icons/x-icon.d.ts.map +1 -1
  160. package/dist/react.d.ts +3 -3
  161. package/dist/react.d.ts.map +1 -1
  162. package/dist/react.js +3 -3
  163. package/dist/styles/styles.css +1 -1
  164. package/dist/styles/typography.css +1 -1
  165. package/dist/utils/getPortalRoot.js +1 -1
  166. package/dist/utils/isTouchDevice.js +1 -1
  167. package/dist/utils/objectsToArray.js +3 -9
  168. package/dist/widgets/datepicker/datepicker.d.ts +6 -0
  169. package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
  170. package/dist/widgets/datepicker/datepicker.js +3 -3
  171. package/dist/widgets/datepicker/datepicker.module.css +3 -4
  172. package/dist/widgets/drawer/drawer-container.d.ts.map +1 -1
  173. package/dist/widgets/drawer/drawer-content.d.ts.map +1 -1
  174. package/dist/widgets/drawer/drawer-context.d.ts.map +1 -1
  175. package/dist/widgets/drawer/drawer-header.d.ts.map +1 -1
  176. package/dist/widgets/drawer/drawer-top-actions.d.ts.map +1 -1
  177. package/dist/widgets/drawer/drawer-wrapper.d.ts.map +1 -1
  178. package/dist/widgets/drawer/drawer-wrapper.js +1 -1
  179. package/dist/widgets/drawer/drawer.d.ts +4 -5
  180. package/dist/widgets/drawer/drawer.d.ts.map +1 -1
  181. package/dist/widgets/drawer/drawer.js +3 -3
  182. package/dist/widgets/drawer/drawer.module.css +2 -3
  183. package/dist/widgets/drawer/motionDomAnimation.d.ts.map +1 -1
  184. package/dist/widgets/drawer/motionDomMax.d.ts.map +1 -1
  185. package/dist/widgets/modal/modal-actions.d.ts.map +1 -1
  186. package/dist/widgets/modal/modal-container.d.ts.map +1 -1
  187. package/dist/widgets/modal/modal-content.d.ts.map +1 -1
  188. package/dist/widgets/modal/modal-header.d.ts.map +1 -1
  189. package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -1
  190. package/dist/widgets/modal/modal.d.ts.map +1 -1
  191. package/dist/widgets/modal/modal.js +1 -1
  192. package/dist/widgets/modal/modal.module.css +1 -1
  193. package/dist/widgets/modal/motionDomAnimation.d.ts.map +1 -1
  194. package/dist/widgets/modal/motionDomMax.d.ts.map +1 -1
  195. package/dist/widgets/search/search.d.ts.map +1 -1
  196. package/dist/widgets/timeline/timeline.module.css +7 -2
  197. package/package.json +23 -19
  198. package/src/astro.js +2 -3
  199. package/src/components/accordion/accordion.module.css +1 -2
  200. package/src/components/accordion/accordion.stories.tsx +1 -2
  201. package/src/components/accordion/accordion.tsx +2 -2
  202. package/src/components/animation/fade-in-lift.tsx +1 -0
  203. package/src/components/avatar/avatar.module.css +7 -4
  204. package/src/components/avatar/avatar.stories.tsx +2 -1
  205. package/src/components/avatar/avatar.tsx +2 -1
  206. package/src/components/badge/badge.module.css +7 -2
  207. package/src/components/badge/badge.stories.tsx +1 -2
  208. package/src/components/badge/badge.tsx +11 -6
  209. package/src/components/button/@types/button.ts +1 -3
  210. package/src/components/button/button-group.module.css +1 -1
  211. package/src/components/button/button-group.tsx +3 -3
  212. package/src/components/button/button-intents.stories.tsx +29 -5
  213. package/src/components/button/button-overrides.stories.tsx +25 -8
  214. package/src/components/button/button-test.stories.tsx +25 -7
  215. package/src/components/button/button-variants.stories.tsx +28 -30
  216. package/src/components/button/button.module.css +52 -18
  217. package/src/components/button/button.tsx +5 -4
  218. package/src/components/button/control-buttons.module.css +1 -2
  219. package/src/components/button/control-buttons.stories.tsx +1 -1
  220. package/src/components/button/control-buttons.tsx +5 -2
  221. package/src/components/button/copy-button.module.css +7 -2
  222. package/src/components/button/copy-button.tsx +3 -3
  223. package/src/components/button/icon-button.stories.tsx +82 -86
  224. package/src/components/button/icon-button.tsx +4 -3
  225. package/src/components/button/index.ts +3 -3
  226. package/src/components/card/card.module.css +8 -3
  227. package/src/components/card/card.stories.tsx +0 -1
  228. package/src/components/card/card.tsx +2 -1
  229. package/src/components/chips/chip.module.css +34 -12
  230. package/src/components/chips/chip.stories.tsx +21 -9
  231. package/src/components/chips/chip.tsx +162 -154
  232. package/src/components/chips/index.ts +1 -1
  233. package/src/components/container/container.module.css +7 -2
  234. package/src/components/dropdown/dropdown.module.css +7 -5
  235. package/src/components/dropdown/dropdown.tsx +2 -1
  236. package/src/components/forms/calendar.module.css +19 -15
  237. package/src/components/forms/calendar.stories.tsx +8 -6
  238. package/src/components/forms/calendar.tsx +4 -2
  239. package/src/components/forms/checkbox.module.css +9 -4
  240. package/src/components/forms/checkbox.stories.tsx +21 -25
  241. package/src/components/forms/checkbox.tsx +6 -5
  242. package/src/components/forms/error-text.module.css +8 -3
  243. package/src/components/forms/error-text.tsx +2 -1
  244. package/src/components/forms/help-text.module.css +8 -3
  245. package/src/components/forms/help-text.tsx +2 -1
  246. package/src/components/forms/index.tsx +2 -2
  247. package/src/components/forms/input-adornment.module.css +7 -2
  248. package/src/components/forms/input-adornment.tsx +2 -1
  249. package/src/components/forms/input.module.css +8 -5
  250. package/src/components/forms/input.stories.tsx +110 -117
  251. package/src/components/forms/input.tsx +5 -5
  252. package/src/components/forms/label.module.css +8 -3
  253. package/src/components/forms/label.tsx +2 -1
  254. package/src/components/forms/radio-group.module.css +8 -5
  255. package/src/components/forms/radio-group.stories.tsx +1 -1
  256. package/src/components/forms/radio-group.tsx +5 -2
  257. package/src/components/forms/select.module.css +7 -2
  258. package/src/components/forms/select.stories.tsx +9 -11
  259. package/src/components/forms/select.tsx +6 -5
  260. package/src/components/forms/text-area.module.css +11 -5
  261. package/src/components/forms/text-area.stories.tsx +25 -30
  262. package/src/components/forms/text-area.tsx +3 -2
  263. package/src/components/notifications/@types/alert.ts +0 -3
  264. package/src/components/notifications/alert.module.css +7 -2
  265. package/src/components/notifications/alert.stories.tsx +21 -4
  266. package/src/components/notifications/alert.tsx +4 -4
  267. package/src/components/notifications/toast.module.css +7 -5
  268. package/src/components/notifications/toast.stories.tsx +2 -2
  269. package/src/components/notifications/toast.tsx +5 -3
  270. package/src/components/overlay/index.stories.tsx +0 -3
  271. package/src/components/overlay/overlay.module.css +1 -1
  272. package/src/components/overlay/overlay.tsx +7 -6
  273. package/src/components/pager/ellipses.tsx +2 -2
  274. package/src/components/pager/event-pager.tsx +3 -1
  275. package/src/components/pager/first-button.tsx +4 -3
  276. package/src/components/pager/icons/index.tsx +2 -2
  277. package/src/components/pager/index.ts +2 -2
  278. package/src/components/pager/last-button.tsx +4 -3
  279. package/src/components/pager/next-button.tsx +4 -3
  280. package/src/components/pager/number-button.tsx +5 -5
  281. package/src/components/pager/pagination.module.css +8 -6
  282. package/src/components/pager/pagination.stories.tsx +3 -3
  283. package/src/components/pager/pagination.tsx +4 -3
  284. package/src/components/pager/previous-button.tsx +4 -3
  285. package/src/components/scroll-area/scroll-area.module.css +7 -2
  286. package/src/components/scroll-area/scroll-area.tsx +2 -1
  287. package/src/components/scroll-to-top/scroll-to-top.module.css +6 -2
  288. package/src/components/scroll-to-top/scroll-to-top.tsx +5 -2
  289. package/src/components/section/section.module.css +7 -2
  290. package/src/components/shimmer/shimmer.module.css +9 -10
  291. package/src/components/shimmer/shimmer.tsx +3 -2
  292. package/src/components/table/table.module.css +8 -4
  293. package/src/components/table/table.tsx +2 -1
  294. package/src/components/tabs/tabs.module.css +7 -3
  295. package/src/components/tabs/tabs.tsx +2 -2
  296. package/src/components/tooltip/tooltip.module.css +7 -4
  297. package/src/components/tooltip/tooltip.stories.tsx +35 -37
  298. package/src/components/tooltip/tooltip.tsx +2 -1
  299. package/src/hooks/use-media-query.ts +1 -1
  300. package/src/icons/activity-icon.tsx +2 -1
  301. package/src/icons/calendar-icon.tsx +1 -3
  302. package/src/icons/check-icon.tsx +1 -3
  303. package/src/icons/chevron-down-icon.tsx +1 -3
  304. package/src/icons/chevron-left-double-icon.tsx +2 -1
  305. package/src/icons/chevron-left-icon.tsx +2 -1
  306. package/src/icons/chevron-right-double-icon.tsx +2 -1
  307. package/src/icons/chevron-right-icon.tsx +2 -1
  308. package/src/icons/chevrons-up-down.tsx +2 -1
  309. package/src/icons/close-icon.tsx +13 -11
  310. package/src/icons/copy-icon.tsx +1 -3
  311. package/src/icons/danger-icon.tsx +2 -1
  312. package/src/icons/dashboard-icon.tsx +1 -3
  313. package/src/icons/delete-icon.tsx +1 -3
  314. package/src/icons/document-icon.tsx +1 -3
  315. package/src/icons/download-icon.tsx +1 -3
  316. package/src/icons/edit-icon.tsx +1 -3
  317. package/src/icons/ellipsis-icon.tsx +1 -3
  318. package/src/icons/email-icon.tsx +1 -3
  319. package/src/icons/external-link-icon.tsx +1 -3
  320. package/src/icons/github-icon.tsx +2 -1
  321. package/src/icons/globe-icon.tsx +1 -3
  322. package/src/icons/google-icon.tsx +0 -1
  323. package/src/icons/gripper-vertical-icon.tsx +1 -3
  324. package/src/icons/history-icon.tsx +2 -1
  325. package/src/icons/home-icon.tsx +1 -3
  326. package/src/icons/icon-element.tsx +3 -3
  327. package/src/icons/icon-sprite.tsx +2 -2
  328. package/src/icons/icons.module.css +1 -2
  329. package/src/icons/index.ts +27 -27
  330. package/src/icons/info-icon.tsx +2 -1
  331. package/src/icons/infonomic-icon.tsx +0 -1
  332. package/src/icons/light-icon.tsx +1 -3
  333. package/src/icons/location-pin-icon.tsx +1 -3
  334. package/src/icons/moon-icon.tsx +1 -3
  335. package/src/icons/plus-icon.tsx +1 -3
  336. package/src/icons/primary-icon.tsx +3 -3
  337. package/src/icons/refresh-icon.tsx +1 -3
  338. package/src/icons/return-icon.tsx +1 -3
  339. package/src/icons/roles-icon.tsx +1 -3
  340. package/src/icons/search-icon.tsx +1 -3
  341. package/src/icons/search-menu-icon.tsx +1 -3
  342. package/src/icons/settings-gear-icon.tsx +1 -3
  343. package/src/icons/settings-sliders-icon.tsx +1 -3
  344. package/src/icons/sign-out-icon.tsx +1 -3
  345. package/src/icons/stopwatch-icon.tsx +1 -3
  346. package/src/icons/success-icon.tsx +2 -1
  347. package/src/icons/user-icon.tsx +1 -3
  348. package/src/icons/users-icon.tsx +1 -3
  349. package/src/icons/wallet-icon.tsx +1 -3
  350. package/src/icons/warning-icon.tsx +2 -1
  351. package/src/icons/x-icon.tsx +1 -3
  352. package/src/loaders/loaders.stories.tsx +5 -7
  353. package/src/react.ts +3 -5
  354. package/src/styles/base/animations.css +1 -3
  355. package/src/styles/base/base.css +0 -1
  356. package/src/styles/base/borders.css +1 -1
  357. package/src/styles/base/breakpoints.css +2 -2
  358. package/src/styles/base/colors.css +1 -1
  359. package/src/styles/base/opacity.css +2 -2
  360. package/src/styles/base/reset.css +9 -7
  361. package/src/styles/base/shadows.css +1 -1
  362. package/src/styles/base/size.css +21 -21
  363. package/src/styles/base/spacing.css +21 -21
  364. package/src/styles/base/transitions.css +1 -1
  365. package/src/styles/base/typography.css +1 -2
  366. package/src/styles/base/z-index.css +1 -1
  367. package/src/styles/components/components.css +1 -1
  368. package/src/styles/components/fade-in-lift.css +3 -1
  369. package/src/styles/components/hamburger.css +20 -7
  370. package/src/styles/functional/borders.css +1 -1
  371. package/src/styles/functional/colors.css +37 -17
  372. package/src/styles/functional/functional.css +1 -1
  373. package/src/styles/functional/grid-flex.css +1 -1
  374. package/src/styles/functional/surfaces.css +11 -12
  375. package/src/styles/functional/typography.css +2 -3
  376. package/src/styles/local-fonts.css +1 -1
  377. package/src/styles/styles.css +7 -2
  378. package/src/styles/theme/autofill.css +15 -15
  379. package/src/styles/theme/defaults.css +1 -1
  380. package/src/styles/theme/scrollers.css +1 -1
  381. package/src/styles/theme/theme.css +3 -3
  382. package/src/styles/theme/theme.stories.tsx +14 -15
  383. package/src/styles/typography/article.stories.tsx +22 -23
  384. package/src/styles/typography/code.stories.tsx +16 -19
  385. package/src/styles/typography/default.stories.tsx +31 -33
  386. package/src/styles/typography/fonts.css +10 -7
  387. package/src/styles/typography/lists.stories.tsx +30 -32
  388. package/src/styles/typography/prose.css +14 -7
  389. package/src/styles/typography/quote.stories.tsx +20 -19
  390. package/src/styles/typography.css +1 -1
  391. package/src/styles/utils/utility-classes.css +9 -14
  392. package/src/theme/theme-provider/provider.tsx +2 -2
  393. package/src/utils/externalLinkProps.ts +1 -1
  394. package/src/utils/objectsToArray.ts +3 -5
  395. package/src/utils/polymorphic.ts +1 -1
  396. package/src/widgets/datepicker/datepicker.module.css +3 -4
  397. package/src/widgets/datepicker/datepicker.tsx +15 -5
  398. package/src/widgets/drawer/drawer-container.tsx +1 -0
  399. package/src/widgets/drawer/drawer-content.tsx +1 -0
  400. package/src/widgets/drawer/drawer-context.tsx +1 -3
  401. package/src/widgets/drawer/drawer-header.tsx +1 -0
  402. package/src/widgets/drawer/drawer-top-actions.tsx +1 -0
  403. package/src/widgets/drawer/drawer-wrapper.tsx +3 -4
  404. package/src/widgets/drawer/drawer.module.css +2 -3
  405. package/src/widgets/drawer/drawer.stories.tsx +38 -41
  406. package/src/widgets/drawer/drawer.tsx +6 -9
  407. package/src/widgets/drawer/motionDomAnimation.ts +1 -0
  408. package/src/widgets/drawer/motionDomMax.ts +1 -0
  409. package/src/widgets/modal/modal-actions.tsx +1 -0
  410. package/src/widgets/modal/modal-container.tsx +1 -0
  411. package/src/widgets/modal/modal-content.tsx +1 -0
  412. package/src/widgets/modal/modal-header.tsx +1 -0
  413. package/src/widgets/modal/modal-wrapper.tsx +2 -2
  414. package/src/widgets/modal/modal.module.css +1 -1
  415. package/src/widgets/modal/modal.stories.tsx +0 -1
  416. package/src/widgets/modal/modal.tsx +2 -2
  417. package/src/widgets/modal/motionDomAnimation.ts +1 -0
  418. package/src/widgets/modal/motionDomMax.ts +1 -0
  419. package/src/widgets/search/search.tsx +1 -1
  420. package/src/widgets/timeline/timeline.module.css +7 -2
@@ -1,14 +1,15 @@
1
1
  'use client'
2
2
 
3
- import { CheckIcon } from '../../icons/check-icon'
3
+ import type * as React from 'react'
4
+
4
5
  import cx from 'classnames'
5
6
  import { Checkbox as CheckboxPrimitive, Label as LabelPrimitive } from 'radix-ui'
6
- import type * as React from 'react'
7
7
 
8
- import type { Intent, Size, Variant } from './@types/checkbox.js'
8
+ import { CheckIcon } from '../../icons/check-icon'
9
9
  import styles from './checkbox.module.css'
10
10
  import { ErrorText } from './error-text.js'
11
11
  import { HelpText } from './help-text.js'
12
+ import type { Intent, Size, Variant } from './@types/checkbox.js'
12
13
 
13
14
  export interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
14
15
  id: string
@@ -19,7 +20,7 @@ export interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
19
20
  intent?: Intent
20
21
  reverse?: boolean
21
22
  checked?: boolean
22
- className?: string,
23
+ className?: string
23
24
  checkBoxClasses?: string
24
25
  containerClasses?: string
25
26
  componentClasses?: string
@@ -84,7 +85,7 @@ export const Checkbox = function Checkbox({
84
85
  </CheckboxPrimitive.Indicator>
85
86
  </CheckboxPrimitive.Root>
86
87
 
87
- { label != null && (
88
+ {label != null && (
88
89
  <LabelPrimitive.Label htmlFor={id} className={cx(styles.label, labelClasses)}>
89
90
  {label}
90
91
  </LabelPrimitive.Label>
@@ -1,9 +1,14 @@
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
  .text,
5
10
  :global(.error-text) {
6
11
  font-size: 0.875rem;
7
- color: var(--error)
12
+ color: var(--error);
8
13
  }
9
- }
14
+ }
@@ -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 styles from './error-text.module.css'
5
6
 
6
7
  interface ErrorTextProps {
@@ -1,9 +1,14 @@
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
  .text,
5
10
  :global(.help-text) {
6
11
  font-size: 0.875rem;
7
- color: var(--muted)
12
+ color: var(--muted);
8
13
  }
9
- }
14
+ }
@@ -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 styles from './help-text.module.css'
5
6
 
6
7
  interface HelpTextProps {
@@ -1,8 +1,8 @@
1
+ export * from './checkbox.js'
2
+ export * from './help-text.js'
1
3
  export * from './input.js'
2
4
  export * from './input-adornment.js'
3
5
  export * from './label.js'
4
- export * from './help-text.js'
5
6
  export * from './select.js'
6
7
  export * from './text-area.js'
7
- export * from './checkbox.js'
8
8
  export * from './utils.js'
@@ -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
  .adornment,
@@ -18,4 +23,4 @@
18
23
  :global(.input-adornment-end) {
19
24
  justify-content: flex-end;
20
25
  }
21
- }
26
+ }
@@ -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 styles from './input-adornment.module.css'
5
6
 
6
7
  type InputAdornmentIntrinsicProps = React.JSX.IntrinsicElements['div']
@@ -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
  .input-wrapper,
6
10
  :global(.input-wrapper) {
7
11
  display: flex;
@@ -137,7 +141,7 @@
137
141
  .underlined.sm,
138
142
  :global(.input-underlined.input-sm) {
139
143
  padding: 0.25rem 0.1rem;
140
- min-height: 26px
144
+ min-height: 26px;
141
145
  }
142
146
 
143
147
  .underlined.md,
@@ -162,7 +166,6 @@
162
166
  background-color: var(--input-variant-filled);
163
167
  }
164
168
 
165
-
166
169
  /* Error classes last, so that they override all
167
170
  of the above */
168
171
  .error,
@@ -278,4 +281,4 @@
278
281
  }
279
282
 
280
283
  /* Dark mode handled by semantic tokens in theme layer */
281
- }
284
+ }
@@ -5,7 +5,6 @@ import { capitalize } from '../../utils/capitalize.js'
5
5
  import { intent } from '../@types/shared.js'
6
6
  import { IconButton } from '../button/icon-button.js'
7
7
  import { size, variant } from './@types/input.js'
8
-
9
8
  import { Input, InputAdornment } from './index.js'
10
9
 
11
10
  export default {
@@ -16,113 +15,109 @@ export default {
16
15
 
17
16
  export const Default = (): React.JSX.Element => {
18
17
  return (
19
- <>
20
- <div style={{ margin: '2rem 0' }}>
21
- <div
22
- style={{
23
- maxWidth: '600px',
24
- margin: '0 auto',
25
- display: 'flex',
26
- flexDirection: 'column',
27
- gap: '1rem',
28
- }}
29
- >
30
- <Input
31
- variant="outlined"
32
- intent="primary"
33
- id="name"
34
- name="name"
35
- label="Name"
36
- placeHolder="Name"
37
- helpText="Please enter your name."
38
- disabled={false}
39
- error={false}
40
- />
41
- <Input
42
- variant="outlined"
43
- intent="secondary"
44
- required
45
- id="foo"
46
- name="foo"
47
- label="Foo Required"
48
- placeHolder="Foo"
49
- helpText="Please enter your foo."
50
- disabled={false}
51
- error={false}
52
- />
53
- <Input
54
- variant="outlined"
55
- intent="primary"
56
- label="Start and End Adornments"
57
- startAdornment={
58
- <InputAdornment>
59
- <IconButton role="button" intent="noeffect" variant="text" ripple={false} size="xs">
60
- <SearchIcon width="20px" height="20px" />
61
- </IconButton>
62
- </InputAdornment>
63
- }
64
- endAdornment={
65
- <InputAdornment>
66
- <IconButton role="button" intent="noeffect" variant="text" size="xs">
67
- <CloseIcon width="16px" height="16px" />
68
- </IconButton>
69
- </InputAdornment>
70
- }
71
- id="search"
72
- name="search"
73
- placeHolder="Search"
74
- disabled={false}
75
- error={false}
76
- />
77
- </div>
18
+ <div style={{ margin: '2rem 0' }}>
19
+ <div
20
+ style={{
21
+ maxWidth: '600px',
22
+ margin: '0 auto',
23
+ display: 'flex',
24
+ flexDirection: 'column',
25
+ gap: '1rem',
26
+ }}
27
+ >
28
+ <Input
29
+ variant="outlined"
30
+ intent="primary"
31
+ id="name"
32
+ name="name"
33
+ label="Name"
34
+ placeHolder="Name"
35
+ helpText="Please enter your name."
36
+ disabled={false}
37
+ error={false}
38
+ />
39
+ <Input
40
+ variant="outlined"
41
+ intent="secondary"
42
+ required
43
+ id="foo"
44
+ name="foo"
45
+ label="Foo Required"
46
+ placeHolder="Foo"
47
+ helpText="Please enter your foo."
48
+ disabled={false}
49
+ error={false}
50
+ />
51
+ <Input
52
+ variant="outlined"
53
+ intent="primary"
54
+ label="Start and End Adornments"
55
+ startAdornment={
56
+ <InputAdornment>
57
+ <IconButton role="button" intent="noeffect" variant="text" ripple={false} size="xs">
58
+ <SearchIcon width="20px" height="20px" />
59
+ </IconButton>
60
+ </InputAdornment>
61
+ }
62
+ endAdornment={
63
+ <InputAdornment>
64
+ <IconButton role="button" intent="noeffect" variant="text" size="xs">
65
+ <CloseIcon width="16px" height="16px" />
66
+ </IconButton>
67
+ </InputAdornment>
68
+ }
69
+ id="search"
70
+ name="search"
71
+ placeHolder="Search"
72
+ disabled={false}
73
+ error={false}
74
+ />
78
75
  </div>
79
- </>
76
+ </div>
80
77
  )
81
78
  }
82
79
 
83
80
  export const Variants = (): React.JSX.Element => {
84
81
  return (
85
- <>
86
- <div style={{ maxWidth: '1100px', margin: '0 auto' }}>
87
- {variant.map((variant) => {
88
- return (
89
- <div
90
- key={variant}
91
- style={{ marginBottom: '2rem' }}
92
- className="grid grid-cols-4 items-center gap-12"
93
- >
94
- {size.map((size) => {
95
- return (
96
- <Input
97
- key={`${variant}=${size}`}
98
- variant={variant}
99
- inputSize={size}
100
- id={`${variant}-${size}`}
101
- name={`${variant}-${size}`}
102
- label={`${capitalize(variant)} ${size.toUpperCase()}`}
103
- placeHolder={`${capitalize(variant)} ${size.toUpperCase()}`}
104
- helpText={`Please enter your ${variant} ${size.toUpperCase()}.`}
105
- disabled={false}
106
- error={false}
107
- />
108
- )
109
- })}
110
- <Input
111
- disabled={true}
112
- key={`${variant}=${size}`}
113
- variant={variant}
114
- id={`${variant}-${size}`}
115
- name={`${variant}-${size}`}
116
- label={`${capitalize(variant)} Disabled`}
117
- placeHolder={`${capitalize(variant)} disabled`}
118
- helpText={`Please enter your ${variant} disabled.`}
119
- error={false}
120
- />
121
- </div>
122
- )
123
- })}
124
- </div>
125
- </>
82
+ <div style={{ maxWidth: '1100px', margin: '0 auto' }}>
83
+ {variant.map((variant) => {
84
+ return (
85
+ <div
86
+ key={variant}
87
+ style={{ marginBottom: '2rem' }}
88
+ className="grid grid-cols-4 items-center gap-12"
89
+ >
90
+ {size.map((size) => {
91
+ return (
92
+ <Input
93
+ key={`${variant}=${size}`}
94
+ variant={variant}
95
+ inputSize={size}
96
+ id={`${variant}-${size}`}
97
+ name={`${variant}-${size}`}
98
+ label={`${capitalize(variant)} ${size.toUpperCase()}`}
99
+ placeHolder={`${capitalize(variant)} ${size.toUpperCase()}`}
100
+ helpText={`Please enter your ${variant} ${size.toUpperCase()}.`}
101
+ disabled={false}
102
+ error={false}
103
+ />
104
+ )
105
+ })}
106
+ <Input
107
+ disabled={true}
108
+ key={`${variant}=${size}`}
109
+ variant={variant}
110
+ id={`${variant}-${size}`}
111
+ name={`${variant}-${size}`}
112
+ label={`${capitalize(variant)} Disabled`}
113
+ placeHolder={`${capitalize(variant)} disabled`}
114
+ helpText={`Please enter your ${variant} disabled.`}
115
+ error={false}
116
+ />
117
+ </div>
118
+ )
119
+ })}
120
+ </div>
126
121
  )
127
122
  }
128
123
 
@@ -155,20 +150,18 @@ export const Intents = (): React.JSX.Element => {
155
150
  // biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
156
151
  export const Error = (): React.JSX.Element => {
157
152
  return (
158
- <>
159
- <div style={{ maxWidth: '600px', margin: '0 auto' }}>
160
- <Input
161
- required
162
- id="name"
163
- name="name"
164
- label="Name"
165
- placeHolder="Name"
166
- helpText="Please enter your name."
167
- disabled={false}
168
- error={true}
169
- errorText="Please enter a valid name."
170
- />
171
- </div>
172
- </>
153
+ <div style={{ maxWidth: '600px', margin: '0 auto' }}>
154
+ <Input
155
+ required
156
+ id="name"
157
+ name="name"
158
+ label="Name"
159
+ placeHolder="Name"
160
+ helpText="Please enter your name."
161
+ disabled={false}
162
+ error={true}
163
+ errorText="Please enter a valid name."
164
+ />
165
+ </div>
173
166
  )
174
167
  }
@@ -1,15 +1,15 @@
1
1
  'use client'
2
2
 
3
- import cx from 'classnames'
4
3
  import type React from 'react'
5
4
 
6
- import type { Intent, Size, Variant } from './@types/input.js'
5
+ import cx from 'classnames'
6
+
7
7
  import { ErrorText } from './error-text.js'
8
8
  import { HelpText } from './help-text.js'
9
9
  import styles from './input.module.css'
10
-
11
- import type { InputAdornmentProps } from './input-adornment.js'
12
10
  import { Label } from './label.js'
11
+ import type { Intent, Size, Variant } from './@types/input.js'
12
+ import type { InputAdornmentProps } from './input-adornment.js'
13
13
 
14
14
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
15
15
  id: string
@@ -32,7 +32,7 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
32
32
  ref?: React.RefCallback<HTMLInputElement | null> | React.RefObject<HTMLInputElement | null>
33
33
  }
34
34
 
35
- export const Input = <C extends React.ElementType = 'input'>({
35
+ export const Input = <_C extends React.ElementType = 'input'>({
36
36
  ref,
37
37
  id,
38
38
  name,
@@ -1,15 +1,20 @@
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
  .label,
5
10
  :global(.label) {
6
11
  display: block;
7
12
  font-weight: 500;
8
- color: var(--text)
13
+ color: var(--text);
9
14
  }
10
15
 
11
16
  .required,
12
17
  :global(.label-required) {
13
18
  color: var(--error);
14
19
  }
15
- }
20
+ }
@@ -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 styles from './label.module.css'
5
6
 
6
7
  interface LabelProps {
@@ -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
  .column {
7
11
  display: flex;
8
12
  flex-direction: column;
@@ -83,10 +87,9 @@
83
87
 
84
88
  .row .label {
85
89
  padding-left: 0;
86
- padding-right: var(--spacing-16)
90
+ padding-right: var(--spacing-16);
87
91
  }
88
92
 
89
-
90
93
  /* Intents */
91
94
  .primary {
92
95
  --radio-border: var(--fill-primary-strong);
@@ -160,4 +163,4 @@
160
163
  transform: scale(0.8);
161
164
  }
162
165
  }
163
- }
166
+ }
@@ -1,7 +1,7 @@
1
1
  import type { Meta } from '@storybook/react-vite'
2
2
 
3
- import type { RadioGroupValue } from './radio-group.js'
4
3
  import { RadioGroup as RadioGroupComponent, RadioGroupItem } from './radio-group.js'
4
+ import type { RadioGroupValue } from './radio-group.js'
5
5
 
6
6
  const meta: Meta = {
7
7
  /* 👇 The title prop is optional.
@@ -1,9 +1,12 @@
1
1
  'use client'
2
+
3
+ import type React from 'react'
4
+
2
5
  import cx from 'classnames'
3
6
  import { RadioGroup as RadioGroupPrimitive } from 'radix-ui'
4
- import type React from 'react'
5
- import type { Intent } from '../@types/shared'
7
+
6
8
  import styles from './radio-group.module.css'
9
+ import type { Intent } from '../@types/shared'
7
10
 
8
11
  export interface RadioGroupValue {
9
12
  id: string
@@ -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
  .content {
@@ -65,4 +70,4 @@
65
70
  align-items: center;
66
71
  justify-content: center;
67
72
  }
68
- }
73
+ }
@@ -19,16 +19,14 @@ const values: SelectValue[] = [
19
19
 
20
20
  export const Default = (): React.JSX.Element => {
21
21
  return (
22
- <>
23
- <div style={{ maxWidth: '600px', margin: '2rem auto' }}>
24
- <Select placeholder="Select one..." helpText="Select an item.">
25
- {values.map((value) => (
26
- <SelectItem key={value.value} value={value.value}>
27
- {value.label}
28
- </SelectItem>
29
- ))}
30
- </Select>
31
- </div>
32
- </>
22
+ <div style={{ maxWidth: '600px', margin: '2rem auto' }}>
23
+ <Select placeholder="Select one..." helpText="Select an item.">
24
+ {values.map((value) => (
25
+ <SelectItem key={value.value} value={value.value}>
26
+ {value.label}
27
+ </SelectItem>
28
+ ))}
29
+ </Select>
30
+ </div>
33
31
  )
34
32
  }
@@ -1,16 +1,17 @@
1
1
  'use client'
2
2
 
3
+ import type React from 'react'
4
+ import type { ComponentPropsWithoutRef } from 'react'
5
+
3
6
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons'
4
7
  import cx from 'classnames'
5
8
  import { Select as SelectPrimitive } from 'radix-ui'
6
- import type React from 'react'
7
- import type { ComponentPropsWithoutRef } from 'react'
8
- import type { Intent } from '../@types/shared.js'
9
- import type { Size, Variant } from '../button/@types/button.js'
9
+
10
10
  import { Button } from '../button/button.js'
11
11
  import { HelpText } from './help-text.js'
12
-
13
12
  import styles from './select.module.css'
13
+ import type { Intent } from '../@types/shared.js'
14
+ import type { Size, Variant } from '../button/@types/button.js'
14
15
 
15
16
  export interface SelectValue {
16
17
  label: string
@@ -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
  .text-area,
6
10
  :global(.text-area) {
7
11
  font-size: 1.1rem;
@@ -14,7 +18,9 @@
14
18
  padding-right: 0;
15
19
  }
16
20
 
17
- .outlined {}
21
+ .outlined {
22
+ }
18
23
 
19
- .filled {}
20
- }
24
+ .filled {
25
+ }
26
+ }