@xerobi/ui 0.0.0-stage → 0.1.1
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 +20 -0
- package/LICENSE +21 -0
- package/README.md +164 -2
- package/dist/blocks/data-table/grid/data-grid.d.ts +6 -0
- package/dist/blocks/data-table/grid/data-grid.js +147 -0
- package/dist/blocks/data-table/grid/index.d.ts +2 -0
- package/dist/blocks/data-table/grid/index.js +1 -0
- package/dist/blocks/data-table/grid/types.d.ts +47 -0
- package/dist/blocks/data-table/grid/types.js +1 -0
- package/dist/blocks/data-table/index.d.ts +3 -0
- package/dist/blocks/data-table/index.js +3 -0
- package/dist/blocks/data-table/table/index.d.ts +7 -0
- package/dist/blocks/data-table/table/index.js +7 -0
- package/dist/blocks/data-table/table/table-empty-rows.d.ts +5 -0
- package/dist/blocks/data-table/table/table-empty-rows.js +8 -0
- package/dist/blocks/data-table/table/table-head-custom.d.ts +18 -0
- package/dist/blocks/data-table/table/table-head-custom.js +13 -0
- package/dist/blocks/data-table/table/table-no-data.d.ts +7 -0
- package/dist/blocks/data-table/table/table-no-data.js +8 -0
- package/dist/blocks/data-table/table/table-pagination-custom.d.ts +16 -0
- package/dist/blocks/data-table/table/table-pagination-custom.js +13 -0
- package/dist/blocks/data-table/table/table-selected-action.d.ts +11 -0
- package/dist/blocks/data-table/table/table-selected-action.js +9 -0
- package/dist/blocks/data-table/table/table-skeleton.d.ts +5 -0
- package/dist/blocks/data-table/table/table-skeleton.js +7 -0
- package/dist/blocks/data-table/table/utils.d.ts +1 -0
- package/dist/blocks/data-table/table/utils.js +3 -0
- package/dist/blocks/data-table/tanstack.d.ts +2 -0
- package/dist/blocks/data-table/tanstack.js +1 -0
- package/dist/blocks/filters-result/filters-block.d.ts +7 -0
- package/dist/blocks/filters-result/filters-block.js +8 -0
- package/dist/blocks/filters-result/filters-result.d.ts +16 -0
- package/dist/blocks/filters-result/filters-result.js +10 -0
- package/dist/blocks/filters-result/index.d.ts +2 -0
- package/dist/blocks/filters-result/index.js +2 -0
- package/dist/blocks/form/field-autocomplete.d.ts +18 -0
- package/dist/blocks/form/field-autocomplete.js +27 -0
- package/dist/blocks/form/field-checkbox.d.ts +25 -0
- package/dist/blocks/form/field-checkbox.js +23 -0
- package/dist/blocks/form/field-code.d.ts +8 -0
- package/dist/blocks/form/field-code.js +8 -0
- package/dist/blocks/form/field-controller.d.ts +23 -0
- package/dist/blocks/form/field-controller.js +32 -0
- package/dist/blocks/form/field-country-select.d.ts +5 -0
- package/dist/blocks/form/field-country-select.js +9 -0
- package/dist/blocks/form/field-date-picker.d.ts +14 -0
- package/dist/blocks/form/field-date-picker.js +40 -0
- package/dist/blocks/form/field-editor.d.ts +5 -0
- package/dist/blocks/form/field-editor.js +7 -0
- package/dist/blocks/form/field-number-input.d.ts +5 -0
- package/dist/blocks/form/field-number-input.js +7 -0
- package/dist/blocks/form/field-phone.d.ts +5 -0
- package/dist/blocks/form/field-phone.js +7 -0
- package/dist/blocks/form/field-radio-group.d.ts +12 -0
- package/dist/blocks/form/field-radio-group.js +15 -0
- package/dist/blocks/form/field-rating.d.ts +6 -0
- package/dist/blocks/form/field-rating.js +8 -0
- package/dist/blocks/form/field-select.d.ts +21 -0
- package/dist/blocks/form/field-select.js +24 -0
- package/dist/blocks/form/field-slider.d.ts +6 -0
- package/dist/blocks/form/field-slider.js +8 -0
- package/dist/blocks/form/field-switch.d.ts +25 -0
- package/dist/blocks/form/field-switch.js +23 -0
- package/dist/blocks/form/field-text.d.ts +8 -0
- package/dist/blocks/form/field-text.js +28 -0
- package/dist/blocks/form/field-upload.d.ts +7 -0
- package/dist/blocks/form/field-upload.js +17 -0
- package/dist/blocks/form/fields.d.ts +38 -0
- package/dist/blocks/form/fields.js +39 -0
- package/dist/blocks/form/form-context.d.ts +13 -0
- package/dist/blocks/form/form-context.js +18 -0
- package/dist/blocks/form/form-provider.d.ts +6 -0
- package/dist/blocks/form/form-provider.js +10 -0
- package/dist/blocks/form/help-text.d.ts +6 -0
- package/dist/blocks/form/help-text.js +8 -0
- package/dist/blocks/form/index.d.ts +23 -0
- package/dist/blocks/form/index.js +22 -0
- package/dist/blocks/form/schema-helper.d.ts +38 -0
- package/dist/blocks/form/schema-helper.js +80 -0
- package/dist/blocks/index.d.ts +9 -0
- package/dist/blocks/index.js +9 -0
- package/dist/blocks/mega-menu/classes.d.ts +31 -0
- package/dist/blocks/mega-menu/classes.js +12 -0
- package/dist/blocks/mega-menu/components.d.ts +37 -0
- package/dist/blocks/mega-menu/components.js +78 -0
- package/dist/blocks/mega-menu/horizontal.d.ts +2 -0
- package/dist/blocks/mega-menu/horizontal.js +9 -0
- package/dist/blocks/mega-menu/index.d.ts +5 -0
- package/dist/blocks/mega-menu/index.js +4 -0
- package/dist/blocks/mega-menu/mega-nav-list.d.ts +7 -0
- package/dist/blocks/mega-menu/mega-nav-list.js +25 -0
- package/dist/blocks/mega-menu/mobile.d.ts +16 -0
- package/dist/blocks/mega-menu/mobile.js +27 -0
- package/dist/blocks/mega-menu/types.d.ts +65 -0
- package/dist/blocks/mega-menu/types.js +1 -0
- package/dist/blocks/mega-menu/vertical.d.ts +2 -0
- package/dist/blocks/mega-menu/vertical.js +9 -0
- package/dist/blocks/nav-basic/classes.d.ts +26 -0
- package/dist/blocks/nav-basic/classes.js +7 -0
- package/dist/blocks/nav-basic/desktop.d.ts +2 -0
- package/dist/blocks/nav-basic/desktop.js +26 -0
- package/dist/blocks/nav-basic/index.d.ts +4 -0
- package/dist/blocks/nav-basic/index.js +3 -0
- package/dist/blocks/nav-basic/mobile.d.ts +2 -0
- package/dist/blocks/nav-basic/mobile.js +20 -0
- package/dist/blocks/nav-basic/types.d.ts +14 -0
- package/dist/blocks/nav-basic/types.js +1 -0
- package/dist/blocks/nav-core/elements.d.ts +32 -0
- package/dist/blocks/nav-core/elements.js +37 -0
- package/dist/blocks/nav-core/index.d.ts +6 -0
- package/dist/blocks/nav-core/index.js +6 -0
- package/dist/blocks/nav-core/link.d.ts +12 -0
- package/dist/blocks/nav-core/link.js +16 -0
- package/dist/blocks/nav-core/nav-dropdown.d.ts +19 -0
- package/dist/blocks/nav-core/nav-dropdown.js +9 -0
- package/dist/blocks/nav-core/nav-item.d.ts +13 -0
- package/dist/blocks/nav-core/nav-item.js +36 -0
- package/dist/blocks/nav-core/types.d.ts +38 -0
- package/dist/blocks/nav-core/types.js +1 -0
- package/dist/blocks/nav-core/utils.d.ts +4 -0
- package/dist/blocks/nav-core/utils.js +17 -0
- package/dist/blocks/nav-section/classes.d.ts +27 -0
- package/dist/blocks/nav-section/classes.js +8 -0
- package/dist/blocks/nav-section/horizontal.d.ts +2 -0
- package/dist/blocks/nav-section/horizontal.js +12 -0
- package/dist/blocks/nav-section/hover-list.d.ts +13 -0
- package/dist/blocks/nav-section/hover-list.js +27 -0
- package/dist/blocks/nav-section/index.d.ts +5 -0
- package/dist/blocks/nav-section/index.js +4 -0
- package/dist/blocks/nav-section/mini.d.ts +2 -0
- package/dist/blocks/nav-section/mini.js +12 -0
- package/dist/blocks/nav-section/types.d.ts +20 -0
- package/dist/blocks/nav-section/types.js +1 -0
- package/dist/blocks/nav-section/vertical.d.ts +2 -0
- package/dist/blocks/nav-section/vertical.js +28 -0
- package/dist/blocks/settings/index.d.ts +5 -0
- package/dist/blocks/settings/index.js +4 -0
- package/dist/blocks/settings/settings-button.d.ts +1 -0
- package/dist/blocks/settings/settings-button.js +9 -0
- package/dist/blocks/settings/settings-config.d.ts +5 -0
- package/dist/blocks/settings/settings-config.js +14 -0
- package/dist/blocks/settings/settings-context.d.ts +7 -0
- package/dist/blocks/settings/settings-context.js +51 -0
- package/dist/blocks/settings/settings-drawer.d.ts +2 -0
- package/dist/blocks/settings/settings-drawer.js +61 -0
- package/dist/blocks/settings/types.d.ts +34 -0
- package/dist/blocks/settings/types.js +1 -0
- package/dist/blocks/sidebar/index.d.ts +1 -0
- package/dist/blocks/sidebar/index.js +1 -0
- package/dist/blocks/sidebar/sidebar.d.ts +63 -0
- package/dist/blocks/sidebar/sidebar.js +256 -0
- package/dist/components/accordion/accordion.d.ts +6 -0
- package/dist/components/accordion/accordion.js +18 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/alert/alert.d.ts +10 -0
- package/dist/components/alert/alert.js +33 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +18 -0
- package/dist/components/alert-dialog/alert-dialog.js +42 -0
- package/dist/components/alert-dialog/index.d.ts +1 -0
- package/dist/components/alert-dialog/index.js +1 -0
- package/dist/components/animate/animate-border.d.ts +31 -0
- package/dist/components/animate/animate-border.js +77 -0
- package/dist/components/animate/animate-count-up.d.ts +12 -0
- package/dist/components/animate/animate-count-up.js +33 -0
- package/dist/components/animate/animate-logo.d.ts +10 -0
- package/dist/components/animate/animate-logo.js +20 -0
- package/dist/components/animate/animate-text.d.ts +19 -0
- package/dist/components/animate/animate-text.js +44 -0
- package/dist/components/animate/features.d.ts +2 -0
- package/dist/components/animate/features.js +2 -0
- package/dist/components/animate/index.d.ts +9 -0
- package/dist/components/animate/index.js +9 -0
- package/dist/components/animate/motion-container.d.ts +8 -0
- package/dist/components/animate/motion-container.js +7 -0
- package/dist/components/animate/motion-lazy.d.ts +4 -0
- package/dist/components/animate/motion-lazy.js +7 -0
- package/dist/components/animate/motion-viewport.d.ts +7 -0
- package/dist/components/animate/motion-viewport.js +24 -0
- package/dist/components/animate/scroll-progress/index.d.ts +2 -0
- package/dist/components/animate/scroll-progress/index.js +2 -0
- package/dist/components/animate/scroll-progress/scroll-progress.d.ts +22 -0
- package/dist/components/animate/scroll-progress/scroll-progress.js +37 -0
- package/dist/components/animate/scroll-progress/use-scroll-progress.d.ts +10 -0
- package/dist/components/animate/scroll-progress/use-scroll-progress.js +9 -0
- package/dist/components/animate/variants/actions.d.ts +9 -0
- package/dist/components/animate/variants/actions.js +17 -0
- package/dist/components/animate/variants/background.d.ts +6 -0
- package/dist/components/animate/variants/background.js +110 -0
- package/dist/components/animate/variants/bounce.d.ts +8 -0
- package/dist/components/animate/variants/bounce.js +92 -0
- package/dist/components/animate/variants/container.d.ts +7 -0
- package/dist/components/animate/variants/container.js +16 -0
- package/dist/components/animate/variants/fade.d.ts +9 -0
- package/dist/components/animate/variants/fade.js +77 -0
- package/dist/components/animate/variants/flip.d.ts +9 -0
- package/dist/components/animate/variants/flip.js +28 -0
- package/dist/components/animate/variants/index.d.ts +12 -0
- package/dist/components/animate/variants/index.js +12 -0
- package/dist/components/animate/variants/path.d.ts +2 -0
- package/dist/components/animate/variants/path.js +12 -0
- package/dist/components/animate/variants/rotate.d.ts +9 -0
- package/dist/components/animate/variants/rotate.js +20 -0
- package/dist/components/animate/variants/scale.d.ts +8 -0
- package/dist/components/animate/variants/scale.js +37 -0
- package/dist/components/animate/variants/slide.d.ts +9 -0
- package/dist/components/animate/variants/slide.js +51 -0
- package/dist/components/animate/variants/transition.d.ts +3 -0
- package/dist/components/animate/variants/transition.js +10 -0
- package/dist/components/animate/variants/zoom.d.ts +9 -0
- package/dist/components/animate/variants/zoom.js +120 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +4 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +9 -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 +11 -0
- package/dist/components/avatar/avatar.js +23 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.js +79 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +10 -0
- package/dist/components/breadcrumb/breadcrumb.js +37 -0
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumb/index.js +1 -0
- package/dist/components/button/button.d.ts +20 -0
- package/dist/components/button/button.js +120 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/button-group.d.ts +10 -0
- package/dist/components/button-group/button-group.js +37 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/calendar/calendar.d.ts +10 -0
- package/dist/components/calendar/calendar.js +76 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/card/card.d.ts +11 -0
- package/dist/components/card/card.js +25 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/carousel/breakpoints.d.ts +7 -0
- package/dist/components/carousel/breakpoints.js +7 -0
- package/dist/components/carousel/carousel.d.ts +2 -0
- package/dist/components/carousel/carousel.js +13 -0
- package/dist/components/carousel/classes.d.ts +31 -0
- package/dist/components/carousel/classes.js +32 -0
- package/dist/components/carousel/components/arrow-button.d.ts +2 -0
- package/dist/components/carousel/components/arrow-button.js +10 -0
- package/dist/components/carousel/components/carousel-arrow-buttons.d.ts +4 -0
- package/dist/components/carousel/components/carousel-arrow-buttons.js +15 -0
- package/dist/components/carousel/components/carousel-dot-buttons.d.ts +2 -0
- package/dist/components/carousel/components/carousel-dot-buttons.js +19 -0
- package/dist/components/carousel/components/carousel-progress-bar.d.ts +2 -0
- package/dist/components/carousel/components/carousel-progress-bar.js +9 -0
- package/dist/components/carousel/components/carousel-slide.d.ts +2 -0
- package/dist/components/carousel/components/carousel-slide.js +16 -0
- package/dist/components/carousel/components/carousel-thumb.d.ts +2 -0
- package/dist/components/carousel/components/carousel-thumb.js +7 -0
- package/dist/components/carousel/components/carousel-thumbs.d.ts +2 -0
- package/dist/components/carousel/components/carousel-thumbs.js +15 -0
- package/dist/components/carousel/components/index.d.ts +7 -0
- package/dist/components/carousel/components/index.js +7 -0
- package/dist/components/carousel/hooks/index.d.ts +7 -0
- package/dist/components/carousel/hooks/index.js +7 -0
- package/dist/components/carousel/hooks/use-carousel-arrows.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-arrows.js +33 -0
- package/dist/components/carousel/hooks/use-carousel-auto-play.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-auto-play.js +31 -0
- package/dist/components/carousel/hooks/use-carousel-auto-scroll.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-auto-scroll.js +31 -0
- package/dist/components/carousel/hooks/use-carousel-dots.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-dots.js +34 -0
- package/dist/components/carousel/hooks/use-carousel-parallax.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-parallax.js +62 -0
- package/dist/components/carousel/hooks/use-carousel-progress.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-progress.js +17 -0
- package/dist/components/carousel/hooks/use-carousel.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel.js +56 -0
- package/dist/components/carousel/hooks/use-thumbs.d.ts +3 -0
- package/dist/components/carousel/hooks/use-thumbs.js +35 -0
- package/dist/components/carousel/hooks/use-viewport-width.d.ts +1 -0
- package/dist/components/carousel/hooks/use-viewport-width.js +9 -0
- package/dist/components/carousel/index.d.ts +6 -0
- package/dist/components/carousel/index.js +5 -0
- package/dist/components/carousel/types.d.ts +104 -0
- package/dist/components/carousel/types.js +1 -0
- package/dist/components/carousel/utils.d.ts +5 -0
- package/dist/components/carousel/utils.js +30 -0
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/chart.js +14 -0
- package/dist/components/chart/classes.d.ts +15 -0
- package/dist/components/chart/classes.js +16 -0
- package/dist/components/chart/components/chart-legends.d.ts +16 -0
- package/dist/components/chart/components/chart-legends.js +7 -0
- package/dist/components/chart/components/chart-loading.d.ts +3 -0
- package/dist/components/chart/components/chart-loading.js +9 -0
- package/dist/components/chart/components/chart-select.d.ts +6 -0
- package/dist/components/chart/components/chart-select.js +14 -0
- package/dist/components/chart/components/index.d.ts +3 -0
- package/dist/components/chart/components/index.js +3 -0
- package/dist/components/chart/index.d.ts +5 -0
- package/dist/components/chart/index.js +4 -0
- package/dist/components/chart/types.d.ts +7 -0
- package/dist/components/chart/types.js +1 -0
- package/dist/components/chart/use-chart.d.ts +6 -0
- package/dist/components/chart/use-chart.js +129 -0
- package/dist/components/checkbox/checkbox.d.ts +7 -0
- package/dist/components/checkbox/checkbox.js +18 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/chip/chip.d.ts +23 -0
- package/dist/components/chip/chip.js +74 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/chip/index.js +1 -0
- package/dist/components/clipboard-text/clipboard-text.d.ts +15 -0
- package/dist/components/clipboard-text/clipboard-text.js +58 -0
- package/dist/components/clipboard-text/index.d.ts +1 -0
- package/dist/components/clipboard-text/index.js +1 -0
- package/dist/components/collapsible/collapsible.d.ts +5 -0
- package/dist/components/collapsible/collapsible.js +13 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/color-utils/classes.d.ts +13 -0
- package/dist/components/color-utils/classes.js +14 -0
- package/dist/components/color-utils/color-picker.d.ts +16 -0
- package/dist/components/color-utils/color-picker.js +40 -0
- package/dist/components/color-utils/color-preview.d.ts +12 -0
- package/dist/components/color-utils/color-preview.js +15 -0
- package/dist/components/color-utils/index.d.ts +3 -0
- package/dist/components/color-utils/index.js +3 -0
- package/dist/components/combobox/combobox.d.ts +24 -0
- package/dist/components/combobox/combobox.js +58 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/command/command.d.ts +19 -0
- package/dist/components/command/command.js +35 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/command/index.js +1 -0
- package/dist/components/context-menu/context-menu.d.ts +29 -0
- package/dist/components/context-menu/context-menu.js +51 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/context-menu/index.js +1 -0
- package/dist/components/country-select/countries.d.ts +6 -0
- package/dist/components/country-select/countries.js +250 -0
- package/dist/components/country-select/country-select.d.ts +16 -0
- package/dist/components/country-select/country-select.js +37 -0
- package/dist/components/country-select/index.d.ts +3 -0
- package/dist/components/country-select/index.js +2 -0
- package/dist/components/custom-breadcrumbs/back-link.d.ts +7 -0
- package/dist/components/custom-breadcrumbs/back-link.js +12 -0
- package/dist/components/custom-breadcrumbs/breadcrumb-link.d.ts +11 -0
- package/dist/components/custom-breadcrumbs/breadcrumb-link.js +10 -0
- package/dist/components/custom-breadcrumbs/custom-breadcrumbs.d.ts +25 -0
- package/dist/components/custom-breadcrumbs/custom-breadcrumbs.js +13 -0
- package/dist/components/custom-breadcrumbs/index.d.ts +5 -0
- package/dist/components/custom-breadcrumbs/index.js +4 -0
- package/dist/components/custom-breadcrumbs/link.d.ts +4 -0
- package/dist/components/custom-breadcrumbs/link.js +6 -0
- package/dist/components/custom-breadcrumbs/more-links.d.ts +5 -0
- package/dist/components/custom-breadcrumbs/more-links.js +6 -0
- package/dist/components/custom-date-range-picker/custom-date-range-picker.d.ts +16 -0
- package/dist/components/custom-date-range-picker/custom-date-range-picker.js +31 -0
- package/dist/components/custom-date-range-picker/index.d.ts +2 -0
- package/dist/components/custom-date-range-picker/index.js +2 -0
- package/dist/components/custom-date-range-picker/use-date-range-picker.d.ts +18 -0
- package/dist/components/custom-date-range-picker/use-date-range-picker.js +33 -0
- package/dist/components/custom-dialog/confirm-dialog.d.ts +11 -0
- package/dist/components/custom-dialog/confirm-dialog.js +7 -0
- package/dist/components/custom-dialog/index.d.ts +1 -0
- package/dist/components/custom-dialog/index.js +1 -0
- package/dist/components/custom-popover/arrow.d.ts +10 -0
- package/dist/components/custom-popover/arrow.js +52 -0
- package/dist/components/custom-popover/custom-popover.d.ts +10 -0
- package/dist/components/custom-popover/custom-popover.js +25 -0
- package/dist/components/custom-popover/index.d.ts +2 -0
- package/dist/components/custom-popover/index.js +1 -0
- package/dist/components/custom-popover/placement.d.ts +8 -0
- package/dist/components/custom-popover/placement.js +11 -0
- package/dist/components/custom-popover/types.d.ts +20 -0
- package/dist/components/custom-popover/types.js +2 -0
- package/dist/components/custom-tabs/custom-tabs.d.ts +8 -0
- package/dist/components/custom-tabs/custom-tabs.js +11 -0
- package/dist/components/custom-tabs/index.d.ts +1 -0
- package/dist/components/custom-tabs/index.js +1 -0
- package/dist/components/dialog/dialog.d.ts +18 -0
- package/dist/components/dialog/dialog.js +40 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/direction/direction.d.ts +1 -0
- package/dist/components/direction/direction.js +2 -0
- package/dist/components/direction/index.d.ts +1 -0
- package/dist/components/direction/index.js +1 -0
- package/dist/components/drawer/drawer.d.ts +16 -0
- package/dist/components/drawer/drawer.js +75 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +29 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +51 -0
- package/dist/components/dropdown-menu/index.d.ts +1 -0
- package/dist/components/dropdown-menu/index.js +1 -0
- package/dist/components/editor/classes.d.ts +43 -0
- package/dist/components/editor/classes.js +44 -0
- package/dist/components/editor/components/code-highlight-block.d.ts +2 -0
- package/dist/components/editor/components/code-highlight-block.js +7 -0
- package/dist/components/editor/components/heading-block.d.ts +3 -0
- package/dist/components/editor/components/heading-block.js +22 -0
- package/dist/components/editor/components/image-block.d.ts +2 -0
- package/dist/components/editor/components/image-block.js +13 -0
- package/dist/components/editor/components/link-block.d.ts +2 -0
- package/dist/components/editor/components/link-block.js +16 -0
- package/dist/components/editor/components/toolbar-item.d.ts +6 -0
- package/dist/components/editor/components/toolbar-item.js +10 -0
- package/dist/components/editor/components/url-popover.d.ts +7 -0
- package/dist/components/editor/components/url-popover.js +19 -0
- package/dist/components/editor/editor.d.ts +13 -0
- package/dist/components/editor/editor.js +90 -0
- package/dist/components/editor/icons.d.ts +27 -0
- package/dist/components/editor/icons.js +26 -0
- package/dist/components/editor/index.d.ts +3 -0
- package/dist/components/editor/index.js +2 -0
- package/dist/components/editor/toolbar.d.ts +2 -0
- package/dist/components/editor/toolbar.js +20 -0
- package/dist/components/editor/types.d.ts +26 -0
- package/dist/components/editor/types.js +1 -0
- package/dist/components/empty-content/default-image.d.ts +2 -0
- package/dist/components/empty-content/default-image.js +2 -0
- package/dist/components/empty-content/empty-content.d.ts +15 -0
- package/dist/components/empty-content/empty-content.js +7 -0
- package/dist/components/empty-content/index.d.ts +2 -0
- package/dist/components/empty-content/index.js +2 -0
- package/dist/components/file-thumbnail/action-buttons.d.ts +2 -0
- package/dist/components/file-thumbnail/action-buttons.js +10 -0
- package/dist/components/file-thumbnail/classes.d.ts +7 -0
- package/dist/components/file-thumbnail/classes.js +8 -0
- package/dist/components/file-thumbnail/file-thumbnail.d.ts +2 -0
- package/dist/components/file-thumbnail/file-thumbnail.js +22 -0
- package/dist/components/file-thumbnail/icons.d.ts +2 -0
- package/dist/components/file-thumbnail/icons.js +39 -0
- package/dist/components/file-thumbnail/index.d.ts +6 -0
- package/dist/components/file-thumbnail/index.js +5 -0
- package/dist/components/file-thumbnail/types.d.ts +18 -0
- package/dist/components/file-thumbnail/types.js +1 -0
- package/dist/components/file-thumbnail/utils.d.ts +21 -0
- package/dist/components/file-thumbnail/utils.js +50 -0
- package/dist/components/flag-icon/classes.d.ts +4 -0
- package/dist/components/flag-icon/classes.js +5 -0
- package/dist/components/flag-icon/flag-icon.d.ts +8 -0
- package/dist/components/flag-icon/flag-icon.js +12 -0
- package/dist/components/flag-icon/index.d.ts +2 -0
- package/dist/components/flag-icon/index.js +2 -0
- package/dist/components/form-label/form-label.d.ts +3 -0
- package/dist/components/form-label/form-label.js +7 -0
- package/dist/components/form-label/index.d.ts +1 -0
- package/dist/components/form-label/index.js +1 -0
- package/dist/components/hover-card/hover-card.d.ts +5 -0
- package/dist/components/hover-card/hover-card.js +14 -0
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/image/classes.d.ts +9 -0
- package/dist/components/image/classes.js +8 -0
- package/dist/components/image/image.d.ts +28 -0
- package/dist/components/image/image.js +58 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image/index.js +2 -0
- package/dist/components/image/placeholder.d.ts +1 -0
- package/dist/components/image/placeholder.js +1 -0
- package/dist/components/index.d.ts +90 -0
- package/dist/components/index.js +90 -0
- package/dist/components/inline-copy-text/index.d.ts +1 -0
- package/dist/components/inline-copy-text/index.js +1 -0
- package/dist/components/inline-copy-text/inline-copy-text.d.ts +35 -0
- package/dist/components/inline-copy-text/inline-copy-text.js +66 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/input.d.ts +3 -0
- package/dist/components/input/input.js +8 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +1 -0
- package/dist/components/input-group/input-group.d.ts +18 -0
- package/dist/components/input-group/input-group.js +57 -0
- package/dist/components/input-otp/index.d.ts +1 -0
- package/dist/components/input-otp/index.js +1 -0
- package/dist/components/input-otp/input-otp.d.ts +11 -0
- package/dist/components/input-otp/input-otp.js +21 -0
- package/dist/components/item/index.d.ts +1 -0
- package/dist/components/item/index.js +1 -0
- package/dist/components/item/item.d.ts +22 -0
- package/dist/components/item/item.js +79 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/kbd/kbd.d.ts +3 -0
- package/dist/components/kbd/kbd.js +10 -0
- package/dist/components/label/classes.d.ts +4 -0
- package/dist/components/label/classes.js +5 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.js +2 -0
- package/dist/components/label/label.d.ts +13 -0
- package/dist/components/label/label.js +10 -0
- package/dist/components/lightbox/classes.d.ts +3 -0
- package/dist/components/lightbox/classes.js +4 -0
- package/dist/components/lightbox/index.d.ts +4 -0
- package/dist/components/lightbox/index.js +3 -0
- package/dist/components/lightbox/lightbox.d.ts +2 -0
- package/dist/components/lightbox/lightbox.js +40 -0
- package/dist/components/lightbox/types.d.ts +11 -0
- package/dist/components/lightbox/types.js +1 -0
- package/dist/components/lightbox/use-light-box.d.ts +9 -0
- package/dist/components/lightbox/use-light-box.js +21 -0
- package/dist/components/lightbox/utils.d.ts +3 -0
- package/dist/components/lightbox/utils.js +22 -0
- package/dist/components/loading-screen/index.d.ts +2 -0
- package/dist/components/loading-screen/index.js +2 -0
- package/dist/components/loading-screen/loading-screen.d.ts +6 -0
- package/dist/components/loading-screen/loading-screen.js +8 -0
- package/dist/components/loading-screen/splash-screen.d.ts +7 -0
- package/dist/components/loading-screen/splash-screen.js +9 -0
- package/dist/components/logo/classes.d.ts +3 -0
- package/dist/components/logo/classes.js +4 -0
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/index.js +2 -0
- package/dist/components/logo/logo.d.ts +14 -0
- package/dist/components/logo/logo.js +22 -0
- package/dist/components/map/index.d.ts +4 -0
- package/dist/components/map/index.js +4 -0
- package/dist/components/map/map-controls.d.ts +14 -0
- package/dist/components/map/map-controls.js +6 -0
- package/dist/components/map/map-marker.d.ts +2 -0
- package/dist/components/map/map-marker.js +10 -0
- package/dist/components/map/map-popup.d.ts +3 -0
- package/dist/components/map/map-popup.js +6 -0
- package/dist/components/map/map.d.ts +5 -0
- package/dist/components/map/map.js +13 -0
- package/dist/components/markdown/classes.d.ts +10 -0
- package/dist/components/markdown/classes.js +11 -0
- package/dist/components/markdown/html-tags.d.ts +4 -0
- package/dist/components/markdown/html-tags.js +171 -0
- package/dist/components/markdown/html-to-markdown.d.ts +2 -0
- package/dist/components/markdown/html-to-markdown.js +28 -0
- package/dist/components/markdown/index.d.ts +4 -0
- package/dist/components/markdown/index.js +3 -0
- package/dist/components/markdown/markdown.d.ts +2 -0
- package/dist/components/markdown/markdown.js +35 -0
- package/dist/components/markdown/types.d.ts +8 -0
- package/dist/components/markdown/types.js +1 -0
- package/dist/components/menubar/index.d.ts +1 -0
- package/dist/components/menubar/index.js +1 -0
- package/dist/components/menubar/menubar.d.ts +29 -0
- package/dist/components/menubar/menubar.js +56 -0
- package/dist/components/native-select/index.d.ts +1 -0
- package/dist/components/native-select/index.js +1 -0
- package/dist/components/native-select/native-select.d.ts +8 -0
- package/dist/components/native-select/native-select.js +14 -0
- package/dist/components/navigation-menu/index.d.ts +1 -0
- package/dist/components/navigation-menu/index.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +11 -0
- package/dist/components/navigation-menu/navigation-menu.js +32 -0
- package/dist/components/navigation-progress/index.d.ts +1 -0
- package/dist/components/navigation-progress/index.js +1 -0
- package/dist/components/navigation-progress/navigation-progress.d.ts +10 -0
- package/dist/components/navigation-progress/navigation-progress.js +59 -0
- package/dist/components/number-input/index.d.ts +1 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/number-input/number-input.d.ts +29 -0
- package/dist/components/number-input/number-input.js +34 -0
- package/dist/components/organizational-chart/index.d.ts +2 -0
- package/dist/components/organizational-chart/index.js +1 -0
- package/dist/components/organizational-chart/organizational-chart.d.ts +2 -0
- package/dist/components/organizational-chart/organizational-chart.js +21 -0
- package/dist/components/organizational-chart/types.d.ts +15 -0
- package/dist/components/organizational-chart/types.js +1 -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 +17 -0
- package/dist/components/pagination/pagination.js +27 -0
- package/dist/components/phone-input/index.d.ts +2 -0
- package/dist/components/phone-input/index.js +1 -0
- package/dist/components/phone-input/list-popover.d.ts +2 -0
- package/dist/components/phone-input/list-popover.js +33 -0
- package/dist/components/phone-input/phone-input.d.ts +2 -0
- package/dist/components/phone-input/phone-input.js +34 -0
- package/dist/components/phone-input/types.d.ts +28 -0
- package/dist/components/phone-input/types.js +1 -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 +9 -0
- package/dist/components/popover/popover.js +23 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/index.js +1 -0
- package/dist/components/progress/progress.d.ts +7 -0
- package/dist/components/progress/progress.js +20 -0
- package/dist/components/progress-bar/index.d.ts +1 -0
- package/dist/components/progress-bar/index.js +1 -0
- package/dist/components/progress-bar/progress-bar.d.ts +20 -0
- package/dist/components/progress-bar/progress-bar.js +51 -0
- package/dist/components/radio-group/index.d.ts +1 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/radio-group/radio-group.js +12 -0
- package/dist/components/rating/index.d.ts +1 -0
- package/dist/components/rating/index.js +1 -0
- package/dist/components/rating/rating.d.ts +13 -0
- package/dist/components/rating/rating.js +25 -0
- package/dist/components/resizable/index.d.ts +1 -0
- package/dist/components/resizable/index.js +1 -0
- package/dist/components/resizable/resizable.d.ts +7 -0
- package/dist/components/resizable/resizable.js +14 -0
- package/dist/components/ripple/index.d.ts +1 -0
- package/dist/components/ripple/index.js +1 -0
- package/dist/components/ripple/ripple.d.ts +13 -0
- package/dist/components/ripple/ripple.js +113 -0
- package/dist/components/scroll-area/index.d.ts +1 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +5 -0
- package/dist/components/scroll-area/scroll-area.js +11 -0
- package/dist/components/scrollbar/classes.d.ts +3 -0
- package/dist/components/scrollbar/classes.js +4 -0
- package/dist/components/scrollbar/index.d.ts +2 -0
- package/dist/components/scrollbar/index.js +2 -0
- package/dist/components/scrollbar/scrollbar.d.ts +12 -0
- package/dist/components/scrollbar/scrollbar.js +9 -0
- package/dist/components/search-not-found/index.d.ts +1 -0
- package/dist/components/search-not-found/index.js +1 -0
- package/dist/components/search-not-found/search-not-found.d.ts +16 -0
- package/dist/components/search-not-found/search-not-found.js +16 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/select.d.ts +15 -0
- package/dist/components/select/select.js +34 -0
- package/dist/components/sensitive-input/index.d.ts +1 -0
- package/dist/components/sensitive-input/index.js +1 -0
- package/dist/components/sensitive-input/sensitive-input.d.ts +14 -0
- package/dist/components/sensitive-input/sensitive-input.js +175 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/separator/separator.d.ts +3 -0
- package/dist/components/separator/separator.js +8 -0
- package/dist/components/sheet/index.d.ts +1 -0
- package/dist/components/sheet/index.js +1 -0
- package/dist/components/sheet/sheet.d.ts +14 -0
- package/dist/components/sheet/sheet.js +37 -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 +2 -0
- package/dist/components/skeleton/skeleton.js +7 -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 +3 -0
- package/dist/components/slider/slider.js +13 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/spinner/spinner.d.ts +2 -0
- package/dist/components/spinner/spinner.js +8 -0
- package/dist/components/svg-color/classes.d.ts +3 -0
- package/dist/components/svg-color/classes.js +4 -0
- package/dist/components/svg-color/index.d.ts +2 -0
- package/dist/components/svg-color/index.js +2 -0
- package/dist/components/svg-color/svg-color.d.ts +7 -0
- package/dist/components/svg-color/svg-color.js +12 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/switch.d.ts +59 -0
- package/dist/components/switch/switch.js +61 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/table.d.ts +10 -0
- package/dist/components/table/table.js +28 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/tabs.d.ts +10 -0
- package/dist/components/tabs/tabs.js +31 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/textarea.d.ts +3 -0
- package/dist/components/textarea/textarea.js +7 -0
- package/dist/components/theme-provider/index.d.ts +1 -0
- package/dist/components/theme-provider/index.js +1 -0
- package/dist/components/theme-provider/theme-provider.d.ts +31 -0
- package/dist/components/theme-provider/theme-provider.js +92 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/toast.d.ts +90 -0
- package/dist/components/toast/toast.js +137 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/toggle.d.ts +8 -0
- package/dist/components/toggle/toggle.js +27 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +11 -0
- package/dist/components/toggle-group/toggle-group.js +24 -0
- package/dist/components/toolbar/index.d.ts +1 -0
- package/dist/components/toolbar/index.js +1 -0
- package/dist/components/toolbar/toolbar.d.ts +18 -0
- package/dist/components/toolbar/toolbar.js +53 -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 +53 -0
- package/dist/components/tooltip/tooltip.js +49 -0
- package/dist/components/upload/classes.d.ts +8 -0
- package/dist/components/upload/classes.js +9 -0
- package/dist/components/upload/components/placeholder.d.ts +9 -0
- package/dist/components/upload/components/placeholder.js +21 -0
- package/dist/components/upload/components/preview-multi-file.d.ts +2 -0
- package/dist/components/upload/components/preview-multi-file.js +19 -0
- package/dist/components/upload/components/preview-single-file.d.ts +3 -0
- package/dist/components/upload/components/preview-single-file.js +19 -0
- package/dist/components/upload/components/rejection-files.d.ts +6 -0
- package/dist/components/upload/components/rejection-files.js +12 -0
- package/dist/components/upload/components/upload-illustration.d.ts +3 -0
- package/dist/components/upload/components/upload-illustration.js +5 -0
- package/dist/components/upload/index.d.ts +9 -0
- package/dist/components/upload/index.js +8 -0
- package/dist/components/upload/types.d.ts +35 -0
- package/dist/components/upload/types.js +1 -0
- package/dist/components/upload/upload-avatar.d.ts +2 -0
- package/dist/components/upload/upload-avatar.js +32 -0
- package/dist/components/upload/upload-box.d.ts +2 -0
- package/dist/components/upload/upload-box.js +14 -0
- package/dist/components/upload/upload.d.ts +2 -0
- package/dist/components/upload/upload.js +23 -0
- package/dist/components/walktour/index.d.ts +4 -0
- package/dist/components/walktour/index.js +3 -0
- package/dist/components/walktour/types.d.ts +27 -0
- package/dist/components/walktour/types.js +1 -0
- package/dist/components/walktour/use-walktour.d.ts +2 -0
- package/dist/components/walktour/use-walktour.js +11 -0
- package/dist/components/walktour/walktour-tooltip.d.ts +2 -0
- package/dist/components/walktour/walktour-tooltip.js +15 -0
- package/dist/components/walktour/walktour.d.ts +2 -0
- package/dist/components/walktour/walktour.js +30 -0
- package/dist/components/xerobi-logo/index.d.ts +1 -0
- package/dist/components/xerobi-logo/index.js +1 -0
- package/dist/components/xerobi-logo/xerobi-logo.d.ts +60 -0
- package/dist/components/xerobi-logo/xerobi-logo.js +88 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/use-boolean.d.ts +9 -0
- package/dist/hooks/use-boolean.js +9 -0
- package/dist/hooks/use-client-rect.d.ts +6 -0
- package/dist/hooks/use-client-rect.js +18 -0
- package/dist/hooks/use-is-client.d.ts +2 -0
- package/dist/hooks/use-is-client.js +7 -0
- package/dist/hooks/use-local-storage.d.ts +10 -0
- package/dist/hooks/use-local-storage.js +39 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-popover-hover.d.ts +25 -0
- package/dist/hooks/use-popover-hover.js +33 -0
- package/dist/hooks/use-popover.d.ts +10 -0
- package/dist/hooks/use-popover.js +9 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/lib/brand.d.ts +14 -0
- package/dist/lib/brand.js +31 -0
- package/dist/lib/create-classes.d.ts +1 -0
- package/dist/lib/create-classes.js +4 -0
- package/dist/lib/date.d.ts +10 -0
- package/dist/lib/date.js +32 -0
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/format.js +10 -0
- package/dist/lib/link.d.ts +5 -0
- package/dist/lib/link.js +5 -0
- package/dist/lib/path.d.ts +6 -0
- package/dist/lib/path.js +24 -0
- package/dist/lib/theme-script.d.ts +11 -0
- package/dist/lib/theme-script.js +8 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/styles/chart.css +56 -0
- package/dist/styles/components.css +30 -0
- package/dist/styles/editor.css +199 -0
- package/dist/styles/globals.css +219 -0
- package/dist/styles/lightbox.css +42 -0
- package/dist/styles/map.css +62 -0
- package/dist/styles/markdown.css +177 -0
- package/dist/styles/nav.css +513 -0
- package/dist/styles/org-chart.css +82 -0
- package/dist/styles/scrollbar.css +9 -0
- package/dist/styles/settings.css +7 -0
- package/dist/styles/theme.css +52 -0
- package/dist/styles/variants.css +84 -0
- package/docs/compliance-report.md +104 -0
- package/docs/frameworks.md +63 -0
- package/docs/publishing.md +23 -0
- package/docs/theming.md +40 -0
- package/package.json +542 -4
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { Eye, EyeOff } from "lucide-react";
|
|
4
|
+
import { forwardRef, useCallback, useId, useRef, useState, } from "react";
|
|
5
|
+
import { cn } from "cn"; // Replace with your cn utility path
|
|
6
|
+
import { Input as BaseInput } from "@base-ui/react/input";
|
|
7
|
+
// Assuming you have an Input component or just standard Tailwind
|
|
8
|
+
// If you use a custom Input, replace these with its variants.
|
|
9
|
+
const inputVariants = ({ size, variant }) => {
|
|
10
|
+
const base = "relative flex w-full rounded-md border bg-transparent transition-colors text-sm";
|
|
11
|
+
const sizes = {
|
|
12
|
+
xs: "h-7 px-1.5 text-xs",
|
|
13
|
+
sm: "h-8 px-2 text-sm",
|
|
14
|
+
base: "h-9 px-3 text-sm",
|
|
15
|
+
lg: "h-10 px-4 text-base",
|
|
16
|
+
};
|
|
17
|
+
const variants = {
|
|
18
|
+
default: "border-zinc-200 focus-within:border-zinc-400 dark:border-zinc-800 dark:focus-within:border-zinc-600",
|
|
19
|
+
error: "border-red-500 focus-within:border-red-600",
|
|
20
|
+
};
|
|
21
|
+
return cn(base, sizes[size], variants[variant]);
|
|
22
|
+
};
|
|
23
|
+
// Simple utility to simulate your useCopyFeedback hook
|
|
24
|
+
function useCopyFeedback() {
|
|
25
|
+
const [copied, setCopied] = useState(false);
|
|
26
|
+
// FIX: The callback now explicitly receives `(isCurrent: () => boolean)`
|
|
27
|
+
const runCopy = async (fn, onError) => {
|
|
28
|
+
// Create a synchronous check to see if the component is still mounted/valid
|
|
29
|
+
let valid = true;
|
|
30
|
+
const isCurrent = () => valid;
|
|
31
|
+
try {
|
|
32
|
+
await fn(isCurrent);
|
|
33
|
+
setCopied(true);
|
|
34
|
+
setTimeout(() => setCopied(false), 2000);
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
catch (err) {
|
|
38
|
+
onError?.(err);
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return { copied, runCopy };
|
|
43
|
+
}
|
|
44
|
+
export const SensitiveInput = /* @__PURE__ */ forwardRef(({ value: controlledValue, defaultValue = "", onChange, onValueChange, onCopy, size = "base", variant: variantProp, disabled = false, readOnly = false, id, autoComplete = "off", className, label, labelTooltip, description, error, required, ...inputProps }, ref) => {
|
|
45
|
+
const variant = variantProp ?? (error ? "error" : "default");
|
|
46
|
+
const ariaLabelFallback = typeof label === "string" ? label : "Sensitive value";
|
|
47
|
+
const isControlled = controlledValue !== undefined;
|
|
48
|
+
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
49
|
+
const value = isControlled ? controlledValue : internalValue;
|
|
50
|
+
const hasValue = value.length > 0;
|
|
51
|
+
const [mode, setMode] = useState(() => (hasValue ? "masked" : "empty"));
|
|
52
|
+
const { copied, runCopy } = useCopyFeedback();
|
|
53
|
+
const inputRef = useRef(null);
|
|
54
|
+
const containerRef = useRef(null);
|
|
55
|
+
const liveRegionId = useId();
|
|
56
|
+
const generatedId = useId();
|
|
57
|
+
const inputId = id ?? generatedId;
|
|
58
|
+
const maskedInstructionId = useId();
|
|
59
|
+
const mergedRef = useCallback((node) => {
|
|
60
|
+
inputRef.current = node;
|
|
61
|
+
if (typeof ref === "function")
|
|
62
|
+
ref(node);
|
|
63
|
+
else if (ref)
|
|
64
|
+
ref.current = node;
|
|
65
|
+
}, [ref]);
|
|
66
|
+
// Clipboard handling with fallback
|
|
67
|
+
const copyToClipboard = useCallback(async (e) => {
|
|
68
|
+
e.stopPropagation();
|
|
69
|
+
const didCopy = await runCopy(async (isCurrent) => {
|
|
70
|
+
try {
|
|
71
|
+
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
72
|
+
await navigator.clipboard.writeText(value);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch { }
|
|
77
|
+
// isCurrent is now correctly typed
|
|
78
|
+
if (!isCurrent())
|
|
79
|
+
return;
|
|
80
|
+
const textarea = document.createElement("textarea");
|
|
81
|
+
textarea.value = value;
|
|
82
|
+
textarea.style.position = "absolute";
|
|
83
|
+
textarea.style.left = "-9999px";
|
|
84
|
+
document.body.appendChild(textarea);
|
|
85
|
+
textarea.select();
|
|
86
|
+
try {
|
|
87
|
+
if (!document.execCommand("copy"))
|
|
88
|
+
throw new Error("Copy failed");
|
|
89
|
+
}
|
|
90
|
+
finally {
|
|
91
|
+
document.body.removeChild(textarea);
|
|
92
|
+
}
|
|
93
|
+
}, (err) => console.warn("Clipboard copy failed", err));
|
|
94
|
+
if (didCopy)
|
|
95
|
+
onCopy?.();
|
|
96
|
+
}, [value, onCopy, runCopy]);
|
|
97
|
+
// Sync mode when clearing value
|
|
98
|
+
const prevHasValueRef = useRef(hasValue);
|
|
99
|
+
if (prevHasValueRef.current !== hasValue) {
|
|
100
|
+
prevHasValueRef.current = hasValue;
|
|
101
|
+
if (!hasValue && mode === "masked")
|
|
102
|
+
setMode("empty");
|
|
103
|
+
}
|
|
104
|
+
const handleContainerClick = useCallback((e) => {
|
|
105
|
+
if (disabled)
|
|
106
|
+
return;
|
|
107
|
+
if (containerRef.current) {
|
|
108
|
+
const rect = containerRef.current.getBoundingClientRect();
|
|
109
|
+
if (e.clientX < rect.left ||
|
|
110
|
+
e.clientX > rect.right ||
|
|
111
|
+
e.clientY < rect.top ||
|
|
112
|
+
e.clientY > rect.bottom)
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (mode === "masked" && hasValue) {
|
|
116
|
+
setMode("revealed");
|
|
117
|
+
if (!readOnly)
|
|
118
|
+
setTimeout(() => inputRef.current?.focus(), 0);
|
|
119
|
+
}
|
|
120
|
+
}, [mode, hasValue, disabled, readOnly]);
|
|
121
|
+
const handleToggleVisibility = useCallback((e) => {
|
|
122
|
+
e.stopPropagation();
|
|
123
|
+
if (mode === "revealed")
|
|
124
|
+
setMode("masked");
|
|
125
|
+
else if (mode === "empty" && hasValue)
|
|
126
|
+
setMode("revealed");
|
|
127
|
+
}, [mode, hasValue]);
|
|
128
|
+
const handleChange = useCallback((e) => {
|
|
129
|
+
const newValue = e.target.value;
|
|
130
|
+
if (!isControlled)
|
|
131
|
+
setInternalValue(newValue);
|
|
132
|
+
if (mode === "empty" && newValue.length > 0)
|
|
133
|
+
setMode("revealed");
|
|
134
|
+
onChange?.(e);
|
|
135
|
+
onValueChange?.(newValue);
|
|
136
|
+
}, [isControlled, onChange, onValueChange, mode]);
|
|
137
|
+
const handleBlur = useCallback((e) => {
|
|
138
|
+
if (containerRef.current &&
|
|
139
|
+
e.relatedTarget instanceof Node &&
|
|
140
|
+
containerRef.current.contains(e.relatedTarget))
|
|
141
|
+
return;
|
|
142
|
+
if (hasValue)
|
|
143
|
+
setMode("masked");
|
|
144
|
+
}, [hasValue]);
|
|
145
|
+
const handleContainerKeyDown = useCallback((e) => {
|
|
146
|
+
if (disabled)
|
|
147
|
+
return;
|
|
148
|
+
if (mode === "masked" && hasValue) {
|
|
149
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
150
|
+
e.preventDefault();
|
|
151
|
+
setMode("revealed");
|
|
152
|
+
if (!readOnly)
|
|
153
|
+
setTimeout(() => inputRef.current?.focus(), 0);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}, [mode, hasValue, disabled, readOnly]);
|
|
157
|
+
const handleInputKeyDown = useCallback((e) => {
|
|
158
|
+
if (mode === "revealed" && e.key === "Escape") {
|
|
159
|
+
setMode("masked");
|
|
160
|
+
setTimeout(() => containerRef.current?.focus(), 0);
|
|
161
|
+
}
|
|
162
|
+
}, [mode]);
|
|
163
|
+
const isMaskedWithValue = mode === "masked" && hasValue;
|
|
164
|
+
const showEyeButton = !disabled && (mode === "revealed" || (mode === "empty" && hasValue));
|
|
165
|
+
const iconSize = size === "xs" || size === "sm" ? "size-3" : "size-4";
|
|
166
|
+
const containerClassName = cn(inputVariants({ size, variant }), "group/container relative flex w-full items-center", "focus-within:outline-2 focus-within:outline-blue-500 focus-within:outline-offset-1", isMaskedWithValue && !disabled && "cursor-pointer", disabled && "cursor-not-allowed opacity-50", className);
|
|
167
|
+
const containerContent = (_jsxs(_Fragment, { children: [_jsx(BaseInput, { ref: mergedRef, id: inputId, type: mode === "revealed" ? "text" : "password", value: value, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleInputKeyDown, disabled: disabled, readOnly: readOnly || isMaskedWithValue, required: required, autoComplete: autoComplete, tabIndex: isMaskedWithValue ? -1 : 0, className: cn("w-full border-0 bg-transparent p-0 text-zinc-900 ring-0 outline-none disabled:cursor-not-allowed disabled:text-zinc-500 dark:text-zinc-100", size === "xs" && "pr-5", size === "sm" && "pr-6", size === "base" && "pr-8", size === "lg" && "pr-10", isMaskedWithValue && "pointer-events-none text-transparent"), "aria-hidden": isMaskedWithValue, ...inputProps }), _jsx("span", { className: cn("pointer-events-none absolute inset-y-0 left-0 flex items-center overflow-hidden select-none", size === "xs" && "right-5 px-1.5", size === "sm" && "right-6 px-2", size === "base" && "right-8 px-3", size === "lg" && "right-10 px-4", !isMaskedWithValue && "invisible", isMaskedWithValue && "pointer-events-auto", "text-zinc-900 dark:text-zinc-100", "group/mask"), "aria-hidden": "true", children: _jsxs("span", { className: "relative", children: [_jsx("span", { className: cn(isMaskedWithValue && !disabled && "group-focus-within/container:invisible group-hover/mask:invisible"), children: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" }), isMaskedWithValue && !disabled && (_jsx("span", { className: "invisible absolute top-0 left-0 whitespace-nowrap text-zinc-500 group-focus-within/container:visible group-hover/mask:visible", children: "Click to reveal" }))] }) }), _jsx("button", { type: "button", onClick: handleToggleVisibility, onKeyDown: (e) => e.stopPropagation(), "aria-label": mode === "revealed" ? "Hide value" : "Reveal value", tabIndex: showEyeButton ? 0 : -1, className: cn("absolute top-1/2 right-0 -translate-y-1/2 cursor-pointer text-zinc-400 hover:text-zinc-900 focus:ring-2 focus:ring-blue-500 focus-visible:rounded-sm", "m-0 inline-flex h-auto min-h-0 items-center justify-center border-none bg-transparent p-0 shadow-none", size === "xs" && "right-1.5", size === "sm" && "right-2", size === "base" && "right-3", size === "lg" && "right-4", iconSize, !showEyeButton && "pointer-events-none opacity-0"), children: mode === "revealed" ? (_jsx(EyeOff, { className: "size-full", strokeWidth: 2 })) : (_jsx(Eye, { className: "size-full", strokeWidth: 2 })) }), hasValue && !disabled && (_jsx("button", { type: "button", onClick: copyToClipboard, onKeyDown: (e) => e.stopPropagation(), "aria-label": copied ? "Copied" : "Copy to clipboard", className: cn("absolute -top-px right-2 -translate-y-full cursor-pointer rounded-t-md bg-blue-600 px-2 py-0.5 text-[10px] font-medium text-white opacity-0 transition-opacity group-focus-within/container:opacity-100 group-hover/container:opacity-100 hover:bg-blue-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500", "m-0 h-auto min-h-0 border-none shadow-none"), children: copied ? "Copied" : "Copy" }))] }));
|
|
168
|
+
const input = (_jsxs("div", { className: "relative w-full", children: [isMaskedWithValue ? (_jsx("div", { ref: containerRef, role: "button", tabIndex: disabled ? -1 : 0, className: containerClassName, onClick: handleContainerClick, onKeyDown: handleContainerKeyDown, "aria-label": `${ariaLabelFallback}, masked.`, "aria-describedby": `${maskedInstructionId} ${liveRegionId}`, "aria-disabled": disabled, children: containerContent })) : (_jsx("div", { ref: containerRef, className: containerClassName, children: containerContent })), isMaskedWithValue && (_jsx("span", { id: maskedInstructionId, className: "sr-only", children: "Click or press Enter to reveal." })), _jsxs("span", { id: liveRegionId, className: "sr-only", "aria-live": "polite", children: [mode === "masked" && hasValue && "Value hidden", copied && "Copied to clipboard"] })] }));
|
|
169
|
+
// You can swap this out for your own `<Field>` component
|
|
170
|
+
if (label) {
|
|
171
|
+
return (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsxs("label", { className: "flex items-center gap-1 text-sm font-medium text-zinc-900 dark:text-zinc-100", children: [label, required && _jsx("span", { className: "text-red-500", children: "*" }), labelTooltip && _jsx("span", { title: labelTooltip, className: "cursor-help text-zinc-400", children: "\u24D8" })] }), input, description && _jsx("p", { className: "text-xs text-zinc-500", children: description }), error && _jsx("p", { className: "text-xs text-red-500", children: error })] }));
|
|
172
|
+
}
|
|
173
|
+
return input;
|
|
174
|
+
});
|
|
175
|
+
SensitiveInput.displayName = "SensitiveInput";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./separator.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./separator.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
function Separator({ className, orientation = "horizontal", ...props }) {
|
|
6
|
+
return (_jsx(SeparatorPrimitive, { "data-slot": "separator", orientation: orientation, className: cn("shrink-0 bg-divider data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", className), ...props }));
|
|
7
|
+
}
|
|
8
|
+
export { Separator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sheet.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sheet.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
3
|
+
declare function Sheet({ ...props }: SheetPrimitive.Root.Props): React.JSX.Element;
|
|
4
|
+
declare function SheetTrigger({ ...props }: SheetPrimitive.Trigger.Props): React.JSX.Element;
|
|
5
|
+
declare function SheetClose({ ...props }: SheetPrimitive.Close.Props): React.JSX.Element;
|
|
6
|
+
declare function SheetContent({ className, children, side, showCloseButton, ...props }: SheetPrimitive.Popup.Props & {
|
|
7
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
8
|
+
showCloseButton?: boolean;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
+
declare function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props): React.JSX.Element;
|
|
13
|
+
declare function SheetDescription({ className, ...props }: SheetPrimitive.Description.Props): React.JSX.Element;
|
|
14
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
import { Button } from "../button/index.js";
|
|
6
|
+
import { XIcon } from "lucide-react";
|
|
7
|
+
function Sheet({ ...props }) {
|
|
8
|
+
return _jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
9
|
+
}
|
|
10
|
+
function SheetTrigger({ ...props }) {
|
|
11
|
+
return _jsx(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
12
|
+
}
|
|
13
|
+
function SheetClose({ ...props }) {
|
|
14
|
+
return _jsx(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
15
|
+
}
|
|
16
|
+
function SheetPortal({ ...props }) {
|
|
17
|
+
return _jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
18
|
+
}
|
|
19
|
+
function SheetOverlay({ className, ...props }) {
|
|
20
|
+
return (_jsx(SheetPrimitive.Backdrop, { "data-slot": "sheet-overlay", className: cn("fixed inset-0 z-modal bg-grey-800/48 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
function SheetContent({ className, children, side = "right", showCloseButton = true, ...props }) {
|
|
23
|
+
return (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsxs(SheetPrimitive.Popup, { "data-slot": "sheet-content", "data-side": side, className: cn("xui-paper fixed z-modal flex flex-col gap-4 text-body2 text-popover-foreground transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:shadow-[40px_40px_80px_-8px_rgb(var(--shadow-tint)/0.24)] data-[side=right]:shadow-[-40px_40px_80px_-8px_rgb(var(--shadow-tint)/0.24)] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className), ...props, children: [children, showCloseButton && (_jsxs(SheetPrimitive.Close, { "data-slot": "sheet-close", render: _jsx(Button, { variant: "ghost", className: "absolute top-4 right-4", size: "icon-sm" }), children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }))] })] }));
|
|
24
|
+
}
|
|
25
|
+
function SheetHeader({ className, ...props }) {
|
|
26
|
+
return (_jsx("div", { "data-slot": "sheet-header", className: cn("flex flex-col gap-0.5 p-6", className), ...props }));
|
|
27
|
+
}
|
|
28
|
+
function SheetFooter({ className, ...props }) {
|
|
29
|
+
return (_jsx("div", { "data-slot": "sheet-footer", className: cn("mt-auto flex flex-col gap-3 p-6", className), ...props }));
|
|
30
|
+
}
|
|
31
|
+
function SheetTitle({ className, ...props }) {
|
|
32
|
+
return (_jsx(SheetPrimitive.Title, { "data-slot": "sheet-title", className: cn("text-h6 text-foreground", className), ...props }));
|
|
33
|
+
}
|
|
34
|
+
function SheetDescription({ className, ...props }) {
|
|
35
|
+
return (_jsx(SheetPrimitive.Description, { "data-slot": "sheet-description", className: cn("text-body2 text-text-secondary", className), ...props }));
|
|
36
|
+
}
|
|
37
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./skeleton.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./skeleton.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
function Skeleton({ className, ...props }) {
|
|
5
|
+
return (_jsx("div", { "data-slot": "skeleton", className: cn("animate-pulse rounded-2xl bg-grey-400/12", className), ...props }));
|
|
6
|
+
}
|
|
7
|
+
export { Skeleton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./slider.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./slider.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
|
|
6
|
+
const _values = Array.isArray(value)
|
|
7
|
+
? value
|
|
8
|
+
: Array.isArray(defaultValue)
|
|
9
|
+
? defaultValue
|
|
10
|
+
: [min, max];
|
|
11
|
+
return (_jsx(SliderPrimitive.Root, { className: cn("data-horizontal:w-full data-vertical:h-full", className), "data-slot": "slider", defaultValue: defaultValue, value: value, min: min, max: max, thumbAlignment: "edge", ...props, children: _jsxs(SliderPrimitive.Control, { className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col", children: [_jsx(SliderPrimitive.Track, { "data-slot": "slider-track", className: "relative grow overflow-hidden rounded-full bg-grey-500/12 select-none data-horizontal:h-2.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-2.5", children: _jsx(SliderPrimitive.Indicator, { "data-slot": "slider-range", className: "bg-primary select-none data-horizontal:h-full data-vertical:w-full" }) }), Array.from({ length: _values.length }, (_, index) => (_jsx(SliderPrimitive.Thumb, { "data-slot": "slider-thumb", className: "relative block size-5 shrink-0 rounded-full border border-grey-500/8 bg-white shadow-z1 ring-primary/16 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-6 focus-visible:ring-6 focus-visible:outline-hidden active:ring-8 data-disabled:opacity-48" }, index)))] }) }));
|
|
12
|
+
}
|
|
13
|
+
export { Slider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./spinner.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./spinner.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { Loader } from "lucide-react";
|
|
5
|
+
function Spinner({ className, ...props }) {
|
|
6
|
+
return (_jsx(Loader, { "data-slot": "spinner", role: "status", "aria-label": "Loading", className: cn("size-4 animate-spin", className), ...props }));
|
|
7
|
+
}
|
|
8
|
+
export { Spinner };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type SvgColorProps = React.ComponentProps<"span"> & {
|
|
3
|
+
/** URL of the SVG used as a mask. The icon takes the current text colour. */
|
|
4
|
+
src: string;
|
|
5
|
+
};
|
|
6
|
+
/** Paints an SVG file with `currentColor`, so one asset follows the theme in light and dark. */
|
|
7
|
+
export declare const SvgColor: React.ForwardRefExoticComponent<Omit<SvgColorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
import { svgColorClasses } from "./classes.js";
|
|
6
|
+
/** Paints an SVG file with `currentColor`, so one asset follows the theme in light and dark. */
|
|
7
|
+
export const SvgColor = /* @__PURE__ */ React.forwardRef(({ src, className, style, ...props }, ref) => (_jsx("span", { ref: ref, className: cn(svgColorClasses.root, "inline-flex size-6 shrink-0 bg-current", className), style: {
|
|
8
|
+
mask: `url(${src}) no-repeat center / contain`,
|
|
9
|
+
WebkitMask: `url(${src}) no-repeat center / contain`,
|
|
10
|
+
...style,
|
|
11
|
+
}, ...props })));
|
|
12
|
+
SvgColor.displayName = "SvgColor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./switch.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./switch.js";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
type SwitchColor = "primary" | "secondary" | "info" | "success" | "warning" | "error" | "inherit";
|
|
4
|
+
type SwitchProps = Omit<SwitchPrimitive.Root.Props, "color" | "children"> & {
|
|
5
|
+
size?: "sm" | "default";
|
|
6
|
+
color?: SwitchColor;
|
|
7
|
+
/** Label content — when provided, wraps the switch in a Field */
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
/** Tooltip content displayed next to the label */
|
|
10
|
+
labelTooltip?: ReactNode;
|
|
11
|
+
/** When explicitly false, shows "(optional)" after the label */
|
|
12
|
+
required?: boolean;
|
|
13
|
+
/** When true (default), switch appears before label */
|
|
14
|
+
controlFirst?: boolean;
|
|
15
|
+
/** Shows a busy indicator on the switch */
|
|
16
|
+
transitioning?: boolean;
|
|
17
|
+
};
|
|
18
|
+
type SwitchItemProps = Omit<SwitchPrimitive.Root.Props, "color" | "children"> & {
|
|
19
|
+
size?: "sm" | "default";
|
|
20
|
+
color?: SwitchColor;
|
|
21
|
+
/** Label text displayed next to the switch */
|
|
22
|
+
label: string;
|
|
23
|
+
/** Additional class names for the wrapping <label> */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Shows a busy indicator on the switch */
|
|
26
|
+
transitioning?: boolean;
|
|
27
|
+
};
|
|
28
|
+
declare function SwitchLegend({ children, className, }: {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
|
+
declare namespace SwitchLegend {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|
|
35
|
+
type SwitchGroupProps = {
|
|
36
|
+
/** Legend text — omit to use <Switch.Legend> as a child instead */
|
|
37
|
+
legend?: string;
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
/** Error message shown below the group */
|
|
40
|
+
error?: string;
|
|
41
|
+
/** Helper text shown below the group */
|
|
42
|
+
description?: ReactNode;
|
|
43
|
+
/** Disables all switches in the group */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** When true (default), switch appears before label */
|
|
46
|
+
controlFirst?: boolean;
|
|
47
|
+
className?: string;
|
|
48
|
+
};
|
|
49
|
+
declare function SwitchGroup({ legend, children, error, description, disabled, controlFirst, className, }: SwitchGroupProps): import("react").JSX.Element;
|
|
50
|
+
declare namespace SwitchGroup {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
53
|
+
declare const Switch: import("react").ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
54
|
+
Item: import("react").ForwardRefExoticComponent<Omit<SwitchItemProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
55
|
+
Group: typeof SwitchGroup;
|
|
56
|
+
Legend: typeof SwitchLegend;
|
|
57
|
+
};
|
|
58
|
+
export { Switch };
|
|
59
|
+
export type { SwitchColor, SwitchProps, SwitchItemProps, SwitchGroupProps };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
4
|
+
import { Fieldset } from "@base-ui/react/fieldset";
|
|
5
|
+
import { createContext, forwardRef, useContext, } from "react";
|
|
6
|
+
import { cn } from "cn";
|
|
7
|
+
const checkedTrack = {
|
|
8
|
+
primary: "data-checked:bg-primary",
|
|
9
|
+
secondary: "data-checked:bg-brand-secondary",
|
|
10
|
+
info: "data-checked:bg-info",
|
|
11
|
+
success: "data-checked:bg-success",
|
|
12
|
+
warning: "data-checked:bg-warning",
|
|
13
|
+
error: "data-checked:bg-error",
|
|
14
|
+
inherit: "data-checked:bg-text-primary",
|
|
15
|
+
};
|
|
16
|
+
// Context for passing controlFirst from Group to Items
|
|
17
|
+
const SwitchGroupContext = /* @__PURE__ */ createContext({
|
|
18
|
+
controlFirst: true,
|
|
19
|
+
});
|
|
20
|
+
const SwitchRoot = /* @__PURE__ */ forwardRef(({ className, size = "default", color = "primary", label, labelTooltip, required, controlFirst = true, transitioning, ...props }, ref) => {
|
|
21
|
+
const ariaLabelFallback = typeof label === "string" ? label : "Switch";
|
|
22
|
+
const switchControl = (_jsx(SwitchPrimitive.Root, { ref: ref, "data-slot": "switch", "data-size": size, "aria-busy": transitioning || undefined, "aria-label": props["aria-label"] ?? (!label ? ariaLabelFallback : undefined), className: cn("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent bg-grey-500/48 transition-colors outline-none after:absolute after:-inset-x-2 after:-inset-y-2 focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:ring-3 aria-invalid:ring-error/20 data-[size=default]:h-5 data-[size=default]:w-[34px] data-[size=sm]:h-4 data-[size=sm]:w-7 data-disabled:cursor-not-allowed data-disabled:opacity-48", checkedTrack[color], className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: cn("pointer-events-none block rounded-full bg-white shadow-z1 ring-0 transition-transform", "group-data-[size=default]/switch:size-3.5 group-data-[size=default]/switch:translate-x-[2px] group-data-[size=default]/switch:data-checked:translate-x-[17px]", "group-data-[size=sm]/switch:size-2.5 group-data-[size=sm]/switch:translate-x-[2px] group-data-[size=sm]/switch:data-checked:translate-x-[15px]", color === "inherit" && "dark:data-checked:bg-grey-800") }) }));
|
|
23
|
+
// If no label, return bare switch (for standalone use)
|
|
24
|
+
if (!label) {
|
|
25
|
+
return switchControl;
|
|
26
|
+
}
|
|
27
|
+
// Wrap in a Field-like label row
|
|
28
|
+
return (_jsx(Field, { label: label, labelTooltip: labelTooltip, required: required, controlFirst: controlFirst, children: switchControl }));
|
|
29
|
+
});
|
|
30
|
+
SwitchRoot.displayName = "Switch";
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
// Minimal internal Field wrapper (replace with your existing Field component)
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
function Field({ label, labelTooltip, required, controlFirst, children, }) {
|
|
35
|
+
return (_jsxs("label", { className: cn("inline-flex items-center gap-2", !controlFirst && "flex-row-reverse justify-end"), children: [children, _jsxs("span", { className: "inline-flex items-center gap-1 text-sm font-medium text-text-primary", children: [label, required === false && (_jsx("span", { className: "text-text-secondary", children: "(optional)" })), labelTooltip && (_jsx("span", { title: typeof labelTooltip === "string" ? labelTooltip : undefined, className: "cursor-help text-text-secondary", children: "\u24D8" }))] })] }));
|
|
36
|
+
}
|
|
37
|
+
const SwitchItem = /* @__PURE__ */ forwardRef(({ className, size = "default", color = "primary", label, transitioning, disabled, ...props }, ref) => {
|
|
38
|
+
const { controlFirst } = useContext(SwitchGroupContext);
|
|
39
|
+
return (_jsxs("label", { className: cn("relative m-0 inline-flex items-center gap-2", !controlFirst && "flex-row-reverse justify-end", disabled ? "cursor-not-allowed opacity-48" : "cursor-pointer", className), children: [_jsx(SwitchPrimitive.Root, { ref: ref, "data-slot": "switch", "data-size": size, disabled: disabled, "aria-busy": transitioning || undefined, className: cn("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent bg-grey-500/48 transition-colors outline-none after:absolute after:-inset-x-2 after:-inset-y-2 focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:ring-3 aria-invalid:ring-error/20 data-[size=default]:h-5 data-[size=default]:w-[34px] data-[size=sm]:h-4 data-[size=sm]:w-7 data-disabled:cursor-not-allowed data-disabled:opacity-48", checkedTrack[color]), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: cn("pointer-events-none block rounded-full bg-white shadow-z1 ring-0 transition-transform", "group-data-[size=default]/switch:size-3.5 group-data-[size=default]/switch:translate-x-[2px] group-data-[size=default]/switch:data-checked:translate-x-[17px]", "group-data-[size=sm]/switch:size-2.5 group-data-[size=sm]/switch:translate-x-[2px] group-data-[size=sm]/switch:data-checked:translate-x-[15px]", color === "inherit" && "dark:data-checked:bg-grey-800") }) }), _jsx("span", { className: "text-sm font-medium text-text-primary", children: label })] }));
|
|
40
|
+
});
|
|
41
|
+
SwitchItem.displayName = "Switch.Item";
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
// Switch.Legend (composable legend for Switch.Group)
|
|
44
|
+
// ---------------------------------------------------------------------------
|
|
45
|
+
function SwitchLegend({ children, className, }) {
|
|
46
|
+
return (_jsx(Fieldset.Legend, { className: cn("text-sm font-medium text-text-primary", className), children: children }));
|
|
47
|
+
}
|
|
48
|
+
SwitchLegend.displayName = "Switch.Legend";
|
|
49
|
+
function SwitchGroup({ legend, children, error, description, disabled, controlFirst = true, className, }) {
|
|
50
|
+
return (_jsx(SwitchGroupContext.Provider, { value: { controlFirst }, children: _jsxs(Fieldset.Root, { className: cn("flex flex-col gap-4", className), disabled: disabled, children: [legend && (_jsx(Fieldset.Legend, { className: "text-sm font-medium text-text-primary", children: legend })), _jsx("div", { className: "flex flex-col gap-2", children: children }), error && _jsx("p", { className: "text-sm text-error", children: error }), description && (_jsx("p", { className: "text-sm leading-snug text-pretty text-text-secondary", children: description }))] }) }));
|
|
51
|
+
}
|
|
52
|
+
SwitchGroup.displayName = "Switch.Group";
|
|
53
|
+
// ---------------------------------------------------------------------------
|
|
54
|
+
// Compound export
|
|
55
|
+
// ---------------------------------------------------------------------------
|
|
56
|
+
const Switch = Object.assign(SwitchRoot, {
|
|
57
|
+
Item: SwitchItem,
|
|
58
|
+
Group: SwitchGroup,
|
|
59
|
+
Legend: SwitchLegend,
|
|
60
|
+
});
|
|
61
|
+
export { Switch };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./table.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./table.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentProps<"table">): React.JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): React.JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): React.JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): React.JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): React.JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): React.JSX.Element;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
function Table({ className, ...props }) {
|
|
5
|
+
return (_jsx("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto [scrollbar-color:color-mix(in_oklab,var(--text-disabled)_40%,transparent)_color-mix(in_oklab,var(--text-disabled)_8%,transparent)] [scrollbar-width:thin]", children: _jsx("table", { "data-slot": "table", className: cn("w-full caption-bottom text-body2", className), ...props }) }));
|
|
6
|
+
}
|
|
7
|
+
function TableHeader({ className, ...props }) {
|
|
8
|
+
return (_jsx("thead", { "data-slot": "table-header", className: cn("[&_tr]:border-b-0", className), ...props }));
|
|
9
|
+
}
|
|
10
|
+
function TableBody({ className, ...props }) {
|
|
11
|
+
return (_jsx("tbody", { "data-slot": "table-body", className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
12
|
+
}
|
|
13
|
+
function TableFooter({ className, ...props }) {
|
|
14
|
+
return (_jsx("tfoot", { "data-slot": "table-footer", className: cn("border-t border-dashed bg-neutral font-semibold [&>tr]:last:border-b-0", className), ...props }));
|
|
15
|
+
}
|
|
16
|
+
function TableRow({ className, ...props }) {
|
|
17
|
+
return (_jsx("tr", { "data-slot": "table-row", className: cn("border-b border-dashed border-divider transition-colors hover:bg-action-hover has-aria-expanded:bg-action-hover data-[state=selected]:bg-primary-dark/4 data-[state=selected]:hover:bg-primary-dark/8 data-selected:bg-primary-dark/4 [&:last-child]:border-b-transparent", className), ...props }));
|
|
18
|
+
}
|
|
19
|
+
function TableHead({ className, ...props }) {
|
|
20
|
+
return (_jsx("th", { "data-slot": "table-head", className: cn("h-14 bg-neutral px-4 text-left align-middle text-sm font-semibold whitespace-nowrap text-text-secondary first:rounded-l-none [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:pl-2", className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
function TableCell({ className, ...props }) {
|
|
23
|
+
return (_jsx("td", { "data-slot": "table-cell", className: cn("p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:pl-2", className), ...props }));
|
|
24
|
+
}
|
|
25
|
+
function TableCaption({ className, ...props }) {
|
|
26
|
+
return (_jsx("caption", { "data-slot": "table-caption", className: cn("mt-4 text-body2 text-text-secondary", className), ...props }));
|
|
27
|
+
}
|
|
28
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tabs.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tabs.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare function Tabs({ className, orientation, ...props }: TabsPrimitive.Root.Props): import("react").JSX.Element;
|
|
4
|
+
declare const tabsListVariants: (props?: ({
|
|
5
|
+
variant?: "line" | "default" | "pill" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import("react").JSX.Element;
|
|
8
|
+
declare function TabsTrigger({ className, children, ...props }: TabsPrimitive.Tab.Props): import("react").JSX.Element;
|
|
9
|
+
declare function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props): import("react").JSX.Element;
|
|
10
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "cn";
|
|
6
|
+
import { Ripple } from "../ripple/index.js";
|
|
7
|
+
function Tabs({ className, orientation = "horizontal", ...props }) {
|
|
8
|
+
return (_jsx(TabsPrimitive.Root, { "data-slot": "tabs", "data-orientation": orientation, className: cn("group/tabs flex gap-2 data-horizontal:flex-col", className), ...props }));
|
|
9
|
+
}
|
|
10
|
+
const tabsListVariants = /* @__PURE__ */ cva("group/tabs-list inline-flex w-fit items-center text-text-secondary group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col", {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "gap-6 bg-transparent sm:gap-10 group-data-horizontal/tabs:min-h-12",
|
|
14
|
+
line: "gap-6 bg-transparent sm:gap-10 group-data-horizontal/tabs:min-h-12",
|
|
15
|
+
pill: "justify-center rounded-lg bg-muted p-[3px] group-data-horizontal/tabs:h-9",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: "default",
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
function TabsList({ className, variant = "default", ...props }) {
|
|
23
|
+
return (_jsx(TabsPrimitive.List, { "data-slot": "tabs-list", "data-variant": variant, className: cn(tabsListVariants({ variant }), className), ...props }));
|
|
24
|
+
}
|
|
25
|
+
function TabsTrigger({ className, children, ...props }) {
|
|
26
|
+
return (_jsxs(TabsPrimitive.Tab, { "data-slot": "tabs-trigger", className: cn("relative inline-flex min-h-12 min-w-12 items-center justify-center gap-2 py-2 text-body2 font-medium whitespace-nowrap text-text-secondary transition-colors outline-none group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-text-primary focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-active:font-semibold data-active:text-text-primary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-5", "after:absolute after:bg-current after:opacity-0 group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-0 group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:right-0 group-data-vertical/tabs:after:w-0.5 data-active:after:opacity-100", "group-data-[variant=pill]/tabs-list:min-h-0 group-data-[variant=pill]/tabs-list:flex-1 group-data-[variant=pill]/tabs-list:rounded-md group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:py-1 group-data-[variant=pill]/tabs-list:after:hidden group-data-[variant=pill]/tabs-list:data-active:bg-background group-data-[variant=pill]/tabs-list:data-active:shadow-z1", className), ...props, children: [children, _jsx(Ripple, {})] }));
|
|
27
|
+
}
|
|
28
|
+
function TabsContent({ className, ...props }) {
|
|
29
|
+
return (_jsx(TabsPrimitive.Panel, { "data-slot": "tabs-content", className: cn("flex-1 text-body2 outline-none", className), ...props }));
|
|
30
|
+
}
|
|
31
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./textarea.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./textarea.js";
|