@eylulg/ui 1.2.0 → 2.0.1

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 +30 -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
@@ -1,17 +1,6 @@
1
- // src/chrome/projects.ts
2
- /**
3
- * Eylül Güneş's projects, as listed by ProjectSwitcher and SiteFooter.
4
- * Every project is live. Pass your own list to either component to override it.
5
- */
1
+ // src/data/projects.ts
2
+ /** Eylül's projects in the order the footers walk through them: the featured four first. Every project is live. */
6
3
  var projects = [
7
- {
8
- id: "portfolio",
9
- name: "Portfolio",
10
- description: "Case studies, experience and how I work",
11
- url: "https://eylulg.github.io/",
12
- variant: "portfolio",
13
- repoUrl: "https://github.com/eylulg/eylulg.github.io"
14
- },
15
4
  {
16
5
  id: "ui",
17
6
  name: "Component Library",
@@ -83,17 +72,57 @@ var projects = [
83
72
  url: "https://eylulg.github.io/sudoku/",
84
73
  variant: "sudoku",
85
74
  repoUrl: "https://github.com/eylulg/sudoku"
75
+ },
76
+ {
77
+ id: "portfolio",
78
+ name: "Portfolio",
79
+ description: "Case studies, experience and how I work",
80
+ url: "https://eylulg.github.io/",
81
+ variant: "portfolio",
82
+ repoUrl: "https://github.com/eylulg/eylulg.github.io"
86
83
  }
87
84
  ];
88
85
  var profileLinks = {
89
86
  github: "https://github.com/eylulg",
90
87
  linkedin: "https://www.linkedin.com/in/eylul-gunes",
88
+ email: "mailto:eylulgist@gmail.com",
91
89
  storybook: "https://eylulg.github.io/ui/"
92
90
  };
93
91
  /** The live URL when there is one, otherwise the repository. */
94
92
  function projectHref(project) {
95
93
  return project.url ?? project.repoUrl;
96
94
  }
97
- export { profileLinks, projectHref, projects };
95
+ /** The project after `currentId`, wrapping round, as the `next` prop of SiteFooter. The portfolio is never next. */
96
+ function nextProject(currentId) {
97
+ const list = projects.filter((project) => project.id !== "portfolio");
98
+ const target = list[(list.findIndex((project) => project.id === currentId) + 1) % list.length];
99
+ if (!target) throw new Error("No projects to point to");
100
+ return {
101
+ href: projectHref(target),
102
+ name: target.name,
103
+ description: target.description,
104
+ variant: target.variant
105
+ };
106
+ }
107
+ /** The portfolio's projects page, for the back link of SiteFooter. */
108
+ var allProjectsLink = {
109
+ label: "All projects",
110
+ href: "https://eylulg.github.io/projects"
111
+ };
112
+ var profileNavLinks = [
113
+ {
114
+ label: "GitHub",
115
+ href: profileLinks.github
116
+ },
117
+ {
118
+ label: "LinkedIn",
119
+ href: profileLinks.linkedin
120
+ },
121
+ {
122
+ label: "Email",
123
+ href: profileLinks.email
124
+ }
125
+ ];
126
+ export { allProjectsLink, nextProject, profileLinks, profileNavLinks, projectHref, projects };
98
127
 
99
128
  //# sourceMappingURL=projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.js","names":[],"sources":["../../src/data/projects.ts"],"sourcesContent":["import type { NavLink } from '../router/types';\nimport type { VariantName } from '../styles/themes/variants';\n\nexport interface Project {\n id: string;\n name: string;\n /** One line, sentence case, no trailing full stop. */\n description: string;\n /** Live URL, or null while the project is not deployed yet. */\n url: string | null;\n /** Theme variant the project uses, or null for the library's own Storybook. */\n variant: VariantName | null;\n repoUrl: string;\n}\n\n/** Eylül's projects in the order the footers walk through them: the featured four first. Every project is live. */\nexport const projects: Project[] = [\n {\n id: 'ui',\n name: 'Component Library',\n description: 'The @eylulg/ui Storybook every project is built with',\n url: 'https://eylulg.github.io/ui/',\n variant: null,\n repoUrl: 'https://github.com/eylulg/ui',\n },\n {\n id: 'workspace',\n name: 'Workspace',\n description: 'A keyboard first issue tracker',\n url: 'https://eg-workspace.vercel.app/',\n variant: 'workspace',\n repoUrl: 'https://github.com/eylulg/workspace',\n },\n {\n id: 'agent-control-room',\n name: 'Agent Workflows',\n description: 'Build agent workflows as graphs and watch them run',\n url: 'https://eylulg.github.io/agent-control-room/',\n variant: 'control-room',\n repoUrl: 'https://github.com/eylulg/agent-control-room',\n },\n {\n id: 'assistant-studio',\n name: 'Assistant Studio',\n description: 'Research assistant with cited answers, tool use and evals',\n url: 'https://eg-assistant-studio.vercel.app/',\n variant: 'assistant',\n repoUrl: 'https://github.com/eylulg/assistant-studio',\n },\n {\n id: 'review-companion',\n name: 'Review Companion',\n description: 'Pull request review with findings you can triage',\n url: 'https://eg-review-companion.vercel.app/',\n variant: 'review',\n repoUrl: 'https://github.com/eylulg/review-companion',\n },\n {\n id: 'watchlist',\n name: 'Watchlist',\n description: 'Films and series to watch, with notes',\n url: 'https://eg-watchlist.vercel.app/',\n variant: 'watchlist',\n repoUrl: 'https://github.com/eylulg/watchlist',\n },\n {\n id: 'tokens-to-tailwind',\n name: 'Tokens to Tailwind',\n description: 'Turn design tokens into a Tailwind theme',\n url: 'https://eylulg.github.io/tokens-to-tailwind/',\n variant: 'tokens',\n repoUrl: 'https://github.com/eylulg/tokens-to-tailwind',\n },\n {\n id: 'plain-language',\n name: 'Plain Language Add-in',\n description: 'A Word add-in that suggests plainer wording',\n url: 'https://eylulg.github.io/plain-language-word-addin/',\n variant: 'plain-language',\n repoUrl: 'https://github.com/eylulg/plain-language-word-addin',\n },\n {\n id: 'sudoku',\n name: 'Sudoku',\n description: 'A sudoku game with a unique-solution generator, hints and a keyboard grid',\n url: 'https://eylulg.github.io/sudoku/',\n variant: 'sudoku',\n repoUrl: 'https://github.com/eylulg/sudoku',\n },\n {\n id: 'portfolio',\n name: 'Portfolio',\n description: 'Case studies, experience and how I work',\n url: 'https://eylulg.github.io/',\n variant: 'portfolio',\n repoUrl: 'https://github.com/eylulg/eylulg.github.io',\n },\n];\n\nexport const profileLinks = {\n github: 'https://github.com/eylulg',\n linkedin: 'https://www.linkedin.com/in/eylul-gunes',\n email: 'mailto:eylulgist@gmail.com',\n storybook: 'https://eylulg.github.io/ui/',\n} as const;\n\n/** The live URL when there is one, otherwise the repository. */\nexport function projectHref(project: Pick<Project, 'url' | 'repoUrl'>): string {\n return project.url ?? project.repoUrl;\n}\n\n/** The project after `currentId`, wrapping round, as the `next` prop of SiteFooter. The portfolio is never next. */\nexport function nextProject(currentId: string) {\n const list = projects.filter((project) => project.id !== 'portfolio');\n const index = list.findIndex((project) => project.id === currentId);\n const target = list[(index + 1) % list.length];\n if (!target) throw new Error('No projects to point to');\n return {\n href: projectHref(target),\n name: target.name,\n description: target.description,\n variant: target.variant,\n };\n}\n\n/** The portfolio's projects page, for the back link of SiteFooter. */\nexport const allProjectsLink: NavLink = {\n label: 'All projects',\n href: 'https://eylulg.github.io/projects',\n};\n\nexport const profileNavLinks: NavLink[] = [\n { label: 'GitHub', href: profileLinks.github },\n { label: 'LinkedIn', href: profileLinks.linkedin },\n { label: 'Email', href: profileLinks.email },\n];\n"],"mappings":";;AAgBA,IAAa,WAAsB;CACjC;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,SAAS;EACT,SAAS;CACX;AACF;AAEA,IAAa,eAAe;CAC1B,QAAQ;CACR,UAAU;CACV,OAAO;CACP,WAAW;AACb;;AAGA,SAAgB,YAAY,SAAmD;CAC7E,OAAO,QAAQ,OAAO,QAAQ;AAChC;;AAGA,SAAgB,YAAY,WAAmB;CAC7C,MAAM,OAAO,SAAS,QAAQ,YAAY,QAAQ,OAAO,WAAW;CAEpE,MAAM,SAAS,MADD,KAAK,WAAW,YAAY,QAAQ,OAAO,SACpC,IAAQ,KAAK,KAAK;CACvC,IAAI,CAAC,QAAQ,MAAM,IAAI,MAAM,yBAAyB;CACtD,OAAO;EACL,MAAM,YAAY,MAAM;EACxB,MAAM,OAAO;EACb,aAAa,OAAO;EACpB,SAAS,OAAO;CAClB;AACF;;AAGA,IAAa,kBAA2B;CACtC,OAAO;CACP,MAAM;AACR;AAEA,IAAa,kBAA6B;CACxC;EAAE,OAAO;EAAU,MAAM,aAAa;CAAO;CAC7C;EAAE,OAAO;EAAY,MAAM,aAAa;CAAS;CACjD;EAAE,OAAO;EAAS,MAAM,aAAa;CAAM;AAC7C"}
package/dist/fonts.css CHANGED
@@ -14,8 +14,33 @@
14
14
  @import '@fontsource-variable/manrope';
15
15
  @import '@fontsource-variable/jetbrains-mono';
16
16
 
17
+ /*
18
+ * Text paints in a fallback first and swaps when the web font arrives. These
19
+ * faces resize Arial (or Liberation Sans, its Linux twin) to each font's
20
+ * width and line height, so the swap does not move the layout. Without them
21
+ * the stack reaches system-ui first, which is DejaVu Sans on Linux and much
22
+ * wider. Values are measured from the latin files against Arial.
23
+ */
24
+ @font-face {
25
+ font-family: 'Inter Fallback';
26
+ src: local('Arial'), local('Liberation Sans');
27
+ size-adjust: 107.23%;
28
+ ascent-override: 90.35%;
29
+ descent-override: 22.5%;
30
+ line-gap-override: 0%;
31
+ }
32
+
33
+ @font-face {
34
+ font-family: 'Manrope Fallback';
35
+ src: local('Arial'), local('Liberation Sans');
36
+ size-adjust: 99.58%;
37
+ ascent-override: 107.05%;
38
+ descent-override: 30.13%;
39
+ line-gap-override: 0%;
40
+ }
41
+
17
42
  :root {
18
- --font-inter: 'Inter Variable';
19
- --font-manrope: 'Manrope Variable';
43
+ --font-inter: 'Inter Variable', 'Inter Fallback';
44
+ --font-manrope: 'Manrope Variable', 'Manrope Fallback';
20
45
  --font-jetbrains-mono: 'JetBrains Mono Variable';
21
46
  }
package/dist/index.d.ts CHANGED
@@ -1,38 +1,56 @@
1
- export * from './components/Avatar';
2
- export * from './components/Badge';
3
- export * from './components/Breadcrumbs';
4
- export * from './components/Button';
5
- export * from './components/Card';
6
- export * from './components/Chart';
7
- export * from './components/Checkbox';
8
- export * from './components/CodeBlock';
9
- export * from './components/Combobox';
10
- export * from './components/CommandPalette';
11
- export * from './components/DatePicker';
12
- export * from './components/Dialog';
13
- export * from './components/Drawer';
14
- export * from './components/DropdownMenu';
15
- export * from './components/EmptyState';
16
- export * from './components/FileDropZone';
17
- export * from './components/IconButton';
18
- export * from './components/Input';
19
- export * from './components/Kbd';
20
- export * from './components/PageHeader';
21
- export * from './components/Pagination';
22
- export * from './components/Popover';
23
- export * from './components/ProgressBar';
24
- export * from './components/RadioGroup';
25
- export * from './components/SegmentedControl';
26
- export * from './components/Select';
27
- export * from './components/Skeleton';
28
- export * from './components/Spinner';
29
- export * from './components/Stat';
30
- export * from './components/Switch';
31
- export * from './components/Table';
32
- export * from './components/Tabs';
33
- export * from './components/Tag';
34
- export * from './components/Textarea';
35
- export * from './components/Toast';
36
- export * from './components/Tooltip';
37
- export { cx, composeClassName } from './utils/cx';
38
- export type { IconComponent } from './internal/types';
1
+ export * from './components/atoms/Avatar';
2
+ export * from './components/atoms/Badge';
3
+ export * from './components/atoms/BrandLoader';
4
+ export * from './components/atoms/BrandLogo';
5
+ export * from './components/atoms/Button';
6
+ export * from './components/atoms/Checkbox';
7
+ export * from './components/atoms/IconButton';
8
+ export * from './components/atoms/Kbd';
9
+ export * from './components/atoms/NavItem';
10
+ export * from './components/atoms/ProgressBar';
11
+ export * from './components/atoms/Skeleton';
12
+ export * from './components/atoms/Spinner';
13
+ export * from './components/atoms/Switch';
14
+ export * from './components/atoms/TextLink';
15
+ export * from './components/atoms/Tooltip';
16
+ export * from './components/molecules/Breadcrumbs';
17
+ export * from './components/molecules/Card';
18
+ export * from './components/molecules/CodeBlock';
19
+ export * from './components/molecules/Combobox';
20
+ export * from './components/molecules/DatePicker';
21
+ export * from './components/molecules/Dialog';
22
+ export * from './components/molecules/Drawer';
23
+ export * from './components/molecules/DropdownMenu';
24
+ export * from './components/molecules/EmptyState';
25
+ export * from './components/molecules/FileDropZone';
26
+ export * from './components/molecules/Input';
27
+ export * from './components/molecules/Pagination';
28
+ export * from './components/molecules/Popover';
29
+ export * from './components/molecules/RadioGroup';
30
+ export * from './components/molecules/SegmentedControl';
31
+ export * from './components/molecules/Select';
32
+ export * from './components/molecules/Stat';
33
+ export * from './components/molecules/Tabs';
34
+ export * from './components/molecules/Tag';
35
+ export * from './components/molecules/Textarea';
36
+ export * from './components/molecules/Toast';
37
+ export * from './components/organisms/Chart';
38
+ export * from './components/organisms/CommandPalette';
39
+ export * from './components/organisms/PageHeader';
40
+ export * from './components/organisms/SidebarNav';
41
+ export * from './components/organisms/SiteFooter';
42
+ export * from './components/organisms/Table';
43
+ export * from './components/organisms/ThemeToggle';
44
+ export * from './components/organisms/TopNav';
45
+ export * from './components/templates/AppShell';
46
+ export { darkModeClass, themeInitScript, themeStorageKey } from './theme/themeScript';
47
+ export { useTheme } from './theme/useTheme';
48
+ export type { ResolvedTheme, ThemePreference, UseTheme } from './theme/useTheme';
49
+ export { isAbsoluteHref, LinkRouter } from './router/LinkRouter';
50
+ export type { LinkRouterProps } from './router/LinkRouter';
51
+ export type { LinkComponent, LinkProps, NavLink } from './router/types';
52
+ export { allProjectsLink, nextProject, profileLinks, profileNavLinks, projectHref, projects, } from './data/projects';
53
+ export type { Project } from './data/projects';
54
+ export { cx } from './utils/cx';
55
+ export type { ControlSize } from './internal/control';
56
+ export type { Tone } from './internal/types';
package/dist/index.js CHANGED
@@ -1,43 +1,56 @@
1
1
  "use client";
2
- import { composeClassName, cx } from "./utils/cx.js";
3
- import { Avatar, AvatarGroup, getInitials } from "./components/Avatar/Avatar.js";
4
- import { Badge } from "./components/Badge/Badge.js";
5
- import { BreadcrumbItem, Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs.js";
6
- import { buttonSizes, buttonVariants } from "./components/Button/buttonStyles.js";
7
- import { Button } from "./components/Button/Button.js";
8
- import { Card, CardBody, CardFooter, CardHeader } from "./components/Card/Card.js";
9
- import { ChartLegend } from "./components/Chart/ChartLegend.js";
10
- import { BarChart } from "./components/Chart/BarChart.js";
11
- import { HeatGrid } from "./components/Chart/HeatGrid.js";
12
- import { LineChart } from "./components/Chart/LineChart.js";
13
- import { Checkbox } from "./components/Checkbox/Checkbox.js";
14
- import { IconButton } from "./components/IconButton/IconButton.js";
15
- import { CodeBlock } from "./components/CodeBlock/CodeBlock.js";
16
- import { Spinner } from "./components/Spinner/Spinner.js";
17
- import { Combobox, ComboboxItem, ComboboxSection } from "./components/Combobox/Combobox.js";
18
- import { CommandGroup, CommandItem, CommandPalette, useCommandPaletteShortcut } from "./components/CommandPalette/CommandPalette.js";
19
- import { DatePicker, DateRangePicker } from "./components/DatePicker/DatePicker.js";
20
- import { Dialog, DialogTrigger } from "./components/Dialog/Dialog.js";
21
- import { Drawer, DrawerTrigger } from "./components/Drawer/Drawer.js";
22
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSection, DropdownMenuSeparator, DropdownSubmenu } from "./components/DropdownMenu/DropdownMenu.js";
23
- import { EmptyState } from "./components/EmptyState/EmptyState.js";
24
- import { FileDropZone } from "./components/FileDropZone/FileDropZone.js";
25
- import { Input } from "./components/Input/Input.js";
26
- import { Kbd } from "./components/Kbd/Kbd.js";
27
- import { PageHeader } from "./components/PageHeader/PageHeader.js";
28
- import { Pagination, getPageRange } from "./components/Pagination/Pagination.js";
29
- import { Popover, PopoverTrigger } from "./components/Popover/Popover.js";
30
- import { ProgressBar } from "./components/ProgressBar/ProgressBar.js";
31
- import { Radio, RadioGroup } from "./components/RadioGroup/RadioGroup.js";
32
- import { SegmentedControl, SegmentedControlItem } from "./components/SegmentedControl/SegmentedControl.js";
33
- import { Select, SelectItem } from "./components/Select/Select.js";
34
- import { Skeleton } from "./components/Skeleton/Skeleton.js";
35
- import { Sparkline, Stat } from "./components/Stat/Stat.js";
36
- import { Switch } from "./components/Switch/Switch.js";
37
- import { Cell, Column, Row, Table, TableBody, TableHeader } from "./components/Table/Table.js";
38
- import { Tab, TabList, TabPanel, Tabs } from "./components/Tabs/Tabs.js";
39
- import { Tag, TagGroup } from "./components/Tag/Tag.js";
40
- import { Textarea } from "./components/Textarea/Textarea.js";
41
- import { ToastProvider, useToast } from "./components/Toast/Toast.js";
42
- import { Tooltip } from "./components/Tooltip/Tooltip.js";
43
- export { Avatar, AvatarGroup, Badge, BarChart, BreadcrumbItem, Breadcrumbs, Button, Card, CardBody, CardFooter, CardHeader, Cell, ChartLegend, Checkbox, CodeBlock, Column, Combobox, ComboboxItem, ComboboxSection, CommandGroup, CommandItem, CommandPalette, DatePicker, DateRangePicker, Dialog, DialogTrigger, Drawer, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSection, DropdownMenuSeparator, DropdownSubmenu, EmptyState, FileDropZone, HeatGrid, IconButton, Input, Kbd, LineChart, PageHeader, Pagination, Popover, PopoverTrigger, ProgressBar, Radio, RadioGroup, Row, SegmentedControl, SegmentedControlItem, Select, SelectItem, Skeleton, Sparkline, Spinner, Stat, Switch, Tab, TabList, TabPanel, Table, TableBody, TableHeader, Tabs, Tag, TagGroup, Textarea, ToastProvider, Tooltip, buttonSizes, buttonVariants, composeClassName, cx, getInitials, getPageRange, useCommandPaletteShortcut, useToast };
2
+ import { darkModeClass, themeInitScript, themeStorageKey } from "./theme/themeScript.js";
3
+ import { Avatar, AvatarGroup } from "./components/atoms/Avatar/Avatar.js";
4
+ import { Badge } from "./components/atoms/Badge/Badge.js";
5
+ import { BrandLoader } from "./components/atoms/BrandLoader/BrandLoader.js";
6
+ import { BrandLogo } from "./components/atoms/BrandLogo/BrandLogo.js";
7
+ import { Spinner } from "./components/atoms/Spinner/Spinner.js";
8
+ import { buttonStyles } from "./components/atoms/Button/buttonStyles.js";
9
+ import { Button } from "./components/atoms/Button/Button.js";
10
+ import { Checkbox } from "./components/atoms/Checkbox/Checkbox.js";
11
+ import { IconButton } from "./components/atoms/IconButton/IconButton.js";
12
+ import { Kbd } from "./components/atoms/Kbd/Kbd.js";
13
+ import { NavItem } from "./components/atoms/NavItem/NavItem.js";
14
+ import { ProgressBar } from "./components/atoms/ProgressBar/ProgressBar.js";
15
+ import { Skeleton } from "./components/atoms/Skeleton/Skeleton.js";
16
+ import { Switch } from "./components/atoms/Switch/Switch.js";
17
+ import { TextLink } from "./components/atoms/TextLink/TextLink.js";
18
+ import { Tooltip } from "./components/atoms/Tooltip/Tooltip.js";
19
+ import { BreadcrumbItem, Breadcrumbs } from "./components/molecules/Breadcrumbs/Breadcrumbs.js";
20
+ import { Card, CardBody, CardFooter, CardHeader } from "./components/molecules/Card/Card.js";
21
+ import { CodeBlock } from "./components/molecules/CodeBlock/CodeBlock.js";
22
+ import { Combobox, ComboboxItem, ComboboxSection } from "./components/molecules/Combobox/Combobox.js";
23
+ import { DatePicker, DateRangePicker } from "./components/molecules/DatePicker/DatePicker.js";
24
+ import { Dialog, DialogTrigger } from "./components/molecules/Dialog/Dialog.js";
25
+ import { Drawer, DrawerTrigger } from "./components/molecules/Drawer/Drawer.js";
26
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSection, DropdownMenuSeparator, DropdownSubmenu } from "./components/molecules/DropdownMenu/DropdownMenu.js";
27
+ import { EmptyState } from "./components/molecules/EmptyState/EmptyState.js";
28
+ import { FileDropZone } from "./components/molecules/FileDropZone/FileDropZone.js";
29
+ import { Input } from "./components/molecules/Input/Input.js";
30
+ import { Pagination } from "./components/molecules/Pagination/Pagination.js";
31
+ import { Popover, PopoverTrigger } from "./components/molecules/Popover/Popover.js";
32
+ import { Radio, RadioGroup } from "./components/molecules/RadioGroup/RadioGroup.js";
33
+ import { SegmentedControl, SegmentedControlItem } from "./components/molecules/SegmentedControl/SegmentedControl.js";
34
+ import { Select, SelectItem } from "./components/molecules/Select/Select.js";
35
+ import { Stat } from "./components/molecules/Stat/Stat.js";
36
+ import { Tab, TabList, TabPanel, Tabs } from "./components/molecules/Tabs/Tabs.js";
37
+ import { Tag, TagGroup } from "./components/molecules/Tag/Tag.js";
38
+ import { Textarea } from "./components/molecules/Textarea/Textarea.js";
39
+ import { ToastProvider, useToast } from "./components/molecules/Toast/Toast.js";
40
+ import { BarChart } from "./components/organisms/Chart/BarChart.js";
41
+ import { Sparkline } from "./components/organisms/Chart/Sparkline.js";
42
+ import { HeatGrid } from "./components/organisms/Chart/HeatGrid.js";
43
+ import { LineChart } from "./components/organisms/Chart/LineChart.js";
44
+ import { CommandGroup, CommandItem, CommandPalette, useCommandPaletteShortcut } from "./components/organisms/CommandPalette/CommandPalette.js";
45
+ import { PageHeader } from "./components/organisms/PageHeader/PageHeader.js";
46
+ import { SidebarNav } from "./components/organisms/SidebarNav/SidebarNav.js";
47
+ import { SiteFooter } from "./components/organisms/SiteFooter/SiteFooter.js";
48
+ import { Cell, Column, Row, Table, TableBody, TableHeader } from "./components/organisms/Table/Table.js";
49
+ import { useTheme } from "./theme/useTheme.js";
50
+ import { LinkRouter, isAbsoluteHref } from "./router/LinkRouter.js";
51
+ import { ThemeToggle } from "./components/organisms/ThemeToggle/ThemeToggle.js";
52
+ import { TopNav } from "./components/organisms/TopNav/TopNav.js";
53
+ import { AppShell } from "./components/templates/AppShell/AppShell.js";
54
+ import { allProjectsLink, nextProject, profileLinks, profileNavLinks, projectHref, projects } from "./data/projects.js";
55
+ import { cx } from "./utils/cx.js";
56
+ export { AppShell, Avatar, AvatarGroup, Badge, BarChart, BrandLoader, BrandLogo, BreadcrumbItem, Breadcrumbs, Button, Card, CardBody, CardFooter, CardHeader, Cell, Checkbox, CodeBlock, Column, Combobox, ComboboxItem, ComboboxSection, CommandGroup, CommandItem, CommandPalette, DatePicker, DateRangePicker, Dialog, DialogTrigger, Drawer, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSection, DropdownMenuSeparator, DropdownSubmenu, EmptyState, FileDropZone, HeatGrid, IconButton, Input, Kbd, LineChart, LinkRouter, NavItem, PageHeader, Pagination, Popover, PopoverTrigger, ProgressBar, Radio, RadioGroup, Row, SegmentedControl, SegmentedControlItem, Select, SelectItem, SidebarNav, SiteFooter, Skeleton, Sparkline, Spinner, Stat, Switch, Tab, TabList, TabPanel, Table, TableBody, TableHeader, Tabs, Tag, TagGroup, TextLink, Textarea, ThemeToggle, ToastProvider, Tooltip, TopNav, allProjectsLink, buttonStyles, cx, darkModeClass, isAbsoluteHref, nextProject, profileLinks, profileNavLinks, projectHref, projects, themeInitScript, themeStorageKey, useCommandPaletteShortcut, useTheme, useToast };
@@ -1,13 +1,18 @@
1
1
  import type { ReactNode } from 'react';
