@eylulg/ui 1.2.0 → 2.0.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 (524) hide show
  1. package/README.md +172 -223
  2. package/dist/components/{Avatar → atoms/Avatar}/Avatar.d.ts +3 -1
  3. package/dist/components/{Avatar → atoms/Avatar}/Avatar.js +4 -4
  4. package/dist/components/atoms/Avatar/Avatar.js.map +1 -0
  5. package/dist/components/{Avatar → atoms/Avatar}/index.d.ts +1 -1
  6. package/dist/components/atoms/Avatar/index.js +2 -0
  7. package/dist/components/{Badge → atoms/Badge}/Badge.d.ts +10 -6
  8. package/dist/components/{Badge → atoms/Badge}/Badge.js +12 -16
  9. package/dist/components/atoms/Badge/Badge.js.map +1 -0
  10. package/dist/components/atoms/Badge/index.d.ts +2 -0
  11. package/dist/components/atoms/BrandLoader/BrandLoader.d.ts +14 -0
  12. package/dist/components/atoms/BrandLoader/BrandLoader.js +57 -0
  13. package/dist/components/atoms/BrandLoader/BrandLoader.js.map +1 -0
  14. package/dist/components/atoms/BrandLoader/index.d.ts +2 -0
  15. package/dist/components/atoms/BrandLoader/index.js +2 -0
  16. package/dist/{chrome → components/atoms/BrandLogo}/BrandLogo.d.ts +1 -1
  17. package/dist/{chrome → components/atoms/BrandLogo}/BrandLogo.js +3 -4
  18. package/dist/components/atoms/BrandLogo/BrandLogo.js.map +1 -0
  19. package/dist/components/atoms/BrandLogo/index.d.ts +2 -0
  20. package/dist/components/atoms/BrandLogo/index.js +1 -0
  21. package/dist/components/{Button → atoms/Button}/Button.d.ts +13 -9
  22. package/dist/components/atoms/Button/Button.js +88 -0
  23. package/dist/components/atoms/Button/Button.js.map +1 -0
  24. package/dist/components/{Button → atoms/Button}/buttonStyles.d.ts +4 -6
  25. package/dist/components/atoms/Button/buttonStyles.js +25 -0
  26. package/dist/components/atoms/Button/buttonStyles.js.map +1 -0
  27. package/dist/components/atoms/Button/index.d.ts +2 -0
  28. package/dist/components/atoms/Button/index.js +4 -0
  29. package/dist/components/{Checkbox → atoms/Checkbox}/Checkbox.js +10 -14
  30. package/dist/components/atoms/Checkbox/Checkbox.js.map +1 -0
  31. package/dist/components/atoms/IconButton/IconButton.d.ts +21 -0
  32. package/dist/components/atoms/IconButton/IconButton.js +43 -0
  33. package/dist/components/atoms/IconButton/IconButton.js.map +1 -0
  34. package/dist/components/{Kbd → atoms/Kbd}/Kbd.d.ts +2 -2
  35. package/dist/components/{Kbd → atoms/Kbd}/Kbd.js +9 -8
  36. package/dist/components/atoms/Kbd/Kbd.js.map +1 -0
  37. package/dist/components/atoms/NavItem/NavItem.d.ts +24 -0
  38. package/dist/components/atoms/NavItem/NavItem.js +42 -0
  39. package/dist/components/atoms/NavItem/NavItem.js.map +1 -0
  40. package/dist/components/atoms/NavItem/index.d.ts +2 -0
  41. package/dist/components/atoms/NavItem/index.js +1 -0
  42. package/dist/components/{ProgressBar → atoms/ProgressBar}/ProgressBar.d.ts +2 -2
  43. package/dist/components/{ProgressBar → atoms/ProgressBar}/ProgressBar.js +6 -5
  44. package/dist/components/atoms/ProgressBar/ProgressBar.js.map +1 -0
  45. package/dist/components/atoms/ProgressBar/index.d.ts +2 -0
  46. package/dist/components/{Skeleton → atoms/Skeleton}/Skeleton.js +3 -5
  47. package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -0
  48. package/dist/components/{Spinner → atoms/Spinner}/Spinner.js +2 -2
  49. package/dist/components/atoms/Spinner/Spinner.js.map +1 -0
  50. package/dist/components/{Switch → atoms/Switch}/Switch.d.ts +3 -3
  51. package/dist/components/atoms/Switch/Switch.js +35 -0
  52. package/dist/components/atoms/Switch/Switch.js.map +1 -0
  53. package/dist/components/atoms/TextLink/TextLink.d.ts +18 -0
  54. package/dist/components/atoms/TextLink/TextLink.js +21 -0
  55. package/dist/components/atoms/TextLink/TextLink.js.map +1 -0
  56. package/dist/components/atoms/TextLink/index.d.ts +2 -0
  57. package/dist/components/atoms/TextLink/index.js +1 -0
  58. package/dist/components/{Tooltip → atoms/Tooltip}/Tooltip.js +4 -4
  59. package/dist/components/atoms/Tooltip/Tooltip.js.map +1 -0
  60. package/dist/components/{Tooltip → atoms/Tooltip}/TooltipOverlay.js +2 -2
  61. package/dist/components/atoms/Tooltip/TooltipOverlay.js.map +1 -0
  62. package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/Breadcrumbs.js +5 -4
  63. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -0
  64. package/dist/components/{Card → molecules/Card}/Card.d.ts +3 -1
  65. package/dist/components/{Card → molecules/Card}/Card.js +21 -13
  66. package/dist/components/molecules/Card/Card.js.map +1 -0
  67. package/dist/components/molecules/Card/index.d.ts +2 -0
  68. package/dist/components/{CodeBlock → molecules/CodeBlock}/CodeBlock.d.ts +7 -5
  69. package/dist/components/{CodeBlock → molecules/CodeBlock}/CodeBlock.js +20 -12
  70. package/dist/components/molecules/CodeBlock/CodeBlock.js.map +1 -0
  71. package/dist/components/{Combobox → molecules/Combobox}/Combobox.d.ts +4 -1
  72. package/dist/components/molecules/Combobox/Combobox.js +91 -0
  73. package/dist/components/molecules/Combobox/Combobox.js.map +1 -0
  74. package/dist/components/{DatePicker → molecules/DatePicker}/DatePicker.d.ts +7 -4
  75. package/dist/components/molecules/DatePicker/DatePicker.js +138 -0
  76. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -0
  77. package/dist/components/molecules/Dialog/Dialog.d.ts +20 -0
  78. package/dist/components/{Dialog → molecules/Dialog}/Dialog.js +7 -7
  79. package/dist/components/molecules/Dialog/Dialog.js.map +1 -0
  80. package/dist/components/molecules/Dialog/DialogOverlay.d.ts +3 -0
  81. package/dist/components/molecules/Dialog/DialogOverlay.js +60 -0
  82. package/dist/components/molecules/Dialog/DialogOverlay.js.map +1 -0
  83. package/dist/components/molecules/Drawer/Drawer.d.ts +21 -0
  84. package/dist/components/{Drawer → molecules/Drawer}/Drawer.js +7 -7
  85. package/dist/components/molecules/Drawer/Drawer.js.map +1 -0
  86. package/dist/components/{Drawer → molecules/Drawer}/DrawerOverlay.d.ts +1 -1
  87. package/dist/components/molecules/Drawer/DrawerOverlay.js +66 -0
  88. package/dist/components/molecules/Drawer/DrawerOverlay.js.map +1 -0
  89. package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenu.d.ts +8 -9
  90. package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenu.js +8 -20
  91. package/dist/components/molecules/DropdownMenu/DropdownMenu.js.map +1 -0
  92. package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenuParts.d.ts +1 -1
  93. package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenuParts.js +17 -28
  94. package/dist/components/molecules/DropdownMenu/DropdownMenuParts.js.map +1 -0
  95. package/dist/components/{EmptyState → molecules/EmptyState}/EmptyState.d.ts +3 -4
  96. package/dist/components/{EmptyState → molecules/EmptyState}/EmptyState.js +6 -5
  97. package/dist/components/molecules/EmptyState/EmptyState.js.map +1 -0
  98. package/dist/components/{FileDropZone → molecules/FileDropZone}/FileDropZone.d.ts +1 -1
  99. package/dist/components/{FileDropZone → molecules/FileDropZone}/FileDropZone.js +6 -5
  100. package/dist/components/molecules/FileDropZone/FileDropZone.js.map +1 -0
  101. package/dist/components/{Input → molecules/Input}/Input.d.ts +8 -6
  102. package/dist/components/molecules/Input/Input.js +45 -0
  103. package/dist/components/molecules/Input/Input.js.map +1 -0
  104. package/dist/components/molecules/Input/index.d.ts +2 -0
  105. package/dist/components/{Pagination → molecules/Pagination}/Pagination.d.ts +6 -2
  106. package/dist/components/{Pagination → molecules/Pagination}/Pagination.js +44 -34
  107. package/dist/components/molecules/Pagination/Pagination.js.map +1 -0
  108. package/dist/components/molecules/Pagination/index.d.ts +2 -0
  109. package/dist/components/molecules/Pagination/index.js +2 -0
  110. package/dist/components/{Popover → molecules/Popover}/Popover.d.ts +1 -1
  111. package/dist/components/{Popover → molecules/Popover}/Popover.js +7 -7
  112. package/dist/components/molecules/Popover/Popover.js.map +1 -0
  113. package/dist/components/{Popover → molecules/Popover}/PopoverOverlay.js +5 -4
  114. package/dist/components/molecules/Popover/PopoverOverlay.js.map +1 -0
  115. package/dist/components/molecules/RadioGroup/RadioGroup.js +43 -0
  116. package/dist/components/molecules/RadioGroup/RadioGroup.js.map +1 -0
  117. package/dist/components/{SegmentedControl → molecules/SegmentedControl}/SegmentedControl.d.ts +6 -7
  118. package/dist/components/molecules/SegmentedControl/SegmentedControl.js +71 -0
  119. package/dist/components/molecules/SegmentedControl/SegmentedControl.js.map +1 -0
  120. package/dist/components/molecules/SegmentedControl/index.d.ts +2 -0
  121. package/dist/components/{Select → molecules/Select}/Select.d.ts +4 -1
  122. package/dist/components/molecules/Select/Select.js +58 -0
  123. package/dist/components/molecules/Select/Select.js.map +1 -0
  124. package/dist/components/molecules/Stat/Stat.d.ts +36 -0
  125. package/dist/components/molecules/Stat/Stat.js +85 -0
  126. package/dist/components/molecules/Stat/Stat.js.map +1 -0
  127. package/dist/components/molecules/Stat/index.d.ts +2 -0
  128. package/dist/components/molecules/Stat/index.js +2 -0
  129. package/dist/components/{Tabs → molecules/Tabs}/Tabs.js +5 -5
  130. package/dist/components/molecules/Tabs/Tabs.js.map +1 -0
  131. package/dist/components/molecules/Tag/Tag.js +49 -0
  132. package/dist/components/molecules/Tag/Tag.js.map +1 -0
  133. package/dist/components/{Textarea → molecules/Textarea}/Textarea.d.ts +3 -11
  134. package/dist/components/molecules/Textarea/Textarea.js +29 -0
  135. package/dist/components/molecules/Textarea/Textarea.js.map +1 -0
  136. package/dist/components/molecules/Textarea/index.d.ts +2 -0
  137. package/dist/components/{Toast → molecules/Toast}/Toast.d.ts +12 -8
  138. package/dist/components/{Toast → molecules/Toast}/Toast.js +13 -18
  139. package/dist/components/molecules/Toast/Toast.js.map +1 -0
  140. package/dist/components/molecules/Toast/ToastItem.d.ts +6 -0
  141. package/dist/components/{Toast → molecules/Toast}/ToastItem.js +25 -27
  142. package/dist/components/molecules/Toast/ToastItem.js.map +1 -0
  143. package/dist/components/{Toast → molecules/Toast}/index.d.ts +1 -1
  144. package/dist/components/{Chart → organisms/Chart}/BarChart.d.ts +1 -1
  145. package/dist/components/organisms/Chart/BarChart.js +304 -0
  146. package/dist/components/organisms/Chart/BarChart.js.map +1 -0
  147. package/dist/components/{Chart → organisms/Chart}/ChartFrame.d.ts +2 -2
  148. package/dist/components/{Chart → organisms/Chart}/ChartFrame.js +14 -18
  149. package/dist/components/organisms/Chart/ChartFrame.js.map +1 -0
  150. package/dist/components/{Chart → organisms/Chart}/ChartLegend.d.ts +3 -2
  151. package/dist/components/{Chart → organisms/Chart}/ChartLegend.js +2 -2
  152. package/dist/components/organisms/Chart/ChartLegend.js.map +1 -0
  153. package/dist/components/{Chart → organisms/Chart}/ChartTable.js +8 -12
  154. package/dist/components/organisms/Chart/ChartTable.js.map +1 -0
  155. package/dist/components/{Chart → organisms/Chart}/ChartTooltip.d.ts +3 -2
  156. package/dist/components/{Chart → organisms/Chart}/ChartTooltip.js +3 -3
  157. package/dist/components/organisms/Chart/ChartTooltip.js.map +1 -0
  158. package/dist/components/{Chart → organisms/Chart}/HeatGrid.d.ts +6 -3
  159. package/dist/components/organisms/Chart/HeatGrid.js +235 -0
  160. package/dist/components/organisms/Chart/HeatGrid.js.map +1 -0
  161. package/dist/components/{Chart → organisms/Chart}/LineChart.d.ts +1 -1
  162. package/dist/components/organisms/Chart/LineChart.js +227 -0
  163. package/dist/components/organisms/Chart/LineChart.js.map +1 -0
  164. package/dist/components/organisms/Chart/Sparkline.d.ts +14 -0
  165. package/dist/components/organisms/Chart/Sparkline.js +39 -0
  166. package/dist/components/organisms/Chart/Sparkline.js.map +1 -0
  167. package/dist/components/{Chart → organisms/Chart}/format.d.ts +2 -0
  168. package/dist/components/{Chart → organisms/Chart}/format.js +6 -4
  169. package/dist/components/organisms/Chart/format.js.map +1 -0
  170. package/dist/components/{Chart → organisms/Chart}/geometry.js +1 -1
  171. package/dist/components/organisms/Chart/geometry.js.map +1 -0
  172. package/dist/components/{Chart → organisms/Chart}/index.d.ts +2 -2
  173. package/dist/components/{Chart → organisms/Chart}/index.js +2 -2
  174. package/dist/components/{Chart → organisms/Chart}/interaction.d.ts +10 -6
  175. package/dist/components/{Chart → organisms/Chart}/interaction.js +13 -10
  176. package/dist/components/organisms/Chart/interaction.js.map +1 -0
  177. package/dist/components/{Chart → organisms/Chart}/labels.js +1 -1
  178. package/dist/components/organisms/Chart/labels.js.map +1 -0
  179. package/dist/components/{Chart → organisms/Chart}/scale.js +1 -1
  180. package/dist/components/organisms/Chart/scale.js.map +1 -0
  181. package/dist/components/organisms/Chart/series.d.ts +30 -0
  182. package/dist/components/organisms/Chart/series.js +108 -0
  183. package/dist/components/organisms/Chart/series.js.map +1 -0
  184. package/dist/components/{Chart → organisms/Chart}/summary.js +2 -5
  185. package/dist/components/organisms/Chart/summary.js.map +1 -0
  186. package/dist/components/{Chart → organisms/Chart}/types.d.ts +2 -2
  187. package/dist/components/{Chart → organisms/Chart}/useElementWidth.js +1 -1
  188. package/dist/components/organisms/Chart/useElementWidth.js.map +1 -0
  189. package/dist/components/{CommandPalette → organisms/CommandPalette}/CommandPalette.d.ts +7 -8
  190. package/dist/components/{CommandPalette → organisms/CommandPalette}/CommandPalette.js +4 -10
  191. package/dist/components/organisms/CommandPalette/CommandPalette.js.map +1 -0
  192. package/dist/components/organisms/CommandPalette/CommandPaletteOverlay.d.ts +4 -0
  193. package/dist/components/organisms/CommandPalette/CommandPaletteOverlay.js +150 -0
  194. package/dist/components/organisms/CommandPalette/CommandPaletteOverlay.js.map +1 -0
  195. package/dist/components/{CommandPalette → organisms/CommandPalette}/index.d.ts +1 -1
  196. package/dist/components/{PageHeader → organisms/PageHeader}/PageHeader.js +5 -5
  197. package/dist/components/organisms/PageHeader/PageHeader.js.map +1 -0
  198. package/dist/{chrome → components/organisms/SidebarNav}/SidebarNav.d.ts +1 -1
  199. package/dist/{chrome → components/organisms/SidebarNav}/SidebarNav.js +18 -26
  200. package/dist/components/organisms/SidebarNav/SidebarNav.js.map +1 -0
  201. package/dist/components/organisms/SidebarNav/index.d.ts +2 -0
  202. package/dist/components/organisms/SidebarNav/index.js +2 -0
  203. package/dist/components/organisms/SiteFooter/SiteFooter.d.ts +33 -0
  204. package/dist/components/organisms/SiteFooter/SiteFooter.js +87 -0
  205. package/dist/components/organisms/SiteFooter/SiteFooter.js.map +1 -0
  206. package/dist/components/organisms/SiteFooter/index.d.ts +2 -0
  207. package/dist/components/organisms/SiteFooter/index.js +1 -0
  208. package/dist/components/{Table → organisms/Table}/Table.d.ts +9 -6
  209. package/dist/components/{Table → organisms/Table}/Table.js +36 -23
  210. package/dist/components/organisms/Table/Table.js.map +1 -0
  211. package/dist/components/organisms/ThemeToggle/ThemeToggle.d.ts +36 -0
  212. package/dist/components/organisms/ThemeToggle/ThemeToggle.js +88 -0
  213. package/dist/components/organisms/ThemeToggle/ThemeToggle.js.map +1 -0
  214. package/dist/components/organisms/ThemeToggle/ThemeToggleMenu.d.ts +14 -0
  215. package/dist/components/organisms/ThemeToggle/ThemeToggleMenu.js +50 -0
  216. package/dist/components/organisms/ThemeToggle/ThemeToggleMenu.js.map +1 -0
  217. package/dist/components/organisms/ThemeToggle/index.d.ts +2 -0
  218. package/dist/components/organisms/ThemeToggle/index.js +2 -0
  219. package/dist/components/organisms/ThemeToggle/themeChoices.d.ts +7 -0
  220. package/dist/components/organisms/ThemeToggle/themeChoices.js +17 -0
  221. package/dist/components/organisms/ThemeToggle/themeChoices.js.map +1 -0
  222. package/dist/components/organisms/TopNav/TopNav.d.ts +51 -0
  223. package/dist/components/organisms/TopNav/TopNav.js +148 -0
  224. package/dist/components/organisms/TopNav/TopNav.js.map +1 -0
  225. package/dist/components/organisms/TopNav/index.d.ts +2 -0
  226. package/dist/components/organisms/TopNav/index.js +2 -0
  227. package/dist/{chrome → components/templates/AppShell}/AppShell.d.ts +10 -6
  228. package/dist/{chrome → components/templates/AppShell}/AppShell.js +12 -17
  229. package/dist/components/templates/AppShell/AppShell.js.map +1 -0
  230. package/dist/components/templates/AppShell/index.d.ts +2 -0
  231. package/dist/components/templates/AppShell/index.js +1 -0
  232. package/dist/{chrome → data}/projects.d.ts +13 -6
  233. package/dist/{chrome → data}/projects.js +43 -14
  234. package/dist/data/projects.js.map +1 -0
  235. package/dist/fonts.css +27 -2
  236. package/dist/index.d.ts +56 -38
  237. package/dist/index.js +55 -42
  238. package/dist/internal/Field.d.ts +16 -11
  239. package/dist/internal/Field.js +29 -23
  240. package/dist/internal/Field.js.map +1 -1
  241. package/dist/internal/OverlayParts.d.ts +43 -0
  242. package/dist/internal/OverlayParts.js +43 -0
  243. package/dist/internal/OverlayParts.js.map +1 -0
  244. package/dist/internal/PreloadOnIntent.d.ts +2 -3
  245. package/dist/internal/PreloadOnIntent.js +3 -3
  246. package/dist/internal/PreloadOnIntent.js.map +1 -1
  247. package/dist/{chrome → internal}/brandLogoPath.js +1 -2
  248. package/dist/internal/brandLogoPath.js.map +1 -0
  249. package/dist/internal/button.d.ts +7 -0
  250. package/dist/internal/button.js +19 -0
  251. package/dist/internal/button.js.map +1 -0
  252. package/dist/internal/control.d.ts +32 -0
  253. package/dist/internal/control.js +59 -0
  254. package/dist/internal/control.js.map +1 -0
  255. package/dist/internal/focusRing.d.ts +7 -1
  256. package/dist/internal/focusRing.js +8 -3
  257. package/dist/internal/focusRing.js.map +1 -1
  258. package/dist/internal/layout.d.ts +9 -0
  259. package/dist/internal/layout.js +13 -0
  260. package/dist/internal/layout.js.map +1 -0
  261. package/dist/internal/lazyModule.d.ts +8 -2
  262. package/dist/internal/lazyModule.js +20 -6
  263. package/dist/internal/lazyModule.js.map +1 -1
  264. package/dist/internal/link.d.ts +3 -0
  265. package/dist/internal/link.js +10 -0
  266. package/dist/internal/link.js.map +1 -0
  267. package/dist/internal/listParts.d.ts +12 -0
  268. package/dist/internal/listParts.js +32 -0
  269. package/dist/internal/listParts.js.map +1 -0
  270. package/dist/internal/surfaces.d.ts +11 -5
  271. package/dist/internal/surfaces.js +13 -7
  272. package/dist/internal/surfaces.js.map +1 -1
  273. package/dist/internal/toggle.d.ts +8 -0
  274. package/dist/internal/toggle.js +22 -0
  275. package/dist/internal/toggle.js.map +1 -0
  276. package/dist/internal/types.d.ts +2 -5
  277. package/dist/{chrome → router}/Anchor.js +1 -2
  278. package/dist/{chrome → router}/Anchor.js.map +1 -1
  279. package/dist/{chrome → router}/LinkRouter.js +1 -1
  280. package/dist/{chrome → router}/LinkRouter.js.map +1 -1
  281. package/dist/{chrome → router}/types.d.ts +3 -3
  282. package/dist/styles/themes/variants.d.ts +0 -12
  283. package/dist/styles/themes/variants.js +3 -43
  284. package/dist/styles/themes/variants.js.map +1 -1
  285. package/dist/styles.css +1 -1
  286. package/dist/{chrome → theme}/themeScript.d.ts +2 -5
  287. package/dist/{chrome → theme}/themeScript.js +4 -7
  288. package/dist/theme/themeScript.js.map +1 -0
  289. package/dist/{chrome → theme}/useTheme.js +1 -1
  290. package/dist/theme/useTheme.js.map +1 -0
  291. package/dist/theme.css +87 -56
  292. package/dist/tokens.css +42 -48
  293. package/dist/utils/cx.d.ts +0 -12
  294. package/dist/utils/cx.js +18 -10
  295. package/dist/utils/cx.js.map +1 -1
  296. package/package.json +147 -107
  297. package/dist/chrome/AppShell.js.map +0 -1
  298. package/dist/chrome/BrandLogo.js.map +0 -1
  299. package/dist/chrome/BrandMark.d.ts +0 -12
  300. package/dist/chrome/BrandMark.js +0 -40
  301. package/dist/chrome/BrandMark.js.map +0 -1
  302. package/dist/chrome/MobileMenu.d.ts +0 -19
  303. package/dist/chrome/MobileMenu.js +0 -52
  304. package/dist/chrome/MobileMenu.js.map +0 -1
  305. package/dist/chrome/ProjectSwitcher.d.ts +0 -30
  306. package/dist/chrome/ProjectSwitcher.js +0 -64
  307. package/dist/chrome/ProjectSwitcher.js.map +0 -1
  308. package/dist/chrome/ProjectSwitcherMenu.d.ts +0 -13
  309. package/dist/chrome/ProjectSwitcherMenu.js +0 -50
  310. package/dist/chrome/ProjectSwitcherMenu.js.map +0 -1
  311. package/dist/chrome/SidebarNav.js.map +0 -1
  312. package/dist/chrome/SiteFooter.d.ts +0 -37
  313. package/dist/chrome/SiteFooter.js +0 -105
  314. package/dist/chrome/SiteFooter.js.map +0 -1
  315. package/dist/chrome/TextSizeToggle.d.ts +0 -11
  316. package/dist/chrome/TextSizeToggle.js +0 -38
  317. package/dist/chrome/TextSizeToggle.js.map +0 -1
  318. package/dist/chrome/ThemeToggle.d.ts +0 -26
  319. package/dist/chrome/ThemeToggle.js +0 -100
  320. package/dist/chrome/ThemeToggle.js.map +0 -1
  321. package/dist/chrome/ThemeToggleMenu.d.ts +0 -16
  322. package/dist/chrome/ThemeToggleMenu.js +0 -42
  323. package/dist/chrome/ThemeToggleMenu.js.map +0 -1
  324. package/dist/chrome/TopNav.d.ts +0 -42
  325. package/dist/chrome/TopNav.js +0 -117
  326. package/dist/chrome/TopNav.js.map +0 -1
  327. package/dist/chrome/brandLogoPath.js.map +0 -1
  328. package/dist/chrome/index.d.ts +0 -28
  329. package/dist/chrome/index.js +0 -15
  330. package/dist/chrome/projects.js.map +0 -1
  331. package/dist/chrome/themeChoices.d.ts +0 -6
  332. package/dist/chrome/themeChoices.js +0 -18
  333. package/dist/chrome/themeChoices.js.map +0 -1
  334. package/dist/chrome/themeScript.js.map +0 -1
  335. package/dist/chrome/useTextSize.d.ts +0 -16
  336. package/dist/chrome/useTextSize.js +0 -64
  337. package/dist/chrome/useTextSize.js.map +0 -1
  338. package/dist/chrome/useTheme.js.map +0 -1
  339. package/dist/components/Avatar/Avatar.js.map +0 -1
  340. package/dist/components/Avatar/index.js +0 -2
  341. package/dist/components/Badge/Badge.js.map +0 -1
  342. package/dist/components/Badge/index.d.ts +0 -2
  343. package/dist/components/Breadcrumbs/Breadcrumbs.js.map +0 -1
  344. package/dist/components/Button/Button.js +0 -73
  345. package/dist/components/Button/Button.js.map +0 -1
  346. package/dist/components/Button/buttonStyles.js +0 -32
  347. package/dist/components/Button/buttonStyles.js.map +0 -1
  348. package/dist/components/Button/index.d.ts +0 -2
  349. package/dist/components/Button/index.js +0 -4
  350. package/dist/components/Card/Card.js.map +0 -1
  351. package/dist/components/Card/index.d.ts +0 -2
  352. package/dist/components/Chart/BarChart.js +0 -327
  353. package/dist/components/Chart/BarChart.js.map +0 -1
  354. package/dist/components/Chart/ChartFrame.js.map +0 -1
  355. package/dist/components/Chart/ChartLegend.js.map +0 -1
  356. package/dist/components/Chart/ChartTable.js.map +0 -1
  357. package/dist/components/Chart/ChartTooltip.js.map +0 -1
  358. package/dist/components/Chart/HeatGrid.js +0 -256
  359. package/dist/components/Chart/HeatGrid.js.map +0 -1
  360. package/dist/components/Chart/LineChart.js +0 -248
  361. package/dist/components/Chart/LineChart.js.map +0 -1
  362. package/dist/components/Chart/format.js.map +0 -1
  363. package/dist/components/Chart/geometry.js.map +0 -1
  364. package/dist/components/Chart/interaction.js.map +0 -1
  365. package/dist/components/Chart/labels.js.map +0 -1
  366. package/dist/components/Chart/scale.js.map +0 -1
  367. package/dist/components/Chart/series.d.ts +0 -14
  368. package/dist/components/Chart/series.js +0 -72
  369. package/dist/components/Chart/series.js.map +0 -1
  370. package/dist/components/Chart/summary.js.map +0 -1
  371. package/dist/components/Chart/useElementWidth.js.map +0 -1
  372. package/dist/components/Checkbox/Checkbox.js.map +0 -1
  373. package/dist/components/CodeBlock/CodeBlock.js.map +0 -1
  374. package/dist/components/Combobox/Combobox.js +0 -106
  375. package/dist/components/Combobox/Combobox.js.map +0 -1
  376. package/dist/components/CommandPalette/CommandPalette.js.map +0 -1
  377. package/dist/components/CommandPalette/CommandPaletteOverlay.d.ts +0 -11
  378. package/dist/components/CommandPalette/CommandPaletteOverlay.js +0 -180
  379. package/dist/components/CommandPalette/CommandPaletteOverlay.js.map +0 -1
  380. package/dist/components/DatePicker/DatePicker.js +0 -142
  381. package/dist/components/DatePicker/DatePicker.js.map +0 -1
  382. package/dist/components/Dialog/Dialog.d.ts +0 -37
  383. package/dist/components/Dialog/Dialog.js.map +0 -1
  384. package/dist/components/Dialog/DialogOverlay.d.ts +0 -3
  385. package/dist/components/Dialog/DialogOverlay.js +0 -72
  386. package/dist/components/Dialog/DialogOverlay.js.map +0 -1
  387. package/dist/components/Drawer/Drawer.d.ts +0 -36
  388. package/dist/components/Drawer/Drawer.js.map +0 -1
  389. package/dist/components/Drawer/DrawerOverlay.js +0 -71
  390. package/dist/components/Drawer/DrawerOverlay.js.map +0 -1
  391. package/dist/components/DropdownMenu/DropdownMenu.js.map +0 -1
  392. package/dist/components/DropdownMenu/DropdownMenuParts.js.map +0 -1
  393. package/dist/components/EmptyState/EmptyState.js.map +0 -1
  394. package/dist/components/FileDropZone/FileDropZone.js.map +0 -1
  395. package/dist/components/IconButton/IconButton.d.ts +0 -17
  396. package/dist/components/IconButton/IconButton.js +0 -37
  397. package/dist/components/IconButton/IconButton.js.map +0 -1
  398. package/dist/components/Input/Input.js +0 -43
  399. package/dist/components/Input/Input.js.map +0 -1
  400. package/dist/components/Input/index.d.ts +0 -2
  401. package/dist/components/Kbd/Kbd.js.map +0 -1
  402. package/dist/components/PageHeader/PageHeader.js.map +0 -1
  403. package/dist/components/Pagination/Pagination.js.map +0 -1
  404. package/dist/components/Pagination/index.d.ts +0 -2
  405. package/dist/components/Pagination/index.js +0 -2
  406. package/dist/components/Popover/Popover.js.map +0 -1
  407. package/dist/components/Popover/PopoverOverlay.js.map +0 -1
  408. package/dist/components/ProgressBar/ProgressBar.js.map +0 -1
  409. package/dist/components/ProgressBar/index.d.ts +0 -2
  410. package/dist/components/RadioGroup/RadioGroup.js +0 -46
  411. package/dist/components/RadioGroup/RadioGroup.js.map +0 -1
  412. package/dist/components/SegmentedControl/SegmentedControl.js +0 -55
  413. package/dist/components/SegmentedControl/SegmentedControl.js.map +0 -1
  414. package/dist/components/SegmentedControl/index.d.ts +0 -2
  415. package/dist/components/Select/Select.js +0 -64
  416. package/dist/components/Select/Select.js.map +0 -1
  417. package/dist/components/Skeleton/Skeleton.js.map +0 -1
  418. package/dist/components/Spinner/Spinner.js.map +0 -1
  419. package/dist/components/Stat/Stat.d.ts +0 -49
  420. package/dist/components/Stat/Stat.js +0 -125
  421. package/dist/components/Stat/Stat.js.map +0 -1
  422. package/dist/components/Stat/index.d.ts +0 -2
  423. package/dist/components/Stat/index.js +0 -2
  424. package/dist/components/Switch/Switch.js +0 -39
  425. package/dist/components/Switch/Switch.js.map +0 -1
  426. package/dist/components/Table/Table.js.map +0 -1
  427. package/dist/components/Tabs/Tabs.js.map +0 -1
  428. package/dist/components/Tag/Tag.js +0 -48
  429. package/dist/components/Tag/Tag.js.map +0 -1
  430. package/dist/components/Textarea/Textarea.js +0 -30
  431. package/dist/components/Textarea/Textarea.js.map +0 -1
  432. package/dist/components/Textarea/index.d.ts +0 -2
  433. package/dist/components/Toast/Toast.js.map +0 -1
  434. package/dist/components/Toast/ToastItem.d.ts +0 -6
  435. package/dist/components/Toast/ToastItem.js.map +0 -1
  436. package/dist/components/Tooltip/Tooltip.js.map +0 -1
  437. package/dist/components/Tooltip/TooltipOverlay.js.map +0 -1
  438. package/dist/internal/LazyDialogTrigger.d.ts +0 -8
  439. package/dist/internal/LazyDialogTrigger.js +0 -15
  440. package/dist/internal/LazyDialogTrigger.js.map +0 -1
  441. package/dist/internal/Spinner.d.ts +0 -3
  442. package/dist/internal/Spinner.js +0 -14
  443. package/dist/internal/Spinner.js.map +0 -1
  444. package/dist/internal/useLazyMenuTrigger.d.ts +0 -23
  445. package/dist/internal/useLazyMenuTrigger.js +0 -47
  446. package/dist/internal/useLazyMenuTrigger.js.map +0 -1
  447. package/dist/utils/cxLite.d.ts +0 -12
  448. package/dist/utils/cxLite.js +0 -23
  449. package/dist/utils/cxLite.js.map +0 -1
  450. /package/dist/components/{Badge → atoms/Badge}/index.js +0 -0
  451. /package/dist/components/{Checkbox → atoms/Checkbox}/Checkbox.d.ts +0 -0
  452. /package/dist/components/{Checkbox → atoms/Checkbox}/index.d.ts +0 -0
  453. /package/dist/components/{Checkbox → atoms/Checkbox}/index.js +0 -0
  454. /package/dist/components/{IconButton → atoms/IconButton}/index.d.ts +0 -0
  455. /package/dist/components/{IconButton → atoms/IconButton}/index.js +0 -0
  456. /package/dist/components/{Kbd → atoms/Kbd}/index.d.ts +0 -0
  457. /package/dist/components/{Kbd → atoms/Kbd}/index.js +0 -0
  458. /package/dist/components/{ProgressBar → atoms/ProgressBar}/index.js +0 -0
  459. /package/dist/components/{Skeleton → atoms/Skeleton}/Skeleton.d.ts +0 -0
  460. /package/dist/components/{Skeleton → atoms/Skeleton}/index.d.ts +0 -0
  461. /package/dist/components/{Skeleton → atoms/Skeleton}/index.js +0 -0
  462. /package/dist/components/{Spinner → atoms/Spinner}/Spinner.d.ts +0 -0
  463. /package/dist/components/{Spinner → atoms/Spinner}/index.d.ts +0 -0
  464. /package/dist/components/{Spinner → atoms/Spinner}/index.js +0 -0
  465. /package/dist/components/{Switch → atoms/Switch}/index.d.ts +0 -0
  466. /package/dist/components/{Switch → atoms/Switch}/index.js +0 -0
  467. /package/dist/components/{Tooltip → atoms/Tooltip}/Tooltip.d.ts +0 -0
  468. /package/dist/components/{Tooltip → atoms/Tooltip}/TooltipOverlay.d.ts +0 -0
  469. /package/dist/components/{Tooltip → atoms/Tooltip}/index.d.ts +0 -0
  470. /package/dist/components/{Tooltip → atoms/Tooltip}/index.js +0 -0
  471. /package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/Breadcrumbs.d.ts +0 -0
  472. /package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/index.d.ts +0 -0
  473. /package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/index.js +0 -0
  474. /package/dist/components/{Card → molecules/Card}/index.js +0 -0
  475. /package/dist/components/{CodeBlock → molecules/CodeBlock}/index.d.ts +0 -0
  476. /package/dist/components/{CodeBlock → molecules/CodeBlock}/index.js +0 -0
  477. /package/dist/components/{Combobox → molecules/Combobox}/index.d.ts +0 -0
  478. /package/dist/components/{Combobox → molecules/Combobox}/index.js +0 -0
  479. /package/dist/components/{DatePicker → molecules/DatePicker}/index.d.ts +0 -0
  480. /package/dist/components/{DatePicker → molecules/DatePicker}/index.js +0 -0
  481. /package/dist/components/{Dialog → molecules/Dialog}/index.d.ts +0 -0
  482. /package/dist/components/{Dialog → molecules/Dialog}/index.js +0 -0
  483. /package/dist/components/{Drawer → molecules/Drawer}/index.d.ts +0 -0
  484. /package/dist/components/{Drawer → molecules/Drawer}/index.js +0 -0
  485. /package/dist/components/{DropdownMenu → molecules/DropdownMenu}/index.d.ts +0 -0
  486. /package/dist/components/{DropdownMenu → molecules/DropdownMenu}/index.js +0 -0
  487. /package/dist/components/{EmptyState → molecules/EmptyState}/index.d.ts +0 -0
  488. /package/dist/components/{EmptyState → molecules/EmptyState}/index.js +0 -0
  489. /package/dist/components/{FileDropZone → molecules/FileDropZone}/index.d.ts +0 -0
  490. /package/dist/components/{FileDropZone → molecules/FileDropZone}/index.js +0 -0
  491. /package/dist/components/{Input → molecules/Input}/index.js +0 -0
  492. /package/dist/components/{Popover → molecules/Popover}/PopoverOverlay.d.ts +0 -0
  493. /package/dist/components/{Popover → molecules/Popover}/index.d.ts +0 -0
  494. /package/dist/components/{Popover → molecules/Popover}/index.js +0 -0
  495. /package/dist/components/{RadioGroup → molecules/RadioGroup}/RadioGroup.d.ts +0 -0
  496. /package/dist/components/{RadioGroup → molecules/RadioGroup}/index.d.ts +0 -0
  497. /package/dist/components/{RadioGroup → molecules/RadioGroup}/index.js +0 -0
  498. /package/dist/components/{SegmentedControl → molecules/SegmentedControl}/index.js +0 -0
  499. /package/dist/components/{Select → molecules/Select}/index.d.ts +0 -0
  500. /package/dist/components/{Select → molecules/Select}/index.js +0 -0
  501. /package/dist/components/{Tabs → molecules/Tabs}/Tabs.d.ts +0 -0
  502. /package/dist/components/{Tabs → molecules/Tabs}/index.d.ts +0 -0
  503. /package/dist/components/{Tabs → molecules/Tabs}/index.js +0 -0
  504. /package/dist/components/{Tag → molecules/Tag}/Tag.d.ts +0 -0
  505. /package/dist/components/{Tag → molecules/Tag}/index.d.ts +0 -0
  506. /package/dist/components/{Tag → molecules/Tag}/index.js +0 -0
  507. /package/dist/components/{Textarea → molecules/Textarea}/index.js +0 -0
  508. /package/dist/components/{Toast → molecules/Toast}/index.js +0 -0
  509. /package/dist/components/{Chart → organisms/Chart}/ChartTable.d.ts +0 -0
  510. /package/dist/components/{Chart → organisms/Chart}/geometry.d.ts +0 -0
  511. /package/dist/components/{Chart → organisms/Chart}/labels.d.ts +0 -0
  512. /package/dist/components/{Chart → organisms/Chart}/scale.d.ts +0 -0
  513. /package/dist/components/{Chart → organisms/Chart}/summary.d.ts +0 -0
  514. /package/dist/components/{Chart → organisms/Chart}/useElementWidth.d.ts +0 -0
  515. /package/dist/components/{CommandPalette → organisms/CommandPalette}/index.js +0 -0
  516. /package/dist/components/{PageHeader → organisms/PageHeader}/PageHeader.d.ts +0 -0
  517. /package/dist/components/{PageHeader → organisms/PageHeader}/index.d.ts +0 -0
  518. /package/dist/components/{PageHeader → organisms/PageHeader}/index.js +0 -0
  519. /package/dist/components/{Table → organisms/Table}/index.d.ts +0 -0
  520. /package/dist/components/{Table → organisms/Table}/index.js +0 -0
  521. /package/dist/{chrome → internal}/brandLogoPath.d.ts +0 -0
  522. /package/dist/{chrome → router}/Anchor.d.ts +0 -0
  523. /package/dist/{chrome → router}/LinkRouter.d.ts +0 -0
  524. /package/dist/{chrome → theme}/useTheme.d.ts +0 -0
