@devalok/shilp-sutra 0.53.0 → 0.55.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/AGENTS.md +7 -1
- package/BREAKING.json +29 -0
- package/MIGRATION.md +83 -0
- package/dist/_chunks/badge-group.js +1 -1
- package/dist/_chunks/popover.js +38 -37
- package/dist/_chunks/popover.js.map +1 -1
- package/dist/_chunks/primitives/react-accordion.js +270 -0
- package/dist/_chunks/primitives/react-accordion.js.map +1 -0
- package/dist/_chunks/primitives/react-alert-dialog.js +857 -0
- package/dist/_chunks/primitives/react-alert-dialog.js.map +1 -0
- package/dist/_chunks/primitives/react-aspect-ratio.js +32 -0
- package/dist/_chunks/primitives/react-aspect-ratio.js.map +1 -0
- package/dist/_chunks/primitives/react-avatar.js +69 -0
- package/dist/_chunks/primitives/react-avatar.js.map +1 -0
- package/dist/_chunks/primitives/react-checkbox.js +151 -0
- package/dist/_chunks/primitives/react-checkbox.js.map +1 -0
- package/dist/_chunks/primitives/react-context-menu.js +905 -0
- package/dist/_chunks/primitives/react-context-menu.js.map +1 -0
- package/dist/_chunks/primitives/react-dropdown-menu.js +220 -0
- package/dist/_chunks/primitives/react-dropdown-menu.js.map +1 -0
- package/dist/_chunks/primitives/react-hover-card.js +153 -0
- package/dist/_chunks/primitives/react-hover-card.js.map +1 -0
- package/dist/_chunks/primitives/react-label.js +16 -0
- package/dist/_chunks/primitives/react-label.js.map +1 -0
- package/dist/_chunks/primitives/react-menubar.js +304 -0
- package/dist/_chunks/primitives/react-menubar.js.map +1 -0
- package/dist/_chunks/primitives/react-navigation-menu.js +560 -0
- package/dist/_chunks/primitives/react-navigation-menu.js.map +1 -0
- package/dist/_chunks/primitives/react-popover.js +186 -0
- package/dist/_chunks/primitives/react-popover.js.map +1 -0
- package/dist/_chunks/primitives/react-progress.js +70 -0
- package/dist/_chunks/primitives/react-progress.js.map +1 -0
- package/dist/_chunks/primitives/react-radio-group.js +170 -0
- package/dist/_chunks/primitives/react-radio-group.js.map +1 -0
- package/dist/_chunks/primitives/react-select.js +671 -0
- package/dist/_chunks/primitives/react-select.js.map +1 -0
- package/dist/_chunks/primitives/react-separator.js +24 -0
- package/dist/_chunks/primitives/react-separator.js.map +1 -0
- package/dist/_chunks/primitives/react-slider.js +349 -0
- package/dist/_chunks/primitives/react-slider.js.map +1 -0
- package/dist/_chunks/primitives/react-switch.js +92 -0
- package/dist/_chunks/primitives/react-switch.js.map +1 -0
- package/dist/_chunks/primitives/react-tabs.js +114 -0
- package/dist/_chunks/primitives/react-tabs.js.map +1 -0
- package/dist/_chunks/primitives/react-toggle-group.js +122 -0
- package/dist/_chunks/primitives/react-toggle-group.js.map +1 -0
- package/dist/_chunks/primitives/react-toggle.js +28 -0
- package/dist/_chunks/primitives/react-toggle.js.map +1 -0
- package/dist/_chunks/primitives/react-tooltip.js +341 -0
- package/dist/_chunks/primitives/react-tooltip.js.map +1 -0
- package/dist/_chunks/primitives-internal.js +2071 -0
- package/dist/_chunks/primitives-internal.js.map +1 -0
- package/dist/_chunks/shared.js +32 -32
- package/dist/_chunks/tiptap.js +1 -1
- package/dist/ai/ai-command-provider.d.ts +2 -3
- package/dist/ai/block-renderer.d.ts +1 -2
- package/dist/ai/blocks/block-shell.d.ts +0 -1
- package/dist/ai/blocks/block-table.d.ts +1 -2
- package/dist/ai/blocks/confirm.d.ts +1 -2
- package/dist/ai/blocks/divider.d.ts +1 -2
- package/dist/ai/blocks/error.d.ts +1 -2
- package/dist/ai/blocks/index.d.ts +7 -8
- package/dist/ai/blocks/info.d.ts +1 -2
- package/dist/ai/blocks/loading.d.ts +1 -2
- package/dist/ai/blocks/stat-row.d.ts +1 -2
- package/dist/ai/blocks/success.d.ts +1 -2
- package/dist/ai/blocks/text.d.ts +1 -2
- package/dist/ai/command-bar.d.ts +1 -2
- package/dist/ai/conversation.d.ts +2 -3
- package/dist/ai/devadoot-icon.d.ts +0 -1
- package/dist/ai/index.d.ts +16 -17
- package/dist/ai/types.js +1 -0
- package/dist/composed/activity-feed.d.ts +1 -2
- package/dist/composed/avatar-group.d.ts +11 -10
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +108 -140
- package/dist/composed/avatar-group.js.map +1 -1
- package/dist/composed/bulk-action-bar.d.ts +20 -13
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +81 -110
- package/dist/composed/bulk-action-bar.js.map +1 -1
- package/dist/composed/command-palette.d.ts +1 -2
- package/dist/composed/confirm-dialog.d.ts +0 -1
- package/dist/composed/date-picker/calendar-grid.d.ts +0 -1
- package/dist/composed/date-picker/date-picker.d.ts +0 -1
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -2
- package/dist/composed/date-picker/date-time-picker.d.ts +0 -1
- package/dist/composed/date-picker/index.d.ts +17 -18
- package/dist/composed/date-picker/month-picker.d.ts +0 -1
- package/dist/composed/date-picker/presets.d.ts +0 -1
- package/dist/composed/date-picker/time-picker.d.ts +0 -1
- package/dist/composed/date-picker/use-calendar.d.ts +0 -1
- package/dist/composed/date-picker/year-picker.d.ts +0 -1
- package/dist/composed/deadline-indicator.d.ts +0 -1
- package/dist/composed/diff.d.ts +0 -1
- package/dist/composed/emoji-picker.d.ts +0 -1
- package/dist/composed/empty-state.d.ts +1 -2
- package/dist/composed/error-boundary.d.ts +15 -4
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +43 -26
- package/dist/composed/error-boundary.js.map +1 -1
- package/dist/composed/extensions/emoji-data.d.ts +0 -1
- package/dist/composed/extensions/emoji-node.d.ts +0 -1
- package/dist/composed/extensions/emoji-suggestion.d.ts +1 -2
- package/dist/composed/extensions/file-attachment.d.ts +0 -1
- package/dist/composed/extensions/mention-suggestion.d.ts +1 -2
- package/dist/composed/extensions/slash-command.d.ts +0 -1
- package/dist/composed/file-preview/audio-preview.d.ts +0 -1
- package/dist/composed/file-preview/document-preview.d.ts +0 -1
- package/dist/composed/file-preview/embed-preview.d.ts +0 -1
- package/dist/composed/file-preview/image-preview.d.ts +0 -1
- package/dist/composed/file-preview/shared.d.ts +0 -1
- package/dist/composed/file-preview/video-preview.d.ts +0 -1
- package/dist/composed/file-preview.d.ts +0 -1
- package/dist/composed/filter-bar.d.ts +0 -1
- package/dist/composed/form-section.d.ts +0 -1
- package/dist/composed/global-loading.d.ts +0 -1
- package/dist/composed/index.d.ts +49 -50
- package/dist/composed/inline-edit.d.ts +0 -1
- package/dist/composed/loading-skeleton.d.ts +2 -0
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.js +79 -56
- package/dist/composed/loading-skeleton.js.map +1 -1
- package/dist/composed/markdown-viewer.d.ts +0 -1
- package/dist/composed/master-detail.d.ts +21 -9
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +91 -77
- package/dist/composed/master-detail.js.map +1 -1
- package/dist/composed/member-picker.d.ts +0 -1
- package/dist/composed/multi-select-popover.d.ts +0 -1
- package/dist/composed/page-skeletons.d.ts +6 -0
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/page-skeletons.js +93 -71
- package/dist/composed/page-skeletons.js.map +1 -1
- package/dist/composed/priority-indicator.d.ts +0 -1
- package/dist/composed/responsive-modal.d.ts +1 -2
- package/dist/composed/responsive-modal.js +47 -47
- package/dist/composed/rich-chat-input/attachment-strip.d.ts +0 -1
- package/dist/composed/rich-chat-input/audio-player.d.ts +0 -1
- package/dist/composed/rich-chat-input/audio-waveform.d.ts +0 -1
- package/dist/composed/rich-chat-input/chat-toolbar.d.ts +0 -1
- package/dist/composed/rich-chat-input/recording-overlay.d.ts +0 -1
- package/dist/composed/rich-chat-input/reply-banner.d.ts +0 -1
- package/dist/composed/rich-chat-input/schedule-send.d.ts +0 -1
- package/dist/composed/rich-chat-input/use-voice-recorder.d.ts +0 -1
- package/dist/composed/rich-chat-input.d.ts +9 -10
- package/dist/composed/rich-chat-input.js +1 -1
- package/dist/composed/rich-text-editor.d.ts +1 -2
- package/dist/composed/schedule-view.d.ts +0 -1
- package/dist/composed/simple-tooltip.d.ts +0 -1
- package/dist/composed/status-badge.d.ts +1 -2
- package/dist/hooks/index.d.ts +6 -7
- package/dist/hooks/use-color-mode.d.ts +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/hooks/use-touch-device.d.ts +0 -1
- package/dist/hooks/use-viewport-height.d.ts +0 -1
- package/dist/motion/check-motion-provider.d.ts +0 -1
- package/dist/motion/index.d.ts +2 -3
- package/dist/motion/motion-provider.d.ts +1 -2
- package/dist/motion/primitives-index.d.ts +1 -2
- package/dist/motion/primitives.d.ts +1 -2
- package/dist/primitives/_internal/react-arrow.d.ts +1 -1
- package/dist/primitives/_internal/react-collection.d.ts +2 -2
- package/dist/primitives/_internal/react-dismissable-layer.d.ts +1 -1
- package/dist/primitives/_internal/react-focus-scope.d.ts +1 -1
- package/dist/primitives/_internal/react-popper.d.ts +4 -4
- package/dist/primitives/_internal/react-portal.d.ts +1 -1
- package/dist/primitives/_internal/react-use-rect.d.ts +1 -1
- package/dist/primitives/react-accordion.d.ts +3 -3
- package/dist/primitives/react-alert-dialog.d.ts +2 -2
- package/dist/primitives/react-aspect-ratio.d.ts +1 -1
- package/dist/primitives/react-avatar.d.ts +2 -2
- package/dist/primitives/react-checkbox.d.ts +3 -3
- package/dist/primitives/react-collapsible.d.ts +2 -2
- package/dist/primitives/react-context-menu.d.ts +3 -3
- package/dist/primitives/react-dialog.d.ts +5 -5
- package/dist/primitives/react-dropdown-menu.d.ts +3 -3
- package/dist/primitives/react-hover-card.d.ts +5 -5
- package/dist/primitives/react-label.d.ts +1 -1
- package/dist/primitives/react-menu.d.ts +7 -7
- package/dist/primitives/react-menubar.d.ts +5 -5
- package/dist/primitives/react-navigation-menu.d.ts +5 -5
- package/dist/primitives/react-popover.d.ts +6 -6
- package/dist/primitives/react-progress.d.ts +2 -2
- package/dist/primitives/react-radio-group.d.ts +3 -3
- package/dist/primitives/react-roving-focus.d.ts +2 -2
- package/dist/primitives/react-select.d.ts +6 -6
- package/dist/primitives/react-separator.d.ts +1 -1
- package/dist/primitives/react-slider.d.ts +2 -2
- package/dist/primitives/react-switch.d.ts +2 -2
- package/dist/primitives/react-tabs.d.ts +3 -3
- package/dist/primitives/react-toast.d.ts +3 -3
- package/dist/primitives/react-toggle-group.d.ts +4 -4
- package/dist/primitives/react-toggle.d.ts +1 -1
- package/dist/primitives/react-tooltip.d.ts +5 -5
- package/dist/primitives/react-visually-hidden.d.ts +1 -1
- package/dist/shell/app-command-palette.d.ts +2 -3
- package/dist/shell/bottom-navbar.d.ts +1 -2
- package/dist/shell/command-registry.d.ts +1 -2
- package/dist/shell/index.d.ts +12 -11
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +2 -3
- package/dist/shell/link-context.d.ts +2 -3
- package/dist/shell/notification-center.d.ts +0 -1
- package/dist/shell/notification-preferences.d.ts +0 -1
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +2 -0
- package/dist/shell/notification-preferences.js.map +1 -1
- package/dist/shell/top-bar.d.ts +1 -2
- package/dist/test-utils/conformance.d.ts +0 -1
- package/dist/ui/accordion.d.ts +1 -2
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/alert-dialog.d.ts +1 -2
- package/dist/ui/alert-dialog.js +52 -52
- package/dist/ui/alert.d.ts +0 -1
- package/dist/ui/aspect-ratio.d.ts +1 -2
- package/dist/ui/aspect-ratio.js +4 -4
- package/dist/ui/autocomplete.d.ts +1 -2
- package/dist/ui/autocomplete.js +1 -1
- package/dist/ui/avatar.d.ts +1 -2
- package/dist/ui/avatar.js +33 -33
- package/dist/ui/badge-group.d.ts +1 -2
- package/dist/ui/badge-indicator.d.ts +0 -1
- package/dist/ui/badge.d.ts +3 -4
- package/dist/ui/banner.d.ts +0 -1
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/button-group.d.ts +1 -2
- package/dist/ui/button-processing.d.ts +0 -1
- package/dist/ui/button.d.ts +1 -2
- package/dist/ui/button.js +1 -1
- package/dist/ui/card.d.ts +0 -1
- package/dist/ui/charts/_internal/animation.d.ts +0 -1
- package/dist/ui/charts/_internal/axes.d.ts +0 -1
- package/dist/ui/charts/_internal/colors.d.ts +1 -2
- package/dist/ui/charts/_internal/grid-lines.d.ts +0 -1
- package/dist/ui/charts/_internal/legend.d.ts +0 -1
- package/dist/ui/charts/_internal/scales.d.ts +0 -1
- package/dist/ui/charts/_internal/tooltip.d.ts +0 -1
- package/dist/ui/charts/_internal/types.d.ts +0 -1
- package/dist/ui/charts/area-chart.d.ts +1 -2
- package/dist/ui/charts/bar-chart.d.ts +1 -2
- package/dist/ui/charts/chart-container.d.ts +1 -2
- package/dist/ui/charts/gauge-chart.d.ts +0 -1
- package/dist/ui/charts/index.d.ts +9 -10
- package/dist/ui/charts/line-chart.d.ts +1 -2
- package/dist/ui/charts/pie-chart.d.ts +0 -1
- package/dist/ui/charts/radar-chart.d.ts +0 -1
- package/dist/ui/charts/sparkline.d.ts +0 -1
- package/dist/ui/chat/date-separator.d.ts +0 -1
- package/dist/ui/chat/index.d.ts +7 -8
- package/dist/ui/chat/message-input.d.ts +0 -1
- package/dist/ui/chat/message-list.d.ts +0 -1
- package/dist/ui/chat/message.d.ts +1 -2
- package/dist/ui/chat/system-message.d.ts +1 -2
- package/dist/ui/chat/typing-indicator.d.ts +0 -1
- package/dist/ui/chat/unread-separator.d.ts +0 -1
- package/dist/ui/checkbox.d.ts +2 -3
- package/dist/ui/checkbox.js +13 -13
- package/dist/ui/collapsible.d.ts +1 -2
- package/dist/ui/collapsible.js +1 -1
- package/dist/ui/color-input.d.ts +0 -1
- package/dist/ui/color-swatch.d.ts +0 -1
- package/dist/ui/combobox.d.ts +3 -4
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +146 -141
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/context-menu.d.ts +1 -2
- package/dist/ui/context-menu.js +58 -58
- package/dist/ui/data-table-body.d.ts +0 -1
- package/dist/ui/data-table-bulk-actions.d.ts +0 -1
- package/dist/ui/data-table-card.d.ts +0 -1
- package/dist/ui/data-table-context.d.ts +0 -1
- package/dist/ui/data-table-header.d.ts +0 -1
- package/dist/ui/data-table-pagination.d.ts +0 -1
- package/dist/ui/data-table-toolbar.d.ts +0 -1
- package/dist/ui/data-table.d.ts +3 -4
- package/dist/ui/devalok-grain.d.ts +0 -1
- package/dist/ui/dialog.d.ts +1 -2
- package/dist/ui/dialog.js +43 -43
- package/dist/ui/dot.d.ts +0 -1
- package/dist/ui/dropdown-menu.d.ts +1 -2
- package/dist/ui/dropdown-menu.js +69 -69
- package/dist/ui/file-upload.d.ts +0 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +124 -138
- package/dist/ui/file-upload.js.map +1 -1
- package/dist/ui/form.d.ts +7 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +4 -2
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/hover-card.d.ts +1 -2
- package/dist/ui/hover-card.js +16 -16
- package/dist/ui/icon-button.d.ts +4 -4
- package/dist/ui/icon-button.d.ts.map +1 -1
- package/dist/ui/icon-button.js +1 -1
- package/dist/ui/icon-button.js.map +1 -1
- package/dist/ui/icon-context.d.ts +0 -1
- package/dist/ui/icon-group.d.ts +1 -2
- package/dist/ui/icon.d.ts +1 -2
- package/dist/ui/index.d.ts +78 -79
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/input-otp.d.ts +0 -1
- package/dist/ui/input.d.ts +1 -2
- package/dist/ui/label.d.ts +1 -2
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +13 -12
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/lib/bottom-sheet.d.ts +0 -1
- package/dist/ui/lib/check-tokens.d.ts +0 -1
- package/dist/ui/lib/field-state.d.ts +0 -1
- package/dist/ui/lib/icon-input.d.ts +0 -1
- package/dist/ui/lib/index.d.ts +6 -7
- package/dist/ui/lib/keybinding.d.ts +0 -1
- package/dist/ui/lib/link-context.d.ts +0 -1
- package/dist/ui/lib/mention.d.ts +0 -1
- package/dist/ui/lib/normalize-icon.d.ts +2 -2
- package/dist/ui/lib/slot.d.ts +2 -3
- package/dist/ui/lib/use-controllable-open.d.ts +0 -1
- package/dist/ui/link.d.ts +0 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/menubar.d.ts +1 -2
- package/dist/ui/menubar.js +64 -64
- package/dist/ui/navigation-menu.d.ts +1 -2
- package/dist/ui/navigation-menu.js +67 -67
- package/dist/ui/number-input.d.ts +1 -2
- package/dist/ui/oauth-button/index.d.ts +1 -2
- package/dist/ui/oauth-button/oauth-button.d.ts +2 -3
- package/dist/ui/pagination.d.ts +0 -1
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.d.ts +1 -2
- package/dist/ui/progress-ring.d.ts +0 -1
- package/dist/ui/progress.d.ts +1 -2
- package/dist/ui/progress.js +30 -30
- package/dist/ui/radio.d.ts +2 -3
- package/dist/ui/radio.js +18 -18
- package/dist/ui/search-input.d.ts +0 -1
- package/dist/ui/segmented-control.d.ts +1 -2
- package/dist/ui/select.d.ts +1 -2
- package/dist/ui/select.js +55 -55
- package/dist/ui/separator.d.ts +1 -2
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts +1 -2
- package/dist/ui/sheet.js +45 -45
- package/dist/ui/sidebar.d.ts +4 -5
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/slider.d.ts +1 -2
- package/dist/ui/slider.js +14 -14
- package/dist/ui/spinner.d.ts +0 -1
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +50 -44
- package/dist/ui/spinner.js.map +1 -1
- package/dist/ui/split-button.d.ts +14 -4
- package/dist/ui/split-button.d.ts.map +1 -1
- package/dist/ui/split-button.js.map +1 -1
- package/dist/ui/stat-card.d.ts +3 -4
- package/dist/ui/stat-flash.d.ts +1 -2
- package/dist/ui/stepper.d.ts +1 -2
- package/dist/ui/surface.js +1 -1
- package/dist/ui/switch.d.ts +2 -3
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +31 -31
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table-row-link.d.ts +0 -1
- package/dist/ui/table.js +1 -1
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +1 -2
- package/dist/ui/tabs.js +35 -35
- package/dist/ui/textarea.d.ts +1 -2
- package/dist/ui/toast-registry.d.ts +0 -1
- package/dist/ui/toast-types.js +1 -0
- package/dist/ui/toast.d.ts +2 -3
- package/dist/ui/toaster.d.ts +0 -1
- package/dist/ui/toggle-group.d.ts +2 -3
- package/dist/ui/toggle-group.js +14 -14
- package/dist/ui/toggle.d.ts +1 -2
- package/dist/ui/toggle.js +12 -12
- package/dist/ui/tooltip.d.ts +1 -2
- package/dist/ui/tooltip.js +21 -21
- package/dist/ui/tree-view/index.d.ts +3 -4
- package/dist/ui/tree-view/tree-item.d.ts +1 -2
- package/dist/ui/tree-view/tree-view.d.ts +1 -2
- package/dist/ui/tree-view/use-tree.d.ts +1 -2
- package/dist/ui/truncated-text.d.ts +0 -1
- package/docs/components/composed/bulk-action-bar.md +9 -3
- package/docs/components/composed/error-boundary.md +18 -2
- package/docs/components/composed/master-detail.md +12 -2
- package/docs/components/composed/page-skeletons.md +2 -2
- package/docs/components/composed/rich-chat-input.md +18 -6
- package/docs/components/composed/simple-tooltip.md +1 -1
- package/docs/components/shell/app-command-palette.md +2 -1
- package/docs/components/shell/bottom-navbar.md +4 -4
- package/docs/components/shell/command-registry.md +2 -2
- package/docs/components/shell/link-context.md +2 -2
- package/docs/components/shell/top-bar.md +1 -1
- package/docs/components/ui/search-input.md +2 -2
- package/docs/components/ui/slider.md +2 -2
- package/docs/components/ui/split-button.md +3 -3
- package/docs/recipes/install-astro.md +2 -0
- package/docs/recipes/install-next-app-router.md +2 -0
- package/docs/recipes/install-remix.md +2 -0
- package/docs/recipes/install-tanstack-start.md +2 -0
- package/docs/recipes/install-vite.md +2 -0
- package/docs/recipes/troubleshoot.md +80 -0
- package/llms.txt +2 -2
- package/make-kit/Guidelines.md +1 -1
- package/make-kit/components/overview.md +2 -2
- package/make-kit/foundations/surfaces.md +1 -1
- package/mcp-manifest.json +411 -147
- package/package.json +30 -10
- package/skill/SKILL.md +1 -1
- package/skill/chat-skill/README.md +18 -0
- package/skill/chat-skill/SKILL.md +78 -0
- package/skill/chat-skill/chatgpt-instructions.md +26 -0
- package/skill/chat-skill/gemini-instructions.md +25 -0
- package/skill/references/components.md +2 -2
- package/skill/references/setup-astro.md +2 -0
- package/skill/references/setup-next-app-router.md +2 -0
- package/skill/references/setup-remix.md +2 -0
- package/skill/references/setup-tanstack-start.md +2 -0
- package/skill/references/setup-vite.md +2 -0
- package/skill/references/troubleshoot.md +80 -0
- package/dist/_chunks/primitives.js +0 -7596
- package/dist/_chunks/primitives.js.map +0 -1
- package/dist/shell/sidebar.d.ts +0 -113
- package/dist/shell/sidebar.d.ts.map +0 -1
- package/dist/shell/sidebar.js +0 -293
- package/dist/shell/sidebar.js.map +0 -1
- package/docs/components/shell/sidebar.md +0 -103
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { springs as e, tweens as t } from "./lib/motion.js";
|
|
3
|
+
import { cn as n } from "./lib/utils.js";
|
|
4
|
+
import { Icon as r } from "./icon.js";
|
|
5
|
+
import { Content as i, Indicator as a, Item as o, Link as s, List as c, Root2 as l, Trigger as u, Viewport as d } from "../_chunks/primitives/react-navigation-menu.js";
|
|
6
6
|
import * as f from "react";
|
|
7
7
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
8
|
import { IconChevronDown as h } from "@tabler/icons-react";
|
|
9
9
|
import { motion as g } from "framer-motion";
|
|
10
10
|
//#region src/ui/navigation-menu.tsx
|
|
11
|
-
var _ = f.forwardRef(({ className: e, children: t, ...
|
|
12
|
-
ref:
|
|
13
|
-
className:
|
|
14
|
-
...
|
|
11
|
+
var _ = f.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ m(l, {
|
|
12
|
+
ref: i,
|
|
13
|
+
className: n("relative z-raised flex max-w-max flex-1 items-center justify-center", e),
|
|
14
|
+
...r,
|
|
15
15
|
children: [t, /* @__PURE__ */ p(w, {})]
|
|
16
16
|
}));
|
|
17
|
-
_.displayName =
|
|
18
|
-
var v = f.forwardRef(({ className: e, ...t },
|
|
19
|
-
ref:
|
|
20
|
-
className:
|
|
17
|
+
_.displayName = l.displayName;
|
|
18
|
+
var v = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ p(c, {
|
|
19
|
+
ref: r,
|
|
20
|
+
className: n("group flex flex-1 list-none items-center justify-center space-x-ds-02", e),
|
|
21
21
|
...t
|
|
22
22
|
}));
|
|
23
|
-
v.displayName =
|
|
24
|
-
var y =
|
|
25
|
-
ref:
|
|
26
|
-
className:
|
|
27
|
-
...
|
|
23
|
+
v.displayName = c.displayName;
|
|
24
|
+
var y = o, b = f.forwardRef(({ className: e, children: t, ...i }, a) => /* @__PURE__ */ m(u, {
|
|
25
|
+
ref: a,
|
|
26
|
+
className: n("group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-control bg-transparent px-ds-05 py-ds-03 text-body-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none disabled:opacity-action-disabled", e),
|
|
27
|
+
...i,
|
|
28
28
|
children: [
|
|
29
29
|
t,
|
|
30
30
|
" ",
|
|
31
|
-
/* @__PURE__ */ p(
|
|
31
|
+
/* @__PURE__ */ p(r, {
|
|
32
32
|
icon: h,
|
|
33
33
|
size: "sm",
|
|
34
34
|
className: "relative top-[1px] ml-ds-02 transition-transform duration-moderate-02 group-data-[state=open]:rotate-180"
|
|
35
35
|
})
|
|
36
36
|
]
|
|
37
37
|
}));
|
|
38
|
-
b.displayName =
|
|
38
|
+
b.displayName = u.displayName;
|
|
39
39
|
var x = {
|
|
40
40
|
"from-start": {
|
|
41
41
|
x: "-13rem",
|
|
@@ -57,19 +57,19 @@ var x = {
|
|
|
57
57
|
x: 0,
|
|
58
58
|
opacity: 1
|
|
59
59
|
}
|
|
60
|
-
}, S = f.forwardRef(({ className:
|
|
61
|
-
let
|
|
62
|
-
|
|
63
|
-
}, [
|
|
60
|
+
}, S = f.forwardRef(({ className: r, ...a }, o) => {
|
|
61
|
+
let s = f.useRef(null), c = f.useCallback((e) => {
|
|
62
|
+
s.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
63
|
+
}, [o]), [l, u] = f.useState(null);
|
|
64
64
|
f.useEffect(() => {
|
|
65
|
-
let e =
|
|
65
|
+
let e = s.current;
|
|
66
66
|
if (!e) return;
|
|
67
67
|
let t = e.getAttribute("data-motion");
|
|
68
|
-
t &&
|
|
68
|
+
t && u(t);
|
|
69
69
|
let n = new MutationObserver((t) => {
|
|
70
70
|
for (let n of t) if (n.attributeName === "data-motion") {
|
|
71
71
|
let t = e.getAttribute("data-motion");
|
|
72
|
-
|
|
72
|
+
u(t);
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
return n.observe(e, {
|
|
@@ -77,54 +77,54 @@ var x = {
|
|
|
77
77
|
attributeFilter: ["data-motion"]
|
|
78
78
|
}), () => n.disconnect();
|
|
79
79
|
}, []);
|
|
80
|
-
let d =
|
|
80
|
+
let d = l && l.startsWith("from-") ? x[l] : l && l.startsWith("to-") ? x.center : {
|
|
81
81
|
x: 0,
|
|
82
82
|
opacity: 0
|
|
83
|
-
}, m =
|
|
84
|
-
return /* @__PURE__ */ p(
|
|
85
|
-
ref:
|
|
86
|
-
className:
|
|
87
|
-
...
|
|
83
|
+
}, m = l && l.startsWith("from-") ? x.center : l && l.startsWith("to-") ? x[l] : x.center;
|
|
84
|
+
return /* @__PURE__ */ p(i, {
|
|
85
|
+
ref: c,
|
|
86
|
+
className: n("left-0 top-0 w-full md:absolute md:w-auto", r),
|
|
87
|
+
...a,
|
|
88
88
|
children: /* @__PURE__ */ p(g.div, {
|
|
89
89
|
initial: d,
|
|
90
90
|
animate: m,
|
|
91
91
|
transition: {
|
|
92
|
-
...
|
|
93
|
-
opacity:
|
|
92
|
+
...e.smooth,
|
|
93
|
+
opacity: t.fade
|
|
94
94
|
},
|
|
95
95
|
className: "w-full",
|
|
96
|
-
children:
|
|
97
|
-
},
|
|
96
|
+
children: a.children
|
|
97
|
+
}, l)
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
|
-
S.displayName =
|
|
101
|
-
var C =
|
|
102
|
-
let
|
|
103
|
-
|
|
104
|
-
}, [
|
|
100
|
+
S.displayName = i.displayName;
|
|
101
|
+
var C = s, w = f.forwardRef(({ className: r, ...i }, a) => {
|
|
102
|
+
let o = f.useRef(null), s = f.useCallback((e) => {
|
|
103
|
+
o.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
104
|
+
}, [a]), [c, l] = f.useState(!1);
|
|
105
105
|
return f.useEffect(() => {
|
|
106
|
-
let e =
|
|
106
|
+
let e = o.current;
|
|
107
107
|
if (!e) return;
|
|
108
108
|
let t = e.getAttribute("data-state");
|
|
109
|
-
|
|
109
|
+
l(t === "open");
|
|
110
110
|
let n = new MutationObserver((t) => {
|
|
111
|
-
for (let n of t) n.attributeName === "data-state" &&
|
|
111
|
+
for (let n of t) n.attributeName === "data-state" && l(e.getAttribute("data-state") === "open");
|
|
112
112
|
});
|
|
113
113
|
return n.observe(e, {
|
|
114
114
|
attributes: !0,
|
|
115
115
|
attributeFilter: ["data-state"]
|
|
116
116
|
}), () => n.disconnect();
|
|
117
117
|
}, []), /* @__PURE__ */ m("div", {
|
|
118
|
-
className:
|
|
119
|
-
children: [/* @__PURE__ */ p(
|
|
120
|
-
className:
|
|
121
|
-
ref:
|
|
122
|
-
...
|
|
118
|
+
className: n("absolute left-0 top-full flex justify-center"),
|
|
119
|
+
children: [/* @__PURE__ */ p(d, {
|
|
120
|
+
className: n("origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-overlay bg-surface-overlay shadow-floating md:w-[var(--radix-navigation-menu-viewport-width)]", r),
|
|
121
|
+
ref: s,
|
|
122
|
+
...i
|
|
123
123
|
}), /* @__PURE__ */ p(g.div, {
|
|
124
124
|
"aria-hidden": !0,
|
|
125
125
|
className: "absolute inset-0 pointer-events-none",
|
|
126
126
|
initial: !1,
|
|
127
|
-
animate:
|
|
127
|
+
animate: c ? {
|
|
128
128
|
opacity: 1,
|
|
129
129
|
scale: 1
|
|
130
130
|
} : {
|
|
@@ -132,42 +132,42 @@ var C = r, w = f.forwardRef(({ className: e, ...t }, n) => {
|
|
|
132
132
|
scale: .95
|
|
133
133
|
},
|
|
134
134
|
transition: {
|
|
135
|
-
...
|
|
136
|
-
opacity:
|
|
135
|
+
...e.smooth,
|
|
136
|
+
opacity: t.fade
|
|
137
137
|
}
|
|
138
138
|
})]
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
|
-
w.displayName =
|
|
142
|
-
var T = f.forwardRef(({ className: e, ...
|
|
143
|
-
let
|
|
144
|
-
|
|
145
|
-
}, [
|
|
141
|
+
w.displayName = d.displayName;
|
|
142
|
+
var T = f.forwardRef(({ className: e, ...r }, i) => {
|
|
143
|
+
let o = f.useRef(null), s = f.useCallback((e) => {
|
|
144
|
+
o.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
|
|
145
|
+
}, [i]), [c, l] = f.useState(!1);
|
|
146
146
|
return f.useEffect(() => {
|
|
147
|
-
let e =
|
|
147
|
+
let e = o.current;
|
|
148
148
|
if (!e) return;
|
|
149
149
|
let t = e.getAttribute("data-state");
|
|
150
|
-
|
|
150
|
+
l(t === "visible");
|
|
151
151
|
let n = new MutationObserver((t) => {
|
|
152
|
-
for (let n of t) n.attributeName === "data-state" &&
|
|
152
|
+
for (let n of t) n.attributeName === "data-state" && l(e.getAttribute("data-state") === "visible");
|
|
153
153
|
});
|
|
154
154
|
return n.observe(e, {
|
|
155
155
|
attributes: !0,
|
|
156
156
|
attributeFilter: ["data-state"]
|
|
157
157
|
}), () => n.disconnect();
|
|
158
|
-
}, []), /* @__PURE__ */ p(
|
|
159
|
-
ref:
|
|
160
|
-
className:
|
|
161
|
-
...
|
|
158
|
+
}, []), /* @__PURE__ */ p(a, {
|
|
159
|
+
ref: s,
|
|
160
|
+
className: n("top-full z-base flex h-ds-02b items-end justify-center overflow-hidden", e),
|
|
161
|
+
...r,
|
|
162
162
|
children: /* @__PURE__ */ p(g.div, {
|
|
163
163
|
layout: !0,
|
|
164
164
|
initial: !1,
|
|
165
|
-
animate:
|
|
166
|
-
transition:
|
|
165
|
+
animate: c ? { opacity: 1 } : { opacity: 0 },
|
|
166
|
+
transition: t.fade,
|
|
167
167
|
className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-control-inner bg-surface-border shadow-raised-hover"
|
|
168
168
|
})
|
|
169
169
|
});
|
|
170
170
|
});
|
|
171
|
-
T.displayName =
|
|
171
|
+
T.displayName = a.displayName;
|
|
172
172
|
//#endregion
|
|
173
173
|
export { _ as NavigationMenu, S as NavigationMenuContent, T as NavigationMenuIndicator, y as NavigationMenuItem, C as NavigationMenuLink, v as NavigationMenuList, b as NavigationMenuTrigger, w as NavigationMenuViewport };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { FieldState } from './lib/field-state';
|
|
2
|
+
import { FieldState } from './lib/field-state.js';
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
/** @deprecated Use `FieldState` — the shared control-state type. Kept as an alias. */
|
|
6
5
|
export type NumberInputState = FieldState;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { getOAuthLabel, getOAuthName, OAuth, type OAuthAppearance, OAuthButton, type OAuthButtonProps, OAuthConnectionRow, type OAuthConnectionRowProps, OAuthDivider, type OAuthDividerProps, OAuthGlyph, type OAuthGlyphProps, OAuthGroup, type OAuthGroupProps, type OAuthIntent, type OAuthProvider, type OAuthVariant, } from './oauth-button';
|
|
1
|
+
export { getOAuthLabel, getOAuthName, OAuth, type OAuthAppearance, OAuthButton, type OAuthButtonProps, OAuthConnectionRow, type OAuthConnectionRowProps, OAuthDivider, type OAuthDividerProps, OAuthGlyph, type OAuthGlyphProps, OAuthGroup, type OAuthGroupProps, type OAuthIntent, type OAuthProvider, type OAuthVariant, } from './oauth-button.js';
|
|
3
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { IconInput } from '../lib/icon-input';
|
|
1
|
+
import { ButtonProps } from '../button.js';
|
|
2
|
+
import { IconInput } from '../lib/icon-input.js';
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
export type OAuthProvider = 'google' | 'apple' | 'github' | 'microsoft' | 'x' | 'linkedin' | 'facebook' | 'discord' | 'slack' | 'gitlab' | 'sso' | 'email' | 'passkey';
|
|
6
5
|
export type OAuthIntent = 'continue' | 'signin' | 'signup';
|
package/dist/ui/pagination.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
declare const PaginationRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
4
3
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
package/dist/ui/pagination.js
CHANGED
package/dist/ui/popover.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import * as PopoverPrimitive from '../primitives/react-popover';
|
|
1
|
+
import * as PopoverPrimitive from '../primitives/react-popover.js';
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
declare const Popover: React.FC<React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>>;
|
|
5
4
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/ui/progress.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as ProgressPrimitive from '../primitives/react-progress';
|
|
2
|
+
import * as ProgressPrimitive from '../primitives/react-progress.js';
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
export type ProgressSize = 'sm' | 'md' | 'lg';
|
|
6
5
|
export type ProgressColor = 'accent' | 'success' | 'warning' | 'error';
|
package/dist/ui/progress.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { springs as e } from "./lib/motion.js";
|
|
3
|
+
import { cva as t } from "../_chunks/vendor-utils.js";
|
|
4
|
+
import { cn as n } from "./lib/utils.js";
|
|
5
|
+
import { Root as r } from "../_chunks/primitives/react-progress.js";
|
|
6
6
|
import * as i from "react";
|
|
7
7
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
8
|
import { motion as s } from "framer-motion";
|
|
9
9
|
//#region src/ui/progress.tsx
|
|
10
|
-
var c =
|
|
10
|
+
var c = t("relative w-full overflow-hidden rounded-pill bg-surface-raised", {
|
|
11
11
|
variants: { size: {
|
|
12
12
|
sm: "h-1",
|
|
13
13
|
md: "h-2",
|
|
@@ -19,7 +19,7 @@ var c = n("relative w-full overflow-hidden rounded-pill bg-surface-raised", {
|
|
|
19
19
|
success: "bg-success-9",
|
|
20
20
|
warning: "bg-warning-9",
|
|
21
21
|
error: "bg-error-9"
|
|
22
|
-
}, u =
|
|
22
|
+
}, u = t("h-full transition-[width] duration-moderate-02 ease-expressive-standard", {
|
|
23
23
|
variants: { color: l },
|
|
24
24
|
defaultVariants: { color: "accent" }
|
|
25
25
|
});
|
|
@@ -32,62 +32,62 @@ function m(e) {
|
|
|
32
32
|
if (!t) throw Error(`<Progress.${e}> must be rendered inside <Progress.Root>.`);
|
|
33
33
|
return t;
|
|
34
34
|
}
|
|
35
|
-
var h = i.forwardRef(({ value: e = null, max: t = 100, size:
|
|
35
|
+
var h = i.forwardRef(({ value: e = null, max: t = 100, size: r = "md", className: o, children: s, ...c }, l) => {
|
|
36
36
|
let u = i.useMemo(() => ({
|
|
37
37
|
value: e,
|
|
38
38
|
max: t,
|
|
39
|
-
size:
|
|
39
|
+
size: r,
|
|
40
40
|
indeterminate: e == null
|
|
41
41
|
}), [
|
|
42
42
|
e,
|
|
43
43
|
t,
|
|
44
|
-
|
|
44
|
+
r
|
|
45
45
|
]);
|
|
46
46
|
return /* @__PURE__ */ a(p.Provider, {
|
|
47
47
|
value: u,
|
|
48
48
|
children: /* @__PURE__ */ a("div", {
|
|
49
49
|
ref: l,
|
|
50
|
-
className:
|
|
50
|
+
className: n("flex w-full items-center gap-ds-03", o),
|
|
51
51
|
...c,
|
|
52
52
|
children: s
|
|
53
53
|
})
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
h.displayName = "Progress.Root";
|
|
57
|
-
var g = i.forwardRef(({ className:
|
|
57
|
+
var g = i.forwardRef(({ className: e, children: t, ...i }, o) => {
|
|
58
58
|
let { value: s, max: l, size: u, indeterminate: d } = m("Track");
|
|
59
|
-
return /* @__PURE__ */ a(
|
|
59
|
+
return /* @__PURE__ */ a(r, {
|
|
60
60
|
ref: o,
|
|
61
61
|
value: d ? null : s,
|
|
62
62
|
max: l,
|
|
63
|
-
className:
|
|
63
|
+
className: n(c({ size: u }), "flex-1", e),
|
|
64
64
|
...i,
|
|
65
|
-
children:
|
|
65
|
+
children: t
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
g.displayName = "Progress.Track";
|
|
69
|
-
var _ = i.forwardRef(({ color:
|
|
70
|
-
let { value: l, max: p, indeterminate: h } = m("Indicator"), g =
|
|
69
|
+
var _ = i.forwardRef(({ color: t, autoColor: r, className: i, ...o }, c) => {
|
|
70
|
+
let { value: l, max: p, indeterminate: h } = m("Indicator"), g = t ?? (r === !1 ? "accent" : d(l));
|
|
71
71
|
return h ? /* @__PURE__ */ a("div", {
|
|
72
72
|
ref: c,
|
|
73
|
-
className:
|
|
73
|
+
className: n(u({ color: g }), "w-2/5 animate-progress-indeterminate motion-reduce:animate-none", i),
|
|
74
74
|
...o
|
|
75
75
|
}) : /* @__PURE__ */ a(s.div, {
|
|
76
76
|
ref: c,
|
|
77
|
-
className:
|
|
77
|
+
className: n(u({ color: g }), "transition-colors", i),
|
|
78
78
|
initial: !1,
|
|
79
79
|
animate: { width: `${f(l ?? 0, p)}%` },
|
|
80
|
-
transition:
|
|
80
|
+
transition: e.smooth,
|
|
81
81
|
...o
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
_.displayName = "Progress.Indicator";
|
|
85
|
-
var v = i.forwardRef(({ value: e, color: t = "accent", className:
|
|
85
|
+
var v = i.forwardRef(({ value: e, color: t = "accent", className: r, style: i, ...o }, s) => {
|
|
86
86
|
let { max: c } = m("Segment");
|
|
87
87
|
return /* @__PURE__ */ a("div", {
|
|
88
88
|
ref: s,
|
|
89
89
|
"aria-hidden": "true",
|
|
90
|
-
className:
|
|
90
|
+
className: n("h-full first:rounded-l-pill last:rounded-r-pill", l[t], r),
|
|
91
91
|
style: {
|
|
92
92
|
width: `${f(e, c)}%`,
|
|
93
93
|
...i
|
|
@@ -96,29 +96,29 @@ var v = i.forwardRef(({ value: e, color: t = "accent", className: n, style: i, .
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
v.displayName = "Progress.Segment";
|
|
99
|
-
var y = i.forwardRef(({ className: e, ...t },
|
|
100
|
-
ref:
|
|
101
|
-
className:
|
|
99
|
+
var y = i.forwardRef(({ className: e, ...t }, r) => (m("Label"), /* @__PURE__ */ a("span", {
|
|
100
|
+
ref: r,
|
|
101
|
+
className: n("shrink-0 text-body-sm font-medium text-surface-fg", e),
|
|
102
102
|
...t
|
|
103
103
|
})));
|
|
104
104
|
y.displayName = "Progress.Label";
|
|
105
|
-
var b = i.forwardRef(({ className: e, format: t, children:
|
|
105
|
+
var b = i.forwardRef(({ className: e, format: t, children: r, ...i }, o) => {
|
|
106
106
|
let { value: s, max: c, indeterminate: l } = m("Value"), u = l ? 0 : f(s ?? 0, c);
|
|
107
107
|
return /* @__PURE__ */ a("span", {
|
|
108
108
|
ref: o,
|
|
109
|
-
className:
|
|
109
|
+
className: n("shrink-0 text-caption text-surface-fg-muted tabular-nums", e),
|
|
110
110
|
...i,
|
|
111
|
-
children:
|
|
111
|
+
children: r ?? (l ? "" : t ? t(u, s, c) : `${Math.round(u)}%`)
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
b.displayName = "Progress.Value";
|
|
115
|
-
var x = i.forwardRef(({ value: e = null, max: t = 100, size:
|
|
115
|
+
var x = i.forwardRef(({ value: e = null, max: t = 100, size: r, color: s, autoColor: c, label: l, showValue: u, segments: d, trackClassName: f, indicatorClassName: p, className: m, "aria-label": x, "aria-labelledby": S, ...C }, w) => {
|
|
116
116
|
let T = i.useId(), E = l != null;
|
|
117
117
|
return /* @__PURE__ */ o(h, {
|
|
118
118
|
ref: w,
|
|
119
119
|
value: e,
|
|
120
120
|
max: t,
|
|
121
|
-
size:
|
|
121
|
+
size: r ?? "md",
|
|
122
122
|
className: m,
|
|
123
123
|
...C,
|
|
124
124
|
children: [
|
|
@@ -129,7 +129,7 @@ var x = i.forwardRef(({ value: e = null, max: t = 100, size: n, color: s, autoCo
|
|
|
129
129
|
/* @__PURE__ */ a(g, {
|
|
130
130
|
"aria-label": x,
|
|
131
131
|
"aria-labelledby": S ?? (E ? T : void 0),
|
|
132
|
-
className:
|
|
132
|
+
className: n(d && "flex", f),
|
|
133
133
|
children: d ? d.map((e, t) => /* @__PURE__ */ a(v, {
|
|
134
134
|
value: e.value,
|
|
135
135
|
color: e.color
|
package/dist/ui/radio.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import * as RadioGroupPrimitive from '../primitives/react-radio-group';
|
|
1
|
+
import { FieldState } from './lib/field-state.js';
|
|
2
|
+
import * as RadioGroupPrimitive from '../primitives/react-radio-group.js';
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
export interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
6
5
|
/** Validation/feedback state for the whole group. `'error'` also sets `aria-invalid`. Inherited from `FormField` when omitted. */
|
package/dist/ui/radio.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { springs as e } from "./lib/motion.js";
|
|
3
|
+
import { cn as t } from "./lib/utils.js";
|
|
4
|
+
import { useFormField as n } from "./form.js";
|
|
5
|
+
import { resolveFieldState as r } from "../_chunks/field-state.js";
|
|
6
|
+
import { Indicator as i, Item2 as a, Root2 as o } from "../_chunks/primitives/react-radio-group.js";
|
|
7
7
|
import * as s from "react";
|
|
8
8
|
import { jsx as c } from "react/jsx-runtime";
|
|
9
9
|
import { IconCircle as l } from "@tabler/icons-react";
|
|
@@ -13,21 +13,21 @@ var d = s.createContext(void 0), f = {
|
|
|
13
13
|
error: "border-error-7",
|
|
14
14
|
warning: "border-warning-7",
|
|
15
15
|
success: "border-success-7"
|
|
16
|
-
}, p = s.forwardRef(({ className: e, state:
|
|
17
|
-
let l =
|
|
16
|
+
}, p = s.forwardRef(({ className: e, state: i, ...a }, s) => {
|
|
17
|
+
let l = n(), u = r(i, l.state), f = a["aria-describedby"] ?? l.helperTextId, p = a["aria-required"] ?? l.required;
|
|
18
18
|
return /* @__PURE__ */ c(d.Provider, {
|
|
19
19
|
value: u,
|
|
20
|
-
children: /* @__PURE__ */ c(
|
|
21
|
-
className:
|
|
20
|
+
children: /* @__PURE__ */ c(o, {
|
|
21
|
+
className: t("grid gap-ds-03", e),
|
|
22
22
|
"aria-invalid": u === "error" || void 0,
|
|
23
23
|
"aria-describedby": f,
|
|
24
24
|
"aria-required": p || void 0,
|
|
25
|
-
...
|
|
25
|
+
...a,
|
|
26
26
|
ref: s
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
|
-
p.displayName =
|
|
30
|
+
p.displayName = o.displayName;
|
|
31
31
|
var m = {
|
|
32
32
|
sm: "h-5 w-5",
|
|
33
33
|
md: "h-6 w-6",
|
|
@@ -36,25 +36,25 @@ var m = {
|
|
|
36
36
|
sm: "h-1.5 w-1.5",
|
|
37
37
|
md: "h-ds-03 w-ds-03",
|
|
38
38
|
lg: "h-2.5 w-2.5"
|
|
39
|
-
}, g = s.forwardRef(({ className: n, size:
|
|
39
|
+
}, g = s.forwardRef(({ className: n, size: r = "md", ...o }, p) => {
|
|
40
40
|
let g = s.useContext(d);
|
|
41
|
-
return /* @__PURE__ */ c(
|
|
41
|
+
return /* @__PURE__ */ c(a, {
|
|
42
42
|
ref: p,
|
|
43
|
-
className:
|
|
43
|
+
className: t("touch-target aspect-square rounded-pill", m[r], "border border-surface-border-strong bg-surface-raised-hover", "transition-colors duration-fast-01", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-action-disabled", "hover:border-accent-7 hover:bg-surface-raised-active", "data-[state=checked]:border-accent-7", g && f[g], n),
|
|
44
44
|
...o,
|
|
45
|
-
children: /* @__PURE__ */ c(
|
|
45
|
+
children: /* @__PURE__ */ c(i, {
|
|
46
46
|
asChild: !0,
|
|
47
47
|
className: "flex items-center justify-center",
|
|
48
48
|
children: /* @__PURE__ */ c(u.span, {
|
|
49
49
|
className: "flex items-center justify-center",
|
|
50
50
|
initial: { scale: 0 },
|
|
51
51
|
animate: { scale: 1 },
|
|
52
|
-
transition:
|
|
53
|
-
children: /* @__PURE__ */ c(l, { className:
|
|
52
|
+
transition: e.snappy,
|
|
53
|
+
children: /* @__PURE__ */ c(l, { className: t(h[r], "fill-accent-9 text-accent-11") })
|
|
54
54
|
})
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
|
-
g.displayName =
|
|
58
|
+
g.displayName = a.displayName;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { p as RadioGroup, g as RadioGroupItem };
|
package/dist/ui/select.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as SelectPrimitive from '../primitives/react-select';
|
|
2
|
+
import * as SelectPrimitive from '../primitives/react-select.js';
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
/**
|
|
6
5
|
* Select root — manages open/close state and selected value.
|