2
- export declare function FieldLabel({ children, className }: {
2
+ /** The column every field shares: label, control, hint or error, 6px apart. */
3
+ export declare const fieldColumn = "group flex flex-col gap-1.5";
4
+ interface FieldPartsProps {
5
+ label?: ReactNode;
6
+ hint?: ReactNode;
7
+ errorMessage?: string;
8
+ /** The field's own isInvalid prop: `false` hides the message even when one is set. */
9
+ isInvalid?: boolean;
3
10
  children: ReactNode;
4
- className?: string;
5
- }): import("react").JSX.Element;
6
- export declare function FieldHint({ children }: {
7
- children: ReactNode;
8
- }): import("react").JSX.Element;
9
- export declare function FieldErrorMessage({ children }: {
10
- children: ReactNode;
11
- }): import("react").JSX.Element;
12
- /** Shared control surface for text inputs, textareas and select triggers. */
13
- export declare const controlBase: string;
11
+ }
12
+ /**
13
+ * Label, control, then the hint or the error: the order every field uses. The
14
+ * hint gives way to the error. Without an `errorMessage`, FieldError shows
15
+ * the browser's own validation message when there is one.
16
+ */
17
+ export declare function FieldParts({ label, hint, errorMessage, isInvalid, children }: FieldPartsProps): import("react").JSX.Element;
18
+ export {};
@@ -1,29 +1,36 @@
1
1
  "use client";
