@devalok/shilp-sutra 0.34.0 → 0.36.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/LICENSE +21 -21
- package/dist/_chunks/badge-group.js +306 -246
- package/dist/_chunks/badge-group.js.map +1 -0
- package/dist/_chunks/chat.js +518 -0
- package/dist/_chunks/chat.js.map +1 -0
- package/dist/_chunks/date-picker.js +748 -0
- package/dist/_chunks/date-picker.js.map +1 -0
- package/dist/_chunks/document-preview.js +109 -90
- package/dist/_chunks/document-preview.js.map +1 -0
- package/dist/_chunks/file-preview.js +492 -504
- package/dist/_chunks/file-preview.js.map +1 -0
- package/dist/_chunks/framer.js +5564 -5613
- package/dist/_chunks/framer.js.map +1 -0
- package/dist/_chunks/image-preview.js +127 -88
- package/dist/_chunks/image-preview.js.map +1 -0
- package/dist/_chunks/keybinding.js +12 -14
- package/dist/_chunks/keybinding.js.map +1 -0
- package/dist/_chunks/link-context.js +19 -16
- package/dist/_chunks/link-context.js.map +1 -0
- package/dist/_chunks/mention-suggestion.js +353 -350
- package/dist/_chunks/mention-suggestion.js.map +1 -0
- package/dist/_chunks/motion-provider.js +26 -20
- package/dist/_chunks/motion-provider.js.map +1 -0
- package/dist/_chunks/popover.js +123 -0
- package/dist/_chunks/popover.js.map +1 -0
- package/dist/_chunks/primitives.js +7585 -6426
- package/dist/_chunks/primitives.js.map +1 -0
- package/dist/_chunks/rich-chat-input.js +2071 -0
- package/dist/_chunks/rich-chat-input.js.map +1 -0
- package/dist/_chunks/rolldown-runtime.js +21 -0
- package/dist/_chunks/shared.js +126 -0
- package/dist/_chunks/shared.js.map +1 -0
- package/dist/_chunks/sonner.js +605 -734
- package/dist/_chunks/sonner.js.map +1 -0
- package/dist/_chunks/stat-row.js +418 -440
- package/dist/_chunks/stat-row.js.map +1 -0
- package/dist/_chunks/tiptap.js +15850 -19964
- package/dist/_chunks/tiptap.js.map +1 -0
- package/dist/_chunks/tree-view.js +231 -290
- package/dist/_chunks/tree-view.js.map +1 -0
- package/dist/_chunks/use-calendar.js +161 -208
- package/dist/_chunks/use-calendar.js.map +1 -0
- package/dist/_chunks/vendor-client.js +314 -2199
- package/dist/_chunks/vendor-client.js.map +1 -0
- package/dist/_chunks/vendor-utils.js +1721 -2978
- package/dist/_chunks/vendor-utils.js.map +1 -0
- package/dist/ai/ai-command-provider.js +23 -17
- package/dist/ai/ai-command-provider.js.map +1 -0
- package/dist/ai/block-renderer.js +68 -51
- package/dist/ai/block-renderer.js.map +1 -0
- package/dist/ai/blocks/index.js +2 -12
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/command-bar.js +470 -519
- package/dist/ai/command-bar.js.map +1 -0
- package/dist/ai/conversation.js +241 -227
- package/dist/ai/conversation.js.map +1 -0
- package/dist/ai/devadoot-icon.d.ts.map +1 -1
- package/dist/ai/index.js +181 -167
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/types.js +0 -1
- package/dist/composed/activity-feed.js +232 -202
- package/dist/composed/activity-feed.js.map +1 -0
- package/dist/composed/avatar-group.js +164 -222
- package/dist/composed/avatar-group.js.map +1 -0
- package/dist/composed/bulk-action-bar.js +166 -165
- package/dist/composed/bulk-action-bar.js.map +1 -0
- package/dist/composed/command-palette.js +290 -308
- package/dist/composed/command-palette.js.map +1 -0
- package/dist/composed/confirm-dialog.js +28 -48
- package/dist/composed/confirm-dialog.js.map +1 -0
- package/dist/composed/content-card.js +69 -108
- package/dist/composed/content-card.js.map +1 -0
- package/dist/composed/date-picker/index.js +3 -13
- package/dist/composed/deadline-indicator.js +68 -74
- package/dist/composed/deadline-indicator.js.map +1 -0
- package/dist/composed/emoji-picker.js +83 -110
- package/dist/composed/emoji-picker.js.map +1 -0
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +64 -103
- package/dist/composed/empty-state.js.map +1 -0
- package/dist/composed/error-boundary.js +129 -127
- package/dist/composed/error-boundary.js.map +1 -0
- package/dist/composed/file-preview.js +2 -12
- package/dist/composed/filter-bar.js +98 -130
- package/dist/composed/filter-bar.js.map +1 -0
- package/dist/composed/form-section.js +61 -45
- package/dist/composed/form-section.js.map +1 -0
- package/dist/composed/global-loading.js +34 -47
- package/dist/composed/global-loading.js.map +1 -0
- package/dist/composed/index.js +34 -92
- package/dist/composed/inline-edit.js +92 -107
- package/dist/composed/inline-edit.js.map +1 -0
- package/dist/composed/lib/string-utils.js +8 -8
- package/dist/composed/lib/string-utils.js.map +1 -0
- package/dist/composed/loading-skeleton.js +103 -171
- package/dist/composed/loading-skeleton.js.map +1 -0
- package/dist/composed/markdown-viewer.js +187 -139
- package/dist/composed/markdown-viewer.js.map +1 -0
- package/dist/composed/master-detail.js +147 -156
- package/dist/composed/master-detail.js.map +1 -0
- package/dist/composed/member-picker.js +46 -49
- package/dist/composed/member-picker.js.map +1 -0
- package/dist/composed/multi-select-popover.d.ts.map +1 -1
- package/dist/composed/multi-select-popover.js +185 -179
- package/dist/composed/multi-select-popover.js.map +1 -0
- package/dist/composed/page-header.js +54 -76
- package/dist/composed/page-header.js.map +1 -0
- package/dist/composed/page-skeletons.js +143 -127
- package/dist/composed/page-skeletons.js.map +1 -0
- package/dist/composed/priority-indicator.js +105 -111
- package/dist/composed/priority-indicator.js.map +1 -0
- package/dist/composed/responsive-overlay.js +36 -41
- package/dist/composed/responsive-overlay.js.map +1 -0
- package/dist/composed/rich-chat-input/attachment-strip.d.ts.map +1 -1
- package/dist/composed/rich-chat-input/reply-banner.d.ts.map +1 -1
- package/dist/composed/rich-chat-input/schedule-send.d.ts.map +1 -1
- package/dist/composed/rich-chat-input.d.ts.map +1 -1
- package/dist/composed/rich-chat-input.js +2 -1860
- package/dist/composed/rich-text-editor.js +561 -424
- package/dist/composed/rich-text-editor.js.map +1 -0
- package/dist/composed/schedule-view.js +134 -185
- package/dist/composed/schedule-view.js.map +1 -0
- package/dist/composed/simple-tooltip.js +21 -21
- package/dist/composed/simple-tooltip.js.map +1 -0
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +133 -137
- package/dist/composed/status-badge.js.map +1 -0
- package/dist/hooks/index.js +7 -12
- package/dist/hooks/use-color-mode.js +28 -25
- package/dist/hooks/use-color-mode.js.map +1 -0
- package/dist/hooks/use-mobile.js +13 -13
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-toast.js +2 -4
- package/dist/hooks/use-touch-device.js +9 -11
- package/dist/hooks/use-touch-device.js.map +1 -0
- package/dist/hooks/use-viewport-height.js +14 -14
- package/dist/hooks/use-viewport-height.js.map +1 -0
- package/dist/motion/check-motion-provider.d.ts +3 -0
- package/dist/motion/check-motion-provider.d.ts.map +1 -0
- package/dist/motion/index.js +17 -11
- package/dist/motion/index.js.map +1 -0
- package/dist/motion/primitives-index.js +226 -186
- package/dist/motion/primitives-index.js.map +1 -0
- package/dist/primitives/react-accordion.d.ts +114 -114
- package/dist/primitives/react-alert-dialog.d.ts +51 -51
- package/dist/primitives/react-aspect-ratio.d.ts +11 -11
- package/dist/primitives/react-avatar.d.ts +24 -24
- package/dist/primitives/react-checkbox.d.ts +50 -50
- package/dist/primitives/react-collapsible.d.ts +33 -33
- package/dist/primitives/react-context-menu.d.ts +96 -96
- package/dist/primitives/react-dialog.d.ts +103 -103
- package/dist/primitives/react-dropdown-menu.d.ts +97 -97
- package/dist/primitives/react-hover-card.d.ts +79 -79
- package/dist/primitives/react-label.d.ts +10 -10
- package/dist/primitives/react-menu.d.ts +169 -169
- package/dist/primitives/react-menubar.d.ts +115 -115
- package/dist/primitives/react-navigation-menu.d.ts +126 -126
- package/dist/primitives/react-popover.d.ts +85 -85
- package/dist/primitives/react-progress.d.ts +19 -19
- package/dist/primitives/react-radio-group.d.ts +58 -58
- package/dist/primitives/react-roving-focus.d.ts +49 -49
- package/dist/primitives/react-select.d.ts +137 -137
- package/dist/primitives/react-separator.d.ts +21 -21
- package/dist/primitives/react-slider.d.ts +75 -75
- package/dist/primitives/react-switch.d.ts +21 -21
- package/dist/primitives/react-tabs.d.ts +56 -56
- package/dist/primitives/react-toast.d.ts +120 -120
- package/dist/primitives/react-toggle-group.d.ts +75 -75
- package/dist/primitives/react-toggle.d.ts +24 -24
- package/dist/primitives/react-tooltip.d.ts +101 -101
- package/dist/primitives/react-visually-hidden.d.ts +22 -22
- package/dist/shell/app-command-palette.d.ts +2 -0
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +94 -238
- package/dist/shell/app-command-palette.js.map +1 -0
- package/dist/shell/bottom-navbar.js +150 -190
- package/dist/shell/bottom-navbar.js.map +1 -0
- package/dist/shell/command-registry.js +13 -14
- package/dist/shell/command-registry.js.map +1 -0
- package/dist/shell/index.js +10 -20
- package/dist/shell/link-context.js +2 -5
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +263 -259
- package/dist/shell/notification-center.js.map +1 -0
- package/dist/shell/notification-preferences.js +241 -184
- package/dist/shell/notification-preferences.js.map +1 -0
- package/dist/shell/sidebar.js +251 -281
- package/dist/shell/sidebar.js.map +1 -0
- package/dist/shell/top-bar.js +203 -237
- package/dist/shell/top-bar.js.map +1 -0
- package/dist/tailwind/index.cjs +473 -442
- package/dist/tailwind/index.js +2 -4
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +490 -459
- package/dist/tailwind/preset.js.map +1 -0
- package/dist/tokens/index.css +4 -4
- package/dist/tokens/primitives.css +442 -442
- package/dist/tokens/semantic.css +742 -547
- package/dist/tokens/typography-semantic.css +123 -100
- package/dist/tokens/typography.css +422 -422
- package/dist/ui/accordion.js +52 -60
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/alert-dialog.d.ts +6 -2
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +112 -156
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.d.ts +3 -2
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +203 -99
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/aspect-ratio.js +13 -16
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +137 -148
- package/dist/ui/autocomplete.js.map +1 -0
- package/dist/ui/avatar.js +196 -169
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge-group.js +2 -7
- package/dist/ui/badge-indicator.js +42 -51
- package/dist/ui/badge-indicator.js.map +1 -0
- package/dist/ui/badge.js +2 -15
- package/dist/ui/banner.js +76 -68
- package/dist/ui/banner.js.map +1 -0
- package/dist/ui/breadcrumb.js +65 -84
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button-group.js +109 -102
- package/dist/ui/button-group.js.map +1 -0
- package/dist/ui/button-processing.d.ts.map +1 -1
- package/dist/ui/button-processing.js +89 -72
- package/dist/ui/button-processing.js.map +1 -0
- package/dist/ui/button.js +393 -279
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.js +151 -157
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -0
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/index.js +1025 -1319
- package/dist/ui/charts/index.js.map +1 -0
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/chat/index.js +2 -11
- package/dist/ui/chat/message-input.d.ts.map +1 -1
- package/dist/ui/chat/message-list.d.ts +1 -1
- package/dist/ui/chat/message-list.d.ts.map +1 -1
- package/dist/ui/chat/message.d.ts.map +1 -1
- package/dist/ui/chat/system-message.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +82 -100
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/code.js +18 -32
- package/dist/ui/code.js.map +1 -0
- package/dist/ui/collapsible.js +21 -29
- package/dist/ui/collapsible.js.map +1 -0
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +455 -372
- package/dist/ui/color-input.js.map +1 -0
- package/dist/ui/color-swatch.js +60 -90
- package/dist/ui/color-swatch.js.map +1 -0
- package/dist/ui/combobox.d.ts +7 -0
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +278 -293
- package/dist/ui/combobox.js.map +1 -0
- package/dist/ui/container.js +18 -24
- package/dist/ui/container.js.map +1 -0
- package/dist/ui/context-menu.js +154 -203
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/data-table-body.js +116 -213
- package/dist/ui/data-table-body.js.map +1 -0
- package/dist/ui/data-table-bulk-actions.js +43 -59
- package/dist/ui/data-table-bulk-actions.js.map +1 -0
- package/dist/ui/data-table-card.js +84 -71
- package/dist/ui/data-table-card.js.map +1 -0
- package/dist/ui/data-table-context.js +39 -42
- package/dist/ui/data-table-context.js.map +1 -0
- package/dist/ui/data-table-header.js +98 -139
- package/dist/ui/data-table-header.js.map +1 -0
- package/dist/ui/data-table-pagination.js +69 -82
- package/dist/ui/data-table-pagination.js.map +1 -0
- package/dist/ui/data-table-toolbar.js +104 -130
- package/dist/ui/data-table-toolbar.js.map +1 -0
- package/dist/ui/data-table.js +281 -354
- package/dist/ui/data-table.js.map +1 -0
- package/dist/ui/devalok-grain.js +77 -66
- package/dist/ui/devalok-grain.js.map +1 -0
- package/dist/ui/dialog.js +118 -151
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.js +152 -203
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/file-upload.js +242 -266
- package/dist/ui/file-upload.js.map +1 -0
- package/dist/ui/form.d.ts +8 -0
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +62 -56
- package/dist/ui/form.js.map +1 -0
- package/dist/ui/hover-card.js +54 -54
- package/dist/ui/hover-card.js.map +1 -0
- package/dist/ui/icon-button.js +21 -26
- package/dist/ui/icon-button.js.map +1 -0
- package/dist/ui/icon-context.js +17 -17
- package/dist/ui/icon-context.js.map +1 -0
- package/dist/ui/icon-group.js +22 -29
- package/dist/ui/icon-group.js.map +1 -0
- package/dist/ui/icon.js +201 -121
- package/dist/ui/icon.js.map +1 -0
- package/dist/ui/index.d.ts +4 -4
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +90 -350
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/input-otp.d.ts +12 -3
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +58 -48
- package/dist/ui/input-otp.js.map +1 -0
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +93 -169
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +23 -23
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/lib/check-tokens.d.ts +3 -0
- package/dist/ui/lib/check-tokens.d.ts.map +1 -0
- package/dist/ui/lib/date-utils.js +14 -11
- package/dist/ui/lib/date-utils.js.map +1 -0
- package/dist/ui/lib/motion.d.ts +15 -4
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +83 -33
- package/dist/ui/lib/motion.js.map +1 -0
- package/dist/ui/lib/utils.js +39 -16
- package/dist/ui/lib/utils.js.map +1 -0
- package/dist/ui/link.js +13 -24
- package/dist/ui/link.js.map +1 -0
- package/dist/ui/menubar.js +132 -210
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/navigation-menu.js +163 -193
- package/dist/ui/navigation-menu.js.map +1 -0
- package/dist/ui/number-input.d.ts +16 -1
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +102 -95
- package/dist/ui/number-input.js.map +1 -0
- package/dist/ui/pagination.js +122 -159
- package/dist/ui/pagination.js.map +1 -0
- package/dist/ui/popover.js +2 -131
- package/dist/ui/progress-ring.d.ts.map +1 -1
- package/dist/ui/progress-ring.js +133 -143
- package/dist/ui/progress-ring.js.map +1 -0
- package/dist/ui/progress.js +51 -95
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +47 -49
- package/dist/ui/radio.js.map +1 -0
- package/dist/ui/search-input.js +51 -53
- package/dist/ui/search-input.js.map +1 -0
- package/dist/ui/segmented-control.d.ts +1 -1
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +95 -114
- package/dist/ui/segmented-control.js.map +1 -0
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +137 -157
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +18 -25
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/sheet.js +135 -163
- package/dist/ui/sheet.js.map +1 -0
- package/dist/ui/sidebar.js +357 -600
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.js +179 -231
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.d.ts +22 -3
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +62 -34
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/spinner.js +226 -205
- package/dist/ui/spinner.js.map +1 -0
- package/dist/ui/split-button.d.ts.map +1 -1
- package/dist/ui/split-button.js +228 -276
- package/dist/ui/split-button.js.map +1 -0
- package/dist/ui/stack.js +56 -70
- package/dist/ui/stack.js.map +1 -0
- package/dist/ui/stat-card.js +259 -251
- package/dist/ui/stat-card.js.map +1 -0
- package/dist/ui/status-dot.js +67 -63
- package/dist/ui/status-dot.js.map +1 -0
- package/dist/ui/stepper.d.ts +10 -0
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +124 -168
- package/dist/ui/stepper.js.map +1 -0
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +56 -55
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.js +57 -90
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.d.ts +3 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +159 -156
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/text.d.ts +1 -1
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +60 -59
- package/dist/ui/text.js.map +1 -0
- package/dist/ui/textarea.js +40 -57
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/toast-registry.d.ts +8 -0
- package/dist/ui/toast-registry.d.ts.map +1 -0
- package/dist/ui/toast-registry.js +13 -0
- package/dist/ui/toast-registry.js.map +1 -0
- package/dist/ui/toast-types.js +0 -1
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +559 -536
- package/dist/ui/toast.js.map +1 -0
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +24 -33
- package/dist/ui/toaster.js.map +1 -0
- package/dist/ui/toggle-group.d.ts +2 -0
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +44 -41
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/ui/toggle.d.ts +2 -0
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +44 -40
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/tooltip.js +80 -65
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui/tree-view/index.js +2 -6
- package/dist/ui/visually-hidden.js +12 -10
- package/dist/ui/visually-hidden.js.map +1 -0
- package/docs/components/_header.md +85 -85
- package/docs/components/composed/activity-feed.md +62 -62
- package/docs/components/composed/avatar-group.md +65 -65
- package/docs/components/composed/bulk-action-bar.md +40 -40
- package/docs/components/composed/command-palette.md +40 -40
- package/docs/components/composed/confirm-dialog.md +46 -46
- package/docs/components/composed/content-card.md +36 -36
- package/docs/components/composed/date-picker.md +130 -130
- package/docs/components/composed/deadline-indicator.md +27 -27
- package/docs/components/composed/emoji-picker.md +52 -52
- package/docs/components/composed/empty-state.md +53 -53
- package/docs/components/composed/error-boundary.md +29 -29
- package/docs/components/composed/file-preview.md +40 -40
- package/docs/components/composed/filter-bar.md +57 -57
- package/docs/components/composed/form-section.md +31 -31
- package/docs/components/composed/global-loading.md +27 -27
- package/docs/components/composed/inline-edit.md +35 -35
- package/docs/components/composed/loading-skeleton.md +51 -51
- package/docs/components/composed/markdown-viewer.md +27 -27
- package/docs/components/composed/master-detail.md +48 -48
- package/docs/components/composed/member-picker.md +35 -35
- package/docs/components/composed/multi-select-popover.md +62 -62
- package/docs/components/composed/page-header.md +41 -41
- package/docs/components/composed/page-skeletons.md +32 -32
- package/docs/components/composed/priority-indicator.md +32 -32
- package/docs/components/composed/responsive-overlay.md +34 -34
- package/docs/components/composed/rich-text-editor.md +82 -82
- package/docs/components/composed/schedule-view.md +39 -39
- package/docs/components/composed/simple-tooltip.md +33 -33
- package/docs/components/composed/status-badge.md +55 -55
- package/docs/components/shell/app-command-palette.md +44 -44
- package/docs/components/shell/bottom-navbar.md +52 -52
- package/docs/components/shell/command-registry.md +48 -48
- package/docs/components/shell/link-context.md +41 -41
- package/docs/components/shell/notification-center.md +63 -63
- package/docs/components/shell/notification-preferences.md +42 -42
- package/docs/components/shell/sidebar.md +92 -92
- package/docs/components/shell/top-bar.md +143 -143
- package/docs/components/ui/accordion.md +51 -51
- package/docs/components/ui/alert-dialog.md +61 -61
- package/docs/components/ui/alert.md +46 -46
- package/docs/components/ui/aspect-ratio.md +25 -25
- package/docs/components/ui/autocomplete.md +48 -48
- package/docs/components/ui/avatar.md +56 -56
- package/docs/components/ui/badge.md +83 -82
- package/docs/components/ui/banner.md +42 -42
- package/docs/components/ui/breadcrumb.md +37 -37
- package/docs/components/ui/button-group.md +41 -41
- package/docs/components/ui/button.md +94 -93
- package/docs/components/ui/card.md +52 -52
- package/docs/components/ui/charts.md +43 -43
- package/docs/components/ui/checkbox.md +36 -36
- package/docs/components/ui/chip.md +47 -47
- package/docs/components/ui/code.md +28 -28
- package/docs/components/ui/collapsible.md +40 -40
- package/docs/components/ui/color-input.md +91 -91
- package/docs/components/ui/color-swatch.md +25 -25
- package/docs/components/ui/combobox.md +54 -54
- package/docs/components/ui/container.md +26 -26
- package/docs/components/ui/context-menu.md +43 -43
- package/docs/components/ui/data-table-body.md +1 -1
- package/docs/components/ui/data-table-bulk-actions.md +1 -1
- package/docs/components/ui/data-table-card.md +1 -1
- package/docs/components/ui/data-table-context.md +1 -1
- package/docs/components/ui/data-table-header.md +1 -1
- package/docs/components/ui/data-table-pagination.md +1 -1
- package/docs/components/ui/data-table-toolbar.md +44 -44
- package/docs/components/ui/data-table.md +94 -94
- package/docs/components/ui/dialog.md +54 -54
- package/docs/components/ui/dropdown-menu.md +48 -48
- package/docs/components/ui/file-upload.md +41 -41
- package/docs/components/ui/form.md +51 -51
- package/docs/components/ui/hover-card.md +32 -32
- package/docs/components/ui/icon-button.md +40 -40
- package/docs/components/ui/input-otp.md +44 -44
- package/docs/components/ui/input.md +74 -74
- package/docs/components/ui/label.md +25 -25
- package/docs/components/ui/link.md +29 -29
- package/docs/components/ui/menubar.md +44 -44
- package/docs/components/ui/navigation-menu.md +46 -46
- package/docs/components/ui/number-input.md +44 -44
- package/docs/components/ui/pagination.md +48 -48
- package/docs/components/ui/popover.md +30 -30
- package/docs/components/ui/progress-ring.md +41 -41
- package/docs/components/ui/progress.md +34 -34
- package/docs/components/ui/radio.md +34 -34
- package/docs/components/ui/search-input.md +43 -43
- package/docs/components/ui/segmented-control.md +50 -50
- package/docs/components/ui/select.md +53 -53
- package/docs/components/ui/separator.md +32 -32
- package/docs/components/ui/sheet.md +47 -47
- package/docs/components/ui/sidebar.md +72 -72
- package/docs/components/ui/skeleton.md +77 -77
- package/docs/components/ui/slider.md +29 -29
- package/docs/components/ui/spinner.md +54 -54
- package/docs/components/ui/stack.md +39 -39
- package/docs/components/ui/stat-card.md +61 -61
- package/docs/components/ui/status-dot.md +26 -26
- package/docs/components/ui/stepper.md +49 -49
- package/docs/components/ui/switch.md +47 -47
- package/docs/components/ui/table.md +47 -47
- package/docs/components/ui/tabs.md +60 -60
- package/docs/components/ui/text.md +37 -37
- package/docs/components/ui/textarea.md +39 -39
- package/docs/components/ui/toast.md +65 -65
- package/docs/components/ui/toaster.md +47 -47
- package/docs/components/ui/toggle-group.md +43 -43
- package/docs/components/ui/toggle.md +37 -37
- package/docs/components/ui/tooltip.md +38 -38
- package/docs/components/ui/tree-view.md +65 -65
- package/docs/components/ui/visually-hidden.md +21 -21
- package/llms-full.txt +5266 -5264
- package/llms.txt +624 -580
- package/package.json +7 -8
- package/dist/_chunks/date-time-picker.js +0 -851
- package/dist/_chunks/typing-indicator.js +0 -565
package/dist/ui/index.js
CHANGED
|
@@ -1,351 +1,91 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { HoverCard as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
yr as AspectRatio,
|
|
93
|
-
G as Autocomplete,
|
|
94
|
-
$o as Avatar,
|
|
95
|
-
er as AvatarFallback,
|
|
96
|
-
or as AvatarImage,
|
|
97
|
-
Qo as Badge,
|
|
98
|
-
Wo as BadgeGroup,
|
|
99
|
-
Zo as BadgeIndicator,
|
|
100
|
-
Fo as Banner,
|
|
101
|
-
Yr as Breadcrumb,
|
|
102
|
-
Zr as BreadcrumbEllipsis,
|
|
103
|
-
_r as BreadcrumbItem,
|
|
104
|
-
$r as BreadcrumbLink,
|
|
105
|
-
et as BreadcrumbList,
|
|
106
|
-
ot as BreadcrumbPage,
|
|
107
|
-
rt as BreadcrumbSeparator,
|
|
108
|
-
m as Button,
|
|
109
|
-
b as ButtonGroup,
|
|
110
|
-
Oo as Card,
|
|
111
|
-
Uo as CardContent,
|
|
112
|
-
Eo as CardDescription,
|
|
113
|
-
zo as CardFooter,
|
|
114
|
-
jo as CardHeader,
|
|
115
|
-
qo as CardTitle,
|
|
116
|
-
N as Checkbox,
|
|
117
|
-
Hr as Code,
|
|
118
|
-
wo as Collapsible,
|
|
119
|
-
Bo as CollapsibleContent,
|
|
120
|
-
ho as CollapsibleTrigger,
|
|
121
|
-
I as ColorInput,
|
|
122
|
-
hr as ColorSwatch,
|
|
123
|
-
R as Combobox,
|
|
124
|
-
Za as Container,
|
|
125
|
-
ct as ContextMenu,
|
|
126
|
-
Tt as ContextMenuCheckboxItem,
|
|
127
|
-
Dt as ContextMenuContent,
|
|
128
|
-
It as ContextMenuGroup,
|
|
129
|
-
Pt as ContextMenuItem,
|
|
130
|
-
vt as ContextMenuLabel,
|
|
131
|
-
At as ContextMenuPortal,
|
|
132
|
-
wt as ContextMenuRadioGroup,
|
|
133
|
-
Bt as ContextMenuRadioItem,
|
|
134
|
-
ht as ContextMenuSeparator,
|
|
135
|
-
kt as ContextMenuShortcut,
|
|
136
|
-
Gt as ContextMenuSub,
|
|
137
|
-
Vt as ContextMenuSubContent,
|
|
138
|
-
Rt as ContextMenuSubTrigger,
|
|
139
|
-
Ft as ContextMenuTrigger,
|
|
140
|
-
bn as DateSeparator,
|
|
141
|
-
on as DevalokGrain,
|
|
142
|
-
ye as Dialog,
|
|
143
|
-
Oe as DialogClose,
|
|
144
|
-
Ue as DialogContent,
|
|
145
|
-
Ee as DialogContentRaw,
|
|
146
|
-
ze as DialogDescription,
|
|
147
|
-
je as DialogFooter,
|
|
148
|
-
qe as DialogHeader,
|
|
149
|
-
Je as DialogOverlay,
|
|
150
|
-
Ke as DialogPortal,
|
|
151
|
-
Qe as DialogTitle,
|
|
152
|
-
We as DialogTrigger,
|
|
153
|
-
at as DropdownMenu,
|
|
154
|
-
nt as DropdownMenuCheckboxItem,
|
|
155
|
-
it as DropdownMenuContent,
|
|
156
|
-
pt as DropdownMenuGroup,
|
|
157
|
-
ut as DropdownMenuItem,
|
|
158
|
-
lt as DropdownMenuLabel,
|
|
159
|
-
mt as DropdownMenuPortal,
|
|
160
|
-
gt as DropdownMenuRadioGroup,
|
|
161
|
-
xt as DropdownMenuRadioItem,
|
|
162
|
-
dt as DropdownMenuSeparator,
|
|
163
|
-
St as DropdownMenuShortcut,
|
|
164
|
-
bt as DropdownMenuSub,
|
|
165
|
-
st as DropdownMenuSubContent,
|
|
166
|
-
ft as DropdownMenuSubTrigger,
|
|
167
|
-
Mt as DropdownMenuTrigger,
|
|
168
|
-
L as FileUpload,
|
|
169
|
-
Se as FormField,
|
|
170
|
-
be as FormHelperText,
|
|
171
|
-
Io as HoverCard,
|
|
172
|
-
Po as HoverCardContent,
|
|
173
|
-
vo as HoverCardTrigger,
|
|
174
|
-
r as Icon,
|
|
175
|
-
d as IconButton,
|
|
176
|
-
a as IconContext,
|
|
177
|
-
u as IconGroup,
|
|
178
|
-
n as IconProvider,
|
|
179
|
-
c as Input,
|
|
180
|
-
le as InputOTP,
|
|
181
|
-
me as InputOTPGroup,
|
|
182
|
-
ge as InputOTPSeparator,
|
|
183
|
-
xe as InputOTPSlot,
|
|
184
|
-
v as Label,
|
|
185
|
-
tn as Link,
|
|
186
|
-
Ht as Menubar,
|
|
187
|
-
Nt as MenubarCheckboxItem,
|
|
188
|
-
yt as MenubarContent,
|
|
189
|
-
Ot as MenubarGroup,
|
|
190
|
-
Ut as MenubarItem,
|
|
191
|
-
Et as MenubarLabel,
|
|
192
|
-
zt as MenubarMenu,
|
|
193
|
-
jt as MenubarPortal,
|
|
194
|
-
qt as MenubarRadioGroup,
|
|
195
|
-
Jt as MenubarRadioItem,
|
|
196
|
-
Kt as MenubarSeparator,
|
|
197
|
-
Qt as MenubarShortcut,
|
|
198
|
-
Wt as MenubarSub,
|
|
199
|
-
Xt as MenubarSubContent,
|
|
200
|
-
Yt as MenubarSubTrigger,
|
|
201
|
-
Zt as MenubarTrigger,
|
|
202
|
-
sn as Message,
|
|
203
|
-
fn as MessageInput,
|
|
204
|
-
Mn as MessageList,
|
|
205
|
-
Rr as MultiProgressRing,
|
|
206
|
-
la as NavigationMenu,
|
|
207
|
-
ma as NavigationMenuContent,
|
|
208
|
-
ga as NavigationMenuIndicator,
|
|
209
|
-
xa as NavigationMenuItem,
|
|
210
|
-
da as NavigationMenuLink,
|
|
211
|
-
Sa as NavigationMenuList,
|
|
212
|
-
ba as NavigationMenuTrigger,
|
|
213
|
-
sa as NavigationMenuViewport,
|
|
214
|
-
ne as NumberInput,
|
|
215
|
-
$t as PaginationContent,
|
|
216
|
-
ea as PaginationEllipsis,
|
|
217
|
-
oa as PaginationItem,
|
|
218
|
-
ra as PaginationLink,
|
|
219
|
-
ta as PaginationNav,
|
|
220
|
-
aa as PaginationNext,
|
|
221
|
-
na as PaginationPrevious,
|
|
222
|
-
ia as PaginationRoot,
|
|
223
|
-
Mo as Popover,
|
|
224
|
-
Co as PopoverAnchor,
|
|
225
|
-
co as PopoverContent,
|
|
226
|
-
To as PopoverTrigger,
|
|
227
|
-
dr as Progress,
|
|
228
|
-
Fr as ProgressRing,
|
|
229
|
-
O as RadioGroup,
|
|
230
|
-
U as RadioGroupItem,
|
|
231
|
-
pe as SearchInput,
|
|
232
|
-
$a as SegmentedControl,
|
|
233
|
-
q as Select,
|
|
234
|
-
J as SelectContent,
|
|
235
|
-
K as SelectGroup,
|
|
236
|
-
Q as SelectItem,
|
|
237
|
-
W as SelectLabel,
|
|
238
|
-
X as SelectScrollDownButton,
|
|
239
|
-
Y as SelectScrollUpButton,
|
|
240
|
-
Z as SelectSeparator,
|
|
241
|
-
_ as SelectTrigger,
|
|
242
|
-
$ as SelectValue,
|
|
243
|
-
w as Separator,
|
|
244
|
-
Ye as Sheet,
|
|
245
|
-
Ze as SheetClose,
|
|
246
|
-
_e as SheetContent,
|
|
247
|
-
$e as SheetDescription,
|
|
248
|
-
eo as SheetFooter,
|
|
249
|
-
oo as SheetHeader,
|
|
250
|
-
ro as SheetOverlay,
|
|
251
|
-
to as SheetPortal,
|
|
252
|
-
ao as SheetTitle,
|
|
253
|
-
no as SheetTrigger,
|
|
254
|
-
Ma as Sidebar,
|
|
255
|
-
Ca as SidebarContent,
|
|
256
|
-
ca as SidebarFooter,
|
|
257
|
-
Ta as SidebarGroup,
|
|
258
|
-
Da as SidebarGroupAction,
|
|
259
|
-
Ia as SidebarGroupContent,
|
|
260
|
-
Pa as SidebarGroupLabel,
|
|
261
|
-
va as SidebarHeader,
|
|
262
|
-
Aa as SidebarInput,
|
|
263
|
-
wa as SidebarInset,
|
|
264
|
-
Ba as SidebarMenu,
|
|
265
|
-
ha as SidebarMenuAction,
|
|
266
|
-
ka as SidebarMenuBadge,
|
|
267
|
-
Ga as SidebarMenuButton,
|
|
268
|
-
Va as SidebarMenuItem,
|
|
269
|
-
Ra as SidebarMenuSkeleton,
|
|
270
|
-
Fa as SidebarMenuSub,
|
|
271
|
-
La as SidebarMenuSubButton,
|
|
272
|
-
Ha as SidebarMenuSubItem,
|
|
273
|
-
Na as SidebarProvider,
|
|
274
|
-
ya as SidebarRail,
|
|
275
|
-
Oa as SidebarSeparator,
|
|
276
|
-
Ua as SidebarTrigger,
|
|
277
|
-
fr as Skeleton,
|
|
278
|
-
Mr as SkeletonAvatar,
|
|
279
|
-
Cr as SkeletonButton,
|
|
280
|
-
cr as SkeletonChart,
|
|
281
|
-
Tr as SkeletonGroup,
|
|
282
|
-
Dr as SkeletonImage,
|
|
283
|
-
Ir as SkeletonInput,
|
|
284
|
-
Pr as SkeletonText,
|
|
285
|
-
Me as Slider,
|
|
286
|
-
No as Spinner,
|
|
287
|
-
M as SplitButton,
|
|
288
|
-
Xa as Stack,
|
|
289
|
-
wr as StatCard,
|
|
290
|
-
Gr as StatusDot,
|
|
291
|
-
ja as Step,
|
|
292
|
-
qa as Stepper,
|
|
293
|
-
z as Switch,
|
|
294
|
-
Cn as SystemMessage,
|
|
295
|
-
ar as Table,
|
|
296
|
-
nr as TableBody,
|
|
297
|
-
ir as TableCaption,
|
|
298
|
-
pr as TableCell,
|
|
299
|
-
ur as TableFooter,
|
|
300
|
-
lr as TableHead,
|
|
301
|
-
mr as TableHeader,
|
|
302
|
-
gr as TableRow,
|
|
303
|
-
Jr as Tabs,
|
|
304
|
-
Kr as TabsContent,
|
|
305
|
-
Qr as TabsList,
|
|
306
|
-
Wr as TabsTrigger,
|
|
307
|
-
Ka as Text,
|
|
308
|
-
re as Textarea,
|
|
309
|
-
mo as Toaster,
|
|
310
|
-
ce as Toggle,
|
|
311
|
-
Ie as ToggleGroup,
|
|
312
|
-
Pe as ToggleGroupItem,
|
|
313
|
-
xo as Tooltip,
|
|
314
|
-
So as TooltipContent,
|
|
315
|
-
bo as TooltipProvider,
|
|
316
|
-
so as TooltipTrigger,
|
|
317
|
-
Pn as TreeItem,
|
|
318
|
-
vn as TreeView,
|
|
319
|
-
cn as TypingIndicator,
|
|
320
|
-
Tn as UnreadSeparator,
|
|
321
|
-
h as VisuallyHidden,
|
|
322
|
-
Vo as alertVariants,
|
|
323
|
-
rr as avatarVariants,
|
|
324
|
-
Xo as badgeVariants,
|
|
325
|
-
Lo as bannerVariants,
|
|
326
|
-
g as buttonVariants,
|
|
327
|
-
Jo as cardVariants,
|
|
328
|
-
nn as cn,
|
|
329
|
-
po as formatFileSize,
|
|
330
|
-
un as formatRelativeTime,
|
|
331
|
-
pa as generatePagination,
|
|
332
|
-
T as inputVariants,
|
|
333
|
-
Sr as progressIndicatorVariants,
|
|
334
|
-
br as progressTrackVariants,
|
|
335
|
-
ee as selectTriggerVariants,
|
|
336
|
-
vr as skeletonVariants,
|
|
337
|
-
mn as springs,
|
|
338
|
-
gn as stagger,
|
|
339
|
-
Qa as textVariants,
|
|
340
|
-
te as textareaVariants,
|
|
341
|
-
uo as toast,
|
|
342
|
-
Te as toggleVariants,
|
|
343
|
-
xn as tweens,
|
|
344
|
-
s as useButtonGroup,
|
|
345
|
-
se as useFormField,
|
|
346
|
-
i as useIconContext,
|
|
347
|
-
Dn as useMessageContext,
|
|
348
|
-
Ea as useSidebar,
|
|
349
|
-
An as useTree,
|
|
350
|
-
dn as withReducedMotion
|
|
351
|
-
};
|
|
2
|
+
import { springs as ee, stagger as te, tweens as ne, withReducedMotion as e } from "./lib/motion.js";
|
|
3
|
+
import { cn as t } from "./lib/utils.js";
|
|
4
|
+
import { Spinner as n } from "./spinner.js";
|
|
5
|
+
import { IconContext as r, IconProvider as i, useIconContext as a } from "./icon-context.js";
|
|
6
|
+
import { Icon as o } from "./icon.js";
|
|
7
|
+
import { Accordion as s, AccordionContent as c, AccordionItem as l, AccordionTrigger as u } from "./accordion.js";
|
|
8
|
+
import { AlertDialog as d, AlertDialogAction as f, AlertDialogCancel as p, AlertDialogContent as m, AlertDialogDescription as h, AlertDialogFooter as g, AlertDialogHeader as _, AlertDialogOverlay as v, AlertDialogPortal as y, AlertDialogTitle as b, AlertDialogTrigger as x } from "./alert-dialog.js";
|
|
9
|
+
import { Alert as S, alertVariants as C } from "./alert.js";
|
|
10
|
+
import { AspectRatio as w } from "./aspect-ratio.js";
|
|
11
|
+
import { FormField as T, FormHelperText as E, useFormField as D } from "./form.js";
|
|
12
|
+
import { Autocomplete as O } from "./autocomplete.js";
|
|
13
|
+
import { Avatar as k, AvatarFallback as A, AvatarImage as j, avatarVariants as M } from "./avatar.js";
|
|
14
|
+
import { BadgeIndicator as N } from "./badge-indicator.js";
|
|
15
|
+
import { n as P, r as F, t as I } from "../_chunks/badge-group.js";
|
|
16
|
+
import { Banner as L, bannerVariants as R } from "./banner.js";
|
|
17
|
+
import { Breadcrumb as z, BreadcrumbEllipsis as B, BreadcrumbItem as V, BreadcrumbLink as H, BreadcrumbList as U, BreadcrumbPage as W, BreadcrumbSeparator as G } from "./breadcrumb.js";
|
|
18
|
+
import { ButtonGroup as K, useButtonGroup as q } from "./button-group.js";
|
|
19
|
+
import { Button as J, buttonVariants as Y } from "./button.js";
|
|
20
|
+
import { Card as X, CardContent as Z, CardDescription as re, CardFooter as ie, CardHeader as ae, CardTitle as oe, cardVariants as se } from "./card.js";
|
|
21
|
+
import { Checkbox as ce } from "./checkbox.js";
|
|
22
|
+
import { Code as le } from "./code.js";
|
|
23
|
+
import { Collapsible as ue, CollapsibleContent as de, CollapsibleTrigger as fe } from "./collapsible.js";
|
|
24
|
+
import { i as pe, n as me, r as he, t as ge } from "../_chunks/popover.js";
|
|
25
|
+
import { ColorInput as _e } from "./color-input.js";
|
|
26
|
+
import { ColorSwatch as ve } from "./color-swatch.js";
|
|
27
|
+
import { Combobox as ye, comboboxTriggerVariants as be } from "./combobox.js";
|
|
28
|
+
import { Container as xe } from "./container.js";
|
|
29
|
+
import { ContextMenu as Se, ContextMenuCheckboxItem as Ce, ContextMenuContent as we, ContextMenuGroup as Te, ContextMenuItem as Ee, ContextMenuLabel as De, ContextMenuPortal as Oe, ContextMenuRadioGroup as ke, ContextMenuRadioItem as Ae, ContextMenuSeparator as je, ContextMenuShortcut as Me, ContextMenuSub as Ne, ContextMenuSubContent as Pe, ContextMenuSubTrigger as Fe, ContextMenuTrigger as Ie } from "./context-menu.js";
|
|
30
|
+
import { Table as Le, TableBody as Re, TableCaption as ze, TableCell as Be, TableFooter as Ve, TableHead as He, TableHeader as Ue, TableRow as We } from "./table.js";
|
|
31
|
+
import { Skeleton as Ge, SkeletonAvatar as Ke, SkeletonButton as qe, SkeletonChart as Je, SkeletonGroup as Ye, SkeletonImage as Xe, SkeletonInput as Ze, SkeletonText as Qe, skeletonVariants as $e } from "./skeleton.js";
|
|
32
|
+
import { DropdownMenu as et, DropdownMenuCheckboxItem as tt, DropdownMenuContent as nt, DropdownMenuGroup as rt, DropdownMenuItem as it, DropdownMenuLabel as at, DropdownMenuPortal as ot, DropdownMenuRadioGroup as st, DropdownMenuRadioItem as ct, DropdownMenuSeparator as lt, DropdownMenuShortcut as ut, DropdownMenuSub as dt, DropdownMenuSubContent as ft, DropdownMenuSubTrigger as pt, DropdownMenuTrigger as mt } from "./dropdown-menu.js";
|
|
33
|
+
import { DevalokGrain as ht } from "./devalok-grain.js";
|
|
34
|
+
import { Dialog as gt, DialogClose as _t, DialogContent as vt, DialogContentRaw as yt, DialogDescription as bt, DialogFooter as xt, DialogHeader as St, DialogOverlay as Ct, DialogPortal as wt, DialogTitle as Tt, DialogTrigger as Et } from "./dialog.js";
|
|
35
|
+
import { FileUpload as Dt } from "./file-upload.js";
|
|
36
|
+
import { HoverCard as Ot, HoverCardContent as kt, HoverCardTrigger as At } from "./hover-card.js";
|
|
37
|
+
import { IconButton as jt } from "./icon-button.js";
|
|
38
|
+
import { IconGroup as Mt } from "./icon-group.js";
|
|
39
|
+
import { SplitButton as Nt } from "./split-button.js";
|
|
40
|
+
import { Input as Pt, inputVariants as Ft } from "./input.js";
|
|
41
|
+
import { Label as It } from "./label.js";
|
|
42
|
+
import { Separator as Lt } from "./separator.js";
|
|
43
|
+
import { VisuallyHidden as Rt } from "./visually-hidden.js";
|
|
44
|
+
import { RadioGroup as zt, RadioGroupItem as Bt } from "./radio.js";
|
|
45
|
+
import { Switch as Vt } from "./switch.js";
|
|
46
|
+
import { Select as Ht, SelectContent as Ut, SelectGroup as Wt, SelectItem as Gt, SelectLabel as Kt, SelectScrollDownButton as qt, SelectScrollUpButton as Jt, SelectSeparator as Yt, SelectTrigger as Q, SelectValue as Xt, selectTriggerVariants as Zt } from "./select.js";
|
|
47
|
+
import { Textarea as Qt, textareaVariants as $t } from "./textarea.js";
|
|
48
|
+
import { NumberInput as en, numberInputWrapperVariants as tn } from "./number-input.js";
|
|
49
|
+
import { SearchInput as nn } from "./search-input.js";
|
|
50
|
+
import { InputOTP as rn, InputOTPGroup as an, InputOTPSeparator as on, InputOTPSlot as sn } from "./input-otp.js";
|
|
51
|
+
import { Slider as cn, sliderThumbVariants as ln, sliderTrackVariants as un } from "./slider.js";
|
|
52
|
+
import { Toggle as dn, toggleVariants as fn } from "./toggle.js";
|
|
53
|
+
import { ToggleGroup as pn, ToggleGroupItem as mn } from "./toggle-group.js";
|
|
54
|
+
import { Sheet as hn, SheetClose as gn, SheetContent as _n, SheetDescription as vn, SheetFooter as yn, SheetHeader as bn, SheetOverlay as xn, SheetPortal as Sn, SheetTitle as Cn, SheetTrigger as wn } from "./sheet.js";
|
|
55
|
+
import { Progress as Tn, progressIndicatorVariants as En, progressTrackVariants as Dn } from "./progress.js";
|
|
56
|
+
import { formatFileSize as On, toast as kn } from "./toast.js";
|
|
57
|
+
import { Toaster as An } from "./toaster.js";
|
|
58
|
+
import { Tooltip as jn, TooltipContent as Mn, TooltipProvider as Nn, TooltipTrigger as Pn } from "./tooltip.js";
|
|
59
|
+
import { StatCard as Fn } from "./stat-card.js";
|
|
60
|
+
import { StatusDot as In } from "./status-dot.js";
|
|
61
|
+
import { MultiProgressRing as Ln, ProgressRing as Rn } from "./progress-ring.js";
|
|
62
|
+
import { Tabs as zn, TabsContent as Bn, TabsList as Vn, TabsTrigger as Hn } from "./tabs.js";
|
|
63
|
+
import { Menubar as Un, MenubarCheckboxItem as Wn, MenubarContent as Gn, MenubarGroup as Kn, MenubarItem as qn, MenubarLabel as Jn, MenubarMenu as Yn, MenubarPortal as Xn, MenubarRadioGroup as Zn, MenubarRadioItem as Qn, MenubarSeparator as $n, MenubarShortcut as er, MenubarSub as tr, MenubarSubContent as nr, MenubarSubTrigger as rr, MenubarTrigger as ir } from "./menubar.js";
|
|
64
|
+
import { PaginationContent as ar, PaginationEllipsis as or, PaginationItem as sr, PaginationLink as cr, PaginationNav as lr, PaginationNext as ur, PaginationPrevious as dr, PaginationRoot as fr, generatePagination as pr } from "./pagination.js";
|
|
65
|
+
import { NavigationMenu as mr, NavigationMenuContent as hr, NavigationMenuIndicator as gr, NavigationMenuItem as _r, NavigationMenuLink as vr, NavigationMenuList as yr, NavigationMenuTrigger as br, NavigationMenuViewport as xr } from "./navigation-menu.js";
|
|
66
|
+
import { Sidebar as Sr, SidebarContent as Cr, SidebarFooter as wr, SidebarGroup as Tr, SidebarGroupAction as Er, SidebarGroupContent as Dr, SidebarGroupLabel as Or, SidebarHeader as kr, SidebarInput as Ar, SidebarInset as jr, SidebarMenu as Mr, SidebarMenuAction as Nr, SidebarMenuBadge as Pr, SidebarMenuButton as Fr, SidebarMenuItem as Ir, SidebarMenuSkeleton as Lr, SidebarMenuSub as Rr, SidebarMenuSubButton as zr, SidebarMenuSubItem as Br, SidebarProvider as Vr, SidebarRail as Hr, SidebarSeparator as Ur, SidebarTrigger as Wr, useSidebar as Gr } from "./sidebar.js";
|
|
67
|
+
import { Step as Kr, Stepper as qr } from "./stepper.js";
|
|
68
|
+
import { Text as Jr, textVariants as Yr } from "./text.js";
|
|
69
|
+
import { Stack as Xr } from "./stack.js";
|
|
70
|
+
import { n as Zr, r as Qr, t as $r } from "../_chunks/tree-view.js";
|
|
71
|
+
import { SegmentedControl as ei } from "./segmented-control.js";
|
|
72
|
+
import { a as ti, c as ni, i as ri, n as ii, o as ai, r as oi, s as si, t as ci } from "../_chunks/chat.js";
|
|
73
|
+
import { Link as li } from "./link.js";
|
|
74
|
+
import { formatRelativeTime as ui } from "./lib/date-utils.js";
|
|
75
|
+
//#region src/ui/lib/check-tokens.ts
|
|
76
|
+
var $ = !1;
|
|
77
|
+
function di() {
|
|
78
|
+
if (!$ && !(typeof window > "u")) {
|
|
79
|
+
try {
|
|
80
|
+
return;
|
|
81
|
+
} catch {}
|
|
82
|
+
$ = !0, requestAnimationFrame(() => {
|
|
83
|
+
getComputedStyle(document.documentElement).getPropertyValue("--color-accent-9").trim() || console.warn("[shilp-sutra] Design system tokens CSS not loaded. Add `import '@devalok/shilp-sutra/tokens'` to your root layout. Without it, components will render with missing colors, spacing, and typography.");
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/ui/index.ts
|
|
89
|
+
di();
|
|
90
|
+
//#endregion
|
|
91
|
+
export { s as Accordion, c as AccordionContent, l as AccordionItem, u as AccordionTrigger, S as Alert, d as AlertDialog, f as AlertDialogAction, p as AlertDialogCancel, m as AlertDialogContent, h as AlertDialogDescription, g as AlertDialogFooter, _ as AlertDialogHeader, v as AlertDialogOverlay, y as AlertDialogPortal, b as AlertDialogTitle, x as AlertDialogTrigger, w as AspectRatio, O as Autocomplete, k as Avatar, A as AvatarFallback, j as AvatarImage, P as Badge, I as BadgeGroup, N as BadgeIndicator, L as Banner, z as Breadcrumb, B as BreadcrumbEllipsis, V as BreadcrumbItem, H as BreadcrumbLink, U as BreadcrumbList, W as BreadcrumbPage, G as BreadcrumbSeparator, J as Button, K as ButtonGroup, X as Card, Z as CardContent, re as CardDescription, ie as CardFooter, ae as CardHeader, oe as CardTitle, ce as Checkbox, le as Code, ue as Collapsible, de as CollapsibleContent, fe as CollapsibleTrigger, _e as ColorInput, ve as ColorSwatch, ye as Combobox, xe as Container, Se as ContextMenu, Ce as ContextMenuCheckboxItem, we as ContextMenuContent, Te as ContextMenuGroup, Ee as ContextMenuItem, De as ContextMenuLabel, Oe as ContextMenuPortal, ke as ContextMenuRadioGroup, Ae as ContextMenuRadioItem, je as ContextMenuSeparator, Me as ContextMenuShortcut, Ne as ContextMenuSub, Pe as ContextMenuSubContent, Fe as ContextMenuSubTrigger, Ie as ContextMenuTrigger, ri as DateSeparator, ht as DevalokGrain, gt as Dialog, _t as DialogClose, vt as DialogContent, yt as DialogContentRaw, bt as DialogDescription, xt as DialogFooter, St as DialogHeader, Ct as DialogOverlay, wt as DialogPortal, Tt as DialogTitle, Et as DialogTrigger, et as DropdownMenu, tt as DropdownMenuCheckboxItem, nt as DropdownMenuContent, rt as DropdownMenuGroup, it as DropdownMenuItem, at as DropdownMenuLabel, ot as DropdownMenuPortal, st as DropdownMenuRadioGroup, ct as DropdownMenuRadioItem, lt as DropdownMenuSeparator, ut as DropdownMenuShortcut, dt as DropdownMenuSub, ft as DropdownMenuSubContent, pt as DropdownMenuSubTrigger, mt as DropdownMenuTrigger, Dt as FileUpload, T as FormField, E as FormHelperText, Ot as HoverCard, kt as HoverCardContent, At as HoverCardTrigger, o as Icon, jt as IconButton, r as IconContext, Mt as IconGroup, i as IconProvider, Pt as Input, rn as InputOTP, an as InputOTPGroup, on as InputOTPSeparator, sn as InputOTPSlot, It as Label, li as Link, Un as Menubar, Wn as MenubarCheckboxItem, Gn as MenubarContent, Kn as MenubarGroup, qn as MenubarItem, Jn as MenubarLabel, Yn as MenubarMenu, Xn as MenubarPortal, Zn as MenubarRadioGroup, Qn as MenubarRadioItem, $n as MenubarSeparator, er as MenubarShortcut, tr as MenubarSub, nr as MenubarSubContent, rr as MenubarSubTrigger, ir as MenubarTrigger, ai as Message, ii as MessageInput, ni as MessageList, Ln as MultiProgressRing, mr as NavigationMenu, hr as NavigationMenuContent, gr as NavigationMenuIndicator, _r as NavigationMenuItem, vr as NavigationMenuLink, yr as NavigationMenuList, br as NavigationMenuTrigger, xr as NavigationMenuViewport, en as NumberInput, ar as PaginationContent, or as PaginationEllipsis, sr as PaginationItem, cr as PaginationLink, lr as PaginationNav, ur as PaginationNext, dr as PaginationPrevious, fr as PaginationRoot, ge as Popover, me as PopoverAnchor, he as PopoverContent, pe as PopoverTrigger, Tn as Progress, Rn as ProgressRing, zt as RadioGroup, Bt as RadioGroupItem, nn as SearchInput, ei as SegmentedControl, Ht as Select, Ut as SelectContent, Wt as SelectGroup, Gt as SelectItem, Kt as SelectLabel, qt as SelectScrollDownButton, Jt as SelectScrollUpButton, Yt as SelectSeparator, Q as SelectTrigger, Xt as SelectValue, Lt as Separator, hn as Sheet, gn as SheetClose, _n as SheetContent, vn as SheetDescription, yn as SheetFooter, bn as SheetHeader, xn as SheetOverlay, Sn as SheetPortal, Cn as SheetTitle, wn as SheetTrigger, Sr as Sidebar, Cr as SidebarContent, wr as SidebarFooter, Tr as SidebarGroup, Er as SidebarGroupAction, Dr as SidebarGroupContent, Or as SidebarGroupLabel, kr as SidebarHeader, Ar as SidebarInput, jr as SidebarInset, Mr as SidebarMenu, Nr as SidebarMenuAction, Pr as SidebarMenuBadge, Fr as SidebarMenuButton, Ir as SidebarMenuItem, Lr as SidebarMenuSkeleton, Rr as SidebarMenuSub, zr as SidebarMenuSubButton, Br as SidebarMenuSubItem, Vr as SidebarProvider, Hr as SidebarRail, Ur as SidebarSeparator, Wr as SidebarTrigger, Ge as Skeleton, Ke as SkeletonAvatar, qe as SkeletonButton, Je as SkeletonChart, Ye as SkeletonGroup, Xe as SkeletonImage, Ze as SkeletonInput, Qe as SkeletonText, cn as Slider, n as Spinner, Nt as SplitButton, Xr as Stack, Fn as StatCard, In as StatusDot, Kr as Step, qr as Stepper, Vt as Switch, ti as SystemMessage, Le as Table, Re as TableBody, ze as TableCaption, Be as TableCell, Ve as TableFooter, He as TableHead, Ue as TableHeader, We as TableRow, zn as Tabs, Bn as TabsContent, Vn as TabsList, Hn as TabsTrigger, Jr as Text, Qt as Textarea, An as Toaster, dn as Toggle, pn as ToggleGroup, mn as ToggleGroupItem, jn as Tooltip, Mn as TooltipContent, Nn as TooltipProvider, Pn as TooltipTrigger, Zr as TreeItem, $r as TreeView, ci as TypingIndicator, oi as UnreadSeparator, Rt as VisuallyHidden, C as alertVariants, M as avatarVariants, F as badgeVariants, R as bannerVariants, Y as buttonVariants, se as cardVariants, t as cn, be as comboboxTriggerVariants, On as formatFileSize, ui as formatRelativeTime, pr as generatePagination, Ft as inputVariants, tn as numberInputWrapperVariants, En as progressIndicatorVariants, Dn as progressTrackVariants, Zt as selectTriggerVariants, $e as skeletonVariants, ln as sliderThumbVariants, un as sliderTrackVariants, ee as springs, te as stagger, Yr as textVariants, $t as textareaVariants, kn as toast, fn as toggleVariants, ne as tweens, q as useButtonGroup, D as useFormField, a as useIconContext, si as useMessageContext, Gr as useSidebar, Qr as useTree, e as withReducedMotion };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/ui/lib/check-tokens.ts","../../src/ui/index.ts"],"sourcesContent":["/**\n * Dev-mode check for missing token CSS.\n *\n * If the consumer forgets `import '@devalok/shilp-sutra/tokens'`, all CSS\n * custom properties resolve to empty strings and components render with\n * transparent/broken backgrounds. This check detects that condition and\n * warns in the console.\n *\n * Only runs once, only in development, only in the browser.\n */\nlet checked = false\n\nexport function checkTokensLoaded(): void {\n if (checked) return\n if (typeof window === 'undefined') return\n\n // Skip in production — bundlers (Vite, Next.js, webpack) define import.meta.env or process.env\n try {\n // @ts-expect-error -- import.meta.env is Vite-specific, not in base TS lib\n if (import.meta.env?.PROD) return\n } catch { /* not in Vite */ }\n\n checked = true\n\n // Wait for stylesheets to load\n requestAnimationFrame(() => {\n const value = getComputedStyle(document.documentElement).getPropertyValue('--color-accent-9').trim()\n if (!value) {\n console.warn(\n '[shilp-sutra] Design system tokens CSS not loaded. ' +\n 'Add `import \\'@devalok/shilp-sutra/tokens\\'` to your root layout. ' +\n 'Without it, components will render with missing colors, spacing, and typography.'\n )\n }\n })\n}\n","/**\n * @module @devalok/shilp-sutra/ui\n *\n * Core UI primitives: buttons, inputs, dialogs, cards, tables, badges, navigation, and more.\n * Most components require client-side React (\"use client\").\n *\n * **Server-safe components** (import individually for Server Components):\n * `Text`, `Skeleton`, `Stack`, `Container`, `Table`, `Code`, `VisuallyHidden`\n *\n * @example\n * // Server Component — import individually:\n * import { Text } from '@devalok/shilp-sutra/ui/text'\n * import { Stack } from '@devalok/shilp-sutra/ui/stack'\n *\n * // Client Component — barrel import:\n * import { Button, Dialog } from '@devalok/shilp-sutra/ui'\n */\n\n// Dev-mode token presence check — runs once on first import\nimport { checkTokensLoaded } from './lib/check-tokens'\ncheckTokensLoaded()\n\n// Core\nexport { Icon, type IconProps } from './icon'\nexport { IconContext, IconProvider, useIconContext, type IconContextValue, type IconSize, type IconStroke } from './icon-context'\nexport { IconGroup, type IconGroupProps } from './icon-group'\nexport { Button, buttonVariants, type ButtonProps } from './button'\nexport { IconButton, type IconButtonProps } from './icon-button'\nexport { ButtonGroup, useButtonGroup, type ButtonGroupProps } from './button-group'\nexport { SplitButton, type SplitButtonProps } from './split-button'\nexport { Input, inputVariants, type InputProps, type InputState } from './input'\nexport { ColorInput, type ColorInputProps } from './color-input'\nexport { Label, type LabelProps } from './label'\nexport { Separator, type SeparatorProps } from './separator'\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden'\n\n// Autocomplete\nexport { Autocomplete, type AutocompleteProps, type AutocompleteOption } from './autocomplete'\n\n// Combobox\nexport { Combobox, comboboxTriggerVariants, type ComboboxProps, type ComboboxOption, type ComboboxSize } from './combobox'\n\n// FileUpload\nexport { FileUpload, type FileUploadProps } from './file-upload'\n\n// Form Controls\nexport { Checkbox, type CheckboxProps } from './checkbox'\nexport { RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioGroupItemProps } from './radio'\nexport { Switch, type SwitchProps } from './switch'\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectScrollUpButton,\n SelectScrollDownButton,\n type SelectTriggerProps,\n selectTriggerVariants,\n} from './select'\nexport { Textarea, textareaVariants, type TextareaProps } from './textarea'\nexport { NumberInput, numberInputWrapperVariants, type NumberInputProps, type NumberInputSize, type NumberInputState } from './number-input'\nexport { SearchInput, type SearchInputProps } from './search-input'\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, type InputOTPProps } from './input-otp'\nexport { FormField, FormHelperText, useFormField, type FormFieldProps, type FormHelperState, type FormHelperTextProps } from './form'\nexport { Slider, sliderTrackVariants, sliderThumbVariants, type SliderProps, type SliderSize, type SliderColor } from './slider'\nexport { Toggle, toggleVariants, type ToggleProps } from './toggle'\nexport { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps } from './toggle-group'\n\n// Feedback & Overlays\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogContentProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n} from './alert-dialog'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogContentRaw,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogContentProps,\n type DialogTitleProps,\n} from './dialog'\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetContentProps,\n} from './sheet'\nexport {\n toast,\n formatFileSize,\n type ToastProps,\n type ToastOptions,\n type ToastType,\n type ToastActionOptions,\n type ToastUndoOptions,\n type ToastUploadOptions,\n type UploadFile,\n} from './toast'\nexport { Toaster, type ToasterProps } from './toaster'\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, type TooltipContentProps } from './tooltip'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, type PopoverContentProps } from './popover'\nexport { HoverCard, HoverCardTrigger, HoverCardContent, type HoverCardContentProps } from './hover-card'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent, type CollapsibleProps } from './collapsible'\n// ---------------------------------------------------------------------------\n// Notifications — pick the right one:\n// Alert — inline, static feedback within a form or page section (no user action needed to show)\n// Banner — persistent, page-level notice shown above main content (survives navigation)\n// Toast — imperative, transient, action-triggered (fires on user action, auto-dismisses)\n// Requires <Toaster /> mounted once at layout root. Use toast.success() etc. from anywhere.\n// ---------------------------------------------------------------------------\nexport { Alert, alertVariants, type AlertProps } from './alert'\nexport { Banner, bannerVariants, type BannerProps } from './banner'\nexport { Spinner, type SpinnerProps } from './spinner'\n\n// Data Display\nexport { Card, cardVariants, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, type CardProps } from './card'\nexport { Badge, badgeVariants, type BadgeProps } from './badge'\nexport { BadgeIndicator, type BadgeIndicatorProps } from './badge-indicator'\nexport { BadgeGroup, type BadgeGroupProps } from './badge-group'\nexport { Avatar, AvatarImage, AvatarFallback, avatarVariants, type AvatarProps, type AvatarFallbackProps, type AvatarStatus, type AvatarRing } from './avatar'\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, type TableProps, type TableRowProps, type TableCellProps } from './table'\nexport { Progress, progressTrackVariants, progressIndicatorVariants, type ProgressProps } from './progress'\nexport {\n Skeleton,\n skeletonVariants,\n type SkeletonProps,\n SkeletonAvatar,\n type SkeletonAvatarProps,\n SkeletonText,\n type SkeletonTextProps,\n SkeletonButton,\n type SkeletonButtonProps,\n SkeletonInput,\n type SkeletonInputProps,\n SkeletonChart,\n type SkeletonChartProps,\n SkeletonImage,\n type SkeletonImageProps,\n SkeletonGroup,\n type SkeletonGroupProps,\n} from './skeleton'\nexport { StatCard, type StatCardProps } from './stat-card'\nexport { ColorSwatch, type ColorSwatchProps } from './color-swatch'\nexport { StatusDot, type StatusDotProps, type StatusDotStatus } from './status-dot'\nexport { ProgressRing, MultiProgressRing, type ProgressRingProps, type MultiProgressRingProps } from './progress-ring'\nexport { Code, type CodeProps } from './code'\nexport { AspectRatio } from './aspect-ratio'\n\n// Navigation\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent, type AccordionItemProps, type AccordionTriggerProps, type AccordionContentProps } from './accordion'\nexport { Tabs, TabsList, TabsTrigger, TabsContent, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, type TabsSize, type TabsColor, type TabsOrientation } from './tabs'\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n type BreadcrumbProps,\n type BreadcrumbLinkProps,\n} from './breadcrumb'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n type DropdownMenuContentProps,\n type DropdownMenuItemProps,\n} from './dropdown-menu'\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuPortal,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuRadioGroup,\n type ContextMenuContentProps,\n type ContextMenuItemProps,\n} from './context-menu'\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarGroup,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarShortcut,\n type MenubarContentProps,\n type MenubarItemProps,\n} from './menubar'\nexport {\n PaginationRoot,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n PaginationNav,\n generatePagination,\n type PaginationLinkProps,\n type PaginationNavProps,\n} from './pagination'\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n type NavigationMenuProps,\n type NavigationMenuContentProps,\n} from './navigation-menu'\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n type SidebarProps,\n} from './sidebar'\n\n// Workflow\nexport { Stepper, Step, type StepperProps, type StepProps } from './stepper'\n\n\n// Typography\nexport { Text, textVariants, type TextProps, type TextVariant } from './text'\n\n// Layout\nexport { Stack, type StackProps, type SpacingToken } from './stack'\nexport { Container, type ContainerProps } from './container'\n\n// Tree View\nexport { TreeView, type TreeViewProps, TreeItem, type TreeItemProps, useTree, type TreeNode } from './tree-view'\n\n// Segmented Control\nexport {\n SegmentedControl,\n type SegmentedControlSize,\n type SegmentedControlVariant,\n type SegmentedControlOption,\n type SegmentedControlProps,\n} from './segmented-control'\n\n// Brand Texture\nexport { DevalokGrain, type DevalokGrainProps, type GrainIntensity } from './devalok-grain'\n\n// Chat primitives\nexport {\n MessageList,\n type MessageListProps,\n Message,\n useMessageContext,\n type MessageProps,\n type MessageContextValue,\n type MessageAvatarProps,\n type MessageContentProps,\n type MessageAuthorProps,\n type MessageBodyProps,\n type MessageEditableBodyProps,\n type MessageReactionsProps,\n type MessageActionsProps,\n type MessageActionProps,\n SystemMessage,\n type SystemMessageProps,\n DateSeparator,\n type DateSeparatorProps,\n UnreadSeparator,\n type UnreadSeparatorProps,\n MessageInput,\n type MessageInputProps,\n TypingIndicator,\n type TypingIndicatorProps,\n} from './chat'\n\n// Other\nexport { Link, type LinkProps } from './link'\n\n// Utilities\nexport { cn } from './lib/utils'\nexport { formatRelativeTime } from './lib/date-utils'\nexport { springs, tweens, stagger, withReducedMotion } from './lib/motion'\nexport type { SpringPreset, TweenPreset } from './lib/motion'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAI,IAAU;AAEd,SAAgB,KAA0B;AACpC,WACA,SAAO,SAAW,MAGtB;MAAI;AAEyB;UACrB;AAKR,EAHA,IAAU,IAGV,4BAA4B;AAE1B,GADc,iBAAiB,SAAS,gBAAgB,CAAC,iBAAiB,mBAAmB,CAAC,MAAM,IAElG,QAAQ,KACN,sMAGD;IAEH;;;;;ACdJ,IAAmB"}
|
package/dist/ui/input-otp.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { OTPInput } from 'input-otp';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
|
|
4
|
+
type InputOTPSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
6
|
value?: string;
|
|
6
7
|
onChange?: (newValue: string) => unknown;
|
|
7
8
|
maxLength: number;
|
|
@@ -27,12 +28,20 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
27
28
|
} & {
|
|
28
29
|
render?: never;
|
|
29
30
|
children: React.ReactNode;
|
|
30
|
-
} & React.RefAttributes<HTMLInputElement>, "ref">) &
|
|
31
|
+
} & React.RefAttributes<HTMLInputElement>, "ref">) & {
|
|
32
|
+
state?: "default" | "error";
|
|
33
|
+
/** Slot size. @default 'md' */
|
|
34
|
+
size?: InputOTPSize;
|
|
35
|
+
}) & React.RefAttributes<HTMLInputElement>>;
|
|
31
36
|
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
37
|
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
38
|
index: number;
|
|
34
39
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
35
40
|
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
export type InputOTPProps = React.ComponentPropsWithoutRef<typeof OTPInput
|
|
41
|
+
export type InputOTPProps = React.ComponentPropsWithoutRef<typeof OTPInput> & {
|
|
42
|
+
state?: 'default' | 'error';
|
|
43
|
+
/** Slot size. @default 'md' */
|
|
44
|
+
size?: InputOTPSize;
|
|
45
|
+
};
|
|
37
46
|
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
38
47
|
//# sourceMappingURL=input-otp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;AASrD,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAYtC,QAAA,MAAM,QAAQ;;;;;kBANmB,GAAE;;;;;;;;;;;;;kBAAF,GAAE;;;;;;;;;YASvB,SAAS,GAAG,OAAO;IAC3B,+BAA+B;WACxB,YAAY;2CAwBrB,CAAA;AAGF,QAAA,MAAM,aAAa,mKAKjB,CAAA;AAGF,QAAA,MAAM,YAAY;WAEiC,MAAM;wCA0BvD,CAAA;AAGF,QAAA,MAAM,iBAAiB,mKAOrB,CAAA;AAGF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC5E,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC3B,+BAA+B;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|