@askrjs/themes 0.0.9 → 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/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
|
@@ -1,61 +1,31 @@
|
|
|
1
|
+
import { classes } from "../_internal/classes.js";
|
|
1
2
|
import { mergeProps } from "../_internal/merge-props.js";
|
|
2
|
-
import {
|
|
3
|
+
import { styleDeclarationsToClass } from "../_internal/style.js";
|
|
4
|
+
import { applyBlockLayoutStyles, mergeLayoutStyles, splitBlockLayoutProps } from "../_internal/block-layout.js";
|
|
3
5
|
import { jsx } from "@askrjs/askr/jsx-runtime";
|
|
4
6
|
import { Slot } from "@askrjs/askr/foundations";
|
|
5
7
|
//#region src/components/block/block.tsx
|
|
6
|
-
const
|
|
7
|
-
"1",
|
|
8
|
-
"2",
|
|
9
|
-
"3",
|
|
10
|
-
"4",
|
|
11
|
-
"5",
|
|
12
|
-
"6",
|
|
13
|
-
"7",
|
|
14
|
-
"8",
|
|
15
|
-
"9",
|
|
16
|
-
"xs",
|
|
17
|
-
"sm",
|
|
18
|
-
"md",
|
|
19
|
-
"lg",
|
|
20
|
-
"xl",
|
|
21
|
-
"2xl",
|
|
22
|
-
"3xl"
|
|
23
|
-
]);
|
|
8
|
+
const DEFAULT_ELEMENT = "div";
|
|
24
9
|
function Block(props) {
|
|
25
|
-
const as = "as" in props ? props.as :
|
|
26
|
-
const { asChild, children,
|
|
27
|
-
const
|
|
10
|
+
const as = "as" in props ? props.as : DEFAULT_ELEMENT;
|
|
11
|
+
const { asChild, children, ref, class: classProp, className, style: userStyle, ...rest } = props;
|
|
12
|
+
const { blockProps, rest: passthroughProps } = splitBlockLayoutProps(rest);
|
|
13
|
+
const layoutStyle = {};
|
|
14
|
+
applyBlockLayoutStyles(layoutStyle, blockProps);
|
|
15
|
+
const layoutClass = styleDeclarationsToClass(mergeLayoutStyles(layoutStyle, userStyle));
|
|
16
|
+
const slot = typeof passthroughProps["data-slot"] === "string" ? String(passthroughProps["data-slot"]) : "block";
|
|
17
|
+
const finalProps = mergeProps(passthroughProps, {
|
|
28
18
|
ref,
|
|
29
|
-
|
|
30
|
-
"data-
|
|
31
|
-
"data-
|
|
32
|
-
"data-gap-x": serializeResponsiveValueIf(gapX, (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim())),
|
|
33
|
-
"data-gap-y": serializeResponsiveValueIf(gapY, (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim())),
|
|
34
|
-
"data-align": serializeResponsiveValueIf(align, (value) => typeof value === "string" && [
|
|
35
|
-
"start",
|
|
36
|
-
"end",
|
|
37
|
-
"center",
|
|
38
|
-
"stretch",
|
|
39
|
-
"baseline"
|
|
40
|
-
].includes(value.trim())),
|
|
41
|
-
"data-justify": serializeResponsiveValueIf(justify, (value) => typeof value === "string" && [
|
|
42
|
-
"start",
|
|
43
|
-
"end",
|
|
44
|
-
"center",
|
|
45
|
-
"between"
|
|
46
|
-
].includes(value.trim())),
|
|
47
|
-
"data-size": `initial:${size}`
|
|
19
|
+
class: classes(classProp, className, layoutClass),
|
|
20
|
+
"data-slot": slot,
|
|
21
|
+
"data-ak-layout": "true"
|
|
48
22
|
});
|
|
49
23
|
if (asChild) return /* @__PURE__ */ jsx(Slot, {
|
|
50
24
|
asChild: true,
|
|
51
25
|
...finalProps,
|
|
52
26
|
children
|
|
53
27
|
});
|
|
54
|
-
|
|
55
|
-
...finalProps,
|
|
56
|
-
children
|
|
57
|
-
});
|
|
58
|
-
return /* @__PURE__ */ jsx("div", {
|
|
28
|
+
return /* @__PURE__ */ jsx(as ?? DEFAULT_ELEMENT, {
|
|
59
29
|
...finalProps,
|
|
60
30
|
children
|
|
61
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.js","names":[],"sources":["../../../src/components/block/block.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport {
|
|
1
|
+
{"version":3,"file":"block.js","names":[],"sources":["../../../src/components/block/block.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { classes } from \"../_internal/classes\";\nimport {\n applyBlockLayoutStyles,\n mergeLayoutStyles,\n splitBlockLayoutProps,\n} from \"../_internal/block-layout\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport { styleDeclarationsToClass } from \"../_internal/style\";\nimport type { BlockAsChildProps, BlockNativeProps } from \"./block.types\";\n\nconst DEFAULT_ELEMENT = \"div\";\n\nexport function Block(props: BlockNativeProps): JSX.Element;\nexport function Block(props: BlockAsChildProps): JSX.Element;\nexport function Block(props: BlockNativeProps | BlockAsChildProps) {\n const as = \"as\" in props ? props.as : DEFAULT_ELEMENT;\n const {\n asChild,\n children,\n ref,\n class: classProp,\n className,\n style: userStyle,\n ...rest\n } = props as (BlockNativeProps | BlockAsChildProps) & {\n class?: unknown;\n className?: unknown;\n style?: unknown;\n };\n\n const { blockProps, rest: passthroughProps } = splitBlockLayoutProps(rest);\n const layoutStyle: Record<string, string | number> = {};\n applyBlockLayoutStyles(layoutStyle, blockProps);\n\n const layoutClass = styleDeclarationsToClass(mergeLayoutStyles(layoutStyle, userStyle));\n const slot =\n typeof (passthroughProps as Record<string, unknown>)[\"data-slot\"] === \"string\"\n ? String((passthroughProps as Record<string, unknown>)[\"data-slot\"])\n : \"block\";\n\n const finalProps = mergeProps(passthroughProps, {\n ref,\n class: classes(classProp, className, layoutClass),\n \"data-slot\": slot,\n \"data-ak-layout\": \"true\",\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children as JSX.Element} />;\n }\n\n const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;\n return <Element {...finalProps}>{children}</Element>;\n}\n"],"mappings":";;;;;;;AAWA,MAAM,kBAAkB;AAIxB,SAAgB,MAAM,OAA6C;CACjE,MAAM,KAAK,QAAQ,QAAQ,MAAM,KAAK;CACtC,MAAM,EACJ,SACA,UACA,KACA,OAAO,WACP,WACA,OAAO,WACP,GAAG,SACD;CAMJ,MAAM,EAAE,YAAY,MAAM,qBAAqB,sBAAsB,IAAI;CACzE,MAAM,cAA+C,CAAC;CACtD,uBAAuB,aAAa,UAAU;CAE9C,MAAM,cAAc,yBAAyB,kBAAkB,aAAa,SAAS,CAAC;CACtF,MAAM,OACJ,OAAQ,iBAA6C,iBAAiB,WAClE,OAAQ,iBAA6C,YAAY,IACjE;CAEN,MAAM,aAAa,WAAW,kBAAkB;EAC9C;EACA,OAAO,QAAQ,WAAW,WAAW,WAAW;EAChD,aAAa;EACb,kBAAkB;CACpB,CAAC;CAED,IAAI,SACF,OAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;CAA0B,CAAA;CAI3E,OAAO,oBADU,MAAM,iBAChB;EAAS,GAAI;EAAa;CAAkB,CAAA;AACrD"}
|
|
@@ -1,38 +1,28 @@
|
|
|
1
|
+
import { BlockAlign, BlockBackground, BlockDirection, BlockJustify, BlockLayoutProps, BlockMargin, BlockRadius, BlockRowFrom, BlockShadow, BlockSize, BlockSpace, BlockZIndex, ResponsiveValue } from "../_internal/block-layout.js";
|
|
1
2
|
import { JSXElement } from "@askrjs/askr/foundations";
|
|
2
3
|
import { Ref } from "@askrjs/askr/foundations/utilities";
|
|
3
4
|
|
|
4
5
|
//#region src/components/block/block.types.d.ts
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
type BlockJustify = "start" | "end" | "center" | "between";
|
|
9
|
-
type BlockOwnProps = {
|
|
10
|
-
gap?: BlockSpace;
|
|
11
|
-
gapX?: BlockSpace;
|
|
12
|
-
gapY?: BlockSpace;
|
|
13
|
-
align?: BlockAlign;
|
|
14
|
-
justify?: BlockJustify;
|
|
15
|
-
size?: BlockSize;
|
|
16
|
-
as?: "div" | "span";
|
|
6
|
+
type BlockElement = "div" | "span" | "main" | "header" | "footer" | "section" | "aside" | "nav" | "a" | "ul" | "ol" | "li" | "form" | "article";
|
|
7
|
+
type BlockOwnProps = BlockLayoutProps & {
|
|
8
|
+
as?: BlockElement;
|
|
17
9
|
children?: unknown;
|
|
10
|
+
className?: string;
|
|
18
11
|
};
|
|
19
|
-
type
|
|
20
|
-
as?:
|
|
12
|
+
type BlockElementProps<TElement extends BlockElement> = Omit<JSX.IntrinsicElements[TElement], "children" | "ref"> & BlockOwnProps & {
|
|
13
|
+
as?: TElement;
|
|
21
14
|
asChild?: false;
|
|
22
|
-
ref?: Ref<
|
|
23
|
-
};
|
|
24
|
-
type BlockSpanProps = Omit<JSX.IntrinsicElements["span"], "children" | "ref"> & BlockOwnProps & {
|
|
25
|
-
as: "span";
|
|
26
|
-
asChild?: false;
|
|
27
|
-
ref?: Ref<HTMLSpanElement>;
|
|
15
|
+
ref?: Ref<unknown>;
|
|
28
16
|
};
|
|
17
|
+
type BlockNativeProps = { [TElement in BlockElement]: BlockElementProps<TElement> }[BlockElement];
|
|
29
18
|
type BlockAsChildProps = Omit<BlockOwnProps, "as"> & {
|
|
30
19
|
asChild: true;
|
|
31
20
|
children: JSXElement;
|
|
32
21
|
ref?: Ref<unknown>;
|
|
33
22
|
};
|
|
34
|
-
type BlockDivProps =
|
|
35
|
-
type
|
|
23
|
+
type BlockDivProps = BlockElementProps<"div">;
|
|
24
|
+
type BlockSpanProps = BlockElementProps<"span">;
|
|
25
|
+
type BlockProps = BlockNativeProps | BlockAsChildProps;
|
|
36
26
|
//#endregion
|
|
37
|
-
export { BlockAsChildProps, BlockDivProps, BlockNativeProps, BlockOwnProps, BlockProps,
|
|
27
|
+
export { BlockAsChildProps, BlockDivProps, BlockElement, BlockElementProps, BlockNativeProps, BlockOwnProps, BlockProps, BlockSpanProps };
|
|
38
28
|
//# sourceMappingURL=block.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BlockAlign, BlockBackground, BlockDirection, BlockJustify, BlockMargin, BlockRadius, BlockRowFrom, BlockShadow, BlockSize, BlockSpace, BlockZIndex, ResponsiveValue } from "../_internal/block-layout.js";
|
|
2
|
+
import { BlockAsChildProps, BlockDivProps, BlockElement, BlockElementProps, BlockNativeProps, BlockOwnProps, BlockProps, BlockSpanProps } from "./block.types.js";
|
|
3
|
+
import { Block } from "./block.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BrandLabelProps, BrandMarkProps, BrandProps } from "./brand.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/brand/brand.d.ts
|
|
4
|
+
declare function Brand<TElement extends "div" | "a" | "span" = "div">(props: BrandProps<TElement>): JSX.Element;
|
|
5
|
+
declare function BrandMark(props: BrandMarkProps): JSX.Element;
|
|
6
|
+
declare function BrandLabel(props: BrandLabelProps): JSX.Element;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { Brand, BrandLabel, BrandMark };
|
|
9
|
+
//# sourceMappingURL=brand.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { classes } from "../_internal/classes.js";
|
|
2
|
+
import { mergeProps } from "../_internal/merge-props.js";
|
|
3
|
+
import { jsx } from "@askrjs/askr/jsx-runtime";
|
|
4
|
+
import { Slot } from "@askrjs/askr/foundations";
|
|
5
|
+
//#region src/components/brand/brand.tsx
|
|
6
|
+
const DEFAULT_ELEMENT = "div";
|
|
7
|
+
function Brand(props) {
|
|
8
|
+
const { as, asChild, children, class: classProp, className, ref, ...rest } = props;
|
|
9
|
+
const finalProps = mergeProps(rest, {
|
|
10
|
+
ref,
|
|
11
|
+
class: classes("brand", classProp, className),
|
|
12
|
+
"data-slot": "brand"
|
|
13
|
+
});
|
|
14
|
+
if (asChild) return /* @__PURE__ */ jsx(Slot, {
|
|
15
|
+
asChild: true,
|
|
16
|
+
...finalProps,
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
return /* @__PURE__ */ jsx(as ?? DEFAULT_ELEMENT, {
|
|
20
|
+
...finalProps,
|
|
21
|
+
children
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function BrandMark(props) {
|
|
25
|
+
const { children, class: className, ref, ...rest } = props;
|
|
26
|
+
return /* @__PURE__ */ jsx("span", {
|
|
27
|
+
...mergeProps(rest, {
|
|
28
|
+
ref,
|
|
29
|
+
class: classes("brand-mark", className),
|
|
30
|
+
"data-slot": "brand-mark"
|
|
31
|
+
}),
|
|
32
|
+
children
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function BrandLabel(props) {
|
|
36
|
+
const { children, class: className, ref, ...rest } = props;
|
|
37
|
+
return /* @__PURE__ */ jsx("span", {
|
|
38
|
+
...mergeProps(rest, {
|
|
39
|
+
ref,
|
|
40
|
+
class: classes("brand-label", className),
|
|
41
|
+
"data-slot": "brand-label"
|
|
42
|
+
}),
|
|
43
|
+
children
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Brand, BrandLabel, BrandMark };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=brand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.js","names":[],"sources":["../../../src/components/brand/brand.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n BrandAsChildProps,\n BrandLabelProps,\n BrandMarkProps,\n BrandNativeProps,\n BrandProps,\n} from \"./brand.types\";\n\nconst DEFAULT_ELEMENT = \"div\";\n\nexport function Brand<TElement extends \"div\" | \"a\" | \"span\" = \"div\">(\n props: BrandProps<TElement>,\n): JSX.Element {\n const {\n as,\n asChild,\n children,\n class: classProp,\n className,\n ref,\n ...rest\n } = props as BrandNativeProps | BrandAsChildProps;\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"brand\", classProp, className),\n \"data-slot\": \"brand\",\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children as JSX.Element} />;\n }\n\n const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;\n return <Element {...finalProps}>{children}</Element>;\n}\n\nexport function BrandMark(props: BrandMarkProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"brand-mark\", className),\n \"data-slot\": \"brand-mark\",\n });\n\n return <span {...finalProps}>{children}</span>;\n}\n\nexport function BrandLabel(props: BrandLabelProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"brand-label\", className),\n \"data-slot\": \"brand-label\",\n });\n\n return <span {...finalProps}>{children}</span>;\n}\n"],"mappings":";;;;;AAWA,MAAM,kBAAkB;AAExB,SAAgB,MACd,OACa;CACb,MAAM,EACJ,IACA,SACA,UACA,OAAO,WACP,WACA,KACA,GAAG,SACD;CAEJ,MAAM,aAAa,WAAW,MAAM;EAClC;EACA,OAAO,QAAQ,SAAS,WAAW,SAAS;EAC5C,aAAa;CACf,CAAC;CAED,IAAI,SACF,OAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;CAA0B,CAAA;CAI3E,OAAO,oBADU,MAAM,iBAChB;EAAS,GAAI;EAAa;CAAkB,CAAA;AACrD;AAEA,SAAgB,UAAU,OAAoC;CAC5D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,QAAD;EAAM,GANM,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,cAAc,SAAS;GACtC,aAAa;EACf,CAE0B;EAAI;CAAe,CAAA;AAC/C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,QAAD;EAAM,GANM,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAE0B;EAAI;CAAe,CAAA;AAC/C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Ref } from "@askrjs/askr/foundations/utilities";
|
|
2
|
+
|
|
3
|
+
//#region src/components/brand/brand.types.d.ts
|
|
4
|
+
type BrandElement = "div" | "a" | "span";
|
|
5
|
+
type BrandIntrinsicProps<TElement extends BrandElement> = Omit<JSX.IntrinsicElements[TElement], "children" | "ref">;
|
|
6
|
+
type SpanProps = Omit<JSX.IntrinsicElements["span"], "children" | "ref">;
|
|
7
|
+
type BrandNativeProps<TElement extends BrandElement = "div"> = BrandIntrinsicProps<TElement> & {
|
|
8
|
+
as?: TElement;
|
|
9
|
+
asChild?: false;
|
|
10
|
+
children?: unknown;
|
|
11
|
+
ref?: Ref<HTMLElement>;
|
|
12
|
+
};
|
|
13
|
+
type BrandAsChildProps = {
|
|
14
|
+
asChild: true;
|
|
15
|
+
children: JSX.Element;
|
|
16
|
+
class?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
ref?: Ref<HTMLElement>;
|
|
19
|
+
};
|
|
20
|
+
type BrandProps<TElement extends BrandElement = "div"> = BrandNativeProps<TElement> | BrandAsChildProps;
|
|
21
|
+
type BrandMarkProps = SpanProps & {
|
|
22
|
+
children?: unknown;
|
|
23
|
+
ref?: Ref<HTMLSpanElement>;
|
|
24
|
+
};
|
|
25
|
+
type BrandLabelProps = SpanProps & {
|
|
26
|
+
children?: unknown;
|
|
27
|
+
ref?: Ref<HTMLSpanElement>;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { BrandAsChildProps, BrandElement, BrandLabelProps, BrandMarkProps, BrandNativeProps, BrandProps };
|
|
31
|
+
//# sourceMappingURL=brand.types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps } from "./card.types.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/card/card.d.ts
|
|
4
4
|
declare function Card(props: CardProps): JSX.Element;
|
|
@@ -7,7 +7,7 @@ declare function CardTitle(props: CardTitleProps): JSX.Element;
|
|
|
7
7
|
declare function CardDescription(props: CardDescriptionProps): JSX.Element;
|
|
8
8
|
declare function CardContent(props: CardContentProps): JSX.Element;
|
|
9
9
|
declare function CardFooter(props: CardFooterProps): JSX.Element;
|
|
10
|
-
declare function
|
|
10
|
+
declare function CardAction(props: CardActionProps): JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { Card,
|
|
12
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
13
13
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -2,21 +2,16 @@ import { classes } from "../_internal/classes.js";
|
|
|
2
2
|
import { mergeProps } from "../_internal/merge-props.js";
|
|
3
3
|
import { jsx } from "@askrjs/askr/jsx-runtime";
|
|
4
4
|
//#region src/components/card/card.tsx
|
|
5
|
-
function normalizePadding(padding) {
|
|
6
|
-
return padding && padding !== "md" ? padding : void 0;
|
|
7
|
-
}
|
|
8
5
|
function normalizeVariant(variant) {
|
|
9
6
|
return variant && variant !== "default" ? variant : void 0;
|
|
10
7
|
}
|
|
11
8
|
function Card(props) {
|
|
12
|
-
const { children, class: className, variant,
|
|
9
|
+
const { children, class: className, variant, ref, ...rest } = props;
|
|
13
10
|
const normalizedVariant = normalizeVariant(variant);
|
|
14
|
-
const normalizedPadding = normalizePadding(padding);
|
|
15
11
|
return /* @__PURE__ */ jsx("div", {
|
|
16
12
|
...mergeProps(rest, {
|
|
17
13
|
ref,
|
|
18
|
-
class: classes("card", normalizedVariant && `card-${normalizedVariant}`,
|
|
19
|
-
"data-padding": normalizedPadding,
|
|
14
|
+
class: classes("card", normalizedVariant && `card-${normalizedVariant}`, className),
|
|
20
15
|
"data-slot": "card",
|
|
21
16
|
"data-variant": normalizedVariant
|
|
22
17
|
}),
|
|
@@ -78,18 +73,18 @@ function CardFooter(props) {
|
|
|
78
73
|
children
|
|
79
74
|
});
|
|
80
75
|
}
|
|
81
|
-
function
|
|
76
|
+
function CardAction(props) {
|
|
82
77
|
const { children, class: className, ref, ...rest } = props;
|
|
83
78
|
return /* @__PURE__ */ jsx("div", {
|
|
84
79
|
...mergeProps(rest, {
|
|
85
80
|
ref,
|
|
86
|
-
class: classes("card-
|
|
87
|
-
"data-slot": "card-
|
|
81
|
+
class: classes("card-action", className),
|
|
82
|
+
"data-slot": "card-action"
|
|
88
83
|
}),
|
|
89
84
|
children
|
|
90
85
|
});
|
|
91
86
|
}
|
|
92
87
|
//#endregion
|
|
93
|
-
export { Card,
|
|
88
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
94
89
|
|
|
95
90
|
//# sourceMappingURL=card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/card/card.tsx"],"sourcesContent":["import { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n
|
|
1
|
+
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/card/card.tsx"],"sourcesContent":["import { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n CardActionProps,\n CardContentProps,\n CardDescriptionProps,\n CardFooterProps,\n CardHeaderProps,\n CardProps,\n CardTitleProps,\n CardVariant,\n} from \"./card.types\";\n\nfunction normalizeVariant(variant: CardVariant | undefined) {\n return variant && variant !== \"default\" ? variant : undefined;\n}\n\nexport function Card(props: CardProps): JSX.Element {\n const { children, class: className, variant, ref, ...rest } = props;\n const normalizedVariant = normalizeVariant(variant);\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card\", normalizedVariant && `card-${normalizedVariant}`, className),\n \"data-slot\": \"card\",\n \"data-variant\": normalizedVariant,\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardHeader(props: CardHeaderProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-header\", className),\n \"data-slot\": \"card-header\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardTitle(props: CardTitleProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-title\", className),\n \"data-slot\": \"card-title\",\n });\n\n return <h3 {...finalProps}>{children}</h3>;\n}\n\nexport function CardDescription(props: CardDescriptionProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-description\", className),\n \"data-slot\": \"card-description\",\n });\n\n return <p {...finalProps}>{children}</p>;\n}\n\nexport function CardContent(props: CardContentProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-content\", className),\n \"data-slot\": \"card-content\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardFooter(props: CardFooterProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-footer\", className),\n \"data-slot\": \"card-footer\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardAction(props: CardActionProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-action\", className),\n \"data-slot\": \"card-action\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;AAaA,SAAS,iBAAiB,SAAkC;CAC1D,OAAO,WAAW,YAAY,YAAY,UAAU,KAAA;AACtD;AAEA,SAAgB,KAAK,OAA+B;CAClD,MAAM,EAAE,UAAU,OAAO,WAAW,SAAS,KAAK,GAAG,SAAS;CAC9D,MAAM,oBAAoB,iBAAiB,OAAO;CASlD,OAAO,oBAAC,OAAD;EAAK,GAPO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,QAAQ,qBAAqB,QAAQ,qBAAqB,SAAS;GAClF,aAAa;GACb,gBAAgB;EAClB,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,UAAU,OAAoC;CAC5D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,MAAD;EAAI,GANQ,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,cAAc,SAAS;GACtC,aAAa;EACf,CAEwB;EAAI;CAAa,CAAA;AAC3C;AAEA,SAAgB,gBAAgB,OAA0C;CACxE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,KAAD;EAAG,GANS,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,oBAAoB,SAAS;GAC5C,aAAa;EACf,CAEuB;EAAI;CAAY,CAAA;AACzC;AAEA,SAAgB,YAAY,OAAsC;CAChE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,gBAAgB,SAAS;GACxC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C"}
|
|
@@ -2,40 +2,38 @@ import { Ref } from "@askrjs/askr/foundations/utilities";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/card/card.types.d.ts
|
|
4
4
|
type CardVariant = "default" | "raised";
|
|
5
|
-
type CardPadding = "sm" | "md" | "lg";
|
|
6
5
|
type DivProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref">;
|
|
7
6
|
type HeadingProps = Omit<JSX.IntrinsicElements["h3"], "children" | "ref">;
|
|
8
7
|
type ParagraphProps = Omit<JSX.IntrinsicElements["p"], "children" | "ref">;
|
|
9
8
|
type CardProps = DivProps & {
|
|
10
9
|
children?: unknown;
|
|
11
10
|
variant?: CardVariant;
|
|
12
|
-
padding?: CardPadding;
|
|
13
11
|
ref?: Ref<HTMLDivElement>;
|
|
14
12
|
};
|
|
15
13
|
type CardHeaderProps = DivProps & {
|
|
16
14
|
children?: unknown;
|
|
17
15
|
ref?: Ref<HTMLDivElement>;
|
|
18
16
|
};
|
|
19
|
-
type
|
|
17
|
+
type CardTitleProps = HeadingProps & {
|
|
20
18
|
children?: unknown;
|
|
21
|
-
ref?: Ref<
|
|
19
|
+
ref?: Ref<HTMLHeadingElement>;
|
|
22
20
|
};
|
|
23
|
-
type
|
|
21
|
+
type CardDescriptionProps = ParagraphProps & {
|
|
24
22
|
children?: unknown;
|
|
25
|
-
ref?: Ref<
|
|
23
|
+
ref?: Ref<HTMLParagraphElement>;
|
|
26
24
|
};
|
|
27
|
-
type
|
|
25
|
+
type CardContentProps = DivProps & {
|
|
28
26
|
children?: unknown;
|
|
29
27
|
ref?: Ref<HTMLDivElement>;
|
|
30
28
|
};
|
|
31
|
-
type
|
|
29
|
+
type CardFooterProps = DivProps & {
|
|
32
30
|
children?: unknown;
|
|
33
|
-
ref?: Ref<
|
|
31
|
+
ref?: Ref<HTMLDivElement>;
|
|
34
32
|
};
|
|
35
|
-
type
|
|
33
|
+
type CardActionProps = DivProps & {
|
|
36
34
|
children?: unknown;
|
|
37
|
-
ref?: Ref<
|
|
35
|
+
ref?: Ref<HTMLDivElement>;
|
|
38
36
|
};
|
|
39
37
|
//#endregion
|
|
40
|
-
export {
|
|
38
|
+
export { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CardVariant };
|
|
41
39
|
//# sourceMappingURL=card.types.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Card,
|
|
1
|
+
import { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CardVariant } from "./card.types.js";
|
|
2
|
+
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card.js";
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { Ref } from "@askrjs/askr/foundations/utilities";
|
|
2
|
+
|
|
3
|
+
//#region src/components/catalog.d.ts
|
|
4
|
+
type CatalogElement = keyof JSX.IntrinsicElements;
|
|
5
|
+
type CatalogComponentProps = Record<string, unknown> & {
|
|
6
|
+
as?: CatalogElement;
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
children?: unknown;
|
|
9
|
+
class?: string;
|
|
10
|
+
ref?: Ref<HTMLElement>;
|
|
11
|
+
};
|
|
12
|
+
declare function Box(props: CatalogComponentProps): JSX.Element;
|
|
13
|
+
declare function Stack(props: CatalogComponentProps): JSX.Element;
|
|
14
|
+
declare function Inline(props: CatalogComponentProps): JSX.Element;
|
|
15
|
+
declare function Shell(props: CatalogComponentProps & {
|
|
16
|
+
variant?: unknown;
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
declare function ShellNav(props: CatalogComponentProps): JSX.Element;
|
|
19
|
+
declare function ShellMain(props: CatalogComponentProps): JSX.Element;
|
|
20
|
+
declare function AlertTitle(props: CatalogComponentProps): JSX.Element;
|
|
21
|
+
declare function AlertDescription(props: CatalogComponentProps): JSX.Element;
|
|
22
|
+
declare function Breadcrumb(props: CatalogComponentProps): JSX.Element;
|
|
23
|
+
declare function BreadcrumbList(props: CatalogComponentProps): JSX.Element;
|
|
24
|
+
declare function BreadcrumbItem(props: CatalogComponentProps): JSX.Element;
|
|
25
|
+
declare function BreadcrumbLink(props: CatalogComponentProps): JSX.Element;
|
|
26
|
+
declare function BreadcrumbPage(props: CatalogComponentProps): JSX.Element;
|
|
27
|
+
declare function BreadcrumbSeparator(props: CatalogComponentProps): JSX.Element;
|
|
28
|
+
declare function BreadcrumbEllipsis(props: CatalogComponentProps): JSX.Element;
|
|
29
|
+
declare function Calendar(props: CatalogComponentProps): JSX.Element;
|
|
30
|
+
declare function CalendarHeader(props: CatalogComponentProps): JSX.Element;
|
|
31
|
+
declare function CalendarCaption(props: CatalogComponentProps): JSX.Element;
|
|
32
|
+
declare function CalendarNav(props: CatalogComponentProps): JSX.Element;
|
|
33
|
+
declare function CalendarPreviousButton(props: CatalogComponentProps): JSX.Element;
|
|
34
|
+
declare function CalendarNextButton(props: CatalogComponentProps): JSX.Element;
|
|
35
|
+
declare function CalendarGrid(props: CatalogComponentProps): JSX.Element;
|
|
36
|
+
declare function CalendarHead(props: CatalogComponentProps): JSX.Element;
|
|
37
|
+
declare function CalendarBody(props: CatalogComponentProps): JSX.Element;
|
|
38
|
+
declare function CalendarRow(props: CatalogComponentProps): JSX.Element;
|
|
39
|
+
declare function CalendarCell(props: CatalogComponentProps): JSX.Element;
|
|
40
|
+
declare function CalendarDay(props: CatalogComponentProps & {
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
outside?: boolean;
|
|
43
|
+
rangeEnd?: boolean;
|
|
44
|
+
rangeMiddle?: boolean;
|
|
45
|
+
rangeStart?: boolean;
|
|
46
|
+
selected?: boolean;
|
|
47
|
+
today?: boolean;
|
|
48
|
+
}): JSX.Element;
|
|
49
|
+
declare function Carousel(props: CatalogComponentProps): JSX.Element;
|
|
50
|
+
declare function CarouselContent(props: CatalogComponentProps): JSX.Element;
|
|
51
|
+
declare function CarouselItem(props: CatalogComponentProps): JSX.Element;
|
|
52
|
+
declare function CarouselPrevious(props: CatalogComponentProps): JSX.Element;
|
|
53
|
+
declare function CarouselNext(props: CatalogComponentProps): JSX.Element;
|
|
54
|
+
declare function Combobox(props: CatalogComponentProps): JSX.Element;
|
|
55
|
+
declare function ComboboxInput(props: CatalogComponentProps): JSX.Element;
|
|
56
|
+
declare function ComboboxList(props: CatalogComponentProps): JSX.Element;
|
|
57
|
+
declare function ComboboxOption(props: CatalogComponentProps): JSX.Element;
|
|
58
|
+
declare function Command(props: CatalogComponentProps): JSX.Element;
|
|
59
|
+
declare function CommandDialog(props: CatalogComponentProps): JSX.Element;
|
|
60
|
+
declare function CommandInput(props: CatalogComponentProps): JSX.Element;
|
|
61
|
+
declare function CommandHeader(props: CatalogComponentProps): JSX.Element;
|
|
62
|
+
declare function CommandList(props: CatalogComponentProps): JSX.Element;
|
|
63
|
+
declare function CommandEmpty(props: CatalogComponentProps): JSX.Element;
|
|
64
|
+
declare function CommandGroup(props: CatalogComponentProps): JSX.Element;
|
|
65
|
+
declare function CommandGroupHeading(props: CatalogComponentProps): JSX.Element;
|
|
66
|
+
declare function CommandItem(props: CatalogComponentProps & {
|
|
67
|
+
active?: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
selected?: boolean;
|
|
70
|
+
}): JSX.Element;
|
|
71
|
+
declare function CommandSeparator(props: CatalogComponentProps): JSX.Element;
|
|
72
|
+
declare function CommandShortcut(props: CatalogComponentProps): JSX.Element;
|
|
73
|
+
declare function DataTable(props: CatalogComponentProps): JSX.Element;
|
|
74
|
+
declare function DatePicker(props: CatalogComponentProps): JSX.Element;
|
|
75
|
+
declare function DatePickerInput(props: CatalogComponentProps): JSX.Element;
|
|
76
|
+
declare function Direction(props: CatalogComponentProps & {
|
|
77
|
+
dir?: "ltr" | "rtl";
|
|
78
|
+
}): JSX.Element;
|
|
79
|
+
declare function Empty(props: CatalogComponentProps): JSX.Element;
|
|
80
|
+
declare function EmptyHeader(props: CatalogComponentProps): JSX.Element;
|
|
81
|
+
declare function EmptyTitle(props: CatalogComponentProps): JSX.Element;
|
|
82
|
+
declare function EmptyDescription(props: CatalogComponentProps): JSX.Element;
|
|
83
|
+
declare function EmptyContent(props: CatalogComponentProps): JSX.Element;
|
|
84
|
+
declare function EmptyMedia(props: CatalogComponentProps): JSX.Element;
|
|
85
|
+
declare function FieldGroup(props: CatalogComponentProps): JSX.Element;
|
|
86
|
+
declare function FieldSet(props: CatalogComponentProps): JSX.Element;
|
|
87
|
+
declare function FieldLegend(props: CatalogComponentProps): JSX.Element;
|
|
88
|
+
declare function FieldLabel(props: CatalogComponentProps): JSX.Element;
|
|
89
|
+
declare function FieldDescription(props: CatalogComponentProps): JSX.Element;
|
|
90
|
+
declare function FieldContent(props: CatalogComponentProps): JSX.Element;
|
|
91
|
+
declare function FieldTitle(props: CatalogComponentProps): JSX.Element;
|
|
92
|
+
declare function FieldSeparator(props: CatalogComponentProps): JSX.Element;
|
|
93
|
+
declare function InputOTP(props: CatalogComponentProps): JSX.Element;
|
|
94
|
+
declare function InputOTPGroup(props: CatalogComponentProps): JSX.Element;
|
|
95
|
+
declare function InputOTPSlot(props: CatalogComponentProps): JSX.Element;
|
|
96
|
+
declare function InputOTPSeparator(props: CatalogComponentProps): JSX.Element;
|
|
97
|
+
declare function Item(props: CatalogComponentProps & {
|
|
98
|
+
active?: boolean;
|
|
99
|
+
size?: "default" | "sm" | "xs";
|
|
100
|
+
variant?: "default" | "outline" | "muted";
|
|
101
|
+
}): JSX.Element;
|
|
102
|
+
declare function ItemGroup(props: CatalogComponentProps): JSX.Element;
|
|
103
|
+
declare function ItemHeader(props: CatalogComponentProps): JSX.Element;
|
|
104
|
+
declare function ItemMedia(props: CatalogComponentProps): JSX.Element;
|
|
105
|
+
declare function ItemContent(props: CatalogComponentProps): JSX.Element;
|
|
106
|
+
declare function ItemTitle(props: CatalogComponentProps): JSX.Element;
|
|
107
|
+
declare function ItemDescription(props: CatalogComponentProps): JSX.Element;
|
|
108
|
+
declare function ItemActions(props: CatalogComponentProps): JSX.Element;
|
|
109
|
+
declare function ItemFooter(props: CatalogComponentProps): JSX.Element;
|
|
110
|
+
declare function Kbd(props: CatalogComponentProps): JSX.Element;
|
|
111
|
+
declare function NativeSelect(props: CatalogComponentProps): JSX.Element;
|
|
112
|
+
declare function NavigationMenu(props: CatalogComponentProps): JSX.Element;
|
|
113
|
+
declare function NavigationMenuList(props: CatalogComponentProps): JSX.Element;
|
|
114
|
+
declare function NavigationMenuItem(props: CatalogComponentProps): JSX.Element;
|
|
115
|
+
declare function NavigationMenuTrigger(props: CatalogComponentProps): JSX.Element;
|
|
116
|
+
declare function NavigationMenuContent(props: CatalogComponentProps): JSX.Element;
|
|
117
|
+
declare function NavigationMenuLink(props: CatalogComponentProps): JSX.Element;
|
|
118
|
+
declare function NavigationMenuViewport(props: CatalogComponentProps): JSX.Element;
|
|
119
|
+
declare function NavigationMenuIndicator(props: CatalogComponentProps): JSX.Element;
|
|
120
|
+
declare function Pagination(props: CatalogComponentProps): JSX.Element;
|
|
121
|
+
declare function PaginationContent(props: CatalogComponentProps): JSX.Element;
|
|
122
|
+
declare function PaginationItem(props: CatalogComponentProps): JSX.Element;
|
|
123
|
+
declare function PaginationLink(props: CatalogComponentProps & {
|
|
124
|
+
active?: boolean;
|
|
125
|
+
}): JSX.Element;
|
|
126
|
+
declare function PaginationPrevious(props: CatalogComponentProps): JSX.Element;
|
|
127
|
+
declare function PaginationNext(props: CatalogComponentProps): JSX.Element;
|
|
128
|
+
declare function PaginationEllipsis(props: CatalogComponentProps): JSX.Element;
|
|
129
|
+
declare function ResizablePanelGroup(props: CatalogComponentProps): JSX.Element;
|
|
130
|
+
declare function ResizablePanel(props: CatalogComponentProps): JSX.Element;
|
|
131
|
+
declare function ResizableHandle(props: CatalogComponentProps): JSX.Element;
|
|
132
|
+
declare function TabsList(props: CatalogComponentProps): JSX.Element;
|
|
133
|
+
declare function TabsTrigger(props: CatalogComponentProps): JSX.Element;
|
|
134
|
+
declare function TabsContent(props: CatalogComponentProps): JSX.Element;
|
|
135
|
+
declare function SheetContent(props: CatalogComponentProps & {
|
|
136
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
137
|
+
}): JSX.Element;
|
|
138
|
+
declare function SheetHeader(props: CatalogComponentProps): JSX.Element;
|
|
139
|
+
declare function SheetFooter(props: CatalogComponentProps): JSX.Element;
|
|
140
|
+
declare function SheetTitle(props: CatalogComponentProps): JSX.Element;
|
|
141
|
+
declare function SheetDescription(props: CatalogComponentProps): JSX.Element;
|
|
142
|
+
declare function Toaster(props: CatalogComponentProps): JSX.Element;
|
|
143
|
+
declare const Sonner: typeof Toaster;
|
|
144
|
+
declare function Typography(props: CatalogComponentProps): JSX.Element;
|
|
145
|
+
declare function TypographyH1(props: CatalogComponentProps): JSX.Element;
|
|
146
|
+
declare function TypographyH2(props: CatalogComponentProps): JSX.Element;
|
|
147
|
+
declare function TypographyH3(props: CatalogComponentProps): JSX.Element;
|
|
148
|
+
declare function TypographyH4(props: CatalogComponentProps): JSX.Element;
|
|
149
|
+
declare function TypographyP(props: CatalogComponentProps): JSX.Element;
|
|
150
|
+
declare function TypographyBlockquote(props: CatalogComponentProps): JSX.Element;
|
|
151
|
+
declare function TypographyList(props: CatalogComponentProps): JSX.Element;
|
|
152
|
+
declare function TypographyLead(props: CatalogComponentProps): JSX.Element;
|
|
153
|
+
declare function TypographyMuted(props: CatalogComponentProps): JSX.Element;
|
|
154
|
+
//#endregion
|
|
155
|
+
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, CatalogComponentProps, 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 };
|
|
156
|
+
//# sourceMappingURL=catalog.d.ts.map
|