2
- import { cx } from "../utils/cx.js";
3
- import { jsx } from "react/jsx-runtime";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
3
  import { FieldError, Label, Text } from "react-aria-components";
5
4
  // src/internal/Field.tsx
6
- function FieldLabel({ children, className }) {
7
- return /* @__PURE__ */ jsx(Label, {
8
- className: cx("text-sm font-medium text-secondary", className),
9
- children
10
- });
5
+ /** The column every field shares: label, control, hint or error, 6px apart. */
6
+ var fieldColumn = "group flex flex-col gap-1.5";
7
+ var errorText = "text-sm text-error";
8
+ /**
9
+ * Label, control, then the hint or the error: the order every field uses. The
10
+ * hint gives way to the error. Without an `errorMessage`, FieldError shows
11
+ * the browser's own validation message when there is one.
12
+ */
13
+ function FieldParts({ label, hint, errorMessage, isInvalid, children }) {
14
+ const shownError = isInvalid ?? Boolean(errorMessage) ? errorMessage : void 0;
15
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
16
+ label && /* @__PURE__ */ jsx(Label, {
17
+ className: "text-sm font-medium text-secondary",
18
+ children: label
19
+ }),
20
+ children,
21
+ !shownError && /* @__PURE__ */ jsx(Text, {
22
+ slot: "description",
23
+ className: "text-sm text-tertiary",
24
+ hidden: !hint,
25
+ children: hint
26
+ }),
27
+ shownError ? /* @__PURE__ */ jsx(Text, {
28
+ slot: "errorMessage",
29
+ className: errorText,
30
+ children: shownError
31
+ }) : /* @__PURE__ */ jsx(FieldError, { className: errorText })
32
+ ] });
11
33
  }
