@askrjs/themes 0.0.8 → 0.0.10
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 +19 -13
- package/THEMING.md +24 -18
- package/dist/components/_internal/block-layout.d.ts +49 -0
- package/dist/components/_internal/block-layout.js +210 -0
- package/dist/components/_internal/block-layout.js.map +1 -0
- package/dist/components/_internal/jsx.js.map +1 -1
- package/dist/components/_internal/style.js +25 -1
- package/dist/components/_internal/style.js.map +1 -1
- package/dist/components/alert/alert.js +2 -2
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/alert.types.d.ts +0 -1
- package/dist/components/aside/aside.d.ts +7 -0
- package/dist/components/aside/aside.js +16 -0
- package/dist/components/aside/aside.js.map +1 -0
- package/dist/components/aside/aside.types.d.ts +6 -0
- package/dist/components/aside/index.d.ts +2 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/badge/index.d.ts +1 -2
- package/dist/components/block/block.d.ts +2 -3
- package/dist/components/block/block.js +16 -46
- package/dist/components/block/block.js.map +1 -1
- package/dist/components/block/block.types.d.ts +13 -23
- package/dist/components/block/index.d.ts +3 -3
- package/dist/components/brand/brand.d.ts +9 -0
- package/dist/components/brand/brand.js +49 -0
- package/dist/components/brand/brand.js.map +1 -0
- package/dist/components/brand/brand.types.d.ts +31 -0
- package/dist/components/brand/index.d.ts +2 -0
- package/dist/components/card/card.d.ts +3 -3
- package/dist/components/card/card.js +6 -11
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/card/card.types.d.ts +10 -12
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/catalog.d.ts +156 -0
- package/dist/components/catalog.js +723 -0
- package/dist/components/catalog.js.map +1 -0
- package/dist/components/container/container.d.ts +2 -3
- package/dist/components/container/container.js +8 -71
- package/dist/components/container/container.js.map +1 -1
- package/dist/components/container/container.types.d.ts +5 -24
- package/dist/components/container/index.d.ts +2 -3
- package/dist/components/empty-state/empty-state.js +34 -28
- package/dist/components/empty-state/empty-state.js.map +1 -1
- package/dist/components/empty-state/empty-state.types.d.ts +3 -6
- package/dist/components/field/field.js +4 -2
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/field/field.types.d.ts +1 -0
- package/dist/components/footer/footer.d.ts +13 -0
- package/dist/components/footer/footer.js +86 -0
- package/dist/components/footer/footer.js.map +1 -0
- package/dist/components/footer/footer.types.d.ts +37 -0
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/grid/grid.d.ts +7 -0
- package/dist/components/grid/grid.js +76 -0
- package/dist/components/grid/grid.js.map +1 -0
- package/dist/components/grid/grid.types.d.ts +19 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/header/header.js +9 -6
- package/dist/components/header/header.js.map +1 -1
- package/dist/components/header/header.types.d.ts +5 -5
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/main/index.d.ts +2 -0
- package/dist/components/main/main.d.ts +7 -0
- package/dist/components/main/main.js +17 -0
- package/dist/components/main/main.js.map +1 -0
- package/dist/components/main/main.types.d.ts +6 -0
- package/dist/components/nav/index.d.ts +2 -2
- package/dist/components/nav/nav.d.ts +8 -6
- package/dist/components/nav/nav.js +93 -58
- package/dist/components/nav/nav.js.map +1 -1
- package/dist/components/nav/nav.types.d.ts +16 -20
- package/dist/components/navbar/index.d.ts +4 -5
- package/dist/components/navbar/navbar.d.ts +3 -38
- package/dist/components/navbar/navbar.js +102 -198
- package/dist/components/navbar/navbar.js.map +1 -1
- package/dist/components/navbar/navbar.types.d.ts +14 -24
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/page.d.ts +7 -0
- package/dist/components/page/page.js +22 -0
- package/dist/components/page/page.js.map +1 -0
- package/dist/components/page/page.types.d.ts +6 -0
- package/dist/components/page-header/index.d.ts +2 -0
- package/dist/components/page-header/page-header.d.ts +7 -0
- package/dist/components/page-header/page-header.js +37 -0
- package/dist/components/page-header/page-header.js.map +1 -0
- package/dist/components/page-header/page-header.types.d.ts +10 -0
- package/dist/components/section/index.d.ts +2 -3
- package/dist/components/section/section.d.ts +2 -3
- package/dist/components/section/section.js +7 -30
- package/dist/components/section/section.js.map +1 -1
- package/dist/components/section/section.types.d.ts +3 -20
- package/dist/components/separator/index.d.ts +1 -2
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/sidebar.d.ts +17 -2
- package/dist/components/sidebar/sidebar.js +115 -211
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/sidebar/sidebar.types.d.ts +21 -23
- package/dist/components/skeleton/index.d.ts +1 -2
- package/dist/components/skeleton/skeleton.js +12 -1
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/skeleton/skeleton.types.d.ts +2 -0
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/spinner.js +6 -3
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/spinner/spinner.types.d.ts +3 -1
- package/dist/components/stat/index.d.ts +2 -0
- package/dist/components/stat/stat.d.ts +10 -0
- package/dist/components/stat/stat.js +52 -0
- package/dist/components/stat/stat.js.map +1 -0
- package/dist/components/stat/stat.types.d.ts +24 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +7 -0
- package/dist/components/text/text.js +28 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/text/text.types.d.ts +26 -0
- package/dist/components/theme/theme.js +97 -18
- package/dist/components/theme/theme.js.map +1 -1
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar/toolbar.d.ts +7 -0
- package/dist/components/toolbar/toolbar.js +30 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/toolbar/toolbar.types.d.ts +9 -0
- package/dist/components.d.ts +60 -0
- package/dist/components.js +35 -0
- package/dist/controls.d.ts +2 -2
- package/dist/controls.js +3 -3
- package/dist/core.d.ts +36 -0
- package/dist/core.js +19 -0
- package/dist/navs.d.ts +3 -15
- package/dist/navs.js +2 -8
- package/dist/overlays.d.ts +2 -2
- package/dist/overlays.js +2 -2
- package/dist/surfaces.d.ts +10 -8
- package/dist/surfaces.js +6 -4
- package/dist/themes/default/index.css +3691 -3959
- package/package.json +239 -73
- package/src/components/_internal/block-layout.ts +354 -0
- package/src/components/_internal/jsx.ts +18 -6
- package/src/components/_internal/style.ts +42 -4
- package/src/components/alert/alert.tsx +1 -2
- package/src/components/alert/alert.types.ts +0 -1
- package/src/components/aside/aside.tsx +12 -0
- package/src/components/aside/aside.types.ts +3 -0
- package/src/components/aside/index.ts +2 -0
- package/src/components/aspect-ratio/aspect-ratio.tsx +1 -1
- package/src/components/badge/index.ts +0 -1
- package/src/components/block/block.a11y.ts +0 -6
- package/src/components/block/block.tsx +40 -56
- package/src/components/block/block.types.ts +59 -41
- package/src/components/block/index.ts +1 -10
- package/src/components/brand/brand.tsx +61 -0
- package/src/components/brand/brand.types.ts +39 -0
- package/src/components/brand/index.ts +2 -0
- package/src/components/card/card.tsx +6 -18
- package/src/components/card/card.types.ts +9 -11
- package/src/components/card/index.ts +2 -3
- package/src/components/catalog.tsx +713 -0
- package/src/components/container/container.a11y.ts +0 -5
- package/src/components/container/container.tsx +18 -128
- package/src/components/container/container.types.ts +3 -32
- package/src/components/container/index.ts +1 -8
- package/src/components/empty-state/empty-state.tsx +17 -35
- package/src/components/empty-state/empty-state.types.ts +3 -5
- package/src/components/field/field.tsx +3 -1
- package/src/components/field/field.types.ts +1 -0
- package/src/components/footer/footer.tsx +88 -0
- package/src/components/footer/footer.types.ts +40 -0
- package/src/components/footer/index.ts +10 -0
- package/src/components/grid/grid.tsx +113 -0
- package/src/components/grid/grid.types.ts +20 -0
- package/src/components/grid/index.ts +2 -0
- package/src/components/header/header.tsx +10 -7
- package/src/components/header/header.types.ts +4 -4
- package/src/components/header/index.ts +1 -2
- package/src/components/main/index.ts +2 -0
- package/src/components/main/main.tsx +12 -0
- package/src/components/main/main.types.ts +3 -0
- package/src/components/nav/index.ts +7 -9
- package/src/components/nav/nav.tsx +153 -110
- package/src/components/nav/nav.types.ts +26 -27
- package/src/components/navbar/index.ts +4 -11
- package/src/components/navbar/navbar.tsx +104 -251
- package/src/components/navbar/navbar.types.ts +16 -42
- package/src/components/page/index.ts +2 -0
- package/src/components/page/page.tsx +17 -0
- package/src/components/page/page.types.ts +3 -0
- package/src/components/page-header/index.ts +2 -0
- package/src/components/page-header/page-header.tsx +29 -0
- package/src/components/page-header/page-header.types.ts +7 -0
- package/src/components/section/index.ts +1 -7
- package/src/components/section/section.a11y.ts +0 -1
- package/src/components/section/section.tsx +9 -35
- package/src/components/section/section.types.ts +2 -22
- package/src/components/separator/index.ts +4 -9
- package/src/components/sidebar/index.ts +27 -5
- package/src/components/sidebar/sidebar.tsx +145 -317
- package/src/components/sidebar/sidebar.types.ts +21 -28
- package/src/components/skeleton/index.ts +1 -2
- package/src/components/skeleton/skeleton.tsx +33 -1
- package/src/components/skeleton/skeleton.types.ts +2 -0
- package/src/components/spinner/index.ts +1 -1
- package/src/components/spinner/spinner.tsx +7 -2
- package/src/components/spinner/spinner.types.ts +3 -0
- package/src/components/stat/index.ts +2 -0
- package/src/components/stat/stat.tsx +47 -0
- package/src/components/stat/stat.types.ts +24 -0
- package/src/components/text/index.ts +2 -0
- package/src/components/text/text.tsx +39 -0
- package/src/components/text/text.types.ts +35 -0
- package/src/components/theme/theme.tsx +163 -21
- package/src/components/toolbar/index.ts +2 -0
- package/src/components/toolbar/toolbar.tsx +24 -0
- package/src/components/toolbar/toolbar.types.ts +6 -0
- package/src/components.ts +289 -0
- package/src/controls.ts +69 -2
- package/src/core.ts +42 -0
- package/src/navs.ts +9 -24
- package/src/overlays.ts +101 -59
- package/src/parity.ts +125 -0
- package/src/surfaces.ts +60 -13
- package/src/themes/default/index.css +11 -14
- package/src/themes/default/styles/actions/button-group.css +6 -6
- package/src/themes/default/styles/actions/button.css +98 -60
- package/src/themes/default/styles/actions/toggle-group.css +61 -25
- package/src/themes/default/styles/base/text.css +87 -0
- package/src/themes/default/styles/base/typography.css +24 -117
- package/src/themes/default/styles/base/utilities.css +0 -250
- package/src/themes/default/styles/disclosure/accordion.css +35 -28
- package/src/themes/default/styles/display/alert.css +7 -7
- package/src/themes/default/styles/display/avatar.css +7 -1
- package/src/themes/default/styles/display/badge.css +10 -10
- package/src/themes/default/styles/display/card.css +10 -47
- package/src/themes/default/styles/display/catalog.css +753 -0
- package/src/themes/default/styles/display/coverage.css +30 -305
- package/src/themes/default/styles/display/progress-circle.css +2 -0
- package/src/themes/default/styles/display/scroll-area.css +29 -24
- package/src/themes/default/styles/display/spinner.css +38 -1
- package/src/themes/default/styles/display/stat.css +21 -0
- package/src/themes/default/styles/display/table.css +39 -12
- package/src/themes/default/styles/display/virtual-list.css +24 -13
- package/src/themes/default/styles/display/virtual-table.css +58 -36
- package/src/themes/default/styles/forms/checkbox.css +12 -21
- package/src/themes/default/styles/forms/input-group.css +2 -1
- package/src/themes/default/styles/forms/input.css +11 -12
- package/src/themes/default/styles/forms/radio-group.css +44 -27
- package/src/themes/default/styles/forms/select.css +33 -35
- package/src/themes/default/styles/forms/slider.css +61 -47
- package/src/themes/default/styles/forms/switch.css +18 -23
- package/src/themes/default/styles/forms/textarea.css +12 -12
- package/src/themes/default/styles/layout/block.css +96 -12
- package/src/themes/default/styles/layout/grid.css +78 -0
- package/src/themes/default/styles/layout/layout.css +502 -772
- package/src/themes/default/styles/layout/patterns.css +0 -155
- package/src/themes/default/styles/navigation/nav.css +104 -154
- package/src/themes/default/styles/overlays/alert-dialog.css +2 -2
- package/src/themes/default/styles/overlays/dialog.css +76 -22
- package/src/themes/default/styles/overlays/dropdown.css +108 -31
- package/src/themes/default/styles/overlays/hover-card.css +39 -17
- package/src/themes/default/styles/overlays/menubar.css +223 -0
- package/src/themes/default/styles/overlays/popover.css +69 -23
- package/src/themes/default/styles/overlays/toast.css +91 -33
- package/src/themes/default/styles/overlays/tooltip.css +88 -14
- package/src/themes/default/styles/shell/brand.css +48 -0
- package/src/themes/default/styles/shell/footer.css +72 -0
- package/src/themes/default/styles/shell/header.css +7 -50
- package/src/themes/default/styles/shell/navbar.css +226 -453
- package/src/themes/default/styles/shell/sidebar.css +243 -829
- package/src/themes/default/tokens.css +145 -98
- package/templates/theme/index.css +11 -14
- package/templates/theme/styles/actions/button-group.css +6 -6
- package/templates/theme/styles/actions/button.css +98 -60
- package/templates/theme/styles/actions/toggle-group.css +61 -25
- package/templates/theme/styles/base/text.css +87 -0
- package/templates/theme/styles/base/typography.css +24 -117
- package/templates/theme/styles/disclosure/accordion.css +35 -28
- package/templates/theme/styles/display/alert.css +7 -7
- package/templates/theme/styles/display/avatar.css +7 -1
- package/templates/theme/styles/display/badge.css +10 -10
- package/templates/theme/styles/display/card.css +10 -47
- package/templates/theme/styles/display/catalog.css +753 -0
- package/templates/theme/styles/display/coverage.css +30 -305
- package/templates/theme/styles/display/scroll-area.css +29 -24
- package/templates/theme/styles/display/spinner.css +38 -1
- package/templates/theme/styles/display/stat.css +21 -0
- package/templates/theme/styles/display/table.css +39 -12
- package/templates/theme/styles/display/virtual-list.css +24 -13
- package/templates/theme/styles/display/virtual-table.css +58 -36
- package/templates/theme/styles/forms/checkbox.css +12 -21
- package/templates/theme/styles/forms/input.css +11 -12
- package/templates/theme/styles/forms/radio-group.css +44 -27
- package/templates/theme/styles/forms/select.css +33 -35
- package/templates/theme/styles/forms/slider.css +61 -47
- package/templates/theme/styles/forms/switch.css +18 -23
- package/templates/theme/styles/forms/textarea.css +12 -12
- package/templates/theme/styles/layout/block.css +96 -12
- package/templates/theme/styles/layout/grid.css +78 -0
- package/templates/theme/styles/layout/layout.css +676 -1
- package/templates/theme/styles/layout/patterns.css +0 -155
- package/templates/theme/styles/navigation/nav.css +104 -154
- package/templates/theme/styles/overlays/alert-dialog.css +2 -2
- package/templates/theme/styles/overlays/dialog.css +76 -22
- package/templates/theme/styles/overlays/dropdown.css +108 -31
- package/templates/theme/styles/overlays/hover-card.css +39 -17
- package/templates/theme/styles/overlays/menubar.css +223 -0
- package/templates/theme/styles/overlays/popover.css +69 -23
- package/templates/theme/styles/overlays/toast.css +80 -33
- package/templates/theme/styles/overlays/tooltip.css +88 -14
- package/templates/theme/styles/shell/brand.css +48 -0
- package/templates/theme/styles/shell/footer.css +72 -0
- package/templates/theme/styles/shell/header.css +7 -50
- package/templates/theme/styles/shell/navbar.css +226 -453
- package/templates/theme/styles/shell/sidebar.css +197 -779
- package/templates/theme/tokens.css +145 -98
- package/dist/components/_internal/box-layout.js +0 -116
- package/dist/components/_internal/box-layout.js.map +0 -1
- package/dist/components/_internal/layout.d.ts +0 -9
- package/dist/components/_internal/layout.js +0 -147
- package/dist/components/_internal/layout.js.map +0 -1
- package/dist/components/badge/badge.a11y.d.ts +0 -17
- package/dist/components/block/block.a11y.d.ts +0 -20
- package/dist/components/box/box.a11y.d.ts +0 -14
- package/dist/components/box/box.d.ts +0 -9
- package/dist/components/box/box.js +0 -36
- package/dist/components/box/box.js.map +0 -1
- package/dist/components/box/box.types.d.ts +0 -72
- package/dist/components/box/index.d.ts +0 -3
- package/dist/components/breadcrumb/breadcrumb.a11y.d.ts +0 -17
- package/dist/components/breadcrumb/breadcrumb.a11y.js +0 -15
- package/dist/components/breadcrumb/breadcrumb.a11y.js.map +0 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -18
- package/dist/components/breadcrumb/breadcrumb.js +0 -113
- package/dist/components/breadcrumb/breadcrumb.js.map +0 -1
- package/dist/components/breadcrumb/breadcrumb.types.d.ts +0 -65
- package/dist/components/breadcrumb/index.d.ts +0 -3
- package/dist/components/container/container.a11y.d.ts +0 -19
- package/dist/components/flex/flex.a11y.d.ts +0 -22
- package/dist/components/flex/flex.d.ts +0 -9
- package/dist/components/flex/flex.js +0 -115
- package/dist/components/flex/flex.js.map +0 -1
- package/dist/components/flex/flex.types.d.ts +0 -42
- package/dist/components/flex/index.d.ts +0 -3
- package/dist/components/header/header.a11y.d.ts +0 -14
- package/dist/components/header/header.a11y.js +0 -12
- package/dist/components/header/header.a11y.js.map +0 -1
- package/dist/components/inline/index.d.ts +0 -8
- package/dist/components/inline/index.js +0 -13
- package/dist/components/inline/index.js.map +0 -1
- package/dist/components/list-group/index.d.ts +0 -2
- package/dist/components/list-group/list-group.d.ts +0 -9
- package/dist/components/list-group/list-group.js +0 -43
- package/dist/components/list-group/list-group.js.map +0 -1
- package/dist/components/list-group/list-group.types.d.ts +0 -32
- package/dist/components/navbar/navbar-panel.js +0 -42
- package/dist/components/navbar/navbar-panel.js.map +0 -1
- package/dist/components/navbar/navbar.context.js +0 -13
- package/dist/components/navbar/navbar.context.js.map +0 -1
- package/dist/components/navbar/navbar.render.js +0 -26
- package/dist/components/navbar/navbar.render.js.map +0 -1
- package/dist/components/navbar/navbar.shared.js +0 -18
- package/dist/components/navbar/navbar.shared.js.map +0 -1
- package/dist/components/pagination/index.d.ts +0 -2
- package/dist/components/pagination/pagination.d.ts +0 -11
- package/dist/components/pagination/pagination.js +0 -95
- package/dist/components/pagination/pagination.js.map +0 -1
- package/dist/components/pagination/pagination.types.d.ts +0 -40
- package/dist/components/section/section.a11y.d.ts +0 -15
- package/dist/components/separator/separator.a11y.d.ts +0 -17
- package/dist/components/separator/separator.a11y.js +0 -15
- package/dist/components/separator/separator.a11y.js.map +0 -1
- package/dist/components/shell/index.d.ts +0 -3
- package/dist/components/shell/shell-nav.types.d.ts +0 -7
- package/dist/components/shell/shell-panel.js +0 -54
- package/dist/components/shell/shell-panel.js.map +0 -1
- package/dist/components/shell/shell-responsive.js +0 -118
- package/dist/components/shell/shell-responsive.js.map +0 -1
- package/dist/components/shell/shell.a11y.d.ts +0 -23
- package/dist/components/shell/shell.a11y.js +0 -23
- package/dist/components/shell/shell.a11y.js.map +0 -1
- package/dist/components/shell/shell.d.ts +0 -13
- package/dist/components/shell/shell.js +0 -69
- package/dist/components/shell/shell.js.map +0 -1
- package/dist/components/shell/shell.types.d.ts +0 -58
- package/dist/components/sidebar/sidebar-panel.d.ts +0 -7
- package/dist/components/sidebar/sidebar-panel.js +0 -49
- package/dist/components/sidebar/sidebar-panel.js.map +0 -1
- package/dist/components/sidebar/sidebar-toggle.d.ts +0 -7
- package/dist/components/sidebar/sidebar-toggle.js +0 -8
- package/dist/components/sidebar/sidebar-toggle.js.map +0 -1
- package/dist/components/sidebar/sidebar.context.js +0 -21
- package/dist/components/sidebar/sidebar.context.js.map +0 -1
- package/dist/components/sidebar/sidebar.shared.js +0 -12
- package/dist/components/sidebar/sidebar.shared.js.map +0 -1
- package/dist/components/skeleton/skeleton.a11y.d.ts +0 -16
- package/dist/components/spacer/index.d.ts +0 -3
- package/dist/components/spacer/spacer.a11y.d.ts +0 -17
- package/dist/components/spacer/spacer.d.ts +0 -8
- package/dist/components/spacer/spacer.js +0 -49
- package/dist/components/spacer/spacer.js.map +0 -1
- package/dist/components/spacer/spacer.types.d.ts +0 -26
- package/dist/components/stack/index.d.ts +0 -3
- package/dist/components/stack/stack.a11y.d.ts +0 -18
- package/dist/components/stack/stack.d.ts +0 -8
- package/dist/components/stack/stack.js +0 -16
- package/dist/components/stack/stack.js.map +0 -1
- package/dist/components/stack/stack.types.d.ts +0 -22
- package/dist/feedback.d.ts +0 -5
- package/dist/feedback.js +0 -4
- package/dist/layouts.d.ts +0 -25
- package/dist/layouts.js +0 -11
- package/dist/shells.d.ts +0 -16
- package/dist/shells.js +0 -11
- package/src/components/_internal/box-layout.ts +0 -164
- package/src/components/_internal/layout.ts +0 -211
- package/src/components/box/box.a11y.ts +0 -11
- package/src/components/box/box.tsx +0 -38
- package/src/components/box/box.types.ts +0 -76
- package/src/components/box/index.ts +0 -11
- package/src/components/breadcrumb/breadcrumb.a11y.ts +0 -15
- package/src/components/breadcrumb/breadcrumb.tsx +0 -123
- package/src/components/breadcrumb/breadcrumb.types.ts +0 -74
- package/src/components/breadcrumb/index.ts +0 -24
- package/src/components/flex/flex.a11y.ts +0 -19
- package/src/components/flex/flex.tsx +0 -162
- package/src/components/flex/flex.types.ts +0 -51
- package/src/components/flex/index.ts +0 -16
- package/src/components/inline/index.tsx +0 -28
- package/src/components/list-group/index.ts +0 -7
- package/src/components/list-group/list-group.tsx +0 -74
- package/src/components/list-group/list-group.types.ts +0 -32
- package/src/components/navbar/navbar-panel.tsx +0 -62
- package/src/components/navbar/navbar.context.ts +0 -22
- package/src/components/navbar/navbar.render.tsx +0 -32
- package/src/components/navbar/navbar.shared.ts +0 -21
- package/src/components/pagination/index.ts +0 -8
- package/src/components/pagination/pagination.tsx +0 -158
- package/src/components/pagination/pagination.types.ts +0 -41
- package/src/components/shell/index.ts +0 -16
- package/src/components/shell/shell-nav.types.ts +0 -3
- package/src/components/shell/shell-panel.tsx +0 -85
- package/src/components/shell/shell-responsive.tsx +0 -246
- package/src/components/shell/shell.a11y.ts +0 -20
- package/src/components/shell/shell.tsx +0 -74
- package/src/components/shell/shell.types.ts +0 -71
- package/src/components/sidebar/sidebar-panel.tsx +0 -67
- package/src/components/sidebar/sidebar-toggle.tsx +0 -5
- package/src/components/sidebar/sidebar.context.ts +0 -40
- package/src/components/sidebar/sidebar.shared.ts +0 -12
- package/src/components/spacer/index.ts +0 -9
- package/src/components/spacer/spacer.a11y.ts +0 -14
- package/src/components/spacer/spacer.tsx +0 -61
- package/src/components/spacer/spacer.types.ts +0 -31
- package/src/components/stack/index.ts +0 -3
- package/src/components/stack/stack.a11y.ts +0 -15
- package/src/components/stack/stack.tsx +0 -13
- package/src/components/stack/stack.types.ts +0 -22
- package/src/feedback.ts +0 -6
- package/src/layouts.ts +0 -19
- package/src/shells.ts +0 -13
- package/src/themes/default/styles/actions/toggle.css +0 -50
- package/src/themes/default/styles/disclosure/collapsible.css +0 -58
- package/src/themes/default/styles/display/list-group.css +0 -84
- package/src/themes/default/styles/forms/form.css +0 -5
- package/src/themes/default/styles/layout/responsive-layout.css +0 -230
- package/src/themes/default/styles/navigation/breadcrumb.css +0 -45
- package/src/themes/default/styles/navigation/menu.css +0 -203
- package/src/themes/default/styles/navigation/menubar.css +0 -255
- package/src/themes/default/styles/navigation/pagination.css +0 -91
- package/src/themes/default/styles/shell/theme.css +0 -37
- package/templates/theme/styles/actions/toggle.css +0 -50
- package/templates/theme/styles/disclosure/collapsible.css +0 -58
- package/templates/theme/styles/display/list-group.css +0 -84
- package/templates/theme/styles/forms/form.css +0 -5
- package/templates/theme/styles/layout/responsive-layout.css +0 -230
- package/templates/theme/styles/navigation/breadcrumb.css +0 -45
- package/templates/theme/styles/navigation/menu.css +0 -203
- package/templates/theme/styles/navigation/menubar.css +0 -255
- package/templates/theme/styles/navigation/pagination.css +0 -91
- package/templates/theme/styles/shell/theme.css +0 -37
|
@@ -1,68 +1,90 @@
|
|
|
1
1
|
:where([data-slot="virtual-table"]) {
|
|
2
|
-
inline-size:
|
|
2
|
+
min-inline-size: 0;
|
|
3
3
|
max-inline-size: 100%;
|
|
4
|
-
|
|
5
|
-
border: 1px solid color-mix(in srgb, var(--ak-color-border) 84%, var(--ak-color-surface) 16%);
|
|
4
|
+
border: 1px solid var(--ak-color-border);
|
|
6
5
|
border-radius: var(--ak-radius-lg);
|
|
7
|
-
background: var(--ak-color-surface
|
|
6
|
+
background: var(--ak-color-surface);
|
|
8
7
|
color: var(--ak-color-text);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
8
|
+
overflow: auto;
|
|
9
|
+
overscroll-behavior: contain;
|
|
10
|
+
scrollbar-width: thin;
|
|
11
|
+
scrollbar-color: var(--ak-color-border-strong) transparent;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-slot="virtual-table"][data-viewport="lg"]) {
|
|
15
|
+
block-size: 28rem;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
:where([data-slot="virtual-table-table"]) {
|
|
15
19
|
inline-size: 100%;
|
|
16
|
-
min-inline-size:
|
|
17
|
-
border-collapse:
|
|
20
|
+
min-inline-size: var(--ak-virtual-table-min-inline-size, 44rem);
|
|
21
|
+
border-collapse: collapse;
|
|
18
22
|
border-spacing: 0;
|
|
19
|
-
|
|
23
|
+
background: transparent;
|
|
24
|
+
color: inherit;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
|
-
:where([data-slot="virtual-table-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
z-index: 1;
|
|
26
|
-
background: var(--ak-color-surface-muted);
|
|
27
|
+
:where([data-slot="virtual-table"][data-table-width="compact"])
|
|
28
|
+
:where([data-slot="virtual-table-table"]) {
|
|
29
|
+
min-inline-size: var(--ak-virtual-table-compact-min-inline-size, 40rem);
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
:where([data-slot="virtual-table-
|
|
30
|
-
background: var(--ak-color-surface-
|
|
32
|
+
:where([data-slot="virtual-table-head"]) {
|
|
33
|
+
background: var(--ak-color-surface-muted);
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
:where([data-slot="virtual-table-header-row"]) {
|
|
34
37
|
background: inherit;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
:where([data-slot="virtual-table-
|
|
38
|
-
background: inherit;
|
|
39
|
-
transition: background var(--ak-duration-fast) var(--ak-ease-standard);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:where([data-slot="virtual-table-row"]:hover) {
|
|
43
|
-
background: color-mix(in srgb, var(--ak-color-hover) 70%, transparent);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:where([data-slot="virtual-table-spacer-row"]) {
|
|
40
|
+
:where([data-slot="virtual-table-body"]) {
|
|
47
41
|
background: transparent;
|
|
48
42
|
}
|
|
49
43
|
|
|
50
|
-
:where([data-slot="virtual-table-header-cell"])
|
|
51
|
-
:
|
|
52
|
-
|
|
53
|
-
border-block-end: 1px solid var(--ak-color-border-subtle);
|
|
44
|
+
:where([data-slot="virtual-table-header-cell"], [data-slot="virtual-table-cell"]) {
|
|
45
|
+
padding: var(--ak-space-sm);
|
|
46
|
+
border-block-end: 1px solid var(--ak-color-border);
|
|
54
47
|
color: var(--ak-color-text);
|
|
55
48
|
font-size: var(--ak-font-size-sm);
|
|
56
49
|
line-height: var(--ak-line-height-normal);
|
|
57
50
|
text-align: start;
|
|
58
|
-
vertical-align:
|
|
59
|
-
overflow
|
|
51
|
+
vertical-align: middle;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
white-space: nowrap;
|
|
60
55
|
}
|
|
61
56
|
|
|
62
57
|
:where([data-slot="virtual-table-header-cell"]) {
|
|
63
58
|
color: var(--ak-color-text-muted);
|
|
64
59
|
font-weight: var(--ak-font-weight-semibold);
|
|
65
|
-
letter-spacing: 0
|
|
66
|
-
text-transform:
|
|
67
|
-
|
|
60
|
+
letter-spacing: 0;
|
|
61
|
+
text-transform: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where([data-slot="virtual-table-row"]) {
|
|
65
|
+
background: transparent;
|
|
66
|
+
transition:
|
|
67
|
+
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
68
|
+
color var(--ak-duration-fast) var(--ak-ease-standard);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where([data-slot="virtual-table-row"]:hover) {
|
|
72
|
+
background: var(--ak-color-hover);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where([data-slot="virtual-table-row"][data-selected="true"]) {
|
|
76
|
+
background: var(--ak-color-selected);
|
|
77
|
+
color: var(--ak-color-text);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where([data-slot="virtual-table-spacer-row"]) {
|
|
81
|
+
background: transparent;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (max-width: 30rem) {
|
|
85
|
+
:where([data-slot="virtual-table-header-cell"], [data-slot="virtual-table-cell"]) {
|
|
86
|
+
padding: var(--ak-space-sm) var(--ak-space-xs);
|
|
87
|
+
font-size: var(--ak-font-size-xs);
|
|
88
|
+
line-height: var(--ak-line-height-tight);
|
|
89
|
+
}
|
|
68
90
|
}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
appearance: none;
|
|
3
3
|
display: inline-grid;
|
|
4
4
|
place-content: center;
|
|
5
|
-
inline-size:
|
|
6
|
-
block-size:
|
|
5
|
+
inline-size: 1rem;
|
|
6
|
+
block-size: 1rem;
|
|
7
7
|
flex: none;
|
|
8
8
|
margin: 0;
|
|
9
|
-
border: 1px solid var(--ak-color-
|
|
9
|
+
border: 1px solid var(--ak-color-input);
|
|
10
10
|
border-radius: calc(var(--ak-radius-sm) - 2px);
|
|
11
11
|
background: var(--ak-color-surface);
|
|
12
12
|
background-position: center;
|
|
13
13
|
background-repeat: no-repeat;
|
|
14
14
|
background-size: 0.85rem 0.85rem;
|
|
15
|
-
box-shadow:
|
|
15
|
+
box-shadow: none;
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
transition:
|
|
18
18
|
transform var(--ak-duration-fast) var(--ak-ease-standard),
|
|
@@ -23,43 +23,34 @@
|
|
|
23
23
|
|
|
24
24
|
:where([data-slot="checkbox"]:hover) {
|
|
25
25
|
border-color: var(--ak-color-primary);
|
|
26
|
-
box-shadow:
|
|
27
|
-
var(--ak-shadow-sm),
|
|
28
|
-
0 0 0 4px color-mix(in srgb, var(--ak-color-primary-soft) 54%, transparent);
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
:where([data-slot="checkbox"]:focus-visible) {
|
|
32
29
|
outline: none;
|
|
33
|
-
box-shadow:
|
|
34
|
-
0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring),
|
|
35
|
-
var(--ak-shadow-sm);
|
|
30
|
+
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
:where([data-slot="checkbox"][data-state="checked"]),
|
|
39
34
|
:where([data-slot="checkbox"][aria-checked="true"]) {
|
|
40
|
-
border-color:
|
|
35
|
+
border-color: var(--ak-color-primary);
|
|
41
36
|
background-color: var(--ak-color-primary);
|
|
42
37
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='M3.5 8.25 6.5 11.25 12.5 4.75'/%3E%3C/svg%3E");
|
|
43
|
-
box-shadow:
|
|
44
|
-
var(--ak-shadow-sm),
|
|
45
|
-
0 0 0 1px color-mix(in srgb, var(--ak-color-primary) 22%, transparent);
|
|
38
|
+
box-shadow: none;
|
|
46
39
|
}
|
|
47
40
|
|
|
48
41
|
:where([data-slot="checkbox"][data-state="indeterminate"]),
|
|
49
42
|
:where([data-slot="checkbox"][aria-checked="mixed"]) {
|
|
50
|
-
border-color:
|
|
43
|
+
border-color: var(--ak-color-primary);
|
|
51
44
|
background-color: var(--ak-color-primary);
|
|
52
45
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-width='2.25' d='M4 8h8'/%3E%3C/svg%3E");
|
|
53
|
-
box-shadow:
|
|
54
|
-
var(--ak-shadow-sm),
|
|
55
|
-
0 0 0 1px color-mix(in srgb, var(--ak-color-primary) 22%, transparent);
|
|
46
|
+
box-shadow: none;
|
|
56
47
|
}
|
|
57
48
|
|
|
58
49
|
:where([data-slot="checkbox"][data-disabled]) {
|
|
59
|
-
background: var(--ak-color-disabled-
|
|
60
|
-
border-color: var(--ak-color-
|
|
50
|
+
background: var(--ak-color-disabled-bg);
|
|
51
|
+
border-color: var(--ak-color-input);
|
|
61
52
|
box-shadow: none;
|
|
62
|
-
opacity:
|
|
53
|
+
opacity: 0.5;
|
|
63
54
|
pointer-events: none;
|
|
64
55
|
cursor: not-allowed;
|
|
65
56
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
padding-block: 0;
|
|
9
9
|
padding-inline: var(--_input-padding-x);
|
|
10
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid var(--ak-color-input);
|
|
11
11
|
border-radius: var(--ak-radius-md);
|
|
12
|
-
background:
|
|
12
|
+
background: transparent;
|
|
13
13
|
color: var(--ak-color-text);
|
|
14
14
|
font-size: var(--ak-font-size-sm);
|
|
15
|
-
line-height: 1.
|
|
16
|
-
box-shadow: var(--ak-shadow-
|
|
15
|
+
line-height: 1.25rem;
|
|
16
|
+
box-shadow: var(--ak-shadow-xs);
|
|
17
17
|
transition:
|
|
18
18
|
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
19
19
|
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
@@ -25,31 +25,30 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
:where(.input:hover, [data-slot="input"]:hover) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
box-shadow: var(--ak-shadow-sm);
|
|
28
|
+
border-color: var(--ak-color-input);
|
|
29
|
+
box-shadow: var(--ak-shadow-xs);
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
:where(.input:focus-visible, [data-slot="input"]:focus-visible) {
|
|
34
33
|
outline: none;
|
|
35
|
-
border-color: var(--ak-color-
|
|
34
|
+
border-color: var(--ak-color-ring);
|
|
36
35
|
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
:where(.input[aria-invalid="true"], [data-slot="input"][aria-invalid="true"]) {
|
|
40
39
|
border-color: var(--ak-color-danger);
|
|
41
|
-
background:
|
|
40
|
+
background: transparent;
|
|
42
41
|
box-shadow: 0 0 0 var(--ak-focus-ring-width)
|
|
43
42
|
color-mix(in srgb, var(--ak-color-danger-soft) 82%, transparent);
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
:where(.input[data-disabled], .input:disabled, [data-slot="input"][data-disabled]) {
|
|
47
|
-
background: var(--ak-color-disabled-
|
|
48
|
-
border-color: var(--ak-color-
|
|
46
|
+
background: var(--ak-color-disabled-bg);
|
|
47
|
+
border-color: var(--ak-color-input);
|
|
49
48
|
box-shadow: none;
|
|
50
|
-
color: var(--ak-color-disabled-text);
|
|
51
49
|
pointer-events: none;
|
|
52
50
|
cursor: not-allowed;
|
|
51
|
+
opacity: 0.5;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
:where(.input-sm, [data-slot="input"][data-size="sm"]) {
|
|
@@ -4,59 +4,76 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
:where([data-slot="radio-group"][data-orientation="horizontal"]) {
|
|
7
|
-
|
|
8
|
-
flex-wrap: wrap;
|
|
9
|
-
justify-content: flex-start;
|
|
7
|
+
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
10
8
|
}
|
|
11
9
|
|
|
12
10
|
:where([data-slot="radio-group-item"]) {
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
appearance: none;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: flex-start;
|
|
15
14
|
gap: var(--ak-space-sm);
|
|
16
|
-
min-
|
|
17
|
-
|
|
18
|
-
padding:
|
|
15
|
+
min-block-size: 2.75rem;
|
|
16
|
+
inline-size: 100%;
|
|
17
|
+
padding: var(--ak-space-md);
|
|
19
18
|
border: 1px solid var(--ak-color-border);
|
|
20
|
-
border-radius: var(--ak-radius-
|
|
19
|
+
border-radius: var(--ak-radius-lg);
|
|
21
20
|
background: var(--ak-color-surface);
|
|
22
21
|
color: var(--ak-color-text);
|
|
23
|
-
|
|
24
|
-
font-weight: var(--ak-font-weight-medium);
|
|
25
|
-
line-height: 1;
|
|
26
|
-
overflow-wrap: anywhere;
|
|
22
|
+
box-shadow: none;
|
|
27
23
|
cursor: pointer;
|
|
24
|
+
font: inherit;
|
|
25
|
+
text-align: start;
|
|
28
26
|
transition:
|
|
29
27
|
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
30
28
|
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
31
|
-
color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
32
29
|
box-shadow var(--ak-duration-fast) var(--ak-ease-standard);
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
:where([data-slot="radio-group-item"]
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
:where([data-slot="radio-group-item"])::before {
|
|
33
|
+
content: "";
|
|
34
|
+
display: block;
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
inline-size: 1rem;
|
|
37
|
+
block-size: 1rem;
|
|
38
|
+
margin-block-start: 0.125rem;
|
|
39
|
+
border: 1px solid var(--ak-color-input);
|
|
40
|
+
border-radius: var(--ak-radius-round);
|
|
41
|
+
background: radial-gradient(circle, transparent 0 37%, transparent 38%), var(--ak-color-surface);
|
|
42
|
+
transition:
|
|
43
|
+
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
44
|
+
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
45
|
+
box-shadow var(--ak-duration-fast) var(--ak-ease-standard);
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
:where([data-slot="radio-group-item"]:hover) {
|
|
42
|
-
background: var(--ak-color-hover);
|
|
43
49
|
border-color: var(--ak-color-border-strong);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:where([data-slot="radio-group-item"]:active) {
|
|
47
|
-
background: var(--ak-color-active);
|
|
50
|
+
background: var(--ak-color-surface-raised);
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
:where([data-slot="radio-group-item"]:focus-visible) {
|
|
51
54
|
outline: none;
|
|
55
|
+
border-color: var(--ak-color-ring);
|
|
52
56
|
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
53
57
|
}
|
|
54
58
|
|
|
59
|
+
:where([data-slot="radio-group-item"][data-state="checked"]) {
|
|
60
|
+
border-color: var(--ak-color-primary);
|
|
61
|
+
background: color-mix(in srgb, var(--ak-color-primary) 4%, var(--ak-color-surface));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where([data-slot="radio-group-item"][data-state="checked"])::before {
|
|
65
|
+
border-color: var(--ak-color-primary);
|
|
66
|
+
background:
|
|
67
|
+
radial-gradient(circle, var(--ak-color-primary) 0 37%, transparent 38%), var(--ak-color-surface);
|
|
68
|
+
box-shadow: inset 0 0 0 3px var(--ak-color-surface);
|
|
69
|
+
}
|
|
70
|
+
|
|
55
71
|
:where([data-slot="radio-group-item"][data-disabled]) {
|
|
56
|
-
background: var(--ak-color-disabled-
|
|
57
|
-
border-color: var(--ak-color-
|
|
72
|
+
background: var(--ak-color-disabled-bg);
|
|
73
|
+
border-color: var(--ak-color-input);
|
|
74
|
+
color: var(--ak-color-text-muted);
|
|
58
75
|
box-shadow: none;
|
|
59
|
-
color: var(--ak-color-disabled-text);
|
|
60
|
-
pointer-events: none;
|
|
61
76
|
cursor: not-allowed;
|
|
77
|
+
opacity: 0.55;
|
|
78
|
+
pointer-events: none;
|
|
62
79
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:where(.select-trigger, [data-slot="select-trigger"]) {
|
|
2
2
|
--_select-height: var(--ak-density-control-height-md);
|
|
3
3
|
--_select-padding-x: var(--ak-density-control-padding-x-md);
|
|
4
|
-
--_select-border:
|
|
4
|
+
--_select-border: var(--ak-color-input);
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: space-between;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
padding-inline: var(--_select-padding-x);
|
|
14
14
|
border: 1px solid var(--_select-border);
|
|
15
15
|
border-radius: var(--ak-radius-md);
|
|
16
|
-
background:
|
|
16
|
+
background: transparent;
|
|
17
17
|
color: var(--ak-color-text);
|
|
18
|
-
box-shadow:
|
|
18
|
+
box-shadow: none;
|
|
19
19
|
font-size: var(--ak-font-size-sm);
|
|
20
|
-
font-weight: var(--ak-font-weight-
|
|
20
|
+
font-weight: var(--ak-font-weight-regular);
|
|
21
21
|
line-height: 1;
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
transition:
|
|
@@ -27,33 +27,28 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:where(.select-trigger:hover, [data-slot="select-trigger"]:hover) {
|
|
30
|
-
|
|
31
|
-
border-color: var(--ak-color-border-strong);
|
|
30
|
+
border-color: var(--ak-color-input);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
:where(.select-trigger:focus-visible, [data-slot="select-trigger"]:focus-visible) {
|
|
35
34
|
outline: none;
|
|
36
|
-
border-color: var(--ak-color-
|
|
37
|
-
box-shadow:
|
|
38
|
-
0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring),
|
|
39
|
-
var(--ak-shadow-sm);
|
|
35
|
+
border-color: var(--ak-color-ring);
|
|
36
|
+
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
:where(.select-trigger[data-state="open"], [data-slot="select-trigger"][data-state="open"]) {
|
|
43
|
-
border-color: var(--ak-color-
|
|
44
|
-
background:
|
|
45
|
-
box-shadow:
|
|
46
|
-
0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring),
|
|
47
|
-
var(--ak-shadow-sm);
|
|
40
|
+
border-color: var(--ak-color-ring);
|
|
41
|
+
background: transparent;
|
|
42
|
+
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
:where(.select-trigger[data-disabled], [data-slot="select-trigger"][data-disabled]) {
|
|
51
|
-
background: var(--ak-color-disabled-
|
|
52
|
-
border-color: var(--ak-color-
|
|
46
|
+
background: var(--ak-color-disabled-bg);
|
|
47
|
+
border-color: var(--ak-color-input);
|
|
53
48
|
box-shadow: none;
|
|
54
|
-
color: var(--ak-color-disabled-text);
|
|
55
49
|
pointer-events: none;
|
|
56
50
|
cursor: not-allowed;
|
|
51
|
+
opacity: 0.5;
|
|
57
52
|
}
|
|
58
53
|
|
|
59
54
|
:where(.select-trigger-sm, [data-slot="select-trigger"][data-size="sm"]) {
|
|
@@ -95,12 +90,8 @@
|
|
|
95
90
|
}
|
|
96
91
|
|
|
97
92
|
:where(.select-content, [data-slot="select-content"]) {
|
|
98
|
-
--_select-surface: var(--ak-color-
|
|
99
|
-
--_select-border: color-
|
|
100
|
-
in srgb,
|
|
101
|
-
var(--ak-color-border-subtle) 88%,
|
|
102
|
-
var(--_select-surface) 12%
|
|
103
|
-
);
|
|
93
|
+
--_select-surface: var(--ak-color-popover);
|
|
94
|
+
--_select-border: var(--ak-color-border);
|
|
104
95
|
|
|
105
96
|
display: grid;
|
|
106
97
|
gap: 0.25rem;
|
|
@@ -109,9 +100,9 @@
|
|
|
109
100
|
max-inline-size: min(100%, calc(100vw - 1rem));
|
|
110
101
|
max-block-size: min(20rem, calc(100vh - 4rem));
|
|
111
102
|
overflow-y: auto;
|
|
112
|
-
padding:
|
|
103
|
+
padding: var(--ak-space-xs);
|
|
113
104
|
border: 1px solid var(--_select-border);
|
|
114
|
-
border-radius: var(--ak-radius-
|
|
105
|
+
border-radius: var(--ak-radius-md);
|
|
115
106
|
background: var(--_select-surface);
|
|
116
107
|
box-shadow: var(--ak-shadow-md);
|
|
117
108
|
z-index: var(--ak-z-dropdown);
|
|
@@ -125,38 +116,45 @@
|
|
|
125
116
|
}
|
|
126
117
|
|
|
127
118
|
:where(.select-item, [data-slot="select-item"]) {
|
|
119
|
+
appearance: none;
|
|
128
120
|
display: flex;
|
|
129
121
|
align-items: center;
|
|
130
|
-
|
|
131
|
-
|
|
122
|
+
inline-size: 100%;
|
|
123
|
+
min-height: 2rem;
|
|
124
|
+
padding: 0 var(--ak-space-sm);
|
|
125
|
+
border: 0;
|
|
132
126
|
border-radius: var(--ak-radius-md);
|
|
127
|
+
background: transparent;
|
|
133
128
|
color: var(--ak-color-text);
|
|
134
129
|
cursor: pointer;
|
|
130
|
+
font-family: inherit;
|
|
135
131
|
font-size: var(--ak-font-size-sm);
|
|
136
|
-
font-weight: var(--ak-font-weight-
|
|
132
|
+
font-weight: var(--ak-font-weight-regular);
|
|
137
133
|
overflow-wrap: anywhere;
|
|
134
|
+
text-align: start;
|
|
138
135
|
transition:
|
|
139
136
|
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
140
137
|
color var(--ak-duration-fast) var(--ak-ease-standard);
|
|
141
138
|
}
|
|
142
139
|
|
|
143
140
|
:where(.select-item[data-state="checked"], [data-slot="select-item"][data-state="checked"]) {
|
|
144
|
-
background: var(--ak-color-
|
|
145
|
-
color: var(--ak-color-
|
|
141
|
+
background: var(--ak-color-accent);
|
|
142
|
+
color: var(--ak-color-accent-ink);
|
|
146
143
|
}
|
|
147
144
|
|
|
148
145
|
:where(.select-item:hover, [data-slot="select-item"]:hover) {
|
|
149
|
-
background:
|
|
146
|
+
background: var(--ak-color-accent);
|
|
150
147
|
}
|
|
151
148
|
|
|
152
149
|
:where(.select-item:focus-visible, [data-slot="select-item"]:focus-visible) {
|
|
153
150
|
outline: none;
|
|
154
|
-
background:
|
|
155
|
-
box-shadow:
|
|
151
|
+
background: var(--ak-color-accent);
|
|
152
|
+
box-shadow: none;
|
|
156
153
|
}
|
|
157
154
|
|
|
158
155
|
:where(.select-item[data-disabled], [data-slot="select-item"][data-disabled]) {
|
|
159
|
-
color: var(--ak-color-
|
|
156
|
+
color: var(--ak-color-text-muted);
|
|
157
|
+
opacity: 0.5;
|
|
160
158
|
pointer-events: none;
|
|
161
159
|
cursor: not-allowed;
|
|
162
160
|
}
|
|
@@ -1,68 +1,86 @@
|
|
|
1
1
|
:where([data-slot="slider"]) {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
--_slider-track-size: 0.5rem;
|
|
3
|
+
--_slider-thumb-size: 1.125rem;
|
|
4
|
+
|
|
5
|
+
display: grid;
|
|
4
6
|
align-items: center;
|
|
5
|
-
|
|
7
|
+
inline-size: 100%;
|
|
6
8
|
min-inline-size: 0;
|
|
9
|
+
min-block-size: var(--ak-density-control-height-md);
|
|
10
|
+
padding-block: calc((var(--ak-density-control-height-md) - var(--_slider-track-size)) / 2);
|
|
7
11
|
touch-action: none;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
:where([data-slot="slider"][data-orientation="vertical"]) {
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
justify-items: center;
|
|
16
|
+
inline-size: var(--ak-density-control-height-md);
|
|
17
|
+
min-block-size: 8rem;
|
|
18
|
+
padding-block: 0;
|
|
19
|
+
padding-inline: calc((var(--ak-density-control-height-md) - var(--_slider-track-size)) / 2);
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
:where([data-slot="slider-track"]) {
|
|
16
23
|
position: relative;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
display: block;
|
|
25
|
+
inline-size: 100%;
|
|
26
|
+
block-size: var(--_slider-track-size);
|
|
27
|
+
border-radius: var(--ak-radius-round);
|
|
28
|
+
background: var(--ak-color-input);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
overflow: visible;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
|
-
:where([data-slot="slider
|
|
24
|
-
inline-size:
|
|
33
|
+
:where([data-slot="slider"][data-orientation="vertical"] [data-slot="slider-track"]) {
|
|
34
|
+
inline-size: var(--_slider-track-size);
|
|
25
35
|
block-size: 100%;
|
|
36
|
+
min-block-size: 8rem;
|
|
26
37
|
}
|
|
27
38
|
|
|
28
39
|
:where([data-slot="slider-range"]) {
|
|
29
40
|
position: absolute;
|
|
30
41
|
inset-block: 0;
|
|
31
42
|
inset-inline-start: 0;
|
|
32
|
-
inline-size: var(--ak-slider-percentage);
|
|
33
|
-
border-radius:
|
|
43
|
+
inline-size: var(--ak-slider-percentage, 0%);
|
|
44
|
+
border-radius: inherit;
|
|
34
45
|
background: var(--ak-color-primary);
|
|
35
|
-
|
|
46
|
+
pointer-events: none;
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
:where([data-slot="slider
|
|
39
|
-
inset-block
|
|
40
|
-
inset-
|
|
41
|
-
inline-size:
|
|
42
|
-
block-size: var(--ak-slider-percentage);
|
|
49
|
+
:where([data-slot="slider"][data-orientation="vertical"] [data-slot="slider-range"]) {
|
|
50
|
+
inset-block: auto 0;
|
|
51
|
+
inset-inline: 0;
|
|
52
|
+
inline-size: auto;
|
|
53
|
+
block-size: var(--ak-slider-percentage, 0%);
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
:where([data-slot="slider-thumb"]) {
|
|
46
57
|
position: absolute;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
58
|
+
inset-block-start: 50%;
|
|
59
|
+
inset-inline-start: var(--ak-slider-percentage, 0%);
|
|
60
|
+
display: block;
|
|
61
|
+
inline-size: var(--_slider-thumb-size);
|
|
62
|
+
block-size: var(--_slider-thumb-size);
|
|
63
|
+
border: 1px solid var(--ak-color-primary);
|
|
64
|
+
border-radius: var(--ak-radius-round);
|
|
51
65
|
background: var(--ak-color-surface);
|
|
52
|
-
box-shadow: var(--ak-shadow-
|
|
53
|
-
|
|
66
|
+
box-shadow: var(--ak-shadow-xs);
|
|
67
|
+
cursor: grab;
|
|
68
|
+
transform: translate(-50%, -50%);
|
|
69
|
+
transition:
|
|
70
|
+
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
71
|
+
box-shadow var(--ak-duration-fast) var(--ak-ease-standard),
|
|
72
|
+
background var(--ak-duration-fast) var(--ak-ease-standard);
|
|
54
73
|
}
|
|
55
74
|
|
|
56
|
-
:where([data-slot="slider
|
|
57
|
-
inset-
|
|
58
|
-
inset-
|
|
59
|
-
transform:
|
|
75
|
+
:where([data-slot="slider"][data-orientation="vertical"] [data-slot="slider-thumb"]) {
|
|
76
|
+
inset-block: auto var(--ak-slider-percentage, 0%);
|
|
77
|
+
inset-inline-start: 50%;
|
|
78
|
+
transform: translate(-50%, 50%);
|
|
60
79
|
}
|
|
61
80
|
|
|
62
|
-
:where([data-slot="slider-thumb"]
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
transform: translateX(-50%);
|
|
81
|
+
:where([data-slot="slider-thumb"]:hover) {
|
|
82
|
+
background: var(--ak-color-surface-raised);
|
|
83
|
+
box-shadow: var(--ak-shadow-sm);
|
|
66
84
|
}
|
|
67
85
|
|
|
68
86
|
:where([data-slot="slider-thumb"]:focus-visible) {
|
|
@@ -70,22 +88,18 @@
|
|
|
70
88
|
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
71
89
|
}
|
|
72
90
|
|
|
73
|
-
:where([data-slot="slider"]
|
|
74
|
-
cursor:
|
|
75
|
-
pointer-events: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:where([data-slot="slider"][data-disabled]) :where([data-slot="slider-track"]) {
|
|
79
|
-
background: var(--ak-color-disabled-surface);
|
|
91
|
+
:where([data-slot="slider-thumb"]:active) {
|
|
92
|
+
cursor: grabbing;
|
|
80
93
|
}
|
|
81
94
|
|
|
82
|
-
:where([data-slot="slider"][data-disabled])
|
|
83
|
-
|
|
84
|
-
|
|
95
|
+
:where([data-slot="slider"][data-disabled]) {
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
pointer-events: none;
|
|
85
98
|
}
|
|
86
99
|
|
|
87
|
-
:where(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
100
|
+
:where(
|
|
101
|
+
[data-slot="slider"][data-disabled] [data-slot="slider-track"],
|
|
102
|
+
[data-slot="slider"][data-disabled] [data-slot="slider-thumb"]
|
|
103
|
+
) {
|
|
104
|
+
cursor: not-allowed;
|
|
91
105
|
}
|