@eylulg/ui 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +328 -2
- package/dist/chrome/Anchor.d.ts +3 -0
- package/dist/chrome/Anchor.js +14 -0
- package/dist/chrome/Anchor.js.map +1 -0
- package/dist/chrome/AppShell.d.ts +28 -0
- package/dist/chrome/AppShell.js +57 -0
- package/dist/chrome/AppShell.js.map +1 -0
- package/dist/chrome/BrandLogo.d.ts +13 -0
- package/dist/chrome/BrandLogo.js +33 -0
- package/dist/chrome/BrandLogo.js.map +1 -0
- package/dist/chrome/BrandMark.d.ts +12 -0
- package/dist/chrome/BrandMark.js +40 -0
- package/dist/chrome/BrandMark.js.map +1 -0
- package/dist/chrome/LinkRouter.d.ts +19 -0
- package/dist/chrome/LinkRouter.js +28 -0
- package/dist/chrome/LinkRouter.js.map +1 -0
- package/dist/chrome/MobileMenu.d.ts +19 -0
- package/dist/chrome/MobileMenu.js +52 -0
- package/dist/chrome/MobileMenu.js.map +1 -0
- package/dist/chrome/ProjectSwitcher.d.ts +30 -0
- package/dist/chrome/ProjectSwitcher.js +64 -0
- package/dist/chrome/ProjectSwitcher.js.map +1 -0
- package/dist/chrome/ProjectSwitcherMenu.d.ts +13 -0
- package/dist/chrome/ProjectSwitcherMenu.js +50 -0
- package/dist/chrome/ProjectSwitcherMenu.js.map +1 -0
- package/dist/chrome/SidebarNav.d.ts +34 -0
- package/dist/chrome/SidebarNav.js +106 -0
- package/dist/chrome/SidebarNav.js.map +1 -0
- package/dist/chrome/SiteFooter.d.ts +31 -0
- package/dist/chrome/SiteFooter.js +85 -0
- package/dist/chrome/SiteFooter.js.map +1 -0
- package/dist/chrome/TextSizeToggle.d.ts +11 -0
- package/dist/chrome/TextSizeToggle.js +38 -0
- package/dist/chrome/TextSizeToggle.js.map +1 -0
- package/dist/chrome/ThemeToggle.d.ts +26 -0
- package/dist/chrome/ThemeToggle.js +100 -0
- package/dist/chrome/ThemeToggle.js.map +1 -0
- package/dist/chrome/ThemeToggleMenu.d.ts +16 -0
- package/dist/chrome/ThemeToggleMenu.js +42 -0
- package/dist/chrome/ThemeToggleMenu.js.map +1 -0
- package/dist/chrome/TopNav.d.ts +42 -0
- package/dist/chrome/TopNav.js +117 -0
- package/dist/chrome/TopNav.js.map +1 -0
- package/dist/chrome/brandLogoPath.d.ts +2 -0
- package/dist/chrome/brandLogoPath.js +7 -0
- package/dist/chrome/brandLogoPath.js.map +1 -0
- package/dist/chrome/index.d.ts +28 -0
- package/dist/chrome/index.js +15 -0
- package/dist/chrome/projects.d.ts +28 -0
- package/dist/chrome/projects.js +107 -0
- package/dist/chrome/projects.js.map +1 -0
- package/dist/chrome/themeChoices.d.ts +6 -0
- package/dist/chrome/themeChoices.js +18 -0
- package/dist/chrome/themeChoices.js.map +1 -0
- package/dist/chrome/themeScript.d.ts +16 -0
- package/dist/chrome/themeScript.js +20 -0
- package/dist/chrome/themeScript.js.map +1 -0
- package/dist/chrome/types.d.ts +17 -0
- package/dist/chrome/useTextSize.d.ts +16 -0
- package/dist/chrome/useTextSize.js +64 -0
- package/dist/chrome/useTextSize.js.map +1 -0
- package/dist/chrome/useTheme.d.ts +19 -0
- package/dist/chrome/useTheme.js +86 -0
- package/dist/chrome/useTheme.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +39 -0
- package/dist/components/Avatar/Avatar.js +122 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/Badge/Badge.d.ts +19 -0
- package/dist/components/Badge/Badge.js +77 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +2 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +40 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.js +2 -0
- package/dist/components/Button/Button.d.ts +39 -0
- package/dist/components/Button/Button.js +73 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/buttonStyles.d.ts +21 -0
- package/dist/components/Button/buttonStyles.js +32 -0
- package/dist/components/Button/buttonStyles.js.map +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/Card/Card.d.ts +47 -0
- package/dist/components/Card/Card.js +119 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +2 -0
- package/dist/components/Chart/BarChart.d.ts +24 -0
- package/dist/components/Chart/BarChart.js +327 -0
- package/dist/components/Chart/BarChart.js.map +1 -0
- package/dist/components/Chart/ChartFrame.d.ts +27 -0
- package/dist/components/Chart/ChartFrame.js +80 -0
- package/dist/components/Chart/ChartFrame.js.map +1 -0
- package/dist/components/Chart/ChartLegend.d.ts +28 -0
- package/dist/components/Chart/ChartLegend.js +53 -0
- package/dist/components/Chart/ChartLegend.js.map +1 -0
- package/dist/components/Chart/ChartTable.d.ts +11 -0
- package/dist/components/Chart/ChartTable.js +48 -0
- package/dist/components/Chart/ChartTable.js.map +1 -0
- package/dist/components/Chart/ChartTooltip.d.ts +33 -0
- package/dist/components/Chart/ChartTooltip.js +56 -0
- package/dist/components/Chart/ChartTooltip.js.map +1 -0
- package/dist/components/Chart/HeatGrid.d.ts +50 -0
- package/dist/components/Chart/HeatGrid.js +256 -0
- package/dist/components/Chart/HeatGrid.js.map +1 -0
- package/dist/components/Chart/LineChart.d.ts +23 -0
- package/dist/components/Chart/LineChart.js +248 -0
- package/dist/components/Chart/LineChart.js.map +1 -0
- package/dist/components/Chart/format.d.ts +24 -0
- package/dist/components/Chart/format.js +134 -0
- package/dist/components/Chart/format.js.map +1 -0
- package/dist/components/Chart/geometry.d.ts +11 -0
- package/dist/components/Chart/geometry.js +69 -0
- package/dist/components/Chart/geometry.js.map +1 -0
- package/dist/components/Chart/index.d.ts +9 -0
- package/dist/components/Chart/index.js +6 -0
- package/dist/components/Chart/interaction.d.ts +43 -0
- package/dist/components/Chart/interaction.js +106 -0
- package/dist/components/Chart/interaction.js.map +1 -0
- package/dist/components/Chart/labels.d.ts +3 -0
- package/dist/components/Chart/labels.js +23 -0
- package/dist/components/Chart/labels.js.map +1 -0
- package/dist/components/Chart/scale.d.ts +15 -0
- package/dist/components/Chart/scale.js +54 -0
- package/dist/components/Chart/scale.js.map +1 -0
- package/dist/components/Chart/series.d.ts +14 -0
- package/dist/components/Chart/series.js +72 -0
- package/dist/components/Chart/series.js.map +1 -0
- package/dist/components/Chart/summary.d.ts +8 -0
- package/dist/components/Chart/summary.js +56 -0
- package/dist/components/Chart/summary.js.map +1 -0
- package/dist/components/Chart/types.d.ts +50 -0
- package/dist/components/Chart/useElementWidth.d.ts +6 -0
- package/dist/components/Chart/useElementWidth.js +25 -0
- package/dist/components/Chart/useElementWidth.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox/Checkbox.js +36 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +22 -0
- package/dist/components/CodeBlock/CodeBlock.js +56 -0
- package/dist/components/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/CodeBlock/index.js +2 -0
- package/dist/components/Combobox/Combobox.d.ts +34 -0
- package/dist/components/Combobox/Combobox.js +106 -0
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/Combobox/index.js +2 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +74 -0
- package/dist/components/CommandPalette/CommandPalette.js +51 -0
- package/dist/components/CommandPalette/CommandPalette.js.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteOverlay.d.ts +11 -0
- package/dist/components/CommandPalette/CommandPaletteOverlay.js +180 -0
- package/dist/components/CommandPalette/CommandPaletteOverlay.js.map +1 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.js +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +25 -0
- package/dist/components/DatePicker/DatePicker.js +142 -0
- package/dist/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +2 -0
- package/dist/components/Dialog/Dialog.d.ts +37 -0
- package/dist/components/Dialog/Dialog.js +33 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/Dialog/DialogOverlay.d.ts +3 -0
- package/dist/components/Dialog/DialogOverlay.js +72 -0
- package/dist/components/Dialog/DialogOverlay.js.map +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.js +2 -0
- package/dist/components/Drawer/Drawer.d.ts +36 -0
- package/dist/components/Drawer/Drawer.js +33 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/DrawerOverlay.d.ts +3 -0
- package/dist/components/Drawer/DrawerOverlay.js +71 -0
- package/dist/components/Drawer/DrawerOverlay.js.map +1 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.js +2 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +49 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +52 -0
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenuParts.d.ts +6 -0
- package/dist/components/DropdownMenu/DropdownMenuParts.js +76 -0
- package/dist/components/DropdownMenu/DropdownMenuParts.js.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/DropdownMenu/index.js +2 -0
- package/dist/components/EmptyState/EmptyState.d.ts +19 -0
- package/dist/components/EmptyState/EmptyState.js +51 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/index.js +2 -0
- package/dist/components/FileDropZone/FileDropZone.d.ts +41 -0
- package/dist/components/FileDropZone/FileDropZone.js +94 -0
- package/dist/components/FileDropZone/FileDropZone.js.map +1 -0
- package/dist/components/FileDropZone/index.d.ts +2 -0
- package/dist/components/FileDropZone/index.js +2 -0
- package/dist/components/IconButton/IconButton.d.ts +17 -0
- package/dist/components/IconButton/IconButton.js +37 -0
- package/dist/components/IconButton/IconButton.js.map +1 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +2 -0
- package/dist/components/Input/Input.d.ts +21 -0
- package/dist/components/Input/Input.js +43 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.js +2 -0
- package/dist/components/Kbd/Kbd.d.ts +16 -0
- package/dist/components/Kbd/Kbd.js +35 -0
- package/dist/components/Kbd/Kbd.js.map +1 -0
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Kbd/index.js +2 -0
- package/dist/components/PageHeader/PageHeader.d.ts +18 -0
- package/dist/components/PageHeader/PageHeader.js +45 -0
- package/dist/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.js +2 -0
- package/dist/components/Pagination/Pagination.d.ts +32 -0
- package/dist/components/Pagination/Pagination.js +124 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Popover/Popover.d.ts +27 -0
- package/dist/components/Popover/Popover.js +33 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/PopoverOverlay.d.ts +3 -0
- package/dist/components/Popover/PopoverOverlay.js +39 -0
- package/dist/components/Popover/PopoverOverlay.js.map +1 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +2 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +19 -0
- package/dist/components/ProgressBar/ProgressBar.js +52 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ProgressBar/index.js +2 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/RadioGroup/RadioGroup.js +46 -0
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.js +2 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +32 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +55 -0
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/index.js +2 -0
- package/dist/components/Select/Select.d.ts +28 -0
- package/dist/components/Select/Select.js +64 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.js +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +13 -0
- package/dist/components/Skeleton/Skeleton.js +33 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.js +2 -0
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/components/Spinner/Spinner.js +29 -0
- package/dist/components/Spinner/Spinner.js.map +1 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +2 -0
- package/dist/components/Stat/Stat.d.ts +49 -0
- package/dist/components/Stat/Stat.js +125 -0
- package/dist/components/Stat/Stat.js.map +1 -0
- package/dist/components/Stat/index.d.ts +2 -0
- package/dist/components/Stat/index.js +2 -0
- package/dist/components/Switch/Switch.d.ts +11 -0
- package/dist/components/Switch/Switch.js +39 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +2 -0
- package/dist/components/Table/Table.d.ts +41 -0
- package/dist/components/Table/Table.js +121 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +34 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +2 -0
- package/dist/components/Tag/Tag.d.ts +16 -0
- package/dist/components/Tag/Tag.js +48 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Tag/index.js +2 -0
- package/dist/components/Textarea/Textarea.d.ts +28 -0
- package/dist/components/Textarea/Textarea.js +30 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +2 -0
- package/dist/components/Toast/Toast.d.ts +52 -0
- package/dist/components/Toast/Toast.js +77 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/Toast/ToastItem.d.ts +6 -0
- package/dist/components/Toast/ToastItem.js +127 -0
- package/dist/components/Toast/ToastItem.js.map +1 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.js +38 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/TooltipOverlay.d.ts +5 -0
- package/dist/components/Tooltip/TooltipOverlay.js +27 -0
- package/dist/components/Tooltip/TooltipOverlay.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +2 -0
- package/dist/fonts.css +21 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +43 -0
- package/dist/internal/Field.d.ts +13 -0
- package/dist/internal/Field.js +29 -0
- package/dist/internal/Field.js.map +1 -0
- package/dist/internal/LazyDialogTrigger.d.ts +8 -0
- package/dist/internal/LazyDialogTrigger.js +15 -0
- package/dist/internal/LazyDialogTrigger.js.map +1 -0
- package/dist/internal/PreloadOnIntent.d.ts +15 -0
- package/dist/internal/PreloadOnIntent.js +26 -0
- package/dist/internal/PreloadOnIntent.js.map +1 -0
- package/dist/internal/Spinner.d.ts +3 -0
- package/dist/internal/Spinner.js +14 -0
- package/dist/internal/Spinner.js.map +1 -0
- package/dist/internal/focusRing.d.ts +2 -0
- package/dist/internal/focusRing.js +7 -0
- package/dist/internal/focusRing.js.map +1 -0
- package/dist/internal/lazyModule.d.ts +15 -0
- package/dist/internal/lazyModule.js +54 -0
- package/dist/internal/lazyModule.js.map +1 -0
- package/dist/internal/surfaces.d.ts +8 -0
- package/dist/internal/surfaces.js +13 -0
- package/dist/internal/surfaces.js.map +1 -0
- package/dist/internal/types.d.ts +5 -0
- package/dist/internal/useLazyMenuTrigger.d.ts +23 -0
- package/dist/internal/useLazyMenuTrigger.js +47 -0
- package/dist/internal/useLazyMenuTrigger.js.map +1 -0
- package/dist/reset.css +52 -0
- package/dist/styles/themes/scales.d.ts +2 -0
- package/dist/styles/themes/scales.js +132 -0
- package/dist/styles/themes/scales.js.map +1 -0
- package/dist/styles/themes/variants.d.ts +41 -0
- package/dist/styles/themes/variants.js +180 -0
- package/dist/styles/themes/variants.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/theme.css +528 -0
- package/dist/themes/all.css +158 -0
- package/dist/themes/assistant.css +25 -0
- package/dist/themes/control-room.css +25 -0
- package/dist/themes/plain-language.css +25 -0
- package/dist/themes/portfolio.css +25 -0
- package/dist/themes/review.css +25 -0
- package/dist/themes/sudoku.css +25 -0
- package/dist/themes/tokens.css +25 -0
- package/dist/themes/watchlist.css +25 -0
- package/dist/themes/workspace.css +25 -0
- package/dist/tokens.css +351 -0
- package/dist/utils/cx.d.ts +23 -0
- package/dist/utils/cx.js +25 -0
- package/dist/utils/cx.js.map +1 -0
- package/dist/utils/cxLite.d.ts +12 -0
- package/dist/utils/cxLite.js +23 -0
- package/dist/utils/cxLite.js.map +1 -0
- package/package.json +304 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextSizeToggle.js","names":[],"sources":["../../src/chrome/TextSizeToggle.tsx"],"sourcesContent":["import { ALargeSmall } from 'lucide-react';\nimport { ToggleButton } from 'react-aria-components';\nimport { focusRing } from '../internal/focusRing';\nimport { cx } from '../utils/cx';\nimport { useTextSize } from './useTextSize';\n\nexport interface TextSizeToggleProps {\n /** Accessible name. Defaults to \"Compact text\". */\n 'aria-label'?: string;\n className?: string;\n}\n\nconst button = [\n 'inline-flex size-control-md cursor-pointer items-center justify-center rounded-md border border-default bg-primary text-fg-tertiary transition-colors',\n 'data-hovered:bg-hover data-hovered:text-fg-secondary',\n 'data-selected:border-brand data-selected:bg-brand-subtle data-selected:text-brand',\n focusRing,\n].join(' ');\n\n/**\n * Switches the page between compact and default text, next to ThemeToggle.\n * Pressed means compact. Built on `useTextSize`: it starts at default text\n * and remembers the visitor's choice.\n */\nexport function TextSizeToggle({\n 'aria-label': ariaLabel = 'Compact text',\n className,\n}: TextSizeToggleProps) {\n const { size, setSize } = useTextSize();\n\n function handleChange(compact: boolean) {\n setSize(compact ? 'compact' : 'default');\n }\n\n return (\n <ToggleButton\n aria-label={ariaLabel}\n isSelected={size === 'compact'}\n onChange={handleChange}\n className={cx(button, className)}\n >\n <ALargeSmall aria-hidden='true' className='size-4' />\n </ToggleButton>\n );\n}\n"],"mappings":";;;;;;;;AAYA,IAAM,SAAS;CACb;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,GAAG;;;;;;AAOV,SAAgB,eAAe,EAC7B,cAAc,YAAY,gBAC1B,aACsB;CACtB,MAAM,EAAE,MAAM,YAAY,YAAY;CAEtC,SAAS,aAAa,SAAkB;EACtC,QAAQ,UAAU,YAAY,SAAS;CACzC;CAEA,OACE,oBAAC,cAAD;EACE,cAAY;EACZ,YAAY,SAAS;EACrB,UAAU;EACV,WAAW,GAAG,QAAQ,SAAS;EAE/B,UAAA,oBAAC,aAAD;GAAa,eAAY;GAAO,WAAU;EAAU,CAAA;CACxC,CAAA;AAElB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ThemeToggleLabels {
|
|
2
|
+
light: string;
|
|
3
|
+
dark: string;
|
|
4
|
+
system: string;
|
|
5
|
+
/** Accessible name of the whole control. */
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ThemeToggleProps {
|
|
9
|
+
/** Accessible name of the group. Overrides `labels.ariaLabel`. */
|
|
10
|
+
'aria-label'?: string;
|
|
11
|
+
/** Translated texts. Missing keys keep the English default. */
|
|
12
|
+
labels?: Partial<ThemeToggleLabels>;
|
|
13
|
+
/**
|
|
14
|
+
* One icon button that opens a menu of the three choices, for tight spaces
|
|
15
|
+
* such as the top bar at 375px. The default shows the three choices inline.
|
|
16
|
+
*/
|
|
17
|
+
compact?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Light, dark and system theme switch built on `useTheme`: it writes the
|
|
22
|
+
* `dark-mode` class on <html>, remembers the choice in localStorage and
|
|
23
|
+
* follows the operating system while set to system. Pair it with
|
|
24
|
+
* themeInitScript in <head> so the first paint already has the right theme.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ThemeToggle({ 'aria-label': ariaLabelProp, labels, compact, className, }: ThemeToggleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { buttonBase, buttonVariants } from "../components/Button/buttonStyles.js";
|
|
3
|
+
import { focusRing } from "../internal/focusRing.js";
|
|
4
|
+
import { createLazyModule } from "../internal/lazyModule.js";
|
|
5
|
+
import { useLazyMenuTrigger } from "../internal/useLazyMenuTrigger.js";
|
|
6
|
+
import { cx } from "../utils/cx.js";
|
|
7
|
+
import { choices, compactFrame, icons } from "./themeChoices.js";
|
|
8
|
+
import { useTheme } from "./useTheme.js";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { ToggleButton, ToggleButtonGroup } from "react-aria-components";
|
|
11
|
+
// src/chrome/ThemeToggle.tsx
|
|
12
|
+
var defaultLabels = {
|
|
13
|
+
light: "Light theme",
|
|
14
|
+
dark: "Dark theme",
|
|
15
|
+
system: "System theme",
|
|
16
|
+
ariaLabel: "Colour theme"
|
|
17
|
+
};
|
|
18
|
+
var menu = /*#__PURE__*/ createLazyModule(() => import("./ThemeToggleMenu.js"));
|
|
19
|
+
var group = "inline-flex h-control-md items-center gap-0.5 rounded-md border border-default bg-primary p-0.5";
|
|
20
|
+
var button = [
|
|
21
|
+
"inline-flex aspect-square h-full cursor-pointer items-center justify-center rounded-sm text-fg-tertiary transition-colors",
|
|
22
|
+
"data-hovered:bg-hover data-hovered:text-fg-secondary",
|
|
23
|
+
"data-selected:bg-tertiary data-selected:text-fg-primary",
|
|
24
|
+
focusRing
|
|
25
|
+
].join(" ");
|
|
26
|
+
function isPreference(value) {
|
|
27
|
+
return value === "light" || value === "dark" || value === "system";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Light, dark and system theme switch built on `useTheme`: it writes the
|
|
31
|
+
* `dark-mode` class on <html>, remembers the choice in localStorage and
|
|
32
|
+
* follows the operating system while set to system. Pair it with
|
|
33
|
+
* themeInitScript in <head> so the first paint already has the right theme.
|
|
34
|
+
*/
|
|
35
|
+
function ThemeToggle({ "aria-label": ariaLabelProp, labels, compact = false, className }) {
|
|
36
|
+
const { theme, setTheme } = useTheme();
|
|
37
|
+
const text = {
|
|
38
|
+
...defaultLabels,
|
|
39
|
+
...labels
|
|
40
|
+
};
|
|
41
|
+
const ariaLabel = ariaLabelProp ?? text.ariaLabel;
|
|
42
|
+
function handleSelectionChange(keys) {
|
|
43
|
+
if (keys === "all") return;
|
|
44
|
+
const [next] = keys;
|
|
45
|
+
if (isPreference(next)) setTheme(next);
|
|
46
|
+
}
|
|
47
|
+
if (compact) return /* @__PURE__ */ jsx(CompactToggle, {
|
|
48
|
+
theme,
|
|
49
|
+
ariaLabel,
|
|
50
|
+
text,
|
|
51
|
+
className,
|
|
52
|
+
onSelectionChange: handleSelectionChange
|
|
53
|
+
});
|
|
54
|
+
return /* @__PURE__ */ jsx(ToggleButtonGroup, {
|
|
55
|
+
"aria-label": ariaLabel,
|
|
56
|
+
selectionMode: "single",
|
|
57
|
+
disallowEmptySelection: true,
|
|
58
|
+
selectedKeys: [theme],
|
|
59
|
+
onSelectionChange: handleSelectionChange,
|
|
60
|
+
className: cx(group, className),
|
|
61
|
+
children: choices.map((id) => {
|
|
62
|
+
const Icon = icons[id];
|
|
63
|
+
return /* @__PURE__ */ jsx(ToggleButton, {
|
|
64
|
+
id,
|
|
65
|
+
"aria-label": text[id],
|
|
66
|
+
className: button,
|
|
67
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
68
|
+
"aria-hidden": "true",
|
|
69
|
+
className: "size-4"
|
|
70
|
+
})
|
|
71
|
+
}, id);
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
var compactTrigger = cx(buttonBase, buttonVariants.tertiary, compactFrame, "size-control-md p-0 hover:bg-hover hover:text-primary");
|
|
76
|
+
function CompactToggle({ theme, ariaLabel, text, className, onSelectionChange }) {
|
|
77
|
+
const { loaded, triggerProps } = useLazyMenuTrigger(menu);
|
|
78
|
+
if (loaded) return /* @__PURE__ */ jsx(loaded.ThemeToggleMenu, {
|
|
79
|
+
theme,
|
|
80
|
+
ariaLabel,
|
|
81
|
+
text,
|
|
82
|
+
className,
|
|
83
|
+
onSelectionChange
|
|
84
|
+
});
|
|
85
|
+
const Icon = icons[theme];
|
|
86
|
+
return /* @__PURE__ */ jsx("button", {
|
|
87
|
+
type: "button",
|
|
88
|
+
"aria-label": ariaLabel,
|
|
89
|
+
"data-variant": "tertiary",
|
|
90
|
+
className: cx(compactTrigger, className),
|
|
91
|
+
...triggerProps,
|
|
92
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
className: "size-5"
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
export { ThemeToggle };
|
|
99
|
+
|
|
100
|
+
//# sourceMappingURL=ThemeToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeToggle.js","names":[],"sources":["../../src/chrome/ThemeToggle.tsx"],"sourcesContent":["import { ToggleButton, ToggleButtonGroup, type Key } from 'react-aria-components';\nimport { buttonBase, buttonVariants } from '../components/Button/buttonStyles';\nimport { focusRing } from '../internal/focusRing';\nimport { createLazyModule } from '../internal/lazyModule';\nimport { useLazyMenuTrigger } from '../internal/useLazyMenuTrigger';\nimport { cx } from '../utils/cx';\nimport { choices, compactFrame, icons } from './themeChoices';\nimport { useTheme, type ThemePreference } from './useTheme';\n\nexport interface ThemeToggleLabels {\n light: string;\n dark: string;\n system: string;\n /** Accessible name of the whole control. */\n ariaLabel: string;\n}\n\nexport interface ThemeToggleProps {\n /** Accessible name of the group. Overrides `labels.ariaLabel`. */\n 'aria-label'?: string;\n /** Translated texts. Missing keys keep the English default. */\n labels?: Partial<ThemeToggleLabels>;\n /**\n * One icon button that opens a menu of the three choices, for tight spaces\n * such as the top bar at 375px. The default shows the three choices inline.\n */\n compact?: boolean;\n className?: string;\n}\n\nconst defaultLabels: ThemeToggleLabels = {\n light: 'Light theme',\n dark: 'Dark theme',\n system: 'System theme',\n ariaLabel: 'Colour theme',\n};\n\nconst menu = /*#__PURE__*/ createLazyModule(() => import('./ThemeToggleMenu'));\n\nconst group =\n 'inline-flex h-control-md items-center gap-0.5 rounded-md border border-default bg-primary p-0.5';\nconst button = [\n 'inline-flex aspect-square h-full cursor-pointer items-center justify-center rounded-sm text-fg-tertiary transition-colors',\n 'data-hovered:bg-hover data-hovered:text-fg-secondary',\n 'data-selected:bg-tertiary data-selected:text-fg-primary',\n focusRing,\n].join(' ');\n\nfunction isPreference(value: Key | undefined): value is ThemePreference {\n return value === 'light' || value === 'dark' || value === 'system';\n}\n\n/**\n * Light, dark and system theme switch built on `useTheme`: it writes the\n * `dark-mode` class on <html>, remembers the choice in localStorage and\n * follows the operating system while set to system. Pair it with\n * themeInitScript in <head> so the first paint already has the right theme.\n */\nexport function ThemeToggle({\n 'aria-label': ariaLabelProp,\n labels,\n compact = false,\n className,\n}: ThemeToggleProps) {\n const { theme, setTheme } = useTheme();\n const text = { ...defaultLabels, ...labels };\n const ariaLabel = ariaLabelProp ?? text.ariaLabel;\n\n function handleSelectionChange(keys: Set<Key> | 'all') {\n if (keys === 'all') return;\n const [next] = keys;\n if (isPreference(next)) setTheme(next);\n }\n\n if (compact) {\n return (\n <CompactToggle\n theme={theme}\n ariaLabel={ariaLabel}\n text={text}\n className={className}\n onSelectionChange={handleSelectionChange}\n />\n );\n }\n\n return (\n <ToggleButtonGroup\n aria-label={ariaLabel}\n selectionMode='single'\n disallowEmptySelection\n selectedKeys={[theme]}\n onSelectionChange={handleSelectionChange}\n className={cx(group, className)}\n >\n {choices.map((id) => {\n const Icon = icons[id];\n return (\n <ToggleButton key={id} id={id} aria-label={text[id]} className={button}>\n <Icon aria-hidden='true' className='size-4' />\n </ToggleButton>\n );\n })}\n </ToggleButtonGroup>\n );\n}\n\nconst compactTrigger = cx(\n buttonBase,\n buttonVariants.tertiary,\n compactFrame,\n 'size-control-md p-0 hover:bg-hover hover:text-primary',\n);\n\ninterface CompactToggleProps {\n theme: ThemePreference;\n ariaLabel: string;\n text: ThemeToggleLabels;\n className: string | undefined;\n onSelectionChange: (keys: Set<Key> | 'all') => void;\n}\n\n// A plain icon button until the menu's code has loaded, so the bar never waits for it.\nfunction CompactToggle({\n theme,\n ariaLabel,\n text,\n className,\n onSelectionChange,\n}: CompactToggleProps) {\n const { loaded, triggerProps } = useLazyMenuTrigger(menu);\n\n if (loaded) {\n return (\n <loaded.ThemeToggleMenu\n theme={theme}\n ariaLabel={ariaLabel}\n text={text}\n className={className}\n onSelectionChange={onSelectionChange}\n />\n );\n }\n\n const Icon = icons[theme];\n return (\n <button\n type='button'\n aria-label={ariaLabel}\n data-variant='tertiary'\n className={cx(compactTrigger, className)}\n {...triggerProps}\n >\n <Icon aria-hidden='true' className='size-5' />\n </button>\n );\n}\n"],"mappings":";;;;;;;;;;;AA8BA,IAAM,gBAAmC;CACvC,OAAO;CACP,MAAM;CACN,QAAQ;CACR,WAAW;AACb;AAEA,IAAM,OAAqB,qCAAuB,OAAO,uBAAoB;AAE7E,IAAM,QACJ;AACF,IAAM,SAAS;CACb;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,GAAG;AAEV,SAAS,aAAa,OAAkD;CACtE,OAAO,UAAU,WAAW,UAAU,UAAU,UAAU;AAC5D;;;;;;;AAQA,SAAgB,YAAY,EAC1B,cAAc,eACd,QACA,UAAU,OACV,aACmB;CACnB,MAAM,EAAE,OAAO,aAAa,SAAS;CACrC,MAAM,OAAO;EAAE,GAAG;EAAe,GAAG;CAAO;CAC3C,MAAM,YAAY,iBAAiB,KAAK;CAExC,SAAS,sBAAsB,MAAwB;EACrD,IAAI,SAAS,OAAO;EACpB,MAAM,CAAC,QAAQ;EACf,IAAI,aAAa,IAAI,GAAG,SAAS,IAAI;CACvC;CAEA,IAAI,SACF,OACE,oBAAC,eAAD;EACS;EACI;EACL;EACK;EACX,mBAAmB;CACpB,CAAA;CAIL,OACE,oBAAC,mBAAD;EACE,cAAY;EACZ,eAAc;EACd,wBAAA;EACA,cAAc,CAAC,KAAK;EACpB,mBAAmB;EACnB,WAAW,GAAG,OAAO,SAAS;EAE7B,UAAA,QAAQ,KAAK,OAAO;GACnB,MAAM,OAAO,MAAM;GACnB,OACE,oBAAC,cAAD;IAA2B;IAAI,cAAY,KAAK;IAAK,WAAW;IAC9D,UAAA,oBAAC,MAAD;KAAM,eAAY;KAAO,WAAU;IAAU,CAAA;GACjC,GAFK,EAEL;EAElB,CAAC;CACgB,CAAA;AAEvB;AAEA,IAAM,iBAAiB,GACrB,YACA,eAAe,UACf,cACA,uDACF;AAWA,SAAS,cAAc,EACrB,OACA,WACA,MACA,WACA,qBACqB;CACrB,MAAM,EAAE,QAAQ,iBAAiB,mBAAmB,IAAI;CAExD,IAAI,QACF,OACE,oBAAC,OAAO,iBAAR;EACS;EACI;EACL;EACK;EACQ;CACpB,CAAA;CAIL,MAAM,OAAO,MAAM;CACnB,OACE,oBAAC,UAAD;EACE,MAAK;EACL,cAAY;EACZ,gBAAa;EACb,WAAW,GAAG,gBAAgB,SAAS;EACvC,GAAI;EAEJ,UAAA,oBAAC,MAAD;GAAM,eAAY;GAAO,WAAU;EAAU,CAAA;CACvC,CAAA;AAEZ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Key } from 'react-aria-components';
|
|
2
|
+
import type { ThemeToggleLabels } from './ThemeToggle';
|
|
3
|
+
import type { ThemePreference } from './useTheme';
|
|
4
|
+
interface ThemeToggleMenuProps {
|
|
5
|
+
theme: ThemePreference;
|
|
6
|
+
ariaLabel: string;
|
|
7
|
+
text: ThemeToggleLabels;
|
|
8
|
+
className: string | undefined;
|
|
9
|
+
onSelectionChange: (keys: Set<Key> | 'all') => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The real compact menu behind ThemeToggle. ThemeToggle loads this module on
|
|
13
|
+
* the first press, and the menu opens as soon as it mounts.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ThemeToggleMenu({ theme, ariaLabel, text, className, onSelectionChange, }: ThemeToggleMenuProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem } from "../components/DropdownMenu/DropdownMenu.js";
|
|
3
|
+
import { IconButton } from "../components/IconButton/IconButton.js";
|
|
4
|
+
import { useOpenAfterFocus } from "../internal/useLazyMenuTrigger.js";
|
|
5
|
+
import { cx } from "../utils/cx.js";
|
|
6
|
+
import { choices, compactFrame, icons } from "./themeChoices.js";
|
|
7
|
+
import { useRef } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
// src/chrome/ThemeToggleMenu.tsx
|
|
10
|
+
/**
|
|
11
|
+
* The real compact menu behind ThemeToggle. ThemeToggle loads this module on
|
|
12
|
+
* the first press, and the menu opens as soon as it mounts.
|
|
13
|
+
*/
|
|
14
|
+
function ThemeToggleMenu({ theme, ariaLabel, text, className, onSelectionChange }) {
|
|
15
|
+
const triggerRef = useRef(null);
|
|
16
|
+
const [isOpen, setIsOpen] = useOpenAfterFocus(triggerRef);
|
|
17
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, {
|
|
18
|
+
isOpen,
|
|
19
|
+
onOpenChange: setIsOpen,
|
|
20
|
+
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
21
|
+
ref: triggerRef,
|
|
22
|
+
icon: icons[theme],
|
|
23
|
+
"aria-label": ariaLabel,
|
|
24
|
+
variant: "tertiary",
|
|
25
|
+
className: cx(compactFrame, className)
|
|
26
|
+
}), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
27
|
+
placement: "bottom end",
|
|
28
|
+
selectionMode: "single",
|
|
29
|
+
disallowEmptySelection: true,
|
|
30
|
+
selectedKeys: [theme],
|
|
31
|
+
onSelectionChange,
|
|
32
|
+
children: choices.map((id) => /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
33
|
+
id,
|
|
34
|
+
icon: icons[id],
|
|
35
|
+
children: text[id]
|
|
36
|
+
}, id))
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export { ThemeToggleMenu };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=ThemeToggleMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeToggleMenu.js","names":[],"sources":["../../src/chrome/ThemeToggleMenu.tsx"],"sourcesContent":["import { useRef } from 'react';\nimport type { Key } from 'react-aria-components';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n} from '../components/DropdownMenu/DropdownMenu';\nimport { IconButton } from '../components/IconButton/IconButton';\nimport { useOpenAfterFocus } from '../internal/useLazyMenuTrigger';\nimport { cx } from '../utils/cx';\nimport { choices, compactFrame, icons } from './themeChoices';\nimport type { ThemeToggleLabels } from './ThemeToggle';\nimport type { ThemePreference } from './useTheme';\n\ninterface ThemeToggleMenuProps {\n theme: ThemePreference;\n ariaLabel: string;\n text: ThemeToggleLabels;\n className: string | undefined;\n onSelectionChange: (keys: Set<Key> | 'all') => void;\n}\n\n/**\n * The real compact menu behind ThemeToggle. ThemeToggle loads this module on\n * the first press, and the menu opens as soon as it mounts.\n */\nexport function ThemeToggleMenu({\n theme,\n ariaLabel,\n text,\n className,\n onSelectionChange,\n}: ThemeToggleMenuProps) {\n const triggerRef = useRef<HTMLButtonElement>(null);\n const [isOpen, setIsOpen] = useOpenAfterFocus(triggerRef);\n\n return (\n <DropdownMenu isOpen={isOpen} onOpenChange={setIsOpen}>\n <IconButton\n ref={triggerRef}\n icon={icons[theme]}\n aria-label={ariaLabel}\n variant='tertiary'\n className={cx(compactFrame, className)}\n />\n <DropdownMenuContent\n placement='bottom end'\n selectionMode='single'\n disallowEmptySelection\n selectedKeys={[theme]}\n onSelectionChange={onSelectionChange}\n >\n {choices.map((id) => (\n <DropdownMenuItem key={id} id={id} icon={icons[id]}>\n {text[id]}\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA0BA,SAAgB,gBAAgB,EAC9B,OACA,WACA,MACA,WACA,qBACuB;CACvB,MAAM,aAAa,OAA0B,IAAI;CACjD,MAAM,CAAC,QAAQ,aAAa,kBAAkB,UAAU;CAExD,OACE,qBAAC,cAAD;EAAsB;EAAQ,cAAc;EAA5C,UAAA,CACE,oBAAC,YAAD;GACE,KAAK;GACL,MAAM,MAAM;GACZ,cAAY;GACZ,SAAQ;GACR,WAAW,GAAG,cAAc,SAAS;EACtC,CAAA,GACD,oBAAC,qBAAD;GACE,WAAU;GACV,eAAc;GACd,wBAAA;GACA,cAAc,CAAC,KAAK;GACD;GAElB,UAAA,QAAQ,KAAK,OACZ,oBAAC,kBAAD;IAA+B;IAAI,MAAM,MAAM;IAC5C,UAAA,KAAK;GACU,GAFK,EAEL,CACnB;EACkB,CAAA,CACT;;AAElB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { LinkComponent, NavLink } from './types';
|
|
3
|
+
export interface TopNavLabels {
|
|
4
|
+
openMenu: string;
|
|
5
|
+
closeMenu: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TopNavProps {
|
|
8
|
+
productName: string;
|
|
9
|
+
/** Logo before the product name. Defaults to the shared BrandLogo. */
|
|
10
|
+
logo?: ReactNode;
|
|
11
|
+
/** Where the logo and product name link to. */
|
|
12
|
+
homeHref?: string;
|
|
13
|
+
links?: NavLink[];
|
|
14
|
+
/** Your router's link, such as Next.js `Link` or React Router's `Link`. */
|
|
15
|
+
LinkComponent?: LinkComponent;
|
|
16
|
+
/**
|
|
17
|
+
* Middle slot between the links and the actions, such as a search field or a
|
|
18
|
+
* command palette button. Shown from the md breakpoint and at the top of the
|
|
19
|
+
* mobile menu.
|
|
20
|
+
*/
|
|
21
|
+
center?: ReactNode;
|
|
22
|
+
/** Right hand slot, usually ProjectSwitcher and ThemeToggle. Shown from the md breakpoint and in the mobile menu. */
|
|
23
|
+
actions?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Controls that stay in the bar below the md breakpoint, next to the menu
|
|
26
|
+
* button, such as `<ThemeToggle compact />`. Hidden from md up, where
|
|
27
|
+
* `actions` takes over, so do not repeat a control in both.
|
|
28
|
+
*/
|
|
29
|
+
compactActions?: ReactNode;
|
|
30
|
+
/** Extra content for the mobile menu, such as the app's SidebarNav. */
|
|
31
|
+
mobileMenu?: ReactNode;
|
|
32
|
+
/** Accessible name of the primary navigation. */
|
|
33
|
+
navLabel?: string;
|
|
34
|
+
/** Translated texts. Missing keys keep the English default. */
|
|
35
|
+
labels?: Partial<TopNavLabels>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Top bar shared by every project: logo and product name, primary links, a
|
|
39
|
+
* right hand slot for ProjectSwitcher and ThemeToggle, and below the md
|
|
40
|
+
* breakpoint a menu button that opens the same content in a Drawer.
|
|
41
|
+
*/
|
|
42
|
+
export declare function TopNav({ productName, logo, homeHref, links, LinkComponent, center, actions, compactActions, mobileMenu, navLabel, labels, }: TopNavProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Anchor } from "./Anchor.js";
|
|
3
|
+
import { BrandLogo } from "./BrandLogo.js";
|
|
4
|
+
import { Suspense, lazy, useState } from "react";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Menu } from "lucide-react";
|
|
7
|
+
// src/chrome/TopNav.tsx
|
|
8
|
+
var MobileMenu = lazy(() => import("./MobileMenu.js").then((module) => ({ default: module.MobileMenu })));
|
|
9
|
+
var defaultLabels = {
|
|
10
|
+
openMenu: "Open menu",
|
|
11
|
+
closeMenu: "Close menu"
|
|
12
|
+
};
|
|
13
|
+
var header = "sticky top-0 z-40 border-b border-default bg-secondary/90 backdrop-blur";
|
|
14
|
+
var bar = "mx-auto flex h-14 w-full max-w-6xl items-center gap-3 px-4 sm:px-6 lg:px-8";
|
|
15
|
+
var brand = ["flex min-w-0 items-center gap-2 rounded-md font-display text-md font-semibold text-primary", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"].join(" ");
|
|
16
|
+
var desktopNav = "ml-4 hidden md:block";
|
|
17
|
+
var desktopList = "flex items-center gap-1";
|
|
18
|
+
var navLink = [
|
|
19
|
+
"block rounded-md px-3 py-1.5 text-sm font-medium text-tertiary hover:bg-hover hover:text-primary",
|
|
20
|
+
"aria-[current=page]:text-brand",
|
|
21
|
+
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
|
|
22
|
+
].join(" ");
|
|
23
|
+
var spacer = "flex-1";
|
|
24
|
+
var desktopSpacer = "hidden flex-1 md:block";
|
|
25
|
+
var desktopCenter = "hidden min-w-0 items-center md:flex";
|
|
26
|
+
var desktopActions = "hidden items-center gap-2 md:flex";
|
|
27
|
+
var menuButton = ["inline-flex size-control-md cursor-pointer items-center justify-center rounded-md text-secondary hover:bg-hover hover:text-primary md:hidden", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"].join(" ");
|
|
28
|
+
var compactBar = "flex items-center gap-1 md:hidden";
|
|
29
|
+
/**
|
|
30
|
+
* Top bar shared by every project: logo and product name, primary links, a
|
|
31
|
+
* right hand slot for ProjectSwitcher and ThemeToggle, and below the md
|
|
32
|
+
* breakpoint a menu button that opens the same content in a Drawer.
|
|
33
|
+
*/
|
|
34
|
+
function TopNav({ productName, logo = /* @__PURE__ */ jsx(BrandLogo, { size: 32 }), homeHref = "/", links = [], LinkComponent = Anchor, center, actions, compactActions, mobileMenu, navLabel = "Main", labels }) {
|
|
35
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
36
|
+
const [hasOpened, setHasOpened] = useState(false);
|
|
37
|
+
const text = {
|
|
38
|
+
...defaultLabels,
|
|
39
|
+
...labels
|
|
40
|
+
};
|
|
41
|
+
function handleOpenMenu() {
|
|
42
|
+
setHasOpened(true);
|
|
43
|
+
setIsOpen(true);
|
|
44
|
+
}
|
|
45
|
+
return /* @__PURE__ */ jsx("header", {
|
|
46
|
+
className: header,
|
|
47
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
48
|
+
className: bar,
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsxs(LinkComponent, {
|
|
51
|
+
href: homeHref,
|
|
52
|
+
className: brand,
|
|
53
|
+
children: [logo, /* @__PURE__ */ jsx("span", {
|
|
54
|
+
className: "truncate",
|
|
55
|
+
children: productName
|
|
56
|
+
})]
|
|
57
|
+
}),
|
|
58
|
+
links.length > 0 && /* @__PURE__ */ jsx("nav", {
|
|
59
|
+
"aria-label": navLabel,
|
|
60
|
+
className: desktopNav,
|
|
61
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
62
|
+
className: desktopList,
|
|
63
|
+
children: links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(LinkComponent, {
|
|
64
|
+
href: link.href,
|
|
65
|
+
className: navLink,
|
|
66
|
+
"aria-current": link.isCurrent ? "page" : void 0,
|
|
67
|
+
children: link.label
|
|
68
|
+
}) }, link.href))
|
|
69
|
+
})
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ jsx("div", { className: spacer }),
|
|
72
|
+
center && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
73
|
+
className: desktopCenter,
|
|
74
|
+
children: center
|
|
75
|
+
}), /* @__PURE__ */ jsx("div", { className: desktopSpacer })] }),
|
|
76
|
+
actions && /* @__PURE__ */ jsx("div", {
|
|
77
|
+
className: desktopActions,
|
|
78
|
+
children: actions
|
|
79
|
+
}),
|
|
80
|
+
compactActions && /* @__PURE__ */ jsx("div", {
|
|
81
|
+
className: compactBar,
|
|
82
|
+
children: compactActions
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ jsx("button", {
|
|
85
|
+
type: "button",
|
|
86
|
+
"aria-label": text.openMenu,
|
|
87
|
+
"aria-haspopup": "dialog",
|
|
88
|
+
"aria-expanded": isOpen,
|
|
89
|
+
className: menuButton,
|
|
90
|
+
onClick: handleOpenMenu,
|
|
91
|
+
children: /* @__PURE__ */ jsx(Menu, {
|
|
92
|
+
"aria-hidden": "true",
|
|
93
|
+
className: "size-5"
|
|
94
|
+
})
|
|
95
|
+
}),
|
|
96
|
+
hasOpened && /* @__PURE__ */ jsx(Suspense, {
|
|
97
|
+
fallback: null,
|
|
98
|
+
children: /* @__PURE__ */ jsx(MobileMenu, {
|
|
99
|
+
isOpen,
|
|
100
|
+
onOpenChange: setIsOpen,
|
|
101
|
+
productName,
|
|
102
|
+
closeLabel: text.closeMenu,
|
|
103
|
+
navLabel,
|
|
104
|
+
links,
|
|
105
|
+
LinkComponent,
|
|
106
|
+
center,
|
|
107
|
+
actions,
|
|
108
|
+
mobileMenu
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
})
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
export { TopNav };
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=TopNav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopNav.js","names":["_Fragment"],"sources":["../../src/chrome/TopNav.tsx"],"sourcesContent":["import { Menu } from 'lucide-react';\nimport { lazy, Suspense, useState, type ReactNode } from 'react';\nimport { Anchor } from './Anchor';\nimport { BrandLogo } from './BrandLogo';\nimport type { LinkComponent, NavLink } from './types';\n\n// Loaded on the first press of the menu button, so the Drawer stays out of the first chunk.\nconst MobileMenu = lazy(() =>\n import('./MobileMenu').then((module) => ({ default: module.MobileMenu })),\n);\n\nexport interface TopNavLabels {\n openMenu: string;\n closeMenu: string;\n}\n\nexport interface TopNavProps {\n productName: string;\n /** Logo before the product name. Defaults to the shared BrandLogo. */\n logo?: ReactNode;\n /** Where the logo and product name link to. */\n homeHref?: string;\n links?: NavLink[];\n /** Your router's link, such as Next.js `Link` or React Router's `Link`. */\n LinkComponent?: LinkComponent;\n /**\n * Middle slot between the links and the actions, such as a search field or a\n * command palette button. Shown from the md breakpoint and at the top of the\n * mobile menu.\n */\n center?: ReactNode;\n /** Right hand slot, usually ProjectSwitcher and ThemeToggle. Shown from the md breakpoint and in the mobile menu. */\n actions?: ReactNode;\n /**\n * Controls that stay in the bar below the md breakpoint, next to the menu\n * button, such as `<ThemeToggle compact />`. Hidden from md up, where\n * `actions` takes over, so do not repeat a control in both.\n */\n compactActions?: ReactNode;\n /** Extra content for the mobile menu, such as the app's SidebarNav. */\n mobileMenu?: ReactNode;\n /** Accessible name of the primary navigation. */\n navLabel?: string;\n /** Translated texts. Missing keys keep the English default. */\n labels?: Partial<TopNavLabels>;\n}\n\nconst defaultLabels: TopNavLabels = { openMenu: 'Open menu', closeMenu: 'Close menu' };\n\nconst header = 'sticky top-0 z-40 border-b border-default bg-secondary/90 backdrop-blur';\nconst bar = 'mx-auto flex h-14 w-full max-w-6xl items-center gap-3 px-4 sm:px-6 lg:px-8';\nconst brand = [\n 'flex min-w-0 items-center gap-2 rounded-md font-display text-md font-semibold text-primary',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n].join(' ');\nconst desktopNav = 'ml-4 hidden md:block';\nconst desktopList = 'flex items-center gap-1';\nconst navLink = [\n 'block rounded-md px-3 py-1.5 text-sm font-medium text-tertiary hover:bg-hover hover:text-primary',\n 'aria-[current=page]:text-brand',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n].join(' ');\nconst spacer = 'flex-1';\nconst desktopSpacer = 'hidden flex-1 md:block';\nconst desktopCenter = 'hidden min-w-0 items-center md:flex';\nconst desktopActions = 'hidden items-center gap-2 md:flex';\n// A native button keeps react-aria-components out of the first load of a page that never opens the menu.\nconst menuButton = [\n 'inline-flex size-control-md cursor-pointer items-center justify-center rounded-md text-secondary hover:bg-hover hover:text-primary md:hidden',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n].join(' ');\nconst compactBar = 'flex items-center gap-1 md:hidden';\n\n/**\n * Top bar shared by every project: logo and product name, primary links, a\n * right hand slot for ProjectSwitcher and ThemeToggle, and below the md\n * breakpoint a menu button that opens the same content in a Drawer.\n */\nexport function TopNav({\n productName,\n logo = <BrandLogo size={32} />,\n homeHref = '/',\n links = [],\n LinkComponent = Anchor,\n center,\n actions,\n compactActions,\n mobileMenu,\n navLabel = 'Main',\n labels,\n}: TopNavProps) {\n const [isOpen, setIsOpen] = useState(false);\n const [hasOpened, setHasOpened] = useState(false);\n const text = { ...defaultLabels, ...labels };\n\n function handleOpenMenu() {\n setHasOpened(true);\n setIsOpen(true);\n }\n\n return (\n <header className={header}>\n <div className={bar}>\n <LinkComponent href={homeHref} className={brand}>\n {logo}\n <span className='truncate'>{productName}</span>\n </LinkComponent>\n {links.length > 0 && (\n <nav aria-label={navLabel} className={desktopNav}>\n <ul className={desktopList}>\n {links.map((link) => (\n <li key={link.href}>\n <LinkComponent\n href={link.href}\n className={navLink}\n aria-current={link.isCurrent ? 'page' : undefined}\n >\n {link.label}\n </LinkComponent>\n </li>\n ))}\n </ul>\n </nav>\n )}\n <div className={spacer} />\n {center && (\n <>\n <div className={desktopCenter}>{center}</div>\n <div className={desktopSpacer} />\n </>\n )}\n {actions && <div className={desktopActions}>{actions}</div>}\n {compactActions && <div className={compactBar}>{compactActions}</div>}\n <button\n type='button'\n aria-label={text.openMenu}\n aria-haspopup='dialog'\n aria-expanded={isOpen}\n className={menuButton}\n onClick={handleOpenMenu}\n >\n <Menu aria-hidden='true' className='size-5' />\n </button>\n {hasOpened && (\n <Suspense fallback={null}>\n <MobileMenu\n isOpen={isOpen}\n onOpenChange={setIsOpen}\n productName={productName}\n closeLabel={text.closeMenu}\n navLabel={navLabel}\n links={links}\n LinkComponent={LinkComponent}\n center={center}\n actions={actions}\n mobileMenu={mobileMenu}\n />\n </Suspense>\n )}\n </div>\n </header>\n );\n}\n"],"mappings":";;;;;;;AAOA,IAAM,aAAa,WACjB,OAAO,kBAAe,CAAC,MAAM,YAAY,EAAE,SAAS,OAAO,WA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,KAAK;MACO,CAAA,EACb,GARK,KAAK,IAQV,CACL;KACC,CAAA;IACD,CAAA;IAEP,oBAAC,OAAD,EAAK,WAAW,OAAS,CAAA;IACxB,UACC,qBAAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;KAAK,WAAW;KAAgB,UAAA;IAAY,CAAA,GAC5C,oBAAC,OAAD,EAAK,WAAW,cAAgB,CAAA,CAChC,EAAA,CAAA;IAEH,WAAW,oBAAC,OAAD;KAAK,WAAW;KAAiB,UAAA;IAAa,CAAA;IACzD,kBAAkB,oBAAC,OAAD;KAAK,WAAW;KAAa,UAAA;IAAoB,CAAA;IACpE,oBAAC,UAAD;KACE,MAAK;KACL,cAAY,KAAK;KACjB,iBAAc;KACd,iBAAe;KACf,WAAW;KACX,SAAS;KAET,UAAA,oBAAC,MAAD;MAAM,eAAY;MAAO,WAAU;KAAU,CAAA;IACvC,CAAA;IACP,aACC,oBAAC,UAAD;KAAU,UAAU;KAClB,UAAA,oBAAC,YAAD;MACU;MACR,cAAc;MACD;MACb,YAAY,KAAK;MACP;MACH;MACQ;MACP;MACC;MACG;KACb,CAAA;IACO,CAAA;GAET;;CACC,CAAA;AAEZ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/** The EG horse logo outline, traced from the chosen draft. One path, one colour. */
|
|
2
|
+
export declare const brandLogoPath = "M24.3 93.8c-1.3-.1 -2.8-.2 -3.4-.3c-1.4-.2 -1.6-.2 -2.9-.4c-.8-.1 -1.3-.2 -1.6-.3c-.1 0 -.3-.1 -.5-.2c-.2 0 -.5-.1 -.7-.1c-.2-.1 -.6-.2 -.8-.3c-.1 0 -.4-.1 -.5-.1c-.1-.1 -.4-.2 -.8-.3c-.6-.2 -1.2-.4 -1.5-.6c-.5-.2 -2.1-1 -2.4-1.2c-.4-.2 -1.5-.9 -1.7-1.1c-.1 0 -.2-.1 -.3-.2c-.3-.2 -.8-.6 -1.1-.9c-.2-.2 -.4-.3 -.5-.4c-.4-.4 -1.4-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-.7-.1z";
|
|
5
|
+
export { brandLogoPath };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=brandLogoPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brandLogoPath.js","names":[],"sources":["../../src/chrome/brandLogoPath.ts"],"sourcesContent":["/** The EG horse logo outline, traced from the chosen draft. One path, one colour. */\nexport const brandLogoPath =\n 'M24.3 93.8c-1.3-.1 -2.8-.2 -3.4-.3c-1.4-.2 -1.6-.2 -2.9-.4c-.8-.1 -1.3-.2 -1.6-.3c-.1 0 -.3-.1 -.5-.2c-.2 0 -.5-.1 -.7-.1c-.2-.1 -.6-.2 -.8-.3c-.1 0 -.4-.1 -.5-.1c-.1-.1 -.4-.2 -.8-.3c-.6-.2 -1.2-.4 -1.5-.6c-.5-.2 -2.1-1 -2.4-1.2c-.4-.2 -1.5-.9 -1.7-1.1c-.1 0 -.2-.1 -.3-.2c-.3-.2 -.8-.6 -1.1-.9c-.2-.2 -.4-.3 -.5-.4c-.4-.4 -1.4-1.6 -1.8-2.1c-.6-.9 -1.4-2.5 -1.5-2.9c0-.1 -.1-.2 -.1-.3c-.3-.5 -.6-2.1 -.8-3.2c-.1-.5 -.1-2.3 0-2.7c0-.2 .1-.6 .1-.8c.2-1.6 .7-3.1 1.4-4.7c.3-.7 .7-1.4 .8-1.6c.1-.1 .1-.2 .1-.2c0 0 .1-.1 .1-.2c.1-.1 .3-.4 .5-.6c1-1.5 1.5-2.3 3.1-4.1c.5-.4 2.3-2.3 2.7-2.6c.2-.2 .6-.5 .9-.8c1.8-1.7 2.5-2.3 3.5-3c.3-.3 .6-.5 .7-.6c0 0 .2-.2 .4-.4c.3-.1 .7-.5 1-.7c.3-.2 .7-.5 .8-.6c.2-.2 .7-.5 1.1-.8c1.4-1 1.7-1.2 3-2.1c1.7-1.2 2.6-1.7 2.8-1.9c.1 0 .4-.2 .7-.4c.5-.3 2.3-1.3 2.8-1.6c.3-.2 .6-.3 .9-.5c.2-.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6 2-5.3c.1-.1 .2-.2 .2-.3c.2-.3 .7-1 1.2-1.7c.7-.9 2.8-3 3-3c0 0 .1 0 .1 .1c-.2 .8 -.2 3.2 .1 4.2c0 .1 .1 .5 .2 .9c.2 .8 .6 1.9 1.1 3.2c0 .3 1.3 2.8 1.5 3.2c.1 .2 .2 .3 .2 .4c.5 .7 1.5 2.2 2.3 3.2c1 1.2 1.4 1.8 1.8 2.1c.1 .2 .6 .6 .9 1c.3 .4 .7 .8 .8 .9c.1 .1 .3 .3 .4 .4c.8 .9 3.1 3.9 3.6 4.8c0 .1 .1 .3 .2 .4c.1 .2 .4 .7 .4 .8c0 0 .1 .2 .2 .4c.5 .7 1.4 2.5 1.9 3.6c.2 .6 .5 1.3 .6 1.5c.1 .2 .3 .6 .5 1c.6 1.3 1.4 3 1.9 3.8c.1 .3 .3 .6 .3 .7c.1 .2 .2 .4 .5 .8c.1 .1 .1 .2 .2 .3c0 .1 .1 .2 .1 .3c.6 .8 1.5 2.3 1.8 2.7c.1 .1 .3 .4 .5 .6c.3 .5 .5 .8 .8 1.1c.1 .2 .3 .5 .4 .6c.1 .2 .4 .6 .6 .8c.2 .3 .5 .7 .7 .9c.3 .5 .5 .7 2.1 2.6c.6 .8 1.2 1.5 1.3 1.6c1.2 1.6 1.7 2.3 2.1 3c.1 .3 .2 .6 .3 .7c.1 .3 .4 1.3 .6 1.8c.1 .5 .1 1.9 0 2.6c-.3 1.9 -1.3 3.7 -2.9 4.9c-.7 .6 -1.6 1.1 -2.8 1.4c-.2 .1 -1.5 .2 -1.6 .2c-.1 0 -.3 0 -.7-.1z';\n"],"mappings":";;;AACA,IAAa,gBACX"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { AppShell } from './AppShell';
|
|
2
|
+
export type { AppShellMaxWidth, AppShellProps } from './AppShell';
|
|
3
|
+
export { BrandLogo } from './BrandLogo';
|
|
4
|
+
export type { BrandLogoProps } from './BrandLogo';
|
|
5
|
+
export { BrandMark } from './BrandMark';
|
|
6
|
+
export { isAbsoluteHref, LinkRouter } from './LinkRouter';
|
|
7
|
+
export type { LinkRouterProps } from './LinkRouter';
|
|
8
|
+
export type { BrandMarkProps } from './BrandMark';
|
|
9
|
+
export { ProjectSwitcher } from './ProjectSwitcher';
|
|
10
|
+
export type { ProjectSwitcherLabels, ProjectSwitcherProps } from './ProjectSwitcher';
|
|
11
|
+
export { profileLinks, projectHref, projects } from './projects';
|
|
12
|
+
export type { Project } from './projects';
|
|
13
|
+
export { SidebarNav } from './SidebarNav';
|
|
14
|
+
export type { SidebarNavItem, SidebarNavProps, SidebarNavSection } from './SidebarNav';
|
|
15
|
+
export { SiteFooter } from './SiteFooter';
|
|
16
|
+
export type { SiteFooterLabels, SiteFooterProps } from './SiteFooter';
|
|
17
|
+
export { TextSizeToggle } from './TextSizeToggle';
|
|
18
|
+
export type { TextSizeToggleProps } from './TextSizeToggle';
|
|
19
|
+
export { darkModeClass, textSizeStorageKey, themeInitScript, themeStorageKey } from './themeScript';
|
|
20
|
+
export { ThemeToggle } from './ThemeToggle';
|
|
21
|
+
export type { ThemeToggleLabels, ThemeToggleProps } from './ThemeToggle';
|
|
22
|
+
export { useTheme } from './useTheme';
|
|
23
|
+
export type { ResolvedTheme, ThemePreference, UseTheme } from './useTheme';
|
|
24
|
+
export { useTextSize } from './useTextSize';
|
|
25
|
+
export type { UseTextSize } from './useTextSize';
|
|
26
|
+
export { TopNav } from './TopNav';
|
|
27
|
+
export type { TopNavLabels, TopNavProps } from './TopNav';
|
|
28
|
+
export type { LinkComponent, LinkProps, NavLink } from './types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppShell } from "./AppShell.js";
|
|
2
|
+
import { BrandLogo } from "./BrandLogo.js";
|
|
3
|
+
import { BrandMark } from "./BrandMark.js";
|
|
4
|
+
import { LinkRouter, isAbsoluteHref } from "./LinkRouter.js";
|
|
5
|
+
import { ProjectSwitcher } from "./ProjectSwitcher.js";
|
|
6
|
+
import { profileLinks, projectHref, projects } from "./projects.js";
|
|
7
|
+
import { SidebarNav } from "./SidebarNav.js";
|
|
8
|
+
import { SiteFooter } from "./SiteFooter.js";
|
|
9
|
+
import { TextSizeToggle } from "./TextSizeToggle.js";
|
|
10
|
+
import { darkModeClass, textSizeStorageKey, themeInitScript, themeStorageKey } from "./themeScript.js";
|
|
11
|
+
import { ThemeToggle } from "./ThemeToggle.js";
|
|
12
|
+
import { useTheme } from "./useTheme.js";
|
|
13
|
+
import { useTextSize } from "./useTextSize.js";
|
|
14
|
+
import { TopNav } from "./TopNav.js";
|
|
15
|
+
export { AppShell, BrandLogo, BrandMark, LinkRouter, ProjectSwitcher, SidebarNav, SiteFooter, TextSizeToggle, ThemeToggle, TopNav, darkModeClass, isAbsoluteHref, profileLinks, projectHref, projects, textSizeStorageKey, themeInitScript, themeStorageKey, useTextSize, useTheme };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { VariantName } from '../styles/themes/variants';
|
|
2
|
+
export interface Project {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
/** One line, sentence case, no trailing full stop. */
|
|
6
|
+
description: string;
|
|
7
|
+
/** Live URL, or null while the project is not deployed yet. */
|
|
8
|
+
url: string | null;
|
|
9
|
+
/** Where the project will live once deployed. Shown nowhere until it is live. */
|
|
10
|
+
plannedUrl?: string;
|
|
11
|
+
/** Theme variant the project uses, or null for the library's own Storybook. */
|
|
12
|
+
variant: VariantName | null;
|
|
13
|
+
repoUrl: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Eylül Güneş's projects, as listed by ProjectSwitcher and SiteFooter.
|
|
17
|
+
* Vercel style URLs are placeholders until each app is deployed; they change
|
|
18
|
+
* again when the custom domain arrives. Pass your own list to either
|
|
19
|
+
* component to override it.
|
|
20
|
+
*/
|
|
21
|
+
export declare const projects: Project[];
|
|
22
|
+
export declare const profileLinks: {
|
|
23
|
+
readonly github: "https://github.com/eylulg";
|
|
24
|
+
readonly linkedin: "https://www.linkedin.com/in/eylul-gunes";
|
|
25
|
+
readonly storybook: "https://eylulg.github.io/ui/";
|
|
26
|
+
};
|
|
27
|
+
/** The live URL when there is one, otherwise the repository. */
|
|
28
|
+
export declare function projectHref(project: Pick<Project, 'url' | 'repoUrl'>): string;
|