12
- function FieldHint({ children }) {
13
- return /* @__PURE__ */ jsx(Text, {
14
- slot: "description",
15
- className: "text-sm text-tertiary",
16
- children
17
- });
18
- }
19
- function FieldErrorMessage({ children }) {
20
- return /* @__PURE__ */ jsx(FieldError, {
21
- className: "text-sm text-error",
22
- children
23
- });
24
- }
25
- /** Shared control surface for text inputs, textareas and select triggers. */
26
- var controlBase = cx("w-full rounded-md border border-control bg-primary text-md text-primary shadow-xs transition-shadow", "placeholder:text-placeholder", "data-disabled:cursor-not-allowed data-disabled:border-disabled data-disabled:bg-disabled data-disabled:text-disabled", "data-invalid:border-error", "outline-none data-focused:border-brand data-focused:ring-4 data-focused:ring-focus/25", "data-invalid:data-focused:border-error data-invalid:data-focused:ring-error/25");
27
- export { FieldErrorMessage, FieldHint, FieldLabel, controlBase };
34
+ export { FieldParts, fieldColumn };
28
35
 
29
36
  //# sourceMappingURL=Field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","names":[],"sources":["../../src/internal/Field.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { FieldError, Label, Text } from 'react-aria-components';\nimport { cx } from '../utils/cx';\n\nexport function FieldLabel({ children, className }: { children: ReactNode; className?: string }) {\n return <Label className={cx('text-sm font-medium text-secondary', className)}>{children}</Label>;\n}\n\nexport function FieldHint({ children }: { children: ReactNode }) {\n return (\n <Text slot='description' className='text-sm text-tertiary'>\n {children}\n </Text>\n );\n}\n\nexport function FieldErrorMessage({ children }: { children: ReactNode }) {\n return <FieldError className='text-sm text-error'>{children}</FieldError>;\n}\n\n/** Shared control surface for text inputs, textareas and select triggers. */\nexport const controlBase = cx(\n 'w-full rounded-md border border-control bg-primary text-md text-primary shadow-xs transition-shadow',\n 'placeholder:text-placeholder',\n 'data-disabled:cursor-not-allowed data-disabled:border-disabled data-disabled:bg-disabled data-disabled:text-disabled',\n 'data-invalid:border-error',\n 'outline-none data-focused:border-brand data-focused:ring-4 data-focused:ring-focus/25',\n 'data-invalid:data-focused:border-error data-invalid:data-focused:ring-error/25',\n);\n"],"mappings":";;;;;AAIA,SAAgB,WAAW,EAAE,UAAU,aAA0D;CAC/F,OAAO,oBAAC,OAAD;EAAO,WAAW,GAAG,sCAAsC,SAAS;EAAI;CAAgB,CAAA;AACjG;AAEA,SAAgB,UAAU,EAAE,YAAqC;CAC/D,OACE,oBAAC,MAAD;EAAM,MAAK;EAAc,WAAU;EAChC;CACG,CAAA;AAEV;AAEA,SAAgB,kBAAkB,EAAE,YAAqC;CACvE,OAAO,oBAAC,YAAD;EAAY,WAAU;EAAsB;CAAqB,CAAA;AAC1E;;AAGA,IAAa,cAAc,GACzB,uGACA,gCACA,wHACA,6BACA,yFACA,gFACF"}
