@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
@@ -9,4 +9,4 @@
9
9
  --z-index-modal: 1050;
10
10
  --z-index-toast: 1100;
11
11
  }
12
- }
12
+ }
@@ -1,4 +1,4 @@
1
1
  /* @import "./scroll-to-top.css"; */
2
2
  @import "./hamburger.css";
3
3
  @import "./loaders.css";
4
- @import "./fade-in-lift.css";
4
+ @import "./fade-in-lift.css";
@@ -2,7 +2,9 @@
2
2
  opacity: 0;
3
3
  visibility: hidden;
4
4
  transform: matrix(1, 0, 0, 1, 0, 18);
5
- transition: opacity 0.5s ease-out, transform 0.7s ease-out;
5
+ transition:
6
+ opacity 0.5s ease-out,
7
+ transform 0.7s ease-out;
6
8
  will-change: opacity, visibility;
7
9
  }
8
10
 
@@ -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
  .component--hamburger {
@@ -29,7 +34,7 @@
29
34
 
30
35
  .component--hamburger:active,
31
36
  .component--hamburger:focus {
32
- outline: none !important;
37
+ outline: none;
33
38
  border-color: white;
34
39
  border-width: 0.5px;
35
40
  border-style: dashed;
@@ -79,12 +84,16 @@
79
84
 
80
85
  .component--hamburger .inner::before {
81
86
  top: -8px;
82
- transition: top 0.075s 0.12s ease, opacity 0.075s ease;
87
+ transition:
88
+ top 0.075s 0.12s ease,
89
+ opacity 0.075s ease;
83
90
  }
84
91
 
85
92
  .component--hamburger .inner::after {
86
93
  bottom: -8px;
87
- transition: bottom 0.075s 0.12s ease, transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
94
+ transition:
95
+ bottom 0.075s 0.12s ease,
96
+ transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
88
97
  }
89
98
 
90
99
  .component--hamburger.is_active .inner {
@@ -96,12 +105,16 @@
96
105
  .component--hamburger.is_active .inner::before {
97
106
  top: 0;
98
107
  opacity: 0;
99
- transition: top 0.075s ease, opacity 0.075s 0.12s ease;
108
+ transition:
109
+ top 0.075s ease,
110
+ opacity 0.075s 0.12s ease;
100
111
  }
101
112
 
102
113
  .component--hamburger.is_active .inner::after {
103
114
  bottom: 0;
104
115
  transform: rotate(-90deg);
105
- transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
116
+ transition:
117
+ bottom 0.075s ease,
118
+ transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
106
119
  }
107
- }
120
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * BORDER FUNCTIONAL TOKENS
3
- *
3
+ *
4
4
  * Semantic tokens for borders, including colors and potentially
5
5
  * widths, styles, and radii in the future.
6
6
  */
@@ -2,23 +2,22 @@
2
2
  * SEMANTIC / FUNCTIONAL TOKEN LAYER FOR COLORS
3
3
  *
4
4
  * TODO: Refactor into separate file per token category (e.g., buttons, alerts)
5
- *
5
+ *
6
6
  * This layer provides intent-based semantic tokens that automatically switch
7
7
  * between light and dark modes. By defining tokens here (in infonomic-theme layer),
8
8
  * component CSS can reference them without needing :not(:where([class~="not-dark"]...))
9
9
  * selectors, as the theme layer handles all mode switching.
10
- *
10
+ *
11
11
  * Token Naming Convention: element-intent-emphasis-state
12
12
  * - element: fill (backgrounds), text (foreground), stroke (borders), ring (focus)
13
13
  * - intent: primary, secondary, noeffect, success, info, warning, danger
14
14
  * - emphasis: strong, weak, weaker (optional)
15
15
  * - state: hover, press, focus, disabled (optional)
16
- *
16
+ *
17
17
  * Example: --fill-primary-strong-hover
18
18
  */
19
19
 
20
20
  @layer infonomic-functional {
21
-
22
21
  /* ===================================================================
23
22
  LIGHT MODE (default)
24
23
  =================================================================== */
@@ -62,10 +61,15 @@
62
61
  ----------------------------------------------------------------- */
63
62
  --fill-secondary-strong: var(--secondary-500);
64
63
  --fill-secondary-strong-hover: oklch(from var(--secondary-500) calc(l * 0.95) c h);
65
- --fill-secondary-strong-disabled: oklch(from var(--secondary-500) calc(l * 1.1) calc(c * 0.85) h);
64
+ --fill-secondary-strong-disabled: oklch(
65
+ from var(--secondary-500) calc(l * 1.1) calc(c * 0.85) h
66
+ );
66
67
  --fill-secondary-weak: oklch(from var(--secondary-500) calc(l * 1.6) calc(c * 0.4) h / 0.7);
67
68
  --fill-secondary-weak-hover: oklch(from var(--secondary-500) calc(l * 2) calc(c * 0.4) h / 0.7);
68
- --fill-secondary-weak-disabled: oklch(from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h / 0.7);
69
+ --fill-secondary-weak-disabled: oklch(
70
+ from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
71
+ 0.7
72
+ );
69
73
 
70
74
  --text-on-secondary: black;
71
75
  --text-on-secondary-disabled: oklch(from black calc(l * 0.9) calc(c * 0.85) h);
@@ -118,7 +122,10 @@
118
122
  --fill-success-strong-disabled: oklch(from var(--green-400) calc(l * 1.1) calc(c * 0.85) h);
119
123
  --fill-success-weak: oklch(from var(--green-100) calc(l * 1.09) calc(c * 0.85) h / 0.7);
120
124
  --fill-success-weak-hover: oklch(from var(--green-100) calc(l * 0.975) calc(c * 0.85) h / 0.7);
121
- --fill-success-weak-disabled: oklch(from var(--green-100) calc(l * 1.07) calc(c * 0.85) h / 0.7);
125
+ --fill-success-weak-disabled: oklch(
126
+ from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
127
+ 0.7
128
+ );
122
129
 
123
130
  --text-on-success: white;
124
131
  --text-on-success-disabled: oklch(from white calc(l * 0.9) calc(c * 0.85) h);
@@ -214,10 +221,8 @@
214
221
  --gradient-danger-end: var(--red-700);
215
222
  --gradient-danger-foreground: white;
216
223
  --gradient-danger-disabled: oklch(from var(--red-700) calc(l * 1.2) calc(c * 0.85) h);
217
-
218
224
  }
219
225
 
220
-
221
226
  /* 🌙 Dark via `.dark` class or [data-theme="dark"] attribute.
222
227
  * We rely on the consuming application to detect a user's
223
228
  * preferred color scheme - either by header or cookie, and to set
@@ -263,10 +268,18 @@
263
268
  ----------------------------------------------------------------- */
264
269
  --fill-secondary-strong: var(--secondary-500);
265
270
  --fill-secondary-strong-hover: oklch(from var(--secondary-500) calc(l * 0.95) c h);
266
- --fill-secondary-strong-disabled: oklch(from var(--secondary-500) calc(l * 0.85) calc(c * 0.85) h);
271
+ --fill-secondary-strong-disabled: oklch(
272
+ from var(--secondary-500) calc(l * 0.85) calc(c * 0.85) h
273
+ );
267
274
  --fill-secondary-weak: oklch(from var(--secondary-500) calc(l * 0.5) calc(c * 0.5) h / 0.5);
268
- --fill-secondary-weak-hover: oklch(from var(--secondary-500) calc(l * 0.4) calc(c * 0.5) h / 0.5);
269
- --fill-secondary-weak-disabled: oklch(from var(--secondary-500) calc(l * 0.4) calc(c * 0.5) h / 0.5);
275
+ --fill-secondary-weak-hover: oklch(
276
+ from var(--secondary-500) calc(l * 0.4) calc(c * 0.5) h /
277
+ 0.5
278
+ );
279
+ --fill-secondary-weak-disabled: oklch(
280
+ from var(--secondary-500) calc(l * 0.4) calc(c * 0.5) h /
281
+ 0.5
282
+ );
270
283
 
271
284
  --text-on-secondary: black;
272
285
  --text-on-secondary-disabled: oklch(from black calc(l * 0.85) calc(c * 0.85) h);
@@ -415,7 +428,6 @@
415
428
  --gradient-danger-end: var(--red-700);
416
429
  --gradient-danger-foreground: white;
417
430
  --gradient-danger-disabled: oklch(from var(--red-700) calc(l * 0.85) calc(c * 0.85) h);
418
-
419
431
  }
420
432
 
421
433
  /* ===================================================================
@@ -462,10 +474,15 @@
462
474
  ----------------------------------------------------------------- */
463
475
  --fill-secondary-strong: var(--secondary-500);
464
476
  --fill-secondary-strong-hover: oklch(from var(--secondary-500) calc(l * 0.95) c h);
465
- --fill-secondary-strong-disabled: oklch(from var(--secondary-500) calc(l * 1.1) calc(c * 0.85) h);
477
+ --fill-secondary-strong-disabled: oklch(
478
+ from var(--secondary-500) calc(l * 1.1) calc(c * 0.85) h
479
+ );
466
480
  --fill-secondary-weak: oklch(from var(--secondary-500) calc(l * 1.6) calc(c * 0.4) h / 0.7);
467
481
  --fill-secondary-weak-hover: oklch(from var(--secondary-500) calc(l * 2) calc(c * 0.4) h / 0.7);
468
- --fill-secondary-weak-disabled: oklch(from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h / 0.7);
482
+ --fill-secondary-weak-disabled: oklch(
483
+ from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
484
+ 0.7
485
+ );
469
486
 
470
487
  --text-on-secondary: black;
471
488
  --text-on-secondary-disabled: oklch(from black calc(l * 0.9) calc(c * 0.85) h);
@@ -518,7 +535,10 @@
518
535
  --fill-success-strong-disabled: oklch(from var(--green-400) calc(l * 1.1) calc(c * 0.85) h);
519
536
  --fill-success-weak: oklch(from var(--green-100) calc(l * 1.09) calc(c * 0.85) h / 0.7);
520
537
  --fill-success-weak-hover: oklch(from var(--green-100) calc(l * 0.975) calc(c * 0.85) h / 0.7);
521
- --fill-success-weak-disabled: oklch(from var(--green-100) calc(l * 1.07) calc(c * 0.85) h / 0.7);
538
+ --fill-success-weak-disabled: oklch(
539
+ from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
540
+ 0.7
541
+ );
522
542
 
523
543
  --text-on-success: white;
524
544
  --text-on-success-disabled: oklch(from white calc(l * 0.9) calc(c * 0.85) h);
@@ -615,4 +635,4 @@
615
635
  --gradient-danger-foreground: white;
616
636
  --gradient-danger-disabled: oklch(from var(--red-700) calc(l * 1.2) calc(c * 0.85) h);
617
637
  }