package/dist/theme.css CHANGED
@@ -6,14 +6,13 @@
6
6
  * Layer 2: semantic tokens (text, bg, border, fg) declared as CSS variables
7
7
  * on :root and redefined under .dark. Components only use this layer,
8
8
  * so a theme switch or a brand override never touches component code.
9
- * Layer 3: density and text size tokens (--density-*, --text-*). The same in
10
- * every variant. The visitor can make the text smaller with
11
- * TextSizeToggle, without touching component code.
9
+ * Layer 3: density tokens (--density-*): control heights, item and cell
10
+ * padding. The same in every variant.
12
11
  *
13
12
  * The base theme is the portfolio's: the green brand on a warm sand frame. To
14
13
  * theme a project, import one of the variant files (@eylulg/ui/themes/<name>.css)
15
14
  * after this file. A variant changes colour only; the frame, the fonts, the
16
- * text size, the density and the shape are shared by every project.
15
+ * type scale, the density and the shape are shared by every project.
17
16
  */
18
17
 
19
18
  /*
@@ -40,7 +39,7 @@
40
39
  var(--font-jetbrains-mono, 'JetBrains Mono'), ui-monospace, SFMono-Regular, 'SF Mono', Menlo,
41
40
  Consolas, monospace;
42
41
 
43
- /* The default text size. Compact variants and the visitor's choice override these. */
42
+ /* The type scale. */
44
43
  --text-xs: 0.8125rem;