1
+ {"version":3,"file":"Field.js","names":["_Fragment"],"sources":["../../src/internal/Field.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { FieldError, Label, Text } from 'react-aria-components';\n\n/** The column every field shares: label, control, hint or error, 6px apart. */\nexport const fieldColumn = 'group flex flex-col gap-1.5';\n\nconst errorText = 'text-sm text-error';\n\ninterface FieldPartsProps {\n label?: ReactNode;\n hint?: ReactNode;\n errorMessage?: string;\n /** The field's own isInvalid prop: `false` hides the message even when one is set. */\n isInvalid?: boolean;\n children: ReactNode;\n}\n\n/**\n * Label, control, then the hint or the error: the order every field uses. The\n * hint gives way to the error. Without an `errorMessage`, FieldError shows\n * the browser's own validation message when there is one.\n */\nexport function FieldParts({ label, hint, errorMessage, isInvalid, children }: FieldPartsProps) {\n const shownError = (isInvalid ?? Boolean(errorMessage)) ? errorMessage : undefined;\n return (\n <>\n {label && <Label className='text-sm font-medium text-secondary'>{label}</Label>}\n {children}\n {/* Rendered even without a hint: React Aria looks the description up again only when the\n error state changes, so a hint that appeared later was never linked to the control. */}\n {!shownError && (\n <Text slot='description' className='text-sm text-tertiary' hidden={!hint}>\n {hint}\n </Text>\n )}\n {shownError ? (\n <Text slot='errorMessage' className={errorText}>\n {shownError}\n </Text>\n ) : (\n <FieldError className={errorText} />\n )}\n </>\n );\n}\n"],"mappings":";;;;;AAIA,IAAa,cAAc;AAE3B,IAAM,YAAY;;;;;;AAgBlB,SAAgB,WAAW,EAAE,OAAO,MAAM,cAAc,WAAW,YAA6B;CAC9F,MAAM,aAAc,aAAa,QAAQ,YAAY,IAAK,eAAe,KAAA;CACzE,OACE,qBAAAA,UAAA,EAAA,UAAA;EACG,SAAS,oBAAC,OAAD;GAAO,WAAU;GAAsC,UAAA;EAAa,CAAA;EAC7E;EAGA,CAAC,cACA,oBAAC,MAAD;GAAM,MAAK;GAAc,WAAU;GAAwB,QAAQ,CAAC;GACjE,UAAA;EACG,CAAA;EAEP,aACC,oBAAC,MAAD;GAAM,MAAK;GAAe,WAAW;GAClC,UAAA;EACG,CAAA,IAEN,oBAAC,YAAD,EAAY,WAAW,UAAY,CAAA;CAErC,EAAA,CAAA;AAEN"}
@@ -0,0 +1,43 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type ModalOverlayProps } from 'react-aria-components';
3
+ /** Content of a modal, or a function that receives `close`. */
4
+ export type OverlayContent = ReactNode | ((options: {
5
+ close: () => void;
6
+ }) => ReactNode);
7
+ export declare function resolveContent(content: OverlayContent, close: () => void): ReactNode;
8
+ /** The props Dialog and Drawer share. */
9
+ export interface OverlayProps extends Pick<ModalOverlayProps, 'isOpen' | 'defaultOpen' | 'onOpenChange' | 'isDismissable' | 'isKeyboardDismissDisabled'> {
10
+ /** Heading, also used as the accessible name. */
11
+ title: ReactNode;
12
+ /** Hide the heading visually but keep it as the accessible name. */
13
+ hideTitle?: boolean;
14
+ description?: ReactNode;
15
+ /** Controls in the header next to the title, such as a button to open the item in a page. They come before the close button. */
16
+ headerActions?: ReactNode;
17
+ /** Body content, or a function that receives `close`. */
18
+ children?: OverlayContent;
19
+ /** Action buttons, rendered in the footer. Also accepts a function that receives `close`. */
20
+ footer?: OverlayContent;
21
+ closeLabel?: string;
22
+ className?: string;
23
+ }
24
+ interface OverlayHeaderProps {
25
+ title: ReactNode;
26
+ /** Hide the heading visually but keep it as the accessible name. */
27
+ hideTitle?: boolean;
28
+ description?: ReactNode;
29
+ descriptionId: string;
30
+ /** Controls next to the title, before the close button. */
31
+ headerActions?: ReactNode;
32
+ /** The close button, rendered last. */
33
+ closeButton: ReactNode;
34
+ className?: string;
35
+ }
36
+ /** The title, description and close button on top of a Dialog or a Drawer. */
37
+ export declare function OverlayHeader({ title, hideTitle, description, descriptionId, headerActions, closeButton, className, }: OverlayHeaderProps): import("react").JSX.Element;
38
+ /** The action buttons at the bottom of a Dialog or a Drawer. */
39
+ export declare function OverlayFooter({ children, className, }: {
40
+ children: ReactNode;
41
+ className?: string;
42
+ }): import("react").JSX.Element;
43
+ export {};
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { cx } from "../utils/cx.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Heading } from "react-aria-components";
5
+ // src/internal/OverlayParts.tsx
6
+ function resolveContent(content, close) {
7
+ return typeof content === "function" ? content({ close }) : content;
8
+ }
9
+ /** The title, description and close button on top of a Dialog or a Drawer. */
10
+ function OverlayHeader({ title, hideTitle, description, descriptionId, headerActions, closeButton, className }) {
11
+ return /* @__PURE__ */ jsxs("div", {
12
+ className: cx("flex items-start gap-2", className),
13
+ children: [
14
+ /* @__PURE__ */ jsxs("div", {
15
+ className: "flex min-w-0 flex-1 flex-col gap-1",
16
+ children: [/* @__PURE__ */ jsx(Heading, {
17
+ slot: "title",
18
+ className: cx("font-display text-lg font-semibold text-primary", hideTitle && "sr-only"),
19
+ children: title
20
+ }), description && /* @__PURE__ */ jsx("p", {
21
+ id: descriptionId,
22
+ className: "text-sm text-tertiary",
23
+ children: description
24
+ })]
25
+ }),
26
+ headerActions && /* @__PURE__ */ jsx("div", {
27
+ className: "flex shrink-0 items-center gap-1",
28
+ children: headerActions
29
+ }),
30
+ closeButton
31
+ ]
32
+ });
33
+ }
34
+ /** The action buttons at the bottom of a Dialog or a Drawer. */
35
+ function OverlayFooter({ children, className }) {
36
+ return /* @__PURE__ */ jsx("div", {
37
+ className: cx("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end", className),
38
+ children
39
+ });
40
+ }
41
+ export { OverlayFooter, OverlayHeader, resolveContent };
42
+
43
+ //# sourceMappingURL=OverlayParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverlayParts.js","names":[],"sources":["../../src/internal/OverlayParts.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { Heading, type ModalOverlayProps } from 'react-aria-components';\nimport { cx } from '../utils/cx';\n\n/** Content of a modal, or a function that receives `close`. */\nexport type OverlayContent = ReactNode | ((options: { close: () => void }) => ReactNode);\n\nexport function resolveContent(content: OverlayContent, close: () => void) {\n return typeof content === 'function' ? content({ close }) : content;\n}\n\n/** The props Dialog and Drawer share. */\nexport interface OverlayProps extends Pick<\n ModalOverlayProps,\n 'isOpen' | 'defaultOpen' | 'onOpenChange' | 'isDismissable' | 'isKeyboardDismissDisabled'\n> {\n /** Heading, also used as the accessible name. */\n title: ReactNode;\n /** Hide the heading visually but keep it as the accessible name. */\n hideTitle?: boolean;\n description?: ReactNode;\n /** Controls in the header next to the title, such as a button to open the item in a page. They come before the close button. */\n headerActions?: ReactNode;\n /** Body content, or a function that receives `close`. */\n children?: OverlayContent;\n /** Action buttons, rendered in the footer. Also accepts a function that receives `close`. */\n footer?: OverlayContent;\n closeLabel?: string;\n className?: string;\n}\n\ninterface OverlayHeaderProps {\n title: ReactNode;\n /** Hide the heading visually but keep it as the accessible name. */\n hideTitle?: boolean;\n description?: ReactNode;\n descriptionId: string;\n /** Controls next to the title, before the close button. */\n headerActions?: ReactNode;\n /** The close button, rendered last. */\n closeButton: ReactNode;\n className?: string;\n}\n\n/** The title, description and close button on top of a Dialog or a Drawer. */\nexport function OverlayHeader({\n title,\n hideTitle,\n description,\n descriptionId,\n headerActions,\n closeButton,\n className,\n}: OverlayHeaderProps) {\n return (\n <div className={cx('flex items-start gap-2', className)}>\n <div className='flex min-w-0 flex-1 flex-col gap-1'>\n <Heading\n slot='title'\n className={cx('font-display text-lg font-semibold text-primary', hideTitle && 'sr-only')}\n >\n {title}\n </Heading>\n {description && (\n <p id={descriptionId} className='text-sm text-tertiary'>\n {description}\n </p>\n )}\n </div>\n {headerActions && <div className='flex shrink-0 items-center gap-1'>{headerActions}</div>}\n {closeButton}\n </div>\n );\n}\n\n/** The action buttons at the bottom of a Dialog or a Drawer. */\nexport function OverlayFooter({\n children,\n className,\n}: {\n children: ReactNode;\n className?: string;\n}) {\n return (\n <div className={cx('flex flex-col-reverse gap-3 sm:flex-row sm:justify-end', className)}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;AAOA,SAAgB,eAAe,SAAyB,OAAmB;CACzE,OAAO,OAAO,YAAY,aAAa,QAAQ,EAAE,MAAM,CAAC,IAAI;AAC9D;;AAoCA,SAAgB,cAAc,EAC5B,OACA,WACA,aACA,eACA,eACA,aACA,aACqB;CACrB,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,0BAA0B,SAAS;EAAtD,UAAA;GACE,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,oBAAC,SAAD;KACE,MAAK;KACL,WAAW,GAAG,mDAAmD,aAAa,SAAS;KAEtF,UAAA;IACM,CAAA,GACR,eACC,oBAAC,KAAD;KAAG,IAAI;KAAe,WAAU;KAC7B,UAAA;IACA,CAAA,CAEF;;GACJ,iBAAiB,oBAAC,OAAD;IAAK,WAAU;IAAoC,UAAA;GAAmB,CAAA;GACvF;EACE;;AAET;;AAGA,SAAgB,cAAc,EAC5B,UACA,aAIC;CACD,OACE,oBAAC,OAAD;EAAK,WAAW,GAAG,0DAA0D,SAAS;EACnF;CACE,CAAA;AAET"}
@@ -1,7 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
- import type { LazyModule } from './lazyModule';
3
2
  interface PreloadOnIntentProps {
4
- module: Pick<LazyModule<unknown>, 'preload'>;
3
+ preload: () => void;
5
4
  children: ReactNode;
6
5
  }
