@devalok/shilp-sutra 0.1.0
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/dist/composed/avatar-group.d.ts +17 -0
- package/dist/composed/avatar-group.d.ts.map +1 -0
- package/dist/composed/avatar-group.js +103 -0
- package/dist/composed/command-palette.d.ts +29 -0
- package/dist/composed/command-palette.d.ts.map +1 -0
- package/dist/composed/command-palette.js +215 -0
- package/dist/composed/content-card.d.ts +15 -0
- package/dist/composed/content-card.d.ts.map +1 -0
- package/dist/composed/content-card.js +108 -0
- package/dist/composed/date-picker/calendar-grid.d.ts +21 -0
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -0
- package/dist/composed/date-picker/calendar-grid.js +173 -0
- package/dist/composed/date-picker/date-picker.d.ts +14 -0
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/date-picker.js +123 -0
- package/dist/composed/date-picker/date-range-picker.d.ts +23 -0
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/date-range-picker.js +166 -0
- package/dist/composed/date-picker/date-time-picker.d.ts +24 -0
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/date-time-picker.js +192 -0
- package/dist/composed/date-picker/index.d.ts +18 -0
- package/dist/composed/date-picker/index.d.ts.map +1 -0
- package/dist/composed/date-picker/month-picker.d.ts +10 -0
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/month-picker.js +52 -0
- package/dist/composed/date-picker/presets.d.ts +9 -0
- package/dist/composed/date-picker/presets.d.ts.map +1 -0
- package/dist/composed/date-picker/presets.js +83 -0
- package/dist/composed/date-picker/time-picker.d.ts +24 -0
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/time-picker.js +180 -0
- package/dist/composed/date-picker/use-calendar.d.ts +9 -0
- package/dist/composed/date-picker/use-calendar.d.ts.map +1 -0
- package/dist/composed/date-picker/use-calendar.js +16 -0
- package/dist/composed/date-picker/year-picker.d.ts +10 -0
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/year-picker.js +44 -0
- package/dist/composed/empty-state.d.ts +12 -0
- package/dist/composed/empty-state.d.ts.map +1 -0
- package/dist/composed/empty-state.js +74 -0
- package/dist/composed/error-boundary.d.ts +8 -0
- package/dist/composed/error-boundary.d.ts.map +1 -0
- package/dist/composed/error-boundary.js +114 -0
- package/dist/composed/global-loading.d.ts +7 -0
- package/dist/composed/global-loading.d.ts.map +1 -0
- package/dist/composed/global-loading.js +43 -0
- package/dist/composed/index.d.ts +28 -0
- package/dist/composed/index.d.ts.map +1 -0
- package/dist/composed/index.js +54 -0
- package/dist/composed/lib/string-utils.d.ts +6 -0
- package/dist/composed/lib/string-utils.d.ts.map +1 -0
- package/dist/composed/lib/string-utils.js +7 -0
- package/dist/composed/loading-skeleton.d.ts +22 -0
- package/dist/composed/loading-skeleton.d.ts.map +1 -0
- package/dist/composed/loading-skeleton.js +164 -0
- package/dist/composed/member-picker.d.ts +17 -0
- package/dist/composed/member-picker.d.ts.map +1 -0
- package/dist/composed/member-picker.js +81 -0
- package/dist/composed/page-header.d.ts +15 -0
- package/dist/composed/page-header.d.ts.map +1 -0
- package/dist/composed/page-header.js +65 -0
- package/dist/composed/page-skeletons.d.ts +6 -0
- package/dist/composed/page-skeletons.d.ts.map +1 -0
- package/dist/composed/page-skeletons.js +128 -0
- package/dist/composed/priority-indicator.d.ts +12 -0
- package/dist/composed/priority-indicator.d.ts.map +1 -0
- package/dist/composed/priority-indicator.js +86 -0
- package/dist/composed/rich-text-editor.d.ts +16 -0
- package/dist/composed/rich-text-editor.d.ts.map +1 -0
- package/dist/composed/rich-text-editor.js +222 -0
- package/dist/composed/status-badge.d.ts +13 -0
- package/dist/composed/status-badge.d.ts.map +1 -0
- package/dist/composed/status-badge.js +69 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/use-color-mode.d.ts +7 -0
- package/dist/hooks/use-color-mode.d.ts.map +1 -0
- package/dist/hooks/use-color-mode.js +23 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +14 -0
- package/dist/hooks/use-toast.d.ts +46 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/use-toast.js +97 -0
- package/dist/primitives/_internal/number.d.ts +7 -0
- package/dist/primitives/_internal/number.d.ts.map +1 -0
- package/dist/primitives/_internal/number.js +6 -0
- package/dist/primitives/_internal/primitive.d.ts +17 -0
- package/dist/primitives/_internal/primitive.d.ts.map +1 -0
- package/dist/primitives/_internal/primitive.js +9 -0
- package/dist/primitives/_internal/react-arrow.d.ts +14 -0
- package/dist/primitives/_internal/react-arrow.d.ts.map +1 -0
- package/dist/primitives/_internal/react-arrow.js +24 -0
- package/dist/primitives/_internal/react-collection.d.ts +22 -0
- package/dist/primitives/_internal/react-collection.d.ts.map +1 -0
- package/dist/primitives/_internal/react-collection.js +48 -0
- package/dist/primitives/_internal/react-compose-refs.d.ts +10 -0
- package/dist/primitives/_internal/react-compose-refs.d.ts.map +1 -0
- package/dist/primitives/_internal/react-compose-refs.js +29 -0
- package/dist/primitives/_internal/react-context.d.ts +25 -0
- package/dist/primitives/_internal/react-context.d.ts.map +1 -0
- package/dist/primitives/_internal/react-context.js +74 -0
- package/dist/primitives/_internal/react-direction.d.ts +16 -0
- package/dist/primitives/_internal/react-direction.d.ts.map +1 -0
- package/dist/primitives/_internal/react-direction.js +10 -0
- package/dist/primitives/_internal/react-dismissable-layer.d.ts +30 -0
- package/dist/primitives/_internal/react-dismissable-layer.d.ts.map +1 -0
- package/dist/primitives/_internal/react-dismissable-layer.js +131 -0
- package/dist/primitives/_internal/react-focus-guards.d.ts +12 -0
- package/dist/primitives/_internal/react-focus-guards.d.ts.map +1 -0
- package/dist/primitives/_internal/react-focus-guards.js +17 -0
- package/dist/primitives/_internal/react-focus-scope.d.ts +18 -0
- package/dist/primitives/_internal/react-focus-scope.d.ts.map +1 -0
- package/dist/primitives/_internal/react-focus-scope.js +137 -0
- package/dist/primitives/_internal/react-id.d.ts +7 -0
- package/dist/primitives/_internal/react-id.d.ts.map +1 -0
- package/dist/primitives/_internal/react-id.js +14 -0
- package/dist/primitives/_internal/react-popper.d.ts +50 -0
- package/dist/primitives/_internal/react-popper.d.ts.map +1 -0
- package/dist/primitives/_internal/react-popper.js +199 -0
- package/dist/primitives/_internal/react-portal.d.ts +15 -0
- package/dist/primitives/_internal/react-portal.d.ts.map +1 -0
- package/dist/primitives/_internal/react-portal.js +16 -0
- package/dist/primitives/_internal/react-presence.d.ts +16 -0
- package/dist/primitives/_internal/react-presence.d.ts.map +1 -0
- package/dist/primitives/_internal/react-presence.js +71 -0
- package/dist/primitives/_internal/react-primitive.d.ts +20 -0
- package/dist/primitives/_internal/react-primitive.d.ts.map +1 -0
- package/dist/primitives/_internal/react-primitive.js +36 -0
- package/dist/primitives/_internal/react-use-callback-ref.d.ts +7 -0
- package/dist/primitives/_internal/react-use-callback-ref.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-callback-ref.js +13 -0
- package/dist/primitives/_internal/react-use-controllable-state.d.ts +16 -0
- package/dist/primitives/_internal/react-use-controllable-state.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-controllable-state.js +44 -0
- package/dist/primitives/_internal/react-use-effect-event.d.ts +8 -0
- package/dist/primitives/_internal/react-use-effect-event.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-escape-keydown.d.ts +7 -0
- package/dist/primitives/_internal/react-use-escape-keydown.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-escape-keydown.js +14 -0
- package/dist/primitives/_internal/react-use-is-hydrated.d.ts +7 -0
- package/dist/primitives/_internal/react-use-is-hydrated.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-is-hydrated.js +15 -0
- package/dist/primitives/_internal/react-use-layout-effect.d.ts +8 -0
- package/dist/primitives/_internal/react-use-layout-effect.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-layout-effect.js +6 -0
- package/dist/primitives/_internal/react-use-previous.d.ts +7 -0
- package/dist/primitives/_internal/react-use-previous.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-previous.js +8 -0
- package/dist/primitives/_internal/react-use-rect.d.ts +4 -0
- package/dist/primitives/_internal/react-use-rect.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-size.d.ts +10 -0
- package/dist/primitives/_internal/react-use-size.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-size.js +27 -0
- package/dist/primitives/_internal/rect.d.ts +12 -0
- package/dist/primitives/_internal/rect.d.ts.map +1 -0
- package/dist/primitives/react-accordion.js +239 -0
- package/dist/primitives/react-alert-dialog.js +127 -0
- package/dist/primitives/react-aspect-ratio.js +43 -0
- package/dist/primitives/react-avatar.js +75 -0
- package/dist/primitives/react-checkbox.js +251 -0
- package/dist/primitives/react-collapsible.js +120 -0
- package/dist/primitives/react-context-menu.js +240 -0
- package/dist/primitives/react-dialog.js +262 -0
- package/dist/primitives/react-dropdown-menu.js +227 -0
- package/dist/primitives/react-hover-card.js +187 -0
- package/dist/primitives/react-label.js +20 -0
- package/dist/primitives/react-menu.js +652 -0
- package/dist/primitives/react-menubar.js +355 -0
- package/dist/primitives/react-navigation-menu.js +607 -0
- package/dist/primitives/react-popover.js +243 -0
- package/dist/primitives/react-progress.js +84 -0
- package/dist/primitives/react-radio-group.js +238 -0
- package/dist/primitives/react-roving-focus.js +183 -0
- package/dist/primitives/react-select.js +862 -0
- package/dist/primitives/react-separator.js +24 -0
- package/dist/primitives/react-slider.js +437 -0
- package/dist/primitives/react-slot.d.ts +27 -0
- package/dist/primitives/react-slot.d.ts.map +1 -0
- package/dist/primitives/react-slot.js +70 -0
- package/dist/primitives/react-switch.js +132 -0
- package/dist/primitives/react-tabs.js +163 -0
- package/dist/primitives/react-toast.js +446 -0
- package/dist/primitives/react-toggle-group.js +137 -0
- package/dist/primitives/react-toggle.js +33 -0
- package/dist/primitives/react-tooltip.js +338 -0
- package/dist/primitives/react-visually-hidden.js +32 -0
- package/dist/shell/app-command-palette.d.ts +35 -0
- package/dist/shell/app-command-palette.d.ts.map +1 -0
- package/dist/shell/app-command-palette.js +196 -0
- package/dist/shell/bottom-navbar.d.ts +35 -0
- package/dist/shell/bottom-navbar.d.ts.map +1 -0
- package/dist/shell/bottom-navbar.js +160 -0
- package/dist/shell/index.d.ts +7 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +14 -0
- package/dist/shell/notification-center.d.ts +50 -0
- package/dist/shell/notification-center.d.ts.map +1 -0
- package/dist/shell/notification-center.js +221 -0
- package/dist/shell/notification-preferences.d.ts +41 -0
- package/dist/shell/notification-preferences.d.ts.map +1 -0
- package/dist/shell/notification-preferences.js +183 -0
- package/dist/shell/sidebar.d.ts +51 -0
- package/dist/shell/sidebar.d.ts.map +1 -0
- package/dist/shell/sidebar.js +101 -0
- package/dist/shell/top-bar.d.ts +33 -0
- package/dist/shell/top-bar.d.ts.map +1 -0
- package/dist/shell/top-bar.js +140 -0
- package/dist/tailwind/index.d.ts +2 -0
- package/dist/tailwind/index.d.ts.map +1 -0
- package/dist/tailwind/index.js +4 -0
- package/dist/tailwind/preset.d.ts +4 -0
- package/dist/tailwind/preset.d.ts.map +1 -0
- package/dist/tailwind/preset.js +310 -0
- package/dist/tokens/index.css +3 -0
- package/dist/tokens/primitives.css +189 -0
- package/dist/tokens/semantic.css +426 -0
- package/dist/tokens/typography-semantic.css +100 -0
- package/dist/tokens/typography.css +393 -0
- package/dist/ui/accordion.d.ts +53 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.js +46 -0
- package/dist/ui/alert-dialog.d.ts +21 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +117 -0
- package/dist/ui/alert.d.ts +47 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +52 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.js +6 -0
- package/dist/ui/autocomplete.d.ts +49 -0
- package/dist/ui/autocomplete.d.ts.map +1 -0
- package/dist/ui/autocomplete.js +124 -0
- package/dist/ui/avatar.d.ts +51 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/avatar.js +91 -0
- package/dist/ui/badge.d.ts +43 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +64 -0
- package/dist/ui/banner.d.ts +43 -0
- package/dist/ui/banner.d.ts.map +1 -0
- package/dist/ui/banner.js +50 -0
- package/dist/ui/breadcrumb.d.ts +20 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb.js +83 -0
- package/dist/ui/button-group.d.ts +51 -0
- package/dist/ui/button-group.d.ts.map +1 -0
- package/dist/ui/button-group.js +41 -0
- package/dist/ui/button.d.ts +63 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +105 -0
- package/dist/ui/card.d.ts +64 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +79 -0
- package/dist/ui/charts/_internal/animation.d.ts +5 -0
- package/dist/ui/charts/_internal/animation.d.ts.map +1 -0
- package/dist/ui/charts/_internal/animation.js +17 -0
- package/dist/ui/charts/_internal/axes.d.ts +17 -0
- package/dist/ui/charts/_internal/axes.d.ts.map +1 -0
- package/dist/ui/charts/_internal/axes.js +41 -0
- package/dist/ui/charts/_internal/colors.d.ts +8 -0
- package/dist/ui/charts/_internal/colors.d.ts.map +1 -0
- package/dist/ui/charts/_internal/colors.js +20 -0
- package/dist/ui/charts/_internal/grid-lines.d.ts +16 -0
- package/dist/ui/charts/_internal/grid-lines.d.ts.map +1 -0
- package/dist/ui/charts/_internal/grid-lines.js +42 -0
- package/dist/ui/charts/_internal/legend.d.ts +15 -0
- package/dist/ui/charts/_internal/legend.d.ts.map +1 -0
- package/dist/ui/charts/_internal/legend.js +28 -0
- package/dist/ui/charts/_internal/scales.d.ts +5 -0
- package/dist/ui/charts/_internal/scales.d.ts.map +1 -0
- package/dist/ui/charts/_internal/tooltip.d.ts +23 -0
- package/dist/ui/charts/_internal/tooltip.d.ts.map +1 -0
- package/dist/ui/charts/_internal/tooltip.js +38 -0
- package/dist/ui/charts/_internal/types.d.ts +17 -0
- package/dist/ui/charts/_internal/types.d.ts.map +1 -0
- package/dist/ui/charts/_internal/types.js +9 -0
- package/dist/ui/charts/area-chart.d.ts +39 -0
- package/dist/ui/charts/area-chart.d.ts.map +1 -0
- package/dist/ui/charts/area-chart.js +244 -0
- package/dist/ui/charts/bar-chart.d.ts +41 -0
- package/dist/ui/charts/bar-chart.d.ts.map +1 -0
- package/dist/ui/charts/bar-chart.js +152 -0
- package/dist/ui/charts/chart-container.d.ts +20 -0
- package/dist/ui/charts/chart-container.d.ts.map +1 -0
- package/dist/ui/charts/chart-container.js +26 -0
- package/dist/ui/charts/gauge-chart.d.ts +32 -0
- package/dist/ui/charts/gauge-chart.d.ts.map +1 -0
- package/dist/ui/charts/gauge-chart.js +71 -0
- package/dist/ui/charts/index.d.ts +10 -0
- package/dist/ui/charts/index.d.ts.map +1 -0
- package/dist/ui/charts/line-chart.d.ts +37 -0
- package/dist/ui/charts/line-chart.d.ts.map +1 -0
- package/dist/ui/charts/line-chart.js +162 -0
- package/dist/ui/charts/pie-chart.d.ts +37 -0
- package/dist/ui/charts/pie-chart.d.ts.map +1 -0
- package/dist/ui/charts/pie-chart.js +131 -0
- package/dist/ui/charts/radar-chart.d.ts +34 -0
- package/dist/ui/charts/radar-chart.d.ts.map +1 -0
- package/dist/ui/charts/radar-chart.js +222 -0
- package/dist/ui/charts/sparkline.d.ts +22 -0
- package/dist/ui/charts/sparkline.d.ts.map +1 -0
- package/dist/ui/charts/sparkline.js +123 -0
- package/dist/ui/checkbox.d.ts +36 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +33 -0
- package/dist/ui/chip.d.ts +66 -0
- package/dist/ui/chip.d.ts.map +1 -0
- package/dist/ui/chip.js +105 -0
- package/dist/ui/code.d.ts +30 -0
- package/dist/ui/code.d.ts.map +1 -0
- package/dist/ui/code.js +32 -0
- package/dist/ui/collapsible.d.ts +7 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/collapsible.js +21 -0
- package/dist/ui/combobox.d.ts +76 -0
- package/dist/ui/combobox.d.ts.map +1 -0
- package/dist/ui/combobox.js +286 -0
- package/dist/ui/container.d.ts +10 -0
- package/dist/ui/container.d.ts.map +1 -0
- package/dist/ui/container.js +24 -0
- package/dist/ui/context-menu.d.ts +28 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +145 -0
- package/dist/ui/data-table-toolbar.d.ts +16 -0
- package/dist/ui/data-table-toolbar.d.ts.map +1 -0
- package/dist/ui/data-table-toolbar.js +136 -0
- package/dist/ui/data-table.d.ts +111 -0
- package/dist/ui/data-table.d.ts.map +1 -0
- package/dist/ui/data-table.js +491 -0
- package/dist/ui/dialog.d.ts +74 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +110 -0
- package/dist/ui/dropdown-menu.d.ts +88 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +144 -0
- package/dist/ui/file-upload.d.ts +67 -0
- package/dist/ui/file-upload.d.ts.map +1 -0
- package/dist/ui/file-upload.js +226 -0
- package/dist/ui/form.d.ts +56 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +46 -0
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/hover-card.js +23 -0
- package/dist/ui/icon-button.d.ts +46 -0
- package/dist/ui/icon-button.d.ts.map +1 -0
- package/dist/ui/icon-button.js +26 -0
- package/dist/ui/index.d.ts +68 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +344 -0
- package/dist/ui/input-otp.d.ts +35 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/input-otp.js +48 -0
- package/dist/ui/input.d.ts +44 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +58 -0
- package/dist/ui/label.d.ts +8 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +23 -0
- package/dist/ui/lib/motion.d.ts +10 -0
- package/dist/ui/lib/motion.d.ts.map +1 -0
- package/dist/ui/lib/motion.js +32 -0
- package/dist/ui/lib/slot.d.ts +8 -0
- package/dist/ui/lib/slot.d.ts.map +1 -0
- package/dist/ui/lib/use-reduced-motion.d.ts +3 -0
- package/dist/ui/lib/use-reduced-motion.d.ts.map +1 -0
- package/dist/ui/lib/use-reduced-motion.js +14 -0
- package/dist/ui/lib/use-ripple.d.ts +13 -0
- package/dist/ui/lib/use-ripple.d.ts.map +1 -0
- package/dist/ui/lib/use-ripple.js +13 -0
- package/dist/ui/lib/utils.d.ts +3 -0
- package/dist/ui/lib/utils.d.ts.map +1 -0
- package/dist/ui/lib/utils.js +15 -0
- package/dist/ui/link.d.ts +8 -0
- package/dist/ui/link.d.ts.map +1 -0
- package/dist/ui/link.js +24 -0
- package/dist/ui/menubar.d.ts +29 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/menubar.js +176 -0
- package/dist/ui/navigation-menu.d.ts +12 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/navigation-menu.js +103 -0
- package/dist/ui/number-input.d.ts +40 -0
- package/dist/ui/number-input.d.ts.map +1 -0
- package/dist/ui/number-input.js +80 -0
- package/dist/ui/pagination.d.ts +74 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/pagination.js +159 -0
- package/dist/ui/popover.d.ts +8 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.js +24 -0
- package/dist/ui/progress.d.ts +49 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/progress.js +75 -0
- package/dist/ui/radio.d.ts +6 -0
- package/dist/ui/radio.d.ts.map +1 -0
- package/dist/ui/radio.js +29 -0
- package/dist/ui/search-input.d.ts +44 -0
- package/dist/ui/search-input.d.ts.map +1 -0
- package/dist/ui/search-input.js +63 -0
- package/dist/ui/segmented-control.d.ts +122 -0
- package/dist/ui/segmented-control.d.ts.map +1 -0
- package/dist/ui/segmented-control.js +270 -0
- package/dist/ui/select.d.ts +49 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +132 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +24 -0
- package/dist/ui/sheet.d.ts +108 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.js +110 -0
- package/dist/ui/sidebar.d.ts +67 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/sidebar.js +562 -0
- package/dist/ui/skeleton.d.ts +40 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +36 -0
- package/dist/ui/slider.d.ts +5 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/slider.js +29 -0
- package/dist/ui/spinner.d.ts +38 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +47 -0
- package/dist/ui/stack.d.ts +15 -0
- package/dist/ui/stack.d.ts.map +1 -0
- package/dist/ui/stack.js +41 -0
- package/dist/ui/stat-card.d.ts +54 -0
- package/dist/ui/stat-card.d.ts.map +1 -0
- package/dist/ui/stat-card.js +52 -0
- package/dist/ui/stepper.d.ts +57 -0
- package/dist/ui/stepper.d.ts.map +1 -0
- package/dist/ui/stepper.js +90 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +27 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +91 -0
- package/dist/ui/tabs.d.ts +81 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +74 -0
- package/dist/ui/text.d.ts +47 -0
- package/dist/ui/text.d.ts.map +1 -0
- package/dist/ui/text.js +59 -0
- package/dist/ui/textarea.d.ts +40 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +47 -0
- package/dist/ui/toast.d.ts +32 -0
- package/dist/ui/toast.d.ts.map +1 -0
- package/dist/ui/toast.js +98 -0
- package/dist/ui/toaster.d.ts +42 -0
- package/dist/ui/toaster.d.ts.map +1 -0
- package/dist/ui/toaster.js +23 -0
- package/dist/ui/toggle-group.d.ts +13 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle-group.js +40 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/dist/ui/toggle.js +37 -0
- package/dist/ui/tooltip.d.ts +8 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +23 -0
- package/dist/ui/transitions.d.ts +16 -0
- package/dist/ui/transitions.d.ts.map +1 -0
- package/dist/ui/transitions.js +100 -0
- package/dist/ui/tree-view/index.d.ts +4 -0
- package/dist/ui/tree-view/index.d.ts.map +1 -0
- package/dist/ui/tree-view/tree-item.d.ts +22 -0
- package/dist/ui/tree-view/tree-item.d.ts.map +1 -0
- package/dist/ui/tree-view/tree-item.js +136 -0
- package/dist/ui/tree-view/tree-view.d.ts +29 -0
- package/dist/ui/tree-view/tree-view.d.ts.map +1 -0
- package/dist/ui/tree-view/tree-view.js +139 -0
- package/dist/ui/tree-view/use-tree.d.ts +26 -0
- package/dist/ui/tree-view/use-tree.d.ts.map +1 -0
- package/dist/ui/tree-view/use-tree.js +37 -0
- package/dist/ui/visually-hidden.d.ts +6 -0
- package/dist/ui/visually-hidden.d.ts.map +1 -0
- package/dist/ui/visually-hidden.js +10 -0
- package/fonts/GoogleSans-Italic-Variable.ttf +0 -0
- package/fonts/GoogleSans-Variable.ttf +0 -0
- package/fonts/Ranade-Variable.ttf +0 -0
- package/fonts/Ranade-VariableItalic.ttf +0 -0
- package/package.json +83 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for Spinner — an animated loading indicator rendered as an SVG circle with a `role="status"`
|
|
4
|
+
* wrapper and a visually-hidden "Loading..." text for screen readers.
|
|
5
|
+
*
|
|
6
|
+
* **Sizes:** `sm` (icon-sm) | `md` (icon-md, default) | `lg` (icon-lg)
|
|
7
|
+
*
|
|
8
|
+
* **Accessibility:** The spinner renders `<span role="status"><svg>...</svg><span className="sr-only">Loading...</span></span>`.
|
|
9
|
+
* You don't need to add `aria-label` — the sr-only text is already present.
|
|
10
|
+
*
|
|
11
|
+
* **Note:** `<Button>` has built-in `loading` + `loadingPosition` — prefer that over composing manually.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Inline loading indicator next to button text:
|
|
15
|
+
* <div className="flex items-center gap-ds-03">
|
|
16
|
+
* <Spinner size="sm" />
|
|
17
|
+
* <span>Saving...</span>
|
|
18
|
+
* </div>
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Full-page centered loading state:
|
|
22
|
+
* <div className="flex h-screen items-center justify-center">
|
|
23
|
+
* <Spinner size="lg" />
|
|
24
|
+
* </div>
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Spinner inside a card while data loads:
|
|
28
|
+
* <Card className="flex items-center justify-center min-h-[120px]">
|
|
29
|
+
* <Spinner />
|
|
30
|
+
* </Card>
|
|
31
|
+
* // These are just a few ways — feel free to combine props creatively!
|
|
32
|
+
*/
|
|
33
|
+
export interface SpinnerProps extends React.SVGAttributes<SVGSVGElement> {
|
|
34
|
+
size?: 'sm' | 'md' | 'lg';
|
|
35
|
+
}
|
|
36
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<SVGSVGElement>>;
|
|
37
|
+
export { Spinner };
|
|
38
|
+
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/ui/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IACtE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC1B;AAED,QAAA,MAAM,OAAO,oFA6BZ,CAAA;AAGD,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { cn as c } from "./lib/utils.js";
|
|
4
|
+
const a = {
|
|
5
|
+
sm: "h-ico-sm w-ico-sm",
|
|
6
|
+
md: "h-ico-md w-ico-md",
|
|
7
|
+
lg: "h-ico-lg w-ico-lg"
|
|
8
|
+
}, t = n.forwardRef(
|
|
9
|
+
({ size: s = "md", className: i, ...e }, l) => /* @__PURE__ */ r("span", { role: "status", children: [
|
|
10
|
+
/* @__PURE__ */ r(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
ref: l,
|
|
14
|
+
className: c("animate-spin", a[s], i),
|
|
15
|
+
viewBox: "0 0 24 24",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
...e,
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ o(
|
|
21
|
+
"circle",
|
|
22
|
+
{
|
|
23
|
+
cx: "12",
|
|
24
|
+
cy: "12",
|
|
25
|
+
r: "10",
|
|
26
|
+
stroke: "var(--color-border-subtle)",
|
|
27
|
+
strokeWidth: "4",
|
|
28
|
+
fill: "none"
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ o(
|
|
32
|
+
"path",
|
|
33
|
+
{
|
|
34
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",
|
|
35
|
+
fill: "var(--color-interactive)"
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
42
|
+
] })
|
|
43
|
+
);
|
|
44
|
+
t.displayName = "Spinner";
|
|
45
|
+
export {
|
|
46
|
+
t as Spinner
|
|
47
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type SpacingToken = 'ds-01' | 'ds-02' | 'ds-02b' | 'ds-03' | 'ds-04' | 'ds-05' | 'ds-05b' | 'ds-06' | 'ds-07' | 'ds-08' | 'ds-09' | 'ds-10' | 'ds-11' | 'ds-12' | 'ds-13';
|
|
3
|
+
type StackProps<T extends React.ElementType = 'div'> = {
|
|
4
|
+
as?: T;
|
|
5
|
+
direction?: 'vertical' | 'horizontal';
|
|
6
|
+
gap?: SpacingToken;
|
|
7
|
+
align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
8
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
9
|
+
wrap?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
} & Omit<React.ComponentPropsWithRef<T>, 'as' | 'className' | 'children'>;
|
|
13
|
+
declare const Stack: React.ForwardRefExoticComponent<Omit<StackProps<"div">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
14
|
+
export { Stack, type SpacingToken, type StackProps };
|
|
15
|
+
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/ui/stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,KAAK,YAAY,GACb,OAAO,GACP,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,CAAA;AAEX,KAAK,UAAU,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI;IACrD,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IACrC,GAAG,CAAC,EAAE,YAAY,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAA;IAC3D,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACtE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,CAAA;AAmBzE,QAAA,MAAM,KAAK,oGAqBV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,CAAA"}
|
package/dist/ui/stack.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { cn as d } from "./lib/utils.js";
|
|
3
|
+
const u = {
|
|
4
|
+
start: "items-start",
|
|
5
|
+
center: "items-center",
|
|
6
|
+
end: "items-end",
|
|
7
|
+
stretch: "items-stretch",
|
|
8
|
+
baseline: "items-baseline"
|
|
9
|
+
}, y = {
|
|
10
|
+
start: "justify-start",
|
|
11
|
+
center: "justify-center",
|
|
12
|
+
end: "justify-end",
|
|
13
|
+
between: "justify-between",
|
|
14
|
+
around: "justify-around",
|
|
15
|
+
evenly: "justify-evenly"
|
|
16
|
+
}, p = r.forwardRef(
|
|
17
|
+
({ as: n, direction: a = "vertical", gap: e, align: t, justify: s, wrap: c, className: i, children: o, ...f }, l) => {
|
|
18
|
+
const m = n || "div";
|
|
19
|
+
return r.createElement(
|
|
20
|
+
m,
|
|
21
|
+
{
|
|
22
|
+
ref: l,
|
|
23
|
+
className: d(
|
|
24
|
+
"flex",
|
|
25
|
+
a === "vertical" ? "flex-col" : "flex-row",
|
|
26
|
+
e && `gap-${e}`,
|
|
27
|
+
t && u[t],
|
|
28
|
+
s && y[s],
|
|
29
|
+
c && "flex-wrap",
|
|
30
|
+
i
|
|
31
|
+
),
|
|
32
|
+
...f
|
|
33
|
+
},
|
|
34
|
+
o
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
p.displayName = "Stack";
|
|
39
|
+
export {
|
|
40
|
+
p as Stack
|
|
41
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for StatCard — a dashboard metric tile displaying a label, a large numeric value,
|
|
4
|
+
* an optional trend delta (with directional arrow icon), and an optional header icon.
|
|
5
|
+
*
|
|
6
|
+
* **Delta direction:** `'up'` renders a green trending-up arrow, `'down'` renders a red
|
|
7
|
+
* trending-down arrow, `'neutral'` renders a grey dash. The `delta.value` is a formatted
|
|
8
|
+
* string (e.g. `"+8%"` or `"−120"`).
|
|
9
|
+
*
|
|
10
|
+
* **Loading state:** Pass `loading={true}` to render a pulse-skeleton placeholder instead of data.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // Revenue metric with a positive trend:
|
|
14
|
+
* <StatCard
|
|
15
|
+
* label="Monthly Revenue"
|
|
16
|
+
* value="$48,200"
|
|
17
|
+
* delta={{ value: "+12%", direction: "up" }}
|
|
18
|
+
* icon={<IconCurrencyDollar />}
|
|
19
|
+
* />
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // Open ticket count with a downward trend (good for support queues):
|
|
23
|
+
* <StatCard
|
|
24
|
+
* label="Open Tickets"
|
|
25
|
+
* value={142}
|
|
26
|
+
* delta={{ value: "−18", direction: "down" }}
|
|
27
|
+
* />
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // Loading skeleton while data is fetching:
|
|
31
|
+
* <StatCard label="Users" value={0} loading={isFetching} />
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Simple metric with no trend (stable, neutral):
|
|
35
|
+
* <StatCard
|
|
36
|
+
* label="Storage Used"
|
|
37
|
+
* value="4.2 GB"
|
|
38
|
+
* delta={{ value: "No change", direction: "neutral" }}
|
|
39
|
+
* />
|
|
40
|
+
* // These are just a few ways — feel free to combine props creatively!
|
|
41
|
+
*/
|
|
42
|
+
export interface StatCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
43
|
+
label: string;
|
|
44
|
+
value: string | number;
|
|
45
|
+
delta?: {
|
|
46
|
+
value: string;
|
|
47
|
+
direction: 'up' | 'down' | 'neutral';
|
|
48
|
+
};
|
|
49
|
+
icon?: React.ReactNode;
|
|
50
|
+
loading?: boolean;
|
|
51
|
+
}
|
|
52
|
+
declare const StatCard: React.ForwardRefExoticComponent<StatCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export { StatCard };
|
|
54
|
+
//# sourceMappingURL=stat-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stat-card.d.ts","sourceRoot":"","sources":["../../src/ui/stat-card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;KACrC,CAAA;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,QAAQ,sFA8Db,CAAA;AAID,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { IconTrendingUp as l, IconTrendingDown as x, IconMinus as p } from "@tabler/icons-react";
|
|
3
|
+
import * as h from "react";
|
|
4
|
+
import { cn as d } from "./lib/utils.js";
|
|
5
|
+
const f = h.forwardRef(
|
|
6
|
+
({ className: n, label: m, value: c, delta: e, icon: o, loading: a, ...i }, t) => {
|
|
7
|
+
if (a)
|
|
8
|
+
return /* @__PURE__ */ r(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
ref: t,
|
|
12
|
+
className: d(
|
|
13
|
+
"rounded-ds-lg border border-border-subtle bg-layer-01 shadow-01 p-ds-05b",
|
|
14
|
+
n
|
|
15
|
+
),
|
|
16
|
+
...i,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ s("div", { className: "h-ds-04 w-24 rounded-ds-sm bg-skeleton-base animate-pulse mb-ds-05" }),
|
|
19
|
+
/* @__PURE__ */ s("div", { className: "h-ds-sm w-32 rounded-ds-md bg-skeleton-base animate-pulse mb-ds-03" }),
|
|
20
|
+
/* @__PURE__ */ s("div", { className: "h-3 w-16 rounded-ds-sm bg-skeleton-base animate-pulse" })
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
const u = (e == null ? void 0 : e.direction) === "up" ? l : (e == null ? void 0 : e.direction) === "down" ? x : p, b = (e == null ? void 0 : e.direction) === "up" ? "text-success" : (e == null ? void 0 : e.direction) === "down" ? "text-error" : "text-text-secondary";
|
|
25
|
+
return /* @__PURE__ */ r(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
ref: t,
|
|
29
|
+
className: d(
|
|
30
|
+
"rounded-ds-lg border border-border-subtle bg-layer-01 shadow-01 p-ds-05b",
|
|
31
|
+
n
|
|
32
|
+
),
|
|
33
|
+
...i,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between mb-ds-04", children: [
|
|
36
|
+
/* @__PURE__ */ s("p", { className: "text-ds-md font-medium text-text-secondary", children: m }),
|
|
37
|
+
o && /* @__PURE__ */ s("span", { className: "text-text-secondary", "aria-hidden": "true", children: o })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ s("p", { className: "text-ds-3xl font-semibold text-text-primary tabular-nums", children: c }),
|
|
40
|
+
e && /* @__PURE__ */ r("div", { className: d("mt-ds-03 flex items-center gap-ds-02 text-ds-sm font-medium", b), children: [
|
|
41
|
+
/* @__PURE__ */ s(u, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" }),
|
|
42
|
+
/* @__PURE__ */ s("span", { children: e.value })
|
|
43
|
+
] })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
f.displayName = "StatCard";
|
|
50
|
+
export {
|
|
51
|
+
f as StatCard
|
|
52
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for Stepper — a multi-step progress indicator that renders a connected series of `<Step>`
|
|
4
|
+
* children with connector lines, showing completed/active/pending states automatically.
|
|
5
|
+
*
|
|
6
|
+
* **`activeStep`:** 0-indexed. Step at `activeStep` is "active", steps before it are "completed",
|
|
7
|
+
* steps after it are "pending". Update this value to advance the stepper.
|
|
8
|
+
*
|
|
9
|
+
* **Orientation:** `'horizontal'` (default, left-to-right) | `'vertical'` (top-to-bottom, for sidebars).
|
|
10
|
+
*
|
|
11
|
+
* **Children:** Must be `<Step>` components. The Stepper injects `_index` into each child automatically.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Horizontal 3-step form wizard:
|
|
15
|
+
* <Stepper activeStep={currentStep}>
|
|
16
|
+
* <Step label="Account" description="Create your credentials" />
|
|
17
|
+
* <Step label="Profile" description="Add your details" />
|
|
18
|
+
* <Step label="Review" description="Confirm and submit" />
|
|
19
|
+
* </Stepper>
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // Vertical onboarding checklist in a sidebar:
|
|
23
|
+
* <Stepper activeStep={completedSteps} orientation="vertical">
|
|
24
|
+
* <Step label="Connect workspace" />
|
|
25
|
+
* <Step label="Invite teammates" />
|
|
26
|
+
* <Step label="Set up billing" />
|
|
27
|
+
* </Stepper>
|
|
28
|
+
* // These are just a few ways — feel free to combine props creatively!
|
|
29
|
+
*/
|
|
30
|
+
interface StepperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
31
|
+
activeStep: number;
|
|
32
|
+
orientation?: 'horizontal' | 'vertical';
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
/**
|
|
37
|
+
* Props for Step — a single step within a `<Stepper>`. The visual state (completed/active/pending)
|
|
38
|
+
* is derived from the parent Stepper's `activeStep` and this step's position — you don't set it manually.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* // Basic step with label and description:
|
|
42
|
+
* <Step label="Payment" description="Enter your card details" />
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* // Step with a custom icon (overrides the default number/checkmark):
|
|
46
|
+
* <Step label="Verified" icon={<IconShieldCheck className="h-ico-sm w-ico-sm" />} />
|
|
47
|
+
*/
|
|
48
|
+
interface StepProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
49
|
+
label: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
icon?: React.ReactNode;
|
|
52
|
+
}
|
|
53
|
+
declare const Step: React.ForwardRefExoticComponent<StepProps & {
|
|
54
|
+
_index?: number;
|
|
55
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
export { Stepper, Step, type StepperProps, type StepProps };
|
|
57
|
+
//# sourceMappingURL=stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../src/ui/stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,UAAU,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjE,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,QAAA,MAAM,OAAO,qFAwCZ,CAAA;AAED;;;;;;;;;;;GAWG;AACH,UAAU,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB;AAID,QAAA,MAAM,IAAI;aAFsC,MAAM;wCAwDrD,CAAA;AAKD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsxs as x, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { cn as o } from "./lib/utils.js";
|
|
4
|
+
const f = t.createContext({
|
|
5
|
+
activeStep: 0,
|
|
6
|
+
orientation: "horizontal"
|
|
7
|
+
}), h = t.forwardRef(
|
|
8
|
+
({ activeStep: l, orientation: r = "horizontal", className: c, children: m, ...a }, p) => {
|
|
9
|
+
const d = t.Children.toArray(m);
|
|
10
|
+
return /* @__PURE__ */ e(f.Provider, { value: { activeStep: l, orientation: r }, children: /* @__PURE__ */ e(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
ref: p,
|
|
14
|
+
className: o(
|
|
15
|
+
"flex gap-ds-02",
|
|
16
|
+
r === "vertical" ? "flex-col" : "flex-row items-center",
|
|
17
|
+
c
|
|
18
|
+
),
|
|
19
|
+
role: "list",
|
|
20
|
+
...a,
|
|
21
|
+
children: d.map((n, s) => /* @__PURE__ */ x(t.Fragment, { children: [
|
|
22
|
+
t.isValidElement(n) ? t.cloneElement(n, { _index: s }) : n,
|
|
23
|
+
s < d.length - 1 && /* @__PURE__ */ e(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: o(
|
|
27
|
+
"flex-1",
|
|
28
|
+
r === "vertical" ? "ml-ds-04 w-ds-01 min-h-ds-05" : "h-ds-01 min-w-ds-05",
|
|
29
|
+
s < l ? "bg-interactive" : "bg-border"
|
|
30
|
+
),
|
|
31
|
+
"aria-hidden": "true"
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] }, s))
|
|
35
|
+
}
|
|
36
|
+
) });
|
|
37
|
+
}
|
|
38
|
+
), v = t.forwardRef(
|
|
39
|
+
({ label: l, description: r, icon: c, className: m, _index: a = 0, ...p }, d) => {
|
|
40
|
+
const { activeStep: n, orientation: s } = t.useContext(f), i = a < n ? "completed" : a === n ? "active" : "pending";
|
|
41
|
+
return /* @__PURE__ */ x(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
ref: d,
|
|
45
|
+
"data-step": "",
|
|
46
|
+
"data-state": i,
|
|
47
|
+
role: "listitem",
|
|
48
|
+
className: o(
|
|
49
|
+
"flex items-center gap-ds-03",
|
|
50
|
+
s === "vertical" && "py-ds-02",
|
|
51
|
+
m
|
|
52
|
+
),
|
|
53
|
+
...p,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ e(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: o(
|
|
59
|
+
"flex-shrink-0 flex items-center justify-center w-ds-sm h-ds-sm rounded-ds-full text-[length:var(--font-size-sm)] font-[number:var(--font-weight-semibold)] transition-colors duration-fast-01",
|
|
60
|
+
i === "completed" && "bg-interactive text-text-on-color",
|
|
61
|
+
i === "active" && "bg-interactive text-text-on-color",
|
|
62
|
+
i === "pending" && "bg-layer-02 text-text-tertiary border border-border"
|
|
63
|
+
),
|
|
64
|
+
children: c || (i === "completed" ? /* @__PURE__ */ e("svg", { className: "w-ico-sm h-ico-sm", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polyline", { points: "20 6 9 17 4 12" }) }) : a + 1)
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ x("div", { className: "flex flex-col", children: [
|
|
68
|
+
/* @__PURE__ */ e(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
className: o(
|
|
72
|
+
"text-[length:var(--font-size-md)] font-[number:var(--font-weight-medium)] leading-[var(--line-height-snug)]",
|
|
73
|
+
i === "pending" ? "text-text-tertiary" : "text-text-primary"
|
|
74
|
+
),
|
|
75
|
+
children: l
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
r && /* @__PURE__ */ e("span", { className: "text-[length:var(--font-size-sm)] text-text-secondary leading-[var(--line-height-relaxed)]", children: r })
|
|
79
|
+
] })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
h.displayName = "Stepper";
|
|
86
|
+
v.displayName = "Step";
|
|
87
|
+
export {
|
|
88
|
+
v as Step,
|
|
89
|
+
h as Stepper
|
|
90
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SwitchPrimitives from "@primitives/react-switch";
|
|
3
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Switch };
|
|
5
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/ui/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAA;AAI5D,QAAA,MAAM,MAAM,8JAkBV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { Root as t, Thumb as n } from "../primitives/react-switch.js";
|
|
4
|
+
import { cn as o } from "./lib/utils.js";
|
|
5
|
+
const d = i.forwardRef(({ className: r, ...s }, a) => /* @__PURE__ */ e(
|
|
6
|
+
t,
|
|
7
|
+
{
|
|
8
|
+
className: o(
|
|
9
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong",
|
|
10
|
+
r
|
|
11
|
+
),
|
|
12
|
+
...s,
|
|
13
|
+
ref: a,
|
|
14
|
+
children: /* @__PURE__ */ e(
|
|
15
|
+
n,
|
|
16
|
+
{
|
|
17
|
+
className: o(
|
|
18
|
+
"pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-fast-01 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
d.displayName = t.displayName;
|
|
25
|
+
export {
|
|
26
|
+
d as Switch
|
|
27
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
7
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
8
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
11
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,KAAK,iHAWT,CAAA;AAGF,QAAA,MAAM,WAAW,+HAKf,CAAA;AAGF,QAAA,MAAM,SAAS,+HASb,CAAA;AAGF,QAAA,MAAM,WAAW,+HAYf,CAAA;AAGF,QAAA,MAAM,QAAQ,uHAYZ,CAAA;AAGF,QAAA,MAAM,SAAS,2HAab,CAAA;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAA;AAGF,QAAA,MAAM,YAAY,+HAShB,CAAA;AAGF,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAA"}
|
package/dist/ui/table.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as r } from "./lib/utils.js";
|
|
4
|
+
const s = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ l(
|
|
5
|
+
"table",
|
|
6
|
+
{
|
|
7
|
+
ref: t,
|
|
8
|
+
className: r("w-full caption-bottom text-ds-md", e),
|
|
9
|
+
...a
|
|
10
|
+
}
|
|
11
|
+
) }));
|
|
12
|
+
s.displayName = "Table";
|
|
13
|
+
const d = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l("thead", { ref: t, className: r("", e), ...a }));
|
|
14
|
+
d.displayName = "TableHeader";
|
|
15
|
+
const c = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
16
|
+
"tbody",
|
|
17
|
+
{
|
|
18
|
+
ref: t,
|
|
19
|
+
className: r("[&_tr:last-child]:border-0", e),
|
|
20
|
+
...a
|
|
21
|
+
}
|
|
22
|
+
));
|
|
23
|
+
c.displayName = "TableBody";
|
|
24
|
+
const m = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
25
|
+
"tfoot",
|
|
26
|
+
{
|
|
27
|
+
ref: t,
|
|
28
|
+
className: r(
|
|
29
|
+
"bg-[color-mix(in_srgb,var(--color-layer-02)_50%,transparent)] font-medium [&>tr]:last:border-b-0",
|
|
30
|
+
e
|
|
31
|
+
),
|
|
32
|
+
...a
|
|
33
|
+
}
|
|
34
|
+
));
|
|
35
|
+
m.displayName = "TableFooter";
|
|
36
|
+
const b = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
37
|
+
"tr",
|
|
38
|
+
{
|
|
39
|
+
ref: t,
|
|
40
|
+
className: r(
|
|
41
|
+
"transition-colors hover:bg-layer-02 data-[state=selected]:bg-interactive-selected",
|
|
42
|
+
e
|
|
43
|
+
),
|
|
44
|
+
...a
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
b.displayName = "TableRow";
|
|
48
|
+
const i = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
49
|
+
"th",
|
|
50
|
+
{
|
|
51
|
+
ref: t,
|
|
52
|
+
scope: "col",
|
|
53
|
+
className: r(
|
|
54
|
+
"h-ds-md px-ds-03 text-left align-left font-medium text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
55
|
+
e
|
|
56
|
+
),
|
|
57
|
+
...a
|
|
58
|
+
}
|
|
59
|
+
));
|
|
60
|
+
i.displayName = "TableHead";
|
|
61
|
+
const f = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
62
|
+
"td",
|
|
63
|
+
{
|
|
64
|
+
ref: t,
|
|
65
|
+
className: r(
|
|
66
|
+
"p-ds-03 px-0 align-left [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
67
|
+
e
|
|
68
|
+
),
|
|
69
|
+
...a
|
|
70
|
+
}
|
|
71
|
+
));
|
|
72
|
+
f.displayName = "TableCell";
|
|
73
|
+
const n = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
74
|
+
"caption",
|
|
75
|
+
{
|
|
76
|
+
ref: t,
|
|
77
|
+
className: r("mt-ds-05 text-ds-md text-text-secondary", e),
|
|
78
|
+
...a
|
|
79
|
+
}
|
|
80
|
+
));
|
|
81
|
+
n.displayName = "TableCaption";
|
|
82
|
+
export {
|
|
83
|
+
s as Table,
|
|
84
|
+
c as TableBody,
|
|
85
|
+
n as TableCaption,
|
|
86
|
+
f as TableCell,
|
|
87
|
+
m as TableFooter,
|
|
88
|
+
i as TableHead,
|
|
89
|
+
d as TableHeader,
|
|
90
|
+
b as TableRow
|
|
91
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as TabsPrimitive from '@primitives/react-tabs';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Tabs compound component — accessible tabbed navigation with keyboard support and two visual
|
|
6
|
+
* variants (line underline and contained pill styles).
|
|
7
|
+
*
|
|
8
|
+
* **Parts (in composition order):**
|
|
9
|
+
* - `Tabs` — manages active tab state (this root; takes `defaultValue`, `value`, `onValueChange`)
|
|
10
|
+
* - `TabsList` — tab bar container (takes `variant="line"|"contained"`, default `"line"`)
|
|
11
|
+
* - `TabsTrigger` — individual tab button (requires `value`; inherits `variant` from TabsList via context)
|
|
12
|
+
* - `TabsContent` — the panel shown when its tab is active (requires `value` matching a TabsTrigger)
|
|
13
|
+
*
|
|
14
|
+
* **Critical behavior:** `variant` set on `TabsList` propagates automatically via React context to
|
|
15
|
+
* all `TabsTrigger` children. You do NOT need to repeat `variant` on each trigger — but you CAN
|
|
16
|
+
* override it per-trigger if needed.
|
|
17
|
+
*
|
|
18
|
+
* @compound
|
|
19
|
+
* @example
|
|
20
|
+
* // Default line variant:
|
|
21
|
+
* <Tabs defaultValue="overview">
|
|
22
|
+
* <TabsList>
|
|
23
|
+
* <TabsTrigger value="overview">Overview</TabsTrigger>
|
|
24
|
+
* <TabsTrigger value="activity">Activity</TabsTrigger>
|
|
25
|
+
* <TabsTrigger value="settings">Settings</TabsTrigger>
|
|
26
|
+
* </TabsList>
|
|
27
|
+
* <TabsContent value="overview">Overview content</TabsContent>
|
|
28
|
+
* <TabsContent value="activity">Activity content</TabsContent>
|
|
29
|
+
* <TabsContent value="settings">Settings content</TabsContent>
|
|
30
|
+
* </Tabs>
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* // Contained pill variant (controlled):
|
|
34
|
+
* const [tab, setTab] = useState('members')
|
|
35
|
+
* <Tabs value={tab} onValueChange={setTab}>
|
|
36
|
+
* <TabsList variant="contained">
|
|
37
|
+
* <TabsTrigger value="members">Members</TabsTrigger>
|
|
38
|
+
* <TabsTrigger value="roles">Roles</TabsTrigger>
|
|
39
|
+
* </TabsList>
|
|
40
|
+
* <TabsContent value="members">Members list here.</TabsContent>
|
|
41
|
+
* <TabsContent value="roles">Roles list here.</TabsContent>
|
|
42
|
+
* </Tabs>
|
|
43
|
+
*/
|
|
44
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
/** Props for the Tabs root (defaultValue, value, onValueChange, etc.). */
|
|
46
|
+
export type TabsProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;
|
|
47
|
+
declare const tabsListVariants: (props?: ({
|
|
48
|
+
variant?: "line" | "contained" | null | undefined;
|
|
49
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
50
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
51
|
+
variant?: "line" | "contained" | null | undefined;
|
|
52
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
53
|
+
/**
|
|
54
|
+
* TabsList — container for tab triggers. Sets `variant` for all child TabsTriggers via context.
|
|
55
|
+
*
|
|
56
|
+
* **Compound structure — variant propagates automatically:**
|
|
57
|
+
* ```tsx
|
|
58
|
+
* <Tabs defaultValue="overview">
|
|
59
|
+
* <TabsList variant="contained">
|
|
60
|
+
* <TabsTrigger value="overview">Overview</TabsTrigger>
|
|
61
|
+
* <TabsTrigger value="activity">Activity</TabsTrigger>
|
|
62
|
+
* </TabsList>
|
|
63
|
+
* <TabsContent value="overview">Overview content</TabsContent>
|
|
64
|
+
* <TabsContent value="activity">Activity content</TabsContent>
|
|
65
|
+
* </Tabs>
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* `variant` on `TabsList` flows to all `TabsTrigger` children via React context.
|
|
69
|
+
* You do NOT need to repeat `variant` on each `TabsTrigger`.
|
|
70
|
+
*/
|
|
71
|
+
export interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, VariantProps<typeof tabsListVariants> {
|
|
72
|
+
}
|
|
73
|
+
declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
export interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, VariantProps<typeof tabsTriggerVariants> {
|
|
75
|
+
}
|
|
76
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
77
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
/** Props for TabsContent. The `value` prop must match a TabsTrigger's `value`. */
|
|
79
|
+
export type TabsContentProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;
|
|
80
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
81
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/ui/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,aAAa,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,QAAA,MAAM,IAAI,gGAAqB,CAAA;AAE/B,0EAA0E;AAC1E,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAA;AAKjF,QAAA,MAAM,gBAAgB;;8EASpB,CAAA;AAEF,QAAA,MAAM,mBAAmB;;8EAmBxB,CAAA;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EAC/D,YAAY,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE5C,QAAA,MAAM,QAAQ,sFAcZ,CAAA;AAGF,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,EAClE,YAAY,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE/C,QAAA,MAAM,WAAW,4FAcf,CAAA;AAGF,QAAA,MAAM,WAAW,0JAYf,CAAA;AAGF,kFAAkF;AAClF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;AAE3F,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA"}
|