@eylulg/ui 1.2.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -6
- package/dist/{chrome → data}/projects.js +43 -14
- 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 +30 -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
package/dist/theme.css
CHANGED
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
* Layer 2: semantic tokens (text, bg, border, fg) declared as CSS variables
|
|
7
7
|
* on :root and redefined under .dark. Components only use this layer,
|
|
8
8
|
* so a theme switch or a brand override never touches component code.
|
|
9
|
-
* Layer 3: density
|
|
10
|
-
*
|
|
11
|
-
* TextSizeToggle, without touching component code.
|
|
9
|
+
* Layer 3: density tokens (--density-*): control heights, item and cell
|
|
10
|
+
* padding. The same in every variant.
|
|
12
11
|
*
|
|
13
12
|
* The base theme is the portfolio's: the green brand on a warm sand frame. To
|
|
14
13
|
* theme a project, import one of the variant files (@eylulg/ui/themes/<name>.css)
|
|
15
14
|
* after this file. A variant changes colour only; the frame, the fonts, the
|
|
16
|
-
*
|
|
15
|
+
* type scale, the density and the shape are shared by every project.
|
|
17
16
|
*/
|
|
18
17
|
|
|
19
18
|
/*
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
var(--font-jetbrains-mono, 'JetBrains Mono'), ui-monospace, SFMono-Regular, 'SF Mono', Menlo,
|
|
41
40
|
Consolas, monospace;
|
|
42
41
|
|
|
43
|
-
/* The
|
|
42
|
+
/* The type scale. */
|
|
44
43
|
--text-xs: 0.8125rem;
|
|
45
44
|
--text-xs--line-height: 1.125rem;
|
|
46
45
|
--text-sm: 0.875rem;
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
--text-2xl--line-height: 2.25rem;
|
|
56
55
|
--text-3xl: 2.5rem;
|
|
57
56
|
--text-3xl--line-height: 2.875rem;
|
|
58
|
-
/* A fluid size for one hero heading per page.
|
|
57
|
+
/* A fluid size for one hero heading per page. */
|
|
59
58
|
--text-display: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
|
|
60
59
|
--text-display--line-height: 1.05;
|
|
61
60
|
--text-display--letter-spacing: -0.025em;
|
|
@@ -129,18 +128,18 @@
|
|
|
129
128
|
--color-success-900: #054f31;
|
|
130
129
|
--color-success-950: #053321;
|
|
131
130
|
|
|
132
|
-
--color-warning-25: #
|
|
133
|
-
--color-warning-50: #
|
|
134
|
-
--color-warning-100: #
|
|
135
|
-
--color-warning-200: #
|
|
136
|
-
--color-warning-300: #
|
|
137
|
-
--color-warning-400: #
|
|
138
|
-
--color-warning-500: #
|
|
139
|
-
--color-warning-600: #
|
|
140
|
-
--color-warning-700: #
|
|
141
|
-
--color-warning-800: #
|
|
142
|
-
--color-warning-900: #
|
|
143
|
-
--color-warning-950: #
|
|
131
|
+
--color-warning-25: #fffaf5;
|
|
132
|
+
--color-warning-50: #fff7ed;
|
|
133
|
+
--color-warning-100: #ffedd5;
|
|
134
|
+
--color-warning-200: #fed7aa;
|
|
135
|
+
--color-warning-300: #fdba74;
|
|
136
|
+
--color-warning-400: #fb923c;
|
|
137
|
+
--color-warning-500: #f97316;
|
|
138
|
+
--color-warning-600: #ea580c;
|
|
139
|
+
--color-warning-700: #c2410c;
|
|
140
|
+
--color-warning-800: #9a3412;
|
|
141
|
+
--color-warning-900: #7c2d12;
|
|
142
|
+
--color-warning-950: #431407;
|
|
144
143
|
|
|
145
144
|
--color-error-25: #fffbfa;
|
|
146
145
|
--color-error-50: #fef3f2;
|
|
@@ -156,6 +155,38 @@
|
|
|
156
155
|
--color-error-950: #55160c;
|
|
157
156
|
|
|
158
157
|
--animate-toast-in: toast-in 200ms ease-out;
|
|
158
|
+
--animate-progress-slide: progress-slide 1.4s ease-in-out infinite;
|
|
159
|
+
--animate-brand-draw: brand-draw 2.8s ease-in-out infinite;
|
|
160
|
+
--animate-brand-fade: brand-fade 2.8s ease-in-out infinite;
|
|
161
|
+
|
|
162
|
+
@keyframes brand-draw {
|
|
163
|
+
from {
|
|
164
|
+
stroke-dashoffset: 0.42;
|
|
165
|
+
}
|
|
166
|
+
60%,
|
|
167
|
+
to {
|
|
168
|
+
stroke-dashoffset: 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@keyframes brand-fade {
|
|
173
|
+
0%,
|
|
174
|
+
80% {
|
|
175
|
+
opacity: 1;
|
|
176
|
+
}
|
|
177
|
+
to {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@keyframes progress-slide {
|
|
183
|
+
from {
|
|
184
|
+
transform: translateX(-100%);
|
|
185
|
+
}
|
|
186
|
+
to {
|
|
187
|
+
transform: translateX(250%);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
159
190
|
|
|
160
191
|
@keyframes toast-in {
|
|
161
192
|
from {
|
|
@@ -186,6 +217,7 @@
|
|
|
186
217
|
--text-color-placeholder: var(--ui-text-placeholder);
|
|
187
218
|
--text-color-inverse: var(--ui-text-inverse);
|
|
188
219
|
--text-color-on-solid: var(--ui-text-on-solid);
|
|
220
|
+
--text-color-on-error: var(--ui-text-on-error);
|
|
189
221
|
--text-color-brand: var(--ui-text-brand);
|
|
190
222
|
--text-color-error: var(--ui-text-error);
|
|
191
223
|
--text-color-success: var(--ui-text-success);
|
|
@@ -193,7 +225,6 @@
|
|
|
193
225
|
--text-color-blue: var(--ui-text-blue);
|
|
194
226
|
--text-color-purple: var(--ui-text-purple);
|
|
195
227
|
--text-color-pink: var(--ui-text-pink);
|
|
196
|
-
--text-color-orange: var(--ui-text-orange);
|
|
197
228
|
--text-color-indigo: var(--ui-text-indigo);
|
|
198
229
|
|
|
199
230
|
--background-color-primary: var(--ui-bg-primary);
|
|
@@ -214,13 +245,16 @@
|
|
|
214
245
|
--background-color-blue-subtle: var(--ui-bg-blue-subtle);
|
|
215
246
|
--background-color-purple-subtle: var(--ui-bg-purple-subtle);
|
|
216
247
|
--background-color-pink-subtle: var(--ui-bg-pink-subtle);
|
|
217
|
-
--background-color-orange-subtle: var(--ui-bg-orange-subtle);
|
|
218
248
|
--background-color-indigo-subtle: var(--ui-bg-indigo-subtle);
|
|
219
249
|
--background-color-hover: var(--ui-bg-hover);
|
|
250
|
+
--background-color-field: var(--ui-bg-field);
|
|
251
|
+
--background-color-field-hover: var(--ui-bg-field-hover);
|
|
220
252
|
|
|
221
253
|
--border-color-default: var(--ui-border-default);
|
|
222
254
|
--border-color-strong: var(--ui-border-strong);
|
|
223
255
|
--border-color-control: var(--ui-border-control);
|
|
256
|
+
--border-color-field: var(--ui-border-field);
|
|
257
|
+
--border-color-field-hover: var(--ui-border-field-hover);
|
|
224
258
|
--border-color-subtle: var(--ui-border-subtle);
|
|
225
259
|
--border-color-brand: var(--ui-border-brand);
|
|
226
260
|
--border-color-error: var(--ui-border-error);
|
|
@@ -232,7 +266,6 @@
|
|
|
232
266
|
--ring-color-blue: var(--ui-border-blue);
|
|
233
267
|
--ring-color-purple: var(--ui-border-purple);
|
|
234
268
|
--ring-color-pink: var(--ui-border-pink);
|
|
235
|
-
--ring-color-orange: var(--ui-border-orange);
|
|
236
269
|
--ring-color-indigo: var(--ui-border-indigo);
|
|
237
270
|
--outline-color-focus: var(--ui-border-focus);
|
|
238
271
|
|
|
@@ -248,7 +281,6 @@
|
|
|
248
281
|
--color-fg-blue: var(--ui-fg-blue);
|
|
249
282
|
--color-fg-purple: var(--ui-fg-purple);
|
|
250
283
|
--color-fg-pink: var(--ui-fg-pink);
|
|
251
|
-
--color-fg-orange: var(--ui-fg-orange);
|
|
252
284
|
--color-fg-indigo: var(--ui-fg-indigo);
|
|
253
285
|
|
|
254
286
|
/* Data visualisation: categorical series, a muted overflow colour and a five step sequential ramp. */
|
|
@@ -292,6 +324,11 @@
|
|
|
292
324
|
* visible size never changes. The element must be positioned (class relative) and
|
|
293
325
|
* must not use ::after itself.
|
|
294
326
|
*/
|
|
327
|
+
/* The brand edge of a selected control, drawn inside the box over its tint, so the state reaches 3:1 without relying on hue. */
|
|
328
|
+
@utility selected-edge {
|
|
329
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-brand);
|
|
330
|
+
}
|
|
331
|
+
|
|
295
332
|
@utility touch-target {
|
|
296
333
|
@media (pointer: coarse) {
|
|
297
334
|
&::after {
|
|
@@ -354,6 +391,8 @@
|
|
|
354
391
|
--ui-text-placeholder: var(--color-gray-600);
|
|
355
392
|
--ui-text-inverse: var(--color-gray-25);
|
|
356
393
|
--ui-text-on-solid: #ffffff;
|
|
394
|
+
/* Destructive fills stay a saturated red in both modes, so Delete never looks like a soft brand colour. */
|
|
395
|
+
--ui-text-on-error: #ffffff;
|
|
357
396
|
--ui-text-brand: color-mix(in oklch, var(--color-brand-seed) 80%, black);
|
|
358
397
|
--ui-text-error: var(--color-error-700);
|
|
359
398
|
--ui-text-success: var(--color-success-700);
|
|
@@ -367,6 +406,12 @@
|
|
|
367
406
|
--ui-bg-disabled: var(--color-gray-200);
|
|
368
407
|
--ui-bg-overlay: rgb(44 37 33 / 0.55);
|
|
369
408
|
--ui-bg-hover: var(--color-gray-100);
|
|
409
|
+
/*
|
|
410
|
+
* Fields and secondary controls: a translucent ink fill with a soft edge, so
|
|
411
|
+
* the same control reads as filled on the card and on the sand page alike.
|
|
412
|
+
*/
|
|
413
|
+
--ui-bg-field: rgb(44 37 33 / 0.045);
|
|
414
|
+
--ui-bg-field-hover: rgb(44 37 33 / 0.08);
|
|
370
415
|
/* Project colour: the seed is the solid, and a tint of it on warm paper is the subtle fill. */
|
|
371
416
|
--ui-bg-brand-solid: var(--color-brand-seed);
|
|
372
417
|
--ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed) 84%, black);
|
|
@@ -379,8 +424,15 @@
|
|
|
379
424
|
|
|
380
425
|
--ui-border-default: var(--color-gray-300);
|
|
381
426
|
--ui-border-strong: var(--color-gray-500);
|
|
382
|
-
/*
|
|
427
|
+
/*
|
|
428
|
+
* Checkbox, radio and switch outlines keep 3:1 against the surface (WCAG
|
|
429
|
+
* 1.4.11): their outline is the control. A field's bottom edge uses this
|
|
430
|
+
* colour too, which marks the field at 3:1. Its sides and top, and a
|
|
431
|
+
* button's edge, use the softer field edge below.
|
|
432
|
+
*/
|
|
383
433
|
--ui-border-control: var(--color-gray-500);
|
|
434
|
+
--ui-border-field: rgb(44 37 33 / 0.13);
|
|
435
|
+
--ui-border-field-hover: rgb(44 37 33 / 0.24);
|
|
384
436
|
--ui-border-subtle: var(--color-gray-200);
|
|
385
437
|
--ui-border-brand: var(--color-brand-seed);
|
|
386
438
|
--ui-border-error: var(--color-error-600);
|
|
@@ -413,10 +465,6 @@
|
|
|
413
465
|
--ui-text-pink: #be185d;
|
|
414
466
|
--ui-border-pink: #fbcfe8;
|
|
415
467
|
--ui-fg-pink: #db2777;
|
|
416
|
-
--ui-bg-orange-subtle: #fff7ed;
|
|
417
|
-
--ui-text-orange: #c2410c;
|
|
418
|
-
--ui-border-orange: #fed7aa;
|
|
419
|
-
--ui-fg-orange: #ea580c;
|
|
420
468
|
--ui-bg-indigo-subtle: #eef2ff;
|
|
421
469
|
--ui-text-indigo: #4338ca;
|
|
422
470
|
--ui-border-indigo: #c7d2fe;
|
|
@@ -432,7 +480,7 @@
|
|
|
432
480
|
--ui-chart-2: #f1515f;
|
|
433
481
|
--ui-chart-3: #009b91;
|
|
434
482
|
--ui-chart-4: #5532bb;
|
|
435
|
-
--ui-chart-5: #
|
|
483
|
+
--ui-chart-5: #af4000;
|
|
436
484
|
--ui-chart-6: #9a005e;
|
|
437
485
|
--ui-chart-muted: #6b7280;
|
|
438
486
|
--ui-chart-seq-1: #e4f0ff;
|
|
@@ -459,6 +507,7 @@
|
|
|
459
507
|
--ui-text-inverse: #2c2521;
|
|
460
508
|
/* Dark solids are light, so the text on them is the dark page colour. */
|
|
461
509
|
--ui-text-on-solid: var(--color-gray-950);
|
|
510
|
+
--ui-text-on-error: #ffffff;
|
|
462
511
|
--ui-text-brand: var(--color-brand-seed-dark);
|
|
463
512
|
--ui-text-error: var(--color-error-300);
|
|
464
513
|
--ui-text-success: var(--color-success-300);
|
|
@@ -472,11 +521,13 @@
|
|
|
472
521
|
--ui-bg-disabled: var(--color-gray-800);
|
|
473
522
|
--ui-bg-overlay: rgb(0 0 0 / 0.65);
|
|
474
523
|
--ui-bg-hover: #36302b;
|
|
524
|
+
--ui-bg-field: rgb(243 237 229 / 0.06);
|
|
525
|
+
--ui-bg-field-hover: rgb(243 237 229 / 0.1);
|
|
475
526
|
--ui-bg-brand-solid: var(--color-brand-seed-dark);
|
|
476
527
|
--ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed-dark) 80%, white);
|
|
477
528
|
--ui-bg-brand-subtle: color-mix(in oklch, var(--color-brand-seed) 32%, #211d1a);
|
|
478
|
-
--ui-bg-error-solid: var(--color-error-
|
|
479
|
-
--ui-bg-error-solid-hover: var(--color-error-
|
|
529
|
+
--ui-bg-error-solid: var(--color-error-600);
|
|
530
|
+
--ui-bg-error-solid-hover: var(--color-error-700);
|
|
480
531
|
--ui-bg-error-subtle: color-mix(in oklab, var(--color-error-600) 18%, transparent);
|
|
481
532
|
--ui-bg-success-subtle: color-mix(in oklab, var(--color-success-600) 18%, transparent);
|
|
482
533
|
--ui-bg-warning-subtle: color-mix(in oklab, var(--color-warning-600) 18%, transparent);
|
|
@@ -484,6 +535,8 @@
|
|
|
484
535
|
--ui-border-default: var(--color-gray-800);
|
|
485
536
|
--ui-border-strong: var(--color-gray-400);
|
|
486
537
|
--ui-border-control: var(--color-gray-500);
|
|
538
|
+
--ui-border-field: rgb(243 237 229 / 0.13);
|
|
539
|
+
--ui-border-field-hover: rgb(243 237 229 / 0.24);
|
|
487
540
|
--ui-border-subtle: #36302b;
|
|
488
541
|
--ui-border-brand: var(--color-brand-seed-dark);
|
|
489
542
|
--ui-border-error: var(--color-error-400);
|
|
@@ -514,21 +567,17 @@
|
|
|
514
567
|
--ui-text-pink: #f9a8d4;
|
|
515
568
|
--ui-border-pink: #9d174d;
|
|
516
569
|
--ui-fg-pink: #f472b6;
|
|
517
|
-
--ui-bg-orange-subtle: color-mix(in oklab, #ea580c 18%, transparent);
|
|
518
|
-
--ui-text-orange: #fdba74;
|
|
519
|
-
--ui-border-orange: #9a3412;
|
|
520
|
-
--ui-fg-orange: #fb923c;
|
|
521
570
|
--ui-bg-indigo-subtle: color-mix(in oklab, #4f46e5 18%, transparent);
|
|
522
571
|
--ui-text-indigo: #a5b4fc;
|
|
523
572
|
--ui-border-indigo: #3730a3;
|
|
524
573
|
--ui-fg-indigo: #818cf8;
|
|
525
574
|
|
|
526
575
|
--ui-chart-1: #b3c1ff;
|
|
527
|
-
--ui-chart-2: #
|
|
528
|
-
--ui-chart-3: #
|
|
576
|
+
--ui-chart-2: #ee101c;
|
|
577
|
+
--ui-chart-3: #188771;
|
|
529
578
|
--ui-chart-4: #ac6bf4;
|
|
530
|
-
--ui-chart-5: #
|
|
531
|
-
--ui-chart-6: #
|
|
579
|
+
--ui-chart-5: #ffaf7a;
|
|
580
|
+
--ui-chart-6: #ea48ac;
|
|
532
581
|
--ui-chart-muted: #9ca3af;
|
|
533
582
|
--ui-chart-seq-1: #182e4b;
|
|
534
583
|
--ui-chart-seq-2: #284e7d;
|
|
@@ -537,21 +586,3 @@
|
|
|
537
586
|
--ui-chart-seq-5: #b3d4ff;
|
|
538
587
|
}
|
|
539
588
|
}
|
|
540
|
-
|
|
541
|
-
/* The visitor's text size, from useTextSize or themeInitScript. Default is the type scale above. */
|
|
542
|
-
:root[data-ui-text='compact'] {
|
|
543
|
-
--text-xs: 0.75rem;
|
|
544
|
-
--text-xs--line-height: 1rem;
|
|
545
|
-
--text-sm: 0.8125rem;
|
|
546
|
-
--text-sm--line-height: 1.125rem;
|
|
547
|
-
--text-md: 0.875rem;
|
|
548
|
-
--text-md--line-height: 1.25rem;
|
|
549
|
-
--text-lg: 1rem;
|
|
550
|
-
--text-lg--line-height: 1.5rem;
|
|
551
|
-
--text-xl: 1.25rem;
|
|
552
|
-
--text-xl--line-height: 1.75rem;
|
|
553
|
-
--text-2xl: 1.5rem;
|
|
554
|
-
--text-2xl--line-height: 2rem;
|
|
555
|
-
--text-3xl: 2rem;
|
|
556
|
-
--text-3xl--line-height: 2.375rem;
|
|
557
|
-
}
|
package/dist/tokens.css
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @eylulg/ui plain tokens, for apps that do not run Tailwind.
|
|
3
3
|
*
|
|
4
4
|
* Custom properties only: the colour scales, the semantic --ui-* set for light
|
|
5
|
-
* (:root) and dark (.dark-mode or .dark), fonts, the type scale
|
|
6
|
-
*
|
|
5
|
+
* (:root) and dark (.dark-mode or .dark), fonts, the type scale, radii,
|
|
6
|
+
* shadows and density.
|
|
7
7
|
* No preflight and no component styles. Import it before a variant file:
|
|
8
8
|
*
|
|
9
9
|
* @import '@eylulg/ui/tokens.css';
|
|
@@ -85,18 +85,18 @@
|
|
|
85
85
|
--color-success-800: #05603a;
|
|
86
86
|
--color-success-900: #054f31;
|
|
87
87
|
--color-success-950: #053321;
|
|
88
|
-
--color-warning-25: #
|
|
89
|
-
--color-warning-50: #
|
|
90
|
-
--color-warning-100: #
|
|
91
|
-
--color-warning-200: #
|
|
92
|
-
--color-warning-300: #
|
|
93
|
-
--color-warning-400: #
|
|
94
|
-
--color-warning-500: #
|
|
95
|
-
--color-warning-600: #
|
|
96
|
-
--color-warning-700: #
|
|
97
|
-
--color-warning-800: #
|
|
98
|
-
--color-warning-900: #
|
|
99
|
-
--color-warning-950: #
|
|
88
|
+
--color-warning-25: #fffaf5;
|
|
89
|
+
--color-warning-50: #fff7ed;
|
|
90
|
+
--color-warning-100: #ffedd5;
|
|
91
|
+
--color-warning-200: #fed7aa;
|
|
92
|
+
--color-warning-300: #fdba74;
|
|
93
|
+
--color-warning-400: #fb923c;
|
|
94
|
+
--color-warning-500: #f97316;
|
|
95
|
+
--color-warning-600: #ea580c;
|
|
96
|
+
--color-warning-700: #c2410c;
|
|
97
|
+
--color-warning-800: #9a3412;
|
|
98
|
+
--color-warning-900: #7c2d12;
|
|
99
|
+
--color-warning-950: #431407;
|
|
100
100
|
--color-error-25: #fffbfa;
|
|
101
101
|
--color-error-50: #fef3f2;
|
|
102
102
|
--color-error-100: #fee4e2;
|
|
@@ -149,6 +149,8 @@
|
|
|
149
149
|
--ui-text-placeholder: var(--color-gray-600);
|
|
150
150
|
--ui-text-inverse: var(--color-gray-25);
|
|
151
151
|
--ui-text-on-solid: #ffffff;
|
|
152
|
+
/* Destructive fills stay a saturated red in both modes, so Delete never looks like a soft brand colour. */
|
|
153
|
+
--ui-text-on-error: #ffffff;
|
|
152
154
|
--ui-text-brand: color-mix(in oklch, var(--color-brand-seed) 80%, black);
|
|
153
155
|
--ui-text-error: var(--color-error-700);
|
|
154
156
|
--ui-text-success: var(--color-success-700);
|
|
@@ -162,6 +164,12 @@
|
|
|
162
164
|
--ui-bg-disabled: var(--color-gray-200);
|
|
163
165
|
--ui-bg-overlay: rgb(44 37 33 / 0.55);
|
|
164
166
|
--ui-bg-hover: var(--color-gray-100);
|
|
167
|
+
/*
|
|
168
|
+
* Fields and secondary controls: a translucent ink fill with a soft edge, so
|
|
169
|
+
* the same control reads as filled on the card and on the sand page alike.
|
|
170
|
+
*/
|
|
171
|
+
--ui-bg-field: rgb(44 37 33 / 0.045);
|
|
172
|
+
--ui-bg-field-hover: rgb(44 37 33 / 0.08);
|
|
165
173
|
/* Project colour: the seed is the solid, and a tint of it on warm paper is the subtle fill. */
|
|
166
174
|
--ui-bg-brand-solid: var(--color-brand-seed);
|
|
167
175
|
--ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed) 84%, black);
|
|
@@ -174,8 +182,15 @@
|
|
|
174
182
|
|
|
175
183
|
--ui-border-default: var(--color-gray-300);
|
|
176
184
|
--ui-border-strong: var(--color-gray-500);
|
|
177
|
-
/*
|
|
185
|
+
/*
|
|
186
|
+
* Checkbox, radio and switch outlines keep 3:1 against the surface (WCAG
|
|
187
|
+
* 1.4.11): their outline is the control. A field's bottom edge uses this
|
|
188
|
+
* colour too, which marks the field at 3:1. Its sides and top, and a
|
|
189
|
+
* button's edge, use the softer field edge below.
|
|
190
|
+
*/
|
|
178
191
|
--ui-border-control: var(--color-gray-500);
|
|
192
|
+
--ui-border-field: rgb(44 37 33 / 0.13);
|
|
193
|
+
--ui-border-field-hover: rgb(44 37 33 / 0.24);
|
|
179
194
|
--ui-border-subtle: var(--color-gray-200);
|
|
180
195
|
--ui-border-brand: var(--color-brand-seed);
|
|
181
196
|
--ui-border-error: var(--color-error-600);
|
|
@@ -208,10 +223,6 @@
|
|
|
208
223
|
--ui-text-pink: #be185d;
|
|
209
224
|
--ui-border-pink: #fbcfe8;
|
|
210
225
|
--ui-fg-pink: #db2777;
|
|
211
|
-
--ui-bg-orange-subtle: #fff7ed;
|
|
212
|
-
--ui-text-orange: #c2410c;
|
|
213
|
-
--ui-border-orange: #fed7aa;
|
|
214
|
-
--ui-fg-orange: #ea580c;
|
|
215
226
|
--ui-bg-indigo-subtle: #eef2ff;
|
|
216
227
|
--ui-text-indigo: #4338ca;
|
|
217
228
|
--ui-border-indigo: #c7d2fe;
|
|
@@ -227,7 +238,7 @@
|
|
|
227
238
|
--ui-chart-2: #f1515f;
|
|
228
239
|
--ui-chart-3: #009b91;
|
|
229
240
|
--ui-chart-4: #5532bb;
|
|
230
|
-
--ui-chart-5: #
|
|
241
|
+
--ui-chart-5: #af4000;
|
|
231
242
|
--ui-chart-6: #9a005e;
|
|
232
243
|
--ui-chart-muted: #6b7280;
|
|
233
244
|
--ui-chart-seq-1: #e4f0ff;
|
|
@@ -254,6 +265,7 @@
|
|
|
254
265
|
--ui-text-inverse: #2c2521;
|
|
255
266
|
/* Dark solids are light, so the text on them is the dark page colour. */
|
|
256
267
|
--ui-text-on-solid: var(--color-gray-950);
|
|
268
|
+
--ui-text-on-error: #ffffff;
|
|
257
269
|
--ui-text-brand: var(--color-brand-seed-dark);
|
|
258
270
|
--ui-text-error: var(--color-error-300);
|
|
259
271
|
--ui-text-success: var(--color-success-300);
|
|
@@ -267,11 +279,13 @@
|
|
|
267
279
|
--ui-bg-disabled: var(--color-gray-800);
|
|
268
280
|
--ui-bg-overlay: rgb(0 0 0 / 0.65);
|
|
269
281
|
--ui-bg-hover: #36302b;
|
|
282
|
+
--ui-bg-field: rgb(243 237 229 / 0.06);
|
|
283
|
+
--ui-bg-field-hover: rgb(243 237 229 / 0.1);
|
|
270
284
|
--ui-bg-brand-solid: var(--color-brand-seed-dark);
|
|
271
285
|
--ui-bg-brand-solid-hover: color-mix(in oklch, var(--color-brand-seed-dark) 80%, white);
|
|
272
286
|
--ui-bg-brand-subtle: color-mix(in oklch, var(--color-brand-seed) 32%, #211d1a);
|
|
273
|
-
--ui-bg-error-solid: var(--color-error-
|
|
274
|
-
--ui-bg-error-solid-hover: var(--color-error-
|
|
287
|
+
--ui-bg-error-solid: var(--color-error-600);
|
|
288
|
+
--ui-bg-error-solid-hover: var(--color-error-700);
|
|
275
289
|
--ui-bg-error-subtle: color-mix(in oklab, var(--color-error-600) 18%, transparent);
|
|
276
290
|
--ui-bg-success-subtle: color-mix(in oklab, var(--color-success-600) 18%, transparent);
|
|
277
291
|
--ui-bg-warning-subtle: color-mix(in oklab, var(--color-warning-600) 18%, transparent);
|
|
@@ -279,6 +293,8 @@
|
|
|
279
293
|
--ui-border-default: var(--color-gray-800);
|
|
280
294
|
--ui-border-strong: var(--color-gray-400);
|
|
281
295
|
--ui-border-control: var(--color-gray-500);
|
|
296
|
+
--ui-border-field: rgb(243 237 229 / 0.13);
|
|
297
|
+
--ui-border-field-hover: rgb(243 237 229 / 0.24);
|
|
282
298
|
--ui-border-subtle: #36302b;
|
|
283
299
|
--ui-border-brand: var(--color-brand-seed-dark);
|
|
284
300
|
--ui-border-error: var(--color-error-400);
|
|
@@ -309,21 +325,17 @@
|
|
|
309
325
|
--ui-text-pink: #f9a8d4;
|
|
310
326
|
--ui-border-pink: #9d174d;
|
|
311
327
|
--ui-fg-pink: #f472b6;
|
|
312
|
-
--ui-bg-orange-subtle: color-mix(in oklab, #ea580c 18%, transparent);
|
|
313
|
-
--ui-text-orange: #fdba74;
|
|
314
|
-
--ui-border-orange: #9a3412;
|
|
315
|
-
--ui-fg-orange: #fb923c;
|
|
316
328
|
--ui-bg-indigo-subtle: color-mix(in oklab, #4f46e5 18%, transparent);
|
|
317
329
|
--ui-text-indigo: #a5b4fc;
|
|
318
330
|
--ui-border-indigo: #3730a3;
|
|
319
331
|
--ui-fg-indigo: #818cf8;
|
|
320
332
|
|
|
321
333
|
--ui-chart-1: #b3c1ff;
|
|
322
|
-
--ui-chart-2: #
|
|
323
|
-
--ui-chart-3: #
|
|
334
|
+
--ui-chart-2: #ee101c;
|
|
335
|
+
--ui-chart-3: #188771;
|
|
324
336
|
--ui-chart-4: #ac6bf4;
|
|
325
|
-
--ui-chart-5: #
|
|
326
|
-
--ui-chart-6: #
|
|
337
|
+
--ui-chart-5: #ffaf7a;
|
|
338
|
+
--ui-chart-6: #ea48ac;
|
|
327
339
|
--ui-chart-muted: #9ca3af;
|
|
328
340
|
--ui-chart-seq-1: #182e4b;
|
|
329
341
|
--ui-chart-seq-2: #284e7d;
|
|
@@ -331,21 +343,3 @@
|
|
|
331
343
|
--ui-chart-seq-4: #7aaeef;
|
|
332
344
|
--ui-chart-seq-5: #b3d4ff;
|
|
333
345
|
}
|
|
334
|
-
|
|
335
|
-
/* The visitor's text size, from useTextSize or themeInitScript. Default is the type scale above. */
|
|
336
|
-
:root[data-ui-text='compact'] {
|
|
337
|
-
--text-xs: 0.75rem;
|
|
338
|
-
--text-xs--line-height: 1rem;
|
|
339
|
-
--text-sm: 0.8125rem;
|
|
340
|
-
--text-sm--line-height: 1.125rem;
|
|
341
|
-
--text-md: 0.875rem;
|
|
342
|
-
--text-md--line-height: 1.25rem;
|
|
343
|
-
--text-lg: 1rem;
|
|
344
|
-
--text-lg--line-height: 1.5rem;
|
|
345
|
-
--text-xl: 1.25rem;
|
|
346
|
-
--text-xl--line-height: 1.75rem;
|
|
347
|
-
--text-2xl: 1.5rem;
|
|
348
|
-
--text-2xl--line-height: 2rem;
|
|
349
|
-
--text-3xl: 2rem;
|
|
350
|
-
--text-3xl--line-height: 2.375rem;
|
|
351
|
-
}
|
package/dist/utils/cx.d.ts
CHANGED
|
@@ -9,15 +9,3 @@ import { type ClassNameValue } from 'tailwind-merge';
|
|
|
9
9
|
* React Server Component.
|
|
10
10
|
*/
|
|
11
11
|
export declare function cx(...inputs: ClassNameValue[]): string;
|
|
12
|
-
type ClassNameProp<T> = string | ((values: T & {
|
|
13
|
-
defaultClassName: string | undefined;
|
|
14
|
-
}) => string) | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Merges a component's own classes with a consumer `className` that may be a
|
|
17
|
-
* string or a React Aria render-prop function. Same result as React Aria's
|
|
18
|
-
* `composeRenderProps`, without importing it.
|
|
19
|
-
*/
|
|
20
|
-
export declare function composeClassName<T>(className: ClassNameProp<T>, base: string | ((values: T) => string)): (values: T & {
|
|
21
|
-
defaultClassName: string | undefined;
|
|
22
|
-
}) => string;
|
|
23
|
-
export {};
|
package/dist/utils/cx.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
2
2
|
// src/utils/cx.ts
|
|
3
|
+
var twMerge = extendTailwindMerge({ extend: { theme: {
|
|
4
|
+
spacing: [
|
|
5
|
+
"control-xs",
|
|
6
|
+
"control-sm",
|
|
7
|
+
"control-md",
|
|
8
|
+
"control-lg",
|
|
9
|
+
"control-x",
|
|
10
|
+
"item-x",
|
|
11
|
+
"item-y",
|
|
12
|
+
"cell-x",
|
|
13
|
+
"cell-y",
|
|
14
|
+
"card",
|
|
15
|
+
"stack"
|
|
16
|
+
],
|
|
17
|
+
text: ["display"]
|
|
18
|
+
} } });
|
|
3
19
|
/**
|
|
4
20
|
* Joins class names and resolves Tailwind conflicts so the last one wins.
|
|
5
21
|
* Falsy values are ignored, which keeps conditional classes readable:
|
|
@@ -12,14 +28,6 @@ import { twMerge } from "tailwind-merge";
|
|
|
12
28
|
function cx(...inputs) {
|
|
13
29
|
return twMerge(...inputs);
|
|
14
30
|
}
|
|
15
|
-
|
|
16
|
-
* Merges a component's own classes with a consumer `className` that may be a
|
|
17
|
-
* string or a React Aria render-prop function. Same result as React Aria's
|
|
18
|
-
* `composeRenderProps`, without importing it.
|
|
19
|
-
*/
|
|
20
|
-
function composeClassName(className, base) {
|
|
21
|
-
return (values) => cx(typeof base === "function" ? base(values) : base, typeof className === "function" ? className(values) : className);
|
|
22
|
-
}
|
|
23
|
-
export { composeClassName, cx };
|
|
31
|
+
export { cx };
|
|
24
32
|
|
|
25
33
|
//# sourceMappingURL=cx.js.map
|
package/dist/utils/cx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cx.js","names":[],"sources":["../../src/utils/cx.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"cx.js","names":[],"sources":["../../src/utils/cx.ts"],"sourcesContent":["import { extendTailwindMerge, type ClassNameValue } from 'tailwind-merge';\n\n// The control and density spacing names and the display font size are ours, so\n// tailwind-merge needs to know that `h-control-md` and `h-control-sm` compete.\nconst twMerge = extendTailwindMerge({\n extend: {\n theme: {\n spacing: [\n 'control-xs',\n 'control-sm',\n 'control-md',\n 'control-lg',\n 'control-x',\n 'item-x',\n 'item-y',\n 'cell-x',\n 'cell-y',\n 'card',\n 'stack',\n ],\n text: ['display'],\n },\n },\n});\n\n/**\n * Joins class names and resolves Tailwind conflicts so the last one wins.\n * Falsy values are ignored, which keeps conditional classes readable:\n *\n * cx('px-4 py-2', isLarge && 'px-6', className)\n *\n * This module imports nothing but tailwind-merge, so it is safe to use in a\n * React Server Component.\n */\nexport function cx(...inputs: ClassNameValue[]): string {\n return twMerge(...inputs);\n}\n"],"mappings":";;AAIA,IAAM,UAAU,oBAAoB,EAClC,QAAQ,EACN,OAAO;CACL,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM,CAAC,SAAS;AAClB,EACF,EACF,CAAC;;;;;;;;;;AAWD,SAAgB,GAAG,GAAG,QAAkC;CACtD,OAAO,QAAQ,GAAG,MAAM;AAC1B"}
|