@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
package/src/parity.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
export const SHADCN_THEME_COMPONENTS = [
|
|
2
|
+
"Accordion",
|
|
3
|
+
"Alert",
|
|
4
|
+
"AlertDialog",
|
|
5
|
+
"AspectRatio",
|
|
6
|
+
"Avatar",
|
|
7
|
+
"Badge",
|
|
8
|
+
"Breadcrumb",
|
|
9
|
+
"Button",
|
|
10
|
+
"ButtonGroup",
|
|
11
|
+
"Calendar",
|
|
12
|
+
"Card",
|
|
13
|
+
"Carousel",
|
|
14
|
+
"Checkbox",
|
|
15
|
+
"Collapsible",
|
|
16
|
+
"Combobox",
|
|
17
|
+
"Command",
|
|
18
|
+
"ContextMenu",
|
|
19
|
+
"DataTable",
|
|
20
|
+
"DatePicker",
|
|
21
|
+
"Dialog",
|
|
22
|
+
"Direction",
|
|
23
|
+
"Drawer",
|
|
24
|
+
"DropdownMenu",
|
|
25
|
+
"Empty",
|
|
26
|
+
"Field",
|
|
27
|
+
"Form",
|
|
28
|
+
"HoverCard",
|
|
29
|
+
"Input",
|
|
30
|
+
"InputGroup",
|
|
31
|
+
"InputOTP",
|
|
32
|
+
"Item",
|
|
33
|
+
"Kbd",
|
|
34
|
+
"Label",
|
|
35
|
+
"Menubar",
|
|
36
|
+
"NativeSelect",
|
|
37
|
+
"NavigationMenu",
|
|
38
|
+
"Pagination",
|
|
39
|
+
"Popover",
|
|
40
|
+
"Progress",
|
|
41
|
+
"RadioGroup",
|
|
42
|
+
"ResizablePanelGroup",
|
|
43
|
+
"ScrollArea",
|
|
44
|
+
"Select",
|
|
45
|
+
"Separator",
|
|
46
|
+
"Sheet",
|
|
47
|
+
"Sidebar",
|
|
48
|
+
"Skeleton",
|
|
49
|
+
"Slider",
|
|
50
|
+
"Sonner",
|
|
51
|
+
"Spinner",
|
|
52
|
+
"Switch",
|
|
53
|
+
"Table",
|
|
54
|
+
"Tabs",
|
|
55
|
+
"Textarea",
|
|
56
|
+
"Toast",
|
|
57
|
+
"Toggle",
|
|
58
|
+
"ToggleGroup",
|
|
59
|
+
"Tooltip",
|
|
60
|
+
"Typography",
|
|
61
|
+
] as const;
|
|
62
|
+
|
|
63
|
+
export const SHADCN_CHART_COMPONENT = "Chart" as const;
|
|
64
|
+
|
|
65
|
+
export const SHADCN_THEME_COMPONENT_SUBPATHS = [
|
|
66
|
+
"accordion",
|
|
67
|
+
"alert",
|
|
68
|
+
"alert-dialog",
|
|
69
|
+
"aspect-ratio",
|
|
70
|
+
"avatar",
|
|
71
|
+
"badge",
|
|
72
|
+
"breadcrumb",
|
|
73
|
+
"button",
|
|
74
|
+
"button-group",
|
|
75
|
+
"calendar",
|
|
76
|
+
"card",
|
|
77
|
+
"carousel",
|
|
78
|
+
"checkbox",
|
|
79
|
+
"collapsible",
|
|
80
|
+
"combobox",
|
|
81
|
+
"command",
|
|
82
|
+
"context-menu",
|
|
83
|
+
"data-table",
|
|
84
|
+
"date-picker",
|
|
85
|
+
"dialog",
|
|
86
|
+
"direction",
|
|
87
|
+
"drawer",
|
|
88
|
+
"dropdown-menu",
|
|
89
|
+
"empty",
|
|
90
|
+
"field",
|
|
91
|
+
"form",
|
|
92
|
+
"hover-card",
|
|
93
|
+
"input",
|
|
94
|
+
"input-group",
|
|
95
|
+
"input-otp",
|
|
96
|
+
"item",
|
|
97
|
+
"kbd",
|
|
98
|
+
"label",
|
|
99
|
+
"menubar",
|
|
100
|
+
"native-select",
|
|
101
|
+
"navigation-menu",
|
|
102
|
+
"pagination",
|
|
103
|
+
"popover",
|
|
104
|
+
"progress",
|
|
105
|
+
"radio-group",
|
|
106
|
+
"resizable",
|
|
107
|
+
"scroll-area",
|
|
108
|
+
"select",
|
|
109
|
+
"separator",
|
|
110
|
+
"sheet",
|
|
111
|
+
"sidebar",
|
|
112
|
+
"skeleton",
|
|
113
|
+
"slider",
|
|
114
|
+
"sonner",
|
|
115
|
+
"spinner",
|
|
116
|
+
"switch",
|
|
117
|
+
"table",
|
|
118
|
+
"tabs",
|
|
119
|
+
"textarea",
|
|
120
|
+
"toast",
|
|
121
|
+
"toggle",
|
|
122
|
+
"toggle-group",
|
|
123
|
+
"tooltip",
|
|
124
|
+
"typography",
|
|
125
|
+
] as const;
|
package/src/surfaces.ts
CHANGED
|
@@ -1,23 +1,70 @@
|
|
|
1
1
|
import "./themes/default/index.css";
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Avatar,
|
|
5
|
+
AvatarFallback,
|
|
6
|
+
AvatarImage,
|
|
7
|
+
Progress,
|
|
8
|
+
ProgressCircle,
|
|
9
|
+
ProgressCircleIndicator,
|
|
10
|
+
ProgressIndicator,
|
|
11
|
+
Table,
|
|
12
|
+
TableBody,
|
|
13
|
+
TableCaption,
|
|
14
|
+
TableCell,
|
|
15
|
+
TableFoot,
|
|
16
|
+
TableHead,
|
|
17
|
+
TableHeaderCell,
|
|
18
|
+
TableRow,
|
|
19
|
+
} from "@askrjs/ui";
|
|
20
|
+
export type {
|
|
21
|
+
AvatarAsChildProps,
|
|
22
|
+
AvatarFallbackAsChildProps,
|
|
23
|
+
AvatarFallbackOwnProps,
|
|
24
|
+
AvatarFallbackProps,
|
|
25
|
+
AvatarImageOwnProps,
|
|
26
|
+
AvatarImageProps,
|
|
27
|
+
AvatarLoadingStatus,
|
|
28
|
+
AvatarOwnProps,
|
|
29
|
+
AvatarProps,
|
|
30
|
+
ProgressCircleIndicatorAsChildProps,
|
|
31
|
+
ProgressCircleIndicatorProps,
|
|
32
|
+
ProgressCircleOwnProps,
|
|
33
|
+
ProgressCircleProps,
|
|
34
|
+
ProgressIndicatorAsChildProps,
|
|
35
|
+
ProgressIndicatorProps,
|
|
36
|
+
ProgressOwnProps,
|
|
37
|
+
ProgressProps,
|
|
38
|
+
TableAsChildProps,
|
|
39
|
+
TableBodyAsChildProps,
|
|
40
|
+
TableBodyProps,
|
|
41
|
+
TableCaptionAsChildProps,
|
|
42
|
+
TableCaptionProps,
|
|
43
|
+
TableCellAsChildProps,
|
|
44
|
+
TableCellProps,
|
|
45
|
+
TableFootAsChildProps,
|
|
46
|
+
TableFootProps,
|
|
47
|
+
TableHeadAsChildProps,
|
|
48
|
+
TableHeadProps,
|
|
49
|
+
TableHeaderCellAsChildProps,
|
|
50
|
+
TableHeaderCellProps,
|
|
51
|
+
TableProps,
|
|
52
|
+
TableRowAsChildProps,
|
|
53
|
+
TableRowProps,
|
|
54
|
+
} from "@askrjs/ui";
|
|
55
|
+
export { AspectRatio } from "./components/aspect-ratio";
|
|
56
|
+
export type * from "./components/aspect-ratio";
|
|
3
57
|
export { Alert } from "./components/alert";
|
|
4
58
|
export type * from "./components/alert";
|
|
5
59
|
export { Badge } from "./components/badge";
|
|
6
60
|
export type * from "./components/badge";
|
|
7
|
-
export {
|
|
8
|
-
Card,
|
|
9
|
-
CardActions,
|
|
10
|
-
CardContent,
|
|
11
|
-
CardDescription,
|
|
12
|
-
CardFooter,
|
|
13
|
-
CardHeader,
|
|
14
|
-
CardTitle,
|
|
15
|
-
} from "./components/card";
|
|
61
|
+
export { Card } from "./components/card";
|
|
16
62
|
export type * from "./components/card";
|
|
17
|
-
export {
|
|
18
|
-
export type * from "./components/list-group";
|
|
19
|
-
export { Divider, Separator } from "./components/separator";
|
|
20
|
-
export { SEPARATOR_A11Y_CONTRACT } from "./components/separator";
|
|
63
|
+
export { Separator } from "./components/separator";
|
|
21
64
|
export type * from "./components/separator";
|
|
22
65
|
export { Skeleton } from "./components/skeleton";
|
|
23
66
|
export type * from "./components/skeleton";
|
|
67
|
+
export { Spinner } from "./components/spinner";
|
|
68
|
+
export type * from "./components/spinner";
|
|
69
|
+
export { Stat, StatDescription, StatLabel, StatValue } from "./components/stat";
|
|
70
|
+
export type * from "./components/stat";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
@import "./tokens.css";
|
|
2
2
|
@import "./styles/base/reset.css";
|
|
3
3
|
@import "./styles/base/typography.css";
|
|
4
|
+
@import "./styles/base/text.css";
|
|
4
5
|
@import "./styles/base/icon.css";
|
|
5
6
|
@import "./styles/layout/layout.css";
|
|
6
|
-
@import "./styles/layout/responsive-layout.css";
|
|
7
7
|
@import "./styles/base/utilities.css";
|
|
8
8
|
@import "./styles/layout/block.css";
|
|
9
|
+
@import "./styles/layout/grid.css";
|
|
9
10
|
@import "./styles/layout/patterns.css";
|
|
10
11
|
@import "./styles/layout/aspect-ratio.css";
|
|
11
|
-
@import "./styles/shell/theme.css";
|
|
12
12
|
@import "./styles/shell/header.css";
|
|
13
|
+
@import "./styles/shell/brand.css";
|
|
14
|
+
@import "./styles/shell/footer.css";
|
|
13
15
|
@import "./styles/shell/navbar.css";
|
|
14
16
|
@import "./styles/shell/sidebar.css";
|
|
15
17
|
@import "./styles/actions/button.css";
|
|
16
18
|
@import "./styles/actions/button-group.css";
|
|
17
|
-
@import "./styles/actions/toggle.css";
|
|
18
19
|
@import "./styles/actions/toggle-group.css";
|
|
19
20
|
@import "./styles/display/alert.css";
|
|
20
21
|
@import "./styles/forms/input.css";
|
|
21
22
|
@import "./styles/forms/input-group.css";
|
|
22
23
|
@import "./styles/forms/textarea.css";
|
|
23
|
-
@import "./styles/forms/form.css";
|
|
24
24
|
@import "./styles/forms/field.css";
|
|
25
25
|
@import "./styles/forms/checkbox.css";
|
|
26
|
-
@import "./styles/forms/switch.css";
|
|
27
26
|
@import "./styles/forms/radio-group.css";
|
|
28
|
-
@import "./styles/forms/
|
|
27
|
+
@import "./styles/forms/switch.css";
|
|
29
28
|
@import "./styles/forms/slider.css";
|
|
29
|
+
@import "./styles/forms/select.css";
|
|
30
30
|
@import "./styles/forms/label.css";
|
|
31
31
|
@import "./styles/display/card.css";
|
|
32
|
-
@import "./styles/display/
|
|
33
|
-
@import "./styles/display/
|
|
32
|
+
@import "./styles/display/stat.css";
|
|
33
|
+
@import "./styles/display/catalog.css";
|
|
34
34
|
@import "./styles/display/progress.css";
|
|
35
35
|
@import "./styles/display/progress-circle.css";
|
|
36
36
|
@import "./styles/display/badge.css";
|
|
@@ -39,18 +39,15 @@
|
|
|
39
39
|
@import "./styles/display/separator.css";
|
|
40
40
|
@import "./styles/display/table.css";
|
|
41
41
|
@import "./styles/display/virtual-table.css";
|
|
42
|
-
@import "./styles/display/
|
|
42
|
+
@import "./styles/display/virtual-list.css";
|
|
43
43
|
@import "./styles/display/spinner.css";
|
|
44
|
+
@import "./styles/display/scroll-area.css";
|
|
44
45
|
@import "./styles/display/coverage.css";
|
|
45
|
-
@import "./styles/navigation/breadcrumb.css";
|
|
46
46
|
@import "./styles/navigation/nav.css";
|
|
47
|
-
@import "./styles/navigation/pagination.css";
|
|
48
|
-
@import "./styles/navigation/menu.css";
|
|
49
|
-
@import "./styles/navigation/menubar.css";
|
|
50
47
|
@import "./styles/disclosure/accordion.css";
|
|
51
|
-
@import "./styles/disclosure/collapsible.css";
|
|
52
48
|
@import "./styles/overlays/alert-dialog.css";
|
|
53
49
|
@import "./styles/overlays/dropdown.css";
|
|
50
|
+
@import "./styles/overlays/menubar.css";
|
|
54
51
|
@import "./styles/overlays/toast.css";
|
|
55
52
|
@import "./styles/overlays/dialog.css";
|
|
56
53
|
@import "./styles/overlays/popover.css";
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
:where(.btn-group[data-attached="false"], [data-slot="button-group"][data-attached="false"])
|
|
32
32
|
> :where(.btn, [data-slot="button"]) {
|
|
33
|
-
border-radius: var(--ak-radius-
|
|
34
|
-
box-shadow:
|
|
33
|
+
border-radius: var(--ak-radius-lg);
|
|
34
|
+
box-shadow: none;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
:where(.btn-group[data-attached="true"], [data-slot="button-group"][data-attached="true"])
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
|
|
42
42
|
:where(.btn-group[data-attached="true"], [data-slot="button-group"][data-attached="true"])
|
|
43
43
|
> :where(.btn, [data-slot="button"]):first-child {
|
|
44
|
-
border-start-start-radius: var(--ak-radius-
|
|
45
|
-
border-end-start-radius: var(--ak-radius-
|
|
44
|
+
border-start-start-radius: var(--ak-radius-lg);
|
|
45
|
+
border-end-start-radius: var(--ak-radius-lg);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
:where(.btn-group[data-attached="true"], [data-slot="button-group"][data-attached="true"])
|
|
49
49
|
> :where(.btn, [data-slot="button"]):last-child {
|
|
50
|
-
border-start-end-radius: var(--ak-radius-
|
|
51
|
-
border-end-end-radius: var(--ak-radius-
|
|
50
|
+
border-start-end-radius: var(--ak-radius-lg);
|
|
51
|
+
border-end-end-radius: var(--ak-radius-lg);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
:where(.btn-group[data-attached="true"], [data-slot="button-group"][data-attached="true"])
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
:where(.btn, .btn-close, [data-slot="button"]) {
|
|
2
2
|
--_button-height: var(--ak-density-control-height-md);
|
|
3
3
|
--_button-padding-x: var(--ak-density-control-padding-x-md);
|
|
4
|
-
--_button-radius: var(--ak-radius-
|
|
5
|
-
--_button-border:
|
|
4
|
+
--_button-radius: var(--ak-radius-lg);
|
|
5
|
+
--_button-border: transparent;
|
|
6
6
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
justify-content: center;
|
|
10
|
-
gap:
|
|
10
|
+
gap: var(--ak-space-sm);
|
|
11
11
|
min-height: var(--_button-height);
|
|
12
|
+
padding-block: 0;
|
|
12
13
|
padding-inline: var(--_button-padding-x);
|
|
13
14
|
border: 1px solid var(--_button-border);
|
|
14
15
|
border-radius: var(--_button-radius);
|
|
15
|
-
background: var(--ak-color-
|
|
16
|
-
color: var(--ak-color-text);
|
|
17
|
-
box-shadow:
|
|
16
|
+
background: var(--ak-color-primary);
|
|
17
|
+
color: var(--ak-color-text-inverse);
|
|
18
|
+
box-shadow: none;
|
|
18
19
|
font-size: var(--ak-font-size-sm);
|
|
19
|
-
font-weight: var(--ak-font-weight-
|
|
20
|
+
font-weight: var(--ak-font-weight-medium);
|
|
20
21
|
line-height: 1;
|
|
21
22
|
letter-spacing: 0;
|
|
22
23
|
text-decoration: none;
|
|
@@ -44,7 +45,18 @@
|
|
|
44
45
|
min-inline-size: 0;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
:where([data-slot="theme-toggle-
|
|
48
|
+
:where([data-slot="theme-toggle-icon"]) {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
flex: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where([data-slot="theme-toggle-icon"][hidden]) {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where([data-slot="theme-toggle-content"]) :where([data-slot="icon"], svg) {
|
|
48
60
|
flex: none;
|
|
49
61
|
inline-size: var(--_ak-theme-toggle-icon-size);
|
|
50
62
|
block-size: var(--_ak-theme-toggle-icon-size);
|
|
@@ -54,88 +66,78 @@
|
|
|
54
66
|
:where(.btn) > :where([data-slot="icon"], svg),
|
|
55
67
|
:where([data-slot="button"]) > :where([data-slot="icon"], svg) {
|
|
56
68
|
flex: none;
|
|
69
|
+
inline-size: var(--ak-icon-size-sm);
|
|
70
|
+
block-size: var(--ak-icon-size-sm);
|
|
57
71
|
color: currentColor;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where([data-slot="button"][data-width="full"]) {
|
|
76
|
+
inline-size: 100%;
|
|
58
77
|
}
|
|
59
78
|
|
|
60
79
|
:where(.btn:hover, [data-slot="button"]:hover) {
|
|
61
|
-
background: var(--ak-color-
|
|
62
|
-
border-color: var(--ak-color-border-strong);
|
|
63
|
-
box-shadow: var(--ak-shadow-sm);
|
|
80
|
+
background: var(--ak-color-primary-hover);
|
|
64
81
|
}
|
|
65
82
|
|
|
66
83
|
:where(.btn:active, [data-slot="button"]:active) {
|
|
67
|
-
background:
|
|
68
|
-
border-color: var(--ak-color-border-strong);
|
|
69
|
-
box-shadow: var(--ak-shadow-sm);
|
|
84
|
+
background: var(--ak-color-primary-active);
|
|
70
85
|
}
|
|
71
86
|
|
|
72
87
|
:where(.btn:focus-visible, [data-slot="button"]:focus-visible) {
|
|
73
88
|
outline: none;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
0 0 0 calc(var(--ak-focus-ring-width) + 1px) var(--ak-color-focus-ring);
|
|
89
|
+
border-color: var(--ak-color-ring);
|
|
90
|
+
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
77
91
|
}
|
|
78
92
|
|
|
79
93
|
:where(.btn[data-disabled], .btn:disabled, [data-slot="button"][data-disabled]) {
|
|
80
|
-
background: var(--ak-color-disabled-surface);
|
|
81
|
-
border-color: var(--ak-color-disabled-border);
|
|
82
|
-
box-shadow: none;
|
|
83
|
-
color: var(--ak-color-disabled-text);
|
|
84
|
-
cursor: not-allowed;
|
|
85
94
|
pointer-events: none;
|
|
86
|
-
|
|
95
|
+
cursor: not-allowed;
|
|
96
|
+
opacity: 0.5;
|
|
87
97
|
}
|
|
88
98
|
|
|
89
99
|
:where(.btn-primary, [data-slot="button"][data-variant="primary"]) {
|
|
90
100
|
background: var(--ak-color-primary);
|
|
91
|
-
border-color:
|
|
101
|
+
border-color: transparent;
|
|
92
102
|
color: var(--ak-color-text-inverse);
|
|
93
|
-
box-shadow: var(--ak-shadow-sm);
|
|
94
103
|
}
|
|
95
104
|
|
|
96
105
|
:where(.btn-primary:hover, [data-slot="button"][data-variant="primary"]:hover) {
|
|
97
106
|
background: var(--ak-color-primary-hover);
|
|
98
|
-
border-color: var(--ak-color-primary-hover);
|
|
99
|
-
box-shadow: var(--ak-shadow-sm);
|
|
100
107
|
}
|
|
101
108
|
|
|
102
109
|
:where(.btn-primary:active, [data-slot="button"][data-variant="primary"]:active) {
|
|
103
110
|
background: var(--ak-color-primary-active);
|
|
104
|
-
border-color: var(--ak-color-primary-active);
|
|
105
111
|
}
|
|
106
112
|
|
|
107
113
|
:where(.btn-secondary, [data-slot="button"][data-variant="secondary"]) {
|
|
108
|
-
background:
|
|
109
|
-
border-color:
|
|
110
|
-
color: var(--ak-color-
|
|
114
|
+
background: var(--ak-color-surface-muted);
|
|
115
|
+
border-color: transparent;
|
|
116
|
+
color: var(--ak-color-text);
|
|
111
117
|
}
|
|
112
118
|
|
|
113
119
|
:where(.btn-secondary:hover, [data-slot="button"][data-variant="secondary"]:hover) {
|
|
114
|
-
background: color-mix(in
|
|
115
|
-
border-color: color-mix(in srgb, var(--ak-color-primary) 26%, var(--ak-color-border-strong));
|
|
116
|
-
box-shadow: var(--ak-shadow-sm);
|
|
120
|
+
background: color-mix(in oklch, var(--ak-color-surface-muted) 80%, transparent);
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
:where(.btn-secondary:active, [data-slot="button"][data-variant="secondary"]:active) {
|
|
120
|
-
background:
|
|
121
|
-
border-color: color-mix(in srgb, var(--ak-color-primary) 22%, var(--ak-color-border));
|
|
124
|
+
background: var(--ak-color-active);
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
:where(.btn-outline, [data-slot="button"][data-variant="outline"]) {
|
|
125
|
-
background: var(--ak-color-
|
|
126
|
-
border-color: var(--ak-color-
|
|
128
|
+
background: var(--ak-color-bg);
|
|
129
|
+
border-color: var(--ak-color-input);
|
|
127
130
|
color: var(--ak-color-text);
|
|
131
|
+
box-shadow: none;
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
:where(.btn-outline:hover, [data-slot="button"][data-variant="outline"]:hover) {
|
|
131
|
-
background: var(--ak-color-
|
|
132
|
-
|
|
133
|
-
box-shadow: var(--ak-shadow-sm);
|
|
135
|
+
background: var(--ak-color-accent);
|
|
136
|
+
color: var(--ak-color-accent-ink);
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
:where(.btn-outline:active, [data-slot="button"][data-variant="outline"]:active) {
|
|
137
|
-
background:
|
|
138
|
-
border-color: var(--ak-color-border-strong);
|
|
140
|
+
background: var(--ak-color-active);
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
:where(.btn-ghost, [data-slot="button"][data-variant="ghost"]) {
|
|
@@ -145,29 +147,31 @@
|
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
:where(.btn-ghost:hover, [data-slot="button"][data-variant="ghost"]:hover) {
|
|
148
|
-
background: var(--ak-color-
|
|
149
|
-
|
|
150
|
+
background: var(--ak-color-accent);
|
|
151
|
+
color: var(--ak-color-accent-ink);
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
:where(.btn-ghost:active, [data-slot="button"][data-variant="ghost"]:active) {
|
|
153
155
|
background: var(--ak-color-active);
|
|
154
|
-
border-color: transparent;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
:where(.btn-destructive, [data-slot="button"][data-variant="destructive"]) {
|
|
158
159
|
background: var(--ak-color-danger);
|
|
159
|
-
border-color:
|
|
160
|
+
border-color: transparent;
|
|
160
161
|
color: var(--ak-color-text-inverse);
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
:where(.btn-destructive:hover, [data-slot="button"][data-variant="destructive"]:hover) {
|
|
164
|
-
background: color-mix(in
|
|
165
|
-
border-color: color-mix(in srgb, var(--ak-color-danger-ink) 48%, var(--ak-color-danger));
|
|
165
|
+
background: color-mix(in oklch, var(--ak-color-danger) 90%, transparent);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
:where(
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
:where(
|
|
169
|
+
.btn-destructive:focus-visible,
|
|
170
|
+
[data-slot="button"][data-variant="destructive"]:focus-visible
|
|
171
|
+
) {
|
|
172
|
+
border-color: var(--ak-color-danger);
|
|
173
|
+
box-shadow: 0 0 0 var(--ak-focus-ring-width)
|
|
174
|
+
color-mix(in oklch, var(--ak-color-danger) 20%, transparent);
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
:where(.btn-link, [data-slot="button"][data-variant="link"]) {
|
|
@@ -178,6 +182,7 @@
|
|
|
178
182
|
background: transparent;
|
|
179
183
|
box-shadow: none;
|
|
180
184
|
color: var(--ak-color-link);
|
|
185
|
+
text-underline-offset: 4px;
|
|
181
186
|
}
|
|
182
187
|
|
|
183
188
|
:where(.btn-link:hover, [data-slot="button"][data-variant="link"]:hover) {
|
|
@@ -186,7 +191,6 @@
|
|
|
186
191
|
box-shadow: none;
|
|
187
192
|
color: var(--ak-color-link-hover);
|
|
188
193
|
text-decoration: underline;
|
|
189
|
-
text-underline-offset: 0.14em;
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
:where(.btn-link:active, [data-slot="button"][data-variant="link"]:active) {
|
|
@@ -202,14 +206,17 @@
|
|
|
202
206
|
inline-size: var(--_button-height);
|
|
203
207
|
padding-inline: 0;
|
|
204
208
|
border-color: transparent;
|
|
205
|
-
border-radius: var(--ak-radius-round);
|
|
206
209
|
background: transparent;
|
|
207
210
|
box-shadow: none;
|
|
211
|
+
color: var(--ak-color-text-subtle);
|
|
212
|
+
opacity: 0.7;
|
|
208
213
|
}
|
|
209
214
|
|
|
210
215
|
:where(.btn-close:hover) {
|
|
211
|
-
background: var(--ak-color-
|
|
216
|
+
background: var(--ak-color-accent);
|
|
212
217
|
border-color: transparent;
|
|
218
|
+
color: var(--ak-color-text);
|
|
219
|
+
opacity: 1;
|
|
213
220
|
}
|
|
214
221
|
|
|
215
222
|
:where(.btn-close:active) {
|
|
@@ -219,9 +226,7 @@
|
|
|
219
226
|
|
|
220
227
|
:where(.btn-close:focus-visible) {
|
|
221
228
|
outline: none;
|
|
222
|
-
box-shadow:
|
|
223
|
-
0 0 0 1px var(--ak-color-surface),
|
|
224
|
-
0 0 0 calc(var(--ak-focus-ring-width) + 1px) var(--ak-color-focus-ring);
|
|
229
|
+
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
225
230
|
}
|
|
226
231
|
|
|
227
232
|
:where(.btn-close[data-disabled], .btn-close:disabled) {
|
|
@@ -231,12 +236,19 @@
|
|
|
231
236
|
color: var(--ak-color-disabled-text);
|
|
232
237
|
cursor: not-allowed;
|
|
233
238
|
pointer-events: none;
|
|
234
|
-
opacity:
|
|
239
|
+
opacity: 0.5;
|
|
235
240
|
}
|
|
236
241
|
|
|
237
242
|
:where(.btn-sm, [data-slot="button"][data-size="sm"]) {
|
|
238
243
|
--_button-height: var(--ak-density-control-height-sm);
|
|
239
244
|
--_button-padding-x: var(--ak-density-control-padding-x-sm);
|
|
245
|
+
gap: 0.375rem;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:where([data-slot="button"][data-size="xs"]) {
|
|
249
|
+
--_button-height: var(--ak-density-control-height-xs);
|
|
250
|
+
--_button-padding-x: var(--ak-density-control-padding-x-xs);
|
|
251
|
+
gap: 0.25rem;
|
|
240
252
|
font-size: var(--ak-font-size-xs);
|
|
241
253
|
}
|
|
242
254
|
|
|
@@ -247,6 +259,32 @@
|
|
|
247
259
|
}
|
|
248
260
|
|
|
249
261
|
:where(.btn-icon, [data-slot="button"][data-size="icon"]) {
|
|
250
|
-
|
|
262
|
+
flex: none;
|
|
263
|
+
inline-size: var(--_button-height);
|
|
264
|
+
min-inline-size: var(--_button-height);
|
|
265
|
+
padding-inline: 0;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:where([data-slot="button"][data-size="icon-xs"]) {
|
|
269
|
+
--_button-height: var(--ak-density-control-height-xs);
|
|
270
|
+
flex: none;
|
|
271
|
+
inline-size: var(--_button-height);
|
|
272
|
+
min-inline-size: var(--_button-height);
|
|
273
|
+
padding-inline: 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
:where([data-slot="button"][data-size="icon-sm"]) {
|
|
277
|
+
--_button-height: var(--ak-density-control-height-sm);
|
|
278
|
+
flex: none;
|
|
279
|
+
inline-size: var(--_button-height);
|
|
280
|
+
min-inline-size: var(--_button-height);
|
|
281
|
+
padding-inline: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
:where([data-slot="button"][data-size="icon-lg"]) {
|
|
285
|
+
--_button-height: var(--ak-density-control-height-lg);
|
|
286
|
+
flex: none;
|
|
287
|
+
inline-size: var(--_button-height);
|
|
288
|
+
min-inline-size: var(--_button-height);
|
|
251
289
|
padding-inline: 0;
|
|
252
290
|
}
|