@saas-ui/react 3.0.0-next.5 → 3.0.0-next.50
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/LICENSE +21 -0
- package/dist/.tsbuildinfo.json +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/colors.js +1 -8
- package/dist/components/absolute-center/index.d.ts +1 -0
- package/dist/components/absolute-center/index.js +2 -0
- package/dist/components/accordion/accordion.d.ts +14 -0
- package/dist/components/accordion/accordion.js +15 -0
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -9
- package/dist/components/action-bar/action-bar.d.ts +16 -0
- package/dist/components/action-bar/action-bar.js +18 -0
- package/dist/components/action-bar/index.d.ts +1 -1
- package/dist/components/action-bar/index.js +1 -13
- package/dist/components/alert/alert.d.ts +10 -0
- package/dist/components/alert/alert.js +9 -0
- package/dist/components/alert/index.d.ts +1 -2
- package/dist/components/alert/index.js +1 -13
- package/dist/components/app-shell/app-shell.d.ts +38 -0
- package/dist/components/app-shell/app-shell.js +22 -0
- package/dist/components/app-shell/index.d.ts +2 -2
- package/dist/components/app-shell/index.js +1 -8
- package/dist/components/aspect-ratio/index.d.ts +1 -2
- package/dist/components/aspect-ratio/index.js +2 -8
- package/dist/components/avatar/avatar.d.ts +17 -0
- package/dist/components/avatar/avatar.js +25 -0
- package/dist/components/avatar/index.d.ts +2 -3
- package/dist/components/avatar/index.js +1 -11
- package/dist/components/back-button/back-button.d.ts +7 -0
- package/dist/components/back-button/back-button.js +14 -0
- package/dist/components/back-button/index.d.ts +2 -2
- package/dist/components/back-button/index.js +1 -11
- package/dist/components/badge/index.d.ts +1 -3
- package/dist/components/badge/index.js +1 -10
- package/dist/components/bleed/index.d.ts +1 -2
- package/dist/components/bleed/index.js +1 -8
- package/dist/components/blockquote/blockquote.d.ts +10 -0
- package/dist/components/blockquote/blockquote.js +11 -0
- package/dist/components/blockquote/index.d.ts +1 -2
- package/dist/components/blockquote/index.js +1 -8
- package/dist/components/box/index.d.ts +1 -2
- package/dist/components/box/index.js +1 -8
- package/dist/components/breadcrumb/breadcrumb.d.ts +10 -0
- package/dist/components/breadcrumb/breadcrumb.js +15 -0
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/breadcrumb/index.js +1 -8
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -8
- package/dist/components/button-group/index.d.ts +2 -2
- package/dist/components/button-group/index.js +1 -8
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +1 -9
- package/dist/components/center/index.d.ts +1 -2
- package/dist/components/center/index.js +1 -8
- package/dist/components/checkbox/checkbox.d.ts +7 -0
- package/dist/components/checkbox/checkbox.js +8 -0
- package/dist/components/checkbox/index.d.ts +3 -2
- package/dist/components/checkbox/index.js +2 -8
- package/dist/components/checkbox-card/checkbox-card.d.ts +12 -0
- package/dist/components/checkbox-card/checkbox-card.js +11 -0
- package/dist/components/checkbox-card/index.d.ts +1 -2
- package/dist/components/checkbox-card/index.js +1 -8
- package/dist/components/checkmark/index.d.ts +1 -2
- package/dist/components/checkmark/index.js +1 -8
- package/dist/components/circle/index.d.ts +1 -0
- package/dist/components/circle/index.js +1 -0
- package/dist/components/client-only/index.d.ts +1 -2
- package/dist/components/client-only/index.js +1 -8
- package/dist/components/clipboard/clipboard.d.ts +22 -0
- package/dist/components/clipboard/clipboard.js +30 -0
- package/dist/components/clipboard/index.d.ts +3 -1
- package/dist/components/clipboard/index.js +2 -13
- package/dist/components/close-button/close-button.d.ts +4 -0
- package/dist/components/close-button/close-button.js +8 -0
- package/dist/components/close-button/index.d.ts +2 -2
- package/dist/components/close-button/index.js +1 -12
- package/dist/components/code/index.d.ts +1 -2
- package/dist/components/code/index.js +1 -8
- package/dist/components/code-block/index.d.ts +1 -0
- package/dist/components/code-block/index.js +1 -0
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -8
- package/dist/components/color-mode/color-mode.d.ts +19 -0
- package/dist/components/color-mode/color-mode.js +35 -0
- package/dist/components/color-mode/index.d.ts +2 -0
- package/dist/components/color-mode/index.js +1 -0
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +1 -8
- package/dist/components/color-swatch/index.d.ts +1 -6
- package/dist/components/color-swatch/index.js +1 -12
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/command/command.d.ts +14 -0
- package/dist/components/command/command.js +26 -0
- package/dist/components/command/index.d.ts +1 -1
- package/dist/components/command/index.js +1 -9
- package/dist/components/container/index.d.ts +1 -2
- package/dist/components/container/index.js +1 -8
- package/dist/components/data-list/index.d.ts +1 -2
- package/dist/components/data-list/index.js +1 -10
- package/dist/components/dialog/dialog.d.ts +21 -0
- package/dist/components/dialog/dialog.js +24 -0
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -13
- package/dist/components/download-trigger/index.d.ts +1 -0
- package/dist/components/download-trigger/index.js +1 -0
- package/dist/components/drawer/drawer.d.ts +20 -0
- package/dist/components/drawer/drawer.js +25 -0
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +1 -13
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/editable/index.js +1 -8
- package/dist/components/em/index.d.ts +1 -0
- package/dist/components/em/index.js +1 -0
- package/dist/components/empty-state/empty-state.d.ts +7 -0
- package/dist/components/empty-state/empty-state.js +13 -0
- package/dist/components/empty-state/index.d.ts +2 -2
- package/dist/components/empty-state/index.js +1 -8
- package/dist/components/environment/index.d.ts +1 -0
- package/dist/components/environment/index.js +1 -0
- package/dist/components/field/index.d.ts +1 -3
- package/dist/components/field/index.js +1 -12
- package/dist/components/fieldset/index.d.ts +1 -2
- package/dist/components/fieldset/index.js +1 -10
- package/dist/components/file-upload/file-upload.d.ts +29 -0
- package/dist/components/file-upload/file-upload.js +46 -0
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/file-upload/index.js +2 -14
- package/dist/components/flex/index.d.ts +1 -2
- package/dist/components/flex/index.js +1 -10
- package/dist/components/float/index.d.ts +1 -2
- package/dist/components/float/index.js +1 -8
- package/dist/components/focus-trap/index.d.ts +1 -2
- package/dist/components/focus-trap/index.js +1 -8
- package/dist/components/for/index.d.ts +1 -2
- package/dist/components/for/index.js +1 -10
- package/dist/components/format/index.d.ts +1 -4
- package/dist/components/format/index.js +1 -10
- package/dist/components/grid/index.d.ts +1 -2
- package/dist/components/grid/index.js +1 -8
- package/dist/components/grid-list/grid-list.context.d.ts +1 -0
- package/dist/components/grid-list/grid-list.context.js +4 -0
- package/dist/components/grid-list/grid-list.d.ts +17 -0
- package/dist/components/grid-list/grid-list.js +8 -0
- package/dist/components/grid-list/index.d.ts +1 -1
- package/dist/components/grid-list/index.js +1 -8
- package/dist/components/group/index.d.ts +1 -2
- package/dist/components/group/index.js +1 -8
- package/dist/components/heading/index.d.ts +1 -2
- package/dist/components/heading/index.js +1 -8
- package/dist/components/highlight/index.d.ts +1 -2
- package/dist/components/highlight/index.js +1 -8
- package/dist/components/hover-card/hover-card.d.ts +11 -0
- package/dist/components/hover-card/hover-card.js +14 -0
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +1 -8
- package/dist/components/icon/index.d.ts +1 -2
- package/dist/components/icon/index.js +1 -8
- package/dist/components/icon-badge/icon-badge.d.ts +13 -0
- package/dist/components/icon-badge/icon-badge.js +23 -0
- package/dist/components/icon-badge/index.d.ts +2 -2
- package/dist/components/icon-badge/index.js +1 -8
- package/dist/components/icon-button/icon-button.d.ts +4 -0
- package/dist/components/icon-button/icon-button.js +7 -0
- package/dist/components/icon-button/index.d.ts +1 -2
- package/dist/components/icon-button/index.js +1 -9
- package/dist/components/icons/create-icon.d.ts +27 -0
- package/dist/components/icons/create-icon.js +15 -0
- package/dist/components/icons/icons.d.ts +20 -0
- package/dist/components/icons/icons.js +82 -0
- package/dist/components/icons/index.d.ts +1 -18
- package/dist/components/icons/index.js +1 -43
- package/dist/components/image/index.d.ts +1 -2
- package/dist/components/image/index.js +1 -8
- package/dist/components/info-tip/index.d.ts +1 -2
- package/dist/components/info-tip/index.js +1 -16
- package/dist/components/info-tip/info-tip.d.ts +8 -0
- package/dist/components/info-tip/info-tip.js +10 -0
- package/dist/components/input/index.d.ts +2 -9
- package/dist/components/input/index.js +1 -16
- package/dist/components/input-addon/index.d.ts +1 -0
- package/dist/components/input-addon/index.js +1 -0
- package/dist/components/input-element/index.d.ts +1 -0
- package/dist/components/input-element/index.js +1 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +1 -0
- package/dist/components/kbd/index.d.ts +1 -2
- package/dist/components/kbd/index.js +1 -8
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/index.js +1 -9
- package/dist/components/link/link.d.ts +10 -0
- package/dist/components/link/link.js +16 -0
- package/dist/components/link-box/index.d.ts +2 -0
- package/dist/components/link-box/index.js +1 -0
- package/dist/components/list/index.d.ts +1 -1
- package/dist/components/list/index.js +1 -8
- package/dist/components/loader/index.d.ts +1 -1
- package/dist/components/loader/index.js +1 -8
- package/dist/components/loading-overlay/index.d.ts +2 -2
- package/dist/components/loading-overlay/index.js +2 -11
- package/dist/components/loading-overlay/loading-overlay.context.d.ts +1 -0
- package/dist/components/loading-overlay/loading-overlay.context.js +4 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +17 -0
- package/dist/components/loading-overlay/loading-overlay.js +17 -0
- package/dist/components/locale/index.d.ts +1 -3
- package/dist/components/locale/index.js +1 -12
- package/dist/components/mark/index.d.ts +1 -1
- package/dist/components/mark/index.js +1 -8
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/index.js +1 -11
- package/dist/components/menu/menu.d.ts +41 -0
- package/dist/components/menu/menu.js +48 -0
- package/dist/components/native-select/index.d.ts +2 -2
- package/dist/components/native-select/index.js +1 -10
- package/dist/components/native-select/native-select.d.ts +7 -0
- package/dist/components/native-select/native-select.js +9 -0
- package/dist/components/navbar/index.d.ts +1 -1
- package/dist/components/navbar/index.js +1 -9
- package/dist/components/navbar/navbar.context.d.ts +1 -0
- package/dist/components/navbar/navbar.context.js +4 -0
- package/dist/components/navbar/navbar.d.ts +15 -0
- package/dist/components/navbar/navbar.js +19 -0
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -9
- package/dist/components/number-input/number-input.d.ts +9 -0
- package/dist/components/number-input/number-input.js +9 -0
- package/dist/components/page/index.d.ts +2 -2
- package/dist/components/page/index.js +2 -12
- package/dist/components/page/page.context.d.ts +7 -0
- package/dist/components/page/page.context.js +5 -0
- package/dist/components/page/page.d.ts +42 -0
- package/dist/components/page/page.js +50 -0
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +1 -11
- package/dist/components/pagination/pagination.d.ts +22 -0
- package/dist/components/pagination/pagination.js +60 -0
- package/dist/components/password-input/index.d.ts +2 -2
- package/dist/components/password-input/index.js +1 -11
- package/dist/components/password-input/password-input.d.ts +15 -0
- package/dist/components/password-input/password-input.js +28 -0
- package/dist/components/persona/index.d.ts +3 -7
- package/dist/components/persona/index.js +2 -13
- package/dist/components/persona/persona-composed.d.ts +63 -0
- package/dist/components/persona/persona-composed.js +19 -0
- package/dist/components/persona/persona.context.d.ts +9 -0
- package/dist/components/persona/persona.context.js +4 -0
- package/dist/components/persona/persona.d.ts +77 -0
- package/dist/components/persona/persona.js +67 -0
- package/dist/components/persona/presence.d.ts +20 -0
- package/dist/components/persona/presence.js +35 -0
- package/dist/components/pin-input/index.d.ts +2 -2
- package/dist/components/pin-input/index.js +1 -8
- package/dist/components/pin-input/pin-input.d.ts +8 -0
- package/dist/components/pin-input/pin-input.js +9 -0
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1 -13
- package/dist/components/popover/popover.d.ts +21 -0
- package/dist/components/popover/popover.js +24 -0
- package/dist/components/portal/index.d.ts +1 -2
- package/dist/components/portal/index.js +1 -8
- package/dist/components/presence/index.d.ts +1 -2
- package/dist/components/presence/index.js +1 -8
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/index.js +1 -8
- package/dist/components/progress-circle/index.d.ts +1 -1
- package/dist/components/progress-circle/index.js +1 -8
- package/dist/components/qr-code/index.d.ts +2 -1
- package/dist/components/qr-code/index.js +1 -8
- package/dist/components/quote/index.d.ts +1 -0
- package/dist/components/quote/index.js +1 -0
- package/dist/components/radio/index.d.ts +3 -2
- package/dist/components/radio/index.js +2 -8
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.js +9 -0
- package/dist/components/radio-card/index.d.ts +1 -1
- package/dist/components/radio-card/index.js +1 -8
- package/dist/components/radio-card/radio-card.d.ts +19 -0
- package/dist/components/radio-card/radio-card.js +14 -0
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -8
- package/dist/components/radiomark/index.d.ts +1 -2
- package/dist/components/radiomark/index.js +1 -10
- package/dist/components/rating-group/index.d.ts +1 -1
- package/dist/components/rating-group/index.js +1 -8
- package/dist/components/scroll-area/index.d.ts +1 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/search-input/index.d.ts +2 -2
- package/dist/components/search-input/index.js +1 -10
- package/dist/components/search-input/search-input.d.ts +12 -0
- package/dist/components/search-input/search-input.js +36 -0
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/index.js +2 -0
- package/dist/components/section/section.context.d.ts +1 -0
- package/dist/components/section/section.context.js +4 -0
- package/dist/components/section/section.d.ts +17 -0
- package/dist/components/section/section.js +13 -0
- package/dist/components/segmented-control/index.d.ts +2 -2
- package/dist/components/segmented-control/index.js +1 -8
- package/dist/components/segmented-control/segmented-control.d.ts +11 -0
- package/dist/components/segmented-control/segmented-control.js +17 -0
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +1 -13
- package/dist/components/select/namespace.d.ts +2 -0
- package/dist/components/select/namespace.js +1 -0
- package/dist/components/select/select.d.ts +26 -0
- package/dist/components/select/select.js +43 -0
- package/dist/components/separator/index.d.ts +2 -2
- package/dist/components/separator/index.js +1 -8
- package/dist/components/show/index.d.ts +1 -2
- package/dist/components/show/index.js +1 -8
- package/dist/components/sidebar/index.d.ts +3 -4
- package/dist/components/sidebar/index.js +3 -14
- package/dist/components/sidebar/sidebar.context.d.ts +10 -0
- package/dist/components/sidebar/sidebar.context.js +7 -0
- package/dist/components/sidebar/sidebar.d.ts +84 -0
- package/dist/components/sidebar/sidebar.js +97 -0
- package/dist/components/simple-grid/index.d.ts +1 -0
- package/dist/components/simple-grid/index.js +1 -0
- package/dist/components/skeleton/index.d.ts +1 -6
- package/dist/components/skeleton/index.js +1 -12
- package/dist/components/skeleton/skeleton.d.ts +12 -0
- package/dist/components/skeleton/skeleton.js +15 -0
- package/dist/components/skip-nav/index.d.ts +1 -4
- package/dist/components/skip-nav/index.js +1 -10
- package/dist/components/skip-nav-link/index.d.ts +1 -4
- package/dist/components/skip-nav-link/index.js +1 -12
- package/dist/components/slider/index.d.ts +1 -2
- package/dist/components/slider/index.js +1 -8
- package/dist/components/slider/slider.d.ts +9 -0
- package/dist/components/slider/slider.js +19 -0
- package/dist/components/spacer/index.d.ts +1 -2
- package/dist/components/spacer/index.js +1 -8
- package/dist/components/span/index.d.ts +1 -0
- package/dist/components/span/index.js +1 -0
- package/dist/components/spinner/index.d.ts +2 -2
- package/dist/components/spinner/index.js +1 -8
- package/dist/components/spinner/spinner.d.ts +6 -0
- package/dist/components/spinner/spinner.js +11 -0
- package/dist/components/square/index.d.ts +1 -0
- package/dist/components/square/index.js +1 -0
- package/dist/components/stack/index.d.ts +1 -6
- package/dist/components/stack/index.js +1 -14
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +1 -8
- package/dist/components/stat/stat.d.ts +17 -0
- package/dist/components/stat/stat.js +22 -0
- package/dist/components/status/index.d.ts +1 -2
- package/dist/components/status/index.js +1 -8
- package/dist/components/status/status.d.ts +14 -0
- package/dist/components/status/status.js +12 -0
- package/dist/components/steps/index.d.ts +2 -1
- package/dist/components/steps/index.js +2 -10
- package/dist/components/steps/steps.d.ts +24 -0
- package/dist/components/steps/steps.js +31 -0
- package/dist/components/sticky/index.d.ts +1 -0
- package/dist/components/sticky/index.js +1 -0
- package/dist/components/strong/index.d.ts +1 -0
- package/dist/components/strong/index.js +1 -0
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/index.js +1 -8
- package/dist/components/switch/switch.d.ts +14 -0
- package/dist/components/switch/switch.js +8 -0
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +1 -8
- package/dist/components/tabs/index.d.ts +1 -4
- package/dist/components/tabs/index.js +1 -14
- package/dist/components/tag/index.d.ts +1 -2
- package/dist/components/tag/index.js +1 -8
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +8 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +1 -0
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/index.js +1 -8
- package/dist/components/theme/index.d.ts +2 -0
- package/dist/components/theme/index.js +1 -0
- package/dist/components/theme/theme.d.ts +40 -0
- package/dist/components/theme/theme.js +16 -0
- package/dist/components/timeline/index.d.ts +1 -1
- package/dist/components/timeline/index.js +1 -8
- package/dist/components/toaster/index.d.ts +2 -3
- package/dist/components/toaster/index.js +1 -16
- package/dist/components/toaster/toaster.d.ts +7 -0
- package/dist/components/toaster/toaster.js +42 -0
- package/dist/components/toggle/index.d.ts +1 -1
- package/dist/components/toggle/index.js +1 -8
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-tip/index.d.ts +1 -2
- package/dist/components/toggle-tip/index.js +1 -14
- package/dist/components/toggle-tip/toggle-tip.d.ts +27 -0
- package/dist/components/toggle-tip/toggle-tip.js +9 -0
- package/dist/components/tooltip/index.d.ts +1 -2
- package/dist/components/tooltip/index.js +1 -8
- package/dist/components/tooltip/tooltip.d.ts +10 -0
- package/dist/components/tooltip/tooltip.js +11 -0
- package/dist/components/tree-view/index.d.ts +1 -0
- package/dist/components/tree-view/index.js +1 -0
- package/dist/components/visually-hidden/index.d.ts +1 -1
- package/dist/components/visually-hidden/index.js +1 -8
- package/dist/components/wrap/index.d.ts +1 -2
- package/dist/components/wrap/index.js +1 -8
- package/dist/index.d.ts +142 -240
- package/dist/index.js +135 -544
- package/dist/preset.d.ts +1 -3
- package/dist/preset.js +1 -12
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.js +2 -0
- package/dist/provider/sui-provider.d.ts +13 -0
- package/dist/provider/sui-provider.js +13 -0
- package/dist/provider/use-link.d.ts +2 -0
- package/dist/provider/use-link.js +9 -0
- package/dist/styled-system/create-recipe-context.d.ts +17 -0
- package/dist/styled-system/create-recipe-context.js +52 -0
- package/dist/styled-system/create-slot-recipe-context.d.ts +35 -0
- package/dist/styled-system/create-slot-recipe-context.js +93 -0
- package/dist/styled-system/empty.d.ts +3 -0
- package/dist/styled-system/empty.js +2 -0
- package/dist/styled-system/factory.types.d.ts +7 -0
- package/dist/styled-system/factory.types.js +1 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.js +1 -0
- package/package.json +27 -31
- package/CHANGELOG.md +0 -4009
- package/dist/_tsup-dts-rollup.d.cts +0 -15170
- package/dist/_tsup-dts-rollup.d.ts +0 -15170
- package/dist/chunk-27OMFCPD.js +0 -8
- package/dist/chunk-2YXHXL6J.js +0 -10
- package/dist/chunk-3CKGT42F.js +0 -10
- package/dist/chunk-3E6URZ5P.js +0 -23
- package/dist/chunk-3RHNNKPC.js +0 -51
- package/dist/chunk-46OCNELO.js +0 -10
- package/dist/chunk-4H66FBQW.js +0 -46
- package/dist/chunk-4N4SHDPB.js +0 -10
- package/dist/chunk-52XM5VXJ.js +0 -9
- package/dist/chunk-5HVAMQYO.js +0 -8
- package/dist/chunk-5OUNZEYB.js +0 -22
- package/dist/chunk-5RWFHB7W.js +0 -67
- package/dist/chunk-5YNHX4C7.js +0 -16
- package/dist/chunk-5ZKEXMBN.js +0 -36
- package/dist/chunk-6WZK2RBQ.js +0 -12
- package/dist/chunk-6YZ76Q2W.js +0 -8
- package/dist/chunk-7DF4NQNZ.js +0 -8
- package/dist/chunk-7HAGRXKM.js +0 -8
- package/dist/chunk-7MCVXFWM.js +0 -33
- package/dist/chunk-7PWVK3NL.js +0 -8
- package/dist/chunk-AHG5XKEK.js +0 -24
- package/dist/chunk-BDS3APRG.js +0 -56
- package/dist/chunk-BLSGOJQ7.js +0 -18
- package/dist/chunk-BSE7ZUP5.js +0 -10
- package/dist/chunk-BVISYY3B.js +0 -101
- package/dist/chunk-C5KFNMWU.js +0 -8
- package/dist/chunk-CQD32UVJ.js +0 -8
- package/dist/chunk-CRFTMIQA.js +0 -36
- package/dist/chunk-DHFAFRZ4.js +0 -8
- package/dist/chunk-DJNPK2LM.js +0 -60
- package/dist/chunk-EJOXGWHK.js +0 -115
- package/dist/chunk-EWATHRZA.js +0 -8
- package/dist/chunk-EWCBYJA7.js +0 -8
- package/dist/chunk-EZZW6JOU.js +0 -10
- package/dist/chunk-FD2V4Y66.js +0 -8
- package/dist/chunk-FN7TU5F5.js +0 -44
- package/dist/chunk-FPRTN3I7.js +0 -9
- package/dist/chunk-GDDJYUWM.js +0 -12
- package/dist/chunk-GSWLAOIM.js +0 -24
- package/dist/chunk-HHTTORZ6.js +0 -8
- package/dist/chunk-HHUVJRPT.js +0 -62
- package/dist/chunk-HJX66GFT.js +0 -118
- package/dist/chunk-HQVBJT5Y.js +0 -8
- package/dist/chunk-HREBIPVW.js +0 -36
- package/dist/chunk-HRFQMDUK.js +0 -71
- package/dist/chunk-HZX4AGO5.js +0 -8
- package/dist/chunk-I2J6U5Z4.js +0 -71
- package/dist/chunk-J5UCKCIO.js +0 -16
- package/dist/chunk-JL4MHGRE.js +0 -43
- package/dist/chunk-JMYI6YXR.js +0 -1
- package/dist/chunk-JR5RLXCK.js +0 -8
- package/dist/chunk-K3MFCSAW.js +0 -8
- package/dist/chunk-K7BMQECB.js +0 -39
- package/dist/chunk-KB6NR2HZ.js +0 -44
- package/dist/chunk-KFDVVTMT.js +0 -36
- package/dist/chunk-KH7E5C3C.js +0 -54
- package/dist/chunk-KRJG7H4W.js +0 -53
- package/dist/chunk-KTLWEUNW.js +0 -1
- package/dist/chunk-L4JB7UFV.js +0 -97
- package/dist/chunk-LFOA3DZO.js +0 -12
- package/dist/chunk-LGLJ2QUW.js +0 -8
- package/dist/chunk-LIOV5MU4.js +0 -20
- package/dist/chunk-LKPWSC6O.js +0 -36
- package/dist/chunk-LU2H6GWC.js +0 -10
- package/dist/chunk-M3DJWM6D.js +0 -8
- package/dist/chunk-MK3OG2I4.js +0 -19
- package/dist/chunk-MZ2RY4NU.js +0 -34
- package/dist/chunk-NCNHDETB.js +0 -8
- package/dist/chunk-NGGISORT.js +0 -29
- package/dist/chunk-NKUBVRXY.js +0 -8896
- package/dist/chunk-NLMFEUVO.js +0 -41
- package/dist/chunk-NSFGACD7.js +0 -38
- package/dist/chunk-OJZPPAT6.js +0 -26
- package/dist/chunk-OME35FUG.js +0 -151
- package/dist/chunk-OQU4LWZW.js +0 -8
- package/dist/chunk-PEJYADAS.js +0 -8
- package/dist/chunk-PEVIP5UT.js +0 -8
- package/dist/chunk-PIQURQGB.js +0 -8
- package/dist/chunk-PONMXNY4.js +0 -8
- package/dist/chunk-PZWP36YA.js +0 -21
- package/dist/chunk-QAAKAKP7.js +0 -326
- package/dist/chunk-QLN2CBY6.js +0 -8
- package/dist/chunk-QNKQFCKJ.js +0 -16
- package/dist/chunk-R2J5USV6.js +0 -12
- package/dist/chunk-RFBD2ZNL.js +0 -40
- package/dist/chunk-RTMS5TJN.js +0 -10
- package/dist/chunk-RYKJOZ3B.js +0 -27
- package/dist/chunk-TEQVVR3W.js +0 -8
- package/dist/chunk-TGEP2YAT.js +0 -10
- package/dist/chunk-TH6YCBEG.js +0 -8
- package/dist/chunk-TXIFPX2A.js +0 -230
- package/dist/chunk-TYGGMKHU.js +0 -177
- package/dist/chunk-TYMVLD3B.js +0 -14
- package/dist/chunk-U23VDAWJ.js +0 -143
- package/dist/chunk-U3EPRSD3.js +0 -20
- package/dist/chunk-UAX5344Y.js +0 -10
- package/dist/chunk-UEXUCHDD.js +0 -34
- package/dist/chunk-UIP2CHMU.js +0 -8
- package/dist/chunk-UZUMIWPJ.js +0 -10
- package/dist/chunk-WJZED26X.js +0 -28
- package/dist/chunk-WZUKOJGI.js +0 -20
- package/dist/chunk-XD7U6L2E.js +0 -10
- package/dist/chunk-XX2OY7LK.js +0 -10
- package/dist/chunk-Y2S4O4UY.js +0 -10
- package/dist/chunk-YHQ5JGCC.js +0 -1
- package/dist/chunk-YMCOU2N5.js +0 -8
- package/dist/chunk-YTTZX7ZE.js +0 -45
- package/dist/chunk-YX44E5NF.js +0 -60
- package/dist/chunk-Z3SWPGPQ.js +0 -20
- package/dist/chunk-ZJ2VD224.js +0 -113
- package/dist/chunk-ZNQNBTWF.js +0 -100
- package/dist/chunk-ZULBHMWG.js +0 -35
- package/dist/chunk-ZUT5GZTD.js +0 -46
- package/dist/colors.cjs +0 -351
- package/dist/colors.d.cts +0 -1
- package/dist/components/accordion/index.cjs +0 -204
- package/dist/components/accordion/index.d.cts +0 -1
- package/dist/components/action-bar/index.cjs +0 -223
- package/dist/components/action-bar/index.d.cts +0 -1
- package/dist/components/alert/index.cjs +0 -233
- package/dist/components/alert/index.d.cts +0 -2
- package/dist/components/app-shell/index.cjs +0 -68
- package/dist/components/app-shell/index.d.cts +0 -2
- package/dist/components/aspect-ratio/index.cjs +0 -31
- package/dist/components/aspect-ratio/index.d.cts +0 -2
- package/dist/components/avatar/index.cjs +0 -70
- package/dist/components/avatar/index.d.cts +0 -3
- package/dist/components/back-button/index.cjs +0 -227
- package/dist/components/back-button/index.d.cts +0 -2
- package/dist/components/badge/index.cjs +0 -33
- package/dist/components/badge/index.d.cts +0 -3
- package/dist/components/bleed/index.cjs +0 -31
- package/dist/components/bleed/index.d.cts +0 -2
- package/dist/components/blockquote/index.cjs +0 -59
- package/dist/components/blockquote/index.d.cts +0 -2
- package/dist/components/box/index.cjs +0 -31
- package/dist/components/box/index.d.cts +0 -2
- package/dist/components/breadcrumb/index.cjs +0 -58
- package/dist/components/breadcrumb/index.d.cts +0 -1
- package/dist/components/button/index.cjs +0 -31
- package/dist/components/button/index.d.cts +0 -2
- package/dist/components/button-group/index.cjs +0 -31
- package/dist/components/button-group/index.d.cts +0 -2
- package/dist/components/card/index.cjs +0 -32
- package/dist/components/card/index.d.cts +0 -1
- package/dist/components/center/index.cjs +0 -31
- package/dist/components/center/index.d.cts +0 -2
- package/dist/components/checkbox/index.cjs +0 -45
- package/dist/components/checkbox/index.d.cts +0 -2
- package/dist/components/checkbox-card/index.cjs +0 -66
- package/dist/components/checkbox-card/index.d.cts +0 -2
- package/dist/components/checkmark/index.cjs +0 -31
- package/dist/components/checkmark/index.d.cts +0 -2
- package/dist/components/client-only/index.cjs +0 -31
- package/dist/components/client-only/index.d.cts +0 -2
- package/dist/components/clipboard/index.cjs +0 -234
- package/dist/components/clipboard/index.d.cts +0 -1
- package/dist/components/close-button/index.cjs +0 -193
- package/dist/components/close-button/index.d.cts +0 -2
- package/dist/components/code/index.cjs +0 -31
- package/dist/components/code/index.d.cts +0 -2
- package/dist/components/collapsible/index.cjs +0 -31
- package/dist/components/collapsible/index.d.cts +0 -1
- package/dist/components/color-picker/index.cjs +0 -31
- package/dist/components/color-picker/index.d.cts +0 -1
- package/dist/components/color-swatch/index.cjs +0 -35
- package/dist/components/color-swatch/index.d.cts +0 -6
- package/dist/components/command/index.cjs +0 -61
- package/dist/components/command/index.d.cts +0 -1
- package/dist/components/container/index.cjs +0 -31
- package/dist/components/container/index.d.cts +0 -2
- package/dist/components/data-list/index.cjs +0 -33
- package/dist/components/data-list/index.d.cts +0 -2
- package/dist/components/dialog/index.cjs +0 -246
- package/dist/components/dialog/index.d.cts +0 -1
- package/dist/components/drawer/index.cjs +0 -238
- package/dist/components/drawer/index.d.cts +0 -1
- package/dist/components/editable/index.cjs +0 -31
- package/dist/components/editable/index.d.cts +0 -1
- package/dist/components/empty-state/index.cjs +0 -50
- package/dist/components/empty-state/index.d.cts +0 -2
- package/dist/components/env/index.cjs +0 -33
- package/dist/components/env/index.d.cts +0 -5
- package/dist/components/env/index.d.ts +0 -5
- package/dist/components/env/index.js +0 -10
- package/dist/components/field/index.cjs +0 -35
- package/dist/components/field/index.d.cts +0 -3
- package/dist/components/fieldset/index.cjs +0 -33
- package/dist/components/fieldset/index.d.cts +0 -2
- package/dist/components/file-upload/index.cjs +0 -302
- package/dist/components/file-upload/index.d.cts +0 -2
- package/dist/components/flex/index.cjs +0 -31
- package/dist/components/flex/index.d.cts +0 -2
- package/dist/components/float/index.cjs +0 -31
- package/dist/components/float/index.d.cts +0 -2
- package/dist/components/focus-trap/index.cjs +0 -31
- package/dist/components/focus-trap/index.d.cts +0 -2
- package/dist/components/for/index.cjs +0 -31
- package/dist/components/for/index.d.cts +0 -2
- package/dist/components/format/index.cjs +0 -33
- package/dist/components/format/index.d.cts +0 -4
- package/dist/components/grid/index.cjs +0 -31
- package/dist/components/grid/index.d.cts +0 -2
- package/dist/components/grid-list/index.cjs +0 -68
- package/dist/components/grid-list/index.d.cts +0 -1
- package/dist/components/group/index.cjs +0 -31
- package/dist/components/group/index.d.cts +0 -2
- package/dist/components/heading/index.cjs +0 -31
- package/dist/components/heading/index.d.cts +0 -2
- package/dist/components/highlight/index.cjs +0 -31
- package/dist/components/highlight/index.d.cts +0 -2
- package/dist/components/hover-card/index.cjs +0 -66
- package/dist/components/hover-card/index.d.cts +0 -1
- package/dist/components/icon/index.cjs +0 -31
- package/dist/components/icon/index.d.cts +0 -2
- package/dist/components/icon-badge/index.cjs +0 -70
- package/dist/components/icon-badge/index.d.cts +0 -2
- package/dist/components/icon-button/index.cjs +0 -53
- package/dist/components/icon-button/index.d.cts +0 -2
- package/dist/components/icons/index.cjs +0 -193
- package/dist/components/icons/index.d.cts +0 -18
- package/dist/components/image/index.cjs +0 -31
- package/dist/components/image/index.d.cts +0 -2
- package/dist/components/info-tip/index.cjs +0 -312
- package/dist/components/info-tip/index.d.cts +0 -2
- package/dist/components/input/index.cjs +0 -39
- package/dist/components/input/index.d.cts +0 -9
- package/dist/components/kbd/index.cjs +0 -31
- package/dist/components/kbd/index.d.cts +0 -2
- package/dist/components/link/index.cjs +0 -71
- package/dist/components/link/index.d.cts +0 -2
- package/dist/components/list/index.cjs +0 -31
- package/dist/components/list/index.d.cts +0 -1
- package/dist/components/loader/index.cjs +0 -31
- package/dist/components/loader/index.d.cts +0 -1
- package/dist/components/loading-overlay/index.cjs +0 -87
- package/dist/components/loading-overlay/index.d.cts +0 -2
- package/dist/components/locale/index.cjs +0 -33
- package/dist/components/locale/index.d.cts +0 -3
- package/dist/components/mark/index.cjs +0 -31
- package/dist/components/mark/index.d.cts +0 -1
- package/dist/components/menu/index.cjs +0 -249
- package/dist/components/menu/index.d.cts +0 -1
- package/dist/components/native-select/index.cjs +0 -185
- package/dist/components/native-select/index.d.cts +0 -2
- package/dist/components/navbar/index.cjs +0 -108
- package/dist/components/navbar/index.d.cts +0 -1
- package/dist/components/number-input/index.cjs +0 -67
- package/dist/components/number-input/index.d.cts +0 -2
- package/dist/components/page/index.cjs +0 -196
- package/dist/components/page/index.d.cts +0 -2
- package/dist/components/pagination/index.cjs +0 -257
- package/dist/components/pagination/index.d.cts +0 -1
- package/dist/components/password-input/index.cjs +0 -284
- package/dist/components/password-input/index.d.cts +0 -2
- package/dist/components/persona/index.cjs +0 -247
- package/dist/components/persona/index.d.cts +0 -7
- package/dist/components/pin-input/index.cjs +0 -52
- package/dist/components/pin-input/index.d.cts +0 -2
- package/dist/components/popover/index.cjs +0 -255
- package/dist/components/popover/index.d.cts +0 -1
- package/dist/components/portal/index.cjs +0 -31
- package/dist/components/portal/index.d.cts +0 -2
- package/dist/components/presence/index.cjs +0 -31
- package/dist/components/presence/index.d.cts +0 -2
- package/dist/components/progress/index.cjs +0 -31
- package/dist/components/progress/index.d.cts +0 -1
- package/dist/components/progress-circle/index.cjs +0 -31
- package/dist/components/progress-circle/index.d.cts +0 -1
- package/dist/components/qr-code/index.cjs +0 -31
- package/dist/components/qr-code/index.d.cts +0 -1
- package/dist/components/radio/index.cjs +0 -46
- package/dist/components/radio/index.d.cts +0 -2
- package/dist/components/radio-card/index.cjs +0 -75
- package/dist/components/radio-card/index.d.cts +0 -1
- package/dist/components/radio-group/index.cjs +0 -31
- package/dist/components/radio-group/index.d.cts +0 -1
- package/dist/components/radiomark/index.cjs +0 -31
- package/dist/components/radiomark/index.d.cts +0 -2
- package/dist/components/rating-group/index.cjs +0 -31
- package/dist/components/rating-group/index.d.cts +0 -1
- package/dist/components/search-input/index.cjs +0 -273
- package/dist/components/search-input/index.d.cts +0 -2
- package/dist/components/segmented-control/index.cjs +0 -61
- package/dist/components/segmented-control/index.d.cts +0 -2
- package/dist/components/select/index.cjs +0 -285
- package/dist/components/select/index.d.cts +0 -1
- package/dist/components/separator/index.cjs +0 -31
- package/dist/components/separator/index.d.cts +0 -2
- package/dist/components/show/index.cjs +0 -31
- package/dist/components/show/index.d.cts +0 -2
- package/dist/components/sidebar/index.cjs +0 -168
- package/dist/components/sidebar/index.d.cts +0 -4
- package/dist/components/skeleton/index.cjs +0 -61
- package/dist/components/skeleton/index.d.cts +0 -6
- package/dist/components/skip-nav/index.cjs +0 -33
- package/dist/components/skip-nav/index.d.cts +0 -4
- package/dist/components/skip-nav-link/index.cjs +0 -33
- package/dist/components/skip-nav-link/index.d.cts +0 -4
- package/dist/components/slider/index.cjs +0 -61
- package/dist/components/slider/index.d.cts +0 -2
- package/dist/components/spacer/index.cjs +0 -31
- package/dist/components/spacer/index.d.cts +0 -2
- package/dist/components/spinner/index.cjs +0 -44
- package/dist/components/spinner/index.d.cts +0 -2
- package/dist/components/stack/index.cjs +0 -37
- package/dist/components/stack/index.d.cts +0 -6
- package/dist/components/stat/index.cjs +0 -83
- package/dist/components/stat/index.d.cts +0 -1
- package/dist/components/status/index.cjs +0 -45
- package/dist/components/status/index.d.cts +0 -2
- package/dist/components/steps/index.cjs +0 -221
- package/dist/components/steps/index.d.cts +0 -1
- package/dist/components/switch/index.cjs +0 -48
- package/dist/components/switch/index.d.cts +0 -2
- package/dist/components/table/index.cjs +0 -31
- package/dist/components/table/index.d.cts +0 -1
- package/dist/components/tabs/index.cjs +0 -37
- package/dist/components/tabs/index.d.cts +0 -4
- package/dist/components/tag/index.cjs +0 -53
- package/dist/components/tag/index.d.cts +0 -2
- package/dist/components/textarea/index.cjs +0 -31
- package/dist/components/textarea/index.d.cts +0 -2
- package/dist/components/timeline/index.cjs +0 -31
- package/dist/components/timeline/index.d.cts +0 -1
- package/dist/components/toaster/index.cjs +0 -262
- package/dist/components/toaster/index.d.cts +0 -3
- package/dist/components/toggle/index.cjs +0 -31
- package/dist/components/toggle/index.d.cts +0 -1
- package/dist/components/toggle-tip/index.cjs +0 -302
- package/dist/components/toggle-tip/index.d.cts +0 -2
- package/dist/components/tooltip/index.cjs +0 -58
- package/dist/components/tooltip/index.d.cts +0 -2
- package/dist/components/typography/index.cjs +0 -37
- package/dist/components/typography/index.d.cts +0 -8
- package/dist/components/typography/index.d.ts +0 -8
- package/dist/components/typography/index.js +0 -14
- package/dist/components/visually-hidden/index.cjs +0 -31
- package/dist/components/visually-hidden/index.d.cts +0 -1
- package/dist/components/wrap/index.cjs +0 -31
- package/dist/components/wrap/index.d.cts +0 -2
- package/dist/index.cjs +0 -12233
- package/dist/index.d.cts +0 -240
- package/dist/preset.cjs +0 -9233
- package/dist/preset.d.cts +0 -3
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Sidebar, useSidebar } from '@saas-ui/core/sidebar';
|
|
4
|
+
import { ClassNamesProvider, StylesProvider, useRecipeResult, withContext, withItemContext, withItemProvider, } from "./sidebar.context.js";
|
|
5
|
+
function SidebarProvider(props) {
|
|
6
|
+
return (_jsx(Sidebar.Provider, { ...props, children: _jsx(RecipeProvider, { ...props, children: props.children }) }));
|
|
7
|
+
}
|
|
8
|
+
function RecipeProvider(props) {
|
|
9
|
+
const { mode } = useSidebar();
|
|
10
|
+
const { styles, classNames } = useRecipeResult({
|
|
11
|
+
...props,
|
|
12
|
+
mode,
|
|
13
|
+
});
|
|
14
|
+
return (_jsx(StylesProvider, { value: styles, children: _jsx(ClassNamesProvider, { value: classNames, children: props.children }) }));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Side navigation, commonly used as the primary navigation
|
|
18
|
+
*
|
|
19
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
20
|
+
*/
|
|
21
|
+
const SidebarRoot = withContext(Sidebar.Root, 'root');
|
|
22
|
+
/**
|
|
23
|
+
* Button that toggles the sidebar visibility.
|
|
24
|
+
*
|
|
25
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
26
|
+
*/
|
|
27
|
+
const SidebarTrigger = withContext(Sidebar.Trigger, 'trigger', {
|
|
28
|
+
forwardAsChild: true,
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Opens the sidebar when hovering over the trigger.
|
|
32
|
+
*
|
|
33
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
34
|
+
*/
|
|
35
|
+
const SidebarFlyoutTrigger = withContext(Sidebar.FlyoutTrigger, 'flyoutTrigger', {
|
|
36
|
+
forwardAsChild: true,
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Overlay shown when sidebar is open on mobile.
|
|
40
|
+
*
|
|
41
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
42
|
+
*/
|
|
43
|
+
const SidebarBackdrop = withContext(Sidebar.Backdrop, 'backdrop', {
|
|
44
|
+
forwardAsChild: true,
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Sidebar header section.
|
|
48
|
+
*
|
|
49
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
50
|
+
*/
|
|
51
|
+
const SidebarHeader = withContext(Sidebar.Header, 'header');
|
|
52
|
+
/**
|
|
53
|
+
* Sidebar body section, used for the main content of the sidebar.
|
|
54
|
+
*
|
|
55
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
56
|
+
*/
|
|
57
|
+
const SidebarBody = withContext(Sidebar.Body, 'body');
|
|
58
|
+
/**
|
|
59
|
+
* Sidebar footer section.
|
|
60
|
+
*
|
|
61
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
62
|
+
*/
|
|
63
|
+
const SidebarFooter = withContext(Sidebar.Footer, 'footer');
|
|
64
|
+
/**
|
|
65
|
+
* Sidebar track section.
|
|
66
|
+
*
|
|
67
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
68
|
+
*/
|
|
69
|
+
const SidebarTrack = withContext(Sidebar.Track, 'track', {
|
|
70
|
+
forwardAsChild: true,
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Sidebar inset.
|
|
74
|
+
*
|
|
75
|
+
* @see Docs https://saas-ui.dev/docs/components/layout/sidebar
|
|
76
|
+
*/
|
|
77
|
+
const SidebarInset = withContext('div', 'inset');
|
|
78
|
+
const SidebarGroup = withContext(Sidebar.Group, 'group', {
|
|
79
|
+
defaultProps: {
|
|
80
|
+
role: 'group',
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
const SidebarGroupHeader = withContext(Sidebar.GroupHeader, 'groupHeader');
|
|
84
|
+
const SidebarGroupTitle = withContext(Sidebar.GroupTitle, 'groupTitle');
|
|
85
|
+
const SidebarGroupEndElement = withContext(Sidebar.GroupEndElement, 'groupEndElement');
|
|
86
|
+
const SidebarGroupContent = withContext(Sidebar.GroupContent, 'groupContent');
|
|
87
|
+
const SidebarNavItem = withItemProvider(Sidebar.NavItem, 'item');
|
|
88
|
+
const SidebarNavButton = withItemContext(Sidebar.NavButton, 'button', {
|
|
89
|
+
forwardAsChild: true,
|
|
90
|
+
});
|
|
91
|
+
const SidebarNavButtonEndElement = withItemContext(Sidebar.NavItemEndElement, 'endElement', {
|
|
92
|
+
defaultProps: {
|
|
93
|
+
'data-slot': 'endElement',
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
const SidebarContext = Sidebar.Context;
|
|
97
|
+
export { SidebarProvider as Provider, SidebarContext as Context, SidebarRoot as Root, SidebarTrigger as Trigger, SidebarFlyoutTrigger as FlyoutTrigger, SidebarBackdrop as Backdrop, SidebarHeader as Header, SidebarBody as Body, SidebarFooter as Footer, SidebarTrack as Track, SidebarInset as Inset, SidebarGroup as Group, SidebarGroupHeader as GroupHeader, SidebarGroupTitle as GroupTitle, SidebarGroupEndElement as GroupEndElement, SidebarGroupContent as GroupContent, SidebarNavItem as NavItem, SidebarNavButton as NavButton, SidebarNavButtonEndElement as NavButtonEndElement, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SimpleGrid, type SimpleGridProps } from '@chakra-ui/react/simple-grid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SimpleGrid } from '@chakra-ui/react/simple-grid';
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SkeletonProps_alias_1 as SkeletonProps } from '../../_tsup-dts-rollup.js';
|
|
3
|
-
export { SkeletonCircle_alias_1 as SkeletonCircle } from '../../_tsup-dts-rollup.js';
|
|
4
|
-
export { SkeletonCircleProps_alias_1 as SkeletonCircleProps } from '../../_tsup-dts-rollup.js';
|
|
5
|
-
export { SkeletonText_alias_1 as SkeletonText } from '../../_tsup-dts-rollup.js';
|
|
6
|
-
export { SkeletonTextProps_alias_1 as SkeletonTextProps } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { Skeleton, type SkeletonProps, SkeletonCircle, type SkeletonCircleProps, SkeletonText, type SkeletonTextProps, } from './skeleton.tsx';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Skeleton,
|
|
4
|
-
SkeletonCircle,
|
|
5
|
-
SkeletonText
|
|
6
|
-
} from "../../chunk-UEXUCHDD.js";
|
|
7
|
-
import "../../chunk-RTMS5TJN.js";
|
|
8
|
-
export {
|
|
9
|
-
Skeleton,
|
|
10
|
-
SkeletonCircle,
|
|
11
|
-
SkeletonText
|
|
12
|
-
};
|
|
1
|
+
export { Skeleton, SkeletonCircle, SkeletonText, } from "./skeleton.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CircleProps } from '@chakra-ui/react/circle';
|
|
2
|
+
import type { SkeletonProps as ChakraSkeletonProps } from '@chakra-ui/react/skeleton';
|
|
3
|
+
export interface SkeletonCircleProps extends ChakraSkeletonProps {
|
|
4
|
+
size?: CircleProps['size'];
|
|
5
|
+
}
|
|
6
|
+
export declare const SkeletonCircle: (props: SkeletonCircleProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface SkeletonTextProps extends ChakraSkeletonProps {
|
|
8
|
+
noOfLines?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const SkeletonText: import("react").ForwardRefExoticComponent<SkeletonTextProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export type SkeletonProps = ChakraSkeletonProps;
|
|
12
|
+
export declare const Skeleton: import("react").ForwardRefExoticComponent<ChakraSkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Circle } from '@chakra-ui/react/circle';
|
|
5
|
+
import { Skeleton as ChakraSkeleton } from '@chakra-ui/react/skeleton';
|
|
6
|
+
import { Stack } from '@chakra-ui/react/stack';
|
|
7
|
+
export const SkeletonCircle = (props) => {
|
|
8
|
+
const { size, ...rest } = props;
|
|
9
|
+
return (_jsx(Circle, { size: size, asChild: true, children: _jsx(ChakraSkeleton, { ...rest }) }));
|
|
10
|
+
};
|
|
11
|
+
export const SkeletonText = forwardRef(function SkeletonText(props, ref) {
|
|
12
|
+
const { noOfLines = 3, gap, ...rest } = props;
|
|
13
|
+
return (_jsx(Stack, { gap: gap, width: "full", ref: ref, children: Array.from({ length: noOfLines }).map((_, index) => (_jsx(ChakraSkeleton, { height: "4", ...props, _last: { maxW: '80%' }, ...rest }, index))) }));
|
|
14
|
+
});
|
|
15
|
+
export const Skeleton = ChakraSkeleton;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SkipNavContentProps_alias_1 as SkipNavContentProps } from '../../_tsup-dts-rollup.js';
|
|
3
|
-
export { SkipNavLink_alias_1 as SkipNavLink } from '../../_tsup-dts-rollup.js';
|
|
4
|
-
export { SkipNavLinkProps_alias_1 as SkipNavLinkProps } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { SkipNavContent, type SkipNavContentProps, SkipNavLink, type SkipNavLinkProps, } from '@chakra-ui/react/skip-nav';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SkipNavContent_alias_2 as SkipNavContent } from '../../_tsup-dts-rollup.js';
|
|
3
|
-
export { SkipNavContentProps_alias_2 as SkipNavContentProps } from '../../_tsup-dts-rollup.js';
|
|
4
|
-
export { SkipNavLinkProps_alias_2 as SkipNavLinkProps } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { SkipNavLink, SkipNavContent, type SkipNavContentProps, type SkipNavLinkProps, } from '@chakra-ui/react/skip-nav';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "../../chunk-RTMS5TJN.js";
|
|
3
|
-
|
|
4
|
-
// src/components/skip-nav-link/index.ts
|
|
5
|
-
import {
|
|
6
|
-
SkipNavLink,
|
|
7
|
-
SkipNavContent
|
|
8
|
-
} from "@chakra-ui/react/skip-nav";
|
|
9
|
-
export {
|
|
10
|
-
SkipNavContent,
|
|
11
|
-
SkipNavLink
|
|
12
|
-
};
|
|
1
|
+
export { SkipNavLink, SkipNavContent, } from '@chakra-ui/react/skip-nav';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SliderProps_alias_1 as SliderProps } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { Slider, type SliderProps } from './slider.tsx';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Slider as ChakraSlider } from '@chakra-ui/react/slider';
|
|
2
|
+
export interface SliderProps extends ChakraSlider.RootProps {
|
|
3
|
+
marks?: Array<number | {
|
|
4
|
+
value: number;
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Slider as ChakraSlider } from '@chakra-ui/react/slider';
|
|
5
|
+
export const Slider = forwardRef(function Slider(props, ref) {
|
|
6
|
+
const { marks: marksProp, label, ...rest } = props;
|
|
7
|
+
const value = props.defaultValue ?? props.value;
|
|
8
|
+
const marks = marksProp?.map((mark) => {
|
|
9
|
+
if (typeof mark === 'number')
|
|
10
|
+
return { value: mark, label: undefined };
|
|
11
|
+
return mark;
|
|
12
|
+
});
|
|
13
|
+
const hasMarkLabel = !!marks?.some((mark) => mark.label);
|
|
14
|
+
return (_jsxs(ChakraSlider.Root, { ref: ref, thumbAlignment: "center", ...rest, children: [label && (_jsx(ChakraSlider.Label, { fontWeight: "medium", children: label })), _jsxs(ChakraSlider.Control, { mb: hasMarkLabel ? '4' : undefined, children: [_jsx(ChakraSlider.Track, { children: _jsx(ChakraSlider.Range, {}) }), value?.map((_, index) => (_jsx(ChakraSlider.Thumb, { index: index, children: _jsx(ChakraSlider.HiddenInput, {}) }, index)))] }), marks?.length && (_jsx(ChakraSlider.MarkerGroup, { children: marks.map((mark, index) => {
|
|
15
|
+
const value = typeof mark === 'number' ? mark : mark.value;
|
|
16
|
+
const label = typeof mark === 'number' ? undefined : mark.label;
|
|
17
|
+
return (_jsxs(ChakraSlider.Marker, { value: value, children: [_jsx(ChakraSlider.MarkerIndicator, {}), label] }, index));
|
|
18
|
+
}) }))] }));
|
|
19
|
+
});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SpacerProps_alias_1 as SpacerProps } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { Spacer, type SpacerProps, } from '@chakra-ui/react/spacer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Span, type SpanProps } from '@chakra-ui/react/span';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Span } from '@chakra-ui/react/span';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Spinner } from './spinner.tsx';
|
|
2
|
+
export type { SpinnerProps } from './spinner.tsx';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SpinnerProps as ChakraSpinnerProps } from '@chakra-ui/react/spinner';
|
|
2
|
+
export interface SpinnerProps extends ChakraSpinnerProps {
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Spinner as ChakraSpinner } from '@chakra-ui/react/spinner';
|
|
5
|
+
export const Spinner = forwardRef(function Spinner(props, ref) {
|
|
6
|
+
const { loading, children, ...rest } = props;
|
|
7
|
+
if (loading === false) {
|
|
8
|
+
return _jsx(_Fragment, { children: children });
|
|
9
|
+
}
|
|
10
|
+
return _jsx(ChakraSpinner, { ref: ref, ...rest });
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Square, type SquareProps, } from '@chakra-ui/react/square';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Square, } from '@chakra-ui/react/square';
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { StackProps_alias_1 as StackProps } from '../../_tsup-dts-rollup.js';
|
|
3
|
-
export { HStack_alias_1 as HStack } from '../../_tsup-dts-rollup.js';
|
|
4
|
-
export { StackSeparator_alias_1 as StackSeparator } from '../../_tsup-dts-rollup.js';
|
|
5
|
-
export { StackSeparatorProps_alias_1 as StackSeparatorProps } from '../../_tsup-dts-rollup.js';
|
|
6
|
-
export { VStack_alias_1 as VStack } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { Stack, type StackProps, HStack, StackSeparator, type StackSeparatorProps, VStack, } from '@chakra-ui/react/stack';
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
HStack,
|
|
4
|
-
Stack,
|
|
5
|
-
StackSeparator,
|
|
6
|
-
VStack
|
|
7
|
-
} from "../../chunk-QNKQFCKJ.js";
|
|
8
|
-
import "../../chunk-RTMS5TJN.js";
|
|
9
|
-
export {
|
|
10
|
-
HStack,
|
|
11
|
-
Stack,
|
|
12
|
-
StackSeparator,
|
|
13
|
-
VStack
|
|
14
|
-
};
|
|
1
|
+
export { Stack, HStack, StackSeparator, VStack, } from '@chakra-ui/react/stack';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * as Stat from './stat.tsx';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type BadgeProps } from '@chakra-ui/react/badge';
|
|
3
|
+
import { Stat as ChakraStat } from '@chakra-ui/react/stat';
|
|
4
|
+
interface StatValueTextProps extends ChakraStat.ValueTextProps {
|
|
5
|
+
value?: number;
|
|
6
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
7
|
+
}
|
|
8
|
+
declare const StatValueText: React.ForwardRefExoticComponent<StatValueTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const StatUpTrend: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const StatDownTrend: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const Root: React.ForwardRefExoticComponent<ChakraStat.RootProps & React.RefAttributes<HTMLDListElement>>;
|
|
12
|
+
export declare const Label: React.ForwardRefExoticComponent<ChakraStat.LabelProps & React.RefAttributes<HTMLElement>>;
|
|
13
|
+
export declare const HelpText: React.ForwardRefExoticComponent<ChakraStat.HelpTextProps & React.RefAttributes<HTMLElement>>;
|
|
14
|
+
export declare const ValueUnit: React.ForwardRefExoticComponent<ChakraStat.ValueUnitProps & React.RefAttributes<HTMLElement>>;
|
|
15
|
+
export type RootProps = ChakraStat.RootProps;
|
|
16
|
+
export type ValueTextProps = StatValueTextProps;
|
|
17
|
+
export { StatValueText as ValueText, StatUpTrend as UpTrend, StatDownTrend as DownTrend, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Badge } from '@chakra-ui/react/badge';
|
|
5
|
+
import { FormatNumber } from '@chakra-ui/react/format';
|
|
6
|
+
import { Stat as ChakraStat } from '@chakra-ui/react/stat';
|
|
7
|
+
const StatValueText = React.forwardRef(function StatValueText(props, ref) {
|
|
8
|
+
const { value, formatOptions, children, ...rest } = props;
|
|
9
|
+
return (_jsx(ChakraStat.ValueText, { ...rest, ref: ref, children: children ||
|
|
10
|
+
(value != null && _jsx(FormatNumber, { value: value, ...formatOptions })) }));
|
|
11
|
+
});
|
|
12
|
+
const StatUpTrend = React.forwardRef(function StatUpTrend(props, ref) {
|
|
13
|
+
return (_jsxs(Badge, { colorPalette: "green", gap: "0", ...props, ref: ref, children: [_jsx(ChakraStat.UpIndicator, {}), props.children] }));
|
|
14
|
+
});
|
|
15
|
+
const StatDownTrend = React.forwardRef(function StatDownTrend(props, ref) {
|
|
16
|
+
return (_jsxs(Badge, { colorPalette: "red", gap: "0", ...props, ref: ref, children: [_jsx(ChakraStat.DownIndicator, {}), props.children] }));
|
|
17
|
+
});
|
|
18
|
+
export const Root = ChakraStat.Root;
|
|
19
|
+
export const Label = ChakraStat.Label;
|
|
20
|
+
export const HelpText = ChakraStat.HelpText;
|
|
21
|
+
export const ValueUnit = ChakraStat.ValueUnit;
|
|
22
|
+
export { StatValueText as ValueText, StatUpTrend as UpTrend, StatDownTrend as DownTrend, };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { StatusProps_alias_1 as StatusProps } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { Status, type StatusProps } from './status.tsx';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Status as ChakraStatus } from '@chakra-ui/react/status';
|
|
2
|
+
import type { Token } from '@chakra-ui/react/styled-system';
|
|
3
|
+
export type StatusTokens = Extract<Token, `colors.status.${string}`>;
|
|
4
|
+
export interface StatusProps extends ChakraStatus.RootProps {
|
|
5
|
+
/**
|
|
6
|
+
* The status value, used to determine the color of the status
|
|
7
|
+
* colors can be configured as semantic tokens under the `colors.status` key.
|
|
8
|
+
*/
|
|
9
|
+
value?: StatusTokens extends never ? string : StatusTokens;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Status component
|
|
13
|
+
*/
|
|
14
|
+
export declare const Status: import("react").ForwardRefExoticComponent<StatusProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Status as ChakraStatus } from '@chakra-ui/react/status';
|
|
5
|
+
/**
|
|
6
|
+
* Status component
|
|
7
|
+
*/
|
|
8
|
+
export const Status = forwardRef(function Status(props, ref) {
|
|
9
|
+
const { children, value, ...rest } = props;
|
|
10
|
+
const color = value ? `status.${value}` : undefined;
|
|
11
|
+
return (_jsxs(ChakraStatus.Root, { ref: ref, ...rest, children: [_jsx(ChakraStatus.Indicator, { bg: color }), children] }));
|
|
12
|
+
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * as Steps from './steps.tsx';
|
|
2
|
+
export { useStepsContext } from '@chakra-ui/react/steps';
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
steps_exports
|
|
4
|
-
} from "../../chunk-I2J6U5Z4.js";
|
|
5
|
-
import "../../chunk-KTLWEUNW.js";
|
|
6
|
-
import "../../chunk-OME35FUG.js";
|
|
7
|
-
import "../../chunk-RTMS5TJN.js";
|
|
8
|
-
export {
|
|
9
|
-
steps_exports as Steps
|
|
10
|
-
};
|
|
1
|
+
export * as Steps from "./steps.js";
|
|
2
|
+
export { useStepsContext } from '@chakra-ui/react/steps';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Steps as ChakraSteps, useStepsContext } from '@chakra-ui/react/steps';
|
|
2
|
+
interface StepInfoProps {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface StepsItemProps extends Omit<ChakraSteps.ItemProps, 'title'>, StepInfoProps {
|
|
7
|
+
completedIcon?: React.ReactNode;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const StepsItem: (props: StepsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
interface StepsIndicatorProps {
|
|
12
|
+
completedIcon: React.ReactNode;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const StepsIndicator: (props: StepsIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const StepsList: import("react").ForwardRefExoticComponent<ChakraSteps.ListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
type StepsRootProps = ChakraSteps.RootProps;
|
|
18
|
+
declare const StepsRoot: import("react").ForwardRefExoticComponent<ChakraSteps.RootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const StepsContent: import("react").ForwardRefExoticComponent<ChakraSteps.ContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const StepsCompletedContent: import("react").ForwardRefExoticComponent<ChakraSteps.CompletedContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const StepsNextTrigger: (props: ChakraSteps.NextTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const StepsPrevTrigger: (props: ChakraSteps.PrevTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { StepsRoot as Root, StepsContent as Content, StepsCompletedContent as CompletedContent, StepsList as List, StepsIndicator as Indicator, StepsItem as Item, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, useStepsContext as useContext, };
|
|
24
|
+
export type { StepsRootProps as RootProps, StepsItemProps as ItemProps, StepsIndicatorProps as IndicatorProps, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { Box } from '@chakra-ui/react/box';
|
|
4
|
+
import { Steps as ChakraSteps, useStepsContext } from '@chakra-ui/react/steps';
|
|
5
|
+
import { CheckIcon } from "../icons/index.js";
|
|
6
|
+
const StepsItem = (props) => {
|
|
7
|
+
const { title, description, completedIcon, icon, ...rest } = props;
|
|
8
|
+
return (_jsxs(ChakraSteps.Item, { ...rest, children: [_jsxs(ChakraSteps.Trigger, { children: [_jsx(ChakraSteps.Indicator, { children: _jsx(ChakraSteps.Status, { complete: completedIcon || _jsx(CheckIcon, {}), incomplete: icon || _jsx(ChakraSteps.Number, {}) }) }), _jsx(StepInfo, { title: title, description: description })] }), _jsx(ChakraSteps.Separator, {})] }));
|
|
9
|
+
};
|
|
10
|
+
const StepInfo = (props) => {
|
|
11
|
+
const { title, description } = props;
|
|
12
|
+
if (title && description) {
|
|
13
|
+
return (_jsxs(Box, { children: [_jsx(ChakraSteps.Title, { children: title }), _jsx(ChakraSteps.Description, { children: description })] }));
|
|
14
|
+
}
|
|
15
|
+
return (_jsxs(_Fragment, { children: [title && _jsx(ChakraSteps.Title, { children: title }), description && (_jsx(ChakraSteps.Description, { children: description }))] }));
|
|
16
|
+
};
|
|
17
|
+
const StepsIndicator = (props) => {
|
|
18
|
+
const { icon = _jsx(ChakraSteps.Number, {}), completedIcon } = props;
|
|
19
|
+
return (_jsx(ChakraSteps.Indicator, { children: _jsx(ChakraSteps.Status, { complete: completedIcon, incomplete: icon }) }));
|
|
20
|
+
};
|
|
21
|
+
const StepsList = ChakraSteps.List;
|
|
22
|
+
const StepsRoot = ChakraSteps.Root;
|
|
23
|
+
const StepsContent = ChakraSteps.Content;
|
|
24
|
+
const StepsCompletedContent = ChakraSteps.CompletedContent;
|
|
25
|
+
const StepsNextTrigger = (props) => {
|
|
26
|
+
return _jsx(ChakraSteps.NextTrigger, { ...props });
|
|
27
|
+
};
|
|
28
|
+
const StepsPrevTrigger = (props) => {
|
|
29
|
+
return _jsx(ChakraSteps.PrevTrigger, { ...props });
|
|
30
|
+
};
|
|
31
|
+
export { StepsRoot as Root, StepsContent as Content, StepsCompletedContent as CompletedContent, StepsList as List, StepsIndicator as Indicator, StepsItem as Item, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, useStepsContext as useContext, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Sticky, type StickyProps, } from '@chakra-ui/react/sticky';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Sticky, } from '@chakra-ui/react/sticky';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Strong, type StrongProps } from '@chakra-ui/react/strong';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Strong } from '@chakra-ui/react/strong';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Switch } from './switch.tsx';
|
|
2
|
+
export type { SwitchProps } from './switch.tsx';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Switch as ChakraSwitch } from '@chakra-ui/react/switch';
|
|
2
|
+
export interface SwitchProps extends ChakraSwitch.RootProps {
|
|
3
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
4
|
+
rootRef?: React.Ref<HTMLLabelElement>;
|
|
5
|
+
trackLabel?: {
|
|
6
|
+
on: React.ReactNode;
|
|
7
|
+
off: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
thumbLabel?: {
|
|
10
|
+
on: React.ReactNode;
|
|
11
|
+
off: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Switch as ChakraSwitch } from '@chakra-ui/react/switch';
|
|
5
|
+
export const Switch = forwardRef(function Switch(props, ref) {
|
|
6
|
+
const { inputProps, children, rootRef, trackLabel, thumbLabel, ...rest } = props;
|
|
7
|
+
return (_jsxs(ChakraSwitch.Root, { ref: rootRef, ...rest, children: [_jsx(ChakraSwitch.HiddenInput, { ref: ref, ...inputProps }), _jsxs(ChakraSwitch.Control, { children: [_jsx(ChakraSwitch.Thumb, { children: thumbLabel && (_jsx(ChakraSwitch.ThumbIndicator, { fallback: thumbLabel?.off, children: thumbLabel?.on })) }), trackLabel && (_jsx(ChakraSwitch.Indicator, { fallback: trackLabel.off, children: trackLabel.on }))] }), children != null && (_jsx(ChakraSwitch.Label, { children: children }))] }));
|
|
8
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Table } from '@chakra-ui/react/table';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { useTabsContext_alias_1 as useTabsContext } from '../../_tsup-dts-rollup.js';
|
|
3
|
-
export { useTabsStyles_alias_1 as useTabsStyles } from '../../_tsup-dts-rollup.js';
|
|
4
|
-
export { useTabs } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { Tabs, useTabsContext, useTabsStyles, useTabs, } from '@chakra-ui/react/tabs';
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Tabs,
|
|
4
|
-
useTabs,
|
|
5
|
-
useTabsContext,
|
|
6
|
-
useTabsStyles
|
|
7
|
-
} from "../../chunk-5YNHX4C7.js";
|
|
8
|
-
import "../../chunk-RTMS5TJN.js";
|
|
9
|
-
export {
|
|
10
|
-
Tabs,
|
|
11
|
-
useTabs,
|
|
12
|
-
useTabsContext,
|
|
13
|
-
useTabsStyles
|
|
14
|
-
};
|
|
1
|
+
export { Tabs, useTabsContext, useTabsStyles, useTabs, } from '@chakra-ui/react/tabs';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { TagProps_alias_1 as TagProps } from '../../_tsup-dts-rollup.js';
|
|
1
|
+
export { Tag, type TagProps } from './tag.tsx';
|