45
44
  --text-xs--line-height: 1.125rem;
46
45
  --text-sm: 0.875rem;
@@ -55,7 +54,7 @@
55
54
  --text-2xl--line-height: 2.25rem;
56
55
  --text-3xl: 2.5rem;
57
56
  --text-3xl--line-height: 2.875rem;
58
- /* A fluid size for one hero heading per page. Outside the text size setting. */
57
+ /* A fluid size for one hero heading per page. */
59
58
  --text-display: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
60
59
  --text-display--line-height: 1.05;
61
60
  --text-display--letter-spacing: -0.025em;
@@ -129,18 +128,18 @@
129
128
  --color-success-900: #054f31;
130
129
  --color-success-950: #053321;
131
130
 
132
- --color-warning-25: #fffcf5;
133
- --color-warning-50: #fffaeb;
134
- --color-warning-100: #fef0c7;
135
- --color-warning-200: #fedf89;
136
- --color-warning-300: #fec84b;
137
- --color-warning-400: #fdb022;
138
- --color-warning-500: #f79009;
139
- --color-warning-600: #dc6803;
140
- --color-warning-700: #b54708;
141
- --color-warning-800: #93370d;
142
- --color-warning-900: #7a2e0e;
143
- --color-warning-950: #4e1d09;
131
+ --color-warning-25: #fffaf5;
132
+ --color-warning-50: #fff7ed;
133
+ --color-warning-100: #ffedd5;
134
+ --color-warning-200: #fed7aa;
135
+ --color-warning-300: #fdba74;
136
+ --color-warning-400: #fb923c;
137
+ --color-warning-500: #f97316;
138
+ --color-warning-600: #ea580c;
139
+ --color-warning-700: #c2410c;
140
+ --color-warning-800: #9a3412;
141
+ --color-warning-900: #7c2d12;
142
+ --color-warning-950: #431407;
144
143
 