618
- }
638
+ }
@@ -2,4 +2,4 @@
2
2
  @import "./surfaces.css";
3
3
  @import "./typography.css";
4
4
  @import "./borders.css";
5
- @import "./grid-flex.css";
5
+ @import "./grid-flex.css";
@@ -49,4 +49,4 @@
49
49
  --flex-nowrap: nowrap;
50
50
  --flex-center: center;
51
51
  }
52
- }
52
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * SURFACE FUNCTIONAL TOKENS
3
- *
3
+ *
4
4
  * Semantic tokens for surfaces, backgrounds, shadows, and depth.
5
5
  * These tokens define the canvas on which content sits.
6
6
  */
@@ -14,17 +14,17 @@
14
14
 
15
15
  /* SURFACE TOKENS (for panels, dropdowns, menus, lists)
16
16
  ----------------------------------------------------------------- */
17
-
17
+
18
18
  /* Panel/container backgrounds */
19
19
  --surface-panel: var(--canvas-25);
20
20
  --surface-panel-elevated: white; /* For dropdowns/popovers with shadow */
21
21
  --surface-panel-border: var(--border-color);
22
-
22
+
23
23
  /* Item backgrounds (default transparent, inherits panel) */
24
24
  --surface-item: transparent;
25
25
  --surface-item-hover: var(--canvas-50);
