@saas-ui/react 3.0.0-next.2 → 3.0.0-next.21
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 +124 -0
- package/dist/.tsbuildinfo.json +1 -0
- package/dist/colors.d.ts +1 -0
- package/dist/colors.js +1 -0
- 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 -0
- package/dist/components/accordion/index.js +1 -0
- 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 -0
- package/dist/components/action-bar/index.js +1 -0
- 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 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/app-shell/app-shell.d.ts +40 -0
- package/dist/components/app-shell/app-shell.js +22 -0
- package/dist/components/app-shell/app-shell.recipe.d.ts +18 -0
- package/dist/components/app-shell/app-shell.recipe.js +45 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.js +1 -0
- package/dist/components/aspect-ratio/index.d.ts +1 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- 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 +89 -0
- package/dist/components/avatar/avatar.recipe.js +130 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.js +1 -0
- 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 -0
- package/dist/components/back-button/index.js +1 -0
- 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 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/bleed/index.d.ts +1 -0
- package/dist/components/bleed/index.js +1 -0
- 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 -0
- package/dist/components/blockquote/index.js +1 -0
- package/dist/components/box/index.d.ts +1 -0
- package/dist/components/box/index.js +1 -0
- 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 -0
- package/dist/components/breadcrumb/index.js +1 -0
- package/dist/components/button/button.recipe.d.ts +138 -0
- package/dist/components/button/button.recipe.js +182 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/card/card.recipe.d.ts +70 -0
- package/dist/components/card/card.recipe.js +120 -0
- package/dist/components/card/index.js +2 -0
- package/dist/components/center/index.d.ts +1 -0
- package/dist/components/center/index.js +1 -0
- 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 -0
- package/dist/components/checkbox/index.js +1 -0
- 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 +201 -0
- package/dist/components/checkbox-card/index.d.ts +1 -0
- package/dist/components/checkbox-card/index.js +1 -0
- 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 -0
- package/dist/components/checkmark/index.js +1 -0
- package/dist/components/client-only/index.d.ts +1 -0
- package/dist/components/client-only/index.js +1 -0
- 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 -0
- package/dist/components/clipboard/index.js +2 -0
- 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 -0
- package/dist/components/close-button/index.js +1 -0
- 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 -0
- package/dist/components/code/index.js +1 -0
- package/dist/components/collapsible/collapsible.recipe.d.ts +1 -0
- package/dist/components/collapsible/collapsible.recipe.js +19 -0
- package/dist/components/color-swatch/index.d.ts +1 -0
- package/dist/components/color-swatch/index.js +1 -0
- 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 -0
- package/dist/components/command/index.js +1 -0
- 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 -0
- package/dist/components/container/index.js +1 -0
- 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/dialog/dialog.d.ts +21 -0
- package/dist/components/dialog/dialog.js +23 -0
- package/dist/components/dialog/dialog.recipe.d.ts +148 -0
- package/dist/components/dialog/dialog.recipe.js +219 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/index.js +1 -0
- 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 +197 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- 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 -0
- package/dist/components/editable/index.js +1 -0
- 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 -0
- package/dist/components/empty-state/index.js +1 -0
- package/dist/components/env/index.d.ts +1 -0
- package/dist/components/env/index.js +1 -0
- package/dist/components/field/field.recipe.d.ts +29 -0
- package/dist/components/field/field.recipe.js +74 -0
- 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 -0
- package/dist/components/fieldset/index.js +1 -0
- 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 -0
- package/dist/components/file-upload/index.js +2 -0
- package/dist/components/flex/index.d.ts +1 -0
- package/dist/components/flex/index.js +1 -0
- package/dist/components/float/index.d.ts +1 -0
- package/dist/components/float/index.js +1 -0
- package/dist/components/focus-trap/index.d.ts +1 -0
- package/dist/components/focus-trap/index.js +1 -0
- package/dist/components/for/index.d.ts +1 -0
- package/dist/components/for/index.js +1 -0
- package/dist/components/format/index.d.ts +1 -0
- package/dist/components/format/index.js +1 -0
- package/dist/components/grid/index.d.ts +1 -0
- package/dist/components/grid/index.js +1 -0
- 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 +132 -0
- package/dist/components/grid-list/index.d.ts +1 -0
- package/dist/components/grid-list/index.js +1 -0
- package/dist/components/group/index.d.ts +1 -0
- package/dist/components/group/index.js +1 -0
- 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 -0
- package/dist/components/heading/index.js +1 -0
- package/dist/components/highlight/index.d.ts +1 -0
- package/dist/components/highlight/index.js +1 -0
- 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 -0
- package/dist/components/hover-card/index.js +1 -0
- 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 -0
- package/dist/components/icon/index.js +1 -0
- 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 +56 -0
- package/dist/components/icon-badge/index.d.ts +2 -0
- package/dist/components/icon-badge/index.js +1 -0
- 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 -0
- package/dist/components/icon-button/index.js +1 -0
- 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 -0
- package/dist/components/icons/index.js +1 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/index.js +1 -0
- package/dist/components/info-tip/index.d.ts +1 -0
- package/dist/components/info-tip/index.js +1 -0
- 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 -0
- package/dist/components/input/index.js +1 -0
- 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 -0
- package/dist/components/kbd/index.js +1 -0
- 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 -0
- package/dist/components/link/index.js +1 -0
- 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/list.recipe.d.ts +38 -0
- package/dist/components/list/list.recipe.js +62 -0
- package/dist/components/loading-overlay/index.d.ts +2 -0
- package/dist/components/loading-overlay/index.js +2 -0
- 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 +35 -0
- package/dist/components/loading-overlay/loading-overlay.recipe.js +60 -0
- package/dist/components/locale/index.d.ts +1 -0
- package/dist/components/locale/index.js +1 -0
- package/dist/components/mark/index.d.ts +1 -0
- package/dist/components/mark/index.js +1 -0
- 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 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/menu.d.ts +41 -0
- package/dist/components/menu/menu.js +47 -0
- package/dist/components/menu/menu.recipe.d.ts +55 -0
- package/dist/components/menu/menu.recipe.js +130 -0
- package/dist/components/native-select/index.d.ts +2 -0
- package/dist/components/native-select/index.js +1 -0
- 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 -0
- package/dist/components/navbar/index.js +1 -0
- 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 +108 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.js +1 -0
- 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 -0
- package/dist/components/page/index.js +2 -0
- 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 +58 -0
- package/dist/components/page/page.recipe.js +98 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/index.js +1 -0
- 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 -0
- package/dist/components/password-input/index.js +1 -0
- 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 -0
- package/dist/components/persona/index.js +2 -0
- 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 -0
- package/dist/components/pin-input/index.js +1 -0
- 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 -0
- package/dist/components/popover/index.js +1 -0
- 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 -0
- package/dist/components/portal/index.js +1 -0
- package/dist/components/presence/index.d.ts +1 -0
- package/dist/components/presence/index.js +1 -0
- package/dist/components/progress/progress.recipe.d.ts +82 -0
- package/dist/components/progress/progress.recipe.js +120 -0
- 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 -0
- package/dist/components/qr-code/index.js +1 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/index.js +1 -0
- 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 -0
- package/dist/components/radio-card/index.js +1 -0
- 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/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 -0
- package/dist/components/radiomark/index.js +1 -0
- 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 -0
- package/dist/components/search-input/index.js +1 -0
- 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 -0
- package/dist/components/segmented-control/index.js +1 -0
- 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 -0
- package/dist/components/select/index.js +1 -0
- 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 +284 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/index.js +1 -0
- 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 -0
- package/dist/components/show/index.js +1 -0
- package/dist/components/sidebar/index.d.ts +3 -0
- package/dist/components/sidebar/index.js +3 -0
- 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 +77 -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 -0
- package/dist/components/skeleton/index.js +1 -0
- 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 -0
- package/dist/components/skip-nav/index.js +1 -0
- package/dist/components/skip-nav-link/index.d.ts +1 -0
- package/dist/components/skip-nav-link/index.js +1 -0
- 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 -0
- package/dist/components/slider/index.js +1 -0
- 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 -0
- package/dist/components/spacer/index.js +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.js +1 -0
- 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 -0
- package/dist/components/stack/index.js +1 -0
- package/dist/components/stat/index.d.ts +1 -0
- package/dist/components/stat/index.js +1 -0
- 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 -0
- package/dist/components/status/index.js +1 -0
- 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 -0
- package/dist/components/steps/index.js +1 -0
- 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 -0
- package/dist/components/switch/index.js +1 -0
- 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/table.recipe.d.ts +121 -0
- package/dist/components/table/table.recipe.js +161 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/tabs.recipe.d.ts +243 -0
- package/dist/components/tabs/tabs.recipe.js +312 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +1 -0
- 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 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/textarea.recipe.d.ts +65 -0
- package/dist/components/textarea/textarea.recipe.js +90 -0
- 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 -0
- package/dist/components/toaster/index.js +1 -0
- 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 -0
- package/dist/components/toggle/index.js +1 -0
- 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 -0
- package/dist/components/toggle-tip/index.js +1 -0
- 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 -0
- package/dist/components/tooltip/index.js +1 -0
- 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 -0
- package/dist/components/typography/index.js +1 -0
- package/dist/components/wrap/index.d.ts +1 -0
- package/dist/components/wrap/index.js +1 -0
- package/dist/index.d.ts +118 -1500
- package/dist/index.js +113 -2923
- package/dist/preset.d.ts +3 -6
- package/dist/preset.js +10 -11
- 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 +17 -0
- package/dist/theme/conditions.js +18 -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 +58 -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 +125 -0
- package/dist/theme/recipes.d.ts +835 -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 +3803 -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 +1 -3
- package/dist/theme/tokens/colors.js +319 -7
- 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 +17 -19
- package/dist/accordion/index.cjs +0 -204
- package/dist/accordion/index.d.cts +0 -29
- package/dist/accordion/index.d.ts +0 -29
- package/dist/accordion/index.js +0 -43
- package/dist/action-bar/index.cjs +0 -224
- package/dist/action-bar/index.d.cts +0 -33
- package/dist/action-bar/index.d.ts +0 -33
- package/dist/action-bar/index.js +0 -39
- package/dist/alert/index.cjs +0 -234
- package/dist/alert/index.d.cts +0 -14
- package/dist/alert/index.d.ts +0 -14
- package/dist/alert/index.js +0 -47
- package/dist/app-shell/index.cjs +0 -68
- package/dist/app-shell/index.d.cts +0 -30
- package/dist/app-shell/index.d.ts +0 -30
- package/dist/app-shell/index.js +0 -45
- package/dist/aspect-ratio/index.cjs +0 -31
- package/dist/aspect-ratio/index.d.cts +0 -1
- package/dist/aspect-ratio/index.d.ts +0 -1
- package/dist/aspect-ratio/index.js +0 -10
- package/dist/avatar/index.cjs +0 -70
- package/dist/avatar/index.d.cts +0 -20
- package/dist/avatar/index.d.ts +0 -20
- package/dist/avatar/index.js +0 -43
- package/dist/back-button/index.cjs +0 -227
- package/dist/back-button/index.d.cts +0 -11
- package/dist/back-button/index.d.ts +0 -11
- package/dist/back-button/index.js +0 -191
- package/dist/badge/index.cjs +0 -33
- package/dist/badge/index.d.cts +0 -1
- package/dist/badge/index.d.ts +0 -1
- package/dist/badge/index.js +0 -11
- package/dist/bleed/index.cjs +0 -31
- package/dist/bleed/index.d.cts +0 -2
- package/dist/bleed/index.d.ts +0 -2
- package/dist/bleed/index.js +0 -9
- package/dist/blockquote/index.cjs +0 -59
- package/dist/blockquote/index.d.cts +0 -12
- package/dist/blockquote/index.d.ts +0 -12
- package/dist/blockquote/index.js +0 -23
- package/dist/box/index.cjs +0 -31
- package/dist/box/index.d.cts +0 -3
- package/dist/box/index.d.ts +0 -3
- package/dist/box/index.js +0 -10
- package/dist/breadcrumb/index.cjs +0 -58
- package/dist/breadcrumb/index.d.cts +0 -23
- package/dist/breadcrumb/index.d.ts +0 -23
- package/dist/breadcrumb/index.js +0 -35
- package/dist/button/index.cjs +0 -31
- package/dist/button/index.d.cts +0 -1
- package/dist/button/index.d.ts +0 -1
- package/dist/button/index.js +0 -8
- package/dist/button-group/index.cjs +0 -31
- package/dist/button-group/index.d.cts +0 -1
- package/dist/button-group/index.d.ts +0 -1
- package/dist/button-group/index.js +0 -8
- package/dist/card/index.cjs +0 -32
- package/dist/card/index.d.cts +0 -1
- package/dist/card/index.js +0 -9
- package/dist/center/index.cjs +0 -31
- package/dist/center/index.d.cts +0 -3
- package/dist/center/index.d.ts +0 -3
- package/dist/center/index.js +0 -9
- package/dist/checkbox/index.cjs +0 -45
- package/dist/checkbox/index.d.cts +0 -11
- package/dist/checkbox/index.d.ts +0 -11
- package/dist/checkbox/index.js +0 -19
- package/dist/checkbox-card/index.cjs +0 -66
- package/dist/checkbox-card/index.d.cts +0 -15
- package/dist/checkbox-card/index.d.ts +0 -15
- package/dist/checkbox-card/index.js +0 -40
- package/dist/checkmark/index.cjs +0 -31
- package/dist/checkmark/index.d.cts +0 -1
- package/dist/checkmark/index.d.ts +0 -1
- package/dist/checkmark/index.js +0 -7
- package/dist/chunk-2Q6YNPRO.js +0 -151
- package/dist/chunk-4F7N63LO.js +0 -43
- package/dist/chunk-A4CVFWTP.js +0 -27
- package/dist/chunk-AX3QDODM.js +0 -136
- package/dist/chunk-BFWNUE2X.js +0 -15
- package/dist/chunk-EZNMWDPR.js +0 -28
- package/dist/chunk-GMRF4UIJ.js +0 -159
- package/dist/chunk-HBX3KIPQ.js +0 -135
- package/dist/chunk-KNFGYOLD.js +0 -332
- package/dist/chunk-M5ROLN3M.js +0 -8903
- package/dist/chunk-RTMS5TJN.js +0 -10
- package/dist/chunk-V5WPZT25.js +0 -135
- package/dist/client-only/index.cjs +0 -31
- package/dist/client-only/index.d.cts +0 -1
- package/dist/client-only/index.d.ts +0 -1
- package/dist/client-only/index.js +0 -9
- package/dist/clipboard/index.cjs +0 -234
- package/dist/clipboard/index.d.cts +0 -28
- package/dist/clipboard/index.d.ts +0 -28
- package/dist/clipboard/index.js +0 -63
- package/dist/close-button/index.cjs +0 -194
- package/dist/close-button/index.d.cts +0 -9
- package/dist/close-button/index.d.ts +0 -9
- package/dist/close-button/index.js +0 -19
- package/dist/code/index.cjs +0 -31
- package/dist/code/index.d.cts +0 -3
- package/dist/code/index.d.ts +0 -3
- package/dist/code/index.js +0 -8
- package/dist/collapsible/index.cjs +0 -31
- package/dist/collapsible/index.js +0 -8
- package/dist/color-picker/index.cjs +0 -31
- package/dist/color-picker/index.js +0 -8
- package/dist/color-swatch/index.cjs +0 -35
- package/dist/color-swatch/index.d.cts +0 -3
- package/dist/color-swatch/index.d.ts +0 -3
- package/dist/color-swatch/index.js +0 -14
- package/dist/command/index.cjs +0 -61
- package/dist/command/index.d.cts +0 -36
- package/dist/command/index.d.ts +0 -36
- package/dist/command/index.js +0 -38
- package/dist/container/index.cjs +0 -31
- package/dist/container/index.d.cts +0 -1
- package/dist/container/index.d.ts +0 -1
- package/dist/container/index.js +0 -8
- package/dist/data-list/index.cjs +0 -33
- package/dist/data-list/index.js +0 -9
- package/dist/dialog/index.cjs +0 -249
- package/dist/dialog/index.d.cts +0 -46
- package/dist/dialog/index.d.ts +0 -46
- package/dist/dialog/index.js +0 -226
- package/dist/drawer/index.cjs +0 -239
- package/dist/drawer/index.d.cts +0 -44
- package/dist/drawer/index.d.ts +0 -44
- package/dist/drawer/index.js +0 -216
- package/dist/editable/index.cjs +0 -31
- package/dist/editable/index.d.cts +0 -3
- package/dist/editable/index.d.ts +0 -3
- package/dist/editable/index.js +0 -8
- package/dist/empty-state/index.cjs +0 -50
- package/dist/empty-state/index.d.cts +0 -11
- package/dist/empty-state/index.d.ts +0 -11
- package/dist/empty-state/index.js +0 -29
- package/dist/env/index.cjs +0 -33
- package/dist/env/index.d.cts +0 -1
- package/dist/env/index.d.ts +0 -1
- package/dist/env/index.js +0 -12
- package/dist/field/index.cjs +0 -35
- package/dist/field/index.js +0 -10
- package/dist/fieldset/index.cjs +0 -33
- package/dist/fieldset/index.d.cts +0 -4
- package/dist/fieldset/index.d.ts +0 -4
- package/dist/fieldset/index.js +0 -9
- package/dist/file-upload/index.cjs +0 -303
- package/dist/file-upload/index.d.cts +0 -46
- package/dist/file-upload/index.d.ts +0 -46
- package/dist/file-upload/index.js +0 -272
- package/dist/flex/index.cjs +0 -31
- package/dist/flex/index.d.cts +0 -1
- package/dist/flex/index.d.ts +0 -1
- package/dist/flex/index.js +0 -10
- package/dist/float/index.cjs +0 -31
- package/dist/float/index.d.cts +0 -1
- package/dist/float/index.d.ts +0 -1
- package/dist/float/index.js +0 -10
- package/dist/focus-trap/index.cjs +0 -31
- package/dist/focus-trap/index.d.cts +0 -1
- package/dist/focus-trap/index.d.ts +0 -1
- package/dist/focus-trap/index.js +0 -8
- package/dist/for/index.cjs +0 -31
- package/dist/for/index.d.cts +0 -4
- package/dist/for/index.d.ts +0 -4
- package/dist/for/index.js +0 -10
- package/dist/format/index.cjs +0 -33
- package/dist/format/index.d.cts +0 -1
- package/dist/format/index.d.ts +0 -1
- package/dist/format/index.js +0 -12
- package/dist/grid/index.cjs +0 -31
- package/dist/grid/index.d.cts +0 -1
- package/dist/grid/index.d.ts +0 -1
- package/dist/grid/index.js +0 -10
- package/dist/grid-list/index.cjs +0 -68
- package/dist/grid-list/index.d.cts +0 -88
- package/dist/grid-list/index.d.ts +0 -88
- package/dist/grid-list/index.js +0 -45
- package/dist/group/index.cjs +0 -31
- package/dist/group/index.d.cts +0 -1
- package/dist/group/index.d.ts +0 -1
- package/dist/group/index.js +0 -10
- package/dist/heading/index.cjs +0 -31
- package/dist/heading/index.d.cts +0 -3
- package/dist/heading/index.d.ts +0 -3
- package/dist/heading/index.js +0 -8
- package/dist/highlight/index.cjs +0 -31
- package/dist/highlight/index.d.cts +0 -1
- package/dist/highlight/index.d.ts +0 -1
- package/dist/highlight/index.js +0 -10
- package/dist/hover-card/index.cjs +0 -66
- package/dist/hover-card/index.d.cts +0 -21
- package/dist/hover-card/index.d.ts +0 -21
- package/dist/hover-card/index.js +0 -33
- package/dist/icon/index.cjs +0 -31
- package/dist/icon/index.d.cts +0 -1
- package/dist/icon/index.d.ts +0 -1
- package/dist/icon/index.js +0 -8
- package/dist/icon-badge/index.cjs +0 -70
- package/dist/icon-badge/index.d.cts +0 -16
- package/dist/icon-badge/index.d.ts +0 -16
- package/dist/icon-badge/index.js +0 -38
- package/dist/icon-button/index.cjs +0 -53
- package/dist/icon-button/index.d.cts +0 -8
- package/dist/icon-button/index.d.ts +0 -8
- package/dist/icon-button/index.js +0 -8
- package/dist/icon-button-CR4hDxYi.d.cts +0 -6
- package/dist/icon-button-CR4hDxYi.d.ts +0 -6
- package/dist/icons/index.cjs +0 -193
- package/dist/icons/index.d.cts +0 -23
- package/dist/icons/index.d.ts +0 -23
- package/dist/icons/index.js +0 -42
- package/dist/image/index.cjs +0 -31
- package/dist/image/index.d.cts +0 -2
- package/dist/image/index.d.ts +0 -2
- package/dist/image/index.js +0 -8
- package/dist/index.cjs +0 -12205
- package/dist/index.d.cts +0 -1500
- package/dist/info-tip/index.cjs +0 -306
- package/dist/info-tip/index.d.cts +0 -38
- package/dist/info-tip/index.d.ts +0 -38
- package/dist/info-tip/index.js +0 -128
- package/dist/input/index.cjs +0 -39
- package/dist/input/index.d.cts +0 -1
- package/dist/input/index.d.ts +0 -1
- package/dist/input/index.js +0 -18
- package/dist/kbd/index.cjs +0 -31
- package/dist/kbd/index.d.cts +0 -3
- package/dist/kbd/index.d.ts +0 -3
- package/dist/kbd/index.js +0 -8
- package/dist/link/index.cjs +0 -71
- package/dist/link/index.d.cts +0 -13
- package/dist/link/index.d.ts +0 -13
- package/dist/link/index.js +0 -36
- package/dist/list/index.cjs +0 -31
- package/dist/list/index.js +0 -8
- package/dist/loader/index.cjs +0 -31
- package/dist/loader/index.js +0 -8
- package/dist/loading-overlay/index.cjs +0 -87
- package/dist/loading-overlay/index.d.cts +0 -31
- package/dist/loading-overlay/index.d.ts +0 -31
- package/dist/loading-overlay/index.js +0 -66
- package/dist/locale/index.cjs +0 -33
- package/dist/locale/index.d.cts +0 -1
- package/dist/locale/index.d.ts +0 -1
- package/dist/locale/index.js +0 -12
- package/dist/mark/index.cjs +0 -31
- package/dist/mark/index.d.cts +0 -2
- package/dist/mark/index.d.ts +0 -2
- package/dist/mark/index.js +0 -8
- package/dist/menu/index.cjs +0 -249
- package/dist/menu/index.d.cts +0 -40
- package/dist/menu/index.d.ts +0 -40
- package/dist/menu/index.js +0 -101
- package/dist/native-select/index.cjs +0 -185
- package/dist/native-select/index.d.cts +0 -10
- package/dist/native-select/index.d.ts +0 -10
- package/dist/native-select/index.js +0 -22
- package/dist/navbar/index.cjs +0 -111
- package/dist/navbar/index.d.cts +0 -21
- package/dist/navbar/index.d.ts +0 -21
- package/dist/navbar/index.js +0 -78
- package/dist/number-input/index.cjs +0 -67
- package/dist/number-input/index.d.cts +0 -13
- package/dist/number-input/index.d.ts +0 -13
- package/dist/number-input/index.js +0 -40
- package/dist/page/index.cjs +0 -196
- package/dist/page/index.d.cts +0 -50
- package/dist/page/index.d.ts +0 -50
- package/dist/page/index.js +0 -167
- package/dist/pagination/index.cjs +0 -260
- package/dist/pagination/index.d.cts +0 -43
- package/dist/pagination/index.d.ts +0 -43
- package/dist/pagination/index.js +0 -223
- package/dist/password-input/index.cjs +0 -284
- package/dist/password-input/index.d.cts +0 -18
- package/dist/password-input/index.d.ts +0 -18
- package/dist/password-input/index.js +0 -230
- package/dist/persona/index.cjs +0 -247
- package/dist/persona/index.d.cts +0 -230
- package/dist/persona/index.d.ts +0 -230
- package/dist/persona/index.js +0 -212
- package/dist/pin-input/index.cjs +0 -52
- package/dist/pin-input/index.d.cts +0 -12
- package/dist/pin-input/index.d.ts +0 -12
- package/dist/pin-input/index.js +0 -27
- package/dist/popover/index.cjs +0 -259
- package/dist/popover/index.d.cts +0 -37
- package/dist/popover/index.d.ts +0 -37
- package/dist/popover/index.js +0 -226
- package/dist/portal/index.cjs +0 -31
- package/dist/portal/index.d.cts +0 -3
- package/dist/portal/index.d.ts +0 -3
- package/dist/portal/index.js +0 -10
- package/dist/presence/index.cjs +0 -31
- package/dist/presence/index.d.cts +0 -1
- package/dist/presence/index.d.ts +0 -1
- package/dist/presence/index.js +0 -8
- package/dist/preset.cjs +0 -9240
- package/dist/preset.d.cts +0 -6
- package/dist/progress/index.cjs +0 -31
- package/dist/progress/index.js +0 -8
- package/dist/progress-circle/index.cjs +0 -31
- package/dist/progress-circle/index.js +0 -8
- package/dist/qr-code/index.cjs +0 -31
- package/dist/qr-code/index.d.cts +0 -3
- package/dist/qr-code/index.d.ts +0 -3
- package/dist/qr-code/index.js +0 -8
- package/dist/radio/index.cjs +0 -46
- package/dist/radio/index.d.cts +0 -10
- package/dist/radio/index.d.ts +0 -10
- package/dist/radio/index.js +0 -21
- package/dist/radio-card/index.cjs +0 -75
- package/dist/radio-card/index.d.cts +0 -31
- package/dist/radio-card/index.d.ts +0 -31
- package/dist/radio-card/index.js +0 -52
- package/dist/radio-group/index.cjs +0 -31
- package/dist/radio-group/index.js +0 -8
- package/dist/radiomark/index.cjs +0 -31
- package/dist/radiomark/index.d.cts +0 -2
- package/dist/radiomark/index.d.ts +0 -2
- package/dist/radiomark/index.js +0 -10
- package/dist/rating-group/index.cjs +0 -31
- package/dist/rating-group/index.js +0 -8
- package/dist/search-input/index.cjs +0 -274
- package/dist/search-input/index.d.cts +0 -15
- package/dist/search-input/index.d.ts +0 -15
- package/dist/search-input/index.js +0 -119
- package/dist/segmented-control/index.cjs +0 -61
- package/dist/segmented-control/index.d.cts +0 -14
- package/dist/segmented-control/index.d.ts +0 -14
- package/dist/segmented-control/index.js +0 -36
- package/dist/select/index.cjs +0 -286
- package/dist/select/index.d.cts +0 -33
- package/dist/select/index.d.ts +0 -33
- package/dist/select/index.js +0 -137
- package/dist/separator/index.cjs +0 -31
- package/dist/separator/index.d.cts +0 -3
- package/dist/separator/index.d.ts +0 -3
- package/dist/separator/index.js +0 -8
- package/dist/show/index.cjs +0 -31
- package/dist/show/index.d.cts +0 -1
- package/dist/show/index.d.ts +0 -1
- package/dist/show/index.js +0 -10
- package/dist/sidebar/index.cjs +0 -168
- package/dist/sidebar/index.d.cts +0 -90
- package/dist/sidebar/index.d.ts +0 -90
- package/dist/sidebar/index.js +0 -142
- package/dist/skeleton/index.cjs +0 -61
- package/dist/skeleton/index.d.cts +0 -17
- package/dist/skeleton/index.d.ts +0 -17
- package/dist/skeleton/index.js +0 -34
- package/dist/skip-nav/index.cjs +0 -33
- package/dist/skip-nav/index.d.cts +0 -1
- package/dist/skip-nav/index.d.ts +0 -1
- package/dist/skip-nav/index.js +0 -12
- package/dist/skip-nav-link/index.cjs +0 -33
- package/dist/skip-nav-link/index.d.cts +0 -3
- package/dist/skip-nav-link/index.d.ts +0 -3
- package/dist/skip-nav-link/index.js +0 -11
- package/dist/slider/index.cjs +0 -62
- package/dist/slider/index.d.cts +0 -13
- package/dist/slider/index.d.ts +0 -13
- package/dist/slider/index.js +0 -36
- package/dist/spacer/index.cjs +0 -31
- package/dist/spacer/index.d.cts +0 -1
- package/dist/spacer/index.d.ts +0 -1
- package/dist/spacer/index.js +0 -9
- package/dist/spinner/index.cjs +0 -44
- package/dist/spinner/index.d.cts +0 -10
- package/dist/spinner/index.d.ts +0 -10
- package/dist/spinner/index.js +0 -18
- package/dist/stack/index.cjs +0 -31
- package/dist/stack/index.d.cts +0 -1
- package/dist/stack/index.d.ts +0 -1
- package/dist/stack/index.js +0 -9
- package/dist/stat/index.cjs +0 -83
- package/dist/stat/index.d.cts +0 -29
- package/dist/stat/index.d.ts +0 -29
- package/dist/stat/index.js +0 -50
- package/dist/status/index.cjs +0 -45
- package/dist/status/index.d.cts +0 -18
- package/dist/status/index.d.ts +0 -18
- package/dist/status/index.js +0 -20
- package/dist/steps/index.cjs +0 -221
- package/dist/steps/index.d.cts +0 -31
- package/dist/steps/index.d.ts +0 -31
- package/dist/steps/index.js +0 -198
- package/dist/switch/index.cjs +0 -48
- package/dist/switch/index.d.cts +0 -18
- package/dist/switch/index.d.ts +0 -18
- package/dist/switch/index.js +0 -23
- package/dist/table/index.cjs +0 -31
- package/dist/table/index.js +0 -8
- package/dist/tabs/index.cjs +0 -37
- package/dist/tabs/index.d.cts +0 -3
- package/dist/tabs/index.d.ts +0 -3
- package/dist/tabs/index.js +0 -15
- package/dist/tag/index.cjs +0 -53
- package/dist/tag/index.d.cts +0 -12
- package/dist/tag/index.d.ts +0 -12
- package/dist/tag/index.js +0 -27
- package/dist/textarea/index.cjs +0 -31
- package/dist/textarea/index.d.cts +0 -1
- package/dist/textarea/index.d.ts +0 -1
- package/dist/textarea/index.js +0 -7
- package/dist/theme/tokens/colors.cjs +0 -349
- package/dist/theme/tokens/colors.d.cts +0 -856
- package/dist/timeline/index.cjs +0 -31
- package/dist/timeline/index.js +0 -7
- package/dist/toaster/index.cjs +0 -264
- package/dist/toaster/index.d.cts +0 -235
- package/dist/toaster/index.d.ts +0 -235
- package/dist/toaster/index.js +0 -241
- package/dist/toggle/index.cjs +0 -31
- package/dist/toggle/index.d.cts +0 -3
- package/dist/toggle/index.d.ts +0 -3
- package/dist/toggle/index.js +0 -8
- package/dist/toggle-tip/index.cjs +0 -296
- package/dist/toggle-tip/index.d.cts +0 -32
- package/dist/toggle-tip/index.d.ts +0 -32
- package/dist/toggle-tip/index.js +0 -263
- package/dist/tooltip/index.cjs +0 -58
- package/dist/tooltip/index.d.cts +0 -14
- package/dist/tooltip/index.d.ts +0 -14
- package/dist/tooltip/index.js +0 -33
- package/dist/typography/index.cjs +0 -37
- package/dist/typography/index.d.cts +0 -1
- package/dist/typography/index.d.ts +0 -1
- package/dist/typography/index.js +0 -16
- package/dist/visually-hidden/index.cjs +0 -31
- package/dist/visually-hidden/index.js +0 -8
- /package/dist/{card → components/card}/index.d.ts +0 -0
- /package/dist/{collapsible → components/collapsible}/index.d.ts +0 -0
- /package/dist/{collapsible/index.d.cts → components/collapsible/index.js} +0 -0
- /package/dist/{color-picker → components/color-picker}/index.d.ts +0 -0
- /package/dist/{color-picker/index.d.cts → components/color-picker/index.js} +0 -0
- /package/dist/{data-list → components/data-list}/index.d.ts +0 -0
- /package/dist/{data-list/index.d.cts → components/data-list/index.js} +0 -0
- /package/dist/{field → components/field}/index.d.ts +0 -0
- /package/dist/{field/index.d.cts → components/field/index.js} +0 -0
- /package/dist/{list → components/list}/index.d.ts +0 -0
- /package/dist/{list/index.d.cts → components/list/index.js} +0 -0
- /package/dist/{loader → components/loader}/index.d.ts +0 -0
- /package/dist/{loader/index.d.cts → components/loader/index.js} +0 -0
- /package/dist/{progress → components/progress}/index.d.ts +0 -0
- /package/dist/{progress/index.d.cts → components/progress/index.js} +0 -0
- /package/dist/{progress-circle → components/progress-circle}/index.d.ts +0 -0
- /package/dist/{progress-circle/index.d.cts → components/progress-circle/index.js} +0 -0
- /package/dist/{radio-group → components/radio-group}/index.d.ts +0 -0
- /package/dist/{radio-group/index.d.cts → components/radio-group/index.js} +0 -0
- /package/dist/{rating-group → components/rating-group}/index.d.ts +0 -0
- /package/dist/{rating-group/index.d.cts → components/rating-group/index.js} +0 -0
- /package/dist/{table → components/table}/index.d.ts +0 -0
- /package/dist/{table/index.d.cts → components/table/index.js} +0 -0
- /package/dist/{timeline → components/timeline}/index.d.ts +0 -0
- /package/dist/{timeline/index.d.cts → components/timeline/index.js} +0 -0
- /package/dist/{visually-hidden → components/visually-hidden}/index.d.ts +0 -0
- /package/dist/{visually-hidden/index.d.cts → components/visually-hidden/index.js} +0 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { forwardRef } from 'react';
|
3
|
+
import { chakra, } from '@chakra-ui/react';
|
4
|
+
import { dataAttr } from '@saas-ui/core/utils';
|
5
|
+
import { Avatar } from "../avatar/avatar.js";
|
6
|
+
import { withContext, withProvider } from "./persona.context.js";
|
7
|
+
/**
|
8
|
+
* The root component that provides context and styles.
|
9
|
+
*
|
10
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
11
|
+
*/
|
12
|
+
const PersonaRoot = withProvider(forwardRef((props, ref) => {
|
13
|
+
const { outOfOffice, presence, ...rest } = props;
|
14
|
+
return (_jsx(chakra.div, { ref: ref, ...rest, "data-out-of-office": dataAttr(outOfOffice), "data-presence": presence, css: [
|
15
|
+
presence
|
16
|
+
? {
|
17
|
+
'--persona-presence': `colors.presence.${presence}`,
|
18
|
+
}
|
19
|
+
: undefined,
|
20
|
+
rest.css,
|
21
|
+
] }));
|
22
|
+
}), 'root');
|
23
|
+
/**
|
24
|
+
* An avatar with optional status badge.
|
25
|
+
*
|
26
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
27
|
+
*/
|
28
|
+
const PersonaAvatar = forwardRef((props, ref) => {
|
29
|
+
const { name, getInitials = (name) => name?.[0], icon, loading, onError, src, srcSet, children, ...rest } = props;
|
30
|
+
return (_jsx(Avatar, { ref: ref, ...rest, children: children }));
|
31
|
+
});
|
32
|
+
const PersonaPresenceBadge = withContext('span', 'presence');
|
33
|
+
/**
|
34
|
+
* Wrapper component for the labels.
|
35
|
+
*
|
36
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
37
|
+
*/
|
38
|
+
const PersonaDetails = withContext('div', 'details');
|
39
|
+
/**
|
40
|
+
* The main label, usually a name.
|
41
|
+
*
|
42
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
43
|
+
*/
|
44
|
+
const PersonaLabel = withContext('span', 'label');
|
45
|
+
PersonaLabel.displayName = 'PersonaLabel';
|
46
|
+
/**
|
47
|
+
* The secondary label, usually the role of a person.
|
48
|
+
*
|
49
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
50
|
+
*/
|
51
|
+
const PersonaSecondaryLabel = withContext('span', 'secondaryLabel');
|
52
|
+
/**
|
53
|
+
* The tertiary label, typically a status message.
|
54
|
+
*
|
55
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
56
|
+
*/
|
57
|
+
const PersonaTertiaryLabel = withContext('span', 'tertiaryLabel');
|
58
|
+
export { PersonaRoot as Root, PersonaAvatar as Avatar, PersonaPresenceBadge as PresenceBadge, PersonaDetails as Details, PersonaLabel as Label, PersonaSecondaryLabel as SecondaryLabel, PersonaTertiaryLabel as TertiaryLabel, };
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const usePersonaStyles: () => Record<string, import("@chakra-ui/react").SystemStyleObject>, 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>>;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import * as PersonaPrimitive from './persona-primitive.tsx';
|
3
|
+
import type { PersonaVariantProps } from './persona.recipe.ts';
|
4
|
+
import type { PersonaPresence } from './presence.ts';
|
5
|
+
interface PersonaOptions {
|
6
|
+
/**
|
7
|
+
* The name of the person in the avatar.
|
8
|
+
*
|
9
|
+
* - if `src` has loaded, the name will be used as the `alt` attribute of the `img`
|
10
|
+
* - If `src` is not loaded, the name will be used to create the initials
|
11
|
+
*/
|
12
|
+
name?: string;
|
13
|
+
/**
|
14
|
+
* The presence status of the person
|
15
|
+
*
|
16
|
+
* If set will add an AvatarBadge with color configured in `Presence`
|
17
|
+
* Default presence options:
|
18
|
+
* - online
|
19
|
+
* - offline
|
20
|
+
* - busy
|
21
|
+
* - dnd
|
22
|
+
* - away
|
23
|
+
*/
|
24
|
+
presence?: PersonaPresence;
|
25
|
+
/**
|
26
|
+
* The icon shown in the AvatarBadge
|
27
|
+
*/
|
28
|
+
presenceIcon?: React.ReactNode;
|
29
|
+
/**
|
30
|
+
* Indicates that a person is out of office. Changes the presence badge style.
|
31
|
+
*/
|
32
|
+
isOutOfOffice?: boolean;
|
33
|
+
/**
|
34
|
+
* Primary label of the persona, defaults to the name
|
35
|
+
*/
|
36
|
+
label?: React.ReactNode;
|
37
|
+
/**
|
38
|
+
* Secondary label, usually the role of the person
|
39
|
+
* Only visible from md size and up.
|
40
|
+
*/
|
41
|
+
secondaryLabel?: React.ReactNode;
|
42
|
+
/**
|
43
|
+
* Tertiary label, usually the status of the person.
|
44
|
+
* Only visible from lg size and up.
|
45
|
+
*/
|
46
|
+
tertiaryLabel?: React.ReactNode;
|
47
|
+
/**
|
48
|
+
* Hide the persona details next to the avatar.
|
49
|
+
*/
|
50
|
+
hideDetails?: boolean;
|
51
|
+
}
|
52
|
+
export interface PersonaProps extends PersonaOptions, Omit<PersonaPrimitive.AvatarProps, 'size'>, Omit<PersonaPrimitive.RootProps, 'presence'>, PersonaVariantProps {
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* The wrapper component that handles default composition.
|
56
|
+
*
|
57
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
58
|
+
*/
|
59
|
+
export declare const Persona: React.ForwardRefExoticComponent<PersonaProps & React.RefAttributes<HTMLDivElement>>;
|
60
|
+
export interface PersonaAvatarProps extends Omit<PersonaProps, 'hideDetails' | 'label' | 'secondaryLabel' | 'tertiaryLabel' | 'children'> {
|
61
|
+
}
|
62
|
+
export declare const PersonaAvatar: React.ForwardRefExoticComponent<PersonaAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
63
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import * as React from 'react';
|
3
|
+
import * as PersonaPrimitive from "./persona-primitive.js";
|
4
|
+
/**
|
5
|
+
* The wrapper component that handles default composition.
|
6
|
+
*
|
7
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
8
|
+
*/
|
9
|
+
export const Persona = React.forwardRef((props, ref) => {
|
10
|
+
const { name, presence, presenceIcon, isOutOfOffice, label, secondaryLabel, tertiaryLabel, size, hideDetails, children,
|
11
|
+
/** Avatar props */
|
12
|
+
getInitials, icon, loading, onError, src, srcSet, fallback, ...rest } = props;
|
13
|
+
return (_jsxs(PersonaPrimitive.Root, { ref: ref, outOfOffice: isOutOfOffice, presence: presence, size: size, ...rest, children: [_jsx(PersonaPrimitive.Avatar, { name: name, size: size, getInitials: getInitials, icon: icon, loading: loading, onError: onError, src: src, srcSet: srcSet, fallback: fallback, children: presence ? (_jsx(PersonaPrimitive.PresenceBadge, { children: presenceIcon })) : null }), !hideDetails && (_jsxs(PersonaPrimitive.Details, { children: [_jsx(PersonaPrimitive.Label, { children: label || name }), secondaryLabel && (_jsx(PersonaPrimitive.SecondaryLabel, { children: secondaryLabel })), tertiaryLabel && (_jsx(PersonaPrimitive.TertiaryLabel, { children: tertiaryLabel })), children] }))] }));
|
14
|
+
});
|
15
|
+
Persona.displayName = 'Persona';
|
16
|
+
export const PersonaAvatar = React.forwardRef(function PersonaAvatar(props, ref) {
|
17
|
+
return _jsx(Persona, { ref: ref, ...props, hideDetails: true });
|
18
|
+
});
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { type RecipeVariantProps } from '@chakra-ui/react/styled-system';
|
2
|
+
export declare const personaSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "presence" | "root" | "avatar" | "details" | "secondaryLabel" | "tertiaryLabel", {
|
3
|
+
size: {
|
4
|
+
'2xs': {
|
5
|
+
details: {
|
6
|
+
ms: number;
|
7
|
+
};
|
8
|
+
label: {
|
9
|
+
fontSize: "xs";
|
10
|
+
};
|
11
|
+
secondaryLabel: {
|
12
|
+
display: "none";
|
13
|
+
};
|
14
|
+
tertiaryLabel: {
|
15
|
+
display: "none";
|
16
|
+
};
|
17
|
+
};
|
18
|
+
xs: {
|
19
|
+
details: {
|
20
|
+
ms: number;
|
21
|
+
};
|
22
|
+
label: {
|
23
|
+
fontSize: "xs";
|
24
|
+
};
|
25
|
+
secondaryLabel: {
|
26
|
+
display: "none";
|
27
|
+
};
|
28
|
+
tertiaryLabel: {
|
29
|
+
display: "none";
|
30
|
+
};
|
31
|
+
};
|
32
|
+
sm: {
|
33
|
+
details: {
|
34
|
+
ms: number;
|
35
|
+
};
|
36
|
+
label: {
|
37
|
+
fontSize: "sm";
|
38
|
+
};
|
39
|
+
secondaryLabel: {
|
40
|
+
fontSize: "xs";
|
41
|
+
};
|
42
|
+
tertiaryLabel: {
|
43
|
+
display: "none";
|
44
|
+
};
|
45
|
+
};
|
46
|
+
md: {
|
47
|
+
details: {
|
48
|
+
ms: number;
|
49
|
+
};
|
50
|
+
label: {
|
51
|
+
fontSize: "sm";
|
52
|
+
};
|
53
|
+
secondaryLabel: {
|
54
|
+
fontSize: "xs";
|
55
|
+
};
|
56
|
+
tertiaryLabel: {
|
57
|
+
display: "none";
|
58
|
+
};
|
59
|
+
};
|
60
|
+
lg: {
|
61
|
+
details: {
|
62
|
+
ms: number;
|
63
|
+
};
|
64
|
+
label: {
|
65
|
+
fontSize: "md";
|
66
|
+
};
|
67
|
+
secondaryLabel: {
|
68
|
+
fontSize: "sm";
|
69
|
+
};
|
70
|
+
tertiaryLabel: {
|
71
|
+
fontSize: "sm";
|
72
|
+
};
|
73
|
+
};
|
74
|
+
xl: {
|
75
|
+
details: {
|
76
|
+
ms: number;
|
77
|
+
};
|
78
|
+
label: {
|
79
|
+
fontSize: "lg";
|
80
|
+
};
|
81
|
+
secondaryLabel: {
|
82
|
+
fontSize: "md";
|
83
|
+
};
|
84
|
+
tertiaryLabel: {
|
85
|
+
fontSize: "md";
|
86
|
+
};
|
87
|
+
};
|
88
|
+
'2xl': {
|
89
|
+
details: {
|
90
|
+
ms: number;
|
91
|
+
};
|
92
|
+
label: {
|
93
|
+
fontSize: "xl";
|
94
|
+
};
|
95
|
+
secondaryLabel: {
|
96
|
+
fontSize: "lg";
|
97
|
+
};
|
98
|
+
tertiaryLabel: {
|
99
|
+
fontSize: "lg";
|
100
|
+
};
|
101
|
+
};
|
102
|
+
};
|
103
|
+
}>;
|
104
|
+
export type PersonaVariantProps = RecipeVariantProps<typeof personaSlotRecipe>;
|
@@ -0,0 +1,106 @@
|
|
1
|
+
import { defineSlotRecipe, defineStyle, } from '@chakra-ui/react/styled-system';
|
2
|
+
const baseStyleLabel = defineStyle({
|
3
|
+
overflow: 'hidden',
|
4
|
+
whiteSpace: 'nowrap',
|
5
|
+
textOverflow: 'ellipsis',
|
6
|
+
minW: 0,
|
7
|
+
color: 'fg',
|
8
|
+
});
|
9
|
+
export const personaSlotRecipe = defineSlotRecipe({
|
10
|
+
className: 'sui-persona',
|
11
|
+
slots: [
|
12
|
+
'root',
|
13
|
+
'avatar',
|
14
|
+
'presence',
|
15
|
+
'details',
|
16
|
+
'label',
|
17
|
+
'secondaryLabel',
|
18
|
+
'tertiaryLabel',
|
19
|
+
],
|
20
|
+
base: {
|
21
|
+
root: {
|
22
|
+
'--presence-border-color': 'var(--bg-currentcolor)',
|
23
|
+
display: 'flex',
|
24
|
+
flexDirection: 'row',
|
25
|
+
alignItems: 'center',
|
26
|
+
},
|
27
|
+
presence: {
|
28
|
+
display: 'flex',
|
29
|
+
alignItems: 'center',
|
30
|
+
justifyContent: 'center',
|
31
|
+
position: 'absolute',
|
32
|
+
bottom: 0,
|
33
|
+
right: 0,
|
34
|
+
boxSize: 'calc(var(--avatar-size) / 3)',
|
35
|
+
transform: 'translate(12%, 12%)',
|
36
|
+
borderWidth: '0.10em',
|
37
|
+
borderRadius: '50%',
|
38
|
+
borderColor: 'var(--presence-border-color)',
|
39
|
+
bg: 'var(--persona-presence)',
|
40
|
+
},
|
41
|
+
details: {
|
42
|
+
display: 'flex',
|
43
|
+
flexDirection: 'column',
|
44
|
+
minW: 0,
|
45
|
+
lineHeight: 'short',
|
46
|
+
},
|
47
|
+
label: baseStyleLabel,
|
48
|
+
secondaryLabel: {
|
49
|
+
...baseStyleLabel,
|
50
|
+
color: 'fg/60',
|
51
|
+
},
|
52
|
+
tertiaryLabel: {
|
53
|
+
...baseStyleLabel,
|
54
|
+
color: 'fg/60',
|
55
|
+
},
|
56
|
+
},
|
57
|
+
variants: {
|
58
|
+
size: {
|
59
|
+
'2xs': {
|
60
|
+
details: { ms: 1 },
|
61
|
+
label: { fontSize: 'xs' },
|
62
|
+
secondaryLabel: { display: 'none' },
|
63
|
+
tertiaryLabel: { display: 'none' },
|
64
|
+
},
|
65
|
+
xs: {
|
66
|
+
details: { ms: 1.5 },
|
67
|
+
label: { fontSize: 'xs' },
|
68
|
+
secondaryLabel: { display: 'none' },
|
69
|
+
tertiaryLabel: { display: 'none' },
|
70
|
+
},
|
71
|
+
sm: {
|
72
|
+
details: { ms: 2 },
|
73
|
+
label: { fontSize: 'sm' },
|
74
|
+
secondaryLabel: { fontSize: 'xs' },
|
75
|
+
tertiaryLabel: { display: 'none' },
|
76
|
+
},
|
77
|
+
md: {
|
78
|
+
details: { ms: 2 },
|
79
|
+
label: { fontSize: 'sm' },
|
80
|
+
secondaryLabel: { fontSize: 'xs' },
|
81
|
+
tertiaryLabel: { display: 'none' },
|
82
|
+
},
|
83
|
+
lg: {
|
84
|
+
details: { ms: 3 },
|
85
|
+
label: { fontSize: 'md' },
|
86
|
+
secondaryLabel: { fontSize: 'sm' },
|
87
|
+
tertiaryLabel: { fontSize: 'sm' },
|
88
|
+
},
|
89
|
+
xl: {
|
90
|
+
details: { ms: 4 },
|
91
|
+
label: { fontSize: 'lg' },
|
92
|
+
secondaryLabel: { fontSize: 'md' },
|
93
|
+
tertiaryLabel: { fontSize: 'md' },
|
94
|
+
},
|
95
|
+
'2xl': {
|
96
|
+
details: { ms: 4 },
|
97
|
+
label: { fontSize: 'xl' },
|
98
|
+
secondaryLabel: { fontSize: 'lg' },
|
99
|
+
tertiaryLabel: { fontSize: 'lg' },
|
100
|
+
},
|
101
|
+
},
|
102
|
+
},
|
103
|
+
defaultVariants: {
|
104
|
+
size: 'md',
|
105
|
+
},
|
106
|
+
});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export type PersonaPresence = 'online' | 'offline' | 'busy' | 'dnd' | 'away';
|
2
|
+
export interface PersonaPresenceConfig {
|
3
|
+
label: string;
|
4
|
+
color: string;
|
5
|
+
}
|
6
|
+
export type PersonaPresenceOptions<P extends string = PersonaPresence> = Record<P, PersonaPresenceConfig>;
|
7
|
+
/**
|
8
|
+
* The presence configuration object.
|
9
|
+
*
|
10
|
+
* Default presence values: online, offline, busy, dnd, away
|
11
|
+
*
|
12
|
+
* You can overwrite colors in the theme semantic tokens.
|
13
|
+
* theme.semanticTokens.colors['presence.online'] = 'cyan.500'
|
14
|
+
*
|
15
|
+
* Or add a custom presence value
|
16
|
+
* theme.semanticTokens.colors['presence.vacay'] = 'blue.500'
|
17
|
+
*
|
18
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
19
|
+
*/
|
20
|
+
export declare const defaultPersonaPresenceOptions: PersonaPresenceOptions;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* The presence configuration object.
|
3
|
+
*
|
4
|
+
* Default presence values: online, offline, busy, dnd, away
|
5
|
+
*
|
6
|
+
* You can overwrite colors in the theme semantic tokens.
|
7
|
+
* theme.semanticTokens.colors['presence.online'] = 'cyan.500'
|
8
|
+
*
|
9
|
+
* Or add a custom presence value
|
10
|
+
* theme.semanticTokens.colors['presence.vacay'] = 'blue.500'
|
11
|
+
*
|
12
|
+
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
13
|
+
*/
|
14
|
+
export const defaultPersonaPresenceOptions = {
|
15
|
+
online: {
|
16
|
+
label: 'Online',
|
17
|
+
color: 'presence.online',
|
18
|
+
},
|
19
|
+
offline: {
|
20
|
+
label: 'Offline',
|
21
|
+
color: 'presence.offline',
|
22
|
+
},
|
23
|
+
busy: {
|
24
|
+
label: 'Busy',
|
25
|
+
color: 'presence.busy',
|
26
|
+
},
|
27
|
+
dnd: {
|
28
|
+
label: 'Do-not-disturb',
|
29
|
+
color: 'presence.dnd',
|
30
|
+
},
|
31
|
+
away: {
|
32
|
+
label: 'Away',
|
33
|
+
color: 'presence.away',
|
34
|
+
},
|
35
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { PinInput } from "./pin-input.js";
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { PinInput as ChakraPinInput } from '@chakra-ui/react/pin-input';
|
2
|
+
export interface PinInputProps extends ChakraPinInput.RootProps {
|
3
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
4
|
+
pinLength?: number;
|
5
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
6
|
+
attached?: boolean;
|
7
|
+
}
|
8
|
+
export declare const PinInput: import("react").ForwardRefExoticComponent<PinInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { forwardRef } from 'react';
|
3
|
+
import { Group } from '@chakra-ui/react/group';
|
4
|
+
import { PinInput as ChakraPinInput } from '@chakra-ui/react/pin-input';
|
5
|
+
export const PinInput = forwardRef(function PinInput(props, ref) {
|
6
|
+
const { pinLength = 4, inputProps, rootRef, attached, gap = attached ? 0 : 2, ...rest } = props;
|
7
|
+
return (_jsxs(ChakraPinInput.Root, { ref: rootRef, ...rest, children: [_jsx(ChakraPinInput.HiddenInput, { ref: ref, ...inputProps }), _jsx(ChakraPinInput.Control, { children: _jsx(Group, { attached: attached, gap: gap, children: Array.from({ length: pinLength }).map((_, index) => (_jsx(ChakraPinInput.Input, { index: index }, index))) }) })] }));
|
8
|
+
});
|
@@ -0,0 +1,236 @@
|
|
1
|
+
export declare const pinInputSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "root" | "input", {
|
2
|
+
size: {
|
3
|
+
sm: {
|
4
|
+
input: {
|
5
|
+
px: number;
|
6
|
+
borderRadius: "control.sm";
|
7
|
+
textStyle: "xs";
|
8
|
+
'--input-height': "sizes.6";
|
9
|
+
} | {
|
10
|
+
px: number;
|
11
|
+
borderRadius: "control.md";
|
12
|
+
textStyle: "sm";
|
13
|
+
'--input-height': "sizes.7";
|
14
|
+
} | {
|
15
|
+
px: number;
|
16
|
+
borderRadius: "control.md";
|
17
|
+
textStyle: "sm";
|
18
|
+
'--input-height': "sizes.8";
|
19
|
+
} | {
|
20
|
+
px: number;
|
21
|
+
borderRadius: "control.lg";
|
22
|
+
textStyle: "md";
|
23
|
+
'--input-height': "sizes.10";
|
24
|
+
} | {
|
25
|
+
px: number;
|
26
|
+
borderRadius: "control.lg";
|
27
|
+
textStyle: "md";
|
28
|
+
'--input-height': "sizes.12";
|
29
|
+
};
|
30
|
+
};
|
31
|
+
md: {
|
32
|
+
input: {
|
33
|
+
px: number;
|
34
|
+
borderRadius: "control.sm";
|
35
|
+
textStyle: "xs";
|
36
|
+
'--input-height': "sizes.6";
|
37
|
+
} | {
|
38
|
+
px: number;
|
39
|
+
borderRadius: "control.md";
|
40
|
+
textStyle: "sm";
|
41
|
+
'--input-height': "sizes.7";
|
42
|
+
} | {
|
43
|
+
px: number;
|
44
|
+
borderRadius: "control.md";
|
45
|
+
textStyle: "sm";
|
46
|
+
'--input-height': "sizes.8";
|
47
|
+
} | {
|
48
|
+
px: number;
|
49
|
+
borderRadius: "control.lg";
|
50
|
+
textStyle: "md";
|
51
|
+
'--input-height': "sizes.10";
|
52
|
+
} | {
|
53
|
+
px: number;
|
54
|
+
borderRadius: "control.lg";
|
55
|
+
textStyle: "md";
|
56
|
+
'--input-height': "sizes.12";
|
57
|
+
};
|
58
|
+
};
|
59
|
+
lg: {
|
60
|
+
input: {
|
61
|
+
px: number;
|
62
|
+
borderRadius: "control.sm";
|
63
|
+
textStyle: "xs";
|
64
|
+
'--input-height': "sizes.6";
|
65
|
+
} | {
|
66
|
+
px: number;
|
67
|
+
borderRadius: "control.md";
|
68
|
+
textStyle: "sm";
|
69
|
+
'--input-height': "sizes.7";
|
70
|
+
} | {
|
71
|
+
px: number;
|
72
|
+
borderRadius: "control.md";
|
73
|
+
textStyle: "sm";
|
74
|
+
'--input-height': "sizes.8";
|
75
|
+
} | {
|
76
|
+
px: number;
|
77
|
+
borderRadius: "control.lg";
|
78
|
+
textStyle: "md";
|
79
|
+
'--input-height': "sizes.10";
|
80
|
+
} | {
|
81
|
+
px: number;
|
82
|
+
borderRadius: "control.lg";
|
83
|
+
textStyle: "md";
|
84
|
+
'--input-height': "sizes.12";
|
85
|
+
};
|
86
|
+
};
|
87
|
+
xl: {
|
88
|
+
input: {
|
89
|
+
px: number;
|
90
|
+
borderRadius: "control.sm";
|
91
|
+
textStyle: "xs";
|
92
|
+
'--input-height': "sizes.6";
|
93
|
+
} | {
|
94
|
+
px: number;
|
95
|
+
borderRadius: "control.md";
|
96
|
+
textStyle: "sm";
|
97
|
+
'--input-height': "sizes.7";
|
98
|
+
} | {
|
99
|
+
px: number;
|
100
|
+
borderRadius: "control.md";
|
101
|
+
textStyle: "sm";
|
102
|
+
'--input-height': "sizes.8";
|
103
|
+
} | {
|
104
|
+
px: number;
|
105
|
+
borderRadius: "control.lg";
|
106
|
+
textStyle: "md";
|
107
|
+
'--input-height': "sizes.10";
|
108
|
+
} | {
|
109
|
+
px: number;
|
110
|
+
borderRadius: "control.lg";
|
111
|
+
textStyle: "md";
|
112
|
+
'--input-height': "sizes.12";
|
113
|
+
};
|
114
|
+
};
|
115
|
+
xs: {
|
116
|
+
input: {
|
117
|
+
px: number;
|
118
|
+
borderRadius: "control.sm";
|
119
|
+
textStyle: "xs";
|
120
|
+
'--input-height': "sizes.6";
|
121
|
+
} | {
|
122
|
+
px: number;
|
123
|
+
borderRadius: "control.md";
|
124
|
+
textStyle: "sm";
|
125
|
+
'--input-height': "sizes.7";
|
126
|
+
} | {
|
127
|
+
px: number;
|
128
|
+
borderRadius: "control.md";
|
129
|
+
textStyle: "sm";
|
130
|
+
'--input-height': "sizes.8";
|
131
|
+
} | {
|
132
|
+
px: number;
|
133
|
+
borderRadius: "control.lg";
|
134
|
+
textStyle: "md";
|
135
|
+
'--input-height': "sizes.10";
|
136
|
+
} | {
|
137
|
+
px: number;
|
138
|
+
borderRadius: "control.lg";
|
139
|
+
textStyle: "md";
|
140
|
+
'--input-height': "sizes.12";
|
141
|
+
};
|
142
|
+
};
|
143
|
+
};
|
144
|
+
variant: {
|
145
|
+
outline: {
|
146
|
+
input: {
|
147
|
+
bg: "transparent";
|
148
|
+
borderWidth: "1px";
|
149
|
+
borderColor: "border";
|
150
|
+
focusVisibleRing: "inside";
|
151
|
+
focusRingWidth: "0";
|
152
|
+
_hover: {
|
153
|
+
borderColor: "border.emphasized";
|
154
|
+
_focusVisible: {
|
155
|
+
borderColor: "var(--focus-ring-color)";
|
156
|
+
};
|
157
|
+
};
|
158
|
+
} | {
|
159
|
+
borderWidth: "1px";
|
160
|
+
borderColor: "transparent";
|
161
|
+
bg: "bg.muted";
|
162
|
+
focusVisibleRing: "inside";
|
163
|
+
} | {
|
164
|
+
bg: "transparent";
|
165
|
+
borderBottomWidth: "1px";
|
166
|
+
borderBottomColor: "border";
|
167
|
+
borderRadius: "0";
|
168
|
+
px: "0";
|
169
|
+
_focusVisible: {
|
170
|
+
borderColor: "var(--focus-color)";
|
171
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
172
|
+
};
|
173
|
+
};
|
174
|
+
};
|
175
|
+
subtle: {
|
176
|
+
input: {
|
177
|
+
bg: "transparent";
|
178
|
+
borderWidth: "1px";
|
179
|
+
borderColor: "border";
|
180
|
+
focusVisibleRing: "inside";
|
181
|
+
focusRingWidth: "0";
|
182
|
+
_hover: {
|
183
|
+
borderColor: "border.emphasized";
|
184
|
+
_focusVisible: {
|
185
|
+
borderColor: "var(--focus-ring-color)";
|
186
|
+
};
|
187
|
+
};
|
188
|
+
} | {
|
189
|
+
borderWidth: "1px";
|
190
|
+
borderColor: "transparent";
|
191
|
+
bg: "bg.muted";
|
192
|
+
focusVisibleRing: "inside";
|
193
|
+
} | {
|
194
|
+
bg: "transparent";
|
195
|
+
borderBottomWidth: "1px";
|
196
|
+
borderBottomColor: "border";
|
197
|
+
borderRadius: "0";
|
198
|
+
px: "0";
|
199
|
+
_focusVisible: {
|
200
|
+
borderColor: "var(--focus-color)";
|
201
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
202
|
+
};
|
203
|
+
};
|
204
|
+
};
|
205
|
+
flushed: {
|
206
|
+
input: {
|
207
|
+
bg: "transparent";
|
208
|
+
borderWidth: "1px";
|
209
|
+
borderColor: "border";
|
210
|
+
focusVisibleRing: "inside";
|
211
|
+
focusRingWidth: "0";
|
212
|
+
_hover: {
|
213
|
+
borderColor: "border.emphasized";
|
214
|
+
_focusVisible: {
|
215
|
+
borderColor: "var(--focus-ring-color)";
|
216
|
+
};
|
217
|
+
};
|
218
|
+
} | {
|
219
|
+
borderWidth: "1px";
|
220
|
+
borderColor: "transparent";
|
221
|
+
bg: "bg.muted";
|
222
|
+
focusVisibleRing: "inside";
|
223
|
+
} | {
|
224
|
+
bg: "transparent";
|
225
|
+
borderBottomWidth: "1px";
|
226
|
+
borderBottomColor: "border";
|
227
|
+
borderRadius: "0";
|
228
|
+
px: "0";
|
229
|
+
_focusVisible: {
|
230
|
+
borderColor: "var(--focus-color)";
|
231
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
232
|
+
};
|
233
|
+
};
|
234
|
+
};
|
235
|
+
};
|
236
|
+
}>;
|