@saas-ui/react 3.0.0-next.3 → 3.0.0-next.30
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/CHANGELOG.md +177 -0
- package/dist/.tsbuildinfo.json +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/colors.js +1 -8
- package/dist/components/accordion/accordion.d.ts +14 -0
- package/dist/components/accordion/accordion.js +15 -0
- package/dist/components/accordion/accordion.recipe.d.ts +75 -0
- package/dist/components/accordion/accordion.recipe.js +139 -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 +17 -0
- package/dist/components/action-bar/action-bar.recipe.d.ts +1 -0
- package/dist/components/action-bar/action-bar.recipe.js +56 -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/alert.recipe.d.ts +120 -0
- package/dist/components/alert/alert.recipe.js +149 -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/app-shell.recipe.d.ts +13 -0
- package/dist/components/app-shell/app-shell.recipe.js +41 -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 +1 -8
- package/dist/components/avatar/avatar.d.ts +17 -0
- package/dist/components/avatar/avatar.js +25 -0
- package/dist/components/avatar/avatar.recipe.d.ts +88 -0
- package/dist/components/avatar/avatar.recipe.js +129 -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/badge.recipe.d.ts +48 -0
- package/dist/components/badge/badge.recipe.js +66 -0
- 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 +9 -0
- package/dist/components/blockquote/blockquote.js +7 -0
- package/dist/components/blockquote/blockquote.recipe.d.ts +52 -0
- package/dist/components/blockquote/blockquote.recipe.js +77 -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/breadcrumb.recipe.d.ts +46 -0
- package/dist/components/breadcrumb/breadcrumb.recipe.js +90 -0
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/breadcrumb/index.js +1 -8
- package/dist/components/button/button.recipe.d.ts +141 -0
- package/dist/components/button/button.recipe.js +185 -0
- 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/card.recipe.d.ts +78 -0
- package/dist/components/card/card.recipe.js +129 -0
- 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 +7 -0
- package/dist/components/checkbox/checkbox.recipe.d.ts +80 -0
- package/dist/components/checkbox/checkbox.recipe.js +64 -0
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/index.js +1 -8
- package/dist/components/checkbox-card/checkbox-card.d.ts +12 -0
- package/dist/components/checkbox-card/checkbox-card.js +10 -0
- package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +188 -0
- package/dist/components/checkbox-card/checkbox-card.recipe.js +202 -0
- package/dist/components/checkbox-card/index.d.ts +1 -2
- package/dist/components/checkbox-card/index.js +1 -8
- package/dist/components/checkmark/checkmark.recipe.d.ts +54 -0
- package/dist/components/checkmark/checkmark.recipe.js +80 -0
- package/dist/components/checkmark/index.d.ts +1 -2
- package/dist/components/checkmark/index.js +1 -8
- 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 +29 -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 +7 -0
- package/dist/components/close-button/index.d.ts +2 -2
- package/dist/components/close-button/index.js +1 -12
- package/dist/components/code/code.recipe.d.ts +48 -0
- package/dist/components/code/code.recipe.js +14 -0
- package/dist/components/code/index.d.ts +1 -2
- package/dist/components/code/index.js +1 -8
- package/dist/components/collapsible/collapsible.recipe.d.ts +1 -0
- package/dist/components/collapsible/collapsible.recipe.js +19 -0
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -8
- 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/command/command.d.ts +14 -0
- package/dist/components/command/command.js +25 -0
- package/dist/components/command/command.recipe.d.ts +15 -0
- package/dist/components/command/command.recipe.js +34 -0
- package/dist/components/command/index.d.ts +1 -1
- package/dist/components/command/index.js +1 -9
- package/dist/components/container/container.recipe.d.ts +14 -0
- package/dist/components/container/container.recipe.js +25 -0
- package/dist/components/container/index.d.ts +1 -2
- package/dist/components/container/index.js +1 -8
- package/dist/components/data-list/data-list.recipe.d.ts +55 -0
- package/dist/components/data-list/data-list.recipe.js +78 -0
- 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 +23 -0
- package/dist/components/dialog/dialog.recipe.d.ts +166 -0
- package/dist/components/dialog/dialog.recipe.js +250 -0
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -13
- package/dist/components/drawer/drawer.d.ts +20 -0
- package/dist/components/drawer/drawer.js +24 -0
- package/dist/components/drawer/drawer.recipe.d.ts +113 -0
- package/dist/components/drawer/drawer.recipe.js +202 -0
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +1 -13
- package/dist/components/editable/editable.recipe.d.ts +37 -0
- package/dist/components/editable/editable.recipe.js +83 -0
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/editable/index.js +1 -8
- package/dist/components/empty-state/empty-state.d.ts +7 -0
- package/dist/components/empty-state/empty-state.js +11 -0
- package/dist/components/empty-state/empty-state.recipe.d.ts +82 -0
- package/dist/components/empty-state/empty-state.recipe.js +130 -0
- package/dist/components/empty-state/index.d.ts +2 -2
- package/dist/components/empty-state/index.js +1 -8
- package/dist/components/env/index.d.ts +1 -5
- package/dist/components/env/index.js +1 -10
- package/dist/components/field/field.recipe.d.ts +29 -0
- package/dist/components/field/field.recipe.js +74 -0
- package/dist/components/field/index.d.ts +1 -3
- package/dist/components/field/index.js +1 -12
- package/dist/components/fieldset/fieldset.recipe.d.ts +37 -0
- package/dist/components/fieldset/fieldset.recipe.js +59 -0
- 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/file-upload.recipe.d.ts +1 -0
- package/dist/components/file-upload/file-upload.recipe.js +90 -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 +7 -0
- package/dist/components/grid-list/grid-list.recipe.d.ts +60 -0
- package/dist/components/grid-list/grid-list.recipe.js +131 -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/heading.recipe.d.ts +37 -0
- package/dist/components/heading/heading.recipe.js +26 -0
- 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 +13 -0
- package/dist/components/hover-card/hover-card.recipe.d.ts +28 -0
- package/dist/components/hover-card/hover-card.recipe.js +70 -0
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +1 -8
- package/dist/components/icon/icon.recipe.d.ts +25 -0
- package/dist/components/icon/icon.recipe.js +27 -0
- 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/icon-badge.recipe.d.ts +43 -0
- package/dist/components/icon-badge/icon-badge.recipe.js +57 -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 +6 -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 +18 -0
- package/dist/components/icons/icons.js +74 -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 +9 -0
- package/dist/components/input/index.d.ts +2 -9
- package/dist/components/input/index.js +1 -16
- package/dist/components/input/input-addon.recipe.d.ts +56 -0
- package/dist/components/input/input-addon.recipe.js +36 -0
- package/dist/components/input/input.recipe.d.ts +66 -0
- package/dist/components/input/input.recipe.js +93 -0
- package/dist/components/kbd/index.d.ts +1 -2
- package/dist/components/kbd/index.js +1 -8
- package/dist/components/kbd/kbd.recipe.d.ts +36 -0
- package/dist/components/kbd/kbd.recipe.js +56 -0
- 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 +15 -0
- package/dist/components/link/link.recipe.d.ts +18 -0
- package/dist/components/link/link.recipe.js +34 -0
- package/dist/components/list/index.d.ts +1 -1
- package/dist/components/list/index.js +1 -8
- package/dist/components/list/list.recipe.d.ts +38 -0
- package/dist/components/list/list.recipe.js +62 -0
- 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 +16 -0
- package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +26 -0
- package/dist/components/loading-overlay/loading-overlay.recipe.js +51 -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/mark/mark.recipe.d.ts +16 -0
- package/dist/components/mark/mark.recipe.js +25 -0
- 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/menu/menu.recipe.d.ts +57 -0
- package/dist/components/menu/menu.recipe.js +132 -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/native-select/native-select.recipe.d.ts +90 -0
- package/dist/components/native-select/native-select.recipe.js +134 -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 +14 -0
- package/dist/components/navbar/navbar.js +17 -0
- package/dist/components/navbar/navbar.recipe.d.ts +34 -0
- package/dist/components/navbar/navbar.recipe.js +105 -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 +8 -0
- package/dist/components/number-input/number-input.recipe.d.ts +144 -0
- package/dist/components/number-input/number-input.recipe.js +111 -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/page/page.recipe.d.ts +62 -0
- package/dist/components/page/page.recipe.js +100 -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 +59 -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 +4 -7
- package/dist/components/persona/index.js +2 -13
- package/dist/components/persona/persona-primitive.d.ts +77 -0
- package/dist/components/persona/persona-primitive.js +58 -0
- package/dist/components/persona/persona.context.d.ts +1 -0
- package/dist/components/persona/persona.context.js +4 -0
- package/dist/components/persona/persona.d.ts +63 -0
- package/dist/components/persona/persona.js +18 -0
- package/dist/components/persona/persona.recipe.d.ts +104 -0
- package/dist/components/persona/persona.recipe.js +106 -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 +8 -0
- package/dist/components/pin-input/pin-input.recipe.d.ts +236 -0
- package/dist/components/pin-input/pin-input.recipe.js +32 -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 +23 -0
- package/dist/components/popover/popover.recipe.d.ts +24 -0
- package/dist/components/popover/popover.recipe.js +85 -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/progress.recipe.d.ts +82 -0
- package/dist/components/progress/progress.recipe.js +121 -0
- package/dist/components/progress-circle/index.d.ts +1 -1
- package/dist/components/progress-circle/index.js +1 -8
- package/dist/components/progress-circle/progress-circle.recipe.d.ts +49 -0
- package/dist/components/progress-circle/progress-circle.recipe.js +91 -0
- package/dist/components/qr-code/index.d.ts +2 -1
- package/dist/components/qr-code/index.js +1 -8
- 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 +8 -0
- package/dist/components/radio/radiomark.recipe.d.ts +56 -0
- package/dist/components/radio/radiomark.recipe.js +94 -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 +13 -0
- package/dist/components/radio-card/radio-card.recipe.d.ts +191 -0
- package/dist/components/radio-card/radio-card.recipe.js +209 -0
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -8
- package/dist/components/radio-group/radio-group.recipe.d.ts +77 -0
- package/dist/components/radio-group/radio-group.recipe.js +61 -0
- 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/rating-group/rating-group.recipe.d.ts +24 -0
- package/dist/components/rating-group/rating-group.recipe.js +83 -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 +35 -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/section/section.recipe.d.ts +27 -0
- package/dist/components/section/section.recipe.js +63 -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/segment-group.recipe.d.ts +48 -0
- package/dist/components/segmented-control/segment-group.recipe.js +127 -0
- 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 +25 -0
- package/dist/components/select/select.js +43 -0
- package/dist/components/select/select.recipe.d.ts +155 -0
- package/dist/components/select/select.recipe.js +285 -0
- package/dist/components/separator/index.d.ts +2 -2
- package/dist/components/separator/index.js +1 -8
- package/dist/components/separator/separator.recipe.d.ts +37 -0
- package/dist/components/separator/separator.recipe.js +50 -0
- 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-nav-item.recipe.d.ts +62 -0
- package/dist/components/sidebar/sidebar-nav-item.recipe.js +110 -0
- 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 +78 -0
- package/dist/components/sidebar/sidebar.js +90 -0
- package/dist/components/sidebar/sidebar.recipe.d.ts +89 -0
- package/dist/components/sidebar/sidebar.recipe.js +236 -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 +14 -0
- package/dist/components/skeleton/skeleton.recipe.d.ts +40 -0
- package/dist/components/skeleton/skeleton.recipe.js +49 -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/skip-nav-link/skip-nav-link.recipe.d.ts +1 -0
- package/dist/components/skip-nav-link/skip-nav-link.recipe.js +31 -0
- 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 +18 -0
- package/dist/components/slider/slider.recipe.d.ts +101 -0
- package/dist/components/slider/slider.recipe.js +175 -0
- package/dist/components/spacer/index.d.ts +1 -2
- package/dist/components/spacer/index.js +1 -8
- 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 +10 -0
- package/dist/components/spinner/spinner.recipe.d.ts +22 -0
- package/dist/components/spinner/spinner.recipe.js +31 -0
- package/dist/components/stack/index.d.ts +1 -2
- package/dist/components/stack/index.js +1 -8
- 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 +21 -0
- package/dist/components/stat/stat.recipe.d.ts +19 -0
- package/dist/components/stat/stat.recipe.js +76 -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 +11 -0
- package/dist/components/status/status.recipe.d.ts +19 -0
- package/dist/components/status/status.recipe.js +44 -0
- package/dist/components/steps/index.d.ts +1 -1
- package/dist/components/steps/index.js +1 -10
- package/dist/components/steps/steps.d.ts +24 -0
- package/dist/components/steps/steps.js +30 -0
- package/dist/components/steps/steps.recipe.d.ts +142 -0
- package/dist/components/steps/steps.recipe.js +213 -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 +7 -0
- package/dist/components/switch/switch.recipe.d.ts +77 -0
- package/dist/components/switch/switch.recipe.js +156 -0
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +1 -8
- package/dist/components/table/table.recipe.d.ts +121 -0
- package/dist/components/table/table.recipe.js +161 -0
- package/dist/components/tabs/index.d.ts +1 -4
- package/dist/components/tabs/index.js +1 -14
- package/dist/components/tabs/tabs.recipe.d.ts +263 -0
- package/dist/components/tabs/tabs.recipe.js +332 -0
- 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 +7 -0
- package/dist/components/tag/tag.recipe.d.ts +95 -0
- package/dist/components/tag/tag.recipe.js +154 -0
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/index.js +1 -8
- package/dist/components/textarea/textarea.recipe.d.ts +65 -0
- package/dist/components/textarea/textarea.recipe.js +90 -0
- package/dist/components/timeline/index.d.ts +1 -1
- package/dist/components/timeline/index.js +1 -8
- package/dist/components/timeline/timeline.recipe.d.ts +62 -0
- package/dist/components/timeline/timeline.recipe.js +134 -0
- package/dist/components/toaster/index.d.ts +2 -3
- package/dist/components/toaster/index.js +1 -16
- package/dist/components/toaster/toast.recipe.d.ts +1 -0
- package/dist/components/toaster/toast.recipe.js +90 -0
- package/dist/components/toaster/toaster.d.ts +6 -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 +8 -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 +10 -0
- package/dist/components/tooltip/tooltip.recipe.d.ts +10 -0
- package/dist/components/tooltip/tooltip.recipe.js +52 -0
- package/dist/components/typography/index.d.ts +1 -8
- package/dist/components/typography/index.js +1 -14
- 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 +118 -209
- package/dist/index.js +113 -502
- package/dist/preset.d.ts +3 -3
- package/dist/preset.js +10 -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 +12 -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 +90 -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/theme/animation-styles.d.ts +1 -0
- package/dist/theme/animation-styles.js +49 -0
- package/dist/theme/breakpoints.d.ts +10 -0
- package/dist/theme/breakpoints.js +8 -0
- package/dist/theme/conditions.d.ts +18 -0
- package/dist/theme/conditions.js +19 -0
- package/dist/theme/fluid-font-sizes.d.ts +0 -0
- package/dist/theme/fluid-font-sizes.js +61 -0
- package/dist/theme/global-css.d.ts +1 -0
- package/dist/theme/global-css.js +61 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +72 -0
- package/dist/theme/layer-styles.d.ts +1 -0
- package/dist/theme/layer-styles.js +133 -0
- package/dist/theme/recipes.d.ts +838 -0
- package/dist/theme/recipes.js +44 -0
- package/dist/theme/semantic-tokens/colors.d.ts +1292 -0
- package/dist/theme/semantic-tokens/colors.js +684 -0
- package/dist/theme/semantic-tokens/radii.d.ts +44 -0
- package/dist/theme/semantic-tokens/radii.js +39 -0
- package/dist/theme/semantic-tokens/shadows.d.ts +50 -0
- package/dist/theme/semantic-tokens/shadows.js +51 -0
- package/dist/theme/slot-recipes.d.ts +3840 -0
- package/dist/theme/slot-recipes.js +106 -0
- package/dist/theme/text-styles.d.ts +1 -0
- package/dist/theme/text-styles.js +38 -0
- package/dist/theme/tokens/animations.d.ts +14 -0
- package/dist/theme/tokens/animations.js +7 -0
- package/dist/theme/tokens/aspect-ratios.d.ts +20 -0
- package/dist/theme/tokens/aspect-ratios.js +9 -0
- package/dist/theme/tokens/blurs.d.ts +26 -0
- package/dist/theme/tokens/blurs.js +11 -0
- package/dist/theme/tokens/borders.d.ts +17 -0
- package/dist/theme/tokens/borders.js +8 -0
- package/dist/theme/tokens/colors.d.ts +854 -0
- package/dist/theme/tokens/colors.js +319 -0
- package/dist/theme/tokens/cursor.d.ts +26 -0
- package/dist/theme/tokens/cursor.js +11 -0
- package/dist/theme/tokens/durations.d.ts +23 -0
- package/dist/theme/tokens/durations.js +10 -0
- package/dist/theme/tokens/easings.d.ts +20 -0
- package/dist/theme/tokens/easings.js +9 -0
- package/dist/theme/tokens/font-sizes.d.ts +44 -0
- package/dist/theme/tokens/font-sizes.js +18 -0
- package/dist/theme/tokens/font-weights.d.ts +29 -0
- package/dist/theme/tokens/font-weights.js +12 -0
- package/dist/theme/tokens/fonts.d.ts +11 -0
- package/dist/theme/tokens/fonts.js +13 -0
- package/dist/theme/tokens/keyframes.d.ts +1 -0
- package/dist/theme/tokens/keyframes.js +157 -0
- package/dist/theme/tokens/letter-spacing.d.ts +17 -0
- package/dist/theme/tokens/letter-spacing.js +8 -0
- package/dist/theme/tokens/line-heights.d.ts +41 -0
- package/dist/theme/tokens/line-heights.js +17 -0
- package/dist/theme/tokens/radius.d.ts +32 -0
- package/dist/theme/tokens/radius.js +15 -0
- package/dist/theme/tokens/sizes.d.ts +257 -0
- package/dist/theme/tokens/sizes.js +66 -0
- package/dist/theme/tokens/spacing.d.ts +101 -0
- package/dist/theme/tokens/spacing.js +37 -0
- package/dist/theme/tokens/z-indices.d.ts +53 -0
- package/dist/theme/tokens/z-indices.js +32 -0
- package/dist/theme/utilities.d.ts +10 -0
- package/dist/theme/utilities.js +49 -0
- package/dist/theme/utils.d.ts +19 -0
- package/dist/theme/utils.js +34 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.js +1 -0
- package/package.json +9 -19
- package/dist/_tsup-dts-rollup.d.cts +0 -15086
- package/dist/_tsup-dts-rollup.d.ts +0 -15086
- 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-CBX6MYVA.js +0 -10
- 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-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/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 -31
- package/dist/components/stack/index.d.cts +0 -2
- 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/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 -12193
- package/dist/index.d.cts +0 -209
- package/dist/preset.cjs +0 -9233
- package/dist/preset.d.cts +0 -3
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
1
|
+
export { SearchInput } from './search-input.tsx';
|
2
|
+
export type { SearchInputProps } from './search-input.tsx';
|
@@ -1,10 +1 @@
|
|
1
|
-
|
2
|
-
import {
|
3
|
-
SearchInput
|
4
|
-
} from "../../chunk-HJX66GFT.js";
|
5
|
-
import "../../chunk-KTLWEUNW.js";
|
6
|
-
import "../../chunk-OME35FUG.js";
|
7
|
-
import "../../chunk-RTMS5TJN.js";
|
8
|
-
export {
|
9
|
-
SearchInput
|
10
|
-
};
|
1
|
+
export { SearchInput } from "./search-input.js";
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { InputProps } from '@chakra-ui/react';
|
3
|
+
export interface SearchInputProps extends InputProps {
|
4
|
+
value?: string;
|
5
|
+
defaultValue?: string;
|
6
|
+
placeholder?: string;
|
7
|
+
icon?: React.ReactElement;
|
8
|
+
resetIcon?: React.ReactElement;
|
9
|
+
endElement?: React.ReactElement;
|
10
|
+
onReset?: () => void;
|
11
|
+
}
|
12
|
+
export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React, { forwardRef } from 'react';
|
3
|
+
import { Group, IconButton, Input, InputElement, mergeRefs, useControllableState, } from '@chakra-ui/react';
|
4
|
+
import { callAll } from '@saas-ui/core/utils';
|
5
|
+
import { CloseIcon, SearchIcon } from "../icons/index.js";
|
6
|
+
export const SearchInput = forwardRef((props, ref) => {
|
7
|
+
const { placeholder = 'Search', value: valueProp, defaultValue: defaultValueProp, size, variant, width = 'full', icon = _jsx(SearchIcon, {}), resetIcon, endElement: endElementProp, onChange: onChangeProp, onReset: onResetProp, onKeyDown: onKeyDownProp, disabled, ...inputProps } = props;
|
8
|
+
const inputRef = React.useRef(null);
|
9
|
+
const [value, setValue] = useControllableState({
|
10
|
+
value: valueProp,
|
11
|
+
defaultValue: defaultValueProp,
|
12
|
+
});
|
13
|
+
const onChange = React.useCallback((e) => {
|
14
|
+
setValue(e.target.value);
|
15
|
+
}, [setValue]);
|
16
|
+
const onKeyDown = React.useCallback((event) => {
|
17
|
+
if (event.key === 'Escape') {
|
18
|
+
setValue('');
|
19
|
+
onReset();
|
20
|
+
}
|
21
|
+
}, [onResetProp, setValue]);
|
22
|
+
const onReset = () => {
|
23
|
+
setValue('');
|
24
|
+
onResetProp?.();
|
25
|
+
inputRef.current?.focus();
|
26
|
+
};
|
27
|
+
const showReset = value && !props.disabled;
|
28
|
+
const endElement = showReset ? (_jsx(SearchInputResetButton, { size: size, children: resetIcon })) : (endElementProp);
|
29
|
+
return (_jsxs(Group, { width: width, children: [_jsx(InputElement, { placement: "start", px: "0", aspectRatio: "9/10", fontSize: size, children: icon }), _jsx(Input, { type: "text", placeholder: placeholder, variant: variant, size: size, value: value, disabled: disabled, ref: mergeRefs(ref, inputRef), onChange: callAll(onChange, onChangeProp), onKeyDown: callAll(onKeyDown, onKeyDownProp), ps: "calc(var(--input-height) - var(--input-height) / 10)", pe: "calc(var(--input-height) - var(--input-height) / 10)", ...inputProps }), _jsx(InputElement, { placement: "end", children: endElement })] }));
|
30
|
+
});
|
31
|
+
const SearchInputResetButton = forwardRef((props, ref) => {
|
32
|
+
const { children = _jsx(CloseIcon, {}), ...rest } = props;
|
33
|
+
return (_jsx(IconButton, { ref: ref, variant: "ghost", "aria-label": "Reset search", me: "-2", aspectRatio: "square", height: "calc(100% - {spacing.2})", ...rest, children: children }));
|
34
|
+
});
|
35
|
+
SearchInput.displayName = 'SearchInput';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const withProvider: <T, P>(Component: React.ElementType<any>, slot: string, options?: import("@chakra-ui/react").WithProviderOptions<P> | undefined) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<P> & import("react").RefAttributes<T>>, withContext: <T, P_1>(Component: React.ElementType<any>, slot?: string | undefined, options?: import("@chakra-ui/react").WithContextOptions<P_1> | undefined) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<P_1> & import("react").RefAttributes<T>>, useSectionStyles: () => Record<string, import("@chakra-ui/react").SystemStyleObject>, useClassNames: () => Record<string, string>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { type HTMLChakraProps, type SlotRecipeProps } from '@chakra-ui/react';
|
3
|
+
interface SectionRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiSection'> {
|
4
|
+
}
|
5
|
+
declare const SectionRoot: React.ForwardRefExoticComponent<SectionRootProps & React.RefAttributes<HTMLDivElement>>;
|
6
|
+
interface SectionBodyProps extends HTMLChakraProps<'div'> {
|
7
|
+
}
|
8
|
+
declare const SectionBody: React.ForwardRefExoticComponent<SectionBodyProps & React.RefAttributes<HTMLDivElement>>;
|
9
|
+
interface SectionHeaderProps extends Omit<HTMLChakraProps<'div'>, 'title'> {
|
10
|
+
title?: React.ReactNode;
|
11
|
+
description?: React.ReactNode;
|
12
|
+
}
|
13
|
+
declare const SectionHeader: React.ForwardRefExoticComponent<SectionHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const SectionTitle: React.ForwardRefExoticComponent<Omit<import("@chakra-ui/react").PatchHtmlProps<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">>, "zIndex" | "opacity" | "cursor" | "page" | "container" | "_hover" | "_active" | "_focus" | "_focusWithin" | "_focusVisible" | "_disabled" | "_visited" | "_target" | "_readOnly" | "_readWrite" | "_empty" | "_checked" | "_enabled" | "_expanded" | "_highlighted" | "_complete" | "_incomplete" | "_dragging" | "_before" | "_after" | "_firstLetter" | "_firstLine" | "_marker" | "_selection" | "_file" | "_backdrop" | "_first" | "_last" | "_notFirst" | "_notLast" | "_only" | "_even" | "_odd" | "_peerFocus" | "_peerHover" | "_peerActive" | "_peerFocusWithin" | "_peerFocusVisible" | "_peerDisabled" | "_peerChecked" | "_peerInvalid" | "_peerExpanded" | "_peerPlaceholderShown" | "_groupFocus" | "_groupHover" | "_groupActive" | "_groupFocusWithin" | "_groupFocusVisible" | "_groupDisabled" | "_groupChecked" | "_groupExpanded" | "_groupInvalid" | "_indeterminate" | "_required" | "_valid" | "_invalid" | "_autofill" | "_inRange" | "_outOfRange" | "_placeholder" | "_placeholderShown" | "_pressed" | "_selected" | "_grabbed" | "_underValue" | "_overValue" | "_atValue" | "_default" | "_optional" | "_open" | "_closed" | "_fullscreen" | "_loading" | "_hidden" | "_current" | "_currentPage" | "_currentStep" | "_today" | "_unavailable" | "_rangeStart" | "_rangeEnd" | "_now" | "_topmost" | "_motionReduce" | "_motionSafe" | "_print" | "_landscape" | "_portrait" | "_dark" | "_light" | "_osDark" | "_osLight" | "_highContrast" | "_lessContrast" | "_moreContrast" | "_ltr" | "_rtl" | "_scrollbar" | "_scrollbarThumb" | "_scrollbarTrack" | "_horizontal" | "_vertical" | "_icon" | "_starting" | "sm" | "smOnly" | "smDown" | "md" | "mdOnly" | "mdDown" | "lg" | "lgOnly" | "lgDown" | "xl" | "xlOnly" | "xlDown" | "2xl" | "2xlOnly" | "2xlDown" | "smToMd" | "smToLg" | "smToXl" | "smTo2xl" | "mdToLg" | "mdToXl" | "mdTo2xl" | "lgToXl" | "lgTo2xl" | "xlTo2xl" | "base" | "animation" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "animationRange" | "animationRangeStart" | "animationRangeEnd" | "animationTimeline" | "transformOrigin" | "WebkitAppearance" | "WebkitBorderBefore" | "WebkitBorderBeforeColor" | "WebkitBorderBeforeStyle" | "WebkitBorderBeforeWidth" | "WebkitBoxReflect" | "WebkitLineClamp" | "WebkitMask" | "WebkitMaskAttachment" | "WebkitMaskClip" | "WebkitMaskComposite" | "WebkitMaskImage" | "WebkitMaskOrigin" | "WebkitMaskPosition" | "WebkitMaskPositionX" | "WebkitMaskPositionY" | "WebkitMaskRepeat" | "WebkitMaskRepeatX" | "WebkitMaskRepeatY" | "WebkitMaskSize" | "WebkitOverflowScrolling" | "WebkitTapHighlightColor" | "WebkitTextFillColor" | "WebkitTextStroke" | "WebkitTextStrokeColor" | "WebkitTextStrokeWidth" | "WebkitTouchCallout" | "WebkitUserModify" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignTracks" | "all" | "appearance" | "aspectRatio" | "azimuth" | "backdropFilter" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockStyle" | "borderBlockWidth" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineEnd" | "borderInlineColor" | "borderInlineStyle" | "borderInlineWidth" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxAlign" | "boxDecorationBreak" | "boxDirection" | "boxFlex" | "boxFlexGroup" | "boxLines" | "boxOrdinalGroup" | "boxOrient" | "boxPack" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caret" | "caretColor" | "caretShape" | "clear" | "clip" | "clipPath" | "color" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "containIntrinsicSize" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicWidth" | "containerName" | "containerType" | "content" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "direction" | "display" | "emptyCells" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontVariationSettings" | "fontSize" | "fontSizeAdjust" | "fontSmooth" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontSynthesisPosition" | "fontSynthesisSmallCaps" | "fontSynthesisStyle" | "fontSynthesisWeight" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontWeight" | "forcedColorAdjust" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hangingPunctuation" | "height" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "imageResolution" | "imeMode" | "initialLetter" | "initialLetterAlign" | "inlineSize" | "inputSecurity" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "justifyTracks" | "left" | "letterSpacing" | "lineBreak" | "lineClamp" | "lineHeight" | "lineHeightStep" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marginTrim" | "mask" | "maskBorder" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "masonryAutoFlow" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxLines" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offset" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowBlock" | "overflowClipBox" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overlay" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "printColorAdjust" | "quotes" | "resize" | "right" | "rotate" | "rowGap" | "rubyAlign" | "rubyMerge" | "rubyPosition" | "scale" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockStart" | "scrollMarginBlockEnd" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineStart" | "scrollMarginInlineEnd" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockStart" | "scrollPaddingBlockEnd" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineStart" | "scrollPaddingInlineEnd" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapCoordinate" | "scrollSnapDestination" | "scrollSnapPointsX" | "scrollSnapPointsY" | "scrollSnapStop" | "scrollSnapType" | "scrollSnapTypeX" | "scrollSnapTypeY" | "scrollTimeline" | "scrollTimelineAxis" | "scrollTimelineName" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkip" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textSizeAdjust" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "textWrap" | "timelineScope" | "top" | "touchAction" | "transform" | "transformBox" | "transformStyle" | "transition" | "transitionBehavior" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "verticalAlign" | "viewTimeline" | "viewTimelineAxis" | "viewTimelineInset" | "viewTimelineName" | "viewTransitionName" | "visibility" | "whiteSpace" | "whiteSpaceCollapse" | "widows" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zoom" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "bg" | "bgColor" | "bgSize" | "bgPos" | "bgRepeat" | "bgAttachment" | "bgClip" | "bgGradient" | "bgImg" | "bgImage" | "borderStart" | "borderEnd" | "borderX" | "borderY" | "borderStartColor" | "borderEndColor" | "borderStartStyle" | "borderEndStyle" | "rounded" | "roundedTopLeft" | "roundedStartStart" | "borderTopStartRadius" | "roundedEndStart" | "borderBottomStartRadius" | "roundedTopRight" | "roundedStartEnd" | "borderTopEndRadius" | "roundedEndEnd" | "borderBottomEndRadius" | "roundedBottomLeft" | "roundedBottomRight" | "roundedStart" | "borderStartRadius" | "roundedEnd" | "borderEndRadius" | "roundedTop" | "roundedBottom" | "roundedLeft" | "roundedRight" | "borderXWidth" | "borderStartWidth" | "borderEndWidth" | "borderYWidth" | "shadow" | "shadowColor" | "blendMode" | "bgBlendMode" | "gapY" | "gapX" | "flexDir" | "w" | "h" | "minW" | "minH" | "maxW" | "maxH" | "overscroll" | "overscrollX" | "overscrollY" | "scrollPaddingX" | "scrollPaddingY" | "listStylePos" | "listStyleImg" | "pos" | "insetX" | "insetY" | "insetStart" | "insetEnd" | "m" | "mt" | "mr" | "mb" | "ml" | "ms" | "marginStart" | "me" | "marginEnd" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "ps" | "paddingStart" | "pe" | "paddingEnd" | "px" | "paddingX" | "py" | "paddingY" | "textDecor" | "backgroundGradient" | "gradientFrom" | "gradientTo" | "gradientVia" | "borderInlineStartRadius" | "borderInlineEndRadius" | "borderTopRadius" | "borderBottomRadius" | "borderLeftRadius" | "borderRightRadius" | "divideX" | "divideY" | "divideColor" | "divideStyle" | "boxShadowColor" | "blur" | "brightness" | "contrast" | "grayscale" | "hueRotate" | "invert" | "saturate" | "sepia" | "dropShadow" | "backdropBlur" | "backdropBrightness" | "backdropContrast" | "backdropGrayscale" | "backdropHueRotate" | "backdropInvert" | "backdropOpacity" | "backdropSaturate" | "backdropSepia" | "focusRing" | "focusVisibleRing" | "focusRingColor" | "focusRingOffset" | "focusRingWidth" | "focusRingStyle" | "boxSize" | "hideFrom" | "hideBelow" | "scrollbar" | "scrollMarginX" | "scrollMarginY" | "scrollSnapStrictness" | "scrollSnapMargin" | "scrollSnapMarginTop" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "ring" | "ringColor" | "ringOffset" | "ringOffsetColor" | "ringInset" | "skewX" | "skewY" | "scaleX" | "scaleY" | "spaceXReverse" | "spaceX" | "spaceYReverse" | "spaceY" | "rotateX" | "rotateY" | "translateX" | "translateY" | "truncate" | "srOnly" | "debug" | "colorPalette" | "textStyle" | "layerStyle" | "animationStyle" | "css" | keyof import("@chakra-ui/react").PolymorphicProps> & Omit<import("@chakra-ui/react").JsxStyleProps, never> & import("@chakra-ui/react").PolymorphicProps & React.RefAttributes<HTMLHeadingElement>>;
|
15
|
+
declare const SectionDescription: React.ForwardRefExoticComponent<Omit<import("@chakra-ui/react").PatchHtmlProps<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">>, "zIndex" | "opacity" | "cursor" | "page" | "container" | "_hover" | "_active" | "_focus" | "_focusWithin" | "_focusVisible" | "_disabled" | "_visited" | "_target" | "_readOnly" | "_readWrite" | "_empty" | "_checked" | "_enabled" | "_expanded" | "_highlighted" | "_complete" | "_incomplete" | "_dragging" | "_before" | "_after" | "_firstLetter" | "_firstLine" | "_marker" | "_selection" | "_file" | "_backdrop" | "_first" | "_last" | "_notFirst" | "_notLast" | "_only" | "_even" | "_odd" | "_peerFocus" | "_peerHover" | "_peerActive" | "_peerFocusWithin" | "_peerFocusVisible" | "_peerDisabled" | "_peerChecked" | "_peerInvalid" | "_peerExpanded" | "_peerPlaceholderShown" | "_groupFocus" | "_groupHover" | "_groupActive" | "_groupFocusWithin" | "_groupFocusVisible" | "_groupDisabled" | "_groupChecked" | "_groupExpanded" | "_groupInvalid" | "_indeterminate" | "_required" | "_valid" | "_invalid" | "_autofill" | "_inRange" | "_outOfRange" | "_placeholder" | "_placeholderShown" | "_pressed" | "_selected" | "_grabbed" | "_underValue" | "_overValue" | "_atValue" | "_default" | "_optional" | "_open" | "_closed" | "_fullscreen" | "_loading" | "_hidden" | "_current" | "_currentPage" | "_currentStep" | "_today" | "_unavailable" | "_rangeStart" | "_rangeEnd" | "_now" | "_topmost" | "_motionReduce" | "_motionSafe" | "_print" | "_landscape" | "_portrait" | "_dark" | "_light" | "_osDark" | "_osLight" | "_highContrast" | "_lessContrast" | "_moreContrast" | "_ltr" | "_rtl" | "_scrollbar" | "_scrollbarThumb" | "_scrollbarTrack" | "_horizontal" | "_vertical" | "_icon" | "_starting" | "sm" | "smOnly" | "smDown" | "md" | "mdOnly" | "mdDown" | "lg" | "lgOnly" | "lgDown" | "xl" | "xlOnly" | "xlDown" | "2xl" | "2xlOnly" | "2xlDown" | "smToMd" | "smToLg" | "smToXl" | "smTo2xl" | "mdToLg" | "mdToXl" | "mdTo2xl" | "lgToXl" | "lgTo2xl" | "xlTo2xl" | "base" | "animation" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "animationRange" | "animationRangeStart" | "animationRangeEnd" | "animationTimeline" | "transformOrigin" | "WebkitAppearance" | "WebkitBorderBefore" | "WebkitBorderBeforeColor" | "WebkitBorderBeforeStyle" | "WebkitBorderBeforeWidth" | "WebkitBoxReflect" | "WebkitLineClamp" | "WebkitMask" | "WebkitMaskAttachment" | "WebkitMaskClip" | "WebkitMaskComposite" | "WebkitMaskImage" | "WebkitMaskOrigin" | "WebkitMaskPosition" | "WebkitMaskPositionX" | "WebkitMaskPositionY" | "WebkitMaskRepeat" | "WebkitMaskRepeatX" | "WebkitMaskRepeatY" | "WebkitMaskSize" | "WebkitOverflowScrolling" | "WebkitTapHighlightColor" | "WebkitTextFillColor" | "WebkitTextStroke" | "WebkitTextStrokeColor" | "WebkitTextStrokeWidth" | "WebkitTouchCallout" | "WebkitUserModify" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignTracks" | "all" | "appearance" | "aspectRatio" | "azimuth" | "backdropFilter" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockStyle" | "borderBlockWidth" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineEnd" | "borderInlineColor" | "borderInlineStyle" | "borderInlineWidth" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxAlign" | "boxDecorationBreak" | "boxDirection" | "boxFlex" | "boxFlexGroup" | "boxLines" | "boxOrdinalGroup" | "boxOrient" | "boxPack" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caret" | "caretColor" | "caretShape" | "clear" | "clip" | "clipPath" | "color" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "containIntrinsicSize" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicWidth" | "containerName" | "containerType" | "content" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "direction" | "display" | "emptyCells" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontVariationSettings" | "fontSize" | "fontSizeAdjust" | "fontSmooth" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontSynthesisPosition" | "fontSynthesisSmallCaps" | "fontSynthesisStyle" | "fontSynthesisWeight" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontWeight" | "forcedColorAdjust" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hangingPunctuation" | "height" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "imageResolution" | "imeMode" | "initialLetter" | "initialLetterAlign" | "inlineSize" | "inputSecurity" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "justifyTracks" | "left" | "letterSpacing" | "lineBreak" | "lineClamp" | "lineHeight" | "lineHeightStep" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marginTrim" | "mask" | "maskBorder" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "masonryAutoFlow" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxLines" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offset" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowBlock" | "overflowClipBox" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overlay" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "printColorAdjust" | "quotes" | "resize" | "right" | "rotate" | "rowGap" | "rubyAlign" | "rubyMerge" | "rubyPosition" | "scale" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockStart" | "scrollMarginBlockEnd" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineStart" | "scrollMarginInlineEnd" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockStart" | "scrollPaddingBlockEnd" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineStart" | "scrollPaddingInlineEnd" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapCoordinate" | "scrollSnapDestination" | "scrollSnapPointsX" | "scrollSnapPointsY" | "scrollSnapStop" | "scrollSnapType" | "scrollSnapTypeX" | "scrollSnapTypeY" | "scrollTimeline" | "scrollTimelineAxis" | "scrollTimelineName" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkip" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textSizeAdjust" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "textWrap" | "timelineScope" | "top" | "touchAction" | "transform" | "transformBox" | "transformStyle" | "transition" | "transitionBehavior" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "verticalAlign" | "viewTimeline" | "viewTimelineAxis" | "viewTimelineInset" | "viewTimelineName" | "viewTransitionName" | "visibility" | "whiteSpace" | "whiteSpaceCollapse" | "widows" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zoom" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "bg" | "bgColor" | "bgSize" | "bgPos" | "bgRepeat" | "bgAttachment" | "bgClip" | "bgGradient" | "bgImg" | "bgImage" | "borderStart" | "borderEnd" | "borderX" | "borderY" | "borderStartColor" | "borderEndColor" | "borderStartStyle" | "borderEndStyle" | "rounded" | "roundedTopLeft" | "roundedStartStart" | "borderTopStartRadius" | "roundedEndStart" | "borderBottomStartRadius" | "roundedTopRight" | "roundedStartEnd" | "borderTopEndRadius" | "roundedEndEnd" | "borderBottomEndRadius" | "roundedBottomLeft" | "roundedBottomRight" | "roundedStart" | "borderStartRadius" | "roundedEnd" | "borderEndRadius" | "roundedTop" | "roundedBottom" | "roundedLeft" | "roundedRight" | "borderXWidth" | "borderStartWidth" | "borderEndWidth" | "borderYWidth" | "shadow" | "shadowColor" | "blendMode" | "bgBlendMode" | "gapY" | "gapX" | "flexDir" | "w" | "h" | "minW" | "minH" | "maxW" | "maxH" | "overscroll" | "overscrollX" | "overscrollY" | "scrollPaddingX" | "scrollPaddingY" | "listStylePos" | "listStyleImg" | "pos" | "insetX" | "insetY" | "insetStart" | "insetEnd" | "m" | "mt" | "mr" | "mb" | "ml" | "ms" | "marginStart" | "me" | "marginEnd" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "ps" | "paddingStart" | "pe" | "paddingEnd" | "px" | "paddingX" | "py" | "paddingY" | "textDecor" | "backgroundGradient" | "gradientFrom" | "gradientTo" | "gradientVia" | "borderInlineStartRadius" | "borderInlineEndRadius" | "borderTopRadius" | "borderBottomRadius" | "borderLeftRadius" | "borderRightRadius" | "divideX" | "divideY" | "divideColor" | "divideStyle" | "boxShadowColor" | "blur" | "brightness" | "contrast" | "grayscale" | "hueRotate" | "invert" | "saturate" | "sepia" | "dropShadow" | "backdropBlur" | "backdropBrightness" | "backdropContrast" | "backdropGrayscale" | "backdropHueRotate" | "backdropInvert" | "backdropOpacity" | "backdropSaturate" | "backdropSepia" | "focusRing" | "focusVisibleRing" | "focusRingColor" | "focusRingOffset" | "focusRingWidth" | "focusRingStyle" | "boxSize" | "hideFrom" | "hideBelow" | "scrollbar" | "scrollMarginX" | "scrollMarginY" | "scrollSnapStrictness" | "scrollSnapMargin" | "scrollSnapMarginTop" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "ring" | "ringColor" | "ringOffset" | "ringOffsetColor" | "ringInset" | "skewX" | "skewY" | "scaleX" | "scaleY" | "spaceXReverse" | "spaceX" | "spaceYReverse" | "spaceY" | "rotateX" | "rotateY" | "translateX" | "translateY" | "truncate" | "srOnly" | "debug" | "colorPalette" | "textStyle" | "layerStyle" | "animationStyle" | "css" | keyof import("@chakra-ui/react").PolymorphicProps> & Omit<import("@chakra-ui/react").JsxStyleProps, never> & import("@chakra-ui/react").PolymorphicProps & React.RefAttributes<HTMLDivElement>>;
|
16
|
+
export { SectionRoot as Root, SectionHeader as Header, SectionTitle as Title, SectionDescription as Description, SectionBody as Body, };
|
17
|
+
export type { SectionRootProps as RootProps, SectionHeaderProps as HeaderProps, SectionBodyProps as BodyProps, };
|
@@ -0,0 +1,13 @@
|
|
1
|
+
'use client';
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
import { chakra, } from '@chakra-ui/react';
|
4
|
+
import { withContext, withProvider } from "./section.context.js";
|
5
|
+
const SectionRoot = withProvider('div', 'root');
|
6
|
+
const SectionBody = withContext('div', 'body');
|
7
|
+
const SectionHeader = withContext((props) => {
|
8
|
+
const { title, description, children, ...rest } = props;
|
9
|
+
return (_jsxs(chakra.div, { ...rest, children: [typeof title === 'string' ? (_jsx(SectionTitle, { children: title })) : (title), typeof description === 'string' ? (_jsx(SectionDescription, { children: description })) : (description), children] }));
|
10
|
+
}, 'header');
|
11
|
+
const SectionTitle = withContext('h3', 'title');
|
12
|
+
const SectionDescription = withContext('div', 'description');
|
13
|
+
export { SectionRoot as Root, SectionHeader as Header, SectionTitle as Title, SectionDescription as Description, SectionBody as Body, };
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export declare const sectionSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<string, {
|
2
|
+
variant: {
|
3
|
+
annotated: {
|
4
|
+
root: {
|
5
|
+
flexDirection: {
|
6
|
+
base: "column";
|
7
|
+
md: "row";
|
8
|
+
};
|
9
|
+
mt: number;
|
10
|
+
};
|
11
|
+
header: {
|
12
|
+
width: {
|
13
|
+
base: "full";
|
14
|
+
md: "30%";
|
15
|
+
};
|
16
|
+
mb: {
|
17
|
+
base: number;
|
18
|
+
md: number;
|
19
|
+
};
|
20
|
+
pe: {
|
21
|
+
base: number;
|
22
|
+
md: number;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
}>;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
2
|
+
const slots = ['root', 'header', 'title', 'description', 'body'];
|
3
|
+
export const sectionSlotRecipe = defineSlotRecipe({
|
4
|
+
className: 'sui-section',
|
5
|
+
slots,
|
6
|
+
base: {
|
7
|
+
root: {
|
8
|
+
display: 'flex',
|
9
|
+
flexDirection: 'column',
|
10
|
+
},
|
11
|
+
header: {
|
12
|
+
flexShrink: 0,
|
13
|
+
mb: 4,
|
14
|
+
},
|
15
|
+
title: {
|
16
|
+
textStyle: 'heading',
|
17
|
+
fontWeight: 'semibold',
|
18
|
+
lineHeight: '110%',
|
19
|
+
letterSpacing: '-1%',
|
20
|
+
mb: 1,
|
21
|
+
},
|
22
|
+
description: {
|
23
|
+
color: 'fg.muted',
|
24
|
+
fontSize: 'md',
|
25
|
+
'& a': {
|
26
|
+
fontWeight: 'medium',
|
27
|
+
color: 'fg',
|
28
|
+
},
|
29
|
+
},
|
30
|
+
body: {
|
31
|
+
flex: 1,
|
32
|
+
minWidth: 0,
|
33
|
+
},
|
34
|
+
},
|
35
|
+
variants: {
|
36
|
+
variant: {
|
37
|
+
annotated: {
|
38
|
+
root: {
|
39
|
+
flexDirection: {
|
40
|
+
base: 'column',
|
41
|
+
md: 'row',
|
42
|
+
},
|
43
|
+
mt: 4,
|
44
|
+
},
|
45
|
+
header: {
|
46
|
+
width: {
|
47
|
+
base: 'full',
|
48
|
+
md: '30%',
|
49
|
+
},
|
50
|
+
mb: {
|
51
|
+
base: 4,
|
52
|
+
md: 0,
|
53
|
+
},
|
54
|
+
pe: {
|
55
|
+
base: 4,
|
56
|
+
md: 8,
|
57
|
+
},
|
58
|
+
},
|
59
|
+
},
|
60
|
+
},
|
61
|
+
},
|
62
|
+
defaultVariants: {},
|
63
|
+
});
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
1
|
+
export { SegmentedControl } from './segmented-control.tsx';
|
2
|
+
export type { SegmentedControlProps } from './segmented-control.tsx';
|
@@ -0,0 +1,48 @@
|
|
1
|
+
export declare const segmentGroupSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "item" | "itemText" | "itemControl", {
|
2
|
+
size: {
|
3
|
+
xs: {
|
4
|
+
root: {
|
5
|
+
'--segment-radius': "radii.control.sm";
|
6
|
+
height: "6";
|
7
|
+
};
|
8
|
+
item: {
|
9
|
+
textStyle: "xs";
|
10
|
+
px: "3";
|
11
|
+
gap: "1";
|
12
|
+
};
|
13
|
+
};
|
14
|
+
sm: {
|
15
|
+
root: {
|
16
|
+
'--segment-radius': "radii.control.md";
|
17
|
+
height: "7";
|
18
|
+
};
|
19
|
+
item: {
|
20
|
+
textStyle: "sm";
|
21
|
+
px: "4";
|
22
|
+
gap: "2";
|
23
|
+
};
|
24
|
+
};
|
25
|
+
md: {
|
26
|
+
root: {
|
27
|
+
'--segment-radius': "radii.control.md";
|
28
|
+
height: "8";
|
29
|
+
};
|
30
|
+
item: {
|
31
|
+
textStyle: "md";
|
32
|
+
px: "4";
|
33
|
+
gap: "2";
|
34
|
+
};
|
35
|
+
};
|
36
|
+
lg: {
|
37
|
+
root: {
|
38
|
+
'--segment-radius': "radii.control.lg";
|
39
|
+
height: "10";
|
40
|
+
};
|
41
|
+
item: {
|
42
|
+
textStyle: "md";
|
43
|
+
px: "5";
|
44
|
+
gap: "3";
|
45
|
+
};
|
46
|
+
};
|
47
|
+
};
|
48
|
+
}>;
|
@@ -0,0 +1,127 @@
|
|
1
|
+
import { segmentGroupAnatomy } from '@chakra-ui/react/anatomy';
|
2
|
+
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
3
|
+
export const segmentGroupSlotRecipe = defineSlotRecipe({
|
4
|
+
className: 'chakra-segment-group',
|
5
|
+
slots: segmentGroupAnatomy.keys(),
|
6
|
+
base: {
|
7
|
+
root: {
|
8
|
+
borderRadius: 'var(--segment-radius)',
|
9
|
+
display: 'inline-flex',
|
10
|
+
boxShadow: 'inset',
|
11
|
+
minW: 'max-content',
|
12
|
+
textAlign: 'center',
|
13
|
+
position: 'relative',
|
14
|
+
isolation: 'isolate',
|
15
|
+
bg: 'bg.muted',
|
16
|
+
borderWidth: '1px',
|
17
|
+
},
|
18
|
+
item: {
|
19
|
+
display: 'flex',
|
20
|
+
alignItems: 'center',
|
21
|
+
userSelect: 'none',
|
22
|
+
fontSize: 'sm',
|
23
|
+
position: 'relative',
|
24
|
+
color: 'fg.subtle',
|
25
|
+
cursor: 'button',
|
26
|
+
borderRadius: 'var(--segment-radius)',
|
27
|
+
_disabled: {
|
28
|
+
opacity: '0.5',
|
29
|
+
},
|
30
|
+
_hover: {
|
31
|
+
color: 'fg',
|
32
|
+
},
|
33
|
+
'&:has(input:focus-visible)': {
|
34
|
+
focusRing: 'inside',
|
35
|
+
focusRingWidth: '1px',
|
36
|
+
},
|
37
|
+
_before: {
|
38
|
+
content: '""',
|
39
|
+
position: 'absolute',
|
40
|
+
insetInlineStart: 0,
|
41
|
+
insetBlock: '0',
|
42
|
+
bg: 'border',
|
43
|
+
width: '1px',
|
44
|
+
transition: 'opacity 0.2s',
|
45
|
+
},
|
46
|
+
_checked: {
|
47
|
+
color: 'fg',
|
48
|
+
},
|
49
|
+
'& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type': {
|
50
|
+
_before: {
|
51
|
+
opacity: '0',
|
52
|
+
},
|
53
|
+
},
|
54
|
+
'&[data-state=checked][data-ssr]': {
|
55
|
+
shadow: 'sm',
|
56
|
+
bg: 'bg',
|
57
|
+
color: 'fg',
|
58
|
+
borderRadius: 'var(--segment-radius)',
|
59
|
+
},
|
60
|
+
},
|
61
|
+
indicator: {
|
62
|
+
shadow: 'sm',
|
63
|
+
pos: 'absolute',
|
64
|
+
bg: {
|
65
|
+
base: 'bg',
|
66
|
+
_dark: 'bg.emphasized',
|
67
|
+
},
|
68
|
+
width: 'var(--width)',
|
69
|
+
height: 'var(--height)',
|
70
|
+
top: 'var(--top)',
|
71
|
+
left: 'var(--left)',
|
72
|
+
zIndex: -1,
|
73
|
+
borderRadius: 'var(--segment-radius)',
|
74
|
+
},
|
75
|
+
},
|
76
|
+
variants: {
|
77
|
+
size: {
|
78
|
+
xs: {
|
79
|
+
root: {
|
80
|
+
'--segment-radius': 'radii.control.sm',
|
81
|
+
height: '6',
|
82
|
+
},
|
83
|
+
item: {
|
84
|
+
textStyle: 'xs',
|
85
|
+
px: '3',
|
86
|
+
gap: '1',
|
87
|
+
},
|
88
|
+
},
|
89
|
+
sm: {
|
90
|
+
root: {
|
91
|
+
'--segment-radius': 'radii.control.md',
|
92
|
+
height: '7',
|
93
|
+
},
|
94
|
+
item: {
|
95
|
+
textStyle: 'sm',
|
96
|
+
px: '4',
|
97
|
+
gap: '2',
|
98
|
+
},
|
99
|
+
},
|
100
|
+
md: {
|
101
|
+
root: {
|
102
|
+
'--segment-radius': 'radii.control.md',
|
103
|
+
height: '8',
|
104
|
+
},
|
105
|
+
item: {
|
106
|
+
textStyle: 'md',
|
107
|
+
px: '4',
|
108
|
+
gap: '2',
|
109
|
+
},
|
110
|
+
},
|
111
|
+
lg: {
|
112
|
+
root: {
|
113
|
+
'--segment-radius': 'radii.control.lg',
|
114
|
+
height: '10',
|
115
|
+
},
|
116
|
+
item: {
|
117
|
+
textStyle: 'md',
|
118
|
+
px: '5',
|
119
|
+
gap: '3',
|
120
|
+
},
|
121
|
+
},
|
122
|
+
},
|
123
|
+
},
|
124
|
+
defaultVariants: {
|
125
|
+
size: 'md',
|
126
|
+
},
|
127
|
+
});
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SegmentGroup } from '@chakra-ui/react/segment-group';
|
2
|
+
interface Item {
|
3
|
+
value: string;
|
4
|
+
label: React.ReactNode;
|
5
|
+
disabled?: boolean;
|
6
|
+
}
|
7
|
+
export interface SegmentedControlProps extends SegmentGroup.RootProps {
|
8
|
+
items: Array<string | Item>;
|
9
|
+
}
|
10
|
+
export declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
|
11
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
'use client';
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
import { forwardRef, useMemo } from 'react';
|
4
|
+
import { For } from '@chakra-ui/react/for';
|
5
|
+
import { SegmentGroup } from '@chakra-ui/react/segment-group';
|
6
|
+
function normalize(items) {
|
7
|
+
return items.map((item) => {
|
8
|
+
if (typeof item === 'string')
|
9
|
+
return { value: item, label: item };
|
10
|
+
return item;
|
11
|
+
});
|
12
|
+
}
|
13
|
+
export const SegmentedControl = forwardRef(function SegmentedControl(props, ref) {
|
14
|
+
const { items, ...rest } = props;
|
15
|
+
const data = useMemo(() => normalize(items), [items]);
|
16
|
+
return (_jsxs(SegmentGroup.Root, { ref: ref, ...rest, children: [_jsx(SegmentGroup.Indicator, {}), _jsx(For, { each: data, children: (item) => (_jsxs(SegmentGroup.Item, { value: item.value, disabled: item.disabled, children: [_jsx(SegmentGroup.ItemText, { children: item.label }), _jsx(SegmentGroup.ItemHiddenInput, {})] }, item.value)) })] }));
|
17
|
+
});
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export * as Select from './namespace.ts';
|
@@ -1,13 +1 @@
|
|
1
|
-
|
2
|
-
import {
|
3
|
-
namespace_exports
|
4
|
-
} from "../../chunk-BVISYY3B.js";
|
5
|
-
import "../../chunk-JMYI6YXR.js";
|
6
|
-
import "../../chunk-WZUKOJGI.js";
|
7
|
-
import "../../chunk-OJZPPAT6.js";
|
8
|
-
import "../../chunk-5HVAMQYO.js";
|
9
|
-
import "../../chunk-OME35FUG.js";
|
10
|
-
import "../../chunk-RTMS5TJN.js";
|
11
|
-
export {
|
12
|
-
namespace_exports as Select
|
13
|
-
};
|
1
|
+
export * as Select from "./namespace.js";
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export { SelectRoot as Root, SelectTrigger as Trigger, SelectContent as Content, SelectItem as Item, SelectLabel as Label, SelectItemGroup as ItemGroup, SelectItemText as ItemText, SelectValueText as ValueText, } from './select.tsx';
|
2
|
+
export type { SelectRootProps as RootProps, SelectTriggerProps as TriggerProps, SelectContentProps as ContentProps, SelectItemGroupProps as ItemGroupProps, SelectValueTextProps as ValueTextProps, } from './select.tsx';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { SelectRoot as Root, SelectTrigger as Trigger, SelectContent as Content, SelectItem as Item, SelectLabel as Label, SelectItemGroup as ItemGroup, SelectItemText as ItemText, SelectValueText as ValueText, } from "./select.js";
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { CollectionItem } from '@chakra-ui/react/collection';
|
2
|
+
import { Select as SelectPrimitive } from '@chakra-ui/react/select';
|
3
|
+
export interface SelectTriggerProps extends SelectPrimitive.ControlProps {
|
4
|
+
clearable?: boolean;
|
5
|
+
}
|
6
|
+
export declare const SelectTrigger: import("react").ForwardRefExoticComponent<SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
7
|
+
export interface SelectContentProps extends SelectPrimitive.ContentProps {
|
8
|
+
portalled?: boolean;
|
9
|
+
portalRef?: React.RefObject<HTMLElement>;
|
10
|
+
}
|
11
|
+
export declare const SelectContent: import("react").ForwardRefExoticComponent<SelectContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
12
|
+
export declare const SelectItem: import("react").ForwardRefExoticComponent<SelectPrimitive.ItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
13
|
+
export interface SelectValueTextProps extends Omit<SelectPrimitive.ValueTextProps, 'children'> {
|
14
|
+
children?(items: CollectionItem[]): React.ReactNode;
|
15
|
+
}
|
16
|
+
export declare const SelectValueText: import("react").ForwardRefExoticComponent<SelectValueTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
17
|
+
export interface SelectRootProps<T> extends SelectPrimitive.RootProps<T> {
|
18
|
+
}
|
19
|
+
export declare const SelectRoot: <T extends CollectionItem>(props: SelectRootProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
20
|
+
export interface SelectItemGroupProps extends SelectPrimitive.ItemGroupProps {
|
21
|
+
label: React.ReactNode;
|
22
|
+
}
|
23
|
+
export declare const SelectItemGroup: import("react").ForwardRefExoticComponent<SelectItemGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
24
|
+
export declare const SelectLabel: import("react").ForwardRefExoticComponent<SelectPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
25
|
+
export declare const SelectItemText: import("react").ForwardRefExoticComponent<SelectPrimitive.ItemTextProps & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
'use client';
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
import { forwardRef } from 'react';
|
4
|
+
import { Portal } from '@chakra-ui/react/portal';
|
5
|
+
import { Select as SelectPrimitive } from '@chakra-ui/react/select';
|
6
|
+
import { CloseButton } from "../close-button/index.js";
|
7
|
+
export const SelectTrigger = forwardRef(function SelectTrigger(props, ref) {
|
8
|
+
const { children, clearable, ...rest } = props;
|
9
|
+
return (_jsxs(SelectPrimitive.Control, { ...rest, children: [_jsx(SelectPrimitive.Trigger, { ref: ref, children: children }), _jsxs(SelectPrimitive.IndicatorGroup, { children: [clearable && _jsx(SelectClearTrigger, {}), _jsx(SelectPrimitive.Indicator, {})] })] }));
|
10
|
+
});
|
11
|
+
const SelectClearTrigger = forwardRef(function SelectClearTrigger(props, ref) {
|
12
|
+
return (_jsx(SelectPrimitive.ClearTrigger, { asChild: true, ...props, ref: ref, children: _jsx(CloseButton, { size: "xs", variant: "plain", focusVisibleRing: "inside", focusRingWidth: "2px", pointerEvents: "auto" }) }));
|
13
|
+
});
|
14
|
+
export const SelectContent = forwardRef(function SelectContent(props, ref) {
|
15
|
+
const { portalled = true, portalRef, ...rest } = props;
|
16
|
+
return (_jsx(Portal, { disabled: !portalled, container: portalRef, children: _jsx(SelectPrimitive.Positioner, { children: _jsx(SelectPrimitive.Content, { ...rest, ref: ref }) }) }));
|
17
|
+
});
|
18
|
+
export const SelectItem = forwardRef(function SelectItem(props, ref) {
|
19
|
+
const { item, children, ...rest } = props;
|
20
|
+
return (_jsxs(SelectPrimitive.Item, { item: item, ...rest, ref: ref, children: [children, _jsx(SelectPrimitive.ItemIndicator, {})] }, item.value));
|
21
|
+
});
|
22
|
+
export const SelectValueText = forwardRef(function SelectValueText(props, ref) {
|
23
|
+
const { children, ...rest } = props;
|
24
|
+
return (_jsx(SelectPrimitive.ValueText, { ...rest, ref: ref, children: _jsx(SelectPrimitive.Context, { children: (select) => {
|
25
|
+
const items = select.selectedItems;
|
26
|
+
if (items.length === 0)
|
27
|
+
return props.placeholder;
|
28
|
+
if (children)
|
29
|
+
return children(items);
|
30
|
+
if (items.length === 1)
|
31
|
+
return select.collection.stringifyItem(items[0]);
|
32
|
+
return `${items.length} selected`;
|
33
|
+
} }) }));
|
34
|
+
});
|
35
|
+
export const SelectRoot = forwardRef(function SelectRoot(props, ref) {
|
36
|
+
return (_jsx(SelectPrimitive.Root, { ...props, ref: ref, positioning: { sameWidth: true, ...props.positioning } }));
|
37
|
+
});
|
38
|
+
export const SelectItemGroup = forwardRef(function SelectItemGroup(props, ref) {
|
39
|
+
const { children, label, ...rest } = props;
|
40
|
+
return (_jsxs(SelectPrimitive.ItemGroup, { ...rest, ref: ref, children: [_jsx(SelectPrimitive.ItemGroupLabel, { children: label }), children] }));
|
41
|
+
});
|
42
|
+
export const SelectLabel = SelectPrimitive.Label;
|
43
|
+
export const SelectItemText = SelectPrimitive.ItemText;
|