26
26
  --surface-item-active: var(--canvas-100);
27
-
27
+
28
28
  /* Item text colors */
29
29
  --surface-item-text: var(--text);
30
30
  --surface-item-text-hover: var(--text);
@@ -45,8 +45,7 @@
45
45
  */
46
46
  .dark,
47
47
  [data-theme="dark"],
48
- [data-theme="dark"] ::backdrop
49
- {
48
+ [data-theme="dark"] ::backdrop {
50
49
  --background: var(--canvas-900);
51
50
  --foreground: var(--gray-50);
52
51
  --shadow: var(--shadow-lg);
@@ -54,17 +53,17 @@
54
53
 
55
54
  /* SURFACE TOKENS (Dark Mode)
56
55
  ----------------------------------------------------------------- */
57
-
56
+
58
57
  /* Panel/container backgrounds - slightly elevated from canvas-900 base */
59
58
  --surface-panel: var(--canvas-800);
60
59
  --surface-panel-elevated: var(--canvas-800);
61
60
  --surface-panel-border: var(--border-color);
62
-
61
+
63
62
  /* Item backgrounds - lighter than panel for hover/active */
64
63
  --surface-item: transparent;
65
64
  --surface-item-hover: var(--canvas-700);
66
65
  --surface-item-active: var(--canvas-600);
67
-
66
+
68
67
  /* Item text colors */
69
68
  --surface-item-text: var(--text);
70
69
  --surface-item-text-hover: var(--text);
@@ -91,17 +90,17 @@
91
90
 
92
91
  /* SURFACE TOKENS (Force Light Mode)
93
92
  ----------------------------------------------------------------- */
94
-
93
+
95
94
  /* Panel/container backgrounds - identical to :root */
96
95
  --surface-panel: var(--canvas-25);
97
96
  --surface-panel-elevated: white;
98
97
  --surface-panel-border: var(--border-color);
99
-
98
+
100
99
  /* Item backgrounds */
101
100
  --surface-item: transparent;
102
101
  --surface-item-hover: var(--canvas-50);
103
102
  --surface-item-active: var(--canvas-100);
104
-
103
+
105
104
  /* Item text colors */
106
105
  --surface-item-text: var(--text);
107
106
  --surface-item-text-hover: var(--text);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * TYPOGRAPHY FUNCTIONAL TOKENS
3
- *
3
+ *
4
4
  * Semantic tokens for text colors and typography-related variables.
5
5
  * Separate from typography.css in the typography/ directory which defines
6
6
  * actual typographic styles and scales.
@@ -23,8 +23,7 @@
23
23
  */
24
24
  .dark,
25
25
  [data-theme="dark"],
26
- [data-theme="dark"] ::backdrop
27
- {
26
+ [data-theme="dark"] ::backdrop {
28
27
  --text: var(--gray-50);
29
28
  --headings: var(--gray-50);
30
29
  --muted: oklch(from var(--foreground) calc(l * 0.75) c h);
@@ -5,7 +5,7 @@
5
5
  use its own method to load them.
6
6
  */
7
7
 
8
- @font-face {
8
+ @font-face {
9
9
  font-family: "Inter";
10
10
  src: url("/fonts/Inter/Inter-VariableFont_opsz_wght.woff2") format("woff2");
11
11
  font-weight: 300 900;
@@ -1,7 +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
  @import "./base/base.css";
4
9
  @import "./functional/functional.css";
5
10
  @import "./utils/utils.css";
6
11
  @import "./theme/theme.css";
7
- @import "./components/components.css";
12
+ @import "./components/components.css";
@@ -23,13 +23,13 @@ select:-webkit-autofill:focus, select:autofill:focus {
23
23
  select:autofill,
24
24
  select:autofill:hover,
25
25
  select:autofill:focus {
26
- border: 1px solid #d89d3d !important;
27
- -webkit-text-fill-color: black !important;
28
- -webkit-box-shadow: 0 0 0px 1000px #fff2dc inset !important;
29
- box-shadow: 0 0 0px 1000px #fff2dc inset !important;
30
- transition: background-color 5000s ease-in-out 0s !important;
31
- color: black !important;
32
- background-color: rgb(250, 217, 167) !important;
26
+ border: 1px solid #d89d3d;
27
+ -webkit-text-fill-color: black;
28
+ -webkit-box-shadow: 0 0 0px 1000px #fff2dc inset;
29
+ box-shadow: 0 0 0px 1000px #fff2dc inset;
30
+ transition: background-color 5000s ease-in-out 0s;
31
+ color: black;
32
+ background-color: rgb(250, 217, 167);
33
33
  }
34
34
 
35
35
  /* 🌙 Dark via `.dark` class or [data-theme="dark"] attribute.
@@ -56,12 +56,12 @@ select:-webkit-autofill:focus, select:autofill:focus {
56
56
  [data-theme="dark"] select:autofill,
57
57
  [data-theme="dark"] select:autofill:hover,
58
58
  [data-theme="dark"] select:autofill:focus {
59
- border: 1px solid var(--theme-600) !important;
60
- -webkit-text-fill-color: white !important;
61
- -webkit-box-shadow: 0 0 0px 1000px var(--theme-600) inset !important;
62
- box-shadow: 0 0 0px 1000px var(--theme-600) inset !important;
63
- transition: background-color 5000s ease-in-out 0s !important;
64
- color: white !important;
65
- background-color: rgba(100, 100, 100, 0.5) !important;
59
+ border: 1px solid var(--theme-600);
60
+ -webkit-text-fill-color: white;
61
+ -webkit-box-shadow: 0 0 0px 1000px var(--theme-600) inset;
62
+ box-shadow: 0 0 0px 1000px var(--theme-600) inset;
63
+ transition: background-color 5000s ease-in-out 0s;
64
+ color: white;
65
+ background-color: rgba(100, 100, 100, 0.5);
66
66
  }
67
- }
67
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * HTML ELEMENT DEFAULTS
3
- *
3
+ *
4
4
  * Opinionated starter styles for HTML elements to provide sensible defaults
5
5
  * for new installations. These live in the infonomic-theme layer and are
6
6
  * easily overridden by consuming applications.
@@ -51,4 +51,4 @@
51
51
  scrollbar-width: thin;
52
52
  scrollbar-color: var(--scroll-bar-thumb) var(--scroll-bar-track);
53
53
  }
54
- }
54
+ }
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * THEME
3
- *
3
+ *
4
4
  * This file now primarily serves as a convenient import aggregator for
5
5
  * theme-related concerns: autofill behavior, scrollbar styling, and
6
6
  * HTML element defaults.
7
- *
7
+ *
8
8
  * CSS variable definitions have been moved to functional token files:
9
9
  * - functional/surfaces.css (backgrounds, shadows, loader)
10
10
  * - functional/typography-tokens.css (text, headings, muted)
@@ -14,4 +14,4 @@
14
14
 
15
15
  @import "./autofill.css";
16
16
  @import "./scrollers.css";
17
- @import "./defaults.css";
17
+ @import "./defaults.css";
@@ -2,23 +2,22 @@ import type { Meta } from '@storybook/react-vite'
2
2
 
3
3
  export const Default = (): React.JSX.Element => {
4
4
  return (
5
- <>
6
- <div style={{ marginBottom: '48px' }}>
7
- <div style={{ maxWidth: '700px', margin: '2rem auto' }}>
8
- <div className="p-5 shadow border-thin rounded">
9
- <h2>Heading 2</h2>
10
- <span className="muted">Muted text here.</span>
11
- <p>
12
- This is a paragraph of text that we&apos;ll use for our theme Storybook page. This is
13
- a paragraph of text that has been styled with our default or starter HTML element settings
14
- from our styles/theme/theme.css source CSS file, and does NOT have &apos;prose&apos; applied.
15
- Prose is part of our separately installed typography system via styles/typography/typography.css
16
- - examples of which are available under the Typography category in Storybook.
17
- </p>
18
- </div>
5
+ <div style={{ marginBottom: '48px' }}>
6
+ <div style={{ maxWidth: '700px', margin: '2rem auto' }}>
7
+ <div className="p-5 shadow border-thin rounded">
8
+ <h2>Heading 2</h2>
9
+ <span className="muted">Muted text here.</span>
10
+ <p>
11
+ This is a paragraph of text that we&apos;ll use for our theme Storybook page. This is a
12
+ paragraph of text that has been styled with our default or starter HTML element settings
13
+ from our styles/theme/theme.css source CSS file, and does NOT have &apos;prose&apos;
14
+ applied. Prose is part of our separately installed typography system via
15
+ styles/typography/typography.css - examples of which are available under the Typography
16
+ category in Storybook.
17
+ </p>
19
18
  </div>
20
19
  </div>
21
- </>
20
+ </div>
22
21
  )
23
22
  }
24
23
 
@@ -2,29 +2,28 @@ import type { Meta } from '@storybook/react-vite'
2
2
 
3
3
  export const Article = (): React.JSX.Element => {
4
4
  return (
5
- <>
6
- <div style={{ marginBottom: '48px' }}>
7
- <article style={{ maxWidth: '700px', margin: '2rem auto' }} className="prose">
8
- <h1>An Article</h1>
9
- <p>
10
- This is text that that has been placed in an article element. Text in articles
11
- as well as within .dynamic-text class selectors will automatically increase in size on
12
- mobile devices for better readability. This is a paragraph of text that we&apos;ll
13
- use for our typography storybook page. This is a paragraph of text that we&apos;ll
14
- use for our typography storybook page.
15
- </p>
16
- <blockquote>This is some text inside a blockquote.
17
- Note that we've used em to size text in the blockquote,
18
- so that it also changes size in the article.</blockquote>
19
- <p>
20
- This is a paragraph of text that we&apos;ll use for our typography storybook page. This
21
- is a paragraph of text that we&apos;ll use for our typography storybook page. This is a
22
- paragraph of text that we&apos;ll use for our typography storybook page. This is a
23
- paragraph of text that we&apos;ll use for our typography storybook page.
24
- </p>
25
- </article>
26
- </div>
27
- </>
5
+ <div style={{ marginBottom: '48px' }}>
6
+ <article style={{ maxWidth: '700px', margin: '2rem auto' }} className="prose">
7
+ <h1>An Article</h1>
8
+ <p>
9
+ This is text that that has been placed in an article element. Text in articles as well as
10
+ within .dynamic-text class selectors will automatically increase in size on mobile devices
11
+ for better readability. This is a paragraph of text that we&apos;ll use for our typography
12
+ storybook page. This is a paragraph of text that we&apos;ll use for our typography
13
+ storybook page.
14
+ </p>
15
+ <blockquote>
16
+ This is some text inside a blockquote. Note that we've used em to size text in the
17
+ blockquote, so that it also changes size in the article.
18
+ </blockquote>
19
+ <p>
20
+ This is a paragraph of text that we&apos;ll use for our typography storybook page. This is
21
+ a paragraph of text that we&apos;ll use for our typography storybook page. This is a
22
+ paragraph of text that we&apos;ll use for our typography storybook page. This is a
23
+ paragraph of text that we&apos;ll use for our typography storybook page.
24
+ </p>
25
+ </article>
26
+ </div>
28
27
  )
29
28
  }
30
29
 
@@ -1,5 +1,4 @@
1
1
  import type { Meta } from '@storybook/react-vite'
2
-
3
2
  import { Highlight, themes } from 'prism-react-renderer'
4
3
 
5
4
  const code = `const x = 'foo';
@@ -42,25 +41,23 @@ function CodeDemo({ code, className, language = 'jsx' }: CodeProps): React.JSX.E
42
41
 
43
42
  export const Code = (): React.JSX.Element => {
44
43
  return (
45
- <>
46
- <div style={{ margin: '48px' }}>
47
- <div style={{ maxWidth: '700px', margin: '2rem auto' }} className="prose">
48
- <h1>Heading 1</h1>
49
- <p>
50
- This is an example of <code>inline code here</code> and text that we&apos;ll use for our typography
51
- and code storybook page. This is a paragraph of text that we&apos;ll use for our
52
- typography and code storybook page. Here is a code block...
53
- </p>
54
- <CodeDemo code={code} />
55
- <p>
56
- This is a paragraph of text that we&apos;ll use for our typography storybook page. This
57
- is a paragraph of text that we&apos;ll use for our typography storybook page. This is a
58
- paragraph of text that we&apos;ll use for our typography storybook page. This is a
59
- paragraph of text that we&apos;ll use for our typography storybook page.
60
- </p>
61
- </div>
44
+ <div style={{ margin: '48px' }}>
45
+ <div style={{ maxWidth: '700px', margin: '2rem auto' }} className="prose">
46
+ <h1>Heading 1</h1>
47
+ <p>
48
+ This is an example of <code>inline code here</code> and text that we&apos;ll use for our
49
+ typography and code storybook page. This is a paragraph of text that we&apos;ll use for
50
+ our typography and code storybook page. Here is a code block...
51
+ </p>
52
+ <CodeDemo code={code} />
53
+ <p>
54
+ This is a paragraph of text that we&apos;ll use for our typography storybook page. This is
55
+ a paragraph of text that we&apos;ll use for our typography storybook page. This is a
56
+ paragraph of text that we&apos;ll use for our typography storybook page. This is a
57
+ paragraph of text that we&apos;ll use for our typography storybook page.
58
+ </p>
62
59
  </div>
63
- </>
60
+ </div>
64
61
  )
65
62
  }
66
63