@askrjs/themes 0.0.9 → 0.0.11
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/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 +103 -210
- 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 -225
- 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 +50 -8
- 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 +3661 -3945
- package/package.json +235 -69
- package/src/components/_internal/block-layout.ts +354 -0
- 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 +103 -265
- 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 +146 -336
- 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 +83 -9
- 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/badge.css +8 -9
- 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 +37 -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 +27 -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 -454
- 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/badge.css +8 -9
- 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 +37 -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 +27 -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 -454
- 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 -142
- 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 -141
- 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 -202
- 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 -262
- 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
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
import { classes } from "./_internal/classes.js";
|
|
2
|
+
import { mergeProps } from "./_internal/merge-props.js";
|
|
3
|
+
import { Block } from "./block/block.js";
|
|
4
|
+
import { DialogContent } from "@askrjs/ui";
|
|
5
|
+
import { jsx } from "@askrjs/askr/jsx-runtime";
|
|
6
|
+
import { Slot } from "@askrjs/askr/foundations";
|
|
7
|
+
//#region src/components/catalog.tsx
|
|
8
|
+
function catalogPart(props, defaults) {
|
|
9
|
+
const { as, asChild, children, class: className, ref, ...rest } = props;
|
|
10
|
+
const Element = as ?? defaults.element ?? "div";
|
|
11
|
+
const finalProps = mergeProps(rest, {
|
|
12
|
+
ref,
|
|
13
|
+
class: classes(defaults.className, className),
|
|
14
|
+
"data-slot": defaults.slot,
|
|
15
|
+
role: defaults.role
|
|
16
|
+
});
|
|
17
|
+
if (asChild) return /* @__PURE__ */ jsx(Slot, {
|
|
18
|
+
asChild: true,
|
|
19
|
+
...finalProps,
|
|
20
|
+
children
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ jsx(Element, {
|
|
23
|
+
...finalProps,
|
|
24
|
+
children
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function buttonPart(props, slot, className) {
|
|
28
|
+
const { children, ref, class: classProp, type = "button", ...rest } = props;
|
|
29
|
+
return /* @__PURE__ */ jsx("button", {
|
|
30
|
+
type,
|
|
31
|
+
...mergeProps(rest, {
|
|
32
|
+
ref,
|
|
33
|
+
class: classes(className, classProp),
|
|
34
|
+
"data-slot": slot
|
|
35
|
+
}),
|
|
36
|
+
children
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function normalizeLegacySpace(value) {
|
|
40
|
+
if (value === "none") return "0";
|
|
41
|
+
if (value === "1") return "xs";
|
|
42
|
+
if (value === "2") return "xs";
|
|
43
|
+
if (value === "3") return "sm";
|
|
44
|
+
if (value === "4") return "md";
|
|
45
|
+
if (value === "5") return "lg";
|
|
46
|
+
if (value === "6") return "xl";
|
|
47
|
+
if (value === "8") return "2xl";
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function layoutAlias(props, defaults) {
|
|
51
|
+
const { gap, p, padding, style, wrap, ...rest } = props;
|
|
52
|
+
const BlockComponent = Block;
|
|
53
|
+
const wrapStyle = wrap ? {
|
|
54
|
+
...style,
|
|
55
|
+
flexWrap: "wrap"
|
|
56
|
+
} : style;
|
|
57
|
+
return /* @__PURE__ */ jsx(BlockComponent, {
|
|
58
|
+
...defaults,
|
|
59
|
+
...rest,
|
|
60
|
+
gap: normalizeLegacySpace(gap),
|
|
61
|
+
padding: padding ?? normalizeLegacySpace(p),
|
|
62
|
+
style: wrapStyle
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function Box(props) {
|
|
66
|
+
return layoutAlias(props, {});
|
|
67
|
+
}
|
|
68
|
+
function Stack(props) {
|
|
69
|
+
return layoutAlias(props, { direction: "column" });
|
|
70
|
+
}
|
|
71
|
+
function Inline(props) {
|
|
72
|
+
return layoutAlias(props, { direction: "row" });
|
|
73
|
+
}
|
|
74
|
+
function Shell(props) {
|
|
75
|
+
const { variant: _variant, ...rest } = props;
|
|
76
|
+
return layoutAlias(rest, {});
|
|
77
|
+
}
|
|
78
|
+
function ShellNav(props) {
|
|
79
|
+
return layoutAlias(props, {});
|
|
80
|
+
}
|
|
81
|
+
function ShellMain(props) {
|
|
82
|
+
return layoutAlias(props, {
|
|
83
|
+
as: "main",
|
|
84
|
+
grow: true
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function AlertTitle(props) {
|
|
88
|
+
return catalogPart(props, {
|
|
89
|
+
slot: "alert-title",
|
|
90
|
+
element: "h3",
|
|
91
|
+
className: "alert-title"
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function AlertDescription(props) {
|
|
95
|
+
return catalogPart(props, {
|
|
96
|
+
slot: "alert-description",
|
|
97
|
+
element: "p",
|
|
98
|
+
className: "alert-description"
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function Breadcrumb(props) {
|
|
102
|
+
return catalogPart(props, {
|
|
103
|
+
slot: "breadcrumb",
|
|
104
|
+
element: "nav",
|
|
105
|
+
role: "navigation"
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function BreadcrumbList(props) {
|
|
109
|
+
return catalogPart(props, {
|
|
110
|
+
slot: "breadcrumb-list",
|
|
111
|
+
element: "ol"
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function BreadcrumbItem(props) {
|
|
115
|
+
return catalogPart(props, {
|
|
116
|
+
slot: "breadcrumb-item",
|
|
117
|
+
element: "li"
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function BreadcrumbLink(props) {
|
|
121
|
+
return catalogPart(props, {
|
|
122
|
+
slot: "breadcrumb-link",
|
|
123
|
+
element: "a"
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function BreadcrumbPage(props) {
|
|
127
|
+
return catalogPart({
|
|
128
|
+
"aria-current": "page",
|
|
129
|
+
...props
|
|
130
|
+
}, {
|
|
131
|
+
slot: "breadcrumb-page",
|
|
132
|
+
element: "span"
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function BreadcrumbSeparator(props) {
|
|
136
|
+
const { children = "/", ...rest } = props;
|
|
137
|
+
return catalogPart({
|
|
138
|
+
"aria-hidden": "true",
|
|
139
|
+
children,
|
|
140
|
+
...rest
|
|
141
|
+
}, {
|
|
142
|
+
slot: "breadcrumb-separator",
|
|
143
|
+
element: "li"
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function BreadcrumbEllipsis(props) {
|
|
147
|
+
const { children = "...", ...rest } = props;
|
|
148
|
+
return catalogPart({
|
|
149
|
+
"aria-hidden": "true",
|
|
150
|
+
children,
|
|
151
|
+
...rest
|
|
152
|
+
}, {
|
|
153
|
+
slot: "breadcrumb-ellipsis",
|
|
154
|
+
element: "span"
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function Calendar(props) {
|
|
158
|
+
return catalogPart(props, { slot: "calendar" });
|
|
159
|
+
}
|
|
160
|
+
function CalendarHeader(props) {
|
|
161
|
+
return catalogPart(props, { slot: "calendar-header" });
|
|
162
|
+
}
|
|
163
|
+
function CalendarCaption(props) {
|
|
164
|
+
return catalogPart(props, { slot: "calendar-caption" });
|
|
165
|
+
}
|
|
166
|
+
function CalendarNav(props) {
|
|
167
|
+
return catalogPart(props, { slot: "calendar-nav" });
|
|
168
|
+
}
|
|
169
|
+
function CalendarPreviousButton(props) {
|
|
170
|
+
const { children = "Previous month", ...rest } = props;
|
|
171
|
+
return buttonPart({
|
|
172
|
+
"aria-label": "Previous month",
|
|
173
|
+
children,
|
|
174
|
+
...rest
|
|
175
|
+
}, "calendar-previous", "btn btn-icon btn-ghost");
|
|
176
|
+
}
|
|
177
|
+
function CalendarNextButton(props) {
|
|
178
|
+
const { children = "Next month", ...rest } = props;
|
|
179
|
+
return buttonPart({
|
|
180
|
+
"aria-label": "Next month",
|
|
181
|
+
children,
|
|
182
|
+
...rest
|
|
183
|
+
}, "calendar-next", "btn btn-icon btn-ghost");
|
|
184
|
+
}
|
|
185
|
+
function CalendarGrid(props) {
|
|
186
|
+
return catalogPart(props, {
|
|
187
|
+
slot: "calendar-grid",
|
|
188
|
+
role: "grid"
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
function CalendarHead(props) {
|
|
192
|
+
return catalogPart(props, {
|
|
193
|
+
slot: "calendar-head",
|
|
194
|
+
role: "row"
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function CalendarBody(props) {
|
|
198
|
+
return catalogPart(props, { slot: "calendar-body" });
|
|
199
|
+
}
|
|
200
|
+
function CalendarRow(props) {
|
|
201
|
+
return catalogPart(props, {
|
|
202
|
+
slot: "calendar-row",
|
|
203
|
+
role: "row"
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
function CalendarCell(props) {
|
|
207
|
+
return catalogPart(props, {
|
|
208
|
+
slot: "calendar-cell",
|
|
209
|
+
role: "gridcell"
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function CalendarDay(props) {
|
|
213
|
+
const { disabled, outside, rangeEnd, rangeMiddle, rangeStart, selected, today, ...rest } = props;
|
|
214
|
+
return buttonPart({
|
|
215
|
+
"aria-disabled": disabled ? "true" : void 0,
|
|
216
|
+
"aria-selected": selected ? "true" : void 0,
|
|
217
|
+
"data-disabled": disabled ? "" : void 0,
|
|
218
|
+
"data-outside": outside ? "true" : void 0,
|
|
219
|
+
"data-range-end": rangeEnd ? "true" : void 0,
|
|
220
|
+
"data-range-middle": rangeMiddle ? "true" : void 0,
|
|
221
|
+
"data-range-start": rangeStart ? "true" : void 0,
|
|
222
|
+
"data-selected": selected ? "true" : void 0,
|
|
223
|
+
"data-today": today ? "true" : void 0,
|
|
224
|
+
...rest
|
|
225
|
+
}, "calendar-day");
|
|
226
|
+
}
|
|
227
|
+
function Carousel(props) {
|
|
228
|
+
return catalogPart(props, { slot: "carousel" });
|
|
229
|
+
}
|
|
230
|
+
function CarouselContent(props) {
|
|
231
|
+
return catalogPart(props, { slot: "carousel-content" });
|
|
232
|
+
}
|
|
233
|
+
function CarouselItem(props) {
|
|
234
|
+
return catalogPart(props, { slot: "carousel-item" });
|
|
235
|
+
}
|
|
236
|
+
function CarouselPrevious(props) {
|
|
237
|
+
const { children = "Previous", ...rest } = props;
|
|
238
|
+
return buttonPart({
|
|
239
|
+
children,
|
|
240
|
+
...rest
|
|
241
|
+
}, "carousel-previous", "btn btn-icon");
|
|
242
|
+
}
|
|
243
|
+
function CarouselNext(props) {
|
|
244
|
+
const { children = "Next", ...rest } = props;
|
|
245
|
+
return buttonPart({
|
|
246
|
+
children,
|
|
247
|
+
...rest
|
|
248
|
+
}, "carousel-next", "btn btn-icon");
|
|
249
|
+
}
|
|
250
|
+
function Combobox(props) {
|
|
251
|
+
return catalogPart(props, { slot: "combobox" });
|
|
252
|
+
}
|
|
253
|
+
function ComboboxInput(props) {
|
|
254
|
+
const { ref, class: className, ...rest } = props;
|
|
255
|
+
return /* @__PURE__ */ jsx("input", { ...mergeProps(rest, {
|
|
256
|
+
ref,
|
|
257
|
+
class: classes("input", className),
|
|
258
|
+
"data-slot": "combobox-input",
|
|
259
|
+
role: "combobox"
|
|
260
|
+
}) });
|
|
261
|
+
}
|
|
262
|
+
function ComboboxList(props) {
|
|
263
|
+
return catalogPart(props, {
|
|
264
|
+
slot: "combobox-list",
|
|
265
|
+
role: "listbox"
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
function ComboboxOption(props) {
|
|
269
|
+
return catalogPart(props, {
|
|
270
|
+
slot: "combobox-option",
|
|
271
|
+
role: "option"
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
function Command(props) {
|
|
275
|
+
return catalogPart(props, { slot: "command" });
|
|
276
|
+
}
|
|
277
|
+
function CommandDialog(props) {
|
|
278
|
+
return catalogPart(props, { slot: "command-dialog" });
|
|
279
|
+
}
|
|
280
|
+
function CommandInput(props) {
|
|
281
|
+
const { ref, class: className, ...rest } = props;
|
|
282
|
+
return /* @__PURE__ */ jsx("input", { ...mergeProps(rest, {
|
|
283
|
+
ref,
|
|
284
|
+
class: classes("input", className),
|
|
285
|
+
"data-slot": "command-input"
|
|
286
|
+
}) });
|
|
287
|
+
}
|
|
288
|
+
function CommandHeader(props) {
|
|
289
|
+
return catalogPart(props, { slot: "command-header" });
|
|
290
|
+
}
|
|
291
|
+
function CommandList(props) {
|
|
292
|
+
return catalogPart(props, {
|
|
293
|
+
slot: "command-list",
|
|
294
|
+
role: "listbox"
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
function CommandEmpty(props) {
|
|
298
|
+
return catalogPart(props, { slot: "command-empty" });
|
|
299
|
+
}
|
|
300
|
+
function CommandGroup(props) {
|
|
301
|
+
return catalogPart(props, {
|
|
302
|
+
slot: "command-group",
|
|
303
|
+
role: "group"
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
function CommandGroupHeading(props) {
|
|
307
|
+
return catalogPart(props, {
|
|
308
|
+
slot: "command-group-heading",
|
|
309
|
+
element: "div"
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
function CommandItem(props) {
|
|
313
|
+
const { active, disabled, selected, ...rest } = props;
|
|
314
|
+
return catalogPart({
|
|
315
|
+
"aria-disabled": disabled ? "true" : void 0,
|
|
316
|
+
"aria-selected": selected || active ? "true" : void 0,
|
|
317
|
+
"data-disabled": disabled ? "" : void 0,
|
|
318
|
+
"data-selected": selected || active ? "true" : void 0,
|
|
319
|
+
...rest
|
|
320
|
+
}, {
|
|
321
|
+
slot: "command-item",
|
|
322
|
+
role: "option"
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function CommandSeparator(props) {
|
|
326
|
+
return catalogPart(props, {
|
|
327
|
+
slot: "command-separator",
|
|
328
|
+
element: "div",
|
|
329
|
+
role: "separator"
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function CommandShortcut(props) {
|
|
333
|
+
return catalogPart(props, {
|
|
334
|
+
slot: "command-shortcut",
|
|
335
|
+
element: "span"
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
function DataTable(props) {
|
|
339
|
+
return catalogPart(props, { slot: "data-table" });
|
|
340
|
+
}
|
|
341
|
+
function DatePicker(props) {
|
|
342
|
+
return catalogPart(props, { slot: "date-picker" });
|
|
343
|
+
}
|
|
344
|
+
function DatePickerInput(props) {
|
|
345
|
+
const { ref, class: className, type = "date", ...rest } = props;
|
|
346
|
+
return /* @__PURE__ */ jsx("input", {
|
|
347
|
+
type,
|
|
348
|
+
...mergeProps(rest, {
|
|
349
|
+
ref,
|
|
350
|
+
class: classes("input", className),
|
|
351
|
+
"data-slot": "date-picker-input"
|
|
352
|
+
})
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
function Direction(props) {
|
|
356
|
+
const { dir = "ltr", ...rest } = props;
|
|
357
|
+
return catalogPart({
|
|
358
|
+
dir,
|
|
359
|
+
...rest
|
|
360
|
+
}, { slot: "direction" });
|
|
361
|
+
}
|
|
362
|
+
function Empty(props) {
|
|
363
|
+
return catalogPart(props, { slot: "empty" });
|
|
364
|
+
}
|
|
365
|
+
function EmptyHeader(props) {
|
|
366
|
+
return catalogPart(props, { slot: "empty-header" });
|
|
367
|
+
}
|
|
368
|
+
function EmptyTitle(props) {
|
|
369
|
+
return catalogPart(props, {
|
|
370
|
+
slot: "empty-title",
|
|
371
|
+
element: "h3"
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
function EmptyDescription(props) {
|
|
375
|
+
return catalogPart(props, {
|
|
376
|
+
slot: "empty-description",
|
|
377
|
+
element: "p"
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
function EmptyContent(props) {
|
|
381
|
+
return catalogPart(props, { slot: "empty-content" });
|
|
382
|
+
}
|
|
383
|
+
function EmptyMedia(props) {
|
|
384
|
+
return catalogPart(props, { slot: "empty-media" });
|
|
385
|
+
}
|
|
386
|
+
function FieldGroup(props) {
|
|
387
|
+
return catalogPart(props, { slot: "field-group" });
|
|
388
|
+
}
|
|
389
|
+
function FieldSet(props) {
|
|
390
|
+
return catalogPart(props, {
|
|
391
|
+
slot: "field-set",
|
|
392
|
+
element: "fieldset"
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
function FieldLegend(props) {
|
|
396
|
+
return catalogPart(props, {
|
|
397
|
+
slot: "field-legend",
|
|
398
|
+
element: "legend"
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
function FieldLabel(props) {
|
|
402
|
+
return catalogPart(props, {
|
|
403
|
+
slot: "field-label",
|
|
404
|
+
element: "label",
|
|
405
|
+
className: "label"
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
function FieldDescription(props) {
|
|
409
|
+
return catalogPart(props, {
|
|
410
|
+
slot: "field-description",
|
|
411
|
+
element: "p",
|
|
412
|
+
className: "field-hint"
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
function FieldContent(props) {
|
|
416
|
+
return catalogPart(props, { slot: "field-content" });
|
|
417
|
+
}
|
|
418
|
+
function FieldTitle(props) {
|
|
419
|
+
return catalogPart(props, {
|
|
420
|
+
slot: "field-title",
|
|
421
|
+
element: "div"
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
function FieldSeparator(props) {
|
|
425
|
+
return catalogPart(props, {
|
|
426
|
+
slot: "field-separator",
|
|
427
|
+
role: "separator"
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
function InputOTP(props) {
|
|
431
|
+
return catalogPart(props, {
|
|
432
|
+
slot: "input-otp",
|
|
433
|
+
role: "group"
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
function InputOTPGroup(props) {
|
|
437
|
+
return catalogPart(props, {
|
|
438
|
+
slot: "input-otp-group",
|
|
439
|
+
role: "group"
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
function InputOTPSlot(props) {
|
|
443
|
+
return catalogPart(props, {
|
|
444
|
+
slot: "input-otp-slot",
|
|
445
|
+
element: "span"
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
function InputOTPSeparator(props) {
|
|
449
|
+
const { children = "-", ...rest } = props;
|
|
450
|
+
return catalogPart({
|
|
451
|
+
"aria-hidden": "true",
|
|
452
|
+
children,
|
|
453
|
+
...rest
|
|
454
|
+
}, {
|
|
455
|
+
slot: "input-otp-separator",
|
|
456
|
+
element: "span"
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function Item(props) {
|
|
460
|
+
const { active, size, variant, ...rest } = props;
|
|
461
|
+
return catalogPart({
|
|
462
|
+
"data-active": active ? "true" : void 0,
|
|
463
|
+
"data-size": size && size !== "default" ? size : void 0,
|
|
464
|
+
"data-variant": variant && variant !== "default" ? variant : void 0,
|
|
465
|
+
...rest
|
|
466
|
+
}, { slot: "item" });
|
|
467
|
+
}
|
|
468
|
+
function ItemGroup(props) {
|
|
469
|
+
return catalogPart(props, { slot: "item-group" });
|
|
470
|
+
}
|
|
471
|
+
function ItemHeader(props) {
|
|
472
|
+
return catalogPart(props, { slot: "item-header" });
|
|
473
|
+
}
|
|
474
|
+
function ItemMedia(props) {
|
|
475
|
+
return catalogPart(props, { slot: "item-media" });
|
|
476
|
+
}
|
|
477
|
+
function ItemContent(props) {
|
|
478
|
+
return catalogPart(props, { slot: "item-content" });
|
|
479
|
+
}
|
|
480
|
+
function ItemTitle(props) {
|
|
481
|
+
return catalogPart(props, { slot: "item-title" });
|
|
482
|
+
}
|
|
483
|
+
function ItemDescription(props) {
|
|
484
|
+
return catalogPart(props, { slot: "item-description" });
|
|
485
|
+
}
|
|
486
|
+
function ItemActions(props) {
|
|
487
|
+
return catalogPart(props, { slot: "item-actions" });
|
|
488
|
+
}
|
|
489
|
+
function ItemFooter(props) {
|
|
490
|
+
return catalogPart(props, { slot: "item-footer" });
|
|
491
|
+
}
|
|
492
|
+
function Kbd(props) {
|
|
493
|
+
return catalogPart(props, {
|
|
494
|
+
slot: "kbd",
|
|
495
|
+
element: "kbd"
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
function NativeSelect(props) {
|
|
499
|
+
const { children, ref, class: className, ...rest } = props;
|
|
500
|
+
return /* @__PURE__ */ jsx("select", {
|
|
501
|
+
...mergeProps(rest, {
|
|
502
|
+
ref,
|
|
503
|
+
class: classes("input", className),
|
|
504
|
+
"data-slot": "native-select"
|
|
505
|
+
}),
|
|
506
|
+
children
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function NavigationMenu(props) {
|
|
510
|
+
return catalogPart(props, {
|
|
511
|
+
slot: "navigation-menu",
|
|
512
|
+
element: "nav"
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
function NavigationMenuList(props) {
|
|
516
|
+
return catalogPart(props, {
|
|
517
|
+
slot: "navigation-menu-list",
|
|
518
|
+
element: "ul"
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
function NavigationMenuItem(props) {
|
|
522
|
+
return catalogPart(props, {
|
|
523
|
+
slot: "navigation-menu-item",
|
|
524
|
+
element: "li"
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
function NavigationMenuTrigger(props) {
|
|
528
|
+
return buttonPart(props, "navigation-menu-trigger", "nav-item");
|
|
529
|
+
}
|
|
530
|
+
function NavigationMenuContent(props) {
|
|
531
|
+
return catalogPart(props, { slot: "navigation-menu-content" });
|
|
532
|
+
}
|
|
533
|
+
function NavigationMenuLink(props) {
|
|
534
|
+
return catalogPart(props, {
|
|
535
|
+
slot: "navigation-menu-link",
|
|
536
|
+
element: "a"
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
function NavigationMenuViewport(props) {
|
|
540
|
+
return catalogPart(props, { slot: "navigation-menu-viewport" });
|
|
541
|
+
}
|
|
542
|
+
function NavigationMenuIndicator(props) {
|
|
543
|
+
return catalogPart(props, { slot: "navigation-menu-indicator" });
|
|
544
|
+
}
|
|
545
|
+
function Pagination(props) {
|
|
546
|
+
return catalogPart(props, {
|
|
547
|
+
slot: "pagination",
|
|
548
|
+
element: "nav",
|
|
549
|
+
role: "navigation"
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
function PaginationContent(props) {
|
|
553
|
+
return catalogPart(props, {
|
|
554
|
+
slot: "pagination-content",
|
|
555
|
+
element: "ul"
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
function PaginationItem(props) {
|
|
559
|
+
return catalogPart(props, {
|
|
560
|
+
slot: "pagination-item",
|
|
561
|
+
element: "li"
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
function PaginationLink(props) {
|
|
565
|
+
const { active, ...rest } = props;
|
|
566
|
+
return catalogPart({
|
|
567
|
+
"aria-current": active ? "page" : void 0,
|
|
568
|
+
"data-active": active ? "true" : void 0,
|
|
569
|
+
...rest
|
|
570
|
+
}, {
|
|
571
|
+
slot: "pagination-link",
|
|
572
|
+
element: "a"
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
function PaginationPrevious(props) {
|
|
576
|
+
const { children = "Previous", ...rest } = props;
|
|
577
|
+
return catalogPart({
|
|
578
|
+
children,
|
|
579
|
+
...rest
|
|
580
|
+
}, {
|
|
581
|
+
slot: "pagination-previous",
|
|
582
|
+
element: "a"
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
function PaginationNext(props) {
|
|
586
|
+
const { children = "Next", ...rest } = props;
|
|
587
|
+
return catalogPart({
|
|
588
|
+
children,
|
|
589
|
+
...rest
|
|
590
|
+
}, {
|
|
591
|
+
slot: "pagination-next",
|
|
592
|
+
element: "a"
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
function PaginationEllipsis(props) {
|
|
596
|
+
const { children = "...", ...rest } = props;
|
|
597
|
+
return catalogPart({
|
|
598
|
+
"aria-hidden": "true",
|
|
599
|
+
children,
|
|
600
|
+
...rest
|
|
601
|
+
}, {
|
|
602
|
+
slot: "pagination-ellipsis",
|
|
603
|
+
element: "span"
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
function ResizablePanelGroup(props) {
|
|
607
|
+
return catalogPart(props, { slot: "resizable-panel-group" });
|
|
608
|
+
}
|
|
609
|
+
function ResizablePanel(props) {
|
|
610
|
+
return catalogPart(props, { slot: "resizable-panel" });
|
|
611
|
+
}
|
|
612
|
+
function ResizableHandle(props) {
|
|
613
|
+
return catalogPart(props, {
|
|
614
|
+
slot: "resizable-handle",
|
|
615
|
+
role: "separator"
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
function TabsList(props) {
|
|
619
|
+
return catalogPart(props, {
|
|
620
|
+
slot: "tabs-list",
|
|
621
|
+
role: "tablist"
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
function TabsTrigger(props) {
|
|
625
|
+
return buttonPart(props, "tabs-trigger", "tab");
|
|
626
|
+
}
|
|
627
|
+
function TabsContent(props) {
|
|
628
|
+
return catalogPart(props, {
|
|
629
|
+
slot: "tabs-content",
|
|
630
|
+
role: "tabpanel"
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
function SheetContent(props) {
|
|
634
|
+
const { side = "right", ...rest } = props;
|
|
635
|
+
return /* @__PURE__ */ jsx(DialogContent, {
|
|
636
|
+
...rest,
|
|
637
|
+
"data-side": side,
|
|
638
|
+
"data-slot": "sheet-content"
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
function SheetHeader(props) {
|
|
642
|
+
return catalogPart(props, { slot: "sheet-header" });
|
|
643
|
+
}
|
|
644
|
+
function SheetFooter(props) {
|
|
645
|
+
return catalogPart(props, { slot: "sheet-footer" });
|
|
646
|
+
}
|
|
647
|
+
function SheetTitle(props) {
|
|
648
|
+
return catalogPart(props, {
|
|
649
|
+
slot: "sheet-title",
|
|
650
|
+
element: "h2"
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
function SheetDescription(props) {
|
|
654
|
+
return catalogPart(props, {
|
|
655
|
+
slot: "sheet-description",
|
|
656
|
+
element: "p"
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
function Toaster(props) {
|
|
660
|
+
return catalogPart(props, { slot: "sonner" });
|
|
661
|
+
}
|
|
662
|
+
const Sonner = Toaster;
|
|
663
|
+
function Typography(props) {
|
|
664
|
+
return catalogPart(props, { slot: "typography" });
|
|
665
|
+
}
|
|
666
|
+
function TypographyH1(props) {
|
|
667
|
+
return catalogPart(props, {
|
|
668
|
+
slot: "typography-h1",
|
|
669
|
+
element: "h1"
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
function TypographyH2(props) {
|
|
673
|
+
return catalogPart(props, {
|
|
674
|
+
slot: "typography-h2",
|
|
675
|
+
element: "h2"
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
function TypographyH3(props) {
|
|
679
|
+
return catalogPart(props, {
|
|
680
|
+
slot: "typography-h3",
|
|
681
|
+
element: "h3"
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
function TypographyH4(props) {
|
|
685
|
+
return catalogPart(props, {
|
|
686
|
+
slot: "typography-h4",
|
|
687
|
+
element: "h4"
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
function TypographyP(props) {
|
|
691
|
+
return catalogPart(props, {
|
|
692
|
+
slot: "typography-p",
|
|
693
|
+
element: "p"
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
function TypographyBlockquote(props) {
|
|
697
|
+
return catalogPart(props, {
|
|
698
|
+
slot: "typography-blockquote",
|
|
699
|
+
element: "blockquote"
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
function TypographyList(props) {
|
|
703
|
+
return catalogPart(props, {
|
|
704
|
+
slot: "typography-list",
|
|
705
|
+
element: "ul"
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
function TypographyLead(props) {
|
|
709
|
+
return catalogPart(props, {
|
|
710
|
+
slot: "typography-lead",
|
|
711
|
+
element: "p"
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
function TypographyMuted(props) {
|
|
715
|
+
return catalogPart(props, {
|
|
716
|
+
slot: "typography-muted",
|
|
717
|
+
element: "p"
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
//#endregion
|
|
721
|
+
export { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP };
|
|
722
|
+
|
|
723
|
+
//# sourceMappingURL=catalog.js.map
|