@eylulg/ui 0.0.0-stage → 1.1.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 (367) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +328 -2
  3. package/dist/chrome/Anchor.d.ts +3 -0
  4. package/dist/chrome/Anchor.js +14 -0
  5. package/dist/chrome/Anchor.js.map +1 -0
  6. package/dist/chrome/AppShell.d.ts +28 -0
  7. package/dist/chrome/AppShell.js +57 -0
  8. package/dist/chrome/AppShell.js.map +1 -0
  9. package/dist/chrome/BrandLogo.d.ts +13 -0
  10. package/dist/chrome/BrandLogo.js +33 -0
  11. package/dist/chrome/BrandLogo.js.map +1 -0
  12. package/dist/chrome/BrandMark.d.ts +12 -0
  13. package/dist/chrome/BrandMark.js +40 -0
  14. package/dist/chrome/BrandMark.js.map +1 -0
  15. package/dist/chrome/LinkRouter.d.ts +19 -0
  16. package/dist/chrome/LinkRouter.js +28 -0
  17. package/dist/chrome/LinkRouter.js.map +1 -0
  18. package/dist/chrome/MobileMenu.d.ts +19 -0
  19. package/dist/chrome/MobileMenu.js +52 -0
  20. package/dist/chrome/MobileMenu.js.map +1 -0
  21. package/dist/chrome/ProjectSwitcher.d.ts +30 -0
  22. package/dist/chrome/ProjectSwitcher.js +64 -0
  23. package/dist/chrome/ProjectSwitcher.js.map +1 -0
  24. package/dist/chrome/ProjectSwitcherMenu.d.ts +13 -0
  25. package/dist/chrome/ProjectSwitcherMenu.js +50 -0
  26. package/dist/chrome/ProjectSwitcherMenu.js.map +1 -0
  27. package/dist/chrome/SidebarNav.d.ts +34 -0
  28. package/dist/chrome/SidebarNav.js +106 -0
  29. package/dist/chrome/SidebarNav.js.map +1 -0
  30. package/dist/chrome/SiteFooter.d.ts +37 -0
  31. package/dist/chrome/SiteFooter.js +105 -0
  32. package/dist/chrome/SiteFooter.js.map +1 -0
  33. package/dist/chrome/TextSizeToggle.d.ts +11 -0
  34. package/dist/chrome/TextSizeToggle.js +38 -0
  35. package/dist/chrome/TextSizeToggle.js.map +1 -0
  36. package/dist/chrome/ThemeToggle.d.ts +26 -0
  37. package/dist/chrome/ThemeToggle.js +100 -0
  38. package/dist/chrome/ThemeToggle.js.map +1 -0
  39. package/dist/chrome/ThemeToggleMenu.d.ts +16 -0
  40. package/dist/chrome/ThemeToggleMenu.js +42 -0
  41. package/dist/chrome/ThemeToggleMenu.js.map +1 -0
  42. package/dist/chrome/TopNav.d.ts +42 -0
  43. package/dist/chrome/TopNav.js +117 -0
  44. package/dist/chrome/TopNav.js.map +1 -0
  45. package/dist/chrome/brandLogoPath.d.ts +2 -0
  46. package/dist/chrome/brandLogoPath.js +7 -0
  47. package/dist/chrome/brandLogoPath.js.map +1 -0
  48. package/dist/chrome/index.d.ts +28 -0
  49. package/dist/chrome/index.js +15 -0
  50. package/dist/chrome/projects.d.ts +28 -0
  51. package/dist/chrome/projects.js +105 -0
  52. package/dist/chrome/projects.js.map +1 -0
  53. package/dist/chrome/themeChoices.d.ts +6 -0
  54. package/dist/chrome/themeChoices.js +18 -0
  55. package/dist/chrome/themeChoices.js.map +1 -0
  56. package/dist/chrome/themeScript.d.ts +16 -0
  57. package/dist/chrome/themeScript.js +20 -0
  58. package/dist/chrome/themeScript.js.map +1 -0
  59. package/dist/chrome/types.d.ts +17 -0
  60. package/dist/chrome/useTextSize.d.ts +16 -0
  61. package/dist/chrome/useTextSize.js +64 -0
  62. package/dist/chrome/useTextSize.js.map +1 -0
  63. package/dist/chrome/useTheme.d.ts +19 -0
  64. package/dist/chrome/useTheme.js +86 -0
  65. package/dist/chrome/useTheme.js.map +1 -0
  66. package/dist/components/Avatar/Avatar.d.ts +39 -0
  67. package/dist/components/Avatar/Avatar.js +122 -0
  68. package/dist/components/Avatar/Avatar.js.map +1 -0
  69. package/dist/components/Avatar/index.d.ts +2 -0
  70. package/dist/components/Avatar/index.js +2 -0
  71. package/dist/components/Badge/Badge.d.ts +19 -0
  72. package/dist/components/Badge/Badge.js +77 -0
  73. package/dist/components/Badge/Badge.js.map +1 -0
  74. package/dist/components/Badge/index.d.ts +2 -0
  75. package/dist/components/Badge/index.js +2 -0
  76. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
  77. package/dist/components/Breadcrumbs/Breadcrumbs.js +40 -0
  78. package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -0
  79. package/dist/components/Breadcrumbs/index.d.ts +2 -0
  80. package/dist/components/Breadcrumbs/index.js +2 -0
  81. package/dist/components/Button/Button.d.ts +39 -0
  82. package/dist/components/Button/Button.js +73 -0
  83. package/dist/components/Button/Button.js.map +1 -0
  84. package/dist/components/Button/buttonStyles.d.ts +21 -0
  85. package/dist/components/Button/buttonStyles.js +32 -0
  86. package/dist/components/Button/buttonStyles.js.map +1 -0
  87. package/dist/components/Button/index.d.ts +2 -0
  88. package/dist/components/Button/index.js +4 -0
  89. package/dist/components/Card/Card.d.ts +47 -0
  90. package/dist/components/Card/Card.js +119 -0
  91. package/dist/components/Card/Card.js.map +1 -0
  92. package/dist/components/Card/index.d.ts +2 -0
  93. package/dist/components/Card/index.js +2 -0
  94. package/dist/components/Chart/BarChart.d.ts +24 -0
  95. package/dist/components/Chart/BarChart.js +327 -0
  96. package/dist/components/Chart/BarChart.js.map +1 -0
  97. package/dist/components/Chart/ChartFrame.d.ts +27 -0
  98. package/dist/components/Chart/ChartFrame.js +80 -0
  99. package/dist/components/Chart/ChartFrame.js.map +1 -0
  100. package/dist/components/Chart/ChartLegend.d.ts +28 -0
  101. package/dist/components/Chart/ChartLegend.js +53 -0
  102. package/dist/components/Chart/ChartLegend.js.map +1 -0
  103. package/dist/components/Chart/ChartTable.d.ts +11 -0
  104. package/dist/components/Chart/ChartTable.js +48 -0
  105. package/dist/components/Chart/ChartTable.js.map +1 -0
  106. package/dist/components/Chart/ChartTooltip.d.ts +33 -0
  107. package/dist/components/Chart/ChartTooltip.js +56 -0
  108. package/dist/components/Chart/ChartTooltip.js.map +1 -0
  109. package/dist/components/Chart/HeatGrid.d.ts +50 -0
  110. package/dist/components/Chart/HeatGrid.js +256 -0
  111. package/dist/components/Chart/HeatGrid.js.map +1 -0
  112. package/dist/components/Chart/LineChart.d.ts +23 -0
  113. package/dist/components/Chart/LineChart.js +248 -0
  114. package/dist/components/Chart/LineChart.js.map +1 -0
  115. package/dist/components/Chart/format.d.ts +24 -0
  116. package/dist/components/Chart/format.js +134 -0
  117. package/dist/components/Chart/format.js.map +1 -0
  118. package/dist/components/Chart/geometry.d.ts +11 -0
  119. package/dist/components/Chart/geometry.js +69 -0
  120. package/dist/components/Chart/geometry.js.map +1 -0
  121. package/dist/components/Chart/index.d.ts +9 -0
  122. package/dist/components/Chart/index.js +6 -0
  123. package/dist/components/Chart/interaction.d.ts +43 -0
  124. package/dist/components/Chart/interaction.js +106 -0
  125. package/dist/components/Chart/interaction.js.map +1 -0
  126. package/dist/components/Chart/labels.d.ts +3 -0
  127. package/dist/components/Chart/labels.js +23 -0
  128. package/dist/components/Chart/labels.js.map +1 -0
  129. package/dist/components/Chart/scale.d.ts +15 -0
  130. package/dist/components/Chart/scale.js +54 -0
  131. package/dist/components/Chart/scale.js.map +1 -0
  132. package/dist/components/Chart/series.d.ts +14 -0
  133. package/dist/components/Chart/series.js +72 -0
  134. package/dist/components/Chart/series.js.map +1 -0
  135. package/dist/components/Chart/summary.d.ts +8 -0
  136. package/dist/components/Chart/summary.js +56 -0
  137. package/dist/components/Chart/summary.js.map +1 -0
  138. package/dist/components/Chart/types.d.ts +50 -0
  139. package/dist/components/Chart/useElementWidth.d.ts +6 -0
  140. package/dist/components/Chart/useElementWidth.js +25 -0
  141. package/dist/components/Chart/useElementWidth.js.map +1 -0
  142. package/dist/components/Checkbox/Checkbox.d.ts +9 -0
  143. package/dist/components/Checkbox/Checkbox.js +36 -0
  144. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  145. package/dist/components/Checkbox/index.d.ts +2 -0
  146. package/dist/components/Checkbox/index.js +2 -0
  147. package/dist/components/CodeBlock/CodeBlock.d.ts +22 -0
  148. package/dist/components/CodeBlock/CodeBlock.js +56 -0
  149. package/dist/components/CodeBlock/CodeBlock.js.map +1 -0
  150. package/dist/components/CodeBlock/index.d.ts +2 -0
  151. package/dist/components/CodeBlock/index.js +2 -0
  152. package/dist/components/Combobox/Combobox.d.ts +34 -0
  153. package/dist/components/Combobox/Combobox.js +106 -0
  154. package/dist/components/Combobox/Combobox.js.map +1 -0
  155. package/dist/components/Combobox/index.d.ts +2 -0
  156. package/dist/components/Combobox/index.js +2 -0
  157. package/dist/components/CommandPalette/CommandPalette.d.ts +74 -0
  158. package/dist/components/CommandPalette/CommandPalette.js +51 -0
  159. package/dist/components/CommandPalette/CommandPalette.js.map +1 -0
  160. package/dist/components/CommandPalette/CommandPaletteOverlay.d.ts +11 -0
  161. package/dist/components/CommandPalette/CommandPaletteOverlay.js +180 -0
  162. package/dist/components/CommandPalette/CommandPaletteOverlay.js.map +1 -0
  163. package/dist/components/CommandPalette/index.d.ts +2 -0
  164. package/dist/components/CommandPalette/index.js +2 -0
  165. package/dist/components/DatePicker/DatePicker.d.ts +25 -0
  166. package/dist/components/DatePicker/DatePicker.js +142 -0
  167. package/dist/components/DatePicker/DatePicker.js.map +1 -0
  168. package/dist/components/DatePicker/index.d.ts +2 -0
  169. package/dist/components/DatePicker/index.js +2 -0
  170. package/dist/components/Dialog/Dialog.d.ts +37 -0
  171. package/dist/components/Dialog/Dialog.js +33 -0
  172. package/dist/components/Dialog/Dialog.js.map +1 -0
  173. package/dist/components/Dialog/DialogOverlay.d.ts +3 -0
  174. package/dist/components/Dialog/DialogOverlay.js +72 -0
  175. package/dist/components/Dialog/DialogOverlay.js.map +1 -0
  176. package/dist/components/Dialog/index.d.ts +2 -0
  177. package/dist/components/Dialog/index.js +2 -0
  178. package/dist/components/Drawer/Drawer.d.ts +36 -0
  179. package/dist/components/Drawer/Drawer.js +33 -0
  180. package/dist/components/Drawer/Drawer.js.map +1 -0
  181. package/dist/components/Drawer/DrawerOverlay.d.ts +3 -0
  182. package/dist/components/Drawer/DrawerOverlay.js +71 -0
  183. package/dist/components/Drawer/DrawerOverlay.js.map +1 -0
  184. package/dist/components/Drawer/index.d.ts +2 -0
  185. package/dist/components/Drawer/index.js +2 -0
  186. package/dist/components/DropdownMenu/DropdownMenu.d.ts +49 -0
  187. package/dist/components/DropdownMenu/DropdownMenu.js +52 -0
  188. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -0
  189. package/dist/components/DropdownMenu/DropdownMenuParts.d.ts +6 -0
  190. package/dist/components/DropdownMenu/DropdownMenuParts.js +76 -0
  191. package/dist/components/DropdownMenu/DropdownMenuParts.js.map +1 -0
  192. package/dist/components/DropdownMenu/index.d.ts +2 -0
  193. package/dist/components/DropdownMenu/index.js +2 -0
  194. package/dist/components/EmptyState/EmptyState.d.ts +19 -0
  195. package/dist/components/EmptyState/EmptyState.js +51 -0
  196. package/dist/components/EmptyState/EmptyState.js.map +1 -0
  197. package/dist/components/EmptyState/index.d.ts +2 -0
  198. package/dist/components/EmptyState/index.js +2 -0
  199. package/dist/components/FileDropZone/FileDropZone.d.ts +41 -0
  200. package/dist/components/FileDropZone/FileDropZone.js +94 -0
  201. package/dist/components/FileDropZone/FileDropZone.js.map +1 -0
  202. package/dist/components/FileDropZone/index.d.ts +2 -0
  203. package/dist/components/FileDropZone/index.js +2 -0
  204. package/dist/components/IconButton/IconButton.d.ts +17 -0
  205. package/dist/components/IconButton/IconButton.js +37 -0
  206. package/dist/components/IconButton/IconButton.js.map +1 -0
  207. package/dist/components/IconButton/index.d.ts +2 -0
  208. package/dist/components/IconButton/index.js +2 -0
  209. package/dist/components/Input/Input.d.ts +21 -0
  210. package/dist/components/Input/Input.js +43 -0
  211. package/dist/components/Input/Input.js.map +1 -0
  212. package/dist/components/Input/index.d.ts +2 -0
  213. package/dist/components/Input/index.js +2 -0
  214. package/dist/components/Kbd/Kbd.d.ts +16 -0
  215. package/dist/components/Kbd/Kbd.js +35 -0
  216. package/dist/components/Kbd/Kbd.js.map +1 -0
  217. package/dist/components/Kbd/index.d.ts +2 -0
  218. package/dist/components/Kbd/index.js +2 -0
  219. package/dist/components/PageHeader/PageHeader.d.ts +18 -0
  220. package/dist/components/PageHeader/PageHeader.js +45 -0
  221. package/dist/components/PageHeader/PageHeader.js.map +1 -0
  222. package/dist/components/PageHeader/index.d.ts +2 -0
  223. package/dist/components/PageHeader/index.js +2 -0
  224. package/dist/components/Pagination/Pagination.d.ts +32 -0
  225. package/dist/components/Pagination/Pagination.js +124 -0
  226. package/dist/components/Pagination/Pagination.js.map +1 -0
  227. package/dist/components/Pagination/index.d.ts +2 -0
  228. package/dist/components/Pagination/index.js +2 -0
  229. package/dist/components/Popover/Popover.d.ts +27 -0
  230. package/dist/components/Popover/Popover.js +33 -0
  231. package/dist/components/Popover/Popover.js.map +1 -0
  232. package/dist/components/Popover/PopoverOverlay.d.ts +3 -0
  233. package/dist/components/Popover/PopoverOverlay.js +39 -0
  234. package/dist/components/Popover/PopoverOverlay.js.map +1 -0
  235. package/dist/components/Popover/index.d.ts +2 -0
  236. package/dist/components/Popover/index.js +2 -0
  237. package/dist/components/ProgressBar/ProgressBar.d.ts +19 -0
  238. package/dist/components/ProgressBar/ProgressBar.js +52 -0
  239. package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
  240. package/dist/components/ProgressBar/index.d.ts +2 -0
  241. package/dist/components/ProgressBar/index.js +2 -0
  242. package/dist/components/RadioGroup/RadioGroup.d.ts +14 -0
  243. package/dist/components/RadioGroup/RadioGroup.js +46 -0
  244. package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
  245. package/dist/components/RadioGroup/index.d.ts +2 -0
  246. package/dist/components/RadioGroup/index.js +2 -0
  247. package/dist/components/SegmentedControl/SegmentedControl.d.ts +32 -0
  248. package/dist/components/SegmentedControl/SegmentedControl.js +55 -0
  249. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -0
  250. package/dist/components/SegmentedControl/index.d.ts +2 -0
  251. package/dist/components/SegmentedControl/index.js +2 -0
  252. package/dist/components/Select/Select.d.ts +28 -0
  253. package/dist/components/Select/Select.js +64 -0
  254. package/dist/components/Select/Select.js.map +1 -0
  255. package/dist/components/Select/index.d.ts +2 -0
  256. package/dist/components/Select/index.js +2 -0
  257. package/dist/components/Skeleton/Skeleton.d.ts +13 -0
  258. package/dist/components/Skeleton/Skeleton.js +33 -0
  259. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  260. package/dist/components/Skeleton/index.d.ts +2 -0
  261. package/dist/components/Skeleton/index.js +2 -0
  262. package/dist/components/Spinner/Spinner.d.ts +12 -0
  263. package/dist/components/Spinner/Spinner.js +29 -0
  264. package/dist/components/Spinner/Spinner.js.map +1 -0
  265. package/dist/components/Spinner/index.d.ts +2 -0
  266. package/dist/components/Spinner/index.js +2 -0
  267. package/dist/components/Stat/Stat.d.ts +49 -0
  268. package/dist/components/Stat/Stat.js +125 -0
  269. package/dist/components/Stat/Stat.js.map +1 -0
  270. package/dist/components/Stat/index.d.ts +2 -0
  271. package/dist/components/Stat/index.js +2 -0
  272. package/dist/components/Switch/Switch.d.ts +11 -0
  273. package/dist/components/Switch/Switch.js +39 -0
  274. package/dist/components/Switch/Switch.js.map +1 -0
  275. package/dist/components/Switch/index.d.ts +2 -0
  276. package/dist/components/Switch/index.js +2 -0
  277. package/dist/components/Table/Table.d.ts +41 -0
  278. package/dist/components/Table/Table.js +121 -0
  279. package/dist/components/Table/Table.js.map +1 -0
  280. package/dist/components/Table/index.d.ts +2 -0
  281. package/dist/components/Table/index.js +2 -0
  282. package/dist/components/Tabs/Tabs.d.ts +10 -0
  283. package/dist/components/Tabs/Tabs.js +58 -0
  284. package/dist/components/Tabs/Tabs.js.map +1 -0
  285. package/dist/components/Tabs/index.d.ts +2 -0
  286. package/dist/components/Tabs/index.js +2 -0
  287. package/dist/components/Tag/Tag.d.ts +16 -0
  288. package/dist/components/Tag/Tag.js +48 -0
  289. package/dist/components/Tag/Tag.js.map +1 -0
  290. package/dist/components/Tag/index.d.ts +2 -0
  291. package/dist/components/Tag/index.js +2 -0
  292. package/dist/components/Textarea/Textarea.d.ts +28 -0
  293. package/dist/components/Textarea/Textarea.js +30 -0
  294. package/dist/components/Textarea/Textarea.js.map +1 -0
  295. package/dist/components/Textarea/index.d.ts +2 -0
  296. package/dist/components/Textarea/index.js +2 -0
  297. package/dist/components/Toast/Toast.d.ts +52 -0
  298. package/dist/components/Toast/Toast.js +77 -0
  299. package/dist/components/Toast/Toast.js.map +1 -0
  300. package/dist/components/Toast/ToastItem.d.ts +6 -0
  301. package/dist/components/Toast/ToastItem.js +127 -0
  302. package/dist/components/Toast/ToastItem.js.map +1 -0
  303. package/dist/components/Toast/index.d.ts +2 -0
  304. package/dist/components/Toast/index.js +2 -0
  305. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  306. package/dist/components/Tooltip/Tooltip.js +38 -0
  307. package/dist/components/Tooltip/Tooltip.js.map +1 -0
  308. package/dist/components/Tooltip/TooltipOverlay.d.ts +5 -0
  309. package/dist/components/Tooltip/TooltipOverlay.js +27 -0
  310. package/dist/components/Tooltip/TooltipOverlay.js.map +1 -0
  311. package/dist/components/Tooltip/index.d.ts +2 -0
  312. package/dist/components/Tooltip/index.js +2 -0
  313. package/dist/fonts.css +21 -0
  314. package/dist/index.d.ts +38 -0
  315. package/dist/index.js +43 -0
  316. package/dist/internal/Field.d.ts +13 -0
  317. package/dist/internal/Field.js +29 -0
  318. package/dist/internal/Field.js.map +1 -0
  319. package/dist/internal/LazyDialogTrigger.d.ts +8 -0
  320. package/dist/internal/LazyDialogTrigger.js +15 -0
  321. package/dist/internal/LazyDialogTrigger.js.map +1 -0
  322. package/dist/internal/PreloadOnIntent.d.ts +15 -0
  323. package/dist/internal/PreloadOnIntent.js +26 -0
  324. package/dist/internal/PreloadOnIntent.js.map +1 -0
  325. package/dist/internal/Spinner.d.ts +3 -0
  326. package/dist/internal/Spinner.js +14 -0
  327. package/dist/internal/Spinner.js.map +1 -0
  328. package/dist/internal/focusRing.d.ts +2 -0
  329. package/dist/internal/focusRing.js +7 -0
  330. package/dist/internal/focusRing.js.map +1 -0
  331. package/dist/internal/lazyModule.d.ts +15 -0
  332. package/dist/internal/lazyModule.js +54 -0
  333. package/dist/internal/lazyModule.js.map +1 -0
  334. package/dist/internal/surfaces.d.ts +8 -0
  335. package/dist/internal/surfaces.js +13 -0
  336. package/dist/internal/surfaces.js.map +1 -0
  337. package/dist/internal/types.d.ts +5 -0
  338. package/dist/internal/useLazyMenuTrigger.d.ts +23 -0
  339. package/dist/internal/useLazyMenuTrigger.js +47 -0
  340. package/dist/internal/useLazyMenuTrigger.js.map +1 -0
  341. package/dist/reset.css +52 -0
  342. package/dist/styles/themes/scales.d.ts +2 -0
  343. package/dist/styles/themes/scales.js +132 -0
  344. package/dist/styles/themes/scales.js.map +1 -0
  345. package/dist/styles/themes/variants.d.ts +41 -0
  346. package/dist/styles/themes/variants.js +180 -0
  347. package/dist/styles/themes/variants.js.map +1 -0
  348. package/dist/styles.css +2 -0
  349. package/dist/theme.css +557 -0
  350. package/dist/themes/all.css +158 -0
  351. package/dist/themes/assistant.css +25 -0
  352. package/dist/themes/control-room.css +25 -0
  353. package/dist/themes/plain-language.css +25 -0
  354. package/dist/themes/portfolio.css +25 -0
  355. package/dist/themes/review.css +25 -0
  356. package/dist/themes/sudoku.css +25 -0
  357. package/dist/themes/tokens.css +25 -0
  358. package/dist/themes/watchlist.css +25 -0
  359. package/dist/themes/workspace.css +25 -0
  360. package/dist/tokens.css +351 -0
  361. package/dist/utils/cx.d.ts +23 -0
  362. package/dist/utils/cx.js +25 -0
  363. package/dist/utils/cx.js.map +1 -0
  364. package/dist/utils/cxLite.d.ts +12 -0
  365. package/dist/utils/cxLite.js +23 -0
  366. package/dist/utils/cxLite.js.map +1 -0
  367. package/package.json +304 -4