145
144
  --color-error-25: #fffbfa;
146
145
  --color-error-50: #fef3f2;
@@ -156,6 +155,38 @@
156
155
  --color-error-950: #55160c;
157
156
 
158
157
  --animate-toast-in: toast-in 200ms ease-out;
158
+ --animate-progress-slide: progress-slide 1.4s ease-in-out infinite;
159
+ --animate-brand-draw: brand-draw 2.8s ease-in-out infinite;
160
+ --animate-brand-fade: brand-fade 2.8s ease-in-out infinite;
161
+
162
+ @keyframes brand-draw {
163
+ from {
164
+ stroke-dashoffset: 0.42;
165
+ }
166
+ 60%,
167
+ to {
168
+ stroke-dashoffset: 0;
169
+ }
170
+ }
171
+
172
+ @keyframes brand-fade {
173
+ 0%,
174
+ 80% {
175
+ opacity: 1;
176
+ }
177
+ to {
178
+ opacity: 0;
179
+ }
180
+ }
181
+
182
+ @keyframes progress-slide {
183
+ from {
184
+ transform: translateX(-100%);
185
+ }
186
+ to {
187
+ transform: translateX(250%);
188
+ }
189
+ }
159
190
 
160
191
  @keyframes toast-in {
161
192
  from {
@@ -186,6 +217,7 @@
186
217
  --text-color-placeholder: var(--ui-text-placeholder);
187
218
  --text-color-inverse: var(--ui-text-inverse);
188
219
  --text-color-on-solid: var(--ui-text-on-solid);
220
+ --text-color-on-error: var(--ui-text-on-error);
189
221
  --text-color-brand: var(--ui-text-brand);
190
222
  --text-color-error: var(--ui-text-error);
191
223
  --text-color-success: var(--ui-text-success);
@@ -193,7 +225,6 @@
193
225
  --text-color-blue: var(--ui-text-blue);
194
226
  --text-color-purple: var(--ui-text-purple);
195
227
  --text-color-pink: var(--ui-text-pink);
196
- --text-color-orange: var(--ui-text-orange);
197
228
  --text-color-indigo: var(--ui-text-indigo);
198
229
 
199
230
  --background-color-primary: var(--ui-bg-primary);
@@ -214,13 +245,16 @@
214
245
  --background-color-blue-subtle: var(--ui-bg-blue-subtle);
215
246
  --background-color-purple-subtle: var(--ui-bg-purple-subtle);
216
247
  --background-color-pink-subtle: var(--ui-bg-pink-subtle);
217
- --background-color-orange-subtle: var(--ui-bg-orange-subtle);
218
248
  --background-color-indigo-subtle: var(--ui-bg-indigo-subtle);
219
249
  --background-color-hover: var(--ui-bg-hover);
250
+ --background-color-field: var(--ui-bg-field);
251
+ --background-color-field-hover: var(--ui-bg-field-hover);
220
252
 
221
253
  --border-color-default: var(--ui-border-default);
222
254
  --border-color-strong: var(--ui-border-strong);
223
255
  --border-color-control: var(--ui-border-control);
256
+ --border-color-field: var(--ui-border-field);
257
+ --border-color-field-hover: var(--ui-border-field-hover);
224
258
  --border-color-subtle: var(--ui-border-subtle);
225
259
  --border-color-brand: var(--ui-border-brand);
226
260
  --border-color-error: var(--ui-border-error);
@@ -232,7 +266,6 @@
232
266
  --ring-color-blue: var(--ui-border-blue);
233
267
  --ring-color-purple: var(--ui-border-purple);
234
268
  --ring-color-pink: var(--ui-border-pink);
235
- --ring-color-orange: var(--ui-border-orange);
236
269
  --ring-color-indigo: var(--ui-border-indigo);
237
270
  --outline-color-focus: var(--ui-border-focus);
238
271
 
@@ -248,7 +281,6 @@
248
281
  --color-fg-blue: var(--ui-fg-blue);
249
282
  --color-fg-purple: var(--ui-fg-purple);
250
283
  --color-fg-pink: var(--ui-fg-pink);
251
- --color-fg-orange: var(--ui-fg-orange);
252
284
  --color-fg-indigo: var(--ui-fg-indigo);
253
285
 
254
286
  /* Data visualisation: categorical series, a muted overflow colour and a five step sequential ramp. */
@@ -292,6 +324,11 @@
292
324
  * visible size never changes. The element must be positioned (class relative) and
293
325
  * must not use ::after itself.
294
326
  */
327
+ /* The brand edge of a selected control, drawn inside the box over its tint, so the state reaches 3:1 without relying on hue. */
328
+ @utility selected-edge {
329
+ box-shadow: inset 0 0 0 1px var(--ui-border-brand);
330
+ }
331
+
295
332
  @utility touch-target {
296
333
  @media (pointer: coarse) {
297
334
  &::after {
@@ -354,6 +391,8 @@
354
391
  --ui-text-placeholder: var(--color-gray-600);
355
392
  --ui-text-inverse: var(--color-gray-25);
356
393
  --ui-text-on-solid: #ffffff;
394
+ /* Destructive fills stay a saturated red in both modes, so Delete never looks like a soft brand colour. */
395
+ --ui-text-on-error: #ffffff;
357
396
  --ui-text-brand: color-mix(in oklch, var(--color-brand-seed) 80%, black);
358
397
  --ui-text-error: var(--color-error-700);
359
398
  --ui-text-success: var(--color-success-700);
@@ -367,6 +406,12 @@
367
406
  --ui-bg-disabled: var(--color-gray-200);
368
407
  --ui-bg-overlay: rgb(44 37 33 / 0.55);
369
408
  --ui-bg-hover: var(--color-gray-100);
409
+ /*
410
+ * Fields and secondary controls: a translucent ink fill with a soft edge, so
411
+ * the same control reads as filled on the card and on the sand page alike.
412
+ */
413
+ --ui-bg-field: rgb(44 37 33 / 0.045);
414
+ --ui-bg-field-hover: rgb(44 37 33 / 0.08);
370
415
  /* Project colour: the seed is the solid, and a tint of it on warm paper is the subtle fill. */
371
416
  --ui-bg-brand-solid: var(--color-brand-seed);
372
417
  --ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed) 84%, black);
@@ -379,8 +424,15 @@
379
424
 
380
425
  --ui-border-default: var(--color-gray-300);
381
426
  --ui-border-strong: var(--color-gray-500);
382
- /* Form control outlines keep 3:1 against the surface (WCAG 1.4.11). */
427
+ /*
428
+ * Checkbox, radio and switch outlines keep 3:1 against the surface (WCAG
429
+ * 1.4.11): their outline is the control. A field's bottom edge uses this
430
+ * colour too, which marks the field at 3:1. Its sides and top, and a
431
+ * button's edge, use the softer field edge below.
432
+ */
383
433
  --ui-border-control: var(--color-gray-500);
434
+ --ui-border-field: rgb(44 37 33 / 0.13);
435
+ --ui-border-field-hover: rgb(44 37 33 / 0.24);
384
436
  --ui-border-subtle: var(--color-gray-200);
385
437
  --ui-border-brand: var(--color-brand-seed);
386
438
  --ui-border-error: var(--color-error-600);
@@ -413,10 +465,6 @@
413
465
  --ui-text-pink: #be185d;
414
466
  --ui-border-pink: #fbcfe8;
415
467
  --ui-fg-pink: #db2777;
416
- --ui-bg-orange-subtle: #fff7ed;
417
- --ui-text-orange: #c2410c;
418
- --ui-border-orange: #fed7aa;
419
- --ui-fg-orange: #ea580c;
420
468
  --ui-bg-indigo-subtle: #eef2ff;
421
469
  --ui-text-indigo: #4338ca;
422
470
  --ui-border-indigo: #c7d2fe;
@@ -432,7 +480,7 @@
432
480
  --ui-chart-2: #f1515f;
433
481
  --ui-chart-3: #009b91;
434
482
  --ui-chart-4: #5532bb;
435
- --ui-chart-5: #7c5801;
483
+ --ui-chart-5: #af4000;
436
484
  --ui-chart-6: #9a005e;
437
485
  --ui-chart-muted: #6b7280;
438
486
  --ui-chart-seq-1: #e4f0ff;
@@ -459,6 +507,7 @@
459
507
  --ui-text-inverse: #2c2521;
460
508
  /* Dark solids are light, so the text on them is the dark page colour. */
461
509
  --ui-text-on-solid: var(--color-gray-950);
510
+ --ui-text-on-error: #ffffff;
462
511
  --ui-text-brand: var(--color-brand-seed-dark);
463
512
  --ui-text-error: var(--color-error-300);
464
513
  --ui-text-success: var(--color-success-300);
@@ -472,11 +521,13 @@
472
521
  --ui-bg-disabled: var(--color-gray-800);
473
522
  --ui-bg-overlay: rgb(0 0 0 / 0.65);
474
523
  --ui-bg-hover: #36302b;
524
+ --ui-bg-field: rgb(243 237 229 / 0.06);
525
+ --ui-bg-field-hover: rgb(243 237 229 / 0.1);
475
526
  --ui-bg-brand-solid: var(--color-brand-seed-dark);
476
527
  --ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed-dark) 80%, white);
477
528
  --ui-bg-brand-subtle: color-mix(in oklch, var(--color-brand-seed) 32%, #211d1a);
478
- --ui-bg-error-solid: var(--color-error-300);
479
- --ui-bg-error-solid-hover: var(--color-error-200);
529
+ --ui-bg-error-solid: var(--color-error-600);
530
+ --ui-bg-error-solid-hover: var(--color-error-700);
480
531
  --ui-bg-error-subtle: color-mix(in oklab, var(--color-error-600) 18%, transparent);
481
532
  --ui-bg-success-subtle: color-mix(in oklab, var(--color-success-600) 18%, transparent);
482
533
  --ui-bg-warning-subtle: color-mix(in oklab, var(--color-warning-600) 18%, transparent);
@@ -484,6 +535,8 @@
484
535
  --ui-border-default: var(--color-gray-800);
485
536
  --ui-border-strong: var(--color-gray-400);
486
537
  --ui-border-control: var(--color-gray-500);
538
+ --ui-border-field: rgb(243 237 229 / 0.13);
539
+ --ui-border-field-hover: rgb(243 237 229 / 0.24);
487
540
  --ui-border-subtle: #36302b;
488
541
  --ui-border-brand: var(--color-brand-seed-dark);
489
542
  --ui-border-error: var(--color-error-400);
@@ -514,21 +567,17 @@
514
567
  --ui-text-pink: #f9a8d4;
515
568
  --ui-border-pink: #9d174d;
516
569
  --ui-fg-pink: #f472b6;
517
- --ui-bg-orange-subtle: color-mix(in oklab, #ea580c 18%, transparent);
518
- --ui-text-orange: #fdba74;
519
- --ui-border-orange: #9a3412;
520
- --ui-fg-orange: #fb923c;
521
570
  --ui-bg-indigo-subtle: color-mix(in oklab, #4f46e5 18%, transparent);
522
571
  --ui-text-indigo: #a5b4fc;
523
572
  --ui-border-indigo: #3730a3;
524
573
  --ui-fg-indigo: #818cf8;
525
574
 
526
575
  --ui-chart-1: #b3c1ff;
527
- --ui-chart-2: #ffb862;
528
- --ui-chart-3: #00f1bf;
576
+ --ui-chart-2: #ee101c;
577
+ --ui-chart-3: #188771;
529
578
  --ui-chart-4: #ac6bf4;
530
- --ui-chart-5: #8a9f00;
531
- --ui-chart-6: #ff6791;
579
+ --ui-chart-5: #ffaf7a;
580
+ --ui-chart-6: #ea48ac;
532
581
  --ui-chart-muted: #9ca3af;
533
582
  --ui-chart-seq-1: #182e4b;
534
583
  --ui-chart-seq-2: #284e7d;
@@ -537,21 +586,3 @@
537
586
  --ui-chart-seq-5: #b3d4ff;
538
587
  }
539
588
  }
540
-
541
- /* The visitor's text size, from useTextSize or themeInitScript. Default is the type scale above. */
542
- :root[data-ui-text='compact'] {
543
- --text-xs: 0.75rem;
544
- --text-xs--line-height: 1rem;
545
- --text-sm: 0.8125rem;
546
- --text-sm--line-height: 1.125rem;
547
- --text-md: 0.875rem;
548
- --text-md--line-height: 1.25rem;
549
- --text-lg: 1rem;
550
- --text-lg--line-height: 1.5rem;
551
- --text-xl: 1.25rem;
552
- --text-xl--line-height: 1.75rem;
553
- --text-2xl: 1.5rem;
554
- --text-2xl--line-height: 2rem;
555
- --text-3xl: 2rem;
556
- --text-3xl--line-height: 2.375rem;
557
- }
package/dist/tokens.css CHANGED
@@ -2,8 +2,8 @@
2
2
  * @eylulg/ui plain tokens, for apps that do not run Tailwind.
3
3
  *
4
4
  * Custom properties only: the colour scales, the semantic --ui-* set for light
5
- * (:root) and dark (.dark-mode or .dark), fonts, the type scale and the
6
- * visitor's text size, radii, shadows and density.
5
+ * (:root) and dark (.dark-mode or .dark), fonts, the type scale, radii,
6
+ * shadows and density.
7
7
  * No preflight and no component styles. Import it before a variant file:
8
8
  *
9
9
  * @import '@eylulg/ui/tokens.css';
@@ -85,18 +85,18 @@
85
85
  --color-success-800: #05603a;
86
86
  --color-success-900: #054f31;
87
87
  --color-success-950: #053321;
88
- --color-warning-25: #fffcf5;
89
- --color-warning-50: #fffaeb;
90
- --color-warning-100: #fef0c7;
91
- --color-warning-200: #fedf89;
92
- --color-warning-300: #fec84b;
93
- --color-warning-400: #fdb022;
94
- --color-warning-500: #f79009;
95
- --color-warning-600: #dc6803;
96
- --color-warning-700: #b54708;
97
- --color-warning-800: #93370d;
98
- --color-warning-900: #7a2e0e;
99
- --color-warning-950: #4e1d09;
88
+ --color-warning-25: #fffaf5;
89
+ --color-warning-50: #fff7ed;
90
+ --color-warning-100: #ffedd5;
91
+ --color-warning-200: #fed7aa;
92
+ --color-warning-300: #fdba74;
93
+ --color-warning-400: #fb923c;
94
+ --color-warning-500: #f97316;
95
+ --color-warning-600: #ea580c;
96
+ --color-warning-700: #c2410c;
97
+ --color-warning-800: #9a3412;
98
+ --color-warning-900: #7c2d12;
99
+ --color-warning-950: #431407;
100
100
  --color-error-25: #fffbfa;
101
101
  --color-error-50: #fef3f2;
102
102
  --color-error-100: #fee4e2;
@@ -149,6 +149,8 @@
149
149
  --ui-text-placeholder: var(--color-gray-600);
150
150
  --ui-text-inverse: var(--color-gray-25);
151
151
  --ui-text-on-solid: #ffffff;
152
+ /* Destructive fills stay a saturated red in both modes, so Delete never looks like a soft brand colour. */
153
+ --ui-text-on-error: #ffffff;
152
154
  --ui-text-brand: color-mix(in oklch, var(--color-brand-seed) 80%, black);
153
155
  --ui-text-error: var(--color-error-700);
154
156
  --ui-text-success: var(--color-success-700);
@@ -162,6 +164,12 @@
162
164
  --ui-bg-disabled: var(--color-gray-200);
163
165
  --ui-bg-overlay: rgb(44 37 33 / 0.55);
164
166
  --ui-bg-hover: var(--color-gray-100);
167
+ /*
168
+ * Fields and secondary controls: a translucent ink fill with a soft edge, so
169
+ * the same control reads as filled on the card and on the sand page alike.
170
+ */
171
+ --ui-bg-field: rgb(44 37 33 / 0.045);
172
+ --ui-bg-field-hover: rgb(44 37 33 / 0.08);
165
173
  /* Project colour: the seed is the solid, and a tint of it on warm paper is the subtle fill. */
166
174
  --ui-bg-brand-solid: var(--color-brand-seed);
167
175
  --ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed) 84%, black);
