@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,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
|
}
|
|
@@ -1,27 +1,44 @@
|
|
|
1
1
|
:where([data-slot="toggle-group"]) {
|
|
2
2
|
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
3
4
|
flex-wrap: wrap;
|
|
4
|
-
gap: 0.
|
|
5
|
+
gap: 0.125rem;
|
|
6
|
+
max-inline-size: 100%;
|
|
7
|
+
padding: 0.1875rem;
|
|
8
|
+
border: 1px solid transparent;
|
|
9
|
+
border-radius: var(--ak-radius-lg);
|
|
10
|
+
background: var(--ak-color-surface-muted);
|
|
11
|
+
color: var(--ak-color-text);
|
|
5
12
|
}
|
|
6
13
|
|
|
7
14
|
:where([data-slot="toggle-group"][data-orientation="vertical"]) {
|
|
15
|
+
align-items: stretch;
|
|
8
16
|
flex-direction: column;
|
|
9
17
|
}
|
|
10
18
|
|
|
11
|
-
:where([data-slot="toggle-group-item"]) {
|
|
19
|
+
:where([data-slot="toggle"], [data-slot="toggle-group-item"]) {
|
|
12
20
|
display: inline-flex;
|
|
13
21
|
align-items: center;
|
|
14
22
|
justify-content: center;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
gap: var(--ak-space-xs);
|
|
24
|
+
min-block-size: var(--ak-density-control-height-sm);
|
|
25
|
+
min-inline-size: var(--ak-density-control-height-sm);
|
|
26
|
+
padding-block: 0;
|
|
27
|
+
padding-inline: var(--ak-density-control-padding-x-sm);
|
|
28
|
+
border: 1px solid transparent;
|
|
18
29
|
border-radius: var(--ak-radius-md);
|
|
19
|
-
background:
|
|
20
|
-
color: var(--ak-color-text);
|
|
30
|
+
background: transparent;
|
|
31
|
+
color: var(--ak-color-text-muted);
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
font: inherit;
|
|
21
34
|
font-size: var(--ak-font-size-sm);
|
|
22
|
-
font-weight: var(--ak-font-weight-
|
|
35
|
+
font-weight: var(--ak-font-weight-medium);
|
|
23
36
|
line-height: 1;
|
|
37
|
+
text-align: center;
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
white-space: nowrap;
|
|
24
40
|
cursor: pointer;
|
|
41
|
+
user-select: none;
|
|
25
42
|
transition:
|
|
26
43
|
background var(--ak-duration-fast) var(--ak-ease-standard),
|
|
27
44
|
border-color var(--ak-duration-fast) var(--ak-ease-standard),
|
|
@@ -29,31 +46,50 @@
|
|
|
29
46
|
box-shadow var(--ak-duration-fast) var(--ak-ease-standard);
|
|
30
47
|
}
|
|
31
48
|
|
|
32
|
-
:where(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
:
|
|
38
|
-
|
|
49
|
+
:where(
|
|
50
|
+
[data-slot="toggle"] > :where([data-slot="icon"], svg),
|
|
51
|
+
[data-slot="toggle-group-item"] > :where([data-slot="icon"], svg)
|
|
52
|
+
) {
|
|
53
|
+
flex: none;
|
|
54
|
+
inline-size: var(--ak-icon-size-sm);
|
|
55
|
+
block-size: var(--ak-icon-size-sm);
|
|
56
|
+
color: currentColor;
|
|
39
57
|
}
|
|
40
58
|
|
|
41
|
-
:where([data-slot="toggle
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
color: var(--ak-color-primary-ink);
|
|
59
|
+
:where([data-slot="toggle"]:hover, [data-slot="toggle-group-item"]:hover) {
|
|
60
|
+
background: var(--ak-color-hover);
|
|
61
|
+
color: var(--ak-color-text);
|
|
45
62
|
}
|
|
46
63
|
|
|
47
|
-
:where([data-slot="toggle-group-item"]:focus-visible) {
|
|
64
|
+
:where([data-slot="toggle"]:focus-visible, [data-slot="toggle-group-item"]:focus-visible) {
|
|
48
65
|
outline: none;
|
|
49
66
|
box-shadow: 0 0 0 var(--ak-focus-ring-width) var(--ak-color-focus-ring);
|
|
50
67
|
}
|
|
51
68
|
|
|
52
|
-
:where([data-slot="toggle-group-item"][data-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
:where([data-slot="toggle"][data-state="on"], [data-slot="toggle-group-item"][data-state="on"]) {
|
|
70
|
+
border-color: var(--ak-color-selected-border);
|
|
71
|
+
background: var(--ak-color-surface);
|
|
72
|
+
color: var(--ak-color-text);
|
|
73
|
+
box-shadow: var(--ak-shadow-xs);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:where(
|
|
77
|
+
[data-slot="toggle"][data-disabled],
|
|
78
|
+
[data-slot="toggle-group"][data-disabled],
|
|
79
|
+
[data-slot="toggle-group-item"][data-disabled]
|
|
80
|
+
) {
|
|
81
|
+
opacity: 0.5;
|
|
57
82
|
pointer-events: none;
|
|
58
83
|
cursor: not-allowed;
|
|
59
84
|
}
|
|
85
|
+
|
|
86
|
+
@media (max-width: 30rem) {
|
|
87
|
+
:where([data-slot="toggle-group"]) {
|
|
88
|
+
inline-size: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where([data-slot="toggle-group-item"]) {
|
|
92
|
+
flex: 1 1 auto;
|
|
93
|
+
white-space: normal;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
:where([data-slot="text"]) {
|
|
2
|
+
margin: 0;
|
|
3
|
+
color: var(--ak-color-text);
|
|
4
|
+
font-size: var(--ak-font-size-md);
|
|
5
|
+
line-height: var(--ak-line-height-normal);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where([data-slot="text"][data-size="sm"]) {
|
|
9
|
+
font-size: var(--ak-font-size-sm);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where([data-slot="text"][data-size="lg"]) {
|
|
13
|
+
font-size: var(--ak-font-size-lg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where([data-slot="text"][data-tone="muted"]) {
|
|
17
|
+
color: var(--ak-color-text-muted);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([data-slot="text"][data-tone="subtle"]) {
|
|
21
|
+
color: var(--ak-color-text-subtle);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where([data-slot="text"][data-tone="inverse"]) {
|
|
25
|
+
color: var(--ak-color-text-inverse);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where([data-slot="text"][data-tone="success"]) {
|
|
29
|
+
color: var(--ak-color-success);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([data-slot="text"][data-tone="warning"]) {
|
|
33
|
+
color: var(--ak-color-warning);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-slot="text"][data-tone="danger"]) {
|
|
37
|
+
color: var(--ak-color-danger);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where([data-slot="text"][data-tone="info"]) {
|
|
41
|
+
color: var(--ak-color-info);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where([data-slot="text"][data-weight="normal"]) {
|
|
45
|
+
font-weight: var(--ak-font-weight-normal);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where([data-slot="text"][data-weight="medium"]) {
|
|
49
|
+
font-weight: var(--ak-font-weight-medium);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where([data-slot="text"][data-weight="semibold"]) {
|
|
53
|
+
font-weight: var(--ak-font-weight-semibold);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where([data-slot="text"][data-weight="bold"]) {
|
|
57
|
+
font-weight: var(--ak-font-weight-bold);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where([data-slot="text"][data-font="mono"]) {
|
|
61
|
+
font-family: var(--ak-font-family-mono);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where([data-slot="text"][data-numeric="tabular"]) {
|
|
65
|
+
font-variant-numeric: tabular-nums;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where([data-slot="text"][data-wrap="normal"]) {
|
|
69
|
+
white-space: normal;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where([data-slot="text"][data-wrap="nowrap"]) {
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:where([data-slot="text"][data-wrap="anywhere"]) {
|
|
77
|
+
overflow-wrap: anywhere;
|
|
78
|
+
white-space: normal;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where([data-slot="text"][data-truncate="true"]) {
|
|
82
|
+
min-inline-size: 0;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
overflow-wrap: normal;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
}
|
|
@@ -11,52 +11,52 @@
|
|
|
11
11
|
|
|
12
12
|
:where(h1, h2, h3, h4, h5, h6) {
|
|
13
13
|
color: var(--ak-color-text);
|
|
14
|
-
font-family: var(--ak-font-family-
|
|
14
|
+
font-family: var(--ak-font-family-display);
|
|
15
15
|
font-weight: var(--ak-font-weight-semibold);
|
|
16
16
|
text-wrap: balance;
|
|
17
17
|
margin: 0;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
:where(h1) {
|
|
21
|
-
font-size:
|
|
22
|
-
line-height:
|
|
23
|
-
letter-spacing: var(--ak-type-9-letter-spacing);
|
|
24
|
-
font-family: var(--ak-font-family-body);
|
|
25
|
-
font-weight: 700;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:where(h2) {
|
|
29
|
-
font-size: clamp(2rem, 3.4vw, var(--ak-type-8-size));
|
|
30
|
-
line-height: 1.04;
|
|
21
|
+
font-size: var(--ak-type-8-size);
|
|
22
|
+
line-height: var(--ak-type-8-line-height);
|
|
31
23
|
letter-spacing: var(--ak-type-8-letter-spacing);
|
|
32
|
-
font-family: var(--ak-font-family-
|
|
24
|
+
font-family: var(--ak-font-family-display);
|
|
33
25
|
font-weight: 700;
|
|
34
26
|
}
|
|
35
27
|
|
|
36
|
-
:where(
|
|
28
|
+
:where(h2) {
|
|
37
29
|
font-size: var(--ak-type-7-size);
|
|
38
|
-
line-height:
|
|
30
|
+
line-height: var(--ak-type-7-line-height);
|
|
39
31
|
letter-spacing: var(--ak-type-7-letter-spacing);
|
|
32
|
+
font-family: var(--ak-font-family-display);
|
|
33
|
+
font-weight: 700;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
:where(
|
|
36
|
+
:where(h3) {
|
|
43
37
|
font-size: var(--ak-type-6-size);
|
|
44
|
-
line-height:
|
|
38
|
+
line-height: var(--ak-type-6-line-height);
|
|
45
39
|
letter-spacing: var(--ak-type-6-letter-spacing);
|
|
46
40
|
}
|
|
47
41
|
|
|
48
|
-
:where(
|
|
42
|
+
:where(h4) {
|
|
49
43
|
font-size: var(--ak-type-5-size);
|
|
50
44
|
line-height: var(--ak-type-5-line-height);
|
|
51
45
|
letter-spacing: var(--ak-type-5-letter-spacing);
|
|
52
46
|
}
|
|
53
47
|
|
|
54
|
-
:where(
|
|
48
|
+
:where(h5) {
|
|
55
49
|
font-size: var(--ak-type-4-size);
|
|
56
50
|
line-height: var(--ak-type-4-line-height);
|
|
57
51
|
letter-spacing: var(--ak-type-4-letter-spacing);
|
|
58
52
|
}
|
|
59
53
|
|
|
54
|
+
:where(h6) {
|
|
55
|
+
font-size: var(--ak-type-3-size);
|
|
56
|
+
line-height: var(--ak-type-3-line-height);
|
|
57
|
+
letter-spacing: var(--ak-type-3-letter-spacing);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
60
|
:where(p, li, dd, dt) {
|
|
61
61
|
color: var(--ak-color-text-muted);
|
|
62
62
|
}
|
|
@@ -117,112 +117,19 @@
|
|
|
117
117
|
line-height: var(--ak-type-2-line-height);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.ak-prose {
|
|
121
|
-
display: grid;
|
|
122
|
-
gap: 0.875rem;
|
|
123
|
-
max-inline-size: 44rem;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.ak-prose > * {
|
|
127
|
-
margin: 0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.ak-prose > h1,
|
|
131
|
-
.ak-prose > h2,
|
|
132
|
-
.ak-prose > h3,
|
|
133
|
-
.ak-prose > h4,
|
|
134
|
-
.ak-prose > h5,
|
|
135
|
-
.ak-prose > h6 {
|
|
136
|
-
max-inline-size: 22ch;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.ak-prose > p,
|
|
140
|
-
.ak-prose > ul,
|
|
141
|
-
.ak-prose > ol,
|
|
142
|
-
.ak-prose > blockquote {
|
|
143
|
-
max-inline-size: 66ch;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ak-prose > ul,
|
|
147
|
-
.ak-prose > ol {
|
|
148
|
-
margin: 0;
|
|
149
|
-
padding-inline-start: 1.25rem;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.ak-type-scale {
|
|
153
|
-
display: grid;
|
|
154
|
-
gap: 0.75rem;
|
|
155
|
-
inline-size: 100%;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.ak-type-scale__row {
|
|
159
|
-
display: grid;
|
|
160
|
-
grid-template-columns: minmax(0, 1fr) auto auto auto;
|
|
161
|
-
gap: 1rem;
|
|
162
|
-
align-items: baseline;
|
|
163
|
-
padding-block: 0.625rem;
|
|
164
|
-
border-bottom: 1px solid var(--ak-color-border-subtle);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.ak-type-scale__row:last-child {
|
|
168
|
-
border-bottom: none;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.ak-type-scale__sample {
|
|
172
|
-
color: var(--ak-color-text);
|
|
173
|
-
font-weight: var(--ak-font-weight-medium);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.ak-type-scale__meta {
|
|
177
|
-
color: var(--ak-color-text-muted);
|
|
178
|
-
font-size: var(--ak-type-2-size);
|
|
179
|
-
line-height: var(--ak-type-2-line-height);
|
|
180
|
-
white-space: nowrap;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.ak-type-grid {
|
|
184
|
-
display: grid;
|
|
185
|
-
gap: 0.875rem;
|
|
186
|
-
grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.ak-type-card {
|
|
190
|
-
display: grid;
|
|
191
|
-
gap: 0.4rem;
|
|
192
|
-
padding: 0.875rem;
|
|
193
|
-
border: 1px solid color-mix(in srgb, var(--ak-color-border) 86%, var(--ak-color-surface) 14%);
|
|
194
|
-
border-radius: var(--ak-radius-md);
|
|
195
|
-
background: var(--ak-color-surface);
|
|
196
|
-
box-shadow: var(--ak-shadow-sm);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.ak-type-card > p {
|
|
200
|
-
color: var(--ak-color-text-muted);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.ak-type-card__eyebrow {
|
|
204
|
-
color: var(--ak-color-text-muted);
|
|
205
|
-
font-size: var(--ak-type-1-size);
|
|
206
|
-
line-height: var(--ak-type-1-line-height);
|
|
207
|
-
letter-spacing: 0.08em;
|
|
208
|
-
text-transform: uppercase;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
120
|
@media (max-width: 720px) {
|
|
212
121
|
:where(h1) {
|
|
213
|
-
font-size:
|
|
122
|
+
font-size: var(--ak-type-7-size);
|
|
123
|
+
line-height: var(--ak-type-7-line-height);
|
|
214
124
|
}
|
|
215
125
|
|
|
216
126
|
:where(h2) {
|
|
217
|
-
font-size:
|
|
127
|
+
font-size: var(--ak-type-6-size);
|
|
128
|
+
line-height: var(--ak-type-6-line-height);
|
|
218
129
|
}
|
|
219
130
|
|
|
220
131
|
:where(h3) {
|
|
221
|
-
font-size:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
.ak-type-scale__row {
|
|
225
|
-
grid-template-columns: 1fr;
|
|
226
|
-
gap: 0.35rem;
|
|
132
|
+
font-size: var(--ak-type-5-size);
|
|
133
|
+
line-height: var(--ak-type-5-line-height);
|
|
227
134
|
}
|
|
228
135
|
}
|