@@ -0,0 +1,105 @@
1
+ // src/chrome/projects.ts
2
+ /**
3
+ * Eylül Güneş's projects, as listed by ProjectSwitcher and SiteFooter.
4
+ * Vercel style URLs are placeholders until each app is deployed; they change
5
+ * again when the custom domain arrives. Pass your own list to either
6
+ * component to override it.
7
+ */
8
+ var projects = [
9
+ {
10
+ id: "portfolio",
11
+ name: "Portfolio",
12
+ description: "Case studies, experience and how I work",
13
+ url: "https://eylulg.github.io/",
14
+ variant: "portfolio",
15
+ repoUrl: "https://github.com/eylulg/eylulg.github.io"
16
+ },
17
+ {
18
+ id: "ui",
19
+ name: "Component Library",
20
+ description: "The @eylulg/ui Storybook every project is built with",
21
+ url: "https://eylulg.github.io/ui/",
22
+ variant: null,
23
+ repoUrl: "https://github.com/eylulg/ui"
24
+ },
25
+ {
26
+ id: "workspace",
27
+ name: "Workspace",
28
+ description: "A keyboard first issue tracker",
29
+ url: null,
30
+ plannedUrl: "https://workspace-eylulg.vercel.app",
31
+ variant: "workspace",
32
+ repoUrl: "https://github.com/eylulg/workspace"
33
+ },
34
+ {
35
+ id: "agent-control-room",
36
+ name: "Agent Workflows",
37
+ description: "Build agent workflows as graphs and watch them run",
38
+ url: "https://eylulg.github.io/agent-control-room/",
39
+ variant: "control-room",
40
+ repoUrl: "https://github.com/eylulg/agent-control-room"
41
+ },
42
+ {
43
+ id: "assistant-studio",
44
+ name: "Assistant Studio",
45
+ description: "Research assistant with cited answers, tool use and evals",
46
+ url: null,
47
+ plannedUrl: "https://assistant-studio-eylulg.vercel.app",
48
+ variant: "assistant",
49
+ repoUrl: "https://github.com/eylulg/assistant-studio"
50
+ },
51
+ {
52
+ id: "review-companion",
53
+ name: "Review Companion",
54
+ description: "Pull request review with findings you can triage",
55
+ url: null,
56
+ plannedUrl: "https://review-companion-eylulg.vercel.app",
57
+ variant: "review",
58
+ repoUrl: "https://github.com/eylulg/review-companion"
59
+ },
60
+ {
61
+ id: "watchlist",
62
+ name: "Watchlist",
63
+ description: "Films and series to watch, with notes",
64
+ url: null,
65
+ plannedUrl: "https://watchlist-eylulg.vercel.app",
66
+ variant: "watchlist",
67
+ repoUrl: "https://github.com/eylulg/watchlist"
68
+ },
69
+ {
70
+ id: "tokens-to-tailwind",
71
+ name: "Tokens to Tailwind",
72
+ description: "Turn design tokens into a Tailwind theme",
73
+ url: "https://eylulg.github.io/tokens-to-tailwind/",
74
+ variant: "tokens",
75
+ repoUrl: "https://github.com/eylulg/tokens-to-tailwind"
76
+ },
77
+ {
78
+ id: "plain-language",
79
+ name: "Plain Language Add-in",
80
+ description: "A Word add-in that suggests plainer wording",
81
+ url: null,
82
+ variant: "plain-language",
83
+ repoUrl: "https://github.com/eylulg/plain-language-word-addin"
84
+ },
85
+ {
86
+ id: "sudoku",
87
+ name: "Sudoku",
88
+ description: "A sudoku game with a unique-solution generator, hints and a keyboard grid",
89
+ url: "https://eylulg.github.io/sudoku/",
90
+ variant: "sudoku",
91
+ repoUrl: "https://github.com/eylulg/sudoku"
92
+ }
93
+ ];
94
+ var profileLinks = {
95
+ github: "https://github.com/eylulg",
96
+ linkedin: "https://www.linkedin.com/in/eylul-gunes",
97
+ storybook: "https://eylulg.github.io/ui/"
98
+ };
99
+ /** The live URL when there is one, otherwise the repository. */
100
+ function projectHref(project) {
101
+ return project.url ?? project.repoUrl;
102
+ }
103
+ export { profileLinks, projectHref, projects };
104
+
105
+ //# sourceMappingURL=projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.js","names":[],"sources":["../../src/chrome/projects.ts"],"sourcesContent":["import 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 /** Where the project will live once deployed. Shown nowhere until it is live. */\n plannedUrl?: string;\n /** Theme variant the project uses, or null for the library's own Storybook. */\n variant: VariantName | null;\n repoUrl: string;\n}\n\n/**\n * Eylül Güneş's projects, as listed by ProjectSwitcher and SiteFooter.\n * Vercel style URLs are placeholders until each app is deployed; they change\n * again when the custom domain arrives. Pass your own list to either\n * component to override it.\n */\nexport const projects: Project[] = [\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 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: null,\n plannedUrl: 'https://workspace-eylulg.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: null,\n plannedUrl: 'https://assistant-studio-eylulg.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: null,\n plannedUrl: 'https://review-companion-eylulg.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: null,\n plannedUrl: 'https://watchlist-eylulg.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: null,\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\nexport const profileLinks = {\n github: 'https://github.com/eylulg',\n linkedin: 'https://www.linkedin.com/in/eylul-gunes',\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"],"mappings":";;;;;;;AAsBA,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,YAAY;EACZ,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,YAAY;EACZ,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,YAAY;EACZ,SAAS;EACT,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,KAAK;EACL,YAAY;EACZ,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,WAAW;AACb;;AAGA,SAAgB,YAAY,SAAmD;CAC7E,OAAO,QAAQ,OAAO,QAAQ;AAChC"}
@@ -0,0 +1,6 @@
1
+ import type { IconComponent } from '../internal/types';
2
+ import type { ThemePreference } from './useTheme';
3
+ export declare const icons: Record<ThemePreference, IconComponent>;
4
+ export declare const choices: ThemePreference[];
5
+ /** The outline of the compact trigger, the same as the TextSizeToggle button beside it. */
6
+ export declare const compactFrame = "border border-default bg-primary";
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { Monitor, Moon, Sun } from "lucide-react";
3
+ // src/chrome/themeChoices.ts
4
+ var icons = {
5
+ light: Sun,
6
+ dark: Moon,
7
+ system: Monitor
8
+ };
9
+ var choices = [
10
+ "light",
11
+ "dark",
12
+ "system"
13
+ ];
14
+ /** The outline of the compact trigger, the same as the TextSizeToggle button beside it. */
15
+ var compactFrame = "border border-default bg-primary";
16
+ export { choices, compactFrame, icons };
17
+
18
+ //# sourceMappingURL=themeChoices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themeChoices.js","names":[],"sources":["../../src/chrome/themeChoices.ts"],"sourcesContent":["import { Monitor, Moon, Sun } from 'lucide-react';\nimport type { IconComponent } from '../internal/types';\nimport type { ThemePreference } from './useTheme';\n\nexport const icons: Record<ThemePreference, IconComponent> = {\n light: Sun,\n dark: Moon,\n system: Monitor,\n};\nexport const choices: ThemePreference[] = ['light', 'dark', 'system'];\n\n/** The outline of the compact trigger, the same as the TextSizeToggle button beside it. */\nexport const compactFrame = 'border border-default bg-primary';\n"],"mappings":";;;AAIA,IAAa,QAAgD;CAC3D,OAAO;CACP,MAAM;CACN,QAAQ;AACV;AACA,IAAa,UAA6B;CAAC;CAAS;CAAQ;AAAQ;;AAGpE,IAAa,eAAe"}
@@ -0,0 +1,16 @@
1
+ /** localStorage key that ThemeToggle and themeInitScript share. */
2
+ export declare const themeStorageKey = "eylulg-ui-theme";
3
+ /** localStorage key that TextSizeToggle and themeInitScript share. */
4
+ export declare const textSizeStorageKey = "eylulg-ui-text-size";
5
+ /** Class ThemeToggle writes on <html> for dark mode. theme.css also accepts `dark`. */
6
+ export declare const darkModeClass = "dark-mode";
7
+ /**
8
+ * Put this in a <script> in <head>, before any stylesheet paints, so the
9
+ * stored or system theme, and a stored text size, apply before first paint and
10
+ * there is no flash:
11
+ *
12
+ * <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
13
+ *
14
+ * It is a plain string, safe to import from a React Server Component.
15
+ */
16
+ export declare const themeInitScript = "(function(){try{var p=localStorage.getItem('eylulg-ui-theme');var d=p==='dark'||(p!=='light'&&window.matchMedia('(prefers-color-scheme: dark)').matches);var r=document.documentElement;r.classList.toggle('dark-mode',d);r.style.colorScheme=d?'dark':'light';var t=localStorage.getItem('eylulg-ui-text-size');if(t==='compact'||t==='default')r.setAttribute('data-ui-text',t);}catch(e){}})();";
@@ -0,0 +1,20 @@
1
+ // src/chrome/themeScript.ts
2
+ /** localStorage key that ThemeToggle and themeInitScript share. */
3
+ var themeStorageKey = "eylulg-ui-theme";
4
+ /** localStorage key that TextSizeToggle and themeInitScript share. */
5
+ var textSizeStorageKey = "eylulg-ui-text-size";
6
+ /** Class ThemeToggle writes on <html> for dark mode. theme.css also accepts `dark`. */
7
+ var darkModeClass = "dark-mode";
8
+ /**
9
+ * Put this in a <script> in <head>, before any stylesheet paints, so the
10
+ * stored or system theme, and a stored text size, apply before first paint and
11
+ * there is no flash:
12
+ *
13
+ * <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
14
+ *
15
+ * It is a plain string, safe to import from a React Server Component.
16
+ */
17
+ var themeInitScript = `(function(){try{var p=localStorage.getItem('${themeStorageKey}');var d=p==='dark'||(p!=='light'&&window.matchMedia('(prefers-color-scheme: dark)').matches);var r=document.documentElement;r.classList.toggle('${darkModeClass}',d);r.style.colorScheme=d?'dark':'light';var t=localStorage.getItem('${textSizeStorageKey}');if(t==='compact'||t==='default')r.setAttribute('data-ui-text',t);}catch(e){}})();`;
18
+ export { darkModeClass, textSizeStorageKey, themeInitScript, themeStorageKey };
19
+
20
+ //# sourceMappingURL=themeScript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themeScript.js","names":[],"sources":["../../src/chrome/themeScript.ts"],"sourcesContent":["/** localStorage key that ThemeToggle and themeInitScript share. */\nexport const themeStorageKey = 'eylulg-ui-theme';\n\n/** localStorage key that TextSizeToggle and themeInitScript share. */\nexport const textSizeStorageKey = 'eylulg-ui-text-size';\n\n/** Class ThemeToggle writes on <html> for dark mode. theme.css also accepts `dark`. */\nexport const darkModeClass = 'dark-mode';\n\n/**\n * Put this in a <script> in <head>, before any stylesheet paints, so the\n * stored or system theme, and a stored text size, apply before first paint and\n * there is no flash:\n *\n * <script dangerouslySetInnerHTML={{ __html: themeInitScript }} />\n *\n * It is a plain string, safe to import from a React Server Component.\n */\nexport const themeInitScript = `(function(){try{var p=localStorage.getItem('${themeStorageKey}');var d=p==='dark'||(p!=='light'&&window.matchMedia('(prefers-color-scheme: dark)').matches);var r=document.documentElement;r.classList.toggle('${darkModeClass}',d);r.style.colorScheme=d?'dark':'light';var t=localStorage.getItem('${textSizeStorageKey}');if(t==='compact'||t==='default')r.setAttribute('data-ui-text',t);}catch(e){}})();`;\n"],"mappings":";;AACA,IAAa,kBAAkB;;AAG/B,IAAa,qBAAqB;;AAGlC,IAAa,gBAAgB;;;;;;;;;;AAW7B,IAAa,kBAAkB,+CAA+C,gBAAgB,mJAAmJ,cAAc,wEAAwE,mBAAmB"}
@@ -0,0 +1,17 @@
1
+ import type { AnchorHTMLAttributes, ComponentType, ReactNode } from 'react';
2
+ /**
3
+ * A link component such as Next.js `Link` or React Router's `Link`. It
4
+ * receives `href`, `className`, `aria-current`, `onClick` and `children`.
5
+ * Defaults to a plain `<a>`.
6
+ */
7
+ export type LinkProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'className' | 'aria-current' | 'onClick'> & {
8
+ href: string;
9
+ children?: ReactNode;
10
+ };
11
+ export type LinkComponent = ComponentType<LinkProps>;
12
+ export interface NavLink {
13
+ href: string;
14
+ label: string;
15
+ /** Marks the link as the current page (aria-current="page"). */
16
+ isCurrent?: boolean;
17
+ }
@@ -0,0 +1,16 @@
1
+ type TextSize = 'compact' | 'default';
2
+ export interface UseTextSize {
3
+ /** The size in use: the visitor's choice, or default. */
4
+ size: TextSize;
5
+ /** Applies and remembers a choice. Every TextSizeToggle and useTextSize in the page updates. */
6
+ setSize: (size: TextSize) => void;
7
+ }
8
+ /**
9
+ * The page's text size: compact or default. Until the visitor chooses, it is
10
+ * default, in every theme. A choice writes `data-ui-text` on <html>, which
11
+ * theme.css turns into the compact type scale, and is remembered in
12
+ * localStorage. Pair it with themeInitScript in <head> so the first paint
13
+ * already has the stored size.
14
+ */
15
+ export declare function useTextSize(): UseTextSize;
16
+ export {};
@@ -0,0 +1,64 @@
1
+ "use client";
2
+ import { textSizeStorageKey } from "./themeScript.js";
3
+ import { useEffect, useSyncExternalStore } from "react";
4
+ // src/chrome/useTextSize.ts
5
+ var listeners = /* @__PURE__ */ new Set();
6
+ /** Holds the choice for this page when storage is blocked (private mode, sandboxed iframes). */
7
+ var unsaved = null;
8
+ function isTextSize(value) {
9
+ return value === "compact" || value === "default";
10
+ }
11
+ function readStored() {
12
+ if (unsaved) return unsaved;
13
+ try {
14
+ const stored = window.localStorage.getItem(textSizeStorageKey);
15
+ return isTextSize(stored) ? stored : null;
16
+ } catch {
17
+ return null;
18
+ }
19
+ }
20
+ function readSize() {
21
+ return readStored() ?? "default";
22
+ }
23
+ function serverSize() {
24
+ return "default";
25
+ }
26
+ function subscribe(listener) {
27
+ listeners.add(listener);
28
+ window.addEventListener("storage", listener);
29
+ return () => {
30
+ listeners.delete(listener);
31
+ window.removeEventListener("storage", listener);
32
+ };
33
+ }
34
+ function writeSize(size) {
35
+ try {
36
+ window.localStorage.setItem(textSizeStorageKey, size);
37
+ unsaved = null;
38
+ } catch {
39
+ unsaved = size;
40
+ }
41
+ document.documentElement.setAttribute("data-ui-text", size);
42
+ for (const listener of listeners) listener();
43
+ }
44
+ /**
45
+ * The page's text size: compact or default. Until the visitor chooses, it is
46
+ * default, in every theme. A choice writes `data-ui-text` on <html>, which
47
+ * theme.css turns into the compact type scale, and is remembered in
48
+ * localStorage. Pair it with themeInitScript in <head> so the first paint
49
+ * already has the stored size.
50
+ */
51
+ function useTextSize() {
52
+ const size = useSyncExternalStore(subscribe, readSize, serverSize);
53
+ useEffect(() => {
54
+ const stored = readStored();
55
+ if (stored) document.documentElement.setAttribute("data-ui-text", stored);
56
+ }, [size]);
57
+ return {
58
+ size,
59
+ setSize: writeSize
60
+ };
61
+ }
62
+ export { useTextSize };
63
+
64
+ //# sourceMappingURL=useTextSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTextSize.js","names":[],"sources":["../../src/chrome/useTextSize.ts"],"sourcesContent":["import { useEffect, useSyncExternalStore } from 'react';\nimport { textSizeStorageKey } from './themeScript';\n\ntype TextSize = 'compact' | 'default';\n\nexport interface UseTextSize {\n /** The size in use: the visitor's choice, or default. */\n size: TextSize;\n /** Applies and remembers a choice. Every TextSizeToggle and useTextSize in the page updates. */\n setSize: (size: TextSize) => void;\n}\n\nconst listeners = new Set<() => void>();\n/** Holds the choice for this page when storage is blocked (private mode, sandboxed iframes). */\nlet unsaved: TextSize | null = null;\n\nfunction isTextSize(value: unknown): value is TextSize {\n return value === 'compact' || value === 'default';\n}\n\nfunction readStored(): TextSize | null {\n if (unsaved) return unsaved;\n try {\n const stored = window.localStorage.getItem(textSizeStorageKey);\n return isTextSize(stored) ? stored : null;\n } catch {\n return null;\n }\n}\n\nfunction readSize(): TextSize {\n return readStored() ?? 'default';\n}\n\nfunction serverSize(): TextSize {\n return 'default';\n}\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener);\n window.addEventListener('storage', listener);\n return () => {\n listeners.delete(listener);\n window.removeEventListener('storage', listener);\n };\n}\n\nfunction writeSize(size: TextSize) {\n try {\n window.localStorage.setItem(textSizeStorageKey, size);\n unsaved = null;\n } catch {\n unsaved = size;\n }\n document.documentElement.setAttribute('data-ui-text', size);\n for (const listener of listeners) listener();\n}\n\n/**\n * The page's text size: compact or default. Until the visitor chooses, it is\n * default, in every theme. A choice writes `data-ui-text` on <html>, which\n * theme.css turns into the compact type scale, and is remembered in\n * localStorage. Pair it with themeInitScript in <head> so the first paint\n * already has the stored size.\n */\nexport function useTextSize(): UseTextSize {\n const size = useSyncExternalStore(subscribe, readSize, serverSize);\n\n useEffect(() => {\n const stored = readStored();\n if (stored) document.documentElement.setAttribute('data-ui-text', stored);\n }, [size]);\n\n return { size, setSize: writeSize };\n}\n"],"mappings":";;;;AAYA,IAAM,4BAAY,IAAI,IAAgB;;AAEtC,IAAI,UAA2B;AAE/B,SAAS,WAAW,OAAmC;CACrD,OAAO,UAAU,aAAa,UAAU;AAC1C;AAEA,SAAS,aAA8B;CACrC,IAAI,SAAS,OAAO;CACpB,IAAI;EACF,MAAM,SAAS,OAAO,aAAa,QAAQ,kBAAkB;EAC7D,OAAO,WAAW,MAAM,IAAI,SAAS;CACvC,QAAQ;EACN,OAAO;CACT;AACF;AAEA,SAAS,WAAqB;CAC5B,OAAO,WAAW,KAAK;AACzB;AAEA,SAAS,aAAuB;CAC9B,OAAO;AACT;AAEA,SAAS,UAAU,UAAsB;CACvC,UAAU,IAAI,QAAQ;CACtB,OAAO,iBAAiB,WAAW,QAAQ;CAC3C,aAAa;EACX,UAAU,OAAO,QAAQ;EACzB,OAAO,oBAAoB,WAAW,QAAQ;CAChD;AACF;AAEA,SAAS,UAAU,MAAgB;CACjC,IAAI;EACF,OAAO,aAAa,QAAQ,oBAAoB,IAAI;EACpD,UAAU;CACZ,QAAQ;EACN,UAAU;CACZ;CACA,SAAS,gBAAgB,aAAa,gBAAgB,IAAI;CAC1D,KAAK,MAAM,YAAY,WAAW,SAAS;AAC7C;;;;;;;;AASA,SAAgB,cAA2B;CACzC,MAAM,OAAO,qBAAqB,WAAW,UAAU,UAAU;CAEjE,gBAAgB;EACd,MAAM,SAAS,WAAW;EAC1B,IAAI,QAAQ,SAAS,gBAAgB,aAAa,gBAAgB,MAAM;CAC1E,GAAG,CAAC,IAAI,CAAC;CAET,OAAO;EAAE;EAAM,SAAS;CAAU;AACpC"}
@@ -0,0 +1,19 @@
1
+ export type ThemePreference = 'light' | 'dark' | 'system';
2
+ export type ResolvedTheme = 'light' | 'dark';
3
+ export interface UseTheme {
4
+ /** What the user chose: light, dark or system. */
5
+ theme: ThemePreference;
6
+ /** What is applied right now. For system this is the operating system's setting. */
7
+ resolved: ResolvedTheme;
8
+ /** Applies and remembers a choice. Every ThemeToggle and useTheme in the page updates. */
9
+ setTheme: (theme: ThemePreference) => void;
10
+ }
11
+ /**
12
+ * The page's colour theme: the user's choice, what it resolves to, and a
13
+ * setter. Writes the `dark-mode` class on <html>, remembers the choice in
14
+ * localStorage and follows the operating system while the choice is system.
15
+ * ThemeToggle uses it, so a command palette or settings page can call
16
+ * `setTheme` without touching storage itself. Pair it with themeInitScript in
17
+ * <head> so the first paint already has the right theme.
18
+ */
19
+ export declare function useTheme(): UseTheme;
@@ -0,0 +1,86 @@
1
+ "use client";
2
+ import { darkModeClass, themeStorageKey } from "./themeScript.js";
3
+ import { useEffect, useSyncExternalStore } from "react";
4
+ // src/chrome/useTheme.ts
5
+ var darkQuery = "(prefers-color-scheme: dark)";
6
+ var listeners = /* @__PURE__ */ new Set();
7
+ /** Holds the choice for this page when storage is blocked (private mode, sandboxed iframes). */
8
+ var unsaved = null;
9
+ function isPreference(value) {
10
+ return value === "light" || value === "dark" || value === "system";
11
+ }
12
+ /** matchMedia is missing in some test environments and embedded webviews. */
13
+ function systemMedia() {
14
+ return typeof window !== "undefined" && typeof window.matchMedia === "function" ? window.matchMedia(darkQuery) : null;
15
+ }
16
+ function readPreference() {
17
+ if (unsaved) return unsaved;
18
+ try {
19
+ const stored = window.localStorage.getItem(themeStorageKey);
20
+ return isPreference(stored) ? stored : "system";
21
+ } catch {
22
+ return "system";
23
+ }
24
+ }
25
+ function resolve(preference) {
26
+ if (preference === "system") return systemMedia()?.matches ? "dark" : "light";
27
+ return preference;
28
+ }
29
+ function readResolved() {
30
+ return resolve(readPreference());
31
+ }
32
+ function serverPreference() {
33
+ return "system";
34
+ }
35
+ function serverResolved() {
36
+ return "light";
37
+ }
38
+ function subscribe(listener) {
39
+ listeners.add(listener);
40
+ window.addEventListener("storage", listener);
41
+ const media = systemMedia();
42
+ media?.addEventListener("change", listener);
43
+ return () => {
44
+ listeners.delete(listener);
45
+ window.removeEventListener("storage", listener);
46
+ media?.removeEventListener("change", listener);
47
+ };
48
+ }
49
+ function writePreference(preference) {
50
+ try {
51
+ if (preference === "system") window.localStorage.removeItem(themeStorageKey);
52
+ else window.localStorage.setItem(themeStorageKey, preference);
53
+ unsaved = null;
54
+ } catch {
55
+ unsaved = preference;
56
+ }
57
+ for (const listener of listeners) listener();
58
+ }
59
+ function applyTheme(resolved) {
60
+ const root = document.documentElement;
61
+ root.classList.toggle(darkModeClass, resolved === "dark");
62
+ root.style.colorScheme = resolved;
63
+ }
64
+ /**
65
+ * The page's colour theme: the user's choice, what it resolves to, and a
66
+ * setter. Writes the `dark-mode` class on <html>, remembers the choice in
67
+ * localStorage and follows the operating system while the choice is system.
68
+ * ThemeToggle uses it, so a command palette or settings page can call
69
+ * `setTheme` without touching storage itself. Pair it with themeInitScript in
70
+ * <head> so the first paint already has the right theme.
71
+ */
72
+ function useTheme() {
73
+ const theme = useSyncExternalStore(subscribe, readPreference, serverPreference);
74
+ const resolved = useSyncExternalStore(subscribe, readResolved, serverResolved);
75
+ useEffect(() => {
76
+ applyTheme(resolved);
77
+ }, [resolved]);
78
+ return {
79
+ theme,
80
+ resolved,
81
+ setTheme: writePreference
82
+ };
83
+ }
84
+ export { useTheme };
85
+
86
+ //# sourceMappingURL=useTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTheme.js","names":[],"sources":["../../src/chrome/useTheme.ts"],"sourcesContent":["import { useEffect, useSyncExternalStore } from 'react';\nimport { darkModeClass, themeStorageKey } from './themeScript';\n\nexport type ThemePreference = 'light' | 'dark' | 'system';\nexport type ResolvedTheme = 'light' | 'dark';\n\nexport interface UseTheme {\n /** What the user chose: light, dark or system. */\n theme: ThemePreference;\n /** What is applied right now. For system this is the operating system's setting. */\n resolved: ResolvedTheme;\n /** Applies and remembers a choice. Every ThemeToggle and useTheme in the page updates. */\n setTheme: (theme: ThemePreference) => void;\n}\n\nconst darkQuery = '(prefers-color-scheme: dark)';\nconst listeners = new Set<() => void>();\n/** Holds the choice for this page when storage is blocked (private mode, sandboxed iframes). */\nlet unsaved: ThemePreference | null = null;\n\nfunction isPreference(value: unknown): value is ThemePreference {\n return value === 'light' || value === 'dark' || value === 'system';\n}\n\n/** matchMedia is missing in some test environments and embedded webviews. */\nfunction systemMedia(): MediaQueryList | null {\n return typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia(darkQuery)\n : null;\n}\n\nfunction readPreference(): ThemePreference {\n if (unsaved) return unsaved;\n try {\n const stored = window.localStorage.getItem(themeStorageKey);\n return isPreference(stored) ? stored : 'system';\n } catch {\n return 'system';\n }\n}\n\nfunction resolve(preference: ThemePreference): ResolvedTheme {\n if (preference === 'system') return systemMedia()?.matches ? 'dark' : 'light';\n return preference;\n}\n\nfunction readResolved(): ResolvedTheme {\n return resolve(readPreference());\n}\n\nfunction serverPreference(): ThemePreference {\n return 'system';\n}\n\nfunction serverResolved(): ResolvedTheme {\n return 'light';\n}\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener);\n window.addEventListener('storage', listener);\n const media = systemMedia();\n media?.addEventListener('change', listener);\n return () => {\n listeners.delete(listener);\n window.removeEventListener('storage', listener);\n media?.removeEventListener('change', listener);\n };\n}\n\nfunction writePreference(preference: ThemePreference) {\n try {\n if (preference === 'system') window.localStorage.removeItem(themeStorageKey);\n else window.localStorage.setItem(themeStorageKey, preference);\n unsaved = null;\n } catch {\n unsaved = preference;\n }\n for (const listener of listeners) listener();\n}\n\nfunction applyTheme(resolved: ResolvedTheme) {\n const root = document.documentElement;\n root.classList.toggle(darkModeClass, resolved === 'dark');\n root.style.colorScheme = resolved;\n}\n\n/**\n * The page's colour theme: the user's choice, what it resolves to, and a\n * setter. Writes the `dark-mode` class on <html>, remembers the choice in\n * localStorage and follows the operating system while the choice is system.\n * ThemeToggle uses it, so a command palette or settings page can call\n * `setTheme` without touching storage itself. Pair it with themeInitScript in\n * <head> so the first paint already has the right theme.\n */\nexport function useTheme(): UseTheme {\n const theme = useSyncExternalStore(subscribe, readPreference, serverPreference);\n const resolved = useSyncExternalStore(subscribe, readResolved, serverResolved);\n\n useEffect(() => {\n applyTheme(resolved);\n }, [resolved]);\n\n return { theme, resolved, setTheme: writePreference };\n}\n"],"mappings":";;;;AAeA,IAAM,YAAY;AAClB,IAAM,4BAAY,IAAI,IAAgB;;AAEtC,IAAI,UAAkC;AAEtC,SAAS,aAAa,OAA0C;CAC9D,OAAO,UAAU,WAAW,UAAU,UAAU,UAAU;AAC5D;;AAGA,SAAS,cAAqC;CAC5C,OAAO,OAAO,WAAW,eAAe,OAAO,OAAO,eAAe,aACjE,OAAO,WAAW,SAAS,IAC3B;AACN;AAEA,SAAS,iBAAkC;CACzC,IAAI,SAAS,OAAO;CACpB,IAAI;EACF,MAAM,SAAS,OAAO,aAAa,QAAQ,eAAe;EAC1D,OAAO,aAAa,MAAM,IAAI,SAAS;CACzC,QAAQ;EACN,OAAO;CACT;AACF;AAEA,SAAS,QAAQ,YAA4C;CAC3D,IAAI,eAAe,UAAU,OAAO,YAAY,CAAC,EAAE,UAAU,SAAS;CACtE,OAAO;AACT;AAEA,SAAS,eAA8B;CACrC,OAAO,QAAQ,eAAe,CAAC;AACjC;AAEA,SAAS,mBAAoC;CAC3C,OAAO;AACT;AAEA,SAAS,iBAAgC;CACvC,OAAO;AACT;AAEA,SAAS,UAAU,UAAsB;CACvC,UAAU,IAAI,QAAQ;CACtB,OAAO,iBAAiB,WAAW,QAAQ;CAC3C,MAAM,QAAQ,YAAY;CAC1B,OAAO,iBAAiB,UAAU,QAAQ;CAC1C,aAAa;EACX,UAAU,OAAO,QAAQ;EACzB,OAAO,oBAAoB,WAAW,QAAQ;EAC9C,OAAO,oBAAoB,UAAU,QAAQ;CAC/C;AACF;AAEA,SAAS,gBAAgB,YAA6B;CACpD,IAAI;EACF,IAAI,eAAe,UAAU,OAAO,aAAa,WAAW,eAAe;OACtE,OAAO,aAAa,QAAQ,iBAAiB,UAAU;EAC5D,UAAU;CACZ,QAAQ;EACN,UAAU;CACZ;CACA,KAAK,MAAM,YAAY,WAAW,SAAS;AAC7C;AAEA,SAAS,WAAW,UAAyB;CAC3C,MAAM,OAAO,SAAS;CACtB,KAAK,UAAU,OAAO,eAAe,aAAa,MAAM;CACxD,KAAK,MAAM,cAAc;AAC3B;;;;;;;;;AAUA,SAAgB,WAAqB;CACnC,MAAM,QAAQ,qBAAqB,WAAW,gBAAgB,gBAAgB;CAC9E,MAAM,WAAW,qBAAqB,WAAW,cAAc,cAAc;CAE7E,gBAAgB;EACd,WAAW,QAAQ;CACrB,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO;EAAE;EAAO;EAAU,UAAU;CAAgB;AACtD"}
@@ -0,0 +1,39 @@
1
+ import { type ReactNode } from 'react';
2
+ export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ export type AvatarStatus = 'online' | 'away' | 'busy' | 'offline';
4
+ export interface AvatarProps {
5
+ /** Full name. Used as the accessible name and for the initials fallback. */
6
+ name: string;
7
+ /** Image URL. Falls back to initials when missing or when it fails to load. */
8
+ src?: string;
9
+ size?: AvatarSize;
10
+ /** Presence dot in the corner, announced as text. */
11
+ status?: AvatarStatus;
12
+ /** Overrides the announced status text, for example "Online since 9:00". */
13
+ statusLabel?: string;
14
+ className?: string;
15
+ }
16
+ /**
17
+ * Up to two initials from a name: the first letter of the first and last
18
+ * words, or the first letter of a single name. Extra whitespace is ignored and
19
+ * letters outside the Basic Multilingual Plane stay whole.
20
+ */
21
+ export declare function getInitials(name: string): string;
22
+ /**
23
+ * A person's picture, with an initials fallback when there is no image or it
24
+ * fails to load. The name is always the accessible name.
25
+ */
26
+ export declare function Avatar({ name, src, size, status, statusLabel, className }: AvatarProps): import("react").JSX.Element;
27
+ export interface AvatarGroupProps {
28
+ /** Avatar elements. */
29
+ children: ReactNode;
30
+ /** Accessible name of the group, such as "Reviewers". */
31
+ 'aria-label': string;
32
+ /** Maximum avatars shown before a "+N" counter. */
33
+ max?: number;
34
+ /** Size of the "+N" counter. Match it to the avatars. */
35
+ size?: AvatarSize;
36
+ className?: string;
37
+ }
38
+ /** Overlapping avatars with a "+N" counter for the rest. */
39
+ export declare function AvatarGroup({ children, 'aria-label': ariaLabel, max, size, className, }: AvatarGroupProps): import("react").JSX.Element;
@@ -0,0 +1,122 @@
1
+ "use client";
2
+ import { cx } from "../../utils/cx.js";
3
+ import { Children, useState } from "react";
4
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ // src/components/Avatar/Avatar.tsx
6
+ var sizes = {
7
+ xs: {
8
+ avatar: "size-6 text-xs",
9
+ dot: "size-1.5"
10
+ },
11
+ sm: {
12
+ avatar: "size-8 text-xs",
13
+ dot: "size-2"
14
+ },
15
+ md: {
16
+ avatar: "size-10 text-sm",
17
+ dot: "size-2.5"
18
+ },
19
+ lg: {
20
+ avatar: "size-12 text-md",
21
+ dot: "size-3"
22
+ },
23
+ xl: {
24
+ avatar: "size-14 text-lg",
25
+ dot: "size-3.5"
26
+ }
27
+ };
28
+ var statuses = {
29
+ online: {
30
+ dot: "bg-fg-success",
31
+ label: "Online"
32
+ },
33
+ away: {
34
+ dot: "bg-fg-warning",
35
+ label: "Away"
36
+ },
37
+ busy: {
38
+ dot: "bg-fg-error",
39
+ label: "Busy"
40
+ },
41
+ offline: {
42
+ dot: "bg-fg-tertiary",
43
+ label: "Offline"
44
+ }
45
+ };
46
+ var surface = "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-brand-subtle font-semibold text-brand ring-1 ring-default select-none";
47
+ /**
48
+ * Initials are drawn from a data attribute through CSS, not rendered as text.
49
+ * An avatar inside a labelled button would otherwise add visible text the
50
+ * button's accessible name does not contain (axe label-content-name-mismatch).
51
+ */
52
+ var initialsText = "after:content-[attr(data-initials)]";
53
+ var dotBase = "absolute right-0 bottom-0 rounded-full outline-2 outline-(--ui-bg-primary) outline-solid";
54
+ /**
55
+ * Up to two initials from a name: the first letter of the first and last
56
+ * words, or the first letter of a single name. Extra whitespace is ignored and
57
+ * letters outside the Basic Multilingual Plane stay whole.
58
+ */
59
+ function getInitials(name) {
60
+ const words = name.trim().split(/\s+/).filter(Boolean);
61
+ const first = words[0];
62
+ if (!first) return "";
63
+ return [first, words.length > 1 ? words[words.length - 1] : void 0].map((word) => word ? Array.from(word)[0] ?? "" : "").join("").toLocaleUpperCase();
64
+ }
65
+ function AvatarImage({ name, src, sizeClass }) {
66
+ const [failed, setFailed] = useState(false);
67
+ function handleError() {
68
+ setFailed(true);
69
+ }
70
+ if (!src || failed) return /* @__PURE__ */ jsx("span", {
71
+ role: "img",
72
+ "aria-label": name,
73
+ "data-initials": getInitials(name),
74
+ className: cx(surface, initialsText, sizeClass)
75
+ });
76
+ return /* @__PURE__ */ jsx("img", {
77
+ src,
78
+ alt: name,
79
+ onError: handleError,
80
+ className: cx(surface, "object-cover", sizeClass)
81
+ });
82
+ }
83
+ /**
84
+ * A person's picture, with an initials fallback when there is no image or it
85
+ * fails to load. The name is always the accessible name.
86
+ */
87
+ function Avatar({ name, src, size = "md", status, statusLabel, className }) {
88
+ return /* @__PURE__ */ jsxs("span", {
89
+ className: cx("relative inline-flex shrink-0", className),
90
+ children: [/* @__PURE__ */ jsx(AvatarImage, {
91
+ name,
92
+ src,
93
+ sizeClass: sizes[size].avatar
94
+ }, src), status && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
95
+ "aria-hidden": "true",
96
+ className: cx(dotBase, statuses[status].dot, sizes[size].dot)
97
+ }), /* @__PURE__ */ jsx("span", {
98
+ className: "sr-only",
99
+ children: statusLabel ?? statuses[status].label
100
+ })] })]
101
+ });
102
+ }
103
+ /** Overlapping avatars with a "+N" counter for the rest. */
104
+ function AvatarGroup({ children, "aria-label": ariaLabel, max = 4, size = "md", className }) {
105
+ const items = Children.toArray(children);
106
+ const visible = items.slice(0, max);
107
+ const hidden = items.length - visible.length;
108
+ return /* @__PURE__ */ jsxs("div", {
109
+ role: "group",
110
+ "aria-label": ariaLabel,
111
+ className: cx("flex -space-x-2", className),
112
+ children: [visible, hidden > 0 && /* @__PURE__ */ jsx("span", {
113
+ role: "img",
114
+ "aria-label": `${hidden} more`,
115
+ "data-initials": `+${hidden}`,
116
+ className: cx(surface, initialsText, "bg-tertiary text-secondary", sizes[size].avatar)
117
+ })]
118
+ });
119
+ }
120
+ export { Avatar, AvatarGroup, getInitials };
121
+
122
+ //# sourceMappingURL=Avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.js","names":["_Fragment"],"sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import { Children, useState, type ReactNode } from 'react';\nimport { cx } from '../../utils/cx';\n\nexport type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\nexport type AvatarStatus = 'online' | 'away' | 'busy' | 'offline';\n\nexport interface AvatarProps {\n /** Full name. Used as the accessible name and for the initials fallback. */\n name: string;\n /** Image URL. Falls back to initials when missing or when it fails to load. */\n src?: string;\n size?: AvatarSize;\n /** Presence dot in the corner, announced as text. */\n status?: AvatarStatus;\n /** Overrides the announced status text, for example \"Online since 9:00\". */\n statusLabel?: string;\n className?: string;\n}\n\nconst sizes: Record<AvatarSize, { avatar: string; dot: string }> = {\n xs: { avatar: 'size-6 text-xs', dot: 'size-1.5' },\n sm: { avatar: 'size-8 text-xs', dot: 'size-2' },\n md: { avatar: 'size-10 text-sm', dot: 'size-2.5' },\n lg: { avatar: 'size-12 text-md', dot: 'size-3' },\n xl: { avatar: 'size-14 text-lg', dot: 'size-3.5' },\n};\n\nconst statuses: Record<AvatarStatus, { dot: string; label: string }> = {\n online: { dot: 'bg-fg-success', label: 'Online' },\n away: { dot: 'bg-fg-warning', label: 'Away' },\n busy: { dot: 'bg-fg-error', label: 'Busy' },\n offline: { dot: 'bg-fg-tertiary', label: 'Offline' },\n};\n\nconst surface =\n 'inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-brand-subtle font-semibold text-brand ring-1 ring-default select-none';\n\n/**\n * Initials are drawn from a data attribute through CSS, not rendered as text.\n * An avatar inside a labelled button would otherwise add visible text the\n * button's accessible name does not contain (axe label-content-name-mismatch).\n */\nconst initialsText = 'after:content-[attr(data-initials)]';\n\nconst dotBase =\n 'absolute right-0 bottom-0 rounded-full outline-2 outline-(--ui-bg-primary) outline-solid';\n\n/**\n * Up to two initials from a name: the first letter of the first and last\n * words, or the first letter of a single name. Extra whitespace is ignored and\n * letters outside the Basic Multilingual Plane stay whole.\n */\nexport function getInitials(name: string): string {\n const words = name.trim().split(/\\s+/).filter(Boolean);\n const first = words[0];\n if (!first) return '';\n const last = words.length > 1 ? words[words.length - 1] : undefined;\n const letters = [first, last].map((word) => (word ? (Array.from(word)[0] ?? '') : ''));\n return letters.join('').toLocaleUpperCase();\n}\n\nfunction AvatarImage({ name, src, sizeClass }: { name: string; src?: string; sizeClass: string }) {\n const [failed, setFailed] = useState(false);\n\n function handleError() {\n setFailed(true);\n }\n\n if (!src || failed) {\n return (\n <span\n role='img'\n aria-label={name}\n data-initials={getInitials(name)}\n className={cx(surface, initialsText, sizeClass)}\n />\n );\n }\n return (\n <img\n src={src}\n alt={name}\n onError={handleError}\n className={cx(surface, 'object-cover', sizeClass)}\n />\n );\n}\n\n/**\n * A person's picture, with an initials fallback when there is no image or it\n * fails to load. The name is always the accessible name.\n */\nexport function Avatar({ name, src, size = 'md', status, statusLabel, className }: AvatarProps) {\n return (\n <span className={cx('relative inline-flex shrink-0', className)}>\n <AvatarImage key={src} name={name} src={src} sizeClass={sizes[size].avatar} />\n {status && (\n <>\n <span aria-hidden='true' className={cx(dotBase, statuses[status].dot, sizes[size].dot)} />\n <span className='sr-only'>{statusLabel ?? statuses[status].label}</span>\n </>\n )}\n </span>\n );\n}\n\nexport interface AvatarGroupProps {\n /** Avatar elements. */\n children: ReactNode;\n /** Accessible name of the group, such as \"Reviewers\". */\n 'aria-label': string;\n /** Maximum avatars shown before a \"+N\" counter. */\n max?: number;\n /** Size of the \"+N\" counter. Match it to the avatars. */\n size?: AvatarSize;\n className?: string;\n}\n\n/** Overlapping avatars with a \"+N\" counter for the rest. */\nexport function AvatarGroup({\n children,\n 'aria-label': ariaLabel,\n max = 4,\n size = 'md',\n className,\n}: AvatarGroupProps) {\n const items = Children.toArray(children);\n const visible = items.slice(0, max);\n const hidden = items.length - visible.length;\n return (\n <div role='group' aria-label={ariaLabel} className={cx('flex -space-x-2', className)}>\n {visible}\n {hidden > 0 && (\n <span\n role='img'\n aria-label={`${hidden} more`}\n data-initials={`+${hidden}`}\n className={cx(surface, initialsText, 'bg-tertiary text-secondary', sizes[size].avatar)}\n />\n )}\n </div>\n );\n}\n"],"mappings":";;;;;AAmBA,IAAM,QAA6D;CACjE,IAAI;EAAE,QAAQ;EAAkB,KAAK;CAAW;CAChD,IAAI;EAAE,QAAQ;EAAkB,KAAK;CAAS;CAC9C,IAAI;EAAE,QAAQ;EAAmB,KAAK;CAAW;CACjD,IAAI;EAAE,QAAQ;EAAmB,KAAK;CAAS;CAC/C,IAAI;EAAE,QAAQ;EAAmB,KAAK;CAAW;AACnD;AAEA,IAAM,WAAiE;CACrE,QAAQ;EAAE,KAAK;EAAiB,OAAO;CAAS;CAChD,MAAM;EAAE,KAAK;EAAiB,OAAO;CAAO;CAC5C,MAAM;EAAE,KAAK;EAAe,OAAO;CAAO;CAC1C,SAAS;EAAE,KAAK;EAAkB,OAAO;CAAU;AACrD;AAEA,IAAM,UACJ;;;;;;AAOF,IAAM,eAAe;AAErB,IAAM,UACJ;;;;;;AAOF,SAAgB,YAAY,MAAsB;CAChD,MAAM,QAAQ,KAAK,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,OAAO,OAAO;CACrD,MAAM,QAAQ,MAAM;CACpB,IAAI,CAAC,OAAO,OAAO;CAGnB,OADgB,CAAC,OADJ,MAAM,SAAS,IAAI,MAAM,MAAM,SAAS,KAAK,KAAA,CAC9B,CAAC,CAAC,KAAK,SAAU,OAAQ,MAAM,KAAK,IAAI,CAAC,CAAC,MAAM,KAAM,EAC3E,CAAA,CAAQ,KAAK,EAAE,CAAC,CAAC,kBAAkB;AAC5C;AAEA,SAAS,YAAY,EAAE,MAAM,KAAK,aAAgE;CAChG,MAAM,CAAC,QAAQ,aAAa,SAAS,KAAK;CAE1C,SAAS,cAAc;EACrB,UAAU,IAAI;CAChB;CAEA,IAAI,CAAC,OAAO,QACV,OACE,oBAAC,QAAD;EACE,MAAK;EACL,cAAY;EACZ,iBAAe,YAAY,IAAI;EAC/B,WAAW,GAAG,SAAS,cAAc,SAAS;CAC/C,CAAA;CAGL,OACE,oBAAC,OAAD;EACO;EACL,KAAK;EACL,SAAS;EACT,WAAW,GAAG,SAAS,gBAAgB,SAAS;CACjD,CAAA;AAEL;;;;;AAMA,SAAgB,OAAO,EAAE,MAAM,KAAK,OAAO,MAAM,QAAQ,aAAa,aAA0B;CAC9F,OACE,qBAAC,QAAD;EAAM,WAAW,GAAG,iCAAiC,SAAS;EAA9D,UAAA,CACE,oBAAC,aAAD;GAA6B;GAAW;GAAK,WAAW,MAAM,KAAK,CAAC;EAAS,GAA3D,GAA2D,GAC5E,UACC,qBAAAA,UAAA,EAAA,UAAA,CACE,oBAAC,QAAD;GAAM,eAAY;GAAO,WAAW,GAAG,SAAS,SAAS,OAAO,CAAC,KAAK,MAAM,KAAK,CAAC,GAAG;EAAI,CAAA,GACzF,oBAAC,QAAD;GAAM,WAAU;GAAW,UAAA,eAAe,SAAS,OAAO,CAAC;EAAY,CAAA,CACvE,EAAA,CAAA,CAEA;;AAEV;;AAeA,SAAgB,YAAY,EAC1B,UACA,cAAc,WACd,MAAM,GACN,OAAO,MACP,aACmB;CACnB,MAAM,QAAQ,SAAS,QAAQ,QAAQ;CACvC,MAAM,UAAU,MAAM,MAAM,GAAG,GAAG;CAClC,MAAM,SAAS,MAAM,SAAS,QAAQ;CACtC,OACE,qBAAC,OAAD;EAAK,MAAK;EAAQ,cAAY;EAAW,WAAW,GAAG,mBAAmB,SAAS;EAAnF,UAAA,CACG,SACA,SAAS,KACR,oBAAC,QAAD;GACE,MAAK;GACL,cAAY,GAAG,OAAO;GACtB,iBAAe,IAAI;GACnB,WAAW,GAAG,SAAS,cAAc,8BAA8B,MAAM,KAAK,CAAC,MAAM;EACtF,CAAA,CAEA;;AAET"}
@@ -0,0 +1,2 @@
1
+ export { Avatar, AvatarGroup, getInitials } from './Avatar';
2
+ export type { AvatarGroupProps, AvatarProps, AvatarSize, AvatarStatus } from './Avatar';
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export { Avatar, AvatarGroup, getInitials } from "./Avatar.js";
@@ -0,0 +1,19 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ import type { IconComponent } from '../../internal/types';
3
+ export type BadgeColor = 'gray' | 'brand' | 'success' | 'warning' | 'error' | 'blue' | 'purple' | 'pink' | 'orange' | 'indigo';
4
+ export type BadgeSize = 'sm' | 'md';
5
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
6
+ color?: BadgeColor;
7
+ size?: BadgeSize;
8
+ /** Shows a status dot before the label. */
9
+ dot?: boolean;
10
+ icon?: IconComponent;
11
+ children: ReactNode;
12
+ }
13
+ /**
14
+ * A static, non-interactive status label. Colour never carries the meaning
15
+ * alone: the text says it. Blue, purple, pink, orange and indigo are
16
+ * categorical hues for apps with many statuses; the contrast check covers
17
+ * each of them in light and dark.
18
+ */
19
+ export declare function Badge({ color, size, dot, icon: Icon, className, children, ...props }: BadgeProps): import("react").JSX.Element;