7
6
  /**
@@ -11,5 +10,5 @@ interface PreloadOnIntentProps {
11
10
  * component that already provides Button props (a Dialog with `slot="close"`
12
11
  * buttons, a Select) nothing is added, so those props keep working.
13
12
  */
14
- export declare function PreloadOnIntent({ module, children }: PreloadOnIntentProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
13
+ export declare function PreloadOnIntent({ preload, children }: PreloadOnIntentProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
15
14
  export {};
@@ -10,13 +10,13 @@ import { ButtonContext } from "react-aria-components";
10
10
  * component that already provides Button props (a Dialog with `slot="close"`
11
11
  * buttons, a Select) nothing is added, so those props keep working.
12
12
  */
13
- function PreloadOnIntent({ module, children }) {
13
+ function PreloadOnIntent({ preload, children }) {
14
14
  const inherited = useContext(ButtonContext);
15
15
  if (inherited && Object.keys(inherited).length > 0) return children;
16
16
  return /* @__PURE__ */ jsx(ButtonContext.Provider, {
17
17
  value: {
18
- onHoverStart: module.preload,
19
- onFocus: module.preload
18
+ onHoverStart: preload,
19
+ onFocus: preload
20
20
  },
21
21
  children
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PreloadOnIntent.js","names":[],"sources":["../../src/internal/PreloadOnIntent.tsx"],"sourcesContent":["import { useContext, type ReactNode } from 'react';\nimport { ButtonContext } from 'react-aria-components';\nimport type { LazyModule } from './lazyModule';\n\ninterface PreloadOnIntentProps {\n module: Pick<LazyModule<unknown>, 'preload'>;\n children: ReactNode;\n}\n\n/**\n * Starts loading an overlay when a React Aria Button inside it is hovered or\n * focused, so the code has usually arrived by the time the trigger is pressed.\n * A trigger that is not a React Aria Button still loads on press. Inside a\n * component that already provides Button props (a Dialog with `slot=\"close\"`\n * buttons, a Select) nothing is added, so those props keep working.\n */\nexport function PreloadOnIntent({ module, children }: PreloadOnIntentProps) {\n const inherited = useContext(ButtonContext);\n if (inherited && Object.keys(inherited).length > 0) return children;\n return (\n <ButtonContext.Provider value={{ onHoverStart: module.preload, onFocus: module.preload }}>\n {children}\n </ButtonContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,SAAgB,gBAAgB,EAAE,QAAQ,YAAkC;CAC1E,MAAM,YAAY,WAAW,aAAa;CAC1C,IAAI,aAAa,OAAO,KAAK,SAAS,CAAC,CAAC,SAAS,GAAG,OAAO;CAC3D,OACE,oBAAC,cAAc,UAAf;EAAwB,OAAO;GAAE,cAAc,OAAO;GAAS,SAAS,OAAO;EAAQ;EACpF;CACqB,CAAA;AAE5B"}
1
+ {"version":3,"file":"PreloadOnIntent.js","names":[],"sources":["../../src/internal/PreloadOnIntent.tsx"],"sourcesContent":["import { useContext, type ReactNode } from 'react';\nimport { ButtonContext } from 'react-aria-components';\n\ninterface PreloadOnIntentProps {\n preload: () => void;\n children: ReactNode;\n}\n\n/**\n * Starts loading an overlay when a React Aria Button inside it is hovered or\n * focused, so the code has usually arrived by the time the trigger is pressed.\n * A trigger that is not a React Aria Button still loads on press. Inside a\n * component that already provides Button props (a Dialog with `slot=\"close\"`\n * buttons, a Select) nothing is added, so those props keep working.\n */\nexport function PreloadOnIntent({ preload, children }: PreloadOnIntentProps) {\n const inherited = useContext(ButtonContext);\n if (inherited && Object.keys(inherited).length > 0) return children;\n return (\n <ButtonContext.Provider value={{ onHoverStart: preload, onFocus: preload }}>\n {children}\n </ButtonContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAeA,SAAgB,gBAAgB,EAAE,SAAS,YAAkC;CAC3E,MAAM,YAAY,WAAW,aAAa;CAC1C,IAAI,aAAa,OAAO,KAAK,SAAS,CAAC,CAAC,SAAS,GAAG,OAAO;CAC3D,OACE,oBAAC,cAAc,UAAf;EAAwB,OAAO;GAAE,cAAc;GAAS,SAAS;EAAQ;EACtE;CACqB,CAAA;AAE5B"}