@askrjs/themes 0.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/LICENSE +201 -0
- package/THEMING.md +930 -0
- package/dist/_internal/box-layout.js +115 -0
- package/dist/_internal/box-layout.js.map +1 -0
- package/dist/_internal/classes.js +8 -0
- package/dist/_internal/classes.js.map +1 -0
- package/dist/_internal/jsx.js +12 -0
- package/dist/_internal/jsx.js.map +1 -0
- package/dist/_internal/layout.d.ts +9 -0
- package/dist/_internal/layout.js +156 -0
- package/dist/_internal/layout.js.map +1 -0
- package/dist/_internal/merge-props.js +50 -0
- package/dist/_internal/merge-props.js.map +1 -0
- package/dist/accessible-icon/accessible-icon.d.ts +7 -0
- package/dist/accessible-icon/accessible-icon.js +20 -0
- package/dist/accessible-icon/accessible-icon.js.map +1 -0
- package/dist/accessible-icon/accessible-icon.types.d.ts +9 -0
- package/dist/askr/dist/common/jsx.d.ts +16 -0
- package/dist/askr/dist/common/props.d.ts +22 -0
- package/dist/askr-themes/src/themes/default/index.css +3736 -0
- package/dist/aspect-ratio/aspect-ratio.d.ts +8 -0
- package/dist/aspect-ratio/aspect-ratio.js +36 -0
- package/dist/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/aspect-ratio/aspect-ratio.types.d.ts +20 -0
- package/dist/aspect-ratio/index.d.ts +2 -0
- package/dist/badge/badge.d.ts +8 -0
- package/dist/badge/badge.js +26 -0
- package/dist/badge/badge.js.map +1 -0
- package/dist/badge/badge.types.d.ts +20 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/box/box.d.ts +9 -0
- package/dist/box/box.js +35 -0
- package/dist/box/box.js.map +1 -0
- package/dist/box/box.types.d.ts +71 -0
- package/dist/box/index.d.ts +2 -0
- package/dist/breadcrumb/breadcrumb.d.ts +18 -0
- package/dist/breadcrumb/breadcrumb.js +113 -0
- package/dist/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/breadcrumb/breadcrumb.types.d.ts +64 -0
- package/dist/breadcrumb/index.d.ts +2 -0
- package/dist/card/card.d.ts +12 -0
- package/dist/card/card.js +68 -0
- package/dist/card/card.js.map +1 -0
- package/dist/card/card.types.d.ts +37 -0
- package/dist/card/index.d.ts +2 -0
- package/dist/components/_internal/box-layout.d.ts +7 -0
- package/dist/components/_internal/classes.d.ts +1 -0
- package/dist/components/_internal/jsx.d.ts +8 -0
- package/dist/components/_internal/layout.d.ts +31 -0
- package/dist/components/_internal/merge-props.d.ts +1 -0
- package/dist/components/_internal/style.d.ts +1 -0
- package/dist/components/accessible-icon/accessible-icon.d.ts +2 -0
- package/dist/components/accessible-icon/accessible-icon.types.d.ts +5 -0
- package/dist/components/accessible-icon/index.d.ts +2 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +3 -0
- package/dist/components/aspect-ratio/aspect-ratio.types.d.ts +15 -0
- package/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/components/badge/badge.a11y.d.ts +13 -0
- package/dist/components/badge/badge.d.ts +3 -0
- package/dist/components/badge/badge.types.d.ts +15 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/box/box.a11y.d.ts +10 -0
- package/dist/components/box/box.d.ts +4 -0
- package/dist/components/box/box.types.d.ts +66 -0
- package/dist/components/box/index.d.ts +3 -0
- package/dist/components/breadcrumb/breadcrumb.a11y.d.ts +13 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +13 -0
- package/dist/components/breadcrumb/breadcrumb.types.d.ts +59 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/card/card.d.ts +7 -0
- package/dist/components/card/card.types.d.ts +33 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/container/container.a11y.d.ts +16 -0
- package/dist/components/container/container.d.ts +3 -0
- package/dist/components/container/container.types.d.ts +29 -0
- package/dist/components/container/index.d.ts +3 -0
- package/dist/components/empty-state/empty-state.d.ts +2 -0
- package/dist/components/empty-state/empty-state.types.d.ts +9 -0
- package/dist/components/empty-state/index.d.ts +2 -0
- package/dist/components/flex/flex.a11y.d.ts +18 -0
- package/dist/components/flex/flex.d.ts +4 -0
- package/dist/components/flex/flex.types.d.ts +41 -0
- package/dist/components/flex/index.d.ts +3 -0
- package/dist/components/grid/grid.a11y.d.ts +21 -0
- package/dist/components/grid/grid.d.ts +4 -0
- package/dist/components/grid/grid.types.d.ts +37 -0
- package/dist/components/grid/index.d.ts +3 -0
- package/dist/components/header/header.a11y.d.ts +10 -0
- package/dist/components/header/header.d.ts +2 -0
- package/dist/components/header/header.types.d.ts +5 -0
- package/dist/components/header/index.d.ts +3 -0
- package/dist/components/index.d.ts +49 -0
- package/dist/components/index.js +28 -0
- package/dist/components/inline/index.d.ts +6 -0
- package/dist/components/logos/create-logo.d.ts +5 -0
- package/dist/components/logos/github-logo.d.ts +4 -0
- package/dist/components/logos/google-logo.d.ts +4 -0
- package/dist/components/logos/index.d.ts +5 -0
- package/dist/components/logos/microsoft-logo.d.ts +4 -0
- package/dist/components/logos/types.d.ts +14 -0
- package/dist/components/navbar/index.d.ts +2 -0
- package/dist/components/navbar/navbar.d.ts +6 -0
- package/dist/components/navbar/navbar.types.d.ts +24 -0
- package/dist/components/section/index.d.ts +3 -0
- package/dist/components/section/section.a11y.d.ts +11 -0
- package/dist/components/section/section.d.ts +3 -0
- package/dist/components/section/section.types.d.ts +17 -0
- package/dist/components/separator/index.d.ts +3 -0
- package/dist/components/separator/separator.a11y.d.ts +13 -0
- package/dist/components/separator/separator.d.ts +3 -0
- package/dist/components/separator/separator.types.d.ts +16 -0
- package/dist/components/sidebar-layout/index.d.ts +3 -0
- package/dist/components/sidebar-layout/sidebar-layout.a11y.d.ts +15 -0
- package/dist/components/sidebar-layout/sidebar-layout.d.ts +2 -0
- package/dist/components/sidebar-layout/sidebar-layout.types.d.ts +20 -0
- package/dist/components/skeleton/index.d.ts +3 -0
- package/dist/components/skeleton/skeleton.a11y.d.ts +12 -0
- package/dist/components/skeleton/skeleton.d.ts +3 -0
- package/dist/components/skeleton/skeleton.types.d.ts +13 -0
- package/dist/components/spacer/index.d.ts +3 -0
- package/dist/components/spacer/spacer.a11y.d.ts +13 -0
- package/dist/components/spacer/spacer.d.ts +3 -0
- package/dist/components/spacer/spacer.types.d.ts +24 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/spinner.d.ts +2 -0
- package/dist/components/spinner/spinner.types.d.ts +5 -0
- package/dist/components/stack/index.d.ts +3 -0
- package/dist/components/stack/stack.a11y.d.ts +14 -0
- package/dist/components/stack/stack.d.ts +3 -0
- package/dist/components/stack/stack.types.d.ts +16 -0
- package/dist/components/theme/index.d.ts +2 -0
- package/dist/components/theme/theme.d.ts +40 -0
- package/dist/components/topbar-layout/index.d.ts +3 -0
- package/dist/components/topbar-layout/topbar-layout.a11y.d.ts +13 -0
- package/dist/components/topbar-layout/topbar-layout.d.ts +2 -0
- package/dist/components/topbar-layout/topbar-layout.types.d.ts +12 -0
- package/dist/container/container.d.ts +8 -0
- package/dist/container/container.js +82 -0
- package/dist/container/container.js.map +1 -0
- package/dist/container/container.types.d.ts +28 -0
- package/dist/container/index.d.ts +2 -0
- package/dist/empty-state/empty-state.d.ts +7 -0
- package/dist/empty-state/empty-state.js +39 -0
- package/dist/empty-state/empty-state.js.map +1 -0
- package/dist/empty-state/empty-state.types.d.ts +13 -0
- package/dist/flex/flex.d.ts +9 -0
- package/dist/flex/flex.js +114 -0
- package/dist/flex/flex.js.map +1 -0
- package/dist/flex/flex.types.d.ts +41 -0
- package/dist/flex/index.d.ts +2 -0
- package/dist/grid/grid.d.ts +9 -0
- package/dist/grid/grid.js +115 -0
- package/dist/grid/grid.js.map +1 -0
- package/dist/grid/grid.types.d.ts +40 -0
- package/dist/grid/index.d.ts +2 -0
- package/dist/header/header.d.ts +7 -0
- package/dist/header/header.js +18 -0
- package/dist/header/header.js.map +1 -0
- package/dist/header/header.types.d.ts +9 -0
- package/dist/inline/index.d.ts +7 -0
- package/dist/inline/index.js +13 -0
- package/dist/inline/index.js.map +1 -0
- package/dist/logos/create-logo.js +75 -0
- package/dist/logos/create-logo.js.map +1 -0
- package/dist/logos/github-logo.d.ts +18 -0
- package/dist/logos/github-logo.js +9 -0
- package/dist/logos/github-logo.js.map +1 -0
- package/dist/logos/google-logo.d.ts +18 -0
- package/dist/logos/google-logo.js +23 -0
- package/dist/logos/google-logo.js.map +1 -0
- package/dist/logos/microsoft-logo.d.ts +18 -0
- package/dist/logos/microsoft-logo.js +35 -0
- package/dist/logos/microsoft-logo.js.map +1 -0
- package/dist/logos/types.d.ts +16 -0
- package/dist/navbar/index.d.ts +2 -0
- package/dist/navbar/navbar.d.ts +11 -0
- package/dist/navbar/navbar.js +57 -0
- package/dist/navbar/navbar.js.map +1 -0
- package/dist/navbar/navbar.types.d.ts +29 -0
- package/dist/section/index.d.ts +2 -0
- package/dist/section/section.d.ts +8 -0
- package/dist/section/section.js +40 -0
- package/dist/section/section.js.map +1 -0
- package/dist/section/section.types.d.ts +22 -0
- package/dist/separator/index.d.ts +2 -0
- package/dist/separator/separator.d.ts +8 -0
- package/dist/separator/separator.js +27 -0
- package/dist/separator/separator.js.map +1 -0
- package/dist/separator/separator.types.d.ts +21 -0
- package/dist/sidebar-layout/index.d.ts +2 -0
- package/dist/sidebar-layout/sidebar-layout.d.ts +7 -0
- package/dist/sidebar-layout/sidebar-layout.js +51 -0
- package/dist/sidebar-layout/sidebar-layout.js.map +1 -0
- package/dist/sidebar-layout/sidebar-layout.types.d.ts +20 -0
- package/dist/skeleton/index.d.ts +2 -0
- package/dist/skeleton/skeleton.d.ts +8 -0
- package/dist/skeleton/skeleton.js +26 -0
- package/dist/skeleton/skeleton.js.map +1 -0
- package/dist/skeleton/skeleton.types.d.ts +18 -0
- package/dist/spacer/index.d.ts +2 -0
- package/dist/spacer/spacer.d.ts +8 -0
- package/dist/spacer/spacer.js +47 -0
- package/dist/spacer/spacer.js.map +1 -0
- package/dist/spacer/spacer.types.d.ts +25 -0
- package/dist/spinner/index.d.ts +2 -0
- package/dist/spinner/spinner.d.ts +7 -0
- package/dist/spinner/spinner.js +16 -0
- package/dist/spinner/spinner.js.map +1 -0
- package/dist/spinner/spinner.types.d.ts +10 -0
- package/dist/stack/index.d.ts +2 -0
- package/dist/stack/stack.d.ts +8 -0
- package/dist/stack/stack.js +16 -0
- package/dist/stack/stack.js.map +1 -0
- package/dist/stack/stack.types.d.ts +21 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/theme.d.ts +44 -0
- package/dist/theme/theme.js +159 -0
- package/dist/theme/theme.js.map +1 -0
- package/dist/topbar-layout/index.d.ts +2 -0
- package/dist/topbar-layout/topbar-layout.d.ts +7 -0
- package/dist/topbar-layout/topbar-layout.js +37 -0
- package/dist/topbar-layout/topbar-layout.js.map +1 -0
- package/dist/topbar-layout/topbar-layout.types.d.ts +13 -0
- package/package.json +122 -0
- package/scripts/new-theme.js +87 -0
- package/src/askr-compat.d.ts +110 -0
- package/src/components/_internal/box-layout.ts +156 -0
- package/src/components/_internal/classes.ts +5 -0
- package/src/components/_internal/jsx.ts +141 -0
- package/src/components/_internal/layout.ts +223 -0
- package/src/components/_internal/merge-props.ts +89 -0
- package/src/components/_internal/style.ts +18 -0
- package/src/components/accessible-icon/accessible-icon.tsx +18 -0
- package/src/components/accessible-icon/accessible-icon.types.ts +5 -0
- package/src/components/accessible-icon/index.ts +2 -0
- package/src/components/aspect-ratio/aspect-ratio.tsx +48 -0
- package/src/components/aspect-ratio/aspect-ratio.types.ts +19 -0
- package/src/components/aspect-ratio/index.ts +2 -0
- package/src/components/badge/badge.a11y.ts +15 -0
- package/src/components/badge/badge.tsx +21 -0
- package/src/components/badge/badge.types.ts +27 -0
- package/src/components/badge/index.ts +3 -0
- package/src/components/box/box.a11y.ts +11 -0
- package/src/components/box/box.tsx +37 -0
- package/src/components/box/box.types.ts +75 -0
- package/src/components/box/index.ts +11 -0
- package/src/components/breadcrumb/breadcrumb.a11y.ts +15 -0
- package/src/components/breadcrumb/breadcrumb.tsx +123 -0
- package/src/components/breadcrumb/breadcrumb.types.ts +73 -0
- package/src/components/breadcrumb/index.ts +24 -0
- package/src/components/card/card.tsx +79 -0
- package/src/components/card/card.types.ts +40 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/container/container.a11y.ts +17 -0
- package/src/components/container/container.tsx +139 -0
- package/src/components/container/container.types.ts +35 -0
- package/src/components/container/index.ts +9 -0
- package/src/components/empty-state/empty-state.tsx +42 -0
- package/src/components/empty-state/empty-state.types.ts +10 -0
- package/src/components/empty-state/index.ts +2 -0
- package/src/components/flex/flex.a11y.ts +19 -0
- package/src/components/flex/flex.tsx +160 -0
- package/src/components/flex/flex.types.ts +50 -0
- package/src/components/flex/index.ts +16 -0
- package/src/components/grid/grid.a11y.ts +22 -0
- package/src/components/grid/grid.tsx +172 -0
- package/src/components/grid/grid.types.ts +45 -0
- package/src/components/grid/index.ts +10 -0
- package/src/components/header/header.a11y.ts +11 -0
- package/src/components/header/header.tsx +18 -0
- package/src/components/header/header.types.ts +6 -0
- package/src/components/header/index.ts +3 -0
- package/src/components/index.ts +107 -0
- package/src/components/inline/index.tsx +28 -0
- package/src/components/logos/create-logo.tsx +103 -0
- package/src/components/logos/github-logo.tsx +13 -0
- package/src/components/logos/google-logo.tsx +34 -0
- package/src/components/logos/index.ts +5 -0
- package/src/components/logos/microsoft-logo.tsx +10 -0
- package/src/components/logos/types.ts +24 -0
- package/src/components/navbar/index.ts +9 -0
- package/src/components/navbar/navbar.tsx +59 -0
- package/src/components/navbar/navbar.types.ts +33 -0
- package/src/components/section/index.ts +8 -0
- package/src/components/section/section.a11y.ts +12 -0
- package/src/components/section/section.tsx +37 -0
- package/src/components/section/section.types.ts +22 -0
- package/src/components/separator/index.ts +12 -0
- package/src/components/separator/separator.a11y.ts +15 -0
- package/src/components/separator/separator.tsx +23 -0
- package/src/components/separator/separator.types.ts +21 -0
- package/src/components/sidebar-layout/index.ts +6 -0
- package/src/components/sidebar-layout/sidebar-layout.a11y.ts +16 -0
- package/src/components/sidebar-layout/sidebar-layout.tsx +59 -0
- package/src/components/sidebar-layout/sidebar-layout.types.ts +22 -0
- package/src/components/skeleton/index.ts +3 -0
- package/src/components/skeleton/skeleton.a11y.ts +14 -0
- package/src/components/skeleton/skeleton.tsx +21 -0
- package/src/components/skeleton/skeleton.types.ts +17 -0
- package/src/components/spacer/index.ts +9 -0
- package/src/components/spacer/spacer.a11y.ts +14 -0
- package/src/components/spacer/spacer.tsx +58 -0
- package/src/components/spacer/spacer.types.ts +30 -0
- package/src/components/spinner/index.ts +2 -0
- package/src/components/spinner/spinner.tsx +21 -0
- package/src/components/spinner/spinner.types.ts +7 -0
- package/src/components/stack/index.ts +3 -0
- package/src/components/stack/stack.a11y.ts +15 -0
- package/src/components/stack/stack.tsx +13 -0
- package/src/components/stack/stack.types.ts +21 -0
- package/src/components/theme/index.ts +10 -0
- package/src/components/theme/theme.tsx +260 -0
- package/src/components/topbar-layout/index.ts +3 -0
- package/src/components/topbar-layout/topbar-layout.a11y.ts +14 -0
- package/src/components/topbar-layout/topbar-layout.tsx +39 -0
- package/src/components/topbar-layout/topbar-layout.types.ts +13 -0
- package/src/css.d.ts +1 -0
- package/src/index.css +1 -0
- package/src/jsx.d.ts +23 -0
- package/src/themes/default/index.css +48 -0
- package/src/themes/default/styles/actions/button.css +196 -0
- package/src/themes/default/styles/actions/toggle-group.css +52 -0
- package/src/themes/default/styles/actions/toggle.css +44 -0
- package/src/themes/default/styles/base/icon.css +10 -0
- package/src/themes/default/styles/base/typography.css +208 -0
- package/src/themes/default/styles/base/utilities.css +223 -0
- package/src/themes/default/styles/disclosure/accordion.css +62 -0
- package/src/themes/default/styles/disclosure/collapsible.css +47 -0
- package/src/themes/default/styles/display/avatar.css +25 -0
- package/src/themes/default/styles/display/badge.css +51 -0
- package/src/themes/default/styles/display/card.css +53 -0
- package/src/themes/default/styles/display/coverage.css +248 -0
- package/src/themes/default/styles/display/progress-circle.css +18 -0
- package/src/themes/default/styles/display/progress.css +18 -0
- package/src/themes/default/styles/display/scroll-area.css +34 -0
- package/src/themes/default/styles/display/separator.css +15 -0
- package/src/themes/default/styles/display/skeleton.css +6 -0
- package/src/themes/default/styles/display/spinner.css +9 -0
- package/src/themes/default/styles/display/table.css +63 -0
- package/src/themes/default/styles/forms/checkbox.css +64 -0
- package/src/themes/default/styles/forms/form.css +5 -0
- package/src/themes/default/styles/forms/input.css +49 -0
- package/src/themes/default/styles/forms/label.css +6 -0
- package/src/themes/default/styles/forms/radio-group.css +53 -0
- package/src/themes/default/styles/forms/select.css +143 -0
- package/src/themes/default/styles/forms/slider.css +75 -0
- package/src/themes/default/styles/forms/switch.css +70 -0
- package/src/themes/default/styles/forms/textarea.css +37 -0
- package/src/themes/default/styles/layout/aspect-ratio.css +5 -0
- package/src/themes/default/styles/layout/dashboard-layout.css +15 -0
- package/src/themes/default/styles/layout/docs-layout.css +10 -0
- package/src/themes/default/styles/layout/layout.css +946 -0
- package/src/themes/default/styles/layout/patterns.css +43 -0
- package/src/themes/default/styles/layout/responsive-layout.css +209 -0
- package/src/themes/default/styles/layout/sidebar.css +10 -0
- package/src/themes/default/styles/navigation/breadcrumb.css +39 -0
- package/src/themes/default/styles/navigation/menu.css +60 -0
- package/src/themes/default/styles/navigation/menubar.css +89 -0
- package/src/themes/default/styles/navigation/navigation-menu.css +90 -0
- package/src/themes/default/styles/navigation/tabs.css +61 -0
- package/src/themes/default/styles/overlays/alert-dialog.css +9 -0
- package/src/themes/default/styles/overlays/dialog.css +116 -0
- package/src/themes/default/styles/overlays/dropdown-menu.css +109 -0
- package/src/themes/default/styles/overlays/hover-card.css +46 -0
- package/src/themes/default/styles/overlays/popover.css +72 -0
- package/src/themes/default/styles/overlays/toast.css +123 -0
- package/src/themes/default/styles/overlays/tooltip.css +83 -0
- package/src/themes/default/styles/shell/header.css +36 -0
- package/src/themes/default/styles/shell/navbar.css +158 -0
- package/src/themes/default/styles/shell/theme.css +35 -0
- package/src/themes/default/tokens.css +316 -0
- package/templates/theme/index.css +48 -0
- package/templates/theme/styles/actions/button.css +196 -0
- package/templates/theme/styles/actions/toggle-group.css +52 -0
- package/templates/theme/styles/actions/toggle.css +44 -0
- package/templates/theme/styles/base/icon.css +10 -0
- package/templates/theme/styles/base/typography.css +208 -0
- package/templates/theme/styles/base/utilities.css +19 -0
- package/templates/theme/styles/disclosure/accordion.css +62 -0
- package/templates/theme/styles/disclosure/collapsible.css +47 -0
- package/templates/theme/styles/display/avatar.css +25 -0
- package/templates/theme/styles/display/badge.css +51 -0
- package/templates/theme/styles/display/card.css +53 -0
- package/templates/theme/styles/display/coverage.css +146 -0
- package/templates/theme/styles/display/progress-circle.css +18 -0
- package/templates/theme/styles/display/progress.css +18 -0
- package/templates/theme/styles/display/scroll-area.css +34 -0
- package/templates/theme/styles/display/separator.css +15 -0
- package/templates/theme/styles/display/skeleton.css +6 -0
- package/templates/theme/styles/display/spinner.css +9 -0
- package/templates/theme/styles/display/table.css +63 -0
- package/templates/theme/styles/forms/checkbox.css +64 -0
- package/templates/theme/styles/forms/form.css +5 -0
- package/templates/theme/styles/forms/input.css +49 -0
- package/templates/theme/styles/forms/label.css +6 -0
- package/templates/theme/styles/forms/radio-group.css +53 -0
- package/templates/theme/styles/forms/select.css +143 -0
- package/templates/theme/styles/forms/slider.css +75 -0
- package/templates/theme/styles/forms/switch.css +70 -0
- package/templates/theme/styles/forms/textarea.css +37 -0
- package/templates/theme/styles/layout/aspect-ratio.css +5 -0
- package/templates/theme/styles/layout/dashboard-layout.css +16 -0
- package/templates/theme/styles/layout/docs-layout.css +11 -0
- package/templates/theme/styles/layout/layout.css +1 -0
- package/templates/theme/styles/layout/patterns.css +43 -0
- package/templates/theme/styles/layout/responsive-layout.css +209 -0
- package/templates/theme/styles/layout/sidebar.css +11 -0
- package/templates/theme/styles/navigation/breadcrumb.css +31 -0
- package/templates/theme/styles/navigation/menu.css +60 -0
- package/templates/theme/styles/navigation/menubar.css +89 -0
- package/templates/theme/styles/navigation/navigation-menu.css +90 -0
- package/templates/theme/styles/navigation/tabs.css +61 -0
- package/templates/theme/styles/overlays/alert-dialog.css +9 -0
- package/templates/theme/styles/overlays/dialog.css +116 -0
- package/templates/theme/styles/overlays/dropdown-menu.css +109 -0
- package/templates/theme/styles/overlays/hover-card.css +46 -0
- package/templates/theme/styles/overlays/popover.css +72 -0
- package/templates/theme/styles/overlays/toast.css +123 -0
- package/templates/theme/styles/overlays/tooltip.css +83 -0
- package/templates/theme/styles/shell/header.css +36 -0
- package/templates/theme/styles/shell/navbar.css +158 -0
- package/templates/theme/styles/shell/theme.css +35 -0
- package/templates/theme/tokens.css +316 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@keyframes ak-fade-in {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes ak-fade-out {
|
|
11
|
+
from {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes ak-scale-in {
|
|
20
|
+
from {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transform: scale(0.95);
|
|
23
|
+
}
|
|
24
|
+
to {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
transform: scale(1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes ak-scale-out {
|
|
31
|
+
from {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
transform: scale(1);
|
|
34
|
+
}
|
|
35
|
+
to {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: scale(0.95);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where([data-slot="dialog-overlay"]) {
|
|
42
|
+
position: fixed;
|
|
43
|
+
inset: 0;
|
|
44
|
+
background: color-mix(in srgb, var(--ak-color-backdrop) 96%, black 4%);
|
|
45
|
+
animation: ak-fade-in var(--ak-duration-fast) var(--ak-ease-standard);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where([data-slot="dialog-overlay"][data-state="closed"]) {
|
|
49
|
+
animation: ak-fade-out var(--ak-duration-fast) var(--ak-ease-standard);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where([data-slot="dialog-content"]) {
|
|
53
|
+
display: grid;
|
|
54
|
+
gap: var(--ak-space-sm);
|
|
55
|
+
min-width: min(34rem, calc(100vw - 1.5rem));
|
|
56
|
+
max-width: 40rem;
|
|
57
|
+
max-block-size: calc(100dvh - 4rem);
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
padding: calc(var(--ak-layout-panel-padding) + 0.25rem);
|
|
60
|
+
border: 1px solid color-mix(in srgb, var(--ak-color-border-subtle) 88%, white 12%);
|
|
61
|
+
border-radius: var(--ak-radius-lg);
|
|
62
|
+
background: var(--ak-color-surface-raised);
|
|
63
|
+
color: var(--ak-color-text);
|
|
64
|
+
box-shadow: var(--ak-shadow-md);
|
|
65
|
+
animation: ak-scale-in var(--ak-duration-normal) var(--ak-ease-standard);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where([data-slot="dialog-content"][data-state="closed"]) {
|
|
69
|
+
animation: ak-scale-out var(--ak-duration-fast) var(--ak-ease-standard);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where([data-slot="dialog-title"]) {
|
|
73
|
+
margin: 0;
|
|
74
|
+
color: var(--ak-color-text);
|
|
75
|
+
font-size: var(--ak-font-size-lg);
|
|
76
|
+
font-weight: var(--ak-font-weight-bold);
|
|
77
|
+
line-height: var(--ak-line-height-tight);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where([data-slot="dialog-description"]) {
|
|
81
|
+
margin: var(--ak-space-sm) 0 0;
|
|
82
|
+
color: var(--ak-color-text-muted);
|
|
83
|
+
line-height: var(--ak-line-height-normal);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where([data-slot="dialog-close"]) {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
min-height: 2.5rem;
|
|
91
|
+
padding: 0 calc(var(--ak-space-md) + 0.125rem);
|
|
92
|
+
border: 1px solid color-mix(in srgb, var(--ak-color-border) 84%, white 16%);
|
|
93
|
+
border-radius: var(--ak-radius-md);
|
|
94
|
+
background: var(--ak-color-surface);
|
|
95
|
+
color: var(--ak-color-text);
|
|
96
|
+
box-shadow: var(--ak-shadow-sm);
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
transition:
|
|
99
|
+
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
100
|
+
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
101
|
+
box-shadow var(--ak-duration-fast) var(--ak-ease-standard);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where([data-slot="dialog-close"]:hover) {
|
|
105
|
+
background: var(--ak-color-surface-muted);
|
|
106
|
+
border-color: var(--ak-color-border-strong);
|
|
107
|
+
box-shadow: var(--ak-shadow-sm);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:where([data-slot="dialog-close"][data-disabled]) {
|
|
111
|
+
background: var(--ak-color-disabled-surface);
|
|
112
|
+
border-color: var(--ak-color-disabled-border);
|
|
113
|
+
color: var(--ak-color-disabled-text);
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
[data-slot="dropdown-menu-trigger"] {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
min-height: 2.5rem;
|
|
6
|
+
padding: 0 var(--ak-space-md);
|
|
7
|
+
border: 1px solid var(--ak-color-border);
|
|
8
|
+
border-radius: var(--ak-radius-md);
|
|
9
|
+
background: var(--ak-color-surface);
|
|
10
|
+
color: var(--ak-color-text);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
transition:
|
|
13
|
+
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
14
|
+
box-shadow var(--ak-duration-fast) var(--ak-ease-standard);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-slot="dropdown-menu-trigger"][data-state="open"] {
|
|
18
|
+
border-color: var(--ak-color-primary);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-slot="dropdown-menu-trigger"][data-disabled] {
|
|
22
|
+
opacity: 0.5;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
cursor: not-allowed;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes ak-menu-in {
|
|
28
|
+
from {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
transform: translateY(4px);
|
|
31
|
+
}
|
|
32
|
+
to {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
transform: translateY(0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes ak-menu-out {
|
|
39
|
+
from {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transform: translateY(0);
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: translateY(4px);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-slot="dropdown-menu-content"] {
|
|
50
|
+
display: grid;
|
|
51
|
+
gap: 0.25rem;
|
|
52
|
+
min-width: 12rem;
|
|
53
|
+
max-block-size: min(20rem, calc(100vh - 4rem));
|
|
54
|
+
overflow-y: auto;
|
|
55
|
+
padding: var(--ak-space-sm);
|
|
56
|
+
border: 1px solid var(--ak-color-border);
|
|
57
|
+
border-radius: var(--ak-radius-md);
|
|
58
|
+
background: var(--ak-color-surface-raised);
|
|
59
|
+
color: var(--ak-color-text);
|
|
60
|
+
box-shadow: var(--ak-shadow-sm);
|
|
61
|
+
animation: ak-menu-in var(--ak-duration-fast) var(--ak-ease-standard);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-slot="dropdown-menu-content"][data-state="closed"] {
|
|
65
|
+
animation: ak-menu-out var(--ak-duration-fast) var(--ak-ease-standard);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot="dropdown-menu-item"] {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
min-height: 2.25rem;
|
|
72
|
+
padding: 0 var(--ak-space-sm);
|
|
73
|
+
border: 0;
|
|
74
|
+
border-radius: var(--ak-radius-sm);
|
|
75
|
+
background: transparent;
|
|
76
|
+
color: var(--ak-color-text);
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
transition:
|
|
79
|
+
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
80
|
+
color var(--ak-duration-fast) var(--ak-ease-standard);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[data-slot="dropdown-menu-item"]:hover {
|
|
84
|
+
background: var(--ak-color-surface-muted);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-slot="dropdown-menu-item"]:focus-visible {
|
|
88
|
+
outline: none;
|
|
89
|
+
background: var(--ak-color-surface-muted);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-slot="dropdown-menu-item"][data-disabled] {
|
|
93
|
+
opacity: 0.5;
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
cursor: not-allowed;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot="dropdown-menu-label"] {
|
|
99
|
+
padding: 0 var(--ak-space-sm);
|
|
100
|
+
color: var(--ak-color-text-muted);
|
|
101
|
+
font-size: var(--ak-font-size-sm);
|
|
102
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-slot="dropdown-menu-separator"] {
|
|
106
|
+
block-size: 1px;
|
|
107
|
+
margin: 0.25rem 0;
|
|
108
|
+
background: var(--ak-color-border);
|
|
109
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@keyframes ak-hover-card-in {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
transform: translateY(4px) scale(0.98);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
to {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transform: translateY(0) scale(1);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes ak-hover-card-out {
|
|
14
|
+
from {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transform: translateY(0) scale(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
to {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transform: translateY(4px) scale(0.98);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where([data-slot="hover-card-trigger"]) {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where([data-slot="hover-card-trigger"][data-disabled]) {
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where([data-slot="hover-card-content"]) {
|
|
34
|
+
min-width: 14rem;
|
|
35
|
+
padding: calc(var(--ak-space-md) + 0.125rem);
|
|
36
|
+
border: 1px solid color-mix(in srgb, var(--ak-color-border-subtle) 84%, white 16%);
|
|
37
|
+
border-radius: var(--ak-radius-lg);
|
|
38
|
+
background: var(--ak-color-surface-raised);
|
|
39
|
+
color: var(--ak-color-text);
|
|
40
|
+
box-shadow: var(--ak-shadow-md);
|
|
41
|
+
animation: ak-hover-card-in var(--ak-duration-fast) var(--ak-ease-standard);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where([data-slot="hover-card-content"][data-state="closed"]) {
|
|
45
|
+
animation: ak-hover-card-out var(--ak-duration-fast) var(--ak-ease-standard);
|
|
46
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@keyframes ak-slide-up {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
transform: translateY(4px);
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
transform: translateY(0);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes ak-slide-up-out {
|
|
13
|
+
from {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
transform: translateY(4px);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-slot="popover-content"]) {
|
|
24
|
+
min-width: 14rem;
|
|
25
|
+
padding: calc(var(--ak-space-md) + 0.125rem);
|
|
26
|
+
border: 1px solid color-mix(in srgb, var(--ak-color-border-subtle) 84%, white 16%);
|
|
27
|
+
border-radius: var(--ak-radius-lg);
|
|
28
|
+
background: var(--ak-color-surface-raised);
|
|
29
|
+
color: var(--ak-color-text);
|
|
30
|
+
box-shadow: var(--ak-shadow-md);
|
|
31
|
+
animation: ak-slide-up var(--ak-duration-fast) var(--ak-ease-standard);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where([data-slot="popover-content"][data-state="closed"]) {
|
|
35
|
+
animation: ak-slide-up-out var(--ak-duration-fast) var(--ak-ease-standard);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where([data-slot="popover-trigger"][data-state="open"]) {
|
|
39
|
+
border-color: var(--ak-color-primary);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where([data-slot="popover-close"]) {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
min-height: 2.5rem;
|
|
47
|
+
padding: 0 calc(var(--ak-space-md) + 0.125rem);
|
|
48
|
+
border: 1px solid color-mix(in srgb, var(--ak-color-border) 84%, white 16%);
|
|
49
|
+
border-radius: var(--ak-radius-md);
|
|
50
|
+
background: var(--ak-color-surface);
|
|
51
|
+
color: var(--ak-color-text);
|
|
52
|
+
box-shadow: var(--ak-shadow-sm);
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
transition:
|
|
55
|
+
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
56
|
+
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
57
|
+
box-shadow var(--ak-duration-fast) var(--ak-ease-standard);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where([data-slot="popover-close"]:hover) {
|
|
61
|
+
background: var(--ak-color-surface-muted);
|
|
62
|
+
border-color: var(--ak-color-border-strong);
|
|
63
|
+
box-shadow: var(--ak-shadow-sm);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where([data-slot="popover-close"][data-disabled]) {
|
|
67
|
+
background: var(--ak-color-disabled-surface);
|
|
68
|
+
border-color: var(--ak-color-disabled-border);
|
|
69
|
+
color: var(--ak-color-disabled-text);
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
:where([data-slot="toast-provider"]) {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:where([data-slot="toast-viewport"]) {
|
|
6
|
+
position: fixed;
|
|
7
|
+
inset-block-end: 1rem;
|
|
8
|
+
inset-inline-end: 1rem;
|
|
9
|
+
display: grid;
|
|
10
|
+
gap: var(--ak-space-md);
|
|
11
|
+
width: min(27rem, calc(100vw - 2rem));
|
|
12
|
+
z-index: var(--ak-z-toast);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes ak-toast-in {
|
|
16
|
+
from {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
transform: translateX(100%);
|
|
19
|
+
}
|
|
20
|
+
to {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
transform: translateX(0);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes ak-toast-out {
|
|
27
|
+
from {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
transform: translateX(0);
|
|
30
|
+
}
|
|
31
|
+
to {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
transform: translateX(100%);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where([data-slot="toast"]) {
|
|
38
|
+
display: grid;
|
|
39
|
+
gap: var(--ak-space-sm);
|
|
40
|
+
padding: calc(var(--ak-layout-panel-padding) - 0.15rem) var(--ak-layout-panel-padding);
|
|
41
|
+
border: 1px solid var(--ak-color-border-subtle);
|
|
42
|
+
border-radius: var(--ak-radius-lg);
|
|
43
|
+
background: var(--ak-color-surface-raised);
|
|
44
|
+
color: var(--ak-color-text);
|
|
45
|
+
box-shadow: var(--ak-shadow-md);
|
|
46
|
+
animation: ak-toast-in var(--ak-duration-normal) var(--ak-ease-standard);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where([data-slot="toast"][data-state="closed"]) {
|
|
50
|
+
animation: ak-toast-out var(--ak-duration-fast) var(--ak-ease-standard);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where([data-slot="toast-title"]) {
|
|
54
|
+
font-weight: var(--ak-font-weight-bold);
|
|
55
|
+
line-height: var(--ak-line-height-tight);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:where([data-slot="toast-description"]) {
|
|
59
|
+
color: var(--ak-color-text-muted);
|
|
60
|
+
line-height: var(--ak-line-height-normal);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where([data-slot="toast-action"]),
|
|
64
|
+
:where([data-slot="toast-close"]) {
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
min-height: 2.5rem;
|
|
69
|
+
padding: 0 var(--ak-space-md);
|
|
70
|
+
border: 1px solid var(--ak-color-border);
|
|
71
|
+
border-radius: var(--ak-radius-md);
|
|
72
|
+
background: color-mix(in srgb, var(--ak-color-primary-soft) 12%, var(--ak-color-surface));
|
|
73
|
+
color: var(--ak-color-text);
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
transition:
|
|
76
|
+
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
77
|
+
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
78
|
+
box-shadow var(--ak-duration-fast) var(--ak-ease-standard);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where([data-slot="toast-action"]:hover),
|
|
82
|
+
:where([data-slot="toast-close"]:hover) {
|
|
83
|
+
background: color-mix(in srgb, var(--ak-color-primary-soft) 22%, var(--ak-color-surface-muted));
|
|
84
|
+
border-color: var(--ak-color-border-strong);
|
|
85
|
+
box-shadow: var(--ak-shadow-sm);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where([data-slot="toast-action"][data-disabled]),
|
|
89
|
+
:where([data-slot="toast-close"][data-disabled]) {
|
|
90
|
+
background: var(--ak-color-disabled-surface);
|
|
91
|
+
border-color: var(--ak-color-disabled-border);
|
|
92
|
+
color: var(--ak-color-disabled-text);
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
cursor: not-allowed;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* toast variants */
|
|
98
|
+
:where([data-slot="toast"][data-variant="success"]) {
|
|
99
|
+
background: color-mix(in srgb, var(--ak-color-success-soft) 78%, var(--ak-color-surface-raised));
|
|
100
|
+
border-color: var(--ak-color-success);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([data-slot="toast"][data-variant="warning"]) {
|
|
104
|
+
background: color-mix(in srgb, var(--ak-color-warning-soft) 78%, var(--ak-color-surface-raised));
|
|
105
|
+
border-color: var(--ak-color-warning);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:where([data-slot="toast"][data-variant="danger"]) {
|
|
109
|
+
background: color-mix(in srgb, var(--ak-color-danger-soft) 78%, var(--ak-color-surface-raised));
|
|
110
|
+
border-color: var(--ak-color-danger);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:where([data-slot="toast"][data-variant="info"]) {
|
|
114
|
+
background: color-mix(in srgb, var(--ak-color-info-soft) 78%, var(--ak-color-surface-raised));
|
|
115
|
+
border-color: var(--ak-color-info);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (max-width: 40rem) {
|
|
119
|
+
:where([data-slot="toast-viewport"]) {
|
|
120
|
+
inset-inline: 1rem;
|
|
121
|
+
width: auto;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@keyframes ak-tooltip-in {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
transform: translateY(2px);
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
transform: translateY(0);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes ak-tooltip-out {
|
|
13
|
+
from {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
transform: translateY(2px);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="tooltip-content"] {
|
|
24
|
+
position: relative;
|
|
25
|
+
max-width: 18rem;
|
|
26
|
+
padding: 0.45rem 0.65rem;
|
|
27
|
+
border: 1px solid color-mix(in srgb, var(--ak-color-border) 48%, transparent);
|
|
28
|
+
border-radius: var(--ak-radius-md);
|
|
29
|
+
background: var(--ak-color-text);
|
|
30
|
+
color: var(--ak-color-text-inverse);
|
|
31
|
+
font-size: var(--ak-font-size-sm);
|
|
32
|
+
box-shadow: var(--ak-shadow-md);
|
|
33
|
+
animation: ak-tooltip-in var(--ak-duration-fast) var(--ak-ease-standard);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-slot="tooltip-content"]::before {
|
|
37
|
+
content: "";
|
|
38
|
+
position: absolute;
|
|
39
|
+
inline-size: 0;
|
|
40
|
+
block-size: 0;
|
|
41
|
+
border-inline-start: 0.38rem solid transparent;
|
|
42
|
+
border-inline-end: 0.38rem solid transparent;
|
|
43
|
+
border-block-start: 0.38rem solid var(--ak-color-text);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-slot="tooltip-content"]:not([data-side])::before,
|
|
47
|
+
[data-slot="tooltip-content"][data-side="top"]::before {
|
|
48
|
+
inset-block-end: -0.3rem;
|
|
49
|
+
inset-inline-start: 50%;
|
|
50
|
+
transform: translateX(-50%);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-slot="tooltip-content"][data-side="bottom"]::before {
|
|
54
|
+
inset-block-start: -0.3rem;
|
|
55
|
+
inset-inline-start: 50%;
|
|
56
|
+
transform: translateX(-50%) rotate(180deg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="tooltip-content"][data-side="left"]::before {
|
|
60
|
+
inset-inline-end: -0.3rem;
|
|
61
|
+
inset-block-start: 50%;
|
|
62
|
+
transform: translateY(-50%) rotate(90deg);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-slot="tooltip-content"][data-side="right"]::before {
|
|
66
|
+
inset-inline-start: -0.3rem;
|
|
67
|
+
inset-block-start: 50%;
|
|
68
|
+
transform: translateY(-50%) rotate(-90deg);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-slot="tooltip-content"][data-state="closed"] {
|
|
72
|
+
animation: ak-tooltip-out var(--ak-duration-fast) var(--ak-ease-standard);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-slot="tooltip-trigger"][data-state="open"] {
|
|
76
|
+
box-shadow: 0 0 0 3px var(--ak-color-focus-ring);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-slot="tooltip-trigger"][data-disabled] {
|
|
80
|
+
opacity: 0.5;
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where(.header, [data-slot="header"]) {
|
|
3
|
+
position: relative;
|
|
4
|
+
z-index: var(--ak-z-sticky);
|
|
5
|
+
border-block-end: 1px solid color-mix(in srgb, var(--ak-color-border) 88%, white 12%);
|
|
6
|
+
background: color-mix(in srgb, var(--ak-color-surface) 96%, transparent);
|
|
7
|
+
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.header, [data-slot="header"])[data-position="static"] {
|
|
11
|
+
position: static;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(.header, [data-slot="header"])[data-position="relative"] {
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(.header, [data-slot="header"])[data-position="sticky"] {
|
|
19
|
+
position: sticky;
|
|
20
|
+
inset-block-start: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(.header, [data-slot="header"])[data-position="absolute"],
|
|
24
|
+
:where(.header, [data-slot="header"])[data-position="fixed"] {
|
|
25
|
+
inset-block-start: 0;
|
|
26
|
+
inset-inline: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(.header, [data-slot="header"])[data-position="absolute"] {
|
|
30
|
+
position: absolute;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.header, [data-slot="header"])[data-position="fixed"] {
|
|
34
|
+
position: fixed;
|
|
35
|
+
}
|
|
36
|
+
}
|