@adea-ai/ui 0.149.0 → 0.149.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composites/about-dialog/about-dialog.js +2 -3
- package/dist/components/composites/about-dialog/index.js +1 -2
- package/dist/components/composites/accent-picker/accent-picker.js +2 -3
- package/dist/components/composites/accent-picker/index.js +1 -2
- package/dist/components/composites/account-menu/account-menu.js +3 -4
- package/dist/components/composites/account-menu/index.js +1 -2
- package/dist/components/composites/action-button/action-button.js +2 -3
- package/dist/components/composites/action-button/index.js +1 -2
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -2
- package/dist/components/composites/appearance-editor/appearance-choices.js +2 -3
- package/dist/components/composites/appearance-editor/appearance-editor.js +5 -6
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +4 -4
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.js +3 -4
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
- package/dist/components/composites/appearance-editor/index.js +2 -2
- package/dist/components/composites/appearance-editor/theme-preview.js +1 -2
- package/dist/components/composites/catalog-browser/catalog-browser-group.js +3 -4
- package/dist/components/composites/catalog-browser/catalog-browser.js +4 -5
- package/dist/components/composites/catalog-browser/catalog-detail.js +1 -2
- package/dist/components/composites/chain-of-thought/chain-of-thought.js +1 -2
- package/dist/components/composites/chain-of-thought/index.js +1 -2
- package/dist/components/composites/chat/chat.js +1 -2
- package/dist/components/composites/chat/index.js +1 -2
- package/dist/components/composites/checkpoint/checkpoint-model.js +1 -2
- package/dist/components/composites/checkpoint/checkpoint.js +4 -5
- package/dist/components/composites/checkpoint/index.js +1 -1
- package/dist/components/composites/confirmation/confirmation-model.js +1 -2
- package/dist/components/composites/confirmation/confirmation.js +1 -2
- package/dist/components/composites/confirmation/index.js +1 -1
- package/dist/components/composites/context/context-model.js +1 -2
- package/dist/components/composites/context/context.js +1 -2
- package/dist/components/composites/context/index.js +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js +1 -2
- package/dist/components/composites/file-tree/file-tree.js +2 -3
- package/dist/components/composites/file-tree/index.js +1 -1
- package/dist/components/composites/help-center/help-center.js +3 -4
- package/dist/components/composites/help-center/index.js +1 -2
- package/dist/components/composites/icon-picker/icon-picker.js +1 -2
- package/dist/components/composites/icon-picker/image-data-url.js +1 -2
- package/dist/components/composites/icon-picker/index.js +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js +1 -2
- package/dist/components/composites/inline-citation/citation.d.ts.map +1 -1
- package/dist/components/composites/inline-citation/citation.js +2 -3
- package/dist/components/composites/inline-citation/citation.js.map +1 -1
- package/dist/components/composites/inline-citation/index.js +1 -1
- package/dist/components/composites/inline-citation/inline-citation.js +2 -3
- package/dist/components/composites/list-row/index.js +1 -1
- package/dist/components/composites/list-row/list-row-control.js +1 -2
- package/dist/components/composites/list-row/list-row.js +3 -4
- package/dist/components/composites/message-scroller/index.js +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js +1 -2
- package/dist/components/composites/message-scroller/scroll-anchor.js +1 -2
- package/dist/components/composites/model-selector/index.js +1 -1
- package/dist/components/composites/model-selector/model-selector.js +2 -3
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/model-selector/models.js +1 -2
- package/dist/components/composites/plan/index.js +1 -2
- package/dist/components/composites/plan/plan.js +1 -2
- package/dist/components/composites/queue/index.js +1 -2
- package/dist/components/composites/queue/queue.js +1 -2
- package/dist/components/composites/reasoning/index.js +1 -2
- package/dist/components/composites/reasoning/reasoning.js +1 -2
- package/dist/components/composites/scene-controls/index.js +1 -2
- package/dist/components/composites/scene-controls/scene-controls.js +1 -2
- package/dist/components/composites/settings/index.js +1 -1
- package/dist/components/composites/settings/settings-layout.js +1 -2
- package/dist/components/composites/settings/settings-navigation.js +3 -4
- package/dist/components/composites/settings/settings.js +3 -4
- package/dist/components/composites/sources/index.js +1 -1
- package/dist/components/composites/sources/source.js +1 -2
- package/dist/components/composites/sources/sources.js +1 -2
- package/dist/components/composites/stack-trace/index.js +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.js +1 -2
- package/dist/components/composites/stack-trace/stack-trace.js +3 -4
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/index.js +1 -2
- package/dist/components/composites/stat/stat.js +1 -2
- package/dist/components/composites/subagent/index.js +1 -2
- package/dist/components/composites/subagent/subagent.js +1 -2
- package/dist/components/composites/suggestion/index.js +1 -2
- package/dist/components/composites/suggestion/suggestion.js +1 -2
- package/dist/components/composites/task/index.js +1 -2
- package/dist/components/composites/task/task.js +2 -3
- package/dist/components/composites/terminal/ansi.js +1 -2
- package/dist/components/composites/terminal/index.js +1 -1
- package/dist/components/composites/terminal/terminal-model.js +1 -2
- package/dist/components/composites/terminal/terminal.js +2 -3
- package/dist/components/composites/test-results/index.js +1 -1
- package/dist/components/composites/test-results/test-results-model.js +1 -2
- package/dist/components/composites/test-results/test-results.js +2 -3
- package/dist/components/composites/tool/format-tool-value.js +1 -2
- package/dist/components/composites/tool/index.js +1 -1
- package/dist/components/composites/tool/tool.js +1 -2
- package/dist/components/composites/tree/index.js +1 -2
- package/dist/components/composites/tree/tree-navigation.js +1 -2
- package/dist/components/composites/tree/tree.js +1 -2
- package/dist/components/composites/update-dialog/channel-control.js +2 -3
- package/dist/components/composites/update-dialog/update-dialog.js +9 -7
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/index.js +1 -2
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +24 -16
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/composites/workspace-switcher/index.js +1 -1
- package/dist/components/composites/workspace-switcher/workspace-order.js +1 -2
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +1 -2
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.js +28 -21
- package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.js +2 -3
- package/dist/components/conversation/atomic/index.js +1 -2
- package/dist/components/conversation/busy-send-button.js +1 -2
- package/dist/components/conversation/chat-composer.js +1 -2
- package/dist/components/conversation/composer-menu.js +1 -2
- package/dist/components/conversation/conversation-avatar.js +1 -2
- package/dist/components/conversation/conversation-pane.js +1 -2
- package/dist/components/conversation/conversation-surface.js +1 -2
- package/dist/components/conversation/ime-guard.js +1 -2
- package/dist/components/conversation/index.js +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +5 -3
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.js +2 -3
- package/dist/components/conversation/message-row.js +1 -2
- package/dist/components/conversation/paste-preview.js +0 -1
- package/dist/components/conversation/paste-token-editor.js +1 -2
- package/dist/components/conversation/paste-tokens.js +1 -2
- package/dist/components/conversation/scroll-follow-core.js +0 -1
- package/dist/components/conversation/scroll-follow.js +1 -2
- package/dist/components/conversation/thread-panel.js +1 -2
- package/dist/components/conversation/transcript-composition.js +1 -2
- package/dist/components/conversation/transcript-folding.js +1 -2
- package/dist/components/conversation/transcript-grouping.js +1 -2
- package/dist/components/layout/app-shell/app-shell.js +1 -2
- package/dist/components/layout/app-shell/skip-link.js +1 -2
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +1 -2
- package/dist/components/layout/contextual-sidebar/index.js +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +1 -2
- package/dist/components/layout/floating-preview/floating-preview.js +1 -2
- package/dist/components/layout/floating-preview/model.js +1 -2
- package/dist/components/layout/orbit-layout/index.js +1 -2
- package/dist/components/layout/orbit-layout/orbit-layout.js +1 -2
- package/dist/components/layout/page/index.js +1 -2
- package/dist/components/layout/page/page.js +1 -2
- package/dist/components/layout/panel/index.js +1 -2
- package/dist/components/layout/panel/panel.js +1 -2
- package/dist/components/layout/pixel-pane/index.js +1 -2
- package/dist/components/layout/pixel-pane/pixel-pane.js +1 -2
- package/dist/components/layout/pixel-resize-handle/index.js +1 -2
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +1 -2
- package/dist/components/layout/shell-rail/index.js +1 -2
- package/dist/components/layout/shell-rail/shell-rail.js +2 -3
- package/dist/components/layout/shell-top-bar/index.js +1 -2
- package/dist/components/layout/shell-top-bar/shell-top-bar.js +1 -2
- package/dist/components/layout/side-rail/index.js +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js +1 -2
- package/dist/components/layout/side-rail/side-rail.js +2 -3
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -2
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +1 -2
- package/dist/components/layout/split-layout/drop.js +1 -2
- package/dist/components/layout/split-layout/geometry.js +1 -2
- package/dist/components/layout/split-layout/model.js +1 -2
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +1 -2
- package/dist/components/layout/split-layout/resize-controller-core.js +1 -2
- package/dist/components/layout/split-layout/resize-controller-retry-2.js +1 -2
- package/dist/components/layout/split-layout/resize-controller-retry.js +1 -2
- package/dist/components/layout/split-layout/resize-controller.js +1 -2
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +31 -17
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/split-layout/tree.js +1 -2
- package/dist/components/layout/status-bar/index.js +1 -2
- package/dist/components/layout/status-bar/status-bar.js +1 -2
- package/dist/components/layout/top-bar/index.js +1 -2
- package/dist/components/layout/top-bar/top-bar.js +1 -2
- package/dist/components/layout/virtual-window/index.js +1 -2
- package/dist/components/layout/virtual-window/virtual-window.js +1 -2
- package/dist/components/motion/presence.js +1 -2
- package/dist/components/theme/appearance-panel.js +4 -5
- package/dist/components/theme/index.js +2 -2
- package/dist/components/theme/lazy.js +4 -4
- package/dist/components/theme/script.js +1 -2
- package/dist/components/theme/theme-catalogue-source.js +1 -2
- package/dist/components/theme/theme-context.js +1 -2
- package/dist/components/theme/theme-document-core.js +3 -4
- package/dist/components/theme/theme-mode-toggle.js +2 -3
- package/dist/components/theme/theme-persistence.js +4 -5
- package/dist/components/theme/theme-picker.js +1 -2
- package/dist/components/theme/theme-provider-core.js +1 -2
- package/dist/components/theme/theme-provider-lazy.js +2 -3
- package/dist/components/theme/theme-provider-value.js +2 -3
- package/dist/components/theme/theme-provider.js +1 -2
- package/dist/components/theme/theme-script.js +4 -5
- package/dist/components/theme/theme-state-core.js +3 -4
- package/dist/components/theme/theme-toggle.js +1 -2
- package/dist/components/ui/accordion/accordion.js +1 -2
- package/dist/components/ui/accordion/index.js +1 -2
- package/dist/components/ui/alert/alert.js +2 -3
- package/dist/components/ui/alert/index.js +1 -2
- package/dist/components/ui/alert-dialog/alert-dialog.js +2 -3
- package/dist/components/ui/alert-dialog/index.js +1 -2
- package/dist/components/ui/annotation-surface/annotation-surface.js +1 -2
- package/dist/components/ui/annotation-surface/geometry.js +1 -2
- package/dist/components/ui/annotation-surface/index.js +1 -2
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +1 -2
- package/dist/components/ui/aspect-ratio/index.js +1 -2
- package/dist/components/ui/attachment/attachment.js +1 -2
- package/dist/components/ui/attachment/index.js +1 -2
- package/dist/components/ui/avatar/avatar.js +1 -2
- package/dist/components/ui/avatar/index.js +1 -2
- package/dist/components/ui/badge/badge.js +2 -3
- package/dist/components/ui/badge/index.js +1 -2
- package/dist/components/ui/board/board.js +2 -3
- package/dist/components/ui/board/index.js +1 -2
- package/dist/components/ui/breadcrumb/breadcrumb.js +1 -2
- package/dist/components/ui/breadcrumb/index.js +1 -2
- package/dist/components/ui/bubble/bubble.js +1 -2
- package/dist/components/ui/bubble/index.js +1 -2
- package/dist/components/ui/button/button.js +2 -3
- package/dist/components/ui/button/index.js +1 -2
- package/dist/components/ui/button-group/button-group.js +1 -2
- package/dist/components/ui/button-group/index.js +1 -2
- package/dist/components/ui/calendar/calendar.js +1 -2
- package/dist/components/ui/calendar/index.js +1 -2
- package/dist/components/ui/callout/callout.js +2 -3
- package/dist/components/ui/callout/index.js +1 -2
- package/dist/components/ui/card/card.js +2 -3
- package/dist/components/ui/card/index.js +1 -2
- package/dist/components/ui/carousel/carousel.js +1 -2
- package/dist/components/ui/carousel/index.js +1 -2
- package/dist/components/ui/chart/chart-options.js +1 -2
- package/dist/components/ui/chart/chart.js +1 -2
- package/dist/components/ui/checkbox/checkbox.js +2 -3
- package/dist/components/ui/checkbox/index.js +1 -2
- package/dist/components/ui/code-block/code-block.js +2 -3
- package/dist/components/ui/code-block/index.js +1 -2
- package/dist/components/ui/collapsible/collapsible.js +1 -2
- package/dist/components/ui/collapsible/index.js +1 -2
- package/dist/components/ui/combobox/combobox.js +2 -3
- package/dist/components/ui/combobox/value-combobox.js +1 -2
- package/dist/components/ui/command/command.js +3 -4
- package/dist/components/ui/command/index.js +1 -2
- package/dist/components/ui/context-menu/context-menu.js +2 -3
- package/dist/components/ui/context-menu/index.js +1 -2
- package/dist/components/ui/detail-panel/detail-panel.js +2 -3
- package/dist/components/ui/detail-panel/index.js +1 -2
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +3 -3
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/dialog/index.js +1 -2
- package/dist/components/ui/diff-block/diff-block.js +2 -3
- package/dist/components/ui/diff-block/index.js +1 -2
- package/dist/components/ui/drawer/drawer.js +1 -2
- package/dist/components/ui/drawer/index.js +1 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +2 -3
- package/dist/components/ui/dropdown-menu/index.js +1 -2
- package/dist/components/ui/empty/empty-state.js +3 -4
- package/dist/components/ui/empty/empty.js +1 -2
- package/dist/components/ui/entity-icon/entity-icon.js +2 -3
- package/dist/components/ui/entity-icon/index.js +1 -2
- package/dist/components/ui/field/field.js +3 -4
- package/dist/components/ui/field/number-field.js +1 -2
- package/dist/components/ui/hover-card/hover-card.js +2 -3
- package/dist/components/ui/hover-card/index.js +1 -2
- package/dist/components/ui/input/index.js +1 -1
- package/dist/components/ui/input/input-control.js +1 -2
- package/dist/components/ui/input/input.js +1 -2
- package/dist/components/ui/input-group/input-group.js +2 -3
- package/dist/components/ui/input-group/secret-input-group.js +2 -3
- package/dist/components/ui/input-otp/index.js +1 -2
- package/dist/components/ui/input-otp/input-otp.js +1 -2
- package/dist/components/ui/item/index.js +1 -2
- package/dist/components/ui/item/item.js +2 -3
- package/dist/components/ui/kbd/kbd.js +2 -3
- package/dist/components/ui/kbd/platform-modifier.js +1 -2
- package/dist/components/ui/label/index.js +1 -2
- package/dist/components/ui/label/label.js +1 -2
- package/dist/components/ui/marker/index.js +1 -2
- package/dist/components/ui/marker/marker.js +1 -2
- package/dist/components/ui/menubar/index.js +1 -2
- package/dist/components/ui/menubar/menubar.js +2 -3
- package/dist/components/ui/message/cite-ranges.js +1 -2
- package/dist/components/ui/message/index.js +1 -1
- package/dist/components/ui/message/message.js +1 -2
- package/dist/components/ui/message/parse-message-text.js +1 -2
- package/dist/components/ui/modal-dialog/index.js +1 -2
- package/dist/components/ui/modal-dialog/modal-dialog.js +1 -2
- package/dist/components/ui/native-select/index.js +1 -2
- package/dist/components/ui/native-select/native-select.js +2 -3
- package/dist/components/ui/navigation-menu/index.js +1 -2
- package/dist/components/ui/navigation-menu/navigation-menu.js +1 -2
- package/dist/components/ui/pagination/index.js +1 -2
- package/dist/components/ui/pagination/pagination.js +1 -2
- package/dist/components/ui/popover/index.js +1 -2
- package/dist/components/ui/popover/popover.js +2 -3
- package/dist/components/ui/progress/index.js +1 -2
- package/dist/components/ui/progress/progress.js +1 -2
- package/dist/components/ui/questionnaire/index.js +1 -2
- package/dist/components/ui/questionnaire/questionnaire.js +1 -2
- package/dist/components/ui/radio-group/index.js +1 -2
- package/dist/components/ui/radio-group/radio-group.js +2 -3
- package/dist/components/ui/resizable/index.js +1 -2
- package/dist/components/ui/resizable/resizable.js +1 -2
- package/dist/components/ui/scroll-area/index.js +1 -2
- package/dist/components/ui/scroll-area/scroll-area.js +1 -2
- package/dist/components/ui/select/index.js +1 -2
- package/dist/components/ui/select/select.js +2 -3
- package/dist/components/ui/separator/index.js +1 -2
- package/dist/components/ui/separator/separator.js +1 -2
- package/dist/components/ui/sheet/index.js +1 -2
- package/dist/components/ui/sheet/sheet.js +2 -3
- package/dist/components/ui/skeleton/index.js +1 -2
- package/dist/components/ui/skeleton/skeleton.js +1 -2
- package/dist/components/ui/slider/index.js +1 -2
- package/dist/components/ui/slider/slider.js +1 -2
- package/dist/components/ui/spinner/index.js +1 -2
- package/dist/components/ui/spinner/spinner.js +2 -3
- package/dist/components/ui/status-chip/index.js +1 -2
- package/dist/components/ui/status-chip/status-chip.js +2 -3
- package/dist/components/ui/switch/index.js +1 -2
- package/dist/components/ui/switch/switch.js +2 -3
- package/dist/components/ui/table/index.js +1 -2
- package/dist/components/ui/table/table.js +1 -2
- package/dist/components/ui/tabs/index.js +1 -2
- package/dist/components/ui/tabs/tabs.js +1 -2
- package/dist/components/ui/text-link/index.js +1 -2
- package/dist/components/ui/text-link/text-link.js +1 -2
- package/dist/components/ui/textarea/index.js +1 -2
- package/dist/components/ui/textarea/textarea.js +2 -3
- package/dist/components/ui/toast/index.js +1 -2
- package/dist/components/ui/toast/toast.js +1 -2
- package/dist/components/ui/toggle/index.js +1 -2
- package/dist/components/ui/toggle/toggle.js +2 -3
- package/dist/components/ui/toggle-group/index.js +1 -2
- package/dist/components/ui/toggle-group/toggle-group.js +1 -2
- package/dist/components/ui/tooltip/index.js +1 -2
- package/dist/components/ui/tooltip/tooltip.js +2 -3
- package/dist/components/ui/trace/index.js +1 -2
- package/dist/components/ui/trace/trace.js +1 -2
- package/dist/components/ui/typography/index.js +1 -2
- package/dist/components/ui/typography/typography.js +2 -3
- package/dist/index.js +11 -11
- package/dist/lib/accent-presets.js +1 -2
- package/dist/lib/accent-roles.js +1 -2
- package/dist/lib/appearance-font-settings.js +1 -2
- package/dist/lib/clipboard.js +1 -2
- package/dist/lib/cn-tables.generated.js +8 -9
- package/dist/lib/cn-tables.generated.js.map +1 -1
- package/dist/lib/download.js +1 -2
- package/dist/lib/font-catalog.js +0 -1
- package/dist/lib/font-zoom.js +1 -2
- package/dist/lib/form-field.js +1 -2
- package/dist/lib/keyed-rows.js +1 -2
- package/dist/lib/overlay.js +1 -2
- package/dist/lib/preference-store.js +1 -2
- package/dist/lib/safe-script.js +1 -2
- package/dist/lib/theme-accents.js +1 -2
- package/dist/lib/theme-catalogue.js +1 -2
- package/dist/lib/theme-css.js +1 -2
- package/dist/lib/theme-defaults.generated.js +1 -2
- package/dist/lib/theme-defaults.js +1 -2
- package/dist/lib/theme-engine-light.js +1 -2
- package/dist/lib/theme-engine.js +1 -2
- package/dist/lib/theme-projection.js +1 -2
- package/dist/lib/theme-records.js +1 -2
- package/dist/lib/theme-surface.js +1 -2
- package/dist/lib/themes.js +2 -3
- package/dist/lib/tokens.js +1 -2
- package/dist/lib/tooltip-focus-gate.js +1 -2
- package/dist/lib/utils.js +1 -2
- package/dist/lib/variants.js +1 -2
- package/dist/lib/version-notes.js +1 -2
- package/dist/lint.js +1 -2
- package/dist/r/about-dialog.json +1 -1
- package/dist/r/accordion.json +1 -1
- package/dist/r/account-menu.json +1 -1
- package/dist/r/alert.json +1 -1
- package/dist/r/appearance-editor.json +2 -2
- package/dist/r/attachment.json +1 -1
- package/dist/r/breadcrumb.json +1 -1
- package/dist/r/calendar.json +1 -1
- package/dist/r/carousel.json +1 -1
- package/dist/r/catalog-browser.json +1 -1
- package/dist/r/chain-of-thought.json +1 -1
- package/dist/r/chat.json +1 -1
- package/dist/r/checkbox.json +1 -1
- package/dist/r/checkpoint.json +1 -1
- package/dist/r/code-block.json +1 -1
- package/dist/r/combobox.json +1 -1
- package/dist/r/command.json +1 -1
- package/dist/r/confirmation.json +1 -1
- package/dist/r/context-menu.json +1 -1
- package/dist/r/context.json +1 -1
- package/dist/r/conversation.json +1 -1
- package/dist/r/detail-panel.json +1 -1
- package/dist/r/dialog.json +1 -1
- package/dist/r/dropdown-menu.json +1 -1
- package/dist/r/empty.json +1 -1
- package/dist/r/file-tree.json +1 -1
- package/dist/r/floating-preview.json +1 -1
- package/dist/r/help-center.json +1 -1
- package/dist/r/icon-picker.json +1 -1
- package/dist/r/inline-citation.json +1 -1
- package/dist/r/lib.json +2 -2
- package/dist/r/menubar.json +1 -1
- package/dist/r/message-scroller.json +1 -1
- package/dist/r/model-selector.json +1 -1
- package/dist/r/native-select.json +1 -1
- package/dist/r/navigation-menu.json +1 -1
- package/dist/r/pagination.json +1 -1
- package/dist/r/pixel-resize-handle.json +1 -1
- package/dist/r/plan.json +1 -1
- package/dist/r/questionnaire.json +1 -1
- package/dist/r/queue.json +1 -1
- package/dist/r/radio-group.json +1 -1
- package/dist/r/reasoning.json +1 -1
- package/dist/r/registry.json +70 -70
- package/dist/r/resizable.json +1 -1
- package/dist/r/scene-controls.json +1 -1
- package/dist/r/select.json +1 -1
- package/dist/r/settings.json +1 -1
- package/dist/r/sheet.json +1 -1
- package/dist/r/shell-rail.json +1 -1
- package/dist/r/sidebar-nav.json +1 -1
- package/dist/r/sources.json +1 -1
- package/dist/r/spinner.json +1 -1
- package/dist/r/split-layout.json +1 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +4 -5
- package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +1 -1
- package/dist/r/src/components/composites/inline-citation/citation.ts +4 -1
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +1 -1
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +1 -1
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +2 -2
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +23 -12
- package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +10 -5
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +2 -2
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +44 -29
- package/dist/r/src/components/ui/dialog/dialog.tsx +1 -0
- package/dist/r/src/lib/cn-tables.generated.ts +7 -7
- package/dist/r/stack-trace.json +1 -1
- package/dist/r/stat.json +1 -1
- package/dist/r/subagent.json +1 -1
- package/dist/r/task.json +1 -1
- package/dist/r/terminal.json +1 -1
- package/dist/r/test-results.json +1 -1
- package/dist/r/theming.json +2 -2
- package/dist/r/toast.json +1 -1
- package/dist/r/tool.json +1 -1
- package/dist/r/top-bar.json +1 -1
- package/dist/r/trace.json +1 -1
- package/dist/r/tree.json +1 -1
- package/dist/r/update-dialog.json +1 -1
- package/dist/r/workspace-switcher.json +1 -1
- package/dist/vite/source-parser.js +1 -2
- package/dist/vite/tailwind-sources.js +1 -2
- package/dist/vite.js +1 -2
- package/package.json +22 -22
- package/registry.json +70 -70
- package/src/components/composites/appearance-editor/appearance-rows.tsx +4 -5
- package/src/components/composites/appearance-editor/font-settings-group.tsx +1 -1
- package/src/components/composites/inline-citation/citation.ts +4 -1
- package/src/components/composites/model-selector/model-selector.tsx +1 -1
- package/src/components/composites/stack-trace/stack-trace.tsx +1 -1
- package/src/components/composites/update-dialog/update-dialog.tsx +2 -2
- package/src/components/composites/workspace-mark/workspace-mark.tsx +23 -12
- package/src/components/composites/workspace-switcher/workspace-switcher.tsx +10 -5
- package/src/components/conversation/internal/chat-composer-shell.tsx +2 -2
- package/src/components/layout/split-layout/split-layout.tsx +44 -29
- package/src/components/ui/dialog/dialog.tsx +1 -0
- package/src/lib/cn-tables.generated.ts +7 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { menuItem, popoverArrow, topLayerProps } from "../../../lib/overlay.js";
|
|
3
2
|
import { useFormFieldControl } from "../../../lib/form-field.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
import { className, createComponent, delegateEvents, effect, insert, memo, mergeProps, template } from "solid-js/web";
|
|
5
5
|
import { Check, ChevronDown, X } from "lucide-solid";
|
|
6
6
|
import { Show, splitProps } from "solid-js";
|
|
7
7
|
import { Combobox } from "@kobalte/core/combobox";
|
|
8
|
-
|
|
8
|
+
// src/components/ui/combobox/combobox.tsx
|
|
9
9
|
var _tmpl$ = /*#__PURE__*/ template(`<button type=button aria-label="Clear selection">`);
|
|
10
10
|
/**
|
|
11
11
|
* Combobox.
|
|
@@ -138,7 +138,6 @@ function ComboboxClear(props) {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
delegateEvents(["click"]);
|
|
141
|
-
//#endregion
|
|
142
141
|
export { Combobox$1 as Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger };
|
|
143
142
|
|
|
144
143
|
//# sourceMappingURL=combobox.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Combobox, ComboboxContent, ComboboxInput, ComboboxItem } from "./combobox.js";
|
|
2
2
|
import { createComponent } from "solid-js/web";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
|
-
|
|
4
|
+
// src/components/ui/combobox/value-combobox.tsx
|
|
5
5
|
/** A single-choice combobox for a controlled string value and labelled choices. */
|
|
6
6
|
function ValueCombobox(props) {
|
|
7
7
|
const [local, rest] = splitProps(props, [
|
|
@@ -36,7 +36,6 @@ function ValueCombobox(props) {
|
|
|
36
36
|
function textFromLabel(label) {
|
|
37
37
|
return typeof label === "string" || typeof label === "number" ? String(label) : "";
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { ValueCombobox };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=value-combobox.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
|
-
import { menuItem } from "../../../lib/overlay.js";
|
|
3
1
|
import { createDialogFocusRestoration } from "../dialog/dialog.js";
|
|
2
|
+
import { menuItem } from "../../../lib/overlay.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
import { className, createComponent, effect, insert, mergeProps, spread, template, use } from "solid-js/web";
|
|
5
5
|
import { Search } from "lucide-solid";
|
|
6
6
|
import { createEffect, createSignal, splitProps } from "solid-js";
|
|
7
7
|
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandRoot, CommandSeparator, useCommandState } from "cmdk-solid";
|
|
8
8
|
import { Dialog } from "@kobalte/core/dialog";
|
|
9
|
-
|
|
9
|
+
// src/components/ui/command/command.tsx
|
|
10
10
|
var _tmpl$ = /*#__PURE__*/ template(`<div data-slot=command-input-wrapper class="flex h-11 items-center gap-2 border-b border-border px-3">`);
|
|
11
11
|
var _tmpl$2 = /*#__PURE__*/ template(`<div class=contents>`);
|
|
12
12
|
var _tmpl$3 = /*#__PURE__*/ template(`<span>`);
|
|
@@ -228,7 +228,6 @@ function CommandHint(props) {
|
|
|
228
228
|
return _el$5;
|
|
229
229
|
})();
|
|
230
230
|
}
|
|
231
|
-
//#endregion
|
|
232
231
|
export { Command, CommandDialog, CommandEmpty$1 as CommandEmpty, CommandGroup$1 as CommandGroup, CommandHint, CommandInput$1 as CommandInput, CommandItem$1 as CommandItem, CommandList$1 as CommandList, CommandLoading$1 as CommandLoading, CommandSeparator$1 as CommandSeparator, CommandShortcut, CommandStatus };
|
|
233
232
|
|
|
234
233
|
//# sourceMappingURL=command.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus };
|
|
1
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandHint, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, CommandStatus } from "./command.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { destructiveMenuItem, menuItem, menuLabel, menuSeparator, overlayMotion, overlaySurface, topLayerProps } from "../../../lib/overlay.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { createComponent, insert, memo, mergeProps, template } from "solid-js/web";
|
|
4
4
|
import { Check, ChevronRight, Circle } from "lucide-solid";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
6
|
import { ContextMenu } from "@kobalte/core/context-menu";
|
|
7
|
-
|
|
7
|
+
// src/components/ui/context-menu/context-menu.tsx
|
|
8
8
|
var _tmpl$ = /*#__PURE__*/ template(`<span aria-hidden=true class="text-muted-foreground ms-auto font-code text-code tracking-widest">`);
|
|
9
9
|
/**
|
|
10
10
|
* ContextMenu.
|
|
@@ -129,7 +129,6 @@ function ContextMenuSubContent(props) {
|
|
|
129
129
|
} }, rest));
|
|
130
130
|
} });
|
|
131
131
|
}
|
|
132
|
-
//#endregion
|
|
133
132
|
export { ContextMenu$1 as ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
134
133
|
|
|
135
134
|
//# sourceMappingURL=context-menu.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
1
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from "./context-menu.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { Button } from "../button/button.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { className, createComponent, effect, insert, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
4
4
|
import { X } from "lucide-solid";
|
|
5
5
|
import { Show, createUniqueId, splitProps } from "solid-js";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/detail-panel/detail-panel.tsx
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template(`<aside>`);
|
|
8
8
|
var _tmpl$2 = /*#__PURE__*/ template(`<p class="text-2xs font-semibold tracking-wide text-muted-foreground uppercase">`);
|
|
9
9
|
var _tmpl$3 = /*#__PURE__*/ template(`<header><div class=min-w-0><h2 class="truncate text-sm font-semibold text-foreground"></h2></div><div class="flex shrink-0 items-center gap-1">`);
|
|
@@ -126,7 +126,6 @@ function DetailPanelField(props) {
|
|
|
126
126
|
return _el$1;
|
|
127
127
|
})();
|
|
128
128
|
}
|
|
129
|
-
//#endregion
|
|
130
129
|
export { DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection };
|
|
131
130
|
|
|
132
131
|
//# sourceMappingURL=detail-panel.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection };
|
|
1
|
+
export { DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection } from "./detail-panel.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,aAAa,EACvB,OAAO,IAAI,oBAAoB,EAC/B,OAAO,I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,cAAc,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,eAGlF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { dialogSurface, overlayMotion, overlayPositioner, overlayScrim, overlayTitle } from "../../../lib/overlay.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip.js";
|
|
4
4
|
import { className, createComponent, effect, insert, memo, mergeProps, spread, template } from "solid-js/web";
|
|
5
5
|
import { X } from "lucide-solid";
|
|
6
6
|
import { Show, createRenderEffect, onCleanup, splitProps } from "solid-js";
|
|
7
7
|
import { Content, Dialog, Overlay } from "@kobalte/core/dialog";
|
|
8
|
-
|
|
8
|
+
// src/components/ui/dialog/dialog.tsx
|
|
9
9
|
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
10
10
|
var _tmpl$2 = /*#__PURE__*/ template(`<div data-slot=dialog-header>`);
|
|
11
11
|
var _tmpl$3 = /*#__PURE__*/ template(`<div data-slot=dialog-footer>`);
|
|
@@ -189,6 +189,7 @@ function DialogContent(props) {
|
|
|
189
189
|
get as() {
|
|
190
190
|
return Dialog.CloseButton;
|
|
191
191
|
},
|
|
192
|
+
"data-slot": "dialog-corner-close",
|
|
192
193
|
"aria-label": "Close",
|
|
193
194
|
get ["class"]() {
|
|
194
195
|
return cn("absolute top-3.5 end-3.5 rounded-md p-1 text-muted-foreground", "transition-colors ease-out hover:bg-surface-hover hover:text-foreground", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle outline-none");
|
|
@@ -263,7 +264,6 @@ function DialogClose(props) {
|
|
|
263
264
|
return cn("focus-ring", local.class);
|
|
264
265
|
} }, rest));
|
|
265
266
|
}
|
|
266
|
-
//#endregion
|
|
267
267
|
export { Dialog$1 as Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, createDialogFocusRestoration, dialogContentSizes };
|
|
268
268
|
|
|
269
269
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","names":["Dialog","KobalteDialog","Content","KobalteDialogContent","Overlay","KobalteDialogOverlay","X","Accessor","ComponentProps","JSX","createRenderEffect","onCleanup","Show","splitProps","dialogSurface","overlayMotion","overlayPositioner","overlayScrim","overlayTitle","cn","Tooltip","TooltipContent","TooltipTrigger","FocusCycle","content","HTMLElement","opener","openerEligible","closed","focusMovedOutside","closeAutoFocusScheduled","frame","fallbackTimer","observer","MutationObserver","onFocusIn","event","FocusEvent","canRestoreFocus","target","isConnected","document","body","documentElement","closest","matches","getClientRects","length","hasOtherOverlay","querySelectorAll","some","overlay","contains","DialogFocusRestorationOptions","open","restoreFocusRef","onOpenAutoFocus","onCloseAutoFocus","createDialogFocusRestoration","callerOnOpenAutoFocus","callerOnCloseAutoFocus","focusCycles","WeakMap","activeFocusCycle","pendingOpener","pendingOpenerEligible","active","activeElement","finishFocusCycle","cycle","undefined","window","cancelAnimationFrame","clearTimeout","disconnect","removeEventListener","scheduleFocusRestore","requestAnimationFrame","focusIsAvailable","Node","focus","preventScroll","Event","element","currentTarget","openerWasCaptured","focusEvent","set","addEventListener","get","defaultPrevented","observe","attributes","attributeFilter","childList","subtree","queueMicrotask","setTimeout","props","_$createComponent","DialogTrigger","Trigger","DialogPortal","Portal","DialogOverlay","local","rest","_$mergeProps","class","DialogContentProps","closeButton","Element","positioner","size","DialogContentSize","dialogContentSizes","sm","md","lg","xl","const","DialogContent","children","_el$","_tmpl$","_$insert","_$memo","when","as","CloseButton","_$effect","_$className","DialogHeader","band","_el$2","_tmpl$2","_$spread","DialogFooter","_el$3","_tmpl$3","DialogTitle","Title","DialogDescription","Description","DialogCloseButton","DialogClose","Dialog","_$createComponent","KobalteDialog","KobalteDialogOverlay","_$mergeProps","KobalteDialogContent","_$memo","_$className"],"sources":["../../../../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["import {\n Dialog as KobalteDialog,\n Content as KobalteDialogContent,\n Overlay as KobalteDialogOverlay,\n} from '@kobalte/core/dialog'\n// AlertDialog assigns to the shared DialogRoot.Content object, so these named exports stay role-stable.\nimport { X } from 'lucide-solid'\nimport type { Accessor, ComponentProps, JSX } from 'solid-js'\nimport { createRenderEffect, onCleanup, Show, splitProps } from 'solid-js'\nimport {\n dialogSurface,\n overlayMotion,\n overlayPositioner,\n overlayScrim,\n overlayTitle,\n} from '#lib/overlay'\nimport { cn } from '#lib/utils'\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../tooltip'\n\ntype FocusCycle = {\n content: HTMLElement\n opener: HTMLElement | null\n openerEligible: boolean\n closed: boolean\n focusMovedOutside: boolean\n closeAutoFocusScheduled: boolean\n frame?: number\n fallbackTimer?: number\n observer?: MutationObserver\n onFocusIn: (event: FocusEvent) => void\n}\n\nfunction canRestoreFocus(target: HTMLElement): boolean {\n return (\n target.isConnected &&\n target !== document.body &&\n target !== document.documentElement &&\n !target.closest('[inert], [aria-hidden=\"true\"]') &&\n !target.matches(':disabled') &&\n target.getClientRects().length > 0\n )\n}\n\nfunction hasOtherOverlay(content: HTMLElement, opener: HTMLElement): boolean {\n return [...document.querySelectorAll<HTMLElement>('[role=\"dialog\"], [role=\"alertdialog\"]')].some(\n (overlay) =>\n overlay !== content &&\n !content.contains(overlay) &&\n !overlay.contains(opener) &&\n !overlay.closest('[aria-hidden=\"true\"], [inert]') &&\n overlay.getClientRects().length > 0\n )\n}\n\ntype DialogFocusRestorationOptions = {\n open: Accessor<boolean>\n restoreFocusRef?: Accessor<HTMLElement | undefined>\n onOpenAutoFocus?: ComponentProps<typeof KobalteDialogContent>['onOpenAutoFocus']\n onCloseAutoFocus?: ComponentProps<typeof KobalteDialogContent>['onCloseAutoFocus']\n}\n\n/**\n * Adds guarded opener capture and restoration to a Kobalte dialog content.\n * Composed surfaces use this internal helper; it is omitted from the public\n * dialog barrel so the restoration policy stays with the dialog components.\n */\nexport function createDialogFocusRestoration({\n open,\n restoreFocusRef,\n onOpenAutoFocus: callerOnOpenAutoFocus,\n onCloseAutoFocus: callerOnCloseAutoFocus,\n}: DialogFocusRestorationOptions) {\n const focusCycles = new WeakMap<HTMLElement, FocusCycle>()\n let activeFocusCycle: FocusCycle | undefined\n let pendingOpener: HTMLElement | null = null\n let pendingOpenerEligible = false\n\n createRenderEffect(() => {\n if (!open() || typeof document === 'undefined') {\n pendingOpener = null\n pendingOpenerEligible = false\n return\n }\n const active = restoreFocusRef?.() ?? document.activeElement\n pendingOpener = active instanceof HTMLElement ? active : null\n pendingOpenerEligible = active instanceof HTMLElement && canRestoreFocus(active)\n })\n\n const finishFocusCycle = (cycle: FocusCycle) => {\n if (cycle.frame !== undefined) window.cancelAnimationFrame(cycle.frame)\n if (cycle.fallbackTimer !== undefined) window.clearTimeout(cycle.fallbackTimer)\n cycle.observer?.disconnect()\n document.removeEventListener('focusin', cycle.onFocusIn)\n if (activeFocusCycle === cycle) activeFocusCycle = undefined\n }\n\n const scheduleFocusRestore = (cycle: FocusCycle) => {\n if (cycle.frame !== undefined) return\n cycle.frame = window.requestAnimationFrame(() => {\n cycle.frame = undefined\n const opener = cycle.opener\n const active = document.activeElement\n const focusIsAvailable =\n active === document.body ||\n active === document.documentElement ||\n active === cycle.content ||\n (active instanceof Node && cycle.content.contains(active))\n if (\n activeFocusCycle !== cycle ||\n !cycle.closed ||\n cycle.focusMovedOutside ||\n !opener ||\n !opener.isConnected ||\n opener.matches(':disabled') ||\n opener.getClientRects().length === 0 ||\n !focusIsAvailable ||\n hasOtherOverlay(cycle.content, opener)\n ) {\n finishFocusCycle(cycle)\n return\n }\n\n // Inert and aria-hidden are removed by the dialog's containment cleanup.\n // Wait for that cleanup before returning focus to the original control.\n if (opener.closest('[inert], [aria-hidden=\"true\"]')) return\n if (cycle.openerEligible && canRestoreFocus(opener)) {\n opener.focus({ preventScroll: true })\n }\n finishFocusCycle(cycle)\n })\n }\n\n const onOpenAutoFocus = (event: Event) => {\n const element = event.currentTarget\n if (element instanceof HTMLElement) {\n if (activeFocusCycle) finishFocusCycle(activeFocusCycle)\n\n const openerWasCaptured = pendingOpener !== null\n const opener = pendingOpener ?? document.activeElement\n const openerEligible = openerWasCaptured\n ? pendingOpenerEligible\n : opener instanceof HTMLElement && canRestoreFocus(opener)\n pendingOpener = null\n pendingOpenerEligible = false\n const cycle: FocusCycle = {\n content: element,\n opener: opener instanceof HTMLElement ? opener : null,\n openerEligible,\n closed: false,\n focusMovedOutside: false,\n closeAutoFocusScheduled: false,\n onFocusIn: (focusEvent) => {\n const target = focusEvent.target\n if (\n !(target instanceof HTMLElement) ||\n target === document.body ||\n target === document.documentElement\n ) {\n return\n }\n if (\n target === element ||\n element.contains(target) ||\n target === (opener instanceof HTMLElement ? opener : null)\n ) {\n if (!cycle.closed) cycle.focusMovedOutside = false\n return\n }\n cycle.focusMovedOutside = true\n },\n }\n focusCycles.set(element, cycle)\n activeFocusCycle = cycle\n document.addEventListener('focusin', cycle.onFocusIn)\n }\n callerOnOpenAutoFocus?.(event)\n }\n\n const onCloseAutoFocus = (event: Event) => {\n const element = event.currentTarget\n const cycle = element instanceof HTMLElement ? focusCycles.get(element) : undefined\n callerOnCloseAutoFocus?.(event)\n\n if (!cycle) return\n cycle.closed = true\n\n // A caller that prevents Kobalte's close autofocus owns the focus decision.\n if (event.defaultPrevented) {\n finishFocusCycle(cycle)\n return\n }\n\n if (cycle.fallbackTimer !== undefined) {\n window.clearTimeout(cycle.fallbackTimer)\n cycle.fallbackTimer = undefined\n }\n cycle.closeAutoFocusScheduled = true\n cycle.observer = new MutationObserver(() => scheduleFocusRestore(cycle))\n cycle.observer.observe(document.body, {\n attributes: true,\n attributeFilter: ['aria-hidden', 'inert'],\n childList: true,\n subtree: true,\n })\n scheduleFocusRestore(cycle)\n }\n\n onCleanup(() => {\n const cycle = activeFocusCycle\n if (!cycle) return\n cycle.closed = true\n\n // Kobalte dispatches unmount autofocus from a timer. This fallback only\n // releases the scoped focus listener if the content did not dispatch it.\n queueMicrotask(() => {\n if (cycle.closeAutoFocusScheduled) return\n cycle.fallbackTimer = window.setTimeout(() => {\n cycle.fallbackTimer = undefined\n if (!cycle.closeAutoFocusScheduled) finishFocusCycle(cycle)\n }, 0)\n })\n })\n\n return { onOpenAutoFocus, onCloseAutoFocus }\n}\n\n/**\n * Dialog.\n *\n * A modal surface for a decision or a short task. `Dialog.Portal` keeps the\n * panel out of the app's stacking and overflow contexts, `Dialog.Overlay`\n * dims what is behind it, and Kobalte handles the focus trap, the escape key,\n * scroll locking and returning focus to the trigger on close.\n *\n * The close button is part of the content rather than optional, because every\n * modal needs a way out that is not the keyboard. A dialog whose only exit is\n * Escape is a trap for anyone using a pointer.\n */\nexport function Dialog(props: ComponentProps<typeof KobalteDialog>) {\n return <KobalteDialog {...props} />\n}\n\nexport function DialogTrigger(props: ComponentProps<typeof KobalteDialog.Trigger>) {\n return <KobalteDialog.Trigger {...props} />\n}\n\nexport function DialogPortal(props: ComponentProps<typeof KobalteDialog.Portal>) {\n return <KobalteDialog.Portal {...props} />\n}\n\nexport function DialogOverlay(props: ComponentProps<typeof KobalteDialogOverlay>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <KobalteDialogOverlay\n class={cn(\n overlayScrim,\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0',\n local.class\n )}\n {...rest}\n />\n )\n}\n\nexport type DialogContentProps = ComponentProps<typeof KobalteDialogContent> & {\n /**\n * Replaces the default close button. Pass `false` to remove it — only for a\n * dialog that cannot be dismissed (an update that must finish); anything the\n * user can escape from needs the button.\n */\n closeButton?: JSX.Element | false\n /** Use a 1rem inset as the positioner bounds for tall, viewport-filling surfaces. */\n positioner?: 'default' | 'inset'\n /**\n * The panel's maximum width. `md` (32rem) is the default and right for a\n * confirmation or a short form; `sm` (28rem) for a single question; `lg`\n * (42rem) for a picker or a form with two columns; `xl` (48rem) for a\n * multi-step flow that needs a table or a preview beside its fields.\n */\n size?: DialogContentSize\n}\n\n/** The dialog width ladder, so a caller picks a rung instead of a `max-w-*`. */\nexport const dialogContentSizes = {\n sm: 'max-w-md',\n md: 'max-w-lg',\n lg: 'max-w-2xl',\n xl: 'max-w-3xl',\n} as const\n\nexport type DialogContentSize = keyof typeof dialogContentSizes\n\nexport function DialogContent(props: DialogContentProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'children',\n 'closeButton',\n 'positioner',\n 'size',\n ])\n\n return (\n <KobalteDialog.Portal>\n <DialogOverlay />\n <div class={cn(overlayPositioner, local.positioner === 'inset' && 'inset-4 grid-rows-1 p-0')}>\n <KobalteDialogContent\n class={cn(\n dialogSurface,\n overlayMotion,\n 'relative grid w-full gap-4 p-5',\n dialogContentSizes[local.size ?? 'md'],\n local.class\n )}\n {...rest}\n >\n {local.children}\n <Show when={local.closeButton !== false}>\n {/* The corner close is icon-only, so it carries the shared tooltip\n treatment while its accessible name stays \"Close\". */}\n <Tooltip>\n <TooltipTrigger\n as={KobalteDialog.CloseButton}\n aria-label=\"Close\"\n class={cn(\n 'absolute top-3.5 end-3.5 rounded-md p-1 text-muted-foreground',\n 'transition-colors ease-out hover:bg-surface-hover hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle outline-none'\n )}\n >\n {local.closeButton ?? <X class=\"size-4\" />}\n </TooltipTrigger>\n <TooltipContent>Close dialog.</TooltipContent>\n </Tooltip>\n </Show>\n </KobalteDialogContent>\n </div>\n </KobalteDialog.Portal>\n )\n}\n\n/**\n * The dialog's title block. `band` steps it onto the elevation ladder's\n * subtle-fill rung (`--muted`), the same treatment as the sheet parts' band —\n * for the dialog family whose panel anatomy matches a sheet's (a title band\n * over a full-bleed shell, such as a settings dialog) rather than the centred\n * modal's documented flat surface. See `SheetFooter` for the rung's rationale.\n */\nexport function DialogHeader(props: ComponentProps<'div'> & { band?: boolean }) {\n const [local, rest] = splitProps(props, ['class', 'band'])\n return (\n <div\n data-slot=\"dialog-header\"\n class={cn('flex flex-col gap-1.5 pe-6 text-start', { 'bg-muted': local.band }, local.class)}\n {...rest}\n />\n )\n}\n\nexport function DialogFooter(props: ComponentProps<'div'>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <div\n data-slot=\"dialog-footer\"\n class={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', local.class)}\n {...rest}\n />\n )\n}\n\nexport function DialogTitle(props: ComponentProps<typeof KobalteDialog.Title>) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteDialog.Title class={cn(overlayTitle, local.class)} {...rest} />\n}\n\nexport function DialogDescription(props: ComponentProps<typeof KobalteDialog.Description>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <KobalteDialog.Description class={cn('text-muted-foreground text-sm', local.class)} {...rest} />\n )\n}\n\nexport function DialogCloseButton(props: ComponentProps<typeof KobalteDialog.CloseButton>) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteDialog.CloseButton class={cn('focus-ring', local.class)} {...rest} />\n}\n\n/**\n * The close control, unstyled and polymorphic — for a footer's text \"Cancel\" or\n * \"Close\", which is a different control from the corner icon `DialogCloseButton`\n * draws. Take it as `as={Button}` so it carries the button's variants rather than\n * a copied class string.\n */\nexport function DialogClose(props: ComponentProps<typeof KobalteDialog.CloseButton>) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteDialog.CloseButton class={cn('focus-ring', local.class)} {...rest} />\n}\n"],"mappings":";;;;;;;;;;;AAgCA,SAASsC,gBAAgBC,QAA8B;CACrD,OACEA,OAAOC,eACPD,WAAWE,SAASC,QACpBH,WAAWE,SAASE,mBACpB,CAACJ,OAAOK,QAAQ,iCAA+B,KAC/C,CAACL,OAAOM,QAAQ,WAAW,KAC3BN,OAAOO,eAAe,CAAC,CAACC,SAAS;AAErC;AAEA,SAASC,gBAAgBxB,SAAsBE,QAA8B;CAC3E,OAAO,CAAC,GAAGe,SAASQ,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AC;CACjD,OAAAC,gBAAQlG,OAAc4I,OAAKlC,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQxF,GAAGD,cAAcuF,MAAMG,KAAK;CAAC,EAAA,GAAMF,IAAI,CAAA;AAC5E;AAEA,SAAgBoC,kBAAkB5C,OAAyD;CACzF,MAAM,CAACO,OAAOC,QAAQ7F,WAAWqF,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAC,gBACGlG,OAAc8I,aAAWpC,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQxF,GAAG,iCAAiCsF,MAAMG,KAAK;CAAC,EAAA,GAAMF,IAAI,CAAA;AAEhG;AAEA,SAAgBsC,kBAAkB9C,OAAyD;CACzF,MAAM,CAACO,OAAOC,QAAQ7F,WAAWqF,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAC,gBAAQlG,OAAcgI,aAAWtB,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQxF,GAAG,cAAcsF,MAAMG,KAAK;CAAC,EAAA,GAAMF,IAAI,CAAA;AAClF;;;;;;;AAQA,SAAgBuC,YAAY/C,OAAyD;CACnF,MAAM,CAACO,OAAOC,QAAQ7F,WAAWqF,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAC,gBAAQlG,OAAcgI,aAAWtB,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQxF,GAAG,cAAcsF,MAAMG,KAAK;CAAC,EAAA,GAAMF,IAAI,CAAA;AAClF"}
|
|
1
|
+
{"version":3,"file":"dialog.js","names":["Dialog","KobalteDialog","Content","KobalteDialogContent","Overlay","KobalteDialogOverlay","X","Accessor","ComponentProps","JSX","createRenderEffect","onCleanup","Show","splitProps","dialogSurface","overlayMotion","overlayPositioner","overlayScrim","overlayTitle","cn","Tooltip","TooltipContent","TooltipTrigger","FocusCycle","content","HTMLElement","opener","openerEligible","closed","focusMovedOutside","closeAutoFocusScheduled","frame","fallbackTimer","observer","MutationObserver","onFocusIn","event","FocusEvent","canRestoreFocus","target","isConnected","document","body","documentElement","closest","matches","getClientRects","length","hasOtherOverlay","querySelectorAll","some","overlay","contains","DialogFocusRestorationOptions","open","restoreFocusRef","onOpenAutoFocus","onCloseAutoFocus","createDialogFocusRestoration","callerOnOpenAutoFocus","callerOnCloseAutoFocus","focusCycles","WeakMap","activeFocusCycle","pendingOpener","pendingOpenerEligible","active","activeElement","finishFocusCycle","cycle","undefined","window","cancelAnimationFrame","clearTimeout","disconnect","removeEventListener","scheduleFocusRestore","requestAnimationFrame","focusIsAvailable","Node","focus","preventScroll","Event","element","currentTarget","openerWasCaptured","focusEvent","set","addEventListener","get","defaultPrevented","observe","attributes","attributeFilter","childList","subtree","queueMicrotask","setTimeout","props","_$createComponent","DialogTrigger","Trigger","DialogPortal","Portal","DialogOverlay","local","rest","_$mergeProps","class","DialogContentProps","closeButton","Element","positioner","size","DialogContentSize","dialogContentSizes","sm","md","lg","xl","const","DialogContent","children","_el$","_tmpl$","_$insert","_$memo","when","as","CloseButton","_$effect","_$className","DialogHeader","band","_el$2","_tmpl$2","_$spread","DialogFooter","_el$3","_tmpl$3","DialogTitle","Title","DialogDescription","Description","DialogCloseButton","DialogClose","Dialog","_$createComponent","KobalteDialog","KobalteDialogOverlay","_$mergeProps","KobalteDialogContent","_$memo","_$className"],"sources":["../../../../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["import {\n Dialog as KobalteDialog,\n Content as KobalteDialogContent,\n Overlay as KobalteDialogOverlay,\n} from '@kobalte/core/dialog'\n// AlertDialog assigns to the shared DialogRoot.Content object, so these named exports stay role-stable.\nimport { X } from 'lucide-solid'\nimport type { Accessor, ComponentProps, JSX } from 'solid-js'\nimport { createRenderEffect, onCleanup, Show, splitProps } from 'solid-js'\nimport {\n dialogSurface,\n overlayMotion,\n overlayPositioner,\n overlayScrim,\n overlayTitle,\n} from '#lib/overlay'\nimport { cn } from '#lib/utils'\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../tooltip'\n\ntype FocusCycle = {\n content: HTMLElement\n opener: HTMLElement | null\n openerEligible: boolean\n closed: boolean\n focusMovedOutside: boolean\n closeAutoFocusScheduled: boolean\n frame?: number\n fallbackTimer?: number\n observer?: MutationObserver\n onFocusIn: (event: FocusEvent) => void\n}\n\nfunction canRestoreFocus(target: HTMLElement): boolean {\n return (\n target.isConnected &&\n target !== document.body &&\n target !== document.documentElement &&\n !target.closest('[inert], [aria-hidden=\"true\"]') &&\n !target.matches(':disabled') &&\n target.getClientRects().length > 0\n )\n}\n\nfunction hasOtherOverlay(content: HTMLElement, opener: HTMLElement): boolean {\n return [...document.querySelectorAll<HTMLElement>('[role=\"dialog\"], [role=\"alertdialog\"]')].some(\n (overlay) =>\n overlay !== content &&\n !content.contains(overlay) &&\n !overlay.contains(opener) &&\n !overlay.closest('[aria-hidden=\"true\"], [inert]') &&\n overlay.getClientRects().length > 0\n )\n}\n\ntype DialogFocusRestorationOptions = {\n open: Accessor<boolean>\n restoreFocusRef?: Accessor<HTMLElement | undefined>\n onOpenAutoFocus?: ComponentProps<typeof KobalteDialogContent>['onOpenAutoFocus']\n onCloseAutoFocus?: ComponentProps<typeof KobalteDialogContent>['onCloseAutoFocus']\n}\n\n/**\n * Adds guarded opener capture and restoration to a Kobalte dialog content.\n * Composed surfaces use this internal helper; it is omitted from the public\n * dialog barrel so the restoration policy stays with the dialog components.\n */\nexport function createDialogFocusRestoration({\n open,\n restoreFocusRef,\n onOpenAutoFocus: callerOnOpenAutoFocus,\n onCloseAutoFocus: callerOnCloseAutoFocus,\n}: DialogFocusRestorationOptions) {\n const focusCycles = new WeakMap<HTMLElement, FocusCycle>()\n let activeFocusCycle: FocusCycle | undefined\n let pendingOpener: HTMLElement | null = null\n let pendingOpenerEligible = false\n\n createRenderEffect(() => {\n if (!open() || typeof document === 'undefined') {\n pendingOpener = null\n pendingOpenerEligible = false\n return\n }\n const active = restoreFocusRef?.() ?? document.activeElement\n pendingOpener = active instanceof HTMLElement ? active : null\n pendingOpenerEligible = active instanceof HTMLElement && canRestoreFocus(active)\n })\n\n const finishFocusCycle = (cycle: FocusCycle) => {\n if (cycle.frame !== undefined) window.cancelAnimationFrame(cycle.frame)\n if (cycle.fallbackTimer !== undefined) window.clearTimeout(cycle.fallbackTimer)\n cycle.observer?.disconnect()\n document.removeEventListener('focusin', cycle.onFocusIn)\n if (activeFocusCycle === cycle) activeFocusCycle = undefined\n }\n\n const scheduleFocusRestore = (cycle: FocusCycle) => {\n if (cycle.frame !== undefined) return\n cycle.frame = window.requestAnimationFrame(() => {\n cycle.frame = undefined\n const opener = cycle.opener\n const active = document.activeElement\n const focusIsAvailable =\n active === document.body ||\n active === document.documentElement ||\n active === cycle.content ||\n (active instanceof Node && cycle.content.contains(active))\n if (\n activeFocusCycle !== cycle ||\n !cycle.closed ||\n cycle.focusMovedOutside ||\n !opener ||\n !opener.isConnected ||\n opener.matches(':disabled') ||\n opener.getClientRects().length === 0 ||\n !focusIsAvailable ||\n hasOtherOverlay(cycle.content, opener)\n ) {\n finishFocusCycle(cycle)\n return\n }\n\n // Inert and aria-hidden are removed by the dialog's containment cleanup.\n // Wait for that cleanup before returning focus to the original control.\n if (opener.closest('[inert], [aria-hidden=\"true\"]')) return\n if (cycle.openerEligible && canRestoreFocus(opener)) {\n opener.focus({ preventScroll: true })\n }\n finishFocusCycle(cycle)\n })\n }\n\n const onOpenAutoFocus = (event: Event) => {\n const element = event.currentTarget\n if (element instanceof HTMLElement) {\n if (activeFocusCycle) finishFocusCycle(activeFocusCycle)\n\n const openerWasCaptured = pendingOpener !== null\n const opener = pendingOpener ?? document.activeElement\n const openerEligible = openerWasCaptured\n ? pendingOpenerEligible\n : opener instanceof HTMLElement && canRestoreFocus(opener)\n pendingOpener = null\n pendingOpenerEligible = false\n const cycle: FocusCycle = {\n content: element,\n opener: opener instanceof HTMLElement ? opener : null,\n openerEligible,\n closed: false,\n focusMovedOutside: false,\n closeAutoFocusScheduled: false,\n onFocusIn: (focusEvent) => {\n const target = focusEvent.target\n if (\n !(target instanceof HTMLElement) ||\n target === document.body ||\n target === document.documentElement\n ) {\n return\n }\n if (\n target === element ||\n element.contains(target) ||\n target === (opener instanceof HTMLElement ? opener : null)\n ) {\n if (!cycle.closed) cycle.focusMovedOutside = false\n return\n }\n cycle.focusMovedOutside = true\n },\n }\n focusCycles.set(element, cycle)\n activeFocusCycle = cycle\n document.addEventListener('focusin', cycle.onFocusIn)\n }\n callerOnOpenAutoFocus?.(event)\n }\n\n const onCloseAutoFocus = (event: Event) => {\n const element = event.currentTarget\n const cycle = element instanceof HTMLElement ? focusCycles.get(element) : undefined\n callerOnCloseAutoFocus?.(event)\n\n if (!cycle) return\n cycle.closed = true\n\n // A caller that prevents Kobalte's close autofocus owns the focus decision.\n if (event.defaultPrevented) {\n finishFocusCycle(cycle)\n return\n }\n\n if (cycle.fallbackTimer !== undefined) {\n window.clearTimeout(cycle.fallbackTimer)\n cycle.fallbackTimer = undefined\n }\n cycle.closeAutoFocusScheduled = true\n cycle.observer = new MutationObserver(() => scheduleFocusRestore(cycle))\n cycle.observer.observe(document.body, {\n attributes: true,\n attributeFilter: ['aria-hidden', 'inert'],\n childList: true,\n subtree: true,\n })\n scheduleFocusRestore(cycle)\n }\n\n onCleanup(() => {\n const cycle = activeFocusCycle\n if (!cycle) return\n cycle.closed = true\n\n // Kobalte dispatches unmount autofocus from a timer. This fallback only\n // releases the scoped focus listener if the content did not dispatch it.\n queueMicrotask(() => {\n if (cycle.closeAutoFocusScheduled) return\n cycle.fallbackTimer = window.setTimeout(() => {\n cycle.fallbackTimer = undefined\n if (!cycle.closeAutoFocusScheduled) finishFocusCycle(cycle)\n }, 0)\n })\n })\n\n return { onOpenAutoFocus, onCloseAutoFocus }\n}\n\n/**\n * Dialog.\n *\n * A modal surface for a decision or a short task. `Dialog.Portal` keeps the\n * panel out of the app's stacking and overflow contexts, `Dialog.Overlay`\n * dims what is behind it, and Kobalte handles the focus trap, the escape key,\n * scroll locking and returning focus to the trigger on close.\n *\n * The close button is part of the content rather than optional, because every\n * modal needs a way out that is not the keyboard. A dialog whose only exit is\n * Escape is a trap for anyone using a pointer.\n */\nexport function Dialog(props: ComponentProps<typeof KobalteDialog>) {\n return <KobalteDialog {...props} />\n}\n\nexport function DialogTrigger(props: ComponentProps<typeof KobalteDialog.Trigger>) {\n return <KobalteDialog.Trigger {...props} />\n}\n\nexport function DialogPortal(props: ComponentProps<typeof KobalteDialog.Portal>) {\n return <KobalteDialog.Portal {...props} />\n}\n\nexport function DialogOverlay(props: ComponentProps<typeof KobalteDialogOverlay>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <KobalteDialogOverlay\n class={cn(\n overlayScrim,\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0',\n local.class\n )}\n {...rest}\n />\n )\n}\n\nexport type DialogContentProps = ComponentProps<typeof KobalteDialogContent> & {\n /**\n * Replaces the default close button. Pass `false` to remove it — only for a\n * dialog that cannot be dismissed (an update that must finish); anything the\n * user can escape from needs the button.\n */\n closeButton?: JSX.Element | false\n /** Use a 1rem inset as the positioner bounds for tall, viewport-filling surfaces. */\n positioner?: 'default' | 'inset'\n /**\n * The panel's maximum width. `md` (32rem) is the default and right for a\n * confirmation or a short form; `sm` (28rem) for a single question; `lg`\n * (42rem) for a picker or a form with two columns; `xl` (48rem) for a\n * multi-step flow that needs a table or a preview beside its fields.\n */\n size?: DialogContentSize\n}\n\n/** The dialog width ladder, so a caller picks a rung instead of a `max-w-*`. */\nexport const dialogContentSizes = {\n sm: 'max-w-md',\n md: 'max-w-lg',\n lg: 'max-w-2xl',\n xl: 'max-w-3xl',\n} as const\n\nexport type DialogContentSize = keyof typeof dialogContentSizes\n\nexport function DialogContent(props: DialogContentProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'children',\n 'closeButton',\n 'positioner',\n 'size',\n ])\n\n return (\n <KobalteDialog.Portal>\n <DialogOverlay />\n <div class={cn(overlayPositioner, local.positioner === 'inset' && 'inset-4 grid-rows-1 p-0')}>\n <KobalteDialogContent\n class={cn(\n dialogSurface,\n overlayMotion,\n 'relative grid w-full gap-4 p-5',\n dialogContentSizes[local.size ?? 'md'],\n local.class\n )}\n {...rest}\n >\n {local.children}\n <Show when={local.closeButton !== false}>\n {/* The corner close is icon-only, so it carries the shared tooltip\n treatment while its accessible name stays \"Close\". */}\n <Tooltip>\n <TooltipTrigger\n as={KobalteDialog.CloseButton}\n data-slot=\"dialog-corner-close\"\n aria-label=\"Close\"\n class={cn(\n 'absolute top-3.5 end-3.5 rounded-md p-1 text-muted-foreground',\n 'transition-colors ease-out hover:bg-surface-hover hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle outline-none'\n )}\n >\n {local.closeButton ?? <X class=\"size-4\" />}\n </TooltipTrigger>\n <TooltipContent>Close dialog.</TooltipContent>\n </Tooltip>\n </Show>\n </KobalteDialogContent>\n </div>\n </KobalteDialog.Portal>\n )\n}\n\n/**\n * The dialog's title block. `band` steps it onto the elevation ladder's\n * subtle-fill rung (`--muted`), the same treatment as the sheet parts' band —\n * for the dialog family whose panel anatomy matches a sheet's (a title band\n * over a full-bleed shell, such as a settings dialog) rather than the centred\n * modal's documented flat surface. See `SheetFooter` for the rung's rationale.\n */\nexport function DialogHeader(props: ComponentProps<'div'> & { band?: boolean }) {\n const [local, rest] = splitProps(props, ['class', 'band'])\n return (\n <div\n data-slot=\"dialog-header\"\n class={cn('flex flex-col gap-1.5 pe-6 text-start', { 'bg-muted': local.band }, local.class)}\n {...rest}\n />\n )\n}\n\nexport function DialogFooter(props: ComponentProps<'div'>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <div\n data-slot=\"dialog-footer\"\n class={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', local.class)}\n {...rest}\n />\n )\n}\n\nexport function DialogTitle(props: ComponentProps<typeof KobalteDialog.Title>) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteDialog.Title class={cn(overlayTitle, local.class)} {...rest} />\n}\n\nexport function DialogDescription(props: ComponentProps<typeof KobalteDialog.Description>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <KobalteDialog.Description class={cn('text-muted-foreground text-sm', local.class)} {...rest} />\n )\n}\n\nexport function DialogCloseButton(props: ComponentProps<typeof KobalteDialog.CloseButton>) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteDialog.CloseButton class={cn('focus-ring', local.class)} {...rest} />\n}\n\n/**\n * The close control, unstyled and polymorphic — for a footer's text \"Cancel\" or\n * \"Close\", which is a different control from the corner icon `DialogCloseButton`\n * draws. Take it as `as={Button}` so it carries the button's variants rather than\n * a copied class string.\n */\nexport function DialogClose(props: ComponentProps<typeof KobalteDialog.CloseButton>) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteDialog.CloseButton class={cn('focus-ring', local.class)} {...rest} />\n}\n"],"mappings":";;;;;;;;;;;AAgCA,SAASsC,gBAAgBC,QAA8B;CACrD,OACEA,OAAOC,eACPD,WAAWE,SAASC,QACpBH,WAAWE,SAASE,mBACpB,CAACJ,OAAOK,QAAQ,iCAA+B,KAC/C,CAACL,OAAOM,QAAQ,WAAW,KAC3BN,OAAOO,eAAe,CAAC,CAACC,SAAS;AAErC;AAEA,SAASC,gBAAgBxB,SAAsBE,QAA8B;CAC3E,OAAO,CAAC,GAAGe,SAASQ,iBAA8B,2CAAuC,CAAC,CAAC,CAACC,MACzFC,YACCA,YAAY3B,WACZ,CAACA,QAAQ4B,SAASD,OAAO,KACzB,CAACA,QAAQC,SAAS1B,MAAM,KACxB,CAACyB,QAAQP,QAAQ,iCAA+B,KAChDO,QAAQL,eAAe,CAAC,CAACC,SAAS,CACtC;AACF;;;;;;AAcA,SAAgBW,6BAA6B,EAC3CJ,MACAC,iBACAC,iBAAiBG,uBACjBF,kBAAkBG,0BACc;CAChC,MAAMC,8BAAc,IAAIC,QAAiC;CACzD,IAAIC;CACJ,IAAIC,gBAAoC;CACxC,IAAIC,wBAAwB;CAE5BvD,yBAAyB;EACvB,IAAI,CAAC4C,KAAK,KAA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OAAyD;CACzF,MAAM,CAACO,OAAOC,QAAQ7F,WAAWqF,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAC,gBAAQlG,OAAcgI,aAAWtB,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQxF,GAAG,cAAcsF,MAAMG,KAAK;CAAC,EAAA,GAAMF,IAAI,CAAA;AAClF;;;;;;;AAQA,SAAgBuC,YAAY/C,OAAyD;CACnF,MAAM,CAACO,OAAOC,QAAQ7F,WAAWqF,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAC,gBAAQlG,OAAcgI,aAAWtB,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQxF,GAAG,cAAcsF,MAAMG,KAAK;CAAC,EAAA,GAAMF,IAAI,CAAA;AAClF"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
1
|
+
export { Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./dialog.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { cva } from "../../../lib/variants.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { className, createComponent, delegateEvents, effect, insert, memo, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
4
4
|
import { For, Show, createMemo, splitProps } from "solid-js";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/diff-block/diff-block.tsx
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template(`<p class="px-3 py-1 text-xs text-muted-foreground italic">Generating diff…`);
|
|
7
7
|
var _tmpl$2 = /*#__PURE__*/ template(`<div><div class="flex items-center justify-between gap-2 border-b border-border px-3 py-1"><span class="flex min-w-0 items-baseline gap-2"><span class="truncate font-code text-code text-foreground"></span><span class="shrink-0 font-code text-code text-muted-foreground"><span class=text-foreground>+</span> <span class=text-foreground>−</span></span></span></div><div class="scroll-fade overflow-x-auto"tabindex=0 role=region><div class=min-w-fit>`);
|
|
8
8
|
var _tmpl$3 = /*#__PURE__*/ template(`<span class="w-10 shrink-0 pr-2 text-right text-code text-muted-foreground tabular-nums select-none"aria-hidden=true>`);
|
|
@@ -224,7 +224,6 @@ function DiffSummary(props) {
|
|
|
224
224
|
})();
|
|
225
225
|
}
|
|
226
226
|
delegateEvents(["click"]);
|
|
227
|
-
//#endregion
|
|
228
227
|
export { DiffBlock, DiffSummary, diffLineVariants, diffStats, diffTargetPath, parseDiff };
|
|
229
228
|
|
|
230
229
|
//# sourceMappingURL=diff-block.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DiffBlock, DiffSummary, diffLineVariants, diffStats, diffTargetPath, parseDiff };
|
|
1
|
+
export { DiffBlock, DiffSummary, diffLineVariants, diffStats, diffTargetPath, parseDiff } from "./diff-block.js";
|
|
@@ -3,7 +3,7 @@ import { headingVariants } from "../typography/typography.js";
|
|
|
3
3
|
import { className, createComponent, effect, memo, mergeProps, spread, template } from "solid-js/web";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
import DrawerPrimitive from "@corvu/drawer";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/drawer/drawer.tsx
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template(`<span aria-hidden=true>`);
|
|
8
8
|
var _tmpl$2 = /*#__PURE__*/ template(`<div data-slot=drawer-header>`);
|
|
9
9
|
var _tmpl$3 = /*#__PURE__*/ template(`<div data-slot=drawer-body>`);
|
|
@@ -104,7 +104,6 @@ function DrawerFooter(props) {
|
|
|
104
104
|
return _el$4;
|
|
105
105
|
})();
|
|
106
106
|
}
|
|
107
|
-
//#endregion
|
|
108
107
|
export { Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger };
|
|
109
108
|
|
|
110
109
|
//# sourceMappingURL=drawer.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger };
|
|
1
|
+
export { Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger } from "./drawer.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { destructiveMenuItem, menuItem, menuLabel, menuSeparator, menuSwatchTone, overlayMotion, overlaySurface, topLayerProps } from "../../../lib/overlay.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { className, createComponent, effect, insert, memo, mergeProps, spread, template } from "solid-js/web";
|
|
4
4
|
import { Check, ChevronRight, Circle } from "lucide-solid";
|
|
5
5
|
import { Show, createContext, splitProps, useContext } from "solid-js";
|
|
6
6
|
import { DropdownMenu } from "@kobalte/core/dropdown-menu";
|
|
7
|
-
|
|
7
|
+
// src/components/ui/dropdown-menu/dropdown-menu.tsx
|
|
8
8
|
var _tmpl$ = /*#__PURE__*/ template(`<span aria-hidden=true>`);
|
|
9
9
|
var _tmpl$2 = /*#__PURE__*/ template(`<span aria-hidden=true class="text-muted-foreground ms-auto font-code text-code tracking-widest">`);
|
|
10
10
|
var _tmpl$3 = /*#__PURE__*/ template(`<span data-slot=dropdown-menu-shortcut aria-hidden=true>`);
|
|
@@ -323,7 +323,6 @@ function DropdownMenuSubContent(props) {
|
|
|
323
323
|
} }, rest));
|
|
324
324
|
} });
|
|
325
325
|
}
|
|
326
|
-
//#endregion
|
|
327
326
|
export { DropdownMenu$1 as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
328
327
|
|
|
329
328
|
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
1
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ActionButton } from "../../composites/action-button/action-button.js";
|
|
1
2
|
import { cn } from "../../../lib/utils.js";
|
|
2
|
-
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "./empty.js";
|
|
3
3
|
import { Spinner } from "../spinner/spinner.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "./empty.js";
|
|
5
5
|
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
6
6
|
import { Search } from "lucide-solid";
|
|
7
7
|
import { Show, splitProps } from "solid-js";
|
|
8
|
-
|
|
8
|
+
// src/components/ui/empty/empty-state.tsx
|
|
9
9
|
/**
|
|
10
10
|
* A semantic empty, loading, or error state built from the shared empty parts.
|
|
11
11
|
*
|
|
@@ -134,7 +134,6 @@ function EmptyState(props) {
|
|
|
134
134
|
}
|
|
135
135
|
}));
|
|
136
136
|
}
|
|
137
|
-
//#endregion
|
|
138
137
|
export { EmptyState };
|
|
139
138
|
|
|
140
139
|
//# sourceMappingURL=empty-state.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../../lib/utils.js";
|
|
2
2
|
import { mergeProps, spread, template } from "solid-js/web";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
|
-
|
|
4
|
+
// src/components/ui/empty/empty.tsx
|
|
5
5
|
var _tmpl$ = /*#__PURE__*/ template(`<div data-slot=empty>`);
|
|
6
6
|
var _tmpl$2 = /*#__PURE__*/ template(`<div data-slot=empty-header>`);
|
|
7
7
|
var _tmpl$3 = /*#__PURE__*/ template(`<div data-slot=empty-media>`);
|
|
@@ -84,7 +84,6 @@ function EmptyContent(props) {
|
|
|
84
84
|
return _el$6;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
//#endregion
|
|
88
87
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
89
88
|
|
|
90
89
|
//# sourceMappingURL=empty.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { cva } from "../../../lib/variants.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { Dynamic, createComponent, effect, insert, memo, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
4
4
|
import { Show, createSignal, splitProps } from "solid-js";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/entity-icon/entity-icon.tsx
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template(`<img data-slot=entity-icon-image alt aria-hidden=true class="pointer-events-none absolute inset-0 size-full object-contain">`);
|
|
7
7
|
var _tmpl$2 = /*#__PURE__*/ template(`<span class="absolute right-0 bottom-0 translate-x-1/4 translate-y-1/4">`);
|
|
8
8
|
var _tmpl$3 = /*#__PURE__*/ template(`<span data-slot=entity-icon role=img>`);
|
|
@@ -172,7 +172,6 @@ function EntityIcon(props) {
|
|
|
172
172
|
return _el$2;
|
|
173
173
|
})();
|
|
174
174
|
}
|
|
175
|
-
//#endregion
|
|
176
175
|
export { EntityIcon, entityIconVariants, monogram };
|
|
177
176
|
|
|
178
177
|
//# sourceMappingURL=entity-icon.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { EntityIcon, entityIconVariants, monogram };
|
|
1
|
+
export { EntityIcon, entityIconVariants, monogram } from "./entity-icon.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { Label } from "../label/label.js";
|
|
2
|
+
import { FormFieldContext, createFormFieldContext } from "../../../lib/form-field.js";
|
|
1
3
|
import { cn } from "../../../lib/utils.js";
|
|
2
4
|
import { headingVariants } from "../typography/typography.js";
|
|
3
|
-
import { FormFieldContext, createFormFieldContext } from "../../../lib/form-field.js";
|
|
4
|
-
import { Label } from "../label/label.js";
|
|
5
5
|
import { createComponent, insert, memo, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
6
6
|
import { Show, createUniqueId, splitProps } from "solid-js";
|
|
7
7
|
import { TextField } from "@kobalte/core/text-field";
|
|
8
|
-
|
|
8
|
+
// src/components/ui/field/field.tsx
|
|
9
9
|
var _tmpl$ = /*#__PURE__*/ template(`<p class="text-muted-foreground text-sm">`);
|
|
10
10
|
var _tmpl$2 = /*#__PURE__*/ template(`<p role=alert class="text-foreground text-sm">`);
|
|
11
11
|
var _tmpl$3 = /*#__PURE__*/ template(`<div>`);
|
|
@@ -232,7 +232,6 @@ function FieldSeparator(props) {
|
|
|
232
232
|
return _el$7;
|
|
233
233
|
})();
|
|
234
234
|
}
|
|
235
|
-
//#endregion
|
|
236
235
|
export { Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FormField };
|
|
237
236
|
|
|
238
237
|
//# sourceMappingURL=field.js.map
|
|
@@ -2,7 +2,7 @@ import { FormField } from "./field.js";
|
|
|
2
2
|
import { Input } from "../input/input.js";
|
|
3
3
|
import { createComponent } from "solid-js/web";
|
|
4
4
|
import { createEffect, createSignal } from "solid-js";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/field/number-field.tsx
|
|
6
6
|
var text = (value) => value === null ? "" : String(value);
|
|
7
7
|
/**
|
|
8
8
|
* A controlled numeric field that keeps an editable draft while validating
|
|
@@ -87,7 +87,6 @@ function NumberField(props) {
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
//#endregion
|
|
91
90
|
export { NumberField };
|
|
92
91
|
|
|
93
92
|
//# sourceMappingURL=number-field.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { overlaySurface, popoverArrow } from "../../../lib/overlay.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
import { HoverCard } from "@kobalte/core/hover-card";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/hover-card/hover-card.tsx
|
|
7
7
|
/**
|
|
8
8
|
* HoverCard.
|
|
9
9
|
*
|
|
@@ -34,7 +34,6 @@ function HoverCardContent(props) {
|
|
|
34
34
|
} }));
|
|
35
35
|
} });
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
export { HoverCard$1 as HoverCard, HoverCardContent, HoverCardTrigger };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=hover-card.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
1
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from "./hover-card.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../../lib/utils.js";
|
|
2
2
|
import { mergeProps, spread, template } from "solid-js/web";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
|
-
|
|
4
|
+
// src/components/ui/input/input-control.tsx
|
|
5
5
|
var _tmpl$ = /*#__PURE__*/ template(`<input data-slot=input>`);
|
|
6
6
|
function InputControl(props) {
|
|
7
7
|
const [local, rest] = splitProps(props, [
|
|
@@ -26,7 +26,6 @@ function InputControl(props) {
|
|
|
26
26
|
return _el$;
|
|
27
27
|
})();
|
|
28
28
|
}
|
|
29
|
-
//#endregion
|
|
30
29
|
export { InputControl };
|
|
31
30
|
|
|
32
31
|
//# sourceMappingURL=input-control.js.map
|
|
@@ -2,7 +2,7 @@ import { useFormFieldControl } from "../../../lib/form-field.js";
|
|
|
2
2
|
import { InputControl } from "./input-control.js";
|
|
3
3
|
import { createComponent, effect, insert, memo, mergeProps, setAttribute, template } from "solid-js/web";
|
|
4
4
|
import { For, Show, createUniqueId, splitProps } from "solid-js";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/input/input.tsx
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template(`<datalist>`);
|
|
7
7
|
var _tmpl$2 = /*#__PURE__*/ template(`<option>`);
|
|
8
8
|
function Input(props) {
|
|
@@ -77,7 +77,6 @@ function Input(props) {
|
|
|
77
77
|
})()
|
|
78
78
|
})];
|
|
79
79
|
}
|
|
80
|
-
//#endregion
|
|
81
80
|
export { Input };
|
|
82
81
|
|
|
83
82
|
//# sourceMappingURL=input.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { cn } from "../../../lib/utils.js";
|
|
2
1
|
import { useFormFieldControl } from "../../../lib/form-field.js";
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
import { insert, mergeProps, spread, template } from "solid-js/web";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/input-group/input-group.tsx
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template(`<div data-slot=input-group>`);
|
|
7
7
|
var _tmpl$2 = /*#__PURE__*/ template(`<input data-slot=input-group-input>`);
|
|
8
8
|
var _tmpl$3 = /*#__PURE__*/ template(`<span data-slot=input-group-addon>`);
|
|
@@ -120,7 +120,6 @@ function InputGroupText(props) {
|
|
|
120
120
|
return _el$5;
|
|
121
121
|
})();
|
|
122
122
|
}
|
|
123
|
-
//#endregion
|
|
124
123
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText };
|
|
125
124
|
|
|
126
125
|
//# sourceMappingURL=input-group.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FormFieldContext } from "../../../lib/form-field.js";
|
|
2
1
|
import { ActionButton } from "../../composites/action-button/action-button.js";
|
|
2
|
+
import { FormFieldContext } from "../../../lib/form-field.js";
|
|
3
3
|
import { InputGroup, InputGroupInput } from "./input-group.js";
|
|
4
4
|
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
5
5
|
import { Show, splitProps, useContext } from "solid-js";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/input-group/secret-input-group.tsx
|
|
7
7
|
/**
|
|
8
8
|
* A password input with an optional keyboard-accessible clear action.
|
|
9
9
|
*
|
|
@@ -73,7 +73,6 @@ function SecretInputGroup(props) {
|
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
//#endregion
|
|
77
76
|
export { SecretInputGroup };
|
|
78
77
|
|
|
79
78
|
//# sourceMappingURL=secret-input-group.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { InputOtp, InputOtpCaret };
|
|
1
|
+
export { InputOtp, InputOtpCaret } from "./input-otp.js";
|
|
@@ -2,7 +2,7 @@ import { cn } from "../../../lib/utils.js";
|
|
|
2
2
|
import { className, createComponent, effect, insert, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
3
3
|
import { For, Show, splitProps } from "solid-js";
|
|
4
4
|
import OtpField from "@corvu/otp-field";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/input-otp/input-otp.tsx
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template(`<span aria-hidden=true class="text-muted-foreground px-1">–`);
|
|
7
7
|
var _tmpl$2 = /*#__PURE__*/ template(`<span class="flex items-center gap-1.5">`);
|
|
8
8
|
var _tmpl$3 = /*#__PURE__*/ template(`<span>`);
|
|
@@ -86,7 +86,6 @@ function InputOtpCaret(props) {
|
|
|
86
86
|
return _el$4;
|
|
87
87
|
})();
|
|
88
88
|
}
|
|
89
|
-
//#endregion
|
|
90
89
|
export { InputOtp, InputOtpCaret };
|
|
91
90
|
|
|
92
91
|
//# sourceMappingURL=input-otp.js.map
|