@ctrl-ui/react 0.8.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/README.md +70 -0
- package/dist/action-bar.d.ts +44 -0
- package/dist/action-bar.js +89 -0
- package/dist/activity.d.ts +53 -0
- package/dist/activity.js +188 -0
- package/dist/audio-recorder.d.ts +32 -0
- package/dist/audio-recorder.js +235 -0
- package/dist/audio-visualizer.d.ts +12 -0
- package/dist/audio-visualizer.js +58 -0
- package/dist/blocks/chat.d.ts +10 -0
- package/dist/blocks/chat.js +12 -0
- package/dist/blocks/coding-agent.d.ts +61 -0
- package/dist/blocks/coding-agent.js +255 -0
- package/dist/blocks/file-explorer-data.d.ts +57 -0
- package/dist/blocks/file-explorer-data.js +74 -0
- package/dist/blocks/file-explorer.d.ts +24 -0
- package/dist/blocks/file-explorer.js +427 -0
- package/dist/blocks/settings-data.d.ts +36 -0
- package/dist/blocks/settings-data.js +66 -0
- package/dist/blocks/settings.d.ts +19 -0
- package/dist/blocks/settings.js +282 -0
- package/dist/blocks/theme-toggle.d.ts +43 -0
- package/dist/blocks/theme-toggle.js +180 -0
- package/dist/chat-composer-attachment.d.ts +55 -0
- package/dist/chat-composer-attachment.js +267 -0
- package/dist/chat-composer-editor/extensions/mention.d.ts +14 -0
- package/dist/chat-composer-editor/extensions/mention.js +278 -0
- package/dist/chat-composer-editor/ghost.d.ts +5 -0
- package/dist/chat-composer-editor/ghost.js +55 -0
- package/dist/chat-composer-editor/schema.d.ts +6 -0
- package/dist/chat-composer-editor/schema.js +25 -0
- package/dist/chat-composer-editor/serialize.d.ts +6 -0
- package/dist/chat-composer-editor/serialize.js +16 -0
- package/dist/chat-composer-editor/types.d.ts +29 -0
- package/dist/chat-composer-editor/types.js +0 -0
- package/dist/chat-composer-editor.d.ts +9 -0
- package/dist/chat-composer-editor.js +154 -0
- package/dist/chat-composer.d.ts +60 -0
- package/dist/chat-composer.js +134 -0
- package/dist/chat-layout.d.ts +27 -0
- package/dist/chat-layout.js +114 -0
- package/dist/chat-message.d.ts +31 -0
- package/dist/chat-message.js +95 -0
- package/dist/code-block-editor.d.ts +59 -0
- package/dist/code-block-editor.js +250 -0
- package/dist/context-model.d.ts +33 -0
- package/dist/context-model.js +52 -0
- package/dist/context.d.ts +47 -0
- package/dist/context.js +335 -0
- package/dist/control-props.d.ts +28 -0
- package/dist/control-props.js +4 -0
- package/dist/control-variants.d.ts +8 -0
- package/dist/control-variants.js +14 -0
- package/dist/dynamic-notification-glass.d.ts +10 -0
- package/dist/dynamic-notification-glass.js +311 -0
- package/dist/dynamic-notification-liquid.d.ts +24 -0
- package/dist/dynamic-notification-liquid.js +682 -0
- package/dist/dynamic-notification-siri-wave.d.ts +4 -0
- package/dist/dynamic-notification-siri-wave.js +82 -0
- package/dist/dynamic-notification.d.ts +74 -0
- package/dist/dynamic-notification.js +342 -0
- package/dist/environment-variables.d.ts +124 -0
- package/dist/environment-variables.js +492 -0
- package/dist/extensions/create-track-highlight.d.ts +12 -0
- package/dist/extensions/create-track-highlight.js +147 -0
- package/dist/extensions/track-highlight.d.ts +22 -0
- package/dist/extensions/track-highlight.js +52 -0
- package/dist/hooks/use-audio-recorder.d.ts +107 -0
- package/dist/hooks/use-audio-recorder.js +577 -0
- package/dist/hooks/use-chat-composer.d.ts +56 -0
- package/dist/hooks/use-chat-composer.js +63 -0
- package/dist/hooks/use-chat-message.d.ts +28 -0
- package/dist/hooks/use-chat-message.js +24 -0
- package/dist/hooks/use-color-area.d.ts +18 -0
- package/dist/hooks/use-color-area.js +60 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +22 -0
- package/dist/hooks/use-copy-to-clipboard.js +90 -0
- package/dist/hooks/use-dropzone.d.ts +59 -0
- package/dist/hooks/use-dropzone.js +372 -0
- package/dist/hooks/use-dynamic-notification.d.ts +37 -0
- package/dist/hooks/use-dynamic-notification.js +87 -0
- package/dist/hooks/use-environment-variables.d.ts +51 -0
- package/dist/hooks/use-environment-variables.js +188 -0
- package/dist/hooks/use-mobile.d.ts +5 -0
- package/dist/hooks/use-mobile.js +29 -0
- package/dist/hooks/use-textarea-trigger-menu.d.ts +8 -0
- package/dist/hooks/use-textarea-trigger-menu.js +69 -0
- package/dist/hooks/use-trigger-menu.d.ts +49 -0
- package/dist/hooks/use-trigger-menu.js +102 -0
- package/dist/hooks/use-user-ask.d.ts +48 -0
- package/dist/hooks/use-user-ask.js +167 -0
- package/dist/inline-attachment.d.ts +37 -0
- package/dist/inline-attachment.js +192 -0
- package/dist/inline-citation.d.ts +56 -0
- package/dist/inline-citation.js +319 -0
- package/dist/knob-contracts/accordion-knobs.d.ts +5 -0
- package/dist/knob-contracts/accordion-knobs.js +9 -0
- package/dist/knob-contracts/action-bar-knobs.d.ts +5 -0
- package/dist/knob-contracts/action-bar-knobs.js +4 -0
- package/dist/knob-contracts/activity-knobs.d.ts +5 -0
- package/dist/knob-contracts/activity-knobs.js +9 -0
- package/dist/knob-contracts/alert-knobs.d.ts +5 -0
- package/dist/knob-contracts/alert-knobs.js +9 -0
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +5 -0
- package/dist/knob-contracts/audio-recorder-knobs.js +9 -0
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +5 -0
- package/dist/knob-contracts/audio-visualizer-knobs.js +9 -0
- package/dist/knob-contracts/avatar-knobs.d.ts +5 -0
- package/dist/knob-contracts/avatar-knobs.js +9 -0
- package/dist/knob-contracts/badge-knobs.d.ts +5 -0
- package/dist/knob-contracts/badge-knobs.js +9 -0
- package/dist/knob-contracts/button-group-knobs.d.ts +5 -0
- package/dist/knob-contracts/button-group-knobs.js +9 -0
- package/dist/knob-contracts/button-knobs.d.ts +5 -0
- package/dist/knob-contracts/button-knobs.js +25 -0
- package/dist/knob-contracts/calendar-knobs.d.ts +5 -0
- package/dist/knob-contracts/calendar-knobs.js +10 -0
- package/dist/knob-contracts/card-knobs.d.ts +5 -0
- package/dist/knob-contracts/card-knobs.js +11 -0
- package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-composer-attachment-knobs.js +11 -0
- package/dist/knob-contracts/chat-composer-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-composer-knobs.js +18 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-layout-knobs.js +11 -0
- package/dist/knob-contracts/chat-message-knobs.d.ts +5 -0
- package/dist/knob-contracts/chat-message-knobs.js +17 -0
- package/dist/knob-contracts/choice-knobs.d.ts +5 -0
- package/dist/knob-contracts/choice-knobs.js +9 -0
- package/dist/knob-contracts/code-block-editor-knobs.d.ts +5 -0
- package/dist/knob-contracts/code-block-editor-knobs.js +11 -0
- package/dist/knob-contracts/code-diff-knobs.d.ts +5 -0
- package/dist/knob-contracts/code-diff-knobs.js +18 -0
- package/dist/knob-contracts/code-knobs.d.ts +5 -0
- package/dist/knob-contracts/code-knobs.js +11 -0
- package/dist/knob-contracts/collapsible-knobs.d.ts +5 -0
- package/dist/knob-contracts/collapsible-knobs.js +4 -0
- package/dist/knob-contracts/color-picker-knobs.d.ts +5 -0
- package/dist/knob-contracts/color-picker-knobs.js +12 -0
- package/dist/knob-contracts/context-knobs.d.ts +5 -0
- package/dist/knob-contracts/context-knobs.js +13 -0
- package/dist/knob-contracts/dockable-panel-knobs.d.ts +5 -0
- package/dist/knob-contracts/dockable-panel-knobs.js +12 -0
- package/dist/knob-contracts/dropzone-knobs.d.ts +5 -0
- package/dist/knob-contracts/dropzone-knobs.js +11 -0
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +5 -0
- package/dist/knob-contracts/dynamic-notification-knobs.js +18 -0
- package/dist/knob-contracts/empty-knobs.d.ts +5 -0
- package/dist/knob-contracts/empty-knobs.js +12 -0
- package/dist/knob-contracts/environment-variables-knobs.d.ts +5 -0
- package/dist/knob-contracts/environment-variables-knobs.js +11 -0
- package/dist/knob-contracts/field-knobs.d.ts +5 -0
- package/dist/knob-contracts/field-knobs.js +16 -0
- package/dist/knob-contracts/gradient-editor-knobs.d.ts +5 -0
- package/dist/knob-contracts/gradient-editor-knobs.js +13 -0
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +5 -0
- package/dist/knob-contracts/infinite-canvas-knobs.js +13 -0
- package/dist/knob-contracts/inline-attachment-knobs.d.ts +5 -0
- package/dist/knob-contracts/inline-attachment-knobs.js +14 -0
- package/dist/knob-contracts/inline-citation-knobs.d.ts +5 -0
- package/dist/knob-contracts/inline-citation-knobs.js +14 -0
- package/dist/knob-contracts/item-knobs.d.ts +5 -0
- package/dist/knob-contracts/item-knobs.js +10 -0
- package/dist/knob-contracts/kbd-knobs.d.ts +5 -0
- package/dist/knob-contracts/kbd-knobs.js +10 -0
- package/dist/knob-contracts/markdown-block-knobs.d.ts +5 -0
- package/dist/knob-contracts/markdown-block-knobs.js +11 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +5 -0
- package/dist/knob-contracts/markdown-knobs.js +14 -0
- package/dist/knob-contracts/morphing-panel-knobs.d.ts +5 -0
- package/dist/knob-contracts/morphing-panel-knobs.js +11 -0
- package/dist/knob-contracts/pagination-knobs.d.ts +5 -0
- package/dist/knob-contracts/pagination-knobs.js +10 -0
- package/dist/knob-contracts/phone-input-knobs.d.ts +5 -0
- package/dist/knob-contracts/phone-input-knobs.js +10 -0
- package/dist/knob-contracts/popup-knobs.d.ts +5 -0
- package/dist/knob-contracts/popup-knobs.js +21 -0
- package/dist/knob-contracts/range-knobs.d.ts +5 -0
- package/dist/knob-contracts/range-knobs.js +13 -0
- package/dist/knob-contracts/resizable-knobs.d.ts +5 -0
- package/dist/knob-contracts/resizable-knobs.js +14 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +5 -0
- package/dist/knob-contracts/rich-tooltip-knobs.js +13 -0
- package/dist/knob-contracts/scroll-area-knobs.d.ts +5 -0
- package/dist/knob-contracts/scroll-area-knobs.js +8 -0
- package/dist/knob-contracts/separator-knobs.d.ts +5 -0
- package/dist/knob-contracts/separator-knobs.js +4 -0
- package/dist/knob-contracts/sidebar-knobs.d.ts +5 -0
- package/dist/knob-contracts/sidebar-knobs.js +26 -0
- package/dist/knob-contracts/skeleton-knobs.d.ts +5 -0
- package/dist/knob-contracts/skeleton-knobs.js +4 -0
- package/dist/knob-contracts/source-badge-knobs.d.ts +5 -0
- package/dist/knob-contracts/source-badge-knobs.js +11 -0
- package/dist/knob-contracts/spinner-knobs.d.ts +5 -0
- package/dist/knob-contracts/spinner-knobs.js +4 -0
- package/dist/knob-contracts/stepper-knobs.d.ts +5 -0
- package/dist/knob-contracts/stepper-knobs.js +11 -0
- package/dist/knob-contracts/switch-knobs.d.ts +5 -0
- package/dist/knob-contracts/switch-knobs.js +12 -0
- package/dist/knob-contracts/table-knobs.d.ts +5 -0
- package/dist/knob-contracts/table-knobs.js +12 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +5 -0
- package/dist/knob-contracts/table-of-contents-knobs.js +8 -0
- package/dist/knob-contracts/tabs-knobs.d.ts +5 -0
- package/dist/knob-contracts/tabs-knobs.js +16 -0
- package/dist/knob-contracts/task-list-knobs.d.ts +5 -0
- package/dist/knob-contracts/task-list-knobs.js +14 -0
- package/dist/knob-contracts/thread-rail-knobs.d.ts +5 -0
- package/dist/knob-contracts/thread-rail-knobs.js +14 -0
- package/dist/knob-contracts/timeline-knobs.d.ts +5 -0
- package/dist/knob-contracts/timeline-knobs.js +12 -0
- package/dist/knob-contracts/toolbar-knobs.d.ts +5 -0
- package/dist/knob-contracts/toolbar-knobs.js +20 -0
- package/dist/knob-contracts/track-highlight-knobs.d.ts +5 -0
- package/dist/knob-contracts/track-highlight-knobs.js +11 -0
- package/dist/knob-contracts/transcript-divider-knobs.d.ts +5 -0
- package/dist/knob-contracts/transcript-divider-knobs.js +10 -0
- package/dist/knob-contracts/tree-knobs.d.ts +5 -0
- package/dist/knob-contracts/tree-knobs.js +13 -0
- package/dist/knob-contracts/user-ask-knobs.d.ts +5 -0
- package/dist/knob-contracts/user-ask-knobs.js +17 -0
- package/dist/lib/cn.d.ts +5 -0
- package/dist/lib/cn.js +34 -0
- package/dist/lib/code-block-shiki.d.ts +9 -0
- package/dist/lib/code-block-shiki.js +6 -0
- package/dist/lib/code-tokens.d.ts +28 -0
- package/dist/lib/code-tokens.js +160 -0
- package/dist/lib/color.d.ts +72 -0
- package/dist/lib/color.js +490 -0
- package/dist/lib/contrast.d.ts +30 -0
- package/dist/lib/contrast.js +64 -0
- package/dist/lib/diff.d.ts +50 -0
- package/dist/lib/diff.js +315 -0
- package/dist/lib/dropzone-validation.d.ts +66 -0
- package/dist/lib/dropzone-validation.js +228 -0
- package/dist/lib/env-file.d.ts +28 -0
- package/dist/lib/env-file.js +218 -0
- package/dist/lib/format-audio-recorder-duration.d.ts +4 -0
- package/dist/lib/format-audio-recorder-duration.js +7 -0
- package/dist/lib/liquid-glass-optics.d.ts +4 -0
- package/dist/lib/liquid-glass-optics.js +96 -0
- package/dist/lib/phone-input-format.d.ts +6 -0
- package/dist/lib/phone-input-format.js +26 -0
- package/dist/lib/phone-number.d.ts +18 -0
- package/dist/lib/phone-number.js +28 -0
- package/dist/lib/trigger-detect.d.ts +15 -0
- package/dist/lib/trigger-detect.js +77 -0
- package/dist/markdown-block.d.ts +25 -0
- package/dist/markdown-block.js +77 -0
- package/dist/skin.config.d.ts +5 -0
- package/dist/skin.config.js +4 -0
- package/dist/skin.d.ts +69 -0
- package/dist/skin.js +62 -0
- package/dist/source-badge.d.ts +23 -0
- package/dist/source-badge.js +72 -0
- package/dist/styles/chat-composer-editor.css +44 -0
- package/dist/styles/code.css +57 -0
- package/dist/styles/effects.css +126 -0
- package/dist/styles/index.css +81 -0
- package/dist/styles/recipes/accordion.css +87 -0
- package/dist/styles/recipes/action-bar.css +19 -0
- package/dist/styles/recipes/activity.css +129 -0
- package/dist/styles/recipes/alert.css +75 -0
- package/dist/styles/recipes/audio-recorder.css +102 -0
- package/dist/styles/recipes/audio-visualizer.css +90 -0
- package/dist/styles/recipes/avatar.css +52 -0
- package/dist/styles/recipes/badge.css +110 -0
- package/dist/styles/recipes/button-group.css +64 -0
- package/dist/styles/recipes/button.css +305 -0
- package/dist/styles/recipes/calendar.css +152 -0
- package/dist/styles/recipes/card.css +93 -0
- package/dist/styles/recipes/chat-composer-attachment.css +177 -0
- package/dist/styles/recipes/chat-composer.css +195 -0
- package/dist/styles/recipes/chat-layout.css +108 -0
- package/dist/styles/recipes/chat-message.css +160 -0
- package/dist/styles/recipes/choice.css +108 -0
- package/dist/styles/recipes/code-block-editor.css +136 -0
- package/dist/styles/recipes/code-diff.css +256 -0
- package/dist/styles/recipes/code.css +136 -0
- package/dist/styles/recipes/collapsible.css +27 -0
- package/dist/styles/recipes/color-picker-details.css +61 -0
- package/dist/styles/recipes/color-picker-values.css +117 -0
- package/dist/styles/recipes/color-picker.css +158 -0
- package/dist/styles/recipes/context.css +237 -0
- package/dist/styles/recipes/dockable-panel.css +106 -0
- package/dist/styles/recipes/dropzone.css +149 -0
- package/dist/styles/recipes/dynamic-notification-input.css +29 -0
- package/dist/styles/recipes/dynamic-notification-motion.css +298 -0
- package/dist/styles/recipes/dynamic-notification.css +241 -0
- package/dist/styles/recipes/empty.css +96 -0
- package/dist/styles/recipes/environment-variables.css +173 -0
- package/dist/styles/recipes/field-parts.css +148 -0
- package/dist/styles/recipes/field.css +234 -0
- package/dist/styles/recipes/gradient-editor.css +109 -0
- package/dist/styles/recipes/infinite-canvas.css +78 -0
- package/dist/styles/recipes/inline-attachment.css +182 -0
- package/dist/styles/recipes/inline-citation.css +174 -0
- package/dist/styles/recipes/item.css +107 -0
- package/dist/styles/recipes/kbd.css +55 -0
- package/dist/styles/recipes/markdown-block.css +75 -0
- package/dist/styles/recipes/markdown.css +204 -0
- package/dist/styles/recipes/morphing-panel.css +123 -0
- package/dist/styles/recipes/pagination.css +86 -0
- package/dist/styles/recipes/phone-input.css +105 -0
- package/dist/styles/recipes/popup-controls.css +59 -0
- package/dist/styles/recipes/popup-drawer.css +162 -0
- package/dist/styles/recipes/popup-lists.css +198 -0
- package/dist/styles/recipes/popup-motion.css +94 -0
- package/dist/styles/recipes/popup-toast.css +126 -0
- package/dist/styles/recipes/popup.css +396 -0
- package/dist/styles/recipes/range.css +259 -0
- package/dist/styles/recipes/resizable.css +170 -0
- package/dist/styles/recipes/rich-tooltip.css +272 -0
- package/dist/styles/recipes/scroll-area.css +59 -0
- package/dist/styles/recipes/separator.css +12 -0
- package/dist/styles/recipes/sidebar.css +345 -0
- package/dist/styles/recipes/skeleton.css +23 -0
- package/dist/styles/recipes/source-badge.css +77 -0
- package/dist/styles/recipes/spinner.css +33 -0
- package/dist/styles/recipes/stepper.css +178 -0
- package/dist/styles/recipes/switch.css +149 -0
- package/dist/styles/recipes/table-of-contents.css +107 -0
- package/dist/styles/recipes/table.css +124 -0
- package/dist/styles/recipes/tabs.css +235 -0
- package/dist/styles/recipes/task-list.css +146 -0
- package/dist/styles/recipes/thread-rail.css +247 -0
- package/dist/styles/recipes/timeline.css +107 -0
- package/dist/styles/recipes/toolbar.css +260 -0
- package/dist/styles/recipes/track-highlight.css +73 -0
- package/dist/styles/recipes/transcript-divider.css +64 -0
- package/dist/styles/recipes/tree.css +137 -0
- package/dist/styles/recipes/user-ask-details.css +45 -0
- package/dist/styles/recipes/user-ask.css +204 -0
- package/dist/styles/skin-theme.css +137 -0
- package/dist/styles/skin.css +143 -0
- package/dist/styles/theme.css +628 -0
- package/dist/styles/type-scale.css +45 -0
- package/dist/surface-variants.d.ts +6 -0
- package/dist/surface-variants.js +16 -0
- package/dist/task-list.d.ts +34 -0
- package/dist/task-list.js +177 -0
- package/dist/thread-rail.d.ts +52 -0
- package/dist/thread-rail.js +190 -0
- package/dist/transcript-divider.d.ts +15 -0
- package/dist/transcript-divider.js +25 -0
- package/dist/ui/accordion.d.ts +31 -0
- package/dist/ui/accordion.js +60 -0
- package/dist/ui/alert-dialog.d.ts +36 -0
- package/dist/ui/alert-dialog.js +100 -0
- package/dist/ui/alert.d.ts +21 -0
- package/dist/ui/alert.js +36 -0
- package/dist/ui/aspect-ratio.d.ts +8 -0
- package/dist/ui/aspect-ratio.js +17 -0
- package/dist/ui/autocomplete.d.ts +70 -0
- package/dist/ui/autocomplete.js +150 -0
- package/dist/ui/avatar.d.ts +24 -0
- package/dist/ui/avatar.js +44 -0
- package/dist/ui/badge.d.ts +20 -0
- package/dist/ui/badge.js +36 -0
- package/dist/ui/button-group.d.ts +24 -0
- package/dist/ui/button-group.js +45 -0
- package/dist/ui/button.d.ts +36 -0
- package/dist/ui/button.js +104 -0
- package/dist/ui/calendar.d.ts +11 -0
- package/dist/ui/calendar.js +160 -0
- package/dist/ui/card.d.ts +36 -0
- package/dist/ui/card.js +70 -0
- package/dist/ui/checkbox-group.d.ts +11 -0
- package/dist/ui/checkbox-group.js +16 -0
- package/dist/ui/checkbox.d.ts +23 -0
- package/dist/ui/checkbox.js +58 -0
- package/dist/ui/code-diff.d.ts +28 -0
- package/dist/ui/code-diff.js +561 -0
- package/dist/ui/code.d.ts +62 -0
- package/dist/ui/code.js +292 -0
- package/dist/ui/collapsible.d.ts +31 -0
- package/dist/ui/collapsible.js +72 -0
- package/dist/ui/color-picker.d.ts +137 -0
- package/dist/ui/color-picker.js +797 -0
- package/dist/ui/combobox-disabled-selection.d.ts +5 -0
- package/dist/ui/combobox-disabled-selection.js +11 -0
- package/dist/ui/combobox.d.ts +70 -0
- package/dist/ui/combobox.js +194 -0
- package/dist/ui/command.d.ts +44 -0
- package/dist/ui/command.js +166 -0
- package/dist/ui/context-menu.d.ts +86 -0
- package/dist/ui/context-menu.js +202 -0
- package/dist/ui/dialog.d.ts +38 -0
- package/dist/ui/dialog.js +124 -0
- package/dist/ui/dockable-panel-geometry.d.ts +18 -0
- package/dist/ui/dockable-panel-geometry.js +17 -0
- package/dist/ui/dockable-panel.d.ts +58 -0
- package/dist/ui/dockable-panel.js +366 -0
- package/dist/ui/drawer.d.ts +42 -0
- package/dist/ui/drawer.js +182 -0
- package/dist/ui/dropdown-menu.d.ts +46 -0
- package/dist/ui/dropdown-menu.js +89 -0
- package/dist/ui/dropzone.d.ts +66 -0
- package/dist/ui/dropzone.js +311 -0
- package/dist/ui/empty.d.ts +28 -0
- package/dist/ui/empty.js +59 -0
- package/dist/ui/field.d.ts +64 -0
- package/dist/ui/field.js +166 -0
- package/dist/ui/form.d.ts +10 -0
- package/dist/ui/form.js +17 -0
- package/dist/ui/gradient-editor.d.ts +47 -0
- package/dist/ui/gradient-editor.js +301 -0
- package/dist/ui/hover-card.d.ts +25 -0
- package/dist/ui/hover-card.js +46 -0
- package/dist/ui/infinite-canvas.d.ts +40 -0
- package/dist/ui/infinite-canvas.js +278 -0
- package/dist/ui/input-group.d.ts +21 -0
- package/dist/ui/input-group.js +44 -0
- package/dist/ui/input-otp.d.ts +38 -0
- package/dist/ui/input-otp.js +45 -0
- package/dist/ui/input.d.ts +12 -0
- package/dist/ui/input.js +18 -0
- package/dist/ui/item.d.ts +46 -0
- package/dist/ui/item.js +110 -0
- package/dist/ui/kbd.d.ts +12 -0
- package/dist/ui/kbd.js +23 -0
- package/dist/ui/markdown-elements.d.ts +52 -0
- package/dist/ui/markdown-elements.js +211 -0
- package/dist/ui/markdown.d.ts +14 -0
- package/dist/ui/markdown.js +31 -0
- package/dist/ui/menubar.d.ts +74 -0
- package/dist/ui/menubar.js +162 -0
- package/dist/ui/meter.d.ts +34 -0
- package/dist/ui/meter.js +57 -0
- package/dist/ui/morphing-panel.d.ts +24 -0
- package/dist/ui/morphing-panel.js +87 -0
- package/dist/ui/native-select.d.ts +12 -0
- package/dist/ui/native-select.js +41 -0
- package/dist/ui/navigation-menu.d.ts +51 -0
- package/dist/ui/navigation-menu.js +135 -0
- package/dist/ui/number-field.d.ts +72 -0
- package/dist/ui/number-field.js +124 -0
- package/dist/ui/pagination.d.ts +26 -0
- package/dist/ui/pagination.js +77 -0
- package/dist/ui/phone-input.d.ts +30 -0
- package/dist/ui/phone-input.js +263 -0
- package/dist/ui/popover.d.ts +34 -0
- package/dist/ui/popover.js +87 -0
- package/dist/ui/progress.d.ts +34 -0
- package/dist/ui/progress.js +57 -0
- package/dist/ui/radio-group.d.ts +29 -0
- package/dist/ui/radio-group.js +37 -0
- package/dist/ui/resizable.d.ts +56 -0
- package/dist/ui/resizable.js +82 -0
- package/dist/ui/responsive-dialog.d.ts +18 -0
- package/dist/ui/responsive-dialog.js +121 -0
- package/dist/ui/rich-tooltip-tour.d.ts +12 -0
- package/dist/ui/rich-tooltip-tour.js +20 -0
- package/dist/ui/rich-tooltip.d.ts +83 -0
- package/dist/ui/rich-tooltip.js +331 -0
- package/dist/ui/scroll-area.d.ts +25 -0
- package/dist/ui/scroll-area.js +93 -0
- package/dist/ui/select.d.ts +44 -0
- package/dist/ui/select.js +124 -0
- package/dist/ui/separator.d.ts +9 -0
- package/dist/ui/separator.js +16 -0
- package/dist/ui/sheet.d.ts +25 -0
- package/dist/ui/sheet.js +76 -0
- package/dist/ui/sidebar.d.ts +88 -0
- package/dist/ui/sidebar.js +362 -0
- package/dist/ui/skeleton.d.ts +8 -0
- package/dist/ui/skeleton.js +13 -0
- package/dist/ui/slider.d.ts +24 -0
- package/dist/ui/slider.js +114 -0
- package/dist/ui/spinner.d.ts +12 -0
- package/dist/ui/spinner.js +26 -0
- package/dist/ui/stepper.d.ts +58 -0
- package/dist/ui/stepper.js +232 -0
- package/dist/ui/switch.d.ts +26 -0
- package/dist/ui/switch.js +71 -0
- package/dist/ui/table-of-contents.d.ts +22 -0
- package/dist/ui/table-of-contents.js +181 -0
- package/dist/ui/table.d.ts +37 -0
- package/dist/ui/table.js +83 -0
- package/dist/ui/tabs.d.ts +36 -0
- package/dist/ui/tabs.js +127 -0
- package/dist/ui/textarea.d.ts +9 -0
- package/dist/ui/textarea.js +16 -0
- package/dist/ui/timeline.d.ts +40 -0
- package/dist/ui/timeline.js +80 -0
- package/dist/ui/toast.d.ts +28 -0
- package/dist/ui/toast.js +132 -0
- package/dist/ui/toggle.d.ts +20 -0
- package/dist/ui/toggle.js +71 -0
- package/dist/ui/toolbar.d.ts +40 -0
- package/dist/ui/toolbar.js +72 -0
- package/dist/ui/tooltip.d.ts +27 -0
- package/dist/ui/tooltip.js +93 -0
- package/dist/ui/tree.d.ts +56 -0
- package/dist/ui/tree.js +438 -0
- package/dist/ui/trigger-menu.d.ts +46 -0
- package/dist/ui/trigger-menu.js +116 -0
- package/dist/user-ask.d.ts +50 -0
- package/dist/user-ask.js +398 -0
- package/package.json +115 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "./lib/cn.js";
|
|
3
|
+
import { Button } from "./ui/button.js";
|
|
4
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover.js";
|
|
5
|
+
import { SourceFavicon, sourceHostname } from "./source-badge.js";
|
|
6
|
+
import { createContext, useContext, useRef, useState } from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { ArrowLeft, ArrowRight, ExternalLink } from "lucide-react";
|
|
9
|
+
//#region src/inline-citation.tsx
|
|
10
|
+
const InlineCitationContext = createContext(null);
|
|
11
|
+
function useInlineCitation() {
|
|
12
|
+
const context = useContext(InlineCitationContext);
|
|
13
|
+
if (!context) throw new Error("InlineCitation parts must be rendered inside <InlineCitation>.");
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function supportsCrossSlide() {
|
|
17
|
+
return typeof CSS !== "undefined" && CSS.supports("(anchor-name: --aui-slide-panel) and (anchor-scope: --aui-slide-panel)");
|
|
18
|
+
}
|
|
19
|
+
function InlineCitation({ sources, open, defaultOpen, onOpenChange, className, children, ...props }) {
|
|
20
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
21
|
+
const [entering, setEntering] = useState(null);
|
|
22
|
+
const [exiting, setExiting] = useState(null);
|
|
23
|
+
const sourceRef = useRef(null);
|
|
24
|
+
const exitCount = useRef(0);
|
|
25
|
+
const clearEntering = useRef(0);
|
|
26
|
+
const lastIndex = Math.max(0, sources.length - 1);
|
|
27
|
+
const currentIndex = Math.min(selectedIndex, lastIndex);
|
|
28
|
+
const currentSource = sources[currentIndex];
|
|
29
|
+
const hasPrevious = currentIndex > 0;
|
|
30
|
+
const hasNext = currentIndex < lastIndex;
|
|
31
|
+
const move = (step) => {
|
|
32
|
+
const nextIndex = Math.min(Math.max(currentIndex + step, 0), lastIndex);
|
|
33
|
+
if (nextIndex === currentIndex) return;
|
|
34
|
+
const direction = step > 0 ? "right" : "left";
|
|
35
|
+
const leaving = sources[currentIndex];
|
|
36
|
+
setSelectedIndex(nextIndex);
|
|
37
|
+
setEntering({
|
|
38
|
+
direction,
|
|
39
|
+
previousHeight: sourceRef.current?.getBoundingClientRect().height
|
|
40
|
+
});
|
|
41
|
+
if (leaving && supportsCrossSlide()) {
|
|
42
|
+
exitCount.current += 1;
|
|
43
|
+
setExiting({
|
|
44
|
+
id: exitCount.current,
|
|
45
|
+
direction,
|
|
46
|
+
source: leaving
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
cancelAnimationFrame(clearEntering.current);
|
|
50
|
+
clearEntering.current = requestAnimationFrame(() => {
|
|
51
|
+
clearEntering.current = requestAnimationFrame(() => setEntering(null));
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const handleOpenChange = (...args) => {
|
|
55
|
+
const [nextOpen] = args;
|
|
56
|
+
if (!nextOpen) {
|
|
57
|
+
setEntering(null);
|
|
58
|
+
setExiting(null);
|
|
59
|
+
}
|
|
60
|
+
onOpenChange?.(...args);
|
|
61
|
+
};
|
|
62
|
+
const context = {
|
|
63
|
+
currentIndex,
|
|
64
|
+
currentSource,
|
|
65
|
+
entering,
|
|
66
|
+
exiting,
|
|
67
|
+
endExit: (id) => setExiting((current) => current?.id === id ? null : current),
|
|
68
|
+
hasNext,
|
|
69
|
+
hasPrevious,
|
|
70
|
+
next: () => move(1),
|
|
71
|
+
previous: () => move(-1),
|
|
72
|
+
sourceRef,
|
|
73
|
+
sources
|
|
74
|
+
};
|
|
75
|
+
return /* @__PURE__ */ jsx(InlineCitationContext.Provider, {
|
|
76
|
+
value: context,
|
|
77
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
78
|
+
"data-control-ui": "inline-citation",
|
|
79
|
+
"data-control-family": "inline-citation",
|
|
80
|
+
"data-slot": "root",
|
|
81
|
+
...props,
|
|
82
|
+
className: cn("not-prose inline-flex align-baseline", className),
|
|
83
|
+
children: /* @__PURE__ */ jsx(Popover, {
|
|
84
|
+
open,
|
|
85
|
+
defaultOpen,
|
|
86
|
+
onOpenChange: handleOpenChange,
|
|
87
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(InlineCitationTrigger, {}), /* @__PURE__ */ jsx(InlineCitationContent, {})] })
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function InlineCitationTrigger({ "aria-label": ariaLabel, className, children, disabled, render, ...props }) {
|
|
93
|
+
const { sources } = useInlineCitation();
|
|
94
|
+
const firstSource = sources[0];
|
|
95
|
+
const sourceCount = sources.length;
|
|
96
|
+
const accessibleLabel = sourceCount === 1 ? "View 1 source" : `View ${sourceCount} sources`;
|
|
97
|
+
return /* @__PURE__ */ jsx(PopoverTrigger, {
|
|
98
|
+
render: render ?? /* @__PURE__ */ jsx("button", { type: "button" }),
|
|
99
|
+
"aria-label": ariaLabel ?? accessibleLabel,
|
|
100
|
+
...props,
|
|
101
|
+
disabled: disabled || !firstSource,
|
|
102
|
+
"data-control-ui": "inline-citation",
|
|
103
|
+
"data-control-family": "inline-citation",
|
|
104
|
+
"data-slot": "trigger",
|
|
105
|
+
className: cn("inline-flex items-center align-baseline", className),
|
|
106
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(InlineCitationFavicons, {}), /* @__PURE__ */ jsx(InlineCitationLabel, {})] })
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function InlineCitationFavicons({ limit = 3, className, ...props }) {
|
|
110
|
+
const { sources } = useInlineCitation();
|
|
111
|
+
return /* @__PURE__ */ jsx("span", {
|
|
112
|
+
"aria-hidden": "true",
|
|
113
|
+
"data-control-ui": "inline-citation",
|
|
114
|
+
"data-control-family": "inline-citation",
|
|
115
|
+
"data-slot": "favicons",
|
|
116
|
+
...props,
|
|
117
|
+
className: cn("flex shrink-0 -space-x-1", className),
|
|
118
|
+
children: sources.slice(0, limit).map((source) => /* @__PURE__ */ jsx(SourceFavicon, {
|
|
119
|
+
"data-control-ui": "inline-citation",
|
|
120
|
+
"data-slot": "favicon",
|
|
121
|
+
href: source.href,
|
|
122
|
+
faviconSrc: source.faviconSrc
|
|
123
|
+
}, source.href))
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function InlineCitationLabel({ className, children, ...props }) {
|
|
127
|
+
const { sources } = useInlineCitation();
|
|
128
|
+
const firstSource = sources[0];
|
|
129
|
+
const additionalSourceCount = Math.max(0, sources.length - 1);
|
|
130
|
+
return /* @__PURE__ */ jsx("span", {
|
|
131
|
+
"data-control-ui": "inline-citation",
|
|
132
|
+
"data-control-family": "inline-citation",
|
|
133
|
+
"data-slot": "label",
|
|
134
|
+
...props,
|
|
135
|
+
className: cn("min-w-0 truncate", className),
|
|
136
|
+
children: children ?? (firstSource ? `${sourceHostname(firstSource.href)}${additionalSourceCount > 0 ? ` +${additionalSourceCount}` : ""}` : "No sources")
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function InlineCitationContent({ className, children, align = "start", padding = "none", ...props }) {
|
|
140
|
+
return /* @__PURE__ */ jsx(PopoverContent, {
|
|
141
|
+
align,
|
|
142
|
+
padding,
|
|
143
|
+
...props,
|
|
144
|
+
"data-control-ui": "inline-citation",
|
|
145
|
+
"data-slot": "content",
|
|
146
|
+
"data-slide": "scope",
|
|
147
|
+
className: cn("w-[min(24rem,calc(100vw-2rem))] overflow-hidden", className),
|
|
148
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(InlineCitationNavigation, {}), /* @__PURE__ */ jsx(InlineCitationSource, {})] })
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function InlineCitationNavigation({ className, children, ...props }) {
|
|
152
|
+
return /* @__PURE__ */ jsx("div", {
|
|
153
|
+
"data-control-ui": "inline-citation",
|
|
154
|
+
"data-control-family": "inline-citation",
|
|
155
|
+
"data-slot": "navigation",
|
|
156
|
+
...props,
|
|
157
|
+
className: cn("flex items-center", className),
|
|
158
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
159
|
+
/* @__PURE__ */ jsx(InlineCitationPrevious, {}),
|
|
160
|
+
/* @__PURE__ */ jsx(InlineCitationNext, {}),
|
|
161
|
+
/* @__PURE__ */ jsx(InlineCitationPosition, {})
|
|
162
|
+
] })
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function InlineCitationPrevious({ className, children, disabled, onClick, ...props }) {
|
|
166
|
+
const { hasPrevious, previous } = useInlineCitation();
|
|
167
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
168
|
+
"aria-label": "Previous source",
|
|
169
|
+
size: "xs",
|
|
170
|
+
variant: "quiet",
|
|
171
|
+
iconOnly: true,
|
|
172
|
+
...props,
|
|
173
|
+
disabled: disabled || !hasPrevious,
|
|
174
|
+
onClick: (event) => {
|
|
175
|
+
onClick?.(event);
|
|
176
|
+
if (!event.defaultPrevented) previous();
|
|
177
|
+
},
|
|
178
|
+
"data-control-ui": "inline-citation",
|
|
179
|
+
"data-slot": "previous",
|
|
180
|
+
className,
|
|
181
|
+
children: children ?? /* @__PURE__ */ jsx(ArrowLeft, { "aria-hidden": "true" })
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function InlineCitationNext({ className, children, disabled, onClick, ...props }) {
|
|
185
|
+
const { hasNext, next } = useInlineCitation();
|
|
186
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
187
|
+
"aria-label": "Next source",
|
|
188
|
+
size: "xs",
|
|
189
|
+
variant: "quiet",
|
|
190
|
+
iconOnly: true,
|
|
191
|
+
...props,
|
|
192
|
+
disabled: disabled || !hasNext,
|
|
193
|
+
onClick: (event) => {
|
|
194
|
+
onClick?.(event);
|
|
195
|
+
if (!event.defaultPrevented) next();
|
|
196
|
+
},
|
|
197
|
+
"data-control-ui": "inline-citation",
|
|
198
|
+
"data-slot": "next",
|
|
199
|
+
className,
|
|
200
|
+
children: children ?? /* @__PURE__ */ jsx(ArrowRight, { "aria-hidden": "true" })
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
function InlineCitationPosition({ className, children, ...props }) {
|
|
204
|
+
const { currentIndex, sources } = useInlineCitation();
|
|
205
|
+
return /* @__PURE__ */ jsx("span", {
|
|
206
|
+
role: "status",
|
|
207
|
+
"aria-live": "polite",
|
|
208
|
+
"aria-atomic": "true",
|
|
209
|
+
"data-control-ui": "inline-citation",
|
|
210
|
+
"data-control-family": "inline-citation",
|
|
211
|
+
"data-slot": "position",
|
|
212
|
+
...props,
|
|
213
|
+
className: cn(className),
|
|
214
|
+
children: children ?? `${sources.length === 0 ? 0 : currentIndex + 1}/${sources.length}`
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function InlineCitationSourceDetails({ source }) {
|
|
218
|
+
const hostname = sourceHostname(source.href);
|
|
219
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
220
|
+
/* @__PURE__ */ jsxs("div", {
|
|
221
|
+
"data-control-ui": "inline-citation",
|
|
222
|
+
"data-control-family": "inline-citation",
|
|
223
|
+
"data-slot": "source-header",
|
|
224
|
+
className: "flex items-center",
|
|
225
|
+
children: [/* @__PURE__ */ jsx(SourceFavicon, {
|
|
226
|
+
"data-control-ui": "inline-citation",
|
|
227
|
+
"data-slot": "source-favicon",
|
|
228
|
+
href: source.href,
|
|
229
|
+
faviconSrc: source.faviconSrc
|
|
230
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
231
|
+
"data-control-ui": "inline-citation",
|
|
232
|
+
"data-control-family": "inline-citation",
|
|
233
|
+
"data-slot": "source-hostname",
|
|
234
|
+
className: "min-w-0 truncate",
|
|
235
|
+
children: hostname
|
|
236
|
+
})]
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ jsxs("a", {
|
|
239
|
+
"data-control-ui": "inline-citation",
|
|
240
|
+
"data-control-family": "inline-citation",
|
|
241
|
+
"data-slot": "source-title",
|
|
242
|
+
href: source.href,
|
|
243
|
+
target: "_blank",
|
|
244
|
+
rel: "noreferrer noopener",
|
|
245
|
+
className: "group/source-title flex min-w-0 items-start",
|
|
246
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
247
|
+
className: "min-w-0 flex-1 wrap-anywhere",
|
|
248
|
+
children: source.title ?? hostname
|
|
249
|
+
}), /* @__PURE__ */ jsx(ExternalLink, {
|
|
250
|
+
"data-control-ui": "inline-citation",
|
|
251
|
+
"data-control-family": "inline-citation",
|
|
252
|
+
"data-slot": "source-external-icon",
|
|
253
|
+
"aria-hidden": "true",
|
|
254
|
+
className: "shrink-0"
|
|
255
|
+
})]
|
|
256
|
+
}),
|
|
257
|
+
source.description ? /* @__PURE__ */ jsx("p", {
|
|
258
|
+
"data-control-ui": "inline-citation",
|
|
259
|
+
"data-control-family": "inline-citation",
|
|
260
|
+
"data-slot": "source-description",
|
|
261
|
+
className: "line-clamp-3",
|
|
262
|
+
children: source.description
|
|
263
|
+
}) : null,
|
|
264
|
+
source.quote ? /* @__PURE__ */ jsxs("blockquote", {
|
|
265
|
+
"data-control-ui": "inline-citation",
|
|
266
|
+
"data-control-family": "inline-citation",
|
|
267
|
+
"data-slot": "source-quote",
|
|
268
|
+
children: [
|
|
269
|
+
"“",
|
|
270
|
+
source.quote,
|
|
271
|
+
"”"
|
|
272
|
+
]
|
|
273
|
+
}) : null
|
|
274
|
+
] });
|
|
275
|
+
}
|
|
276
|
+
function InlineCitationSource({ source: sourceProp, className, children, style, ref, ...props }) {
|
|
277
|
+
const { currentIndex, currentSource, entering, exiting, endExit, sourceRef } = useInlineCitation();
|
|
278
|
+
const source = sourceProp ?? currentSource;
|
|
279
|
+
const slides = !sourceProp && !children;
|
|
280
|
+
const panelClassName = cn("grid", className);
|
|
281
|
+
const sourceStyle = style;
|
|
282
|
+
const enteringStyle = slides && entering?.previousHeight ? {
|
|
283
|
+
"--aui-slide-prev-height": `${entering.previousHeight}px`,
|
|
284
|
+
...sourceStyle
|
|
285
|
+
} : sourceStyle;
|
|
286
|
+
if (!source) return null;
|
|
287
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("article", {
|
|
288
|
+
"data-control-ui": "inline-citation",
|
|
289
|
+
"data-control-family": "inline-citation",
|
|
290
|
+
"data-slot": "source",
|
|
291
|
+
"data-slide": "panel",
|
|
292
|
+
"data-activation-direction": slides ? entering?.direction : void 0,
|
|
293
|
+
"data-starting-style": slides && entering ? "" : void 0,
|
|
294
|
+
...props,
|
|
295
|
+
ref: (node) => {
|
|
296
|
+
sourceRef.current = node;
|
|
297
|
+
if (typeof ref === "function") ref(node);
|
|
298
|
+
else if (ref) ref.current = node;
|
|
299
|
+
},
|
|
300
|
+
style: enteringStyle,
|
|
301
|
+
className: panelClassName,
|
|
302
|
+
children: children ?? /* @__PURE__ */ jsx(InlineCitationSourceDetails, { source })
|
|
303
|
+
}, `source-${currentIndex}`), slides && exiting ? /* @__PURE__ */ jsx("article", {
|
|
304
|
+
"aria-hidden": "true",
|
|
305
|
+
inert: true,
|
|
306
|
+
"data-control-ui": "inline-citation",
|
|
307
|
+
"data-control-family": "inline-citation",
|
|
308
|
+
"data-slot": "source",
|
|
309
|
+
"data-slide": "panel",
|
|
310
|
+
"data-ending-style": "",
|
|
311
|
+
"data-activation-direction": exiting.direction,
|
|
312
|
+
onAnimationEnd: () => endExit(exiting.id),
|
|
313
|
+
style: sourceStyle,
|
|
314
|
+
className: panelClassName,
|
|
315
|
+
children: /* @__PURE__ */ jsx(InlineCitationSourceDetails, { source: exiting.source })
|
|
316
|
+
}, `exit-${exiting.id}`) : null] });
|
|
317
|
+
}
|
|
318
|
+
//#endregion
|
|
319
|
+
export { InlineCitation, InlineCitationContent, InlineCitationFavicons, InlineCitationLabel, InlineCitationNavigation, InlineCitationNext, InlineCitationPosition, InlineCitationPrevious, InlineCitationSource, InlineCitationTrigger };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/accordion-knobs.d.ts
|
|
2
|
+
declare const accordionKnobs: readonly ["--cui-accordion-item-border-color", "--cui-accordion-trigger-foreground", "--cui-accordion-trigger-hover-foreground", "--cui-accordion-icon-foreground"];
|
|
3
|
+
type AccordionKnobStyle = Partial<Record<(typeof accordionKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { AccordionKnobStyle, accordionKnobs };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/knob-contracts/accordion-knobs.ts
|
|
2
|
+
const accordionKnobs = [
|
|
3
|
+
"--cui-accordion-item-border-color",
|
|
4
|
+
"--cui-accordion-trigger-foreground",
|
|
5
|
+
"--cui-accordion-trigger-hover-foreground",
|
|
6
|
+
"--cui-accordion-icon-foreground"
|
|
7
|
+
];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { accordionKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/activity-knobs.d.ts
|
|
2
|
+
declare const activityKnobs: readonly ["--cui-activity-row-foreground", "--cui-activity-trigger-radius", "--cui-activity-trigger-hover-background", "--cui-activity-code-background"];
|
|
3
|
+
type ActivityKnobStyle = Partial<Record<(typeof activityKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ActivityKnobStyle, activityKnobs };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/knob-contracts/activity-knobs.ts
|
|
2
|
+
const activityKnobs = [
|
|
3
|
+
"--cui-activity-row-foreground",
|
|
4
|
+
"--cui-activity-trigger-radius",
|
|
5
|
+
"--cui-activity-trigger-hover-background",
|
|
6
|
+
"--cui-activity-code-background"
|
|
7
|
+
];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { activityKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/alert-knobs.d.ts
|
|
2
|
+
declare const alertKnobs: readonly ["--cui-alert-radius", "--cui-alert-background", "--cui-alert-border-color", "--cui-alert-shadow"];
|
|
3
|
+
type AlertKnobStyle = Partial<Record<(typeof alertKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { AlertKnobStyle, alertKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/audio-recorder-knobs.d.ts
|
|
2
|
+
declare const audioRecorderKnobs: readonly ["--cui-audio-recorder-foreground", "--cui-audio-recorder-active-foreground", "--cui-audio-recorder-recording-ring-color", "--cui-audio-recorder-error-foreground"];
|
|
3
|
+
type AudioRecorderKnobStyle = Partial<Record<(typeof audioRecorderKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { AudioRecorderKnobStyle, audioRecorderKnobs };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/knob-contracts/audio-recorder-knobs.ts
|
|
2
|
+
const audioRecorderKnobs = [
|
|
3
|
+
"--cui-audio-recorder-foreground",
|
|
4
|
+
"--cui-audio-recorder-active-foreground",
|
|
5
|
+
"--cui-audio-recorder-recording-ring-color",
|
|
6
|
+
"--cui-audio-recorder-error-foreground"
|
|
7
|
+
];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { audioRecorderKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/audio-visualizer-knobs.d.ts
|
|
2
|
+
declare const audioVisualizerKnobs: readonly ["--cui-audio-visualizer-radius", "--cui-audio-visualizer-bar-background", "--cui-audio-visualizer-line-fill", "--cui-audio-visualizer-line-stroke"];
|
|
3
|
+
type AudioVisualizerKnobStyle = Partial<Record<(typeof audioVisualizerKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { AudioVisualizerKnobStyle, audioVisualizerKnobs };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/knob-contracts/audio-visualizer-knobs.ts
|
|
2
|
+
const audioVisualizerKnobs = [
|
|
3
|
+
"--cui-audio-visualizer-radius",
|
|
4
|
+
"--cui-audio-visualizer-bar-background",
|
|
5
|
+
"--cui-audio-visualizer-line-fill",
|
|
6
|
+
"--cui-audio-visualizer-line-stroke"
|
|
7
|
+
];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { audioVisualizerKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/avatar-knobs.d.ts
|
|
2
|
+
declare const avatarKnobs: readonly ["--cui-avatar-radius", "--cui-avatar-group-ring-color", "--cui-avatar-fallback-background", "--cui-avatar-fallback-foreground"];
|
|
3
|
+
type AvatarKnobStyle = Partial<Record<(typeof avatarKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { AvatarKnobStyle, avatarKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/badge-knobs.d.ts
|
|
2
|
+
declare const badgeKnobs: readonly ["--cui-badge-radius", "--cui-badge-background", "--cui-badge-foreground", "--cui-badge-border-color"];
|
|
3
|
+
type BadgeKnobStyle = Partial<Record<(typeof badgeKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { BadgeKnobStyle, badgeKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/button-group-knobs.d.ts
|
|
2
|
+
declare const buttonGroupKnobs: readonly ["--cui-button-group-text-radius", "--cui-button-group-text-background", "--cui-button-group-text-foreground", "--cui-button-group-separator-background"];
|
|
3
|
+
type ButtonGroupKnobStyle = Partial<Record<(typeof buttonGroupKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ButtonGroupKnobStyle, buttonGroupKnobs };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/knob-contracts/button-group-knobs.ts
|
|
2
|
+
const buttonGroupKnobs = [
|
|
3
|
+
"--cui-button-group-text-radius",
|
|
4
|
+
"--cui-button-group-text-background",
|
|
5
|
+
"--cui-button-group-text-foreground",
|
|
6
|
+
"--cui-button-group-separator-background"
|
|
7
|
+
];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { buttonGroupKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/button-knobs.d.ts
|
|
2
|
+
declare const buttonKnobs: readonly ["--cui-button-radius", "--cui-button-gap", "--cui-button-icon", "--cui-button-height", "--cui-button-padding-inline", "--cui-button-font-size", "--cui-button-background", "--cui-button-background-image", "--cui-button-foreground", "--cui-button-hover-background", "--cui-button-hover-foreground", "--cui-button-press-background", "--cui-button-press-scale", "--cui-button-active-background", "--cui-button-active-foreground", "--cui-button-active-hover-background", "--cui-button-shadow", "--cui-button-hover-shadow", "--cui-button-press-shadow", "--cui-button-active-shadow"];
|
|
3
|
+
type ButtonKnobStyle = Partial<Record<(typeof buttonKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ButtonKnobStyle, buttonKnobs };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/knob-contracts/button-knobs.ts
|
|
2
|
+
const buttonKnobs = [
|
|
3
|
+
"--cui-button-radius",
|
|
4
|
+
"--cui-button-gap",
|
|
5
|
+
"--cui-button-icon",
|
|
6
|
+
"--cui-button-height",
|
|
7
|
+
"--cui-button-padding-inline",
|
|
8
|
+
"--cui-button-font-size",
|
|
9
|
+
"--cui-button-background",
|
|
10
|
+
"--cui-button-background-image",
|
|
11
|
+
"--cui-button-foreground",
|
|
12
|
+
"--cui-button-hover-background",
|
|
13
|
+
"--cui-button-hover-foreground",
|
|
14
|
+
"--cui-button-press-background",
|
|
15
|
+
"--cui-button-press-scale",
|
|
16
|
+
"--cui-button-active-background",
|
|
17
|
+
"--cui-button-active-foreground",
|
|
18
|
+
"--cui-button-active-hover-background",
|
|
19
|
+
"--cui-button-shadow",
|
|
20
|
+
"--cui-button-hover-shadow",
|
|
21
|
+
"--cui-button-press-shadow",
|
|
22
|
+
"--cui-button-active-shadow"
|
|
23
|
+
];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { buttonKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/calendar-knobs.d.ts
|
|
2
|
+
declare const calendarKnobs: readonly ["--cui-calendar-day-radius", "--cui-calendar-today-background", "--cui-calendar-selected-background", "--cui-calendar-selected-foreground", "--cui-calendar-range-background"];
|
|
3
|
+
type CalendarKnobStyle = Partial<Record<(typeof calendarKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { CalendarKnobStyle, calendarKnobs };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/knob-contracts/calendar-knobs.ts
|
|
2
|
+
const calendarKnobs = [
|
|
3
|
+
"--cui-calendar-day-radius",
|
|
4
|
+
"--cui-calendar-today-background",
|
|
5
|
+
"--cui-calendar-selected-background",
|
|
6
|
+
"--cui-calendar-selected-foreground",
|
|
7
|
+
"--cui-calendar-range-background"
|
|
8
|
+
];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { calendarKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/card-knobs.d.ts
|
|
2
|
+
declare const cardKnobs: readonly ["--cui-card-radius", "--cui-card-background", "--cui-card-border-color", "--cui-card-border-width", "--cui-card-shadow", "--cui-card-backdrop-filter"];
|
|
3
|
+
type CardKnobStyle = Partial<Record<(typeof cardKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { CardKnobStyle, cardKnobs };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/knob-contracts/card-knobs.ts
|
|
2
|
+
const cardKnobs = [
|
|
3
|
+
"--cui-card-radius",
|
|
4
|
+
"--cui-card-background",
|
|
5
|
+
"--cui-card-border-color",
|
|
6
|
+
"--cui-card-border-width",
|
|
7
|
+
"--cui-card-shadow",
|
|
8
|
+
"--cui-card-backdrop-filter"
|
|
9
|
+
];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { cardKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-composer-attachment-knobs.d.ts
|
|
2
|
+
declare const chatComposerAttachmentKnobs: readonly ["--cui-chat-composer-attachment-radius", "--cui-chat-composer-attachment-background", "--cui-chat-composer-attachment-border-color", "--cui-chat-composer-attachment-shadow", "--cui-chat-composer-attachment-progress-background", "--cui-chat-composer-attachment-progress-foreground"];
|
|
3
|
+
type ChatComposerAttachmentKnobStyle = Partial<Record<(typeof chatComposerAttachmentKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ChatComposerAttachmentKnobStyle, chatComposerAttachmentKnobs };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-composer-attachment-knobs.ts
|
|
2
|
+
const chatComposerAttachmentKnobs = [
|
|
3
|
+
"--cui-chat-composer-attachment-radius",
|
|
4
|
+
"--cui-chat-composer-attachment-background",
|
|
5
|
+
"--cui-chat-composer-attachment-border-color",
|
|
6
|
+
"--cui-chat-composer-attachment-shadow",
|
|
7
|
+
"--cui-chat-composer-attachment-progress-background",
|
|
8
|
+
"--cui-chat-composer-attachment-progress-foreground"
|
|
9
|
+
];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { chatComposerAttachmentKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-composer-knobs.d.ts
|
|
2
|
+
declare const chatComposerKnobs: readonly ["--cui-chat-composer-root-background", "--cui-chat-composer-shell-radius", "--cui-chat-composer-shell-background", "--cui-chat-composer-shell-background-image", "--cui-chat-composer-shell-backdrop-filter", "--cui-chat-composer-shell-border-color", "--cui-chat-composer-shell-shadow", "--cui-chat-composer-input-foreground", "--cui-chat-composer-input-placeholder-foreground", "--cui-chat-composer-mention-background", "--cui-chat-composer-mention-radius", "--cui-chat-composer-mention-border-color", "--cui-chat-composer-mention-border-width"];
|
|
3
|
+
type ChatComposerKnobStyle = Partial<Record<(typeof chatComposerKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ChatComposerKnobStyle, chatComposerKnobs };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-composer-knobs.ts
|
|
2
|
+
const chatComposerKnobs = [
|
|
3
|
+
"--cui-chat-composer-root-background",
|
|
4
|
+
"--cui-chat-composer-shell-radius",
|
|
5
|
+
"--cui-chat-composer-shell-background",
|
|
6
|
+
"--cui-chat-composer-shell-background-image",
|
|
7
|
+
"--cui-chat-composer-shell-backdrop-filter",
|
|
8
|
+
"--cui-chat-composer-shell-border-color",
|
|
9
|
+
"--cui-chat-composer-shell-shadow",
|
|
10
|
+
"--cui-chat-composer-input-foreground",
|
|
11
|
+
"--cui-chat-composer-input-placeholder-foreground",
|
|
12
|
+
"--cui-chat-composer-mention-background",
|
|
13
|
+
"--cui-chat-composer-mention-radius",
|
|
14
|
+
"--cui-chat-composer-mention-border-color",
|
|
15
|
+
"--cui-chat-composer-mention-border-width"
|
|
16
|
+
];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { chatComposerKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-layout-knobs.d.ts
|
|
2
|
+
declare const chatLayoutKnobs: readonly ["--cui-chat-layout-radius", "--cui-chat-layout-background", "--cui-chat-layout-border-color", "--cui-chat-layout-shadow", "--cui-chat-layout-thought-foreground", "--cui-chat-layout-thought-hover-background"];
|
|
3
|
+
type ChatLayoutKnobStyle = Partial<Record<(typeof chatLayoutKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ChatLayoutKnobStyle, chatLayoutKnobs };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-layout-knobs.ts
|
|
2
|
+
const chatLayoutKnobs = [
|
|
3
|
+
"--cui-chat-layout-radius",
|
|
4
|
+
"--cui-chat-layout-background",
|
|
5
|
+
"--cui-chat-layout-border-color",
|
|
6
|
+
"--cui-chat-layout-shadow",
|
|
7
|
+
"--cui-chat-layout-thought-foreground",
|
|
8
|
+
"--cui-chat-layout-thought-hover-background"
|
|
9
|
+
];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { chatLayoutKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-message-knobs.d.ts
|
|
2
|
+
declare const chatMessageKnobs: readonly ["--cui-chat-message-avatar-radius", "--cui-chat-message-avatar-background", "--cui-chat-message-avatar-border-color", "--cui-chat-message-avatar-border-width", "--cui-chat-message-radius", "--cui-chat-message-corner-radius", "--cui-chat-message-background", "--cui-chat-message-background-image", "--cui-chat-message-foreground", "--cui-chat-message-border-color", "--cui-chat-message-border-width", "--cui-chat-message-shadow"];
|
|
3
|
+
type ChatMessageKnobStyle = Partial<Record<(typeof chatMessageKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ChatMessageKnobStyle, chatMessageKnobs };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/knob-contracts/chat-message-knobs.ts
|
|
2
|
+
const chatMessageKnobs = [
|
|
3
|
+
"--cui-chat-message-avatar-radius",
|
|
4
|
+
"--cui-chat-message-avatar-background",
|
|
5
|
+
"--cui-chat-message-avatar-border-color",
|
|
6
|
+
"--cui-chat-message-avatar-border-width",
|
|
7
|
+
"--cui-chat-message-radius",
|
|
8
|
+
"--cui-chat-message-corner-radius",
|
|
9
|
+
"--cui-chat-message-background",
|
|
10
|
+
"--cui-chat-message-background-image",
|
|
11
|
+
"--cui-chat-message-foreground",
|
|
12
|
+
"--cui-chat-message-border-color",
|
|
13
|
+
"--cui-chat-message-border-width",
|
|
14
|
+
"--cui-chat-message-shadow"
|
|
15
|
+
];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { chatMessageKnobs };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/knob-contracts/choice-knobs.d.ts
|
|
2
|
+
declare const choiceKnobs: readonly ["--cui-choice-radius", "--cui-choice-border-color", "--cui-choice-checked-background", "--cui-choice-checked-border-color"];
|
|
3
|
+
type ChoiceKnobStyle = Partial<Record<(typeof choiceKnobs)[number], string>>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ChoiceKnobStyle, choiceKnobs };
|