@eylulg/ui 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -223
- package/dist/components/{Avatar → atoms/Avatar}/Avatar.d.ts +3 -1
- package/dist/components/{Avatar → atoms/Avatar}/Avatar.js +4 -4
- package/dist/components/atoms/Avatar/Avatar.js.map +1 -0
- package/dist/components/{Avatar → atoms/Avatar}/index.d.ts +1 -1
- package/dist/components/atoms/Avatar/index.js +2 -0
- package/dist/components/{Badge → atoms/Badge}/Badge.d.ts +10 -6
- package/dist/components/{Badge → atoms/Badge}/Badge.js +12 -16
- package/dist/components/atoms/Badge/Badge.js.map +1 -0
- package/dist/components/atoms/Badge/index.d.ts +2 -0
- package/dist/components/atoms/BrandLoader/BrandLoader.d.ts +14 -0
- package/dist/components/atoms/BrandLoader/BrandLoader.js +57 -0
- package/dist/components/atoms/BrandLoader/BrandLoader.js.map +1 -0
- package/dist/components/atoms/BrandLoader/index.d.ts +2 -0
- package/dist/components/atoms/BrandLoader/index.js +2 -0
- package/dist/{chrome → components/atoms/BrandLogo}/BrandLogo.d.ts +1 -1
- package/dist/{chrome → components/atoms/BrandLogo}/BrandLogo.js +3 -4
- package/dist/components/atoms/BrandLogo/BrandLogo.js.map +1 -0
- package/dist/components/atoms/BrandLogo/index.d.ts +2 -0
- package/dist/components/atoms/BrandLogo/index.js +1 -0
- package/dist/components/{Button → atoms/Button}/Button.d.ts +13 -9
- package/dist/components/atoms/Button/Button.js +88 -0
- package/dist/components/atoms/Button/Button.js.map +1 -0
- package/dist/components/{Button → atoms/Button}/buttonStyles.d.ts +4 -6
- package/dist/components/atoms/Button/buttonStyles.js +25 -0
- package/dist/components/atoms/Button/buttonStyles.js.map +1 -0
- package/dist/components/atoms/Button/index.d.ts +2 -0
- package/dist/components/atoms/Button/index.js +4 -0
- package/dist/components/{Checkbox → atoms/Checkbox}/Checkbox.js +10 -14
- package/dist/components/atoms/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/atoms/IconButton/IconButton.d.ts +21 -0
- package/dist/components/atoms/IconButton/IconButton.js +43 -0
- package/dist/components/atoms/IconButton/IconButton.js.map +1 -0
- package/dist/components/{Kbd → atoms/Kbd}/Kbd.d.ts +2 -2
- package/dist/components/{Kbd → atoms/Kbd}/Kbd.js +9 -8
- package/dist/components/atoms/Kbd/Kbd.js.map +1 -0
- package/dist/components/atoms/NavItem/NavItem.d.ts +24 -0
- package/dist/components/atoms/NavItem/NavItem.js +42 -0
- package/dist/components/atoms/NavItem/NavItem.js.map +1 -0
- package/dist/components/atoms/NavItem/index.d.ts +2 -0
- package/dist/components/atoms/NavItem/index.js +1 -0
- package/dist/components/{ProgressBar → atoms/ProgressBar}/ProgressBar.d.ts +2 -2
- package/dist/components/{ProgressBar → atoms/ProgressBar}/ProgressBar.js +6 -5
- package/dist/components/atoms/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/atoms/ProgressBar/index.d.ts +2 -0
- package/dist/components/{Skeleton → atoms/Skeleton}/Skeleton.js +3 -5
- package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/{Spinner → atoms/Spinner}/Spinner.js +2 -2
- package/dist/components/atoms/Spinner/Spinner.js.map +1 -0
- package/dist/components/{Switch → atoms/Switch}/Switch.d.ts +3 -3
- package/dist/components/atoms/Switch/Switch.js +35 -0
- package/dist/components/atoms/Switch/Switch.js.map +1 -0
- package/dist/components/atoms/TextLink/TextLink.d.ts +18 -0
- package/dist/components/atoms/TextLink/TextLink.js +21 -0
- package/dist/components/atoms/TextLink/TextLink.js.map +1 -0
- package/dist/components/atoms/TextLink/index.d.ts +2 -0
- package/dist/components/atoms/TextLink/index.js +1 -0
- package/dist/components/{Tooltip → atoms/Tooltip}/Tooltip.js +4 -4
- package/dist/components/atoms/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/{Tooltip → atoms/Tooltip}/TooltipOverlay.js +2 -2
- package/dist/components/atoms/Tooltip/TooltipOverlay.js.map +1 -0
- package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/Breadcrumbs.js +5 -4
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/components/{Card → molecules/Card}/Card.d.ts +3 -1
- package/dist/components/{Card → molecules/Card}/Card.js +21 -13
- package/dist/components/molecules/Card/Card.js.map +1 -0
- package/dist/components/molecules/Card/index.d.ts +2 -0
- package/dist/components/{CodeBlock → molecules/CodeBlock}/CodeBlock.d.ts +7 -5
- package/dist/components/{CodeBlock → molecules/CodeBlock}/CodeBlock.js +20 -12
- package/dist/components/molecules/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/components/{Combobox → molecules/Combobox}/Combobox.d.ts +4 -1
- package/dist/components/molecules/Combobox/Combobox.js +91 -0
- package/dist/components/molecules/Combobox/Combobox.js.map +1 -0
- package/dist/components/{DatePicker → molecules/DatePicker}/DatePicker.d.ts +7 -4
- package/dist/components/molecules/DatePicker/DatePicker.js +138 -0
- package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/molecules/Dialog/Dialog.d.ts +20 -0
- package/dist/components/{Dialog → molecules/Dialog}/Dialog.js +7 -7
- package/dist/components/molecules/Dialog/Dialog.js.map +1 -0
- package/dist/components/molecules/Dialog/DialogOverlay.d.ts +3 -0
- package/dist/components/molecules/Dialog/DialogOverlay.js +60 -0
- package/dist/components/molecules/Dialog/DialogOverlay.js.map +1 -0
- package/dist/components/molecules/Drawer/Drawer.d.ts +21 -0
- package/dist/components/{Drawer → molecules/Drawer}/Drawer.js +7 -7
- package/dist/components/molecules/Drawer/Drawer.js.map +1 -0
- package/dist/components/{Drawer → molecules/Drawer}/DrawerOverlay.d.ts +1 -1
- package/dist/components/molecules/Drawer/DrawerOverlay.js +66 -0
- package/dist/components/molecules/Drawer/DrawerOverlay.js.map +1 -0
- package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenu.d.ts +8 -9
- package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenu.js +8 -20
- package/dist/components/molecules/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenuParts.d.ts +1 -1
- package/dist/components/{DropdownMenu → molecules/DropdownMenu}/DropdownMenuParts.js +17 -28
- package/dist/components/molecules/DropdownMenu/DropdownMenuParts.js.map +1 -0
- package/dist/components/{EmptyState → molecules/EmptyState}/EmptyState.d.ts +3 -4
- package/dist/components/{EmptyState → molecules/EmptyState}/EmptyState.js +6 -5
- package/dist/components/molecules/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/{FileDropZone → molecules/FileDropZone}/FileDropZone.d.ts +1 -1
- package/dist/components/{FileDropZone → molecules/FileDropZone}/FileDropZone.js +6 -5
- package/dist/components/molecules/FileDropZone/FileDropZone.js.map +1 -0
- package/dist/components/{Input → molecules/Input}/Input.d.ts +8 -6
- package/dist/components/molecules/Input/Input.js +45 -0
- package/dist/components/molecules/Input/Input.js.map +1 -0
- package/dist/components/molecules/Input/index.d.ts +2 -0
- package/dist/components/{Pagination → molecules/Pagination}/Pagination.d.ts +6 -2
- package/dist/components/{Pagination → molecules/Pagination}/Pagination.js +44 -34
- package/dist/components/molecules/Pagination/Pagination.js.map +1 -0
- package/dist/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/components/molecules/Pagination/index.js +2 -0
- package/dist/components/{Popover → molecules/Popover}/Popover.d.ts +1 -1
- package/dist/components/{Popover → molecules/Popover}/Popover.js +7 -7
- package/dist/components/molecules/Popover/Popover.js.map +1 -0
- package/dist/components/{Popover → molecules/Popover}/PopoverOverlay.js +5 -4
- package/dist/components/molecules/Popover/PopoverOverlay.js.map +1 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.js +43 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/{SegmentedControl → molecules/SegmentedControl}/SegmentedControl.d.ts +6 -7
- package/dist/components/molecules/SegmentedControl/SegmentedControl.js +71 -0
- package/dist/components/molecules/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/components/molecules/SegmentedControl/index.d.ts +2 -0
- package/dist/components/{Select → molecules/Select}/Select.d.ts +4 -1
- package/dist/components/molecules/Select/Select.js +58 -0
- package/dist/components/molecules/Select/Select.js.map +1 -0
- package/dist/components/molecules/Stat/Stat.d.ts +36 -0
- package/dist/components/molecules/Stat/Stat.js +85 -0
- package/dist/components/molecules/Stat/Stat.js.map +1 -0
- package/dist/components/molecules/Stat/index.d.ts +2 -0
- package/dist/components/molecules/Stat/index.js +2 -0
- package/dist/components/{Tabs → molecules/Tabs}/Tabs.js +5 -5
- package/dist/components/molecules/Tabs/Tabs.js.map +1 -0
- package/dist/components/molecules/Tag/Tag.js +49 -0
- package/dist/components/molecules/Tag/Tag.js.map +1 -0
- package/dist/components/{Textarea → molecules/Textarea}/Textarea.d.ts +3 -11
- package/dist/components/molecules/Textarea/Textarea.js +29 -0
- package/dist/components/molecules/Textarea/Textarea.js.map +1 -0
- package/dist/components/molecules/Textarea/index.d.ts +2 -0
- package/dist/components/{Toast → molecules/Toast}/Toast.d.ts +12 -8
- package/dist/components/{Toast → molecules/Toast}/Toast.js +13 -18
- package/dist/components/molecules/Toast/Toast.js.map +1 -0
- package/dist/components/molecules/Toast/ToastItem.d.ts +6 -0
- package/dist/components/{Toast → molecules/Toast}/ToastItem.js +25 -27
- package/dist/components/molecules/Toast/ToastItem.js.map +1 -0
- package/dist/components/{Toast → molecules/Toast}/index.d.ts +1 -1
- package/dist/components/{Chart → organisms/Chart}/BarChart.d.ts +1 -1
- package/dist/components/organisms/Chart/BarChart.js +304 -0
- package/dist/components/organisms/Chart/BarChart.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/ChartFrame.d.ts +2 -2
- package/dist/components/{Chart → organisms/Chart}/ChartFrame.js +14 -18
- package/dist/components/organisms/Chart/ChartFrame.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/ChartLegend.d.ts +3 -2
- package/dist/components/{Chart → organisms/Chart}/ChartLegend.js +2 -2
- package/dist/components/organisms/Chart/ChartLegend.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/ChartTable.js +8 -12
- package/dist/components/organisms/Chart/ChartTable.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/ChartTooltip.d.ts +3 -2
- package/dist/components/{Chart → organisms/Chart}/ChartTooltip.js +3 -3
- package/dist/components/organisms/Chart/ChartTooltip.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/HeatGrid.d.ts +6 -3
- package/dist/components/organisms/Chart/HeatGrid.js +235 -0
- package/dist/components/organisms/Chart/HeatGrid.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/LineChart.d.ts +1 -1
- package/dist/components/organisms/Chart/LineChart.js +227 -0
- package/dist/components/organisms/Chart/LineChart.js.map +1 -0
- package/dist/components/organisms/Chart/Sparkline.d.ts +14 -0
- package/dist/components/organisms/Chart/Sparkline.js +39 -0
- package/dist/components/organisms/Chart/Sparkline.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/format.d.ts +2 -0
- package/dist/components/{Chart → organisms/Chart}/format.js +6 -4
- package/dist/components/organisms/Chart/format.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/geometry.js +1 -1
- package/dist/components/organisms/Chart/geometry.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/index.d.ts +2 -2
- package/dist/components/{Chart → organisms/Chart}/index.js +2 -2
- package/dist/components/{Chart → organisms/Chart}/interaction.d.ts +10 -6
- package/dist/components/{Chart → organisms/Chart}/interaction.js +13 -10
- package/dist/components/organisms/Chart/interaction.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/labels.js +1 -1
- package/dist/components/organisms/Chart/labels.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/scale.js +1 -1
- package/dist/components/organisms/Chart/scale.js.map +1 -0
- package/dist/components/organisms/Chart/series.d.ts +30 -0
- package/dist/components/organisms/Chart/series.js +108 -0
- package/dist/components/organisms/Chart/series.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/summary.js +2 -5
- package/dist/components/organisms/Chart/summary.js.map +1 -0
- package/dist/components/{Chart → organisms/Chart}/types.d.ts +2 -2
- package/dist/components/{Chart → organisms/Chart}/useElementWidth.js +1 -1
- package/dist/components/organisms/Chart/useElementWidth.js.map +1 -0
- package/dist/components/{CommandPalette → organisms/CommandPalette}/CommandPalette.d.ts +7 -8
- package/dist/components/{CommandPalette → organisms/CommandPalette}/CommandPalette.js +4 -10
- package/dist/components/organisms/CommandPalette/CommandPalette.js.map +1 -0
- package/dist/components/organisms/CommandPalette/CommandPaletteOverlay.d.ts +4 -0
- package/dist/components/organisms/CommandPalette/CommandPaletteOverlay.js +150 -0
- package/dist/components/organisms/CommandPalette/CommandPaletteOverlay.js.map +1 -0
- package/dist/components/{CommandPalette → organisms/CommandPalette}/index.d.ts +1 -1
- package/dist/components/{PageHeader → organisms/PageHeader}/PageHeader.js +5 -5
- package/dist/components/organisms/PageHeader/PageHeader.js.map +1 -0
- package/dist/{chrome → components/organisms/SidebarNav}/SidebarNav.d.ts +1 -1
- package/dist/{chrome → components/organisms/SidebarNav}/SidebarNav.js +18 -26
- package/dist/components/organisms/SidebarNav/SidebarNav.js.map +1 -0
- package/dist/components/organisms/SidebarNav/index.d.ts +2 -0
- package/dist/components/organisms/SidebarNav/index.js +2 -0
- package/dist/components/organisms/SiteFooter/SiteFooter.d.ts +33 -0
- package/dist/components/organisms/SiteFooter/SiteFooter.js +87 -0
- package/dist/components/organisms/SiteFooter/SiteFooter.js.map +1 -0
- package/dist/components/organisms/SiteFooter/index.d.ts +2 -0
- package/dist/components/organisms/SiteFooter/index.js +1 -0
- package/dist/components/{Table → organisms/Table}/Table.d.ts +9 -6
- package/dist/components/{Table → organisms/Table}/Table.js +36 -23
- package/dist/components/organisms/Table/Table.js.map +1 -0
- package/dist/components/organisms/ThemeToggle/ThemeToggle.d.ts +36 -0
- package/dist/components/organisms/ThemeToggle/ThemeToggle.js +88 -0
- package/dist/components/organisms/ThemeToggle/ThemeToggle.js.map +1 -0
- package/dist/components/organisms/ThemeToggle/ThemeToggleMenu.d.ts +14 -0
- package/dist/components/organisms/ThemeToggle/ThemeToggleMenu.js +50 -0
- package/dist/components/organisms/ThemeToggle/ThemeToggleMenu.js.map +1 -0
- package/dist/components/organisms/ThemeToggle/index.d.ts +2 -0
- package/dist/components/organisms/ThemeToggle/index.js +2 -0
- package/dist/components/organisms/ThemeToggle/themeChoices.d.ts +7 -0
- package/dist/components/organisms/ThemeToggle/themeChoices.js +17 -0
- package/dist/components/organisms/ThemeToggle/themeChoices.js.map +1 -0
- package/dist/components/organisms/TopNav/TopNav.d.ts +51 -0
- package/dist/components/organisms/TopNav/TopNav.js +148 -0
- package/dist/components/organisms/TopNav/TopNav.js.map +1 -0
- package/dist/components/organisms/TopNav/index.d.ts +2 -0
- package/dist/components/organisms/TopNav/index.js +2 -0
- package/dist/{chrome → components/templates/AppShell}/AppShell.d.ts +10 -6
- package/dist/{chrome → components/templates/AppShell}/AppShell.js +12 -17
- package/dist/components/templates/AppShell/AppShell.js.map +1 -0
- package/dist/components/templates/AppShell/index.d.ts +2 -0
- package/dist/components/templates/AppShell/index.js +1 -0
- package/dist/{chrome → data}/projects.d.ts +13 -8
- package/dist/{chrome → data}/projects.js +48 -25
- package/dist/data/projects.js.map +1 -0
- package/dist/fonts.css +27 -2
- package/dist/index.d.ts +56 -38
- package/dist/index.js +55 -42
- package/dist/internal/Field.d.ts +16 -11
- package/dist/internal/Field.js +29 -23
- package/dist/internal/Field.js.map +1 -1
- package/dist/internal/OverlayParts.d.ts +43 -0
- package/dist/internal/OverlayParts.js +43 -0
- package/dist/internal/OverlayParts.js.map +1 -0
- package/dist/internal/PreloadOnIntent.d.ts +2 -3
- package/dist/internal/PreloadOnIntent.js +3 -3
- package/dist/internal/PreloadOnIntent.js.map +1 -1
- package/dist/{chrome → internal}/brandLogoPath.js +1 -2
- package/dist/internal/brandLogoPath.js.map +1 -0
- package/dist/internal/button.d.ts +7 -0
- package/dist/internal/button.js +19 -0
- package/dist/internal/button.js.map +1 -0
- package/dist/internal/control.d.ts +32 -0
- package/dist/internal/control.js +59 -0
- package/dist/internal/control.js.map +1 -0
- package/dist/internal/focusRing.d.ts +7 -1
- package/dist/internal/focusRing.js +8 -3
- package/dist/internal/focusRing.js.map +1 -1
- package/dist/internal/layout.d.ts +9 -0
- package/dist/internal/layout.js +13 -0
- package/dist/internal/layout.js.map +1 -0
- package/dist/internal/lazyModule.d.ts +8 -2
- package/dist/internal/lazyModule.js +20 -6
- package/dist/internal/lazyModule.js.map +1 -1
- package/dist/internal/link.d.ts +3 -0
- package/dist/internal/link.js +10 -0
- package/dist/internal/link.js.map +1 -0
- package/dist/internal/listParts.d.ts +12 -0
- package/dist/internal/listParts.js +32 -0
- package/dist/internal/listParts.js.map +1 -0
- package/dist/internal/surfaces.d.ts +11 -5
- package/dist/internal/surfaces.js +13 -7
- package/dist/internal/surfaces.js.map +1 -1
- package/dist/internal/toggle.d.ts +8 -0
- package/dist/internal/toggle.js +22 -0
- package/dist/internal/toggle.js.map +1 -0
- package/dist/internal/types.d.ts +2 -5
- package/dist/{chrome → router}/Anchor.js +1 -2
- package/dist/{chrome → router}/Anchor.js.map +1 -1
- package/dist/{chrome → router}/LinkRouter.js +1 -1
- package/dist/{chrome → router}/LinkRouter.js.map +1 -1
- package/dist/{chrome → router}/types.d.ts +3 -3
- package/dist/styles/themes/variants.d.ts +0 -12
- package/dist/styles/themes/variants.js +3 -43
- package/dist/styles/themes/variants.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{chrome → theme}/themeScript.d.ts +2 -5
- package/dist/{chrome → theme}/themeScript.js +4 -7
- package/dist/theme/themeScript.js.map +1 -0
- package/dist/{chrome → theme}/useTheme.js +1 -1
- package/dist/theme/useTheme.js.map +1 -0
- package/dist/theme.css +87 -56
- package/dist/tokens.css +42 -48
- package/dist/utils/cx.d.ts +0 -12
- package/dist/utils/cx.js +18 -10
- package/dist/utils/cx.js.map +1 -1
- package/package.json +147 -107
- package/dist/chrome/AppShell.js.map +0 -1
- package/dist/chrome/BrandLogo.js.map +0 -1
- package/dist/chrome/BrandMark.d.ts +0 -12
- package/dist/chrome/BrandMark.js +0 -40
- package/dist/chrome/BrandMark.js.map +0 -1
- package/dist/chrome/MobileMenu.d.ts +0 -19
- package/dist/chrome/MobileMenu.js +0 -52
- package/dist/chrome/MobileMenu.js.map +0 -1
- package/dist/chrome/ProjectSwitcher.d.ts +0 -30
- package/dist/chrome/ProjectSwitcher.js +0 -64
- package/dist/chrome/ProjectSwitcher.js.map +0 -1
- package/dist/chrome/ProjectSwitcherMenu.d.ts +0 -13
- package/dist/chrome/ProjectSwitcherMenu.js +0 -50
- package/dist/chrome/ProjectSwitcherMenu.js.map +0 -1
- package/dist/chrome/SidebarNav.js.map +0 -1
- package/dist/chrome/SiteFooter.d.ts +0 -37
- package/dist/chrome/SiteFooter.js +0 -105
- package/dist/chrome/SiteFooter.js.map +0 -1
- package/dist/chrome/TextSizeToggle.d.ts +0 -11
- package/dist/chrome/TextSizeToggle.js +0 -38
- package/dist/chrome/TextSizeToggle.js.map +0 -1
- package/dist/chrome/ThemeToggle.d.ts +0 -26
- package/dist/chrome/ThemeToggle.js +0 -100
- package/dist/chrome/ThemeToggle.js.map +0 -1
- package/dist/chrome/ThemeToggleMenu.d.ts +0 -16
- package/dist/chrome/ThemeToggleMenu.js +0 -42
- package/dist/chrome/ThemeToggleMenu.js.map +0 -1
- package/dist/chrome/TopNav.d.ts +0 -42
- package/dist/chrome/TopNav.js +0 -117
- package/dist/chrome/TopNav.js.map +0 -1
- package/dist/chrome/brandLogoPath.js.map +0 -1
- package/dist/chrome/index.d.ts +0 -28
- package/dist/chrome/index.js +0 -15
- package/dist/chrome/projects.js.map +0 -1
- package/dist/chrome/themeChoices.d.ts +0 -6
- package/dist/chrome/themeChoices.js +0 -18
- package/dist/chrome/themeChoices.js.map +0 -1
- package/dist/chrome/themeScript.js.map +0 -1
- package/dist/chrome/useTextSize.d.ts +0 -16
- package/dist/chrome/useTextSize.js +0 -64
- package/dist/chrome/useTextSize.js.map +0 -1
- package/dist/chrome/useTheme.js.map +0 -1
- package/dist/components/Avatar/Avatar.js.map +0 -1
- package/dist/components/Avatar/index.js +0 -2
- package/dist/components/Badge/Badge.js.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +0 -1
- package/dist/components/Button/Button.js +0 -73
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/buttonStyles.js +0 -32
- package/dist/components/Button/buttonStyles.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/index.js +0 -4
- package/dist/components/Card/Card.js.map +0 -1
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Chart/BarChart.js +0 -327
- package/dist/components/Chart/BarChart.js.map +0 -1
- package/dist/components/Chart/ChartFrame.js.map +0 -1
- package/dist/components/Chart/ChartLegend.js.map +0 -1
- package/dist/components/Chart/ChartTable.js.map +0 -1
- package/dist/components/Chart/ChartTooltip.js.map +0 -1
- package/dist/components/Chart/HeatGrid.js +0 -256
- package/dist/components/Chart/HeatGrid.js.map +0 -1
- package/dist/components/Chart/LineChart.js +0 -248
- package/dist/components/Chart/LineChart.js.map +0 -1
- package/dist/components/Chart/format.js.map +0 -1
- package/dist/components/Chart/geometry.js.map +0 -1
- package/dist/components/Chart/interaction.js.map +0 -1
- package/dist/components/Chart/labels.js.map +0 -1
- package/dist/components/Chart/scale.js.map +0 -1
- package/dist/components/Chart/series.d.ts +0 -14
- package/dist/components/Chart/series.js +0 -72
- package/dist/components/Chart/series.js.map +0 -1
- package/dist/components/Chart/summary.js.map +0 -1
- package/dist/components/Chart/useElementWidth.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/CodeBlock/CodeBlock.js.map +0 -1
- package/dist/components/Combobox/Combobox.js +0 -106
- package/dist/components/Combobox/Combobox.js.map +0 -1
- package/dist/components/CommandPalette/CommandPalette.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteOverlay.d.ts +0 -11
- package/dist/components/CommandPalette/CommandPaletteOverlay.js +0 -180
- package/dist/components/CommandPalette/CommandPaletteOverlay.js.map +0 -1
- package/dist/components/DatePicker/DatePicker.js +0 -142
- package/dist/components/DatePicker/DatePicker.js.map +0 -1
- package/dist/components/Dialog/Dialog.d.ts +0 -37
- package/dist/components/Dialog/Dialog.js.map +0 -1
- package/dist/components/Dialog/DialogOverlay.d.ts +0 -3
- package/dist/components/Dialog/DialogOverlay.js +0 -72
- package/dist/components/Dialog/DialogOverlay.js.map +0 -1
- package/dist/components/Drawer/Drawer.d.ts +0 -36
- package/dist/components/Drawer/Drawer.js.map +0 -1
- package/dist/components/Drawer/DrawerOverlay.js +0 -71
- package/dist/components/Drawer/DrawerOverlay.js.map +0 -1
- package/dist/components/DropdownMenu/DropdownMenu.js.map +0 -1
- package/dist/components/DropdownMenu/DropdownMenuParts.js.map +0 -1
- package/dist/components/EmptyState/EmptyState.js.map +0 -1
- package/dist/components/FileDropZone/FileDropZone.js.map +0 -1
- package/dist/components/IconButton/IconButton.d.ts +0 -17
- package/dist/components/IconButton/IconButton.js +0 -37
- package/dist/components/IconButton/IconButton.js.map +0 -1
- package/dist/components/Input/Input.js +0 -43
- package/dist/components/Input/Input.js.map +0 -1
- package/dist/components/Input/index.d.ts +0 -2
- package/dist/components/Kbd/Kbd.js.map +0 -1
- package/dist/components/PageHeader/PageHeader.js.map +0 -1
- package/dist/components/Pagination/Pagination.js.map +0 -1
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/Pagination/index.js +0 -2
- package/dist/components/Popover/Popover.js.map +0 -1
- package/dist/components/Popover/PopoverOverlay.js.map +0 -1
- package/dist/components/ProgressBar/ProgressBar.js.map +0 -1
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/RadioGroup/RadioGroup.js +0 -46
- package/dist/components/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +0 -55
- package/dist/components/SegmentedControl/SegmentedControl.js.map +0 -1
- package/dist/components/SegmentedControl/index.d.ts +0 -2
- package/dist/components/Select/Select.js +0 -64
- package/dist/components/Select/Select.js.map +0 -1
- package/dist/components/Skeleton/Skeleton.js.map +0 -1
- package/dist/components/Spinner/Spinner.js.map +0 -1
- package/dist/components/Stat/Stat.d.ts +0 -49
- package/dist/components/Stat/Stat.js +0 -125
- package/dist/components/Stat/Stat.js.map +0 -1
- package/dist/components/Stat/index.d.ts +0 -2
- package/dist/components/Stat/index.js +0 -2
- package/dist/components/Switch/Switch.js +0 -39
- package/dist/components/Switch/Switch.js.map +0 -1
- package/dist/components/Table/Table.js.map +0 -1
- package/dist/components/Tabs/Tabs.js.map +0 -1
- package/dist/components/Tag/Tag.js +0 -48
- package/dist/components/Tag/Tag.js.map +0 -1
- package/dist/components/Textarea/Textarea.js +0 -30
- package/dist/components/Textarea/Textarea.js.map +0 -1
- package/dist/components/Textarea/index.d.ts +0 -2
- package/dist/components/Toast/Toast.js.map +0 -1
- package/dist/components/Toast/ToastItem.d.ts +0 -6
- package/dist/components/Toast/ToastItem.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/Tooltip/TooltipOverlay.js.map +0 -1
- package/dist/internal/LazyDialogTrigger.d.ts +0 -8
- package/dist/internal/LazyDialogTrigger.js +0 -15
- package/dist/internal/LazyDialogTrigger.js.map +0 -1
- package/dist/internal/Spinner.d.ts +0 -3
- package/dist/internal/Spinner.js +0 -14
- package/dist/internal/Spinner.js.map +0 -1
- package/dist/internal/useLazyMenuTrigger.d.ts +0 -23
- package/dist/internal/useLazyMenuTrigger.js +0 -47
- package/dist/internal/useLazyMenuTrigger.js.map +0 -1
- package/dist/utils/cxLite.d.ts +0 -12
- package/dist/utils/cxLite.js +0 -23
- package/dist/utils/cxLite.js.map +0 -1
- /package/dist/components/{Badge → atoms/Badge}/index.js +0 -0
- /package/dist/components/{Checkbox → atoms/Checkbox}/Checkbox.d.ts +0 -0
- /package/dist/components/{Checkbox → atoms/Checkbox}/index.d.ts +0 -0
- /package/dist/components/{Checkbox → atoms/Checkbox}/index.js +0 -0
- /package/dist/components/{IconButton → atoms/IconButton}/index.d.ts +0 -0
- /package/dist/components/{IconButton → atoms/IconButton}/index.js +0 -0
- /package/dist/components/{Kbd → atoms/Kbd}/index.d.ts +0 -0
- /package/dist/components/{Kbd → atoms/Kbd}/index.js +0 -0
- /package/dist/components/{ProgressBar → atoms/ProgressBar}/index.js +0 -0
- /package/dist/components/{Skeleton → atoms/Skeleton}/Skeleton.d.ts +0 -0
- /package/dist/components/{Skeleton → atoms/Skeleton}/index.d.ts +0 -0
- /package/dist/components/{Skeleton → atoms/Skeleton}/index.js +0 -0
- /package/dist/components/{Spinner → atoms/Spinner}/Spinner.d.ts +0 -0
- /package/dist/components/{Spinner → atoms/Spinner}/index.d.ts +0 -0
- /package/dist/components/{Spinner → atoms/Spinner}/index.js +0 -0
- /package/dist/components/{Switch → atoms/Switch}/index.d.ts +0 -0
- /package/dist/components/{Switch → atoms/Switch}/index.js +0 -0
- /package/dist/components/{Tooltip → atoms/Tooltip}/Tooltip.d.ts +0 -0
- /package/dist/components/{Tooltip → atoms/Tooltip}/TooltipOverlay.d.ts +0 -0
- /package/dist/components/{Tooltip → atoms/Tooltip}/index.d.ts +0 -0
- /package/dist/components/{Tooltip → atoms/Tooltip}/index.js +0 -0
- /package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/Breadcrumbs.d.ts +0 -0
- /package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/index.d.ts +0 -0
- /package/dist/components/{Breadcrumbs → molecules/Breadcrumbs}/index.js +0 -0
- /package/dist/components/{Card → molecules/Card}/index.js +0 -0
- /package/dist/components/{CodeBlock → molecules/CodeBlock}/index.d.ts +0 -0
- /package/dist/components/{CodeBlock → molecules/CodeBlock}/index.js +0 -0
- /package/dist/components/{Combobox → molecules/Combobox}/index.d.ts +0 -0
- /package/dist/components/{Combobox → molecules/Combobox}/index.js +0 -0
- /package/dist/components/{DatePicker → molecules/DatePicker}/index.d.ts +0 -0
- /package/dist/components/{DatePicker → molecules/DatePicker}/index.js +0 -0
- /package/dist/components/{Dialog → molecules/Dialog}/index.d.ts +0 -0
- /package/dist/components/{Dialog → molecules/Dialog}/index.js +0 -0
- /package/dist/components/{Drawer → molecules/Drawer}/index.d.ts +0 -0
- /package/dist/components/{Drawer → molecules/Drawer}/index.js +0 -0
- /package/dist/components/{DropdownMenu → molecules/DropdownMenu}/index.d.ts +0 -0
- /package/dist/components/{DropdownMenu → molecules/DropdownMenu}/index.js +0 -0
- /package/dist/components/{EmptyState → molecules/EmptyState}/index.d.ts +0 -0
- /package/dist/components/{EmptyState → molecules/EmptyState}/index.js +0 -0
- /package/dist/components/{FileDropZone → molecules/FileDropZone}/index.d.ts +0 -0
- /package/dist/components/{FileDropZone → molecules/FileDropZone}/index.js +0 -0
- /package/dist/components/{Input → molecules/Input}/index.js +0 -0
- /package/dist/components/{Popover → molecules/Popover}/PopoverOverlay.d.ts +0 -0
- /package/dist/components/{Popover → molecules/Popover}/index.d.ts +0 -0
- /package/dist/components/{Popover → molecules/Popover}/index.js +0 -0
- /package/dist/components/{RadioGroup → molecules/RadioGroup}/RadioGroup.d.ts +0 -0
- /package/dist/components/{RadioGroup → molecules/RadioGroup}/index.d.ts +0 -0
- /package/dist/components/{RadioGroup → molecules/RadioGroup}/index.js +0 -0
- /package/dist/components/{SegmentedControl → molecules/SegmentedControl}/index.js +0 -0
- /package/dist/components/{Select → molecules/Select}/index.d.ts +0 -0
- /package/dist/components/{Select → molecules/Select}/index.js +0 -0
- /package/dist/components/{Tabs → molecules/Tabs}/Tabs.d.ts +0 -0
- /package/dist/components/{Tabs → molecules/Tabs}/index.d.ts +0 -0
- /package/dist/components/{Tabs → molecules/Tabs}/index.js +0 -0
- /package/dist/components/{Tag → molecules/Tag}/Tag.d.ts +0 -0
- /package/dist/components/{Tag → molecules/Tag}/index.d.ts +0 -0
- /package/dist/components/{Tag → molecules/Tag}/index.js +0 -0
- /package/dist/components/{Textarea → molecules/Textarea}/index.js +0 -0
- /package/dist/components/{Toast → molecules/Toast}/index.js +0 -0
- /package/dist/components/{Chart → organisms/Chart}/ChartTable.d.ts +0 -0
- /package/dist/components/{Chart → organisms/Chart}/geometry.d.ts +0 -0
- /package/dist/components/{Chart → organisms/Chart}/labels.d.ts +0 -0
- /package/dist/components/{Chart → organisms/Chart}/scale.d.ts +0 -0
- /package/dist/components/{Chart → organisms/Chart}/summary.d.ts +0 -0
- /package/dist/components/{Chart → organisms/Chart}/useElementWidth.d.ts +0 -0
- /package/dist/components/{CommandPalette → organisms/CommandPalette}/index.js +0 -0
- /package/dist/components/{PageHeader → organisms/PageHeader}/PageHeader.d.ts +0 -0
- /package/dist/components/{PageHeader → organisms/PageHeader}/index.d.ts +0 -0
- /package/dist/components/{PageHeader → organisms/PageHeader}/index.js +0 -0
- /package/dist/components/{Table → organisms/Table}/index.d.ts +0 -0
- /package/dist/components/{Table → organisms/Table}/index.js +0 -0
- /package/dist/{chrome → internal}/brandLogoPath.d.ts +0 -0
- /package/dist/{chrome → router}/Anchor.d.ts +0 -0
- /package/dist/{chrome → router}/LinkRouter.d.ts +0 -0
- /package/dist/{chrome → theme}/useTheme.d.ts +0 -0
|
@@ -10,13 +10,13 @@ import { ButtonContext } from "react-aria-components";
|
|
|
10
10
|
* component that already provides Button props (a Dialog with `slot="close"`
|
|
11
11
|
* buttons, a Select) nothing is added, so those props keep working.
|
|
12
12
|
*/
|
|
13
|
-
function PreloadOnIntent({
|
|
13
|
+
function PreloadOnIntent({ preload, children }) {
|
|
14
14
|
const inherited = useContext(ButtonContext);
|
|
15
15
|
if (inherited && Object.keys(inherited).length > 0) return children;
|
|
16
16
|
return /* @__PURE__ */ jsx(ButtonContext.Provider, {
|
|
17
17
|
value: {
|
|
18
|
-
onHoverStart:
|
|
19
|
-
onFocus:
|
|
18
|
+
onHoverStart: preload,
|
|
19
|
+
onFocus: preload
|
|
20
20
|
},
|
|
21
21
|
children
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreloadOnIntent.js","names":[],"sources":["../../src/internal/PreloadOnIntent.tsx"],"sourcesContent":["import { useContext, type ReactNode } from 'react';\nimport { ButtonContext } from 'react-aria-components';\
|
|
1
|
+
{"version":3,"file":"PreloadOnIntent.js","names":[],"sources":["../../src/internal/PreloadOnIntent.tsx"],"sourcesContent":["import { useContext, type ReactNode } from 'react';\nimport { ButtonContext } from 'react-aria-components';\n\ninterface PreloadOnIntentProps {\n preload: () => void;\n children: ReactNode;\n}\n\n/**\n * Starts loading an overlay when a React Aria Button inside it is hovered or\n * focused, so the code has usually arrived by the time the trigger is pressed.\n * A trigger that is not a React Aria Button still loads on press. Inside a\n * component that already provides Button props (a Dialog with `slot=\"close\"`\n * buttons, a Select) nothing is added, so those props keep working.\n */\nexport function PreloadOnIntent({ preload, children }: PreloadOnIntentProps) {\n const inherited = useContext(ButtonContext);\n if (inherited && Object.keys(inherited).length > 0) return children;\n return (\n <ButtonContext.Provider value={{ onHoverStart: preload, onFocus: preload }}>\n {children}\n </ButtonContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAeA,SAAgB,gBAAgB,EAAE,SAAS,YAAkC;CAC3E,MAAM,YAAY,WAAW,aAAa;CAC1C,IAAI,aAAa,OAAO,KAAK,SAAS,CAAC,CAAC,SAAS,GAAG,OAAO;CAC3D,OACE,oBAAC,cAAc,UAAf;EAAwB,OAAO;GAAE,cAAc;GAAS,SAAS;EAAQ;EACtE;CACqB,CAAA;AAE5B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// src/chrome/brandLogoPath.ts
|
|
1
|
+
// src/internal/brandLogoPath.ts
|
|
3
2
|
/** The EG horse logo outline, traced from the chosen draft. One path, one colour. */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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";
|
|
5
4
|
export { brandLogoPath };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brandLogoPath.js","names":[],"sources":["../../src/internal/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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 .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,7 @@
|
|
|
1
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'destructive-outline';
|
|
2
|
+
/**
|
|
3
|
+
* The base gives every variant a transparent 1px border, so all variants have
|
|
4
|
+
* the same box and line up with fields of the same size.
|
|
5
|
+
*/
|
|
6
|
+
export declare const buttonBase = "touch-target relative inline-flex shrink-0 cursor-pointer items-center justify-center border border-transparent font-semibold whitespace-nowrap transition-colors select-none data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:text-disabled outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:outline-offset-2 data-focus-visible:outline-focus";
|
|
7
|
+
export declare const buttonVariants: Record<ButtonVariant, string>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { controlSurface } from "./control.js";
|
|
3
|
+
import { focusRing } from "./focusRing.js";
|
|
4
|
+
// src/internal/button.ts
|
|
5
|
+
/**
|
|
6
|
+
* The base gives every variant a transparent 1px border, so all variants have
|
|
7
|
+
* the same box and line up with fields of the same size.
|
|
8
|
+
*/
|
|
9
|
+
var buttonBase = `touch-target relative inline-flex shrink-0 cursor-pointer items-center justify-center border border-transparent font-semibold whitespace-nowrap transition-colors select-none data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:text-disabled ${focusRing}`;
|
|
10
|
+
var buttonVariants = {
|
|
11
|
+
primary: "bg-brand-solid text-on-solid data-hovered:bg-brand-solid-hover data-pressed:bg-brand-solid-hover data-disabled:bg-disabled",
|
|
12
|
+
secondary: `${controlSurface} text-primary data-hovered:border-field-hover data-hovered:bg-field-hover data-pressed:bg-field-hover data-disabled:bg-disabled`,
|
|
13
|
+
tertiary: "bg-transparent text-secondary data-hovered:bg-field data-hovered:text-primary data-pressed:bg-field-hover",
|
|
14
|
+
destructive: "bg-error-solid text-on-error data-hovered:bg-error-solid-hover data-pressed:bg-error-solid-hover data-disabled:bg-disabled",
|
|
15
|
+
"destructive-outline": "border-error bg-transparent text-error data-hovered:bg-error-subtle data-pressed:bg-error-subtle"
|
|
16
|
+
};
|
|
17
|
+
export { buttonBase, buttonVariants };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","names":[],"sources":["../../src/internal/button.ts"],"sourcesContent":["import { controlSurface } from './control';\nimport { focusRing } from './focusRing';\n\nexport type ButtonVariant =\n 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'destructive-outline';\n\n/**\n * The base gives every variant a transparent 1px border, so all variants have\n * the same box and line up with fields of the same size.\n */\nexport const buttonBase = `touch-target relative inline-flex shrink-0 cursor-pointer items-center justify-center border border-transparent font-semibold whitespace-nowrap transition-colors select-none data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:text-disabled ${focusRing}`;\n\nexport const buttonVariants: Record<ButtonVariant, string> = {\n primary:\n 'bg-brand-solid text-on-solid data-hovered:bg-brand-solid-hover data-pressed:bg-brand-solid-hover data-disabled:bg-disabled',\n secondary: `${controlSurface} text-primary data-hovered:border-field-hover data-hovered:bg-field-hover data-pressed:bg-field-hover data-disabled:bg-disabled`,\n tertiary:\n 'bg-transparent text-secondary data-hovered:bg-field data-hovered:text-primary data-pressed:bg-field-hover',\n destructive:\n 'bg-error-solid text-on-error data-hovered:bg-error-solid-hover data-pressed:bg-error-solid-hover data-disabled:bg-disabled',\n 'destructive-outline':\n 'border-error bg-transparent text-error data-hovered:bg-error-subtle data-pressed:bg-error-subtle',\n};\n"],"mappings":";;;;;;;;AAUA,IAAa,aAAa,+QAA+Q;AAEzS,IAAa,iBAAgD;CAC3D,SACE;CACF,WAAW,GAAG,eAAe;CAC7B,UACE;CACF,aACE;CACF,uBACE;AACJ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { MouseEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* One size scale for every control: buttons, icon buttons, fields, selects,
|
|
4
|
+
* segmented controls and pagination. The same size is the same height, so a
|
|
5
|
+
* row of mixed controls lines up.
|
|
6
|
+
*/
|
|
7
|
+
export type ControlSize = 'sm' | 'md' | 'lg';
|
|
8
|
+
export declare const controlHeight: Record<ControlSize, string>;
|
|
9
|
+
/** Small controls use a 10px radius so they do not read as pills. */
|
|
10
|
+
export declare const controlRadius: Record<ControlSize, string>;
|
|
11
|
+
/** Square size of an icon-only control at each control size. */
|
|
12
|
+
export declare const controlSquare: Record<ControlSize, string>;
|
|
13
|
+
/** The filled surface and soft edge shared by fields and secondary buttons. */
|
|
14
|
+
export declare const controlSurface = "border border-field bg-field transition-[background-color,border-color,box-shadow]";
|
|
15
|
+
/**
|
|
16
|
+
* The box of every field: Input, Select, Combobox, DatePicker and Textarea.
|
|
17
|
+
* The soft edge has a 3:1 bottom edge, which marks the field (WCAG 1.4.11).
|
|
18
|
+
* Hover deepens the fill only. While focused the box lifts to the card colour
|
|
19
|
+
* with a brand edge, and keyboard focus adds the shared focus ring. A Group
|
|
20
|
+
* reports focus with data-focus-within, a TextArea or a Select's trigger with
|
|
21
|
+
* data-focused. The field's root carries `group`, so an invalid root reaches
|
|
22
|
+
* the box, and the error edge wins over hover and focus.
|
|
23
|
+
*/
|
|
24
|
+
export declare function fieldStyles(size?: ControlSize | 'auto', className?: string): string;
|
|
25
|
+
/** Pressing a field's padding or leading icon focuses its input: `onMouseDown` of the box around it. */
|
|
26
|
+
export declare function focusInputOnPress(event: MouseEvent<HTMLElement>): void;
|
|
27
|
+
/** The bare text input inside a field box. */
|
|
28
|
+
export declare const fieldInput = "min-w-0 flex-1 bg-transparent text-primary outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:text-disabled";
|
|
29
|
+
/** The slot around an icon element passed to a control: 16px, never shrinking. */
|
|
30
|
+
export declare const iconSlot = "inline-flex shrink-0 [&>svg]:size-4";
|
|
31
|
+
/** A field's leading or trailing icon. */
|
|
32
|
+
export declare const fieldIcon = "size-4 shrink-0 text-fg-tertiary";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { cx } from "../utils/cx.js";
|
|
2
|
+
import { focusRing } from "./focusRing.js";
|
|
3
|
+
// src/internal/control.ts
|
|
4
|
+
var controlHeight = {
|
|
5
|
+
sm: "h-control-sm",
|
|
6
|
+
md: "h-control-md",
|
|
7
|
+
lg: "h-control-lg"
|
|
8
|
+
};
|
|
9
|
+
/** Small controls use a 10px radius so they do not read as pills. */
|
|
10
|
+
var controlRadius = {
|
|
11
|
+
sm: "rounded-sm",
|
|
12
|
+
md: "rounded-md",
|
|
13
|
+
lg: "rounded-md"
|
|
14
|
+
};
|
|
15
|
+
/** Square size of an icon-only control at each control size. */
|
|
16
|
+
var controlSquare = {
|
|
17
|
+
sm: "size-control-sm",
|
|
18
|
+
md: "size-control-md",
|
|
19
|
+
lg: "size-control-lg"
|
|
20
|
+
};
|
|
21
|
+
/** The filled surface and soft edge shared by fields and secondary buttons. */
|
|
22
|
+
var controlSurface = "border border-field bg-field transition-[background-color,border-color,box-shadow]";
|
|
23
|
+
/** Text inside a field, by size. Fields stay at 16px from md up so phones do not zoom. */
|
|
24
|
+
var fieldText = {
|
|
25
|
+
sm: "gap-1.5 px-2.5 text-sm",
|
|
26
|
+
md: "gap-2 px-3 text-md",
|
|
27
|
+
lg: "gap-2 px-3.5 text-md"
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The box of every field: Input, Select, Combobox, DatePicker and Textarea.
|
|
31
|
+
* The soft edge has a 3:1 bottom edge, which marks the field (WCAG 1.4.11).
|
|
32
|
+
* Hover deepens the fill only. While focused the box lifts to the card colour
|
|
33
|
+
* with a brand edge, and keyboard focus adds the shared focus ring. A Group
|
|
34
|
+
* reports focus with data-focus-within, a TextArea or a Select's trigger with
|
|
35
|
+
* data-focused. The field's root carries `group`, so an invalid root reaches
|
|
36
|
+
* the box, and the error edge wins over hover and focus.
|
|
37
|
+
*/
|
|
38
|
+
function fieldStyles(size = "md", className) {
|
|
39
|
+
return cx("flex w-full items-center text-primary", controlSurface, "border-b-control data-hovered:not-data-focus-within:not-data-focused:bg-field-hover", focusRing, size === "auto" ? [controlRadius.md, fieldText.md] : [
|
|
40
|
+
controlRadius[size],
|
|
41
|
+
controlHeight[size],
|
|
42
|
+
fieldText[size]
|
|
43
|
+
], "data-focus-within:border-brand data-focus-within:bg-primary data-focused:border-brand data-focused:bg-primary", "group-data-invalid:border-error! data-invalid:border-error!", "data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-disabled data-disabled:text-disabled", className);
|
|
44
|
+
}
|
|
45
|
+
/** Pressing a field's padding or leading icon focuses its input: `onMouseDown` of the box around it. */
|
|
46
|
+
function focusInputOnPress(event) {
|
|
47
|
+
if (event.target.closest("input, button")) return;
|
|
48
|
+
event.preventDefault();
|
|
49
|
+
event.currentTarget.querySelector("input")?.focus();
|
|
50
|
+
}
|
|
51
|
+
/** The bare text input inside a field box. */
|
|
52
|
+
var fieldInput = "min-w-0 flex-1 bg-transparent text-primary outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:text-disabled";
|
|
53
|
+
/** The slot around an icon element passed to a control: 16px, never shrinking. */
|
|
54
|
+
var iconSlot = "inline-flex shrink-0 [&>svg]:size-4";
|
|
55
|
+
/** A field's leading or trailing icon. */
|
|
56
|
+
var fieldIcon = "size-4 shrink-0 text-fg-tertiary";
|
|
57
|
+
export { controlHeight, controlRadius, controlSquare, controlSurface, fieldIcon, fieldInput, fieldStyles, focusInputOnPress, iconSlot };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.js","names":[],"sources":["../../src/internal/control.ts"],"sourcesContent":["import type { MouseEvent } from 'react';\nimport { cx } from '../utils/cx';\nimport { focusRing } from './focusRing';\n\n/**\n * One size scale for every control: buttons, icon buttons, fields, selects,\n * segmented controls and pagination. The same size is the same height, so a\n * row of mixed controls lines up.\n */\nexport type ControlSize = 'sm' | 'md' | 'lg';\n\nexport const controlHeight: Record<ControlSize, string> = {\n sm: 'h-control-sm',\n md: 'h-control-md',\n lg: 'h-control-lg',\n};\n\n/** Small controls use a 10px radius so they do not read as pills. */\nexport const controlRadius: Record<ControlSize, string> = {\n sm: 'rounded-sm',\n md: 'rounded-md',\n lg: 'rounded-md',\n};\n\n/** Square size of an icon-only control at each control size. */\nexport const controlSquare: Record<ControlSize, string> = {\n sm: 'size-control-sm',\n md: 'size-control-md',\n lg: 'size-control-lg',\n};\n\n/** The filled surface and soft edge shared by fields and secondary buttons. */\nexport const controlSurface =\n 'border border-field bg-field transition-[background-color,border-color,box-shadow]';\n\n/** Text inside a field, by size. Fields stay at 16px from md up so phones do not zoom. */\nconst fieldText: Record<ControlSize, string> = {\n sm: 'gap-1.5 px-2.5 text-sm',\n md: 'gap-2 px-3 text-md',\n lg: 'gap-2 px-3.5 text-md',\n};\n\n/**\n * The box of every field: Input, Select, Combobox, DatePicker and Textarea.\n * The soft edge has a 3:1 bottom edge, which marks the field (WCAG 1.4.11).\n * Hover deepens the fill only. While focused the box lifts to the card colour\n * with a brand edge, and keyboard focus adds the shared focus ring. A Group\n * reports focus with data-focus-within, a TextArea or a Select's trigger with\n * data-focused. The field's root carries `group`, so an invalid root reaches\n * the box, and the error edge wins over hover and focus.\n */\nexport function fieldStyles(size: ControlSize | 'auto' = 'md', className?: string): string {\n return cx(\n 'flex w-full items-center text-primary',\n controlSurface,\n 'border-b-control data-hovered:not-data-focus-within:not-data-focused:bg-field-hover',\n focusRing,\n size === 'auto'\n ? [controlRadius.md, fieldText.md]\n : [controlRadius[size], controlHeight[size], fieldText[size]],\n 'data-focus-within:border-brand data-focus-within:bg-primary data-focused:border-brand data-focused:bg-primary',\n 'group-data-invalid:border-error! data-invalid:border-error!',\n 'data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-disabled data-disabled:text-disabled',\n className,\n );\n}\n\n/** Pressing a field's padding or leading icon focuses its input: `onMouseDown` of the box around it. */\nexport function focusInputOnPress(event: MouseEvent<HTMLElement>) {\n if ((event.target as HTMLElement).closest('input, button')) return;\n event.preventDefault();\n event.currentTarget.querySelector('input')?.focus();\n}\n\n/** The bare text input inside a field box. */\nexport const fieldInput =\n 'min-w-0 flex-1 bg-transparent text-primary outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:text-disabled';\n\n/** The slot around an icon element passed to a control: 16px, never shrinking. */\nexport const iconSlot = 'inline-flex shrink-0 [&>svg]:size-4';\n\n/** A field's leading or trailing icon. */\nexport const fieldIcon = 'size-4 shrink-0 text-fg-tertiary';\n"],"mappings":";;;AAWA,IAAa,gBAA6C;CACxD,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;;AAGA,IAAa,gBAA6C;CACxD,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;;AAGA,IAAa,gBAA6C;CACxD,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;;AAGA,IAAa,iBACX;;AAGF,IAAM,YAAyC;CAC7C,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;;;;;;;;;;AAWA,SAAgB,YAAY,OAA6B,MAAM,WAA4B;CACzF,OAAO,GACL,yCACA,gBACA,uFACA,WACA,SAAS,SACL,CAAC,cAAc,IAAI,UAAU,EAAE,IAC/B;EAAC,cAAc;EAAO,cAAc;EAAO,UAAU;CAAK,GAC9D,iHACA,+DACA,2HACA,SACF;AACF;;AAGA,SAAgB,kBAAkB,OAAgC;CAChE,IAAK,MAAM,OAAuB,QAAQ,eAAe,GAAG;CAC5D,MAAM,eAAe;CACrB,MAAM,cAAc,cAAc,OAAO,CAAC,EAAE,MAAM;AACpD;;AAGA,IAAa,aACX;;AAGF,IAAa,WAAW;;AAGxB,IAAa,YAAY"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Keyboard focus ring of a React Aria element (it sets data-focus-visible). */
|
|
2
2
|
export declare const focusRing = "outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:outline-offset-2 data-focus-visible:outline-focus";
|
|
3
|
+
/** The same ring drawn inside the box, for rows and cells that sit in a clipped container. */
|
|
4
|
+
export declare const focusRingInset = "outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:-outline-offset-2 data-focus-visible:outline-focus";
|
|
5
|
+
/** The ring on a child of a React Aria element that carries `group`, such as a checkbox indicator. */
|
|
6
|
+
export declare const focusRingGroup = "group-data-focus-visible:outline-2 group-data-focus-visible:outline-solid group-data-focus-visible:outline-offset-2 group-data-focus-visible:outline-focus";
|
|
7
|
+
/** The ring for plain links and anchors, which have no data-focus-visible. */
|
|
8
|
+
export declare const linkFocus = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus";
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
// src/internal/focusRing.ts
|
|
3
|
-
/**
|
|
2
|
+
/** Keyboard focus ring of a React Aria element (it sets data-focus-visible). */
|
|
4
3
|
var focusRing = "outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:outline-offset-2 data-focus-visible:outline-focus";
|
|
5
|
-
|
|
4
|
+
/** The same ring drawn inside the box, for rows and cells that sit in a clipped container. */
|
|
5
|
+
var focusRingInset = "outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:-outline-offset-2 data-focus-visible:outline-focus";
|
|
6
|
+
/** The ring on a child of a React Aria element that carries `group`, such as a checkbox indicator. */
|
|
7
|
+
var focusRingGroup = "group-data-focus-visible:outline-2 group-data-focus-visible:outline-solid group-data-focus-visible:outline-offset-2 group-data-focus-visible:outline-focus";
|
|
8
|
+
/** The ring for plain links and anchors, which have no data-focus-visible. */
|
|
9
|
+
var linkFocus = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus";
|
|
10
|
+
export { focusRing, focusRingGroup, focusRingInset, linkFocus };
|
|
6
11
|
|
|
7
12
|
//# sourceMappingURL=focusRing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusRing.js","names":[],"sources":["../../src/internal/focusRing.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"focusRing.js","names":[],"sources":["../../src/internal/focusRing.ts"],"sourcesContent":["/** Keyboard focus ring of a React Aria element (it sets data-focus-visible). */\nexport const focusRing =\n 'outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:outline-offset-2 data-focus-visible:outline-focus';\n\n/** The same ring drawn inside the box, for rows and cells that sit in a clipped container. */\nexport const focusRingInset =\n 'outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:-outline-offset-2 data-focus-visible:outline-focus';\n\n/** The ring on a child of a React Aria element that carries `group`, such as a checkbox indicator. */\nexport const focusRingGroup =\n 'group-data-focus-visible:outline-2 group-data-focus-visible:outline-solid group-data-focus-visible:outline-offset-2 group-data-focus-visible:outline-focus';\n\n/** The ring for plain links and anchors, which have no data-focus-visible. */\nexport const linkFocus =\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus';\n"],"mappings":";;AACA,IAAa,YACX;;AAGF,IAAa,iBACX;;AAGF,IAAa,iBACX;;AAGF,IAAa,YACX"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Side padding of a page: 16px on phones, widening with the screen. */
|
|
2
|
+
export declare const pageGutter = "px-4 sm:px-6 lg:px-8";
|
|
3
|
+
/**
|
|
4
|
+
* The frame of TopNav and SiteFooter. AppShell sets `data-width` on its root, so the
|
|
5
|
+
* bars follow it without props or context, and they render on the server. `page` is one
|
|
6
|
+
* centred column shared with the content. `full` drops the column width. With a sidebar
|
|
7
|
+
* (`data-sidebar`), the bar starts at the sidebar's 12px padding so the logo lines up with it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const pageFrame = "mx-auto w-full max-w-6xl px-4 sm:px-6 lg:px-8 group-data-[width=full]/shell:max-w-none group-data-[sidebar]/shell:md:pl-3";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/internal/layout.ts
|
|
2
|
+
/** Side padding of a page: 16px on phones, widening with the screen. */
|
|
3
|
+
var pageGutter = "px-4 sm:px-6 lg:px-8";
|
|
4
|
+
/**
|
|
5
|
+
* The frame of TopNav and SiteFooter. AppShell sets `data-width` on its root, so the
|
|
6
|
+
* bars follow it without props or context, and they render on the server. `page` is one
|
|
7
|
+
* centred column shared with the content. `full` drops the column width. With a sidebar
|
|
8
|
+
* (`data-sidebar`), the bar starts at the sidebar's 12px padding so the logo lines up with it.
|
|
9
|
+
*/
|
|
10
|
+
var pageFrame = `mx-auto w-full max-w-6xl ${pageGutter} group-data-[width=full]/shell:max-w-none group-data-[sidebar]/shell:md:pl-3`;
|
|
11
|
+
export { pageFrame, pageGutter };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","names":[],"sources":["../../src/internal/layout.ts"],"sourcesContent":["/** Side padding of a page: 16px on phones, widening with the screen. */\nexport const pageGutter = 'px-4 sm:px-6 lg:px-8';\n\n/**\n * The frame of TopNav and SiteFooter. AppShell sets `data-width` on its root, so the\n * bars follow it without props or context, and they render on the server. `page` is one\n * centred column shared with the content. `full` drops the column width. With a sidebar\n * (`data-sidebar`), the bar starts at the sidebar's 12px padding so the logo lines up with it.\n */\nexport const pageFrame = `mx-auto w-full max-w-6xl ${pageGutter} group-data-[width=full]/shell:max-w-none group-data-[sidebar]/shell:md:pl-3`;\n"],"mappings":";;AACA,IAAa,aAAa;;;;;;;AAQ1B,IAAa,YAAY,4BAA4B,WAAW"}
|
|
@@ -9,7 +9,13 @@ export interface LazyModule<M> {
|
|
|
9
9
|
/**
|
|
10
10
|
* Loads the code behind an overlay once and shares it between every instance
|
|
11
11
|
* on the page. `useModule` reads the shared result without Suspense, so the
|
|
12
|
-
* trigger never flashes a fallback
|
|
13
|
-
* was
|
|
12
|
+
* trigger never flashes a fallback. A failed download is logged and leaves the
|
|
13
|
+
* page as it was; the next open tries again.
|
|
14
14
|
*/
|
|
15
15
|
export declare function createLazyModule<M>(importer: () => Promise<M>): LazyModule<M>;
|
|
16
|
+
/**
|
|
17
|
+
* A component that renders the named export of a lazy module once it has
|
|
18
|
+
* loaded, and nothing before. For parts that only render inside an overlay that
|
|
19
|
+
* already waited for the module.
|
|
20
|
+
*/
|
|
21
|
+
export declare function lazyPart<M, K extends keyof M>(module: LazyModule<M>, name: K): M[K];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect, useSyncExternalStore } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
// src/internal/lazyModule.tsx
|
|
5
5
|
/**
|
|
6
6
|
* Loads the code behind an overlay once and shares it between every instance
|
|
7
7
|
* on the page. `useModule` reads the shared result without Suspense, so the
|
|
8
|
-
* trigger never flashes a fallback
|
|
9
|
-
* was
|
|
8
|
+
* trigger never flashes a fallback. A failed download is logged and leaves the
|
|
9
|
+
* page as it was; the next open tries again.
|
|
10
10
|
*/
|
|
11
11
|
function createLazyModule(importer) {
|
|
12
12
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -34,7 +34,9 @@ function createLazyModule(importer) {
|
|
|
34
34
|
return pending;
|
|
35
35
|
}
|
|
36
36
|
function preload() {
|
|
37
|
-
load().catch(
|
|
37
|
+
load().catch((error) => {
|
|
38
|
+
console.error("Could not load the component code, it will retry on the next open.", error);
|
|
39
|
+
});
|
|
38
40
|
}
|
|
39
41
|
function useModule(isWanted) {
|
|
40
42
|
const module = useSyncExternalStore(subscribe, get, getServerSnapshot);
|
|
@@ -49,6 +51,18 @@ function createLazyModule(importer) {
|
|
|
49
51
|
get
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
|
-
|
|
54
|
+
/**
|
|
55
|
+
* A component that renders the named export of a lazy module once it has
|
|
56
|
+
* loaded, and nothing before. For parts that only render inside an overlay that
|
|
57
|
+
* already waited for the module.
|
|
58
|
+
*/
|
|
59
|
+
function lazyPart(module, name) {
|
|
60
|
+
function LazyPart(props) {
|
|
61
|
+
const Part = module.get()?.[name];
|
|
62
|
+
return Part ? /* @__PURE__ */ jsx(Part, { ...props }) : null;
|
|
63
|
+
}
|
|
64
|
+
return LazyPart;
|
|
65
|
+
}
|
|
66
|
+
export { createLazyModule, lazyPart };
|
|
53
67
|
|
|
54
68
|
//# sourceMappingURL=lazyModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazyModule.js","names":[],"sources":["../../src/internal/lazyModule.
|
|
1
|
+
{"version":3,"file":"lazyModule.js","names":[],"sources":["../../src/internal/lazyModule.tsx"],"sourcesContent":["import { useEffect, useSyncExternalStore, type ComponentType } from 'react';\n\nexport interface LazyModule<M> {\n /** Starts loading the module. Safe to call again, and after a failure it retries. */\n preload: () => void;\n /** The loaded module, or undefined until it has loaded. Starts loading once `isWanted` is true. */\n useModule: (isWanted: boolean) => M | undefined;\n /** The module if it has loaded already. For parts that only render inside the loaded overlay. */\n get: () => M | undefined;\n}\n\n/**\n * Loads the code behind an overlay once and shares it between every instance\n * on the page. `useModule` reads the shared result without Suspense, so the\n * trigger never flashes a fallback. A failed download is logged and leaves the\n * page as it was; the next open tries again.\n */\nexport function createLazyModule<M>(importer: () => Promise<M>): LazyModule<M> {\n const listeners = new Set<() => void>();\n let loaded: M | undefined;\n let pending: Promise<M> | undefined;\n\n function subscribe(listener: () => void) {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n }\n\n function get() {\n return loaded;\n }\n\n function getServerSnapshot() {\n return undefined;\n }\n\n function load(): Promise<M> {\n pending ??= importer().then(\n (module) => {\n loaded = module;\n for (const listener of listeners) listener();\n return module;\n },\n (error: unknown) => {\n pending = undefined;\n throw error;\n },\n );\n return pending;\n }\n\n function preload() {\n load().catch((error: unknown) => {\n console.error('Could not load the component code, it will retry on the next open.', error);\n });\n }\n\n function useModule(isWanted: boolean) {\n const module = useSyncExternalStore(subscribe, get, getServerSnapshot);\n\n useEffect(() => {\n if (isWanted && !module) preload();\n }, [isWanted, module]);\n\n return module;\n }\n\n return { preload, useModule, get };\n}\n\n/**\n * A component that renders the named export of a lazy module once it has\n * loaded, and nothing before. For parts that only render inside an overlay that\n * already waited for the module.\n */\nexport function lazyPart<M, K extends keyof M>(module: LazyModule<M>, name: K): M[K] {\n function LazyPart(props: object) {\n const Part = module.get()?.[name] as ComponentType<object> | undefined;\n return Part ? <Part {...props} /> : null;\n }\n return LazyPart as M[K];\n}\n"],"mappings":";;;;;;;;;;AAiBA,SAAgB,iBAAoB,UAA2C;CAC7E,MAAM,4BAAY,IAAI,IAAgB;CACtC,IAAI;CACJ,IAAI;CAEJ,SAAS,UAAU,UAAsB;EACvC,UAAU,IAAI,QAAQ;EACtB,aAAa;GACX,UAAU,OAAO,QAAQ;EAC3B;CACF;CAEA,SAAS,MAAM;EACb,OAAO;CACT;CAEA,SAAS,oBAAoB,CAE7B;CAEA,SAAS,OAAmB;EAC1B,YAAY,SAAS,CAAC,CAAC,MACpB,WAAW;GACV,SAAS;GACT,KAAK,MAAM,YAAY,WAAW,SAAS;GAC3C,OAAO;EACT,IACC,UAAmB;GAClB,UAAU,KAAA;GACV,MAAM;EACR,CACF;EACA,OAAO;CACT;CAEA,SAAS,UAAU;EACjB,KAAK,CAAC,CAAC,OAAO,UAAmB;GAC/B,QAAQ,MAAM,sEAAsE,KAAK;EAC3F,CAAC;CACH;CAEA,SAAS,UAAU,UAAmB;EACpC,MAAM,SAAS,qBAAqB,WAAW,KAAK,iBAAiB;EAErE,gBAAgB;GACd,IAAI,YAAY,CAAC,QAAQ,QAAQ;EACnC,GAAG,CAAC,UAAU,MAAM,CAAC;EAErB,OAAO;CACT;CAEA,OAAO;EAAE;EAAS;EAAW;CAAI;AACnC;;;;;;AAOA,SAAgB,SAA+B,QAAuB,MAAe;CACnF,SAAS,SAAS,OAAe;EAC/B,MAAM,OAAO,OAAO,IAAI,CAAC,GAAG;EAC5B,OAAO,OAAO,oBAAC,MAAD,EAAM,GAAI,MAAQ,CAAA,IAAI;CACtC;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type TextLinkVariant = 'inline' | 'quiet';
|
|
2
|
+
export declare const textLinkBase = "touch-target relative rounded-xs underline-offset-4 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus";
|
|
3
|
+
export declare const textLinkVariants: Record<TextLinkVariant, string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { linkFocus } from "./focusRing.js";
|
|
2
|
+
// src/internal/link.ts
|
|
3
|
+
var textLinkBase = `touch-target relative rounded-xs underline-offset-4 ${linkFocus}`;
|
|
4
|
+
var textLinkVariants = {
|
|
5
|
+
inline: "font-medium text-brand underline hover:decoration-2",
|
|
6
|
+
quiet: "text-tertiary hover:text-primary hover:underline aria-[current=page]:text-brand"
|
|
7
|
+
};
|
|
8
|
+
export { textLinkBase, textLinkVariants };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","names":[],"sources":["../../src/internal/link.ts"],"sourcesContent":["import { linkFocus } from './focusRing';\n\nexport type TextLinkVariant = 'inline' | 'quiet';\n\nexport const textLinkBase = `touch-target relative rounded-xs underline-offset-4 ${linkFocus}`;\n\nexport const textLinkVariants: Record<TextLinkVariant, string> = {\n inline: 'font-medium text-brand underline hover:decoration-2',\n quiet: 'text-tertiary hover:text-primary hover:underline aria-[current=page]:text-brand',\n};\n"],"mappings":";;AAIA,IAAa,eAAe,uDAAuD;AAEnF,IAAa,mBAAoD;CAC/D,QAAQ;CACR,OAAO;AACT"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** The text a list item is found by when typing: its string label unless one is given. */
|
|
3
|
+
export declare function textValueOf(textValue: string | undefined, children: unknown): string | undefined;
|
|
4
|
+
/** A list item's label with an optional second line. Select hides the second line in its trigger. */
|
|
5
|
+
export declare function ListItemText({ children, description, }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
/** Small heading above a group of list items. */
|
|
10
|
+
export declare function ListSectionHeader({ children }: {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Header } from "react-aria-components";
|
|
4
|
+
// src/internal/listParts.tsx
|
|
5
|
+
/** The text a list item is found by when typing: its string label unless one is given. */
|
|
6
|
+
function textValueOf(textValue, children) {
|
|
7
|
+
return textValue ?? (typeof children === "string" ? children : void 0);
|
|
8
|
+
}
|
|
9
|
+
/** A list item's label with an optional second line. Select hides the second line in its trigger. */
|
|
10
|
+
function ListItemText({ children, description }) {
|
|
11
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
12
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
13
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
14
|
+
className: "truncate",
|
|
15
|
+
children
|
|
16
|
+
}), description && /* @__PURE__ */ jsx("span", {
|
|
17
|
+
"data-item-description": "",
|
|
18
|
+
className: "truncate text-xs text-tertiary",
|
|
19
|
+
children: description
|
|
20
|
+
})]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/** Small heading above a group of list items. */
|
|
24
|
+
function ListSectionHeader({ children }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Header, {
|
|
26
|
+
className: "px-item-x pt-2 pb-1 text-xs font-semibold text-tertiary",
|
|
27
|
+
children
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export { ListItemText, ListSectionHeader, textValueOf };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=listParts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listParts.js","names":[],"sources":["../../src/internal/listParts.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { Header } from 'react-aria-components';\n\n/** The text a list item is found by when typing: its string label unless one is given. */\nexport function textValueOf(textValue: string | undefined, children: unknown) {\n return textValue ?? (typeof children === 'string' ? children : undefined);\n}\n\n/** A list item's label with an optional second line. Select hides the second line in its trigger. */\nexport function ListItemText({\n children,\n description,\n}: {\n children: ReactNode;\n description?: ReactNode;\n}) {\n return (\n <span className='flex min-w-0 flex-1 flex-col'>\n <span className='truncate'>{children}</span>\n {description && (\n <span data-item-description='' className='truncate text-xs text-tertiary'>\n {description}\n </span>\n )}\n </span>\n );\n}\n\n/** Small heading above a group of list items. */\nexport function ListSectionHeader({ children }: { children: ReactNode }) {\n return (\n <Header className='px-item-x pt-2 pb-1 text-xs font-semibold text-tertiary'>{children}</Header>\n );\n}\n"],"mappings":";;;;;AAIA,SAAgB,YAAY,WAA+B,UAAmB;CAC5E,OAAO,cAAc,OAAO,aAAa,WAAW,WAAW,KAAA;AACjE;;AAGA,SAAgB,aAAa,EAC3B,UACA,eAIC;CACD,OACE,qBAAC,QAAD;EAAM,WAAU;EAAhB,UAAA,CACE,oBAAC,QAAD;GAAM,WAAU;GAAY;EAAe,CAAA,GAC1C,eACC,oBAAC,QAAD;GAAM,yBAAsB;GAAG,WAAU;GACtC,UAAA;EACG,CAAA,CAEJ;;AAEV;;AAGA,SAAgB,kBAAkB,EAAE,YAAqC;CACvE,OACE,oBAAC,QAAD;EAAQ,WAAU;EAA2D;CAAiB,CAAA;AAElG"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
export declare const
|
|
1
|
+
/** A raised card: Card, and a Table's container. Charts inside it match its background. */
|
|
2
|
+
export declare const cardSurface = "rounded-xl border border-subtle bg-elevated text-primary shadow-xs [--chart-surface:var(--ui-bg-elevated)]";
|
|
3
|
+
/** The panel of a modal: Dialog, Drawer and CommandPalette. Add the border, the radius and the layout. */
|
|
4
|
+
export declare const modalSurface = "border-subtle bg-elevated text-primary shadow-xl outline-none";
|
|
5
|
+
/** The dimmed layer behind a modal. Add how the modal sits in it. */
|
|
6
|
+
export declare const modalBackdrop = "fixed inset-0 z-50 bg-overlay transition-opacity duration-200 data-entering:opacity-0 data-exiting:opacity-0 motion-reduce:transition-none";
|
|
7
|
+
/** Floating surface for popovers, menus and listboxes. Add padding and overflow. */
|
|
8
|
+
export declare const popoverSurface = "rounded-lg border border-default bg-elevated text-primary shadow-lg outline-none";
|
|
9
|
+
/** The listbox inside a field's popover, matched to the field's width. */
|
|
10
|
+
export declare const fieldPopover = "rounded-lg border border-default bg-elevated text-primary shadow-lg outline-none w-(--trigger-width) overflow-auto p-1";
|
|
3
11
|
/** A row in a menu, listbox or command list. Sized by the density tokens. */
|
|
4
|
-
export declare const listItem = "flex cursor-pointer items-center gap-2 rounded-sm px-item-x py-item-y text-sm text-primary
|
|
5
|
-
/** Small uppercase heading above a group of list items. */
|
|
6
|
-
export declare const listSectionHeader = "px-item-x pt-2 pb-1 text-xs font-semibold text-tertiary";
|
|
12
|
+
export declare const listItem = "flex cursor-pointer items-center gap-2 rounded-sm px-item-x py-item-y text-sm text-primary select-none data-focused:bg-field-hover data-hovered:bg-field-hover outline-none data-focus-visible:outline-2 data-focus-visible:outline-solid data-focus-visible:-outline-offset-2 data-focus-visible:outline-focus data-pressed:bg-tertiary data-disabled:cursor-not-allowed data-disabled:text-disabled";
|
|
7
13
|
/** A thin divider between groups of list items. */
|
|
8
14
|
export declare const listSeparator = "mx-1 my-1 h-px bg-(--ui-border-subtle)";
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { focusRingInset } from "./focusRing.js";
|
|
2
2
|
// src/internal/surfaces.ts
|
|
3
|
-
/**
|
|
4
|
-
var
|
|
3
|
+
/** A raised card: Card, and a Table's container. Charts inside it match its background. */
|
|
4
|
+
var cardSurface = "rounded-xl border border-subtle bg-elevated text-primary shadow-xs [--chart-surface:var(--ui-bg-elevated)]";
|
|
5
|
+
/** The panel of a modal: Dialog, Drawer and CommandPalette. Add the border, the radius and the layout. */
|
|
6
|
+
var modalSurface = "border-subtle bg-elevated text-primary shadow-xl outline-none";
|
|
7
|
+
/** The dimmed layer behind a modal. Add how the modal sits in it. */
|
|
8
|
+
var modalBackdrop = "fixed inset-0 z-50 bg-overlay transition-opacity duration-200 data-entering:opacity-0 data-exiting:opacity-0 motion-reduce:transition-none";
|
|
9
|
+
/** Floating surface for popovers, menus and listboxes. Add padding and overflow. */
|
|
10
|
+
var popoverSurface = "rounded-lg border border-default bg-elevated text-primary shadow-lg outline-none";
|
|
11
|
+
/** The listbox inside a field's popover, matched to the field's width. */
|
|
12
|
+
var fieldPopover = `${popoverSurface} w-(--trigger-width) overflow-auto p-1`;
|
|
5
13
|
/** A row in a menu, listbox or command list. Sized by the density tokens. */
|
|
6
|
-
var listItem =
|
|
7
|
-
/** Small uppercase heading above a group of list items. */
|
|
8
|
-
var listSectionHeader = "px-item-x pt-2 pb-1 text-xs font-semibold text-tertiary";
|
|
14
|
+
var listItem = `flex cursor-pointer items-center gap-2 rounded-sm px-item-x py-item-y text-sm text-primary select-none data-focused:bg-field-hover data-hovered:bg-field-hover ${focusRingInset} data-pressed:bg-tertiary data-disabled:cursor-not-allowed data-disabled:text-disabled`;
|
|
9
15
|
/** A thin divider between groups of list items. */
|
|
10
16
|
var listSeparator = "mx-1 my-1 h-px bg-(--ui-border-subtle)";
|
|
11
|
-
export {
|
|
17
|
+
export { cardSurface, fieldPopover, listItem, listSeparator, modalBackdrop, modalSurface, popoverSurface };
|
|
12
18
|
|
|
13
19
|
//# sourceMappingURL=surfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surfaces.js","names":[],"sources":["../../src/internal/surfaces.ts"],"sourcesContent":["/** Floating surface for popovers, menus and listboxes. */\nexport const popoverSurface =\n '
|
|
1
|
+
{"version":3,"file":"surfaces.js","names":[],"sources":["../../src/internal/surfaces.ts"],"sourcesContent":["import { focusRingInset } from './focusRing';\n\n/** A raised card: Card, and a Table's container. Charts inside it match its background. */\nexport const cardSurface =\n 'rounded-xl border border-subtle bg-elevated text-primary shadow-xs [--chart-surface:var(--ui-bg-elevated)]';\n\n/** The panel of a modal: Dialog, Drawer and CommandPalette. Add the border, the radius and the layout. */\nexport const modalSurface = 'border-subtle bg-elevated text-primary shadow-xl outline-none';\n\n/** The dimmed layer behind a modal. Add how the modal sits in it. */\nexport const modalBackdrop =\n 'fixed inset-0 z-50 bg-overlay transition-opacity duration-200 data-entering:opacity-0 data-exiting:opacity-0 motion-reduce:transition-none';\n\n/** Floating surface for popovers, menus and listboxes. Add padding and overflow. */\nexport const popoverSurface =\n 'rounded-lg border border-default bg-elevated text-primary shadow-lg outline-none';\n\n/** The listbox inside a field's popover, matched to the field's width. */\nexport const fieldPopover = `${popoverSurface} w-(--trigger-width) overflow-auto p-1`;\n\n/** A row in a menu, listbox or command list. Sized by the density tokens. */\nexport const listItem = `flex cursor-pointer items-center gap-2 rounded-sm px-item-x py-item-y text-sm text-primary select-none data-focused:bg-field-hover data-hovered:bg-field-hover ${focusRingInset} data-pressed:bg-tertiary data-disabled:cursor-not-allowed data-disabled:text-disabled`;\n\n/** A thin divider between groups of list items. */\nexport const listSeparator = 'mx-1 my-1 h-px bg-(--ui-border-subtle)';\n"],"mappings":";;;AAGA,IAAa,cACX;;AAGF,IAAa,eAAe;;AAG5B,IAAa,gBACX;;AAGF,IAAa,iBACX;;AAGF,IAAa,eAAe,GAAG,eAAe;;AAG9C,IAAa,WAAW,kKAAkK,eAAe;;AAGzM,IAAa,gBAAgB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** The row of a Checkbox, Radio or Switch: the indicator, then the label. The root carries `group`. */
|
|
3
|
+
export declare const toggleRow = "group touch-target relative flex cursor-pointer items-start gap-2.5 text-sm text-secondary data-disabled:cursor-not-allowed data-disabled:text-disabled";
|
|
4
|
+
/** The label and hint beside a toggle's indicator. */
|
|
5
|
+
export declare function ToggleText({ children, hint }: {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
hint?: ReactNode;
|
|
8
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/internal/toggle.tsx
|
|
4
|
+
/** The row of a Checkbox, Radio or Switch: the indicator, then the label. The root carries `group`. */
|
|
5
|
+
var toggleRow = "group touch-target relative flex cursor-pointer items-start gap-2.5 text-sm text-secondary data-disabled:cursor-not-allowed data-disabled:text-disabled";
|
|
6
|
+
/** The label and hint beside a toggle's indicator. */
|
|
7
|
+
function ToggleText({ children, hint }) {
|
|
8
|
+
if (!children && !hint) return null;
|
|
9
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
10
|
+
className: "flex flex-col",
|
|
11
|
+
children: [children && /* @__PURE__ */ jsx("span", {
|
|
12
|
+
className: "font-medium",
|
|
13
|
+
children
|
|
14
|
+
}), hint && /* @__PURE__ */ jsx("span", {
|
|
15
|
+
className: "text-tertiary group-data-disabled:text-disabled",
|
|
16
|
+
children: hint
|
|
17
|
+
})]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export { ToggleText, toggleRow };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","names":[],"sources":["../../src/internal/toggle.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\n/** The row of a Checkbox, Radio or Switch: the indicator, then the label. The root carries `group`. */\nexport const toggleRow =\n 'group touch-target relative flex cursor-pointer items-start gap-2.5 text-sm text-secondary data-disabled:cursor-not-allowed data-disabled:text-disabled';\n\n/** The label and hint beside a toggle's indicator. */\nexport function ToggleText({ children, hint }: { children?: ReactNode; hint?: ReactNode }) {\n if (!children && !hint) return null;\n return (\n <span className='flex flex-col'>\n {children && <span className='font-medium'>{children}</span>}\n {hint && <span className='text-tertiary group-data-disabled:text-disabled'>{hint}</span>}\n </span>\n );\n}\n"],"mappings":";;;;AAGA,IAAa,YACX;;AAGF,SAAgB,WAAW,EAAE,UAAU,QAAoD;CACzF,IAAI,CAAC,YAAY,CAAC,MAAM,OAAO;CAC/B,OACE,qBAAC,QAAD;EAAM,WAAU;EAAhB,UAAA,CACG,YAAY,oBAAC,QAAD;GAAM,WAAU;GAAe;EAAe,CAAA,GAC1D,QAAQ,oBAAC,QAAD;GAAM,WAAU;GAAmD,UAAA;EAAW,CAAA,CACnF;;AAEV"}
|
package/dist/internal/types.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type IconComponent = ComponentType<SVGProps<SVGSVGElement> & {
|
|
4
|
-
className?: string;
|
|
5
|
-
}>;
|
|
1
|
+
/** The semantic colour of a status: one prop, `tone`, on every component that has one. */
|
|
2
|
+
export type Tone = 'neutral' | 'brand' | 'success' | 'warning' | 'error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.js","names":[],"sources":["../../src/
|
|
1
|
+
{"version":3,"file":"Anchor.js","names":[],"sources":["../../src/router/Anchor.tsx"],"sourcesContent":["import type { LinkProps } from './types';\n\n/** Default LinkComponent: a plain anchor. */\nexport function Anchor({ href, children, ...props }: LinkProps) {\n return (\n <a href={href} {...props}>\n {children}\n </a>\n );\n}\n"],"mappings":";;;AAGA,SAAgB,OAAO,EAAE,MAAM,UAAU,GAAG,SAAoB;CAC9D,OACE,oBAAC,KAAD;EAAS;EAAM,GAAI;EAChB;CACA,CAAA;AAEP"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { RouterProvider } from "react-aria-components";
|
|
4
|
-
// src/
|
|
4
|
+
// src/router/LinkRouter.tsx
|
|
5
5
|
/** True for hrefs with a scheme, such as https: or mailto:, and for protocol-relative ones. */
|
|
6
6
|
var isAbsoluteHref = (href) => /^([a-z][a-z\d+.-]*:|\/\/)/i.test(href);
|
|
7
7
|
/**
|