@@ -174,8 +182,15 @@
174
182
 
175
183
  --ui-border-default: var(--color-gray-300);
176
184
  --ui-border-strong: var(--color-gray-500);
177
- /* Form control outlines keep 3:1 against the surface (WCAG 1.4.11). */
185
+ /*
186
+ * Checkbox, radio and switch outlines keep 3:1 against the surface (WCAG
187
+ * 1.4.11): their outline is the control. A field's bottom edge uses this
188
+ * colour too, which marks the field at 3:1. Its sides and top, and a
189
+ * button's edge, use the softer field edge below.
190
+ */
178
191
  --ui-border-control: var(--color-gray-500);
192
+ --ui-border-field: rgb(44 37 33 / 0.13);
193
+ --ui-border-field-hover: rgb(44 37 33 / 0.24);
179
194
  --ui-border-subtle: var(--color-gray-200);
180
195
  --ui-border-brand: var(--color-brand-seed);
181
196
  --ui-border-error: var(--color-error-600);
@@ -208,10 +223,6 @@
208
223
  --ui-text-pink: #be185d;
209
224
  --ui-border-pink: #fbcfe8;
210
225
  --ui-fg-pink: #db2777;
211
- --ui-bg-orange-subtle: #fff7ed;
212
- --ui-text-orange: #c2410c;
213
- --ui-border-orange: #fed7aa;
214
- --ui-fg-orange: #ea580c;
215
226
  --ui-bg-indigo-subtle: #eef2ff;
216
227
  --ui-text-indigo: #4338ca;
217
228
  --ui-border-indigo: #c7d2fe;
@@ -227,7 +238,7 @@
227
238
  --ui-chart-2: #f1515f;
228
239
  --ui-chart-3: #009b91;
229
240
  --ui-chart-4: #5532bb;
230
- --ui-chart-5: #7c5801;
241
+ --ui-chart-5: #af4000;
231
242
  --ui-chart-6: #9a005e;
232
243
  --ui-chart-muted: #6b7280;
233
244
  --ui-chart-seq-1: #e4f0ff;
@@ -254,6 +265,7 @@
254
265
  --ui-text-inverse: #2c2521;
255
266
  /* Dark solids are light, so the text on them is the dark page colour. */
256
267
  --ui-text-on-solid: var(--color-gray-950);
268
+ --ui-text-on-error: #ffffff;
257
269
  --ui-text-brand: var(--color-brand-seed-dark);
258
270
  --ui-text-error: var(--color-error-300);
259
271
  --ui-text-success: var(--color-success-300);
@@ -267,11 +279,13 @@
267
279
  --ui-bg-disabled: var(--color-gray-800);
268
280
  --ui-bg-overlay: rgb(0 0 0 / 0.65);
269
281
  --ui-bg-hover: #36302b;
282
+ --ui-bg-field: rgb(243 237 229 / 0.06);
283
+ --ui-bg-field-hover: rgb(243 237 229 / 0.1);
270
284
  --ui-bg-brand-solid: var(--color-brand-seed-dark);
271
285
  --ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed-dark) 80%, white);
272
286
  --ui-bg-brand-subtle: color-mix(in oklch, var(--color-brand-seed) 32%, #211d1a);
273
- --ui-bg-error-solid: var(--color-error-300);
274
- --ui-bg-error-solid-hover: var(--color-error-200);
287
+ --ui-bg-error-solid: var(--color-error-600);
288
+ --ui-bg-error-solid-hover: var(--color-error-700);
275
289
  --ui-bg-error-subtle: color-mix(in oklab, var(--color-error-600) 18%, transparent);
276
290
  --ui-bg-success-subtle: color-mix(in oklab, var(--color-success-600) 18%, transparent);
277
291
  --ui-bg-warning-subtle: color-mix(in oklab, var(--color-warning-600) 18%, transparent);
@@ -279,6 +293,8 @@
279
293
  --ui-border-default: var(--color-gray-800);
280
294
  --ui-border-strong: var(--color-gray-400);
281
295
  --ui-border-control: var(--color-gray-500);
296
+ --ui-border-field: rgb(243 237 229 / 0.13);
297
+ --ui-border-field-hover: rgb(243 237 229 / 0.24);
282
298
  --ui-border-subtle: #36302b;
283
299
  --ui-border-brand: var(--color-brand-seed-dark);
284
300
  --ui-border-error: var(--color-error-400);
@@ -309,21 +325,17 @@
309
325
  --ui-text-pink: #f9a8d4;
310
326
  --ui-border-pink: #9d174d;
311
327
  --ui-fg-pink: #f472b6;
312
- --ui-bg-orange-subtle: color-mix(in oklab, #ea580c 18%, transparent);
313
- --ui-text-orange: #fdba74;
314
- --ui-border-orange: #9a3412;
315
- --ui-fg-orange: #fb923c;
316
328
  --ui-bg-indigo-subtle: color-mix(in oklab, #4f46e5 18%, transparent);
317
329
  --ui-text-indigo: #a5b4fc;
318
330
  --ui-border-indigo: #3730a3;
319
331
  --ui-fg-indigo: #818cf8;
320
332
 
321
333
  --ui-chart-1: #b3c1ff;
322
- --ui-chart-2: #ffb862;
323
- --ui-chart-3: #00f1bf;
334
+ --ui-chart-2: #ee101c;
335
+ --ui-chart-3: #188771;
324
336
  --ui-chart-4: #ac6bf4;
325
- --ui-chart-5: #8a9f00;
326
- --ui-chart-6: #ff6791;
337
+ --ui-chart-5: #ffaf7a;
338
+ --ui-chart-6: #ea48ac;
327
339
  --ui-chart-muted: #9ca3af;
328
340
  --ui-chart-seq-1: #182e4b;
329
341
  --ui-chart-seq-2: #284e7d;
@@ -331,21 +343,3 @@
331
343
  --ui-chart-seq-4: #7aaeef;
332
344
  --ui-chart-seq-5: #b3d4ff;
333
345
  }
334
-
335
- /* The visitor's text size, from useTextSize or themeInitScript. Default is the type scale above. */
336
- :root[data-ui-text='compact'] {
337
- --text-xs: 0.75rem;
338
- --text-xs--line-height: 1rem;
339
- --text-sm: 0.8125rem;
340
- --text-sm--line-height: 1.125rem;
341
- --text-md: 0.875rem;
342
- --text-md--line-height: 1.25rem;
343
- --text-lg: 1rem;
344
- --text-lg--line-height: 1.5rem;
345
- --text-xl: 1.25rem;
346
- --text-xl--line-height: 1.75rem;
347
- --text-2xl: 1.5rem;
348
- --text-2xl--line-height: 2rem;
349
- --text-3xl: 2rem;
350
- --text-3xl--line-height: 2.375rem;
351
- }
@@ -9,15 +9,3 @@ import { type ClassNameValue } from 'tailwind-merge';
9
9
  * React Server Component.
10
10
  */
11
11
  export declare function cx(...inputs: ClassNameValue[]): string;
12
- type ClassNameProp<T> = string | ((values: T & {
13
- defaultClassName: string | undefined;
14
- }) => string) | undefined;
15
- /**
16
- * Merges a component's own classes with a consumer `className` that may be a
17
- * string or a React Aria render-prop function. Same result as React Aria's
18
- * `composeRenderProps`, without importing it.
19
- */
20
- export declare function composeClassName<T>(className: ClassNameProp<T>, base: string | ((values: T) => string)): (values: T & {
21
- defaultClassName: string | undefined;
22
- }) => string;
23
- export {};
package/dist/utils/cx.js CHANGED
@@ -1,5 +1,21 @@
1
- import { twMerge } from "tailwind-merge";
1
+ import { extendTailwindMerge } from "tailwind-merge";
2
2
  // src/utils/cx.ts
3
+ var twMerge = extendTailwindMerge({ extend: { theme: {
4
+ spacing: [
5
+ "control-xs",
6
+ "control-sm",
7
+ "control-md",
8
+ "control-lg",
9
+ "control-x",
10
+ "item-x",
11
+ "item-y",
12
+ "cell-x",
13
+ "cell-y",
14
+ "card",
15
+ "stack"
16
+ ],
17
+ text: ["display"]
18
+ } } });
3
19
  /**
4
20
  * Joins class names and resolves Tailwind conflicts so the last one wins.
5
21
  * Falsy values are ignored, which keeps conditional classes readable:
@@ -12,14 +28,6 @@ import { twMerge } from "tailwind-merge";
12
28
  function cx(...inputs) {
13
29
  return twMerge(...inputs);
14
30
  }
15
- /**
16
- * Merges a component's own classes with a consumer `className` that may be a
17
- * string or a React Aria render-prop function. Same result as React Aria's
18
- * `composeRenderProps`, without importing it.
19
- */
20
- function composeClassName(className, base) {
21
- return (values) => cx(typeof base === "function" ? base(values) : base, typeof className === "function" ? className(values) : className);
22
- }
23
- export { composeClassName, cx };
31
+ export { cx };
24
32
 
25
33
  //# sourceMappingURL=cx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cx.js","names":[],"sources":["../../src/utils/cx.ts"],"sourcesContent":["import { twMerge, type ClassNameValue } from 'tailwind-merge';\n\n/**\n * Joins class names and resolves Tailwind conflicts so the last one wins.\n * Falsy values are ignored, which keeps conditional classes readable:\n *\n * cx('px-4 py-2', isLarge && 'px-6', className)\n *\n * This module imports nothing but tailwind-merge, so it is safe to use in a\n * React Server Component.\n */\nexport function cx(...inputs: ClassNameValue[]): string {\n return twMerge(...inputs);\n}\n\ntype ClassNameProp<T> =\n string | ((values: T & { defaultClassName: string | undefined }) => string) | undefined;\n\n/**\n * Merges a component's own classes with a consumer `className` that may be a\n * string or a React Aria render-prop function. Same result as React Aria's\n * `composeRenderProps`, without importing it.\n */\nexport function composeClassName<T>(\n className: ClassNameProp<T>,\n base: string | ((values: T) => string),\n): (values: T & { defaultClassName: string | undefined }) => string {\n return (values) =>\n cx(\n typeof base === 'function' ? base(values) : base,\n typeof className === 'function' ? className(values) : className,\n );\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,GAAG,GAAG,QAAkC;CACtD,OAAO,QAAQ,GAAG,MAAM;AAC1B;;;;;;AAUA,SAAgB,iBACd,WACA,MACkE;CAClE,QAAQ,WACN,GACE,OAAO,SAAS,aAAa,KAAK,MAAM,IAAI,MAC5C,OAAO,cAAc,aAAa,UAAU,MAAM,IAAI,SACxD;AACJ"}
1
+ {"version":3,"file":"cx.js","names":[],"sources":["../../src/utils/cx.ts"],"sourcesContent":["import { extendTailwindMerge, type ClassNameValue } from 'tailwind-merge';\n\n// The control and density spacing names and the display font size are ours, so\n// tailwind-merge needs to know that `h-control-md` and `h-control-sm` compete.\nconst twMerge = extendTailwindMerge({\n extend: {\n theme: {\n spacing: [\n 'control-xs',\n 'control-sm',\n 'control-md',\n 'control-lg',\n 'control-x',\n 'item-x',\n 'item-y',\n 'cell-x',\n 'cell-y',\n 'card',\n 'stack',\n ],\n text: ['display'],\n },\n },\n});\n\n/**\n * Joins class names and resolves Tailwind conflicts so the last one wins.\n * Falsy values are ignored, which keeps conditional classes readable:\n *\n * cx('px-4 py-2', isLarge && 'px-6', className)\n *\n * This module imports nothing but tailwind-merge, so it is safe to use in a\n * React Server Component.\n */\nexport function cx(...inputs: ClassNameValue[]): string {\n return twMerge(...inputs);\n}\n"],"mappings":";;AAIA,IAAM,UAAU,oBAAoB,EAClC,QAAQ,EACN,OAAO;CACL,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM,CAAC,SAAS;AAClB,EACF,EACF,CAAC;;;;;;;;;;AAWD,SAAgB,GAAG,GAAG,QAAkC;CACtD,OAAO,QAAQ,GAAG,MAAM;AAC1B"}