@ctrl-ui/react 0.8.2 → 0.8.5
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 +32 -23
- package/dist/action-bar.d.ts +11 -12
- package/dist/activity.d.ts +24 -25
- package/dist/audio-recorder.d.ts +16 -16
- package/dist/audio-visualizer.d.ts +3 -4
- package/dist/audio-visualizer.js +1 -1
- package/dist/blocks/chat.d.ts +3 -4
- package/dist/blocks/chat.js +6 -3
- package/dist/blocks/coding-agent.d.ts +11 -12
- package/dist/blocks/coding-agent.js +10 -9
- package/dist/blocks/file-explorer-data.d.ts +11 -12
- package/dist/blocks/file-explorer.d.ts +3 -3
- package/dist/blocks/settings-data.d.ts +8 -9
- package/dist/blocks/settings.d.ts +4 -4
- package/dist/blocks/theme-toggle.d.ts +11 -12
- package/dist/blocks/theme-toggle.js +14 -4
- package/dist/chat-composer-attachment.d.ts +20 -21
- package/dist/chat-composer-attachment.js +24 -20
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -6
- package/dist/chat-composer-editor/extensions/mention.js +4 -0
- package/dist/chat-composer-editor/ghost.d.ts +3 -4
- package/dist/chat-composer-editor/schema.d.ts +2 -3
- package/dist/chat-composer-editor/serialize.d.ts +3 -4
- package/dist/chat-composer-editor/types.d.ts +5 -6
- package/dist/chat-composer-editor.d.ts +2 -3
- package/dist/chat-composer-editor.js +18 -4
- package/dist/chat-composer.d.ts +17 -18
- package/dist/chat-composer.js +14 -8
- package/dist/chat-layout.d.ts +17 -21
- package/dist/chat-layout.js +72 -86
- package/dist/chat-message.d.ts +19 -15
- package/dist/chat-message.js +19 -2
- package/dist/context-model.d.ts +7 -8
- package/dist/context.d.ts +21 -22
- package/dist/context.js +0 -2
- package/dist/control-props.d.ts +10 -11
- package/dist/control-variants.d.ts +6 -7
- package/dist/dynamic-notification-glass.d.ts +3 -4
- package/dist/dynamic-notification-liquid.d.ts +3 -4
- package/dist/dynamic-notification-siri-wave.d.ts +2 -3
- package/dist/dynamic-notification.d.ts +28 -29
- package/dist/email/email-brand.d.ts +60 -0
- package/dist/email/email-brand.js +101 -0
- package/dist/email/email-code.d.ts +18 -0
- package/dist/email/email-code.js +172 -0
- package/dist/email/email-footer.d.ts +63 -0
- package/dist/email/email-footer.js +98 -0
- package/dist/email/email.d.ts +62 -14
- package/dist/email/email.js +155 -24
- package/dist/email/length.d.ts +2 -3
- package/dist/email/templates.d.ts +56 -12
- package/dist/email/templates.js +314 -116
- package/dist/email/theme.d.ts +15 -8
- package/dist/email/theme.js +30 -8
- package/dist/environment-variables.d.ts +35 -36
- package/dist/extensions/create-track-highlight.d.ts +3 -4
- package/dist/extensions/supports-anchor-transitions.d.ts +2 -3
- package/dist/extensions/track-highlight.d.ts +3 -4
- package/dist/hooks/use-audio-recorder.d.ts +14 -15
- package/dist/hooks/use-chat-composer.d.ts +5 -6
- package/dist/hooks/use-chat-message.d.ts +8 -8
- package/dist/hooks/use-chat-message.js +1 -0
- package/dist/hooks/use-chat-thread-scroll.d.ts +8 -0
- package/dist/hooks/use-chat-thread-scroll.js +66 -0
- package/dist/hooks/use-color-area.d.ts +5 -6
- package/dist/hooks/use-copy-to-clipboard.d.ts +7 -8
- package/dist/hooks/use-dropzone.d.ts +11 -12
- package/dist/hooks/use-dynamic-notification.d.ts +6 -7
- package/dist/hooks/use-environment-variables.d.ts +9 -10
- package/dist/hooks/use-keyboard-navigation.d.ts +3 -0
- package/dist/hooks/use-keyboard-navigation.js +22 -0
- package/dist/hooks/use-mobile.d.ts +2 -3
- package/dist/hooks/use-textarea-trigger-menu.d.ts +2 -3
- package/dist/hooks/use-trigger-menu.d.ts +7 -8
- package/dist/hooks/use-user-ask.d.ts +11 -10
- package/dist/hooks/use-user-ask.js +56 -17
- package/dist/inline-attachment.d.ts +16 -17
- package/dist/inline-attachment.js +1 -1
- package/dist/inline-citation.d.ts +22 -23
- package/dist/knob-contracts/accordion-knobs.d.ts +3 -4
- package/dist/knob-contracts/accordion-knobs.js +1 -0
- package/dist/knob-contracts/action-bar-knobs.d.ts +3 -4
- package/dist/knob-contracts/action-bar-knobs.js +1 -1
- package/dist/knob-contracts/activity-knobs.d.ts +3 -4
- package/dist/knob-contracts/activity-knobs.js +2 -1
- package/dist/knob-contracts/alert-knobs.d.ts +3 -4
- package/dist/knob-contracts/alert-knobs.js +12 -1
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +3 -4
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +3 -4
- package/dist/knob-contracts/audio-visualizer-knobs.js +1 -0
- package/dist/knob-contracts/avatar-knobs.d.ts +3 -4
- package/dist/knob-contracts/avatar-knobs.js +2 -1
- package/dist/knob-contracts/badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-group-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/calendar-knobs.d.ts +3 -4
- package/dist/knob-contracts/card-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.js +5 -1
- package/dist/knob-contracts/chat-composer-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-knobs.js +2 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-layout-knobs.js +2 -2
- package/dist/knob-contracts/chat-message-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-message-knobs.js +3 -1
- package/dist/knob-contracts/choice-knobs.d.ts +3 -4
- package/dist/knob-contracts/choice-knobs.js +2 -1
- package/dist/knob-contracts/code-diff-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-diff-knobs.js +1 -0
- package/dist/knob-contracts/code-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-knobs.js +3 -1
- package/dist/knob-contracts/collapsible-knobs.d.ts +3 -4
- package/dist/knob-contracts/color-picker-knobs.d.ts +3 -4
- package/dist/knob-contracts/context-knobs.d.ts +3 -4
- package/dist/knob-contracts/context-knobs.js +3 -0
- package/dist/knob-contracts/dockable-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/dockable-panel-knobs.js +1 -0
- package/dist/knob-contracts/dropzone-knobs.d.ts +3 -4
- package/dist/knob-contracts/dropzone-knobs.js +1 -0
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.js +14 -1
- package/dist/knob-contracts/environment-variables-knobs.d.ts +3 -4
- package/dist/knob-contracts/environment-variables-knobs.js +2 -1
- package/dist/knob-contracts/field-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.js +3 -1
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.js +6 -1
- package/dist/knob-contracts/inline-citation-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-citation-knobs.js +4 -1
- package/dist/knob-contracts/item-knobs.d.ts +3 -4
- package/dist/knob-contracts/kbd-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.js +2 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-knobs.js +1 -0
- package/dist/knob-contracts/morphing-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/page-layout-knobs.d.ts +4 -0
- package/dist/knob-contracts/page-layout-knobs.js +15 -0
- package/dist/knob-contracts/pagination-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.js +1 -0
- package/dist/knob-contracts/popup-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.js +1 -0
- package/dist/knob-contracts/range-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +3 -4
- package/dist/knob-contracts/scroll-area-knobs.d.ts +3 -4
- package/dist/knob-contracts/separator-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.js +1 -0
- package/dist/knob-contracts/skeleton-knobs.d.ts +3 -4
- package/dist/knob-contracts/skeleton-knobs.js +9 -1
- package/dist/knob-contracts/source-badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/spinner-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.js +1 -0
- package/dist/knob-contracts/switch-knobs.d.ts +3 -4
- package/dist/knob-contracts/switch-knobs.js +7 -1
- package/dist/knob-contracts/table-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.js +25 -0
- package/dist/knob-contracts/tabs-knobs.d.ts +3 -4
- package/dist/knob-contracts/tabs-knobs.js +2 -1
- package/dist/knob-contracts/task-list-knobs.d.ts +3 -4
- package/dist/knob-contracts/task-list-knobs.js +5 -0
- package/dist/knob-contracts/thread-rail-knobs.d.ts +3 -4
- package/dist/knob-contracts/timeline-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.js +1 -0
- package/dist/knob-contracts/track-highlight-knobs.d.ts +3 -4
- package/dist/knob-contracts/transcript-divider-knobs.d.ts +3 -4
- package/dist/knob-contracts/tree-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.js +5 -0
- package/dist/lib/cn.d.ts +2 -3
- package/dist/lib/code-tokens.d.ts +12 -13
- package/dist/lib/color.d.ts +26 -27
- package/dist/lib/contrast.d.ts +12 -13
- package/dist/lib/diff.d.ts +14 -15
- package/dist/lib/dropzone-validation.d.ts +25 -26
- package/dist/lib/env-file.d.ts +12 -13
- package/dist/lib/format-audio-recorder-duration.d.ts +2 -3
- package/dist/lib/liquid-glass-optics.d.ts +2 -3
- package/dist/lib/phone-input-format.d.ts +3 -4
- package/dist/lib/phone-number.d.ts +8 -9
- package/dist/lib/trigger-detect.d.ts +4 -5
- package/dist/markdown-block.d.ts +11 -12
- package/dist/markdown-block.js +1 -1
- package/dist/scripts/contrast-eval.d.ts +16 -17
- package/dist/scripts/contrast-eval.js +13 -7
- package/dist/skin-provider.d.ts +14 -0
- package/dist/skin-provider.js +21 -0
- package/dist/skin.d.ts +14 -33
- package/dist/skin.js +3 -46
- package/dist/source-badge.d.ts +7 -8
- package/dist/styles/index.css +3 -5
- package/dist/styles/recipes/accordion.css +8 -2
- package/dist/styles/recipes/action-bar.css +40 -5
- package/dist/styles/recipes/activity.css +36 -3
- package/dist/styles/recipes/alert.css +97 -16
- package/dist/styles/recipes/audio-visualizer.css +8 -1
- package/dist/styles/recipes/avatar.css +17 -1
- package/dist/styles/recipes/badge.css +0 -1
- package/dist/styles/recipes/button-group.css +8 -0
- package/dist/styles/recipes/button.css +49 -8
- package/dist/styles/recipes/calendar.css +21 -6
- package/dist/styles/recipes/card.css +2 -0
- package/dist/styles/recipes/chat-composer-attachment.css +83 -54
- package/dist/styles/recipes/chat-composer.css +41 -22
- package/dist/styles/recipes/chat-layout.css +37 -54
- package/dist/styles/recipes/chat-message.css +78 -5
- package/dist/styles/recipes/choice.css +21 -2
- package/dist/styles/recipes/code-diff.css +9 -1
- package/dist/styles/recipes/code.css +64 -17
- package/dist/styles/recipes/collapsible.css +0 -3
- package/dist/styles/recipes/color-picker-details.css +1 -2
- package/dist/styles/recipes/color-picker-values.css +0 -4
- package/dist/styles/recipes/context.css +30 -18
- package/dist/styles/recipes/dockable-panel.css +8 -1
- package/dist/styles/recipes/dropzone.css +9 -2
- package/dist/styles/recipes/dynamic-notification-input.css +6 -0
- package/dist/styles/recipes/dynamic-notification.css +1 -0
- package/dist/styles/recipes/empty.css +118 -17
- package/dist/styles/recipes/environment-variables.css +9 -1
- package/dist/styles/recipes/field-parts.css +3 -6
- package/dist/styles/recipes/field.css +15 -5
- package/dist/styles/recipes/gradient-editor.css +33 -5
- package/dist/styles/recipes/inline-attachment.css +68 -20
- package/dist/styles/recipes/inline-citation.css +52 -10
- package/dist/styles/recipes/item.css +4 -2
- package/dist/styles/recipes/kbd.css +8 -0
- package/dist/styles/recipes/markdown-block.css +17 -2
- package/dist/styles/recipes/markdown.css +19 -0
- package/dist/styles/recipes/morphing-panel.css +1 -1
- package/dist/styles/recipes/page-layout.css +203 -0
- package/dist/styles/recipes/pagination.css +16 -4
- package/dist/styles/recipes/phone-input.css +8 -4
- package/dist/styles/recipes/popup-drawer.css +3 -1
- package/dist/styles/recipes/popup-lists.css +11 -0
- package/dist/styles/recipes/popup-toast.css +3 -29
- package/dist/styles/recipes/popup.css +10 -14
- package/dist/styles/recipes/progressive-blur.css +28 -7
- package/dist/styles/recipes/range.css +74 -3
- package/dist/styles/recipes/resizable.css +8 -10
- package/dist/styles/recipes/rich-tooltip.css +1 -4
- package/dist/styles/recipes/scroll-area.css +8 -2
- package/dist/styles/recipes/sidebar-menu.css +0 -6
- package/dist/styles/recipes/sidebar.css +56 -17
- package/dist/styles/recipes/skeleton.css +85 -3
- package/dist/styles/recipes/source-badge.css +20 -3
- package/dist/styles/recipes/stepper.css +8 -1
- package/dist/styles/recipes/switch.css +89 -17
- package/dist/styles/recipes/table-of-contents.css +211 -45
- package/dist/styles/recipes/table.css +0 -1
- package/dist/styles/recipes/tabs.css +35 -2
- package/dist/styles/recipes/task-list.css +68 -9
- package/dist/styles/recipes/thread-rail.css +19 -17
- package/dist/styles/recipes/toolbar.css +39 -4
- package/dist/styles/recipes/track-highlight.css +63 -5
- package/dist/styles/recipes/transcript-divider.css +1 -0
- package/dist/styles/recipes/tree.css +2 -0
- package/dist/styles/recipes/user-ask.css +65 -18
- package/dist/styles/theme.css +164 -138
- package/dist/surface-variants.d.ts +4 -5
- package/dist/task-list.d.ts +16 -17
- package/dist/thread-rail.d.ts +21 -22
- package/dist/thread-rail.js +1 -1
- package/dist/transcript-divider.d.ts +6 -7
- package/dist/ui/accordion.d.ts +10 -11
- package/dist/ui/alert-dialog.d.ts +11 -12
- package/dist/ui/alert-dialog.js +9 -7
- package/dist/ui/alert.d.ts +9 -10
- package/dist/ui/alert.js +3 -3
- package/dist/ui/aspect-ratio.d.ts +3 -4
- package/dist/ui/autocomplete.d.ts +19 -20
- package/dist/ui/autocomplete.js +6 -4
- package/dist/ui/avatar.d.ts +9 -10
- package/dist/ui/badge.d.ts +9 -10
- package/dist/ui/button-group.d.ts +7 -8
- package/dist/ui/button-group.js +3 -2
- package/dist/ui/button.d.ts +17 -18
- package/dist/ui/button.js +20 -5
- package/dist/ui/calendar.d.ts +3 -4
- package/dist/ui/card.d.ts +16 -17
- package/dist/ui/checkbox-group.d.ts +4 -5
- package/dist/ui/checkbox-group.js +3 -2
- package/dist/ui/checkbox.d.ts +3 -4
- package/dist/ui/code-diff.d.ts +8 -9
- package/dist/ui/code.d.ts +32 -23
- package/dist/ui/code.js +41 -20
- package/dist/ui/collapsible.d.ts +7 -8
- package/dist/ui/color-picker.d.ts +40 -41
- package/dist/ui/color-picker.js +8 -6
- package/dist/ui/combobox-disabled-selection.d.ts +3 -4
- package/dist/ui/combobox.d.ts +19 -20
- package/dist/ui/combobox.js +6 -4
- package/dist/ui/command.d.ts +22 -19
- package/dist/ui/command.js +63 -13
- package/dist/ui/context-menu.d.ts +30 -31
- package/dist/ui/context-menu.js +10 -7
- package/dist/ui/dialog.d.ts +13 -13
- package/dist/ui/dialog.js +11 -9
- package/dist/ui/dockable-panel-geometry.d.ts +7 -8
- package/dist/ui/dockable-panel.d.ts +21 -22
- package/dist/ui/drawer.d.ts +17 -18
- package/dist/ui/drawer.js +9 -8
- package/dist/ui/dropdown-menu.d.ts +32 -33
- package/dist/ui/dropdown-menu.js +6 -4
- package/dist/ui/dropzone.d.ts +24 -24
- package/dist/ui/dropzone.js +4 -1
- package/dist/ui/empty.d.ts +14 -14
- package/dist/ui/empty.js +3 -3
- package/dist/ui/field.d.ts +26 -27
- package/dist/ui/form.d.ts +4 -5
- package/dist/ui/gradient-editor.d.ts +16 -17
- package/dist/ui/gradient-editor.js +2 -2
- package/dist/ui/hover-card.d.ts +6 -7
- package/dist/ui/hover-card.js +6 -4
- package/dist/ui/infinite-canvas.d.ts +11 -12
- package/dist/ui/infinite-canvas.js +1 -0
- package/dist/ui/input-group.d.ts +6 -7
- package/dist/ui/input-otp.d.ts +7 -8
- package/dist/ui/input.d.ts +3 -4
- package/dist/ui/item.d.ts +20 -21
- package/dist/ui/kbd.d.ts +7 -5
- package/dist/ui/kbd.js +4 -2
- package/dist/ui/markdown-elements.d.ts +20 -21
- package/dist/ui/markdown.d.ts +5 -6
- package/dist/ui/menubar.d.ts +25 -26
- package/dist/ui/menubar.js +10 -7
- package/dist/ui/meter.d.ts +11 -12
- package/dist/ui/morphing-panel.d.ts +8 -9
- package/dist/ui/native-select.d.ts +3 -4
- package/dist/ui/native-select.js +1 -1
- package/dist/ui/navigation-menu.d.ts +17 -18
- package/dist/ui/navigation-menu.js +6 -4
- package/dist/ui/number-field.d.ts +15 -16
- package/dist/ui/number-field.js +1 -1
- package/dist/ui/page-layout.d.ts +44 -0
- package/dist/ui/page-layout.js +108 -0
- package/dist/ui/pagination.d.ts +10 -11
- package/dist/ui/phone-input.d.ts +5 -6
- package/dist/ui/phone-input.js +39 -36
- package/dist/ui/popover.d.ts +11 -12
- package/dist/ui/popover.js +6 -4
- package/dist/ui/progress.d.ts +11 -12
- package/dist/ui/progressive-blur.d.ts +4 -5
- package/dist/ui/radio-group.d.ts +5 -6
- package/dist/ui/resizable.d.ts +12 -13
- package/dist/ui/resizable.js +1 -1
- package/dist/ui/responsive-dialog.d.ts +11 -12
- package/dist/ui/rich-tooltip-tour.d.ts +5 -6
- package/dist/ui/rich-tooltip.d.ts +21 -23
- package/dist/ui/rich-tooltip.js +6 -6
- package/dist/ui/scroll-area.d.ts +7 -8
- package/dist/ui/scroll-area.js +9 -6
- package/dist/ui/select.d.ts +21 -14
- package/dist/ui/select.js +8 -5
- package/dist/ui/separator.d.ts +2 -3
- package/dist/ui/sheet.d.ts +8 -9
- package/dist/ui/sheet.js +9 -7
- package/dist/ui/sidebar-menu.d.ts +18 -19
- package/dist/ui/sidebar-menu.js +4 -3
- package/dist/ui/sidebar-provider.d.ts +32 -7
- package/dist/ui/sidebar-provider.js +82 -22
- package/dist/ui/sidebar-resize-rail.d.ts +8 -0
- package/dist/ui/sidebar-resize-rail.js +192 -0
- package/dist/ui/sidebar.d.ts +19 -13
- package/dist/ui/sidebar.js +120 -55
- package/dist/ui/skeleton.d.ts +7 -4
- package/dist/ui/skeleton.js +9 -2
- package/dist/ui/slider.d.ts +6 -5
- package/dist/ui/slider.js +16 -13
- package/dist/ui/spinner.d.ts +3 -4
- package/dist/ui/stepper.d.ts +22 -23
- package/dist/ui/switch.d.ts +3 -4
- package/dist/ui/switch.js +12 -1
- package/dist/ui/table-of-contents.d.ts +7 -8
- package/dist/ui/table-of-contents.js +4 -2
- package/dist/ui/table.d.ts +17 -18
- package/dist/ui/tabs.d.ts +14 -11
- package/dist/ui/textarea.d.ts +3 -4
- package/dist/ui/timeline.d.ts +18 -19
- package/dist/ui/toast.d.ts +9 -9
- package/dist/ui/toast.js +23 -16
- package/dist/ui/toggle.d.ts +5 -6
- package/dist/ui/toggle.js +3 -2
- package/dist/ui/toolbar.d.ts +15 -16
- package/dist/ui/toolbar.js +15 -4
- package/dist/ui/tooltip.d.ts +6 -13
- package/dist/ui/tooltip.js +8 -9
- package/dist/ui/tree.d.ts +18 -19
- package/dist/ui/tree.js +3 -2
- package/dist/ui/trigger-menu.d.ts +15 -16
- package/dist/ui/trigger-menu.js +6 -4
- package/dist/ui/use-switch-drag.d.ts +7 -0
- package/dist/ui/use-switch-drag.js +104 -0
- package/dist/user-ask.d.ts +28 -27
- package/dist/user-ask.js +38 -13
- package/package.json +17 -16
- package/dist/code-block-editor.d.ts +0 -59
- package/dist/code-block-editor.js +0 -250
- package/dist/knob-contracts/code-block-editor-knobs.d.ts +0 -5
- package/dist/knob-contracts/code-block-editor-knobs.js +0 -11
- package/dist/lib/code-block-shiki.d.ts +0 -9
- package/dist/lib/code-block-shiki.js +0 -6
- package/dist/skin.config.d.ts +0 -5
- package/dist/skin.config.js +0 -12
- package/dist/styles/recipes/code-block-editor.css +0 -136
- package/dist/styles/skin-theme.css +0 -137
- package/dist/styles/skin.css +0 -143
|
@@ -1,42 +1,56 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
:where([data-
|
|
3
|
-
--cui-chat-composer-attachment-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--cui-chat-composer-attachment-
|
|
8
|
-
--cui-chat-composer-attachment-
|
|
9
|
-
|
|
2
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="root"]:not([data-variant])) {
|
|
3
|
+
--cui-chat-composer-attachment-list-padding: calc(var(--spacing) * 3);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant]) {
|
|
7
|
+
--cui-chat-composer-attachment-background: var(--popover);
|
|
8
|
+
--cui-chat-composer-attachment-border-color: var(--control-rim);
|
|
9
|
+
--cui-chat-composer-attachment-height: calc(var(--spacing) * 14);
|
|
10
|
+
--cui-chat-composer-attachment-radius: var(--radius-popover);
|
|
11
|
+
--cui-chat-composer-attachment-image-outline-color: oklch(from var(--foreground) l c h / 0.1);
|
|
12
|
+
--cui-chat-composer-attachment-shadow:
|
|
13
|
+
inset 0 0 0 var(--control-rim-width) var(--cui-chat-composer-attachment-border-color), var(--shadow-sm);
|
|
14
|
+
--cui-chat-composer-attachment-backdrop-filter: blur(var(--backdrop-blur-popover));
|
|
15
|
+
--cui-chat-composer-attachment-progress-background: transparent;
|
|
16
|
+
--cui-chat-composer-attachment-progress-foreground: oklch(from var(--background) l c h / var(--overlay-opacity));
|
|
17
|
+
block-size: var(--cui-chat-composer-attachment-height);
|
|
10
18
|
text-align: left;
|
|
11
|
-
border: 1px solid var(--cui-chat-composer-attachment-border-color);
|
|
12
19
|
border-radius: var(--cui-chat-composer-attachment-radius);
|
|
13
20
|
background: var(--cui-chat-composer-attachment-background);
|
|
14
|
-
box-shadow:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
transition-property: background-color, border-color, box-shadow;
|
|
21
|
+
box-shadow: var(--cui-chat-composer-attachment-shadow);
|
|
22
|
+
backdrop-filter: var(--cui-chat-composer-attachment-backdrop-filter);
|
|
23
|
+
transition-property: background-color, box-shadow;
|
|
18
24
|
transition-duration: var(--duration-base);
|
|
19
25
|
transition-timing-function: var(--ease-standard);
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
:where([data-control-family="chat-composer-attachment"][data-slot="list"]) {
|
|
23
29
|
gap: calc(var(--spacing) * 2);
|
|
24
|
-
padding
|
|
25
|
-
|
|
30
|
+
padding: var(--cui-chat-composer-attachment-list-padding);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(
|
|
34
|
+
[data-control-family="chat-composer"][data-slot="shell"]
|
|
35
|
+
[data-control-family="chat-composer-attachment"][data-slot="root"][data-variant]
|
|
36
|
+
) {
|
|
37
|
+
--cui-chat-composer-attachment-radius: max(
|
|
38
|
+
var(--radius-sm),
|
|
39
|
+
min(
|
|
40
|
+
calc(var(--cui-chat-composer-attachment-height) / 2),
|
|
41
|
+
calc(var(--cui-chat-composer-shell-radius) - var(--cui-chat-composer-attachment-list-padding))
|
|
42
|
+
)
|
|
43
|
+
);
|
|
26
44
|
}
|
|
27
45
|
|
|
28
46
|
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="preview"]) {
|
|
29
47
|
inline-size: fit-content;
|
|
30
48
|
max-inline-size: calc(var(--spacing) * 40);
|
|
31
|
-
padding: calc(var(--spacing) * 1);
|
|
32
49
|
}
|
|
33
50
|
|
|
34
51
|
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="file"]) {
|
|
35
52
|
inline-size: calc(var(--spacing) * 64);
|
|
36
53
|
max-inline-size: calc(100vw - 5rem);
|
|
37
|
-
gap: calc(var(--spacing) * 2);
|
|
38
|
-
padding: calc(var(--spacing) * 1.5);
|
|
39
|
-
padding-inline-end: calc(var(--spacing) * 8);
|
|
40
54
|
}
|
|
41
55
|
|
|
42
56
|
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="preview"] [data-slot="preview"]) {
|
|
@@ -46,29 +60,31 @@
|
|
|
46
60
|
max-inline-size: 100%;
|
|
47
61
|
}
|
|
48
62
|
|
|
49
|
-
:where([data-control-family="chat-composer-attachment"][data-slot="
|
|
50
|
-
inline
|
|
51
|
-
block-size: calc(var(--spacing) * 10);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-state="uploading"]) {
|
|
55
|
-
border-color: oklch(from var(--primary) l c h / 0.35);
|
|
56
|
-
box-shadow:
|
|
57
|
-
inset 0 0 0 1px oklch(from var(--primary) l c h / 0.15),
|
|
58
|
-
var(--cui-chat-composer-attachment-shadow);
|
|
63
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="content"]) {
|
|
64
|
+
padding-inline: calc(var(--spacing) * 3) calc(var(--spacing) * 8);
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-state="error"]) {
|
|
62
|
-
border-color: oklch(from var(--destructive) l c h / 0.45);
|
|
63
|
-
box-shadow:
|
|
64
|
-
inset 0 0 0 1px oklch(from var(--destructive) l c h / 0.2),
|
|
65
|
-
var(--cui-chat-composer-attachment-shadow);
|
|
68
|
+
--cui-chat-composer-attachment-border-color: oklch(from var(--destructive) l c h / 0.45);
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
:where([data-control-family="chat-composer-attachment"][data-slot="preview"]) {
|
|
69
|
-
border-radius: calc(var(--radius-field) - 0.25rem);
|
|
70
72
|
background: var(--muted);
|
|
71
73
|
color: var(--muted-foreground);
|
|
74
|
+
border-radius: inherit;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="preview"] > img) {
|
|
78
|
+
border-radius: inherit;
|
|
79
|
+
outline: 1px solid var(--cui-chat-composer-attachment-image-outline-color);
|
|
80
|
+
outline-offset: -1px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="file"] [data-slot="preview"]) {
|
|
84
|
+
inline-size: calc(var(--spacing) * 14);
|
|
85
|
+
block-size: 100%;
|
|
86
|
+
border-start-end-radius: 0;
|
|
87
|
+
border-end-end-radius: 0;
|
|
72
88
|
}
|
|
73
89
|
|
|
74
90
|
:where([data-control-family="chat-composer-attachment"][data-kind="pdf"] [data-slot="preview"]) {
|
|
@@ -86,18 +102,8 @@
|
|
|
86
102
|
font-weight: var(--font-weight-semibold);
|
|
87
103
|
}
|
|
88
104
|
|
|
89
|
-
:where([data-control-family="chat-composer-attachment"][data-slot="status"]) {
|
|
90
|
-
inline-size: calc(var(--spacing) * 4);
|
|
91
|
-
block-size: calc(var(--spacing) * 4);
|
|
92
|
-
border: 2px solid oklch(from var(--background) l c h / 0.75);
|
|
93
|
-
border-top-color: var(--primary);
|
|
94
|
-
border-radius: 9999px;
|
|
95
|
-
background: transparent;
|
|
96
|
-
animation: var(--animate-spin);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
105
|
:where([data-control-family="chat-composer-attachment"][data-slot="title"]) {
|
|
100
|
-
color: var(--foreground);
|
|
106
|
+
color: var(--popover-foreground);
|
|
101
107
|
font-size: var(--text-label);
|
|
102
108
|
font-weight: var(--font-weight-medium);
|
|
103
109
|
}
|
|
@@ -105,6 +111,7 @@
|
|
|
105
111
|
:where([data-control-family="chat-composer-attachment"][data-slot="description"]) {
|
|
106
112
|
color: var(--muted-foreground);
|
|
107
113
|
font-size: var(--text-caption);
|
|
114
|
+
font-variant-numeric: tabular-nums;
|
|
108
115
|
}
|
|
109
116
|
|
|
110
117
|
:where([data-control-family="chat-composer-attachment"][data-slot="description"][data-state="error"]) {
|
|
@@ -115,29 +122,28 @@
|
|
|
115
122
|
inline-size: calc(var(--spacing) * 5);
|
|
116
123
|
block-size: calc(var(--spacing) * 5);
|
|
117
124
|
padding: 0;
|
|
118
|
-
|
|
119
|
-
background: var(--foreground);
|
|
120
|
-
|
|
121
|
-
|
|
125
|
+
--cui-button-radius: 9999px;
|
|
126
|
+
--cui-button-background: var(--foreground);
|
|
127
|
+
--cui-button-foreground: var(--background);
|
|
128
|
+
--cui-button-shadow: var(--shadow-sm);
|
|
122
129
|
}
|
|
123
130
|
|
|
124
131
|
@media (hover: hover) {
|
|
125
132
|
:where([data-control-family="button"][data-chat-composer-attachment-remove="true"]:hover) {
|
|
126
|
-
background: oklch(from var(--foreground) l c h / 0.85);
|
|
133
|
+
--cui-button-hover-background: oklch(from var(--foreground) l c h / 0.85);
|
|
134
|
+
--cui-button-hover-foreground: var(--background);
|
|
127
135
|
}
|
|
128
136
|
}
|
|
129
137
|
|
|
130
138
|
:where([data-control-family="chat-composer-attachment"][data-slot="progress"]) {
|
|
131
|
-
block-size: calc(var(--spacing) * 1);
|
|
132
139
|
background: var(--cui-chat-composer-attachment-progress-background);
|
|
133
140
|
}
|
|
134
141
|
|
|
135
142
|
:where([data-control-family="chat-composer-attachment"][data-slot="progress-indicator"]) {
|
|
136
|
-
border-radius: 9999px;
|
|
137
143
|
background: var(--cui-chat-composer-attachment-progress-foreground);
|
|
138
|
-
transition-property:
|
|
144
|
+
transition-property: inline-size;
|
|
139
145
|
transition-duration: var(--duration-slow);
|
|
140
|
-
transition-timing-function: var(--ease-
|
|
146
|
+
transition-timing-function: var(--ease-standard);
|
|
141
147
|
}
|
|
142
148
|
}
|
|
143
149
|
|
|
@@ -147,6 +153,18 @@
|
|
|
147
153
|
initial-value: 0px;
|
|
148
154
|
}
|
|
149
155
|
|
|
156
|
+
@property --cui-chat-composer-attachment-height {
|
|
157
|
+
syntax: "<length>";
|
|
158
|
+
inherits: true;
|
|
159
|
+
initial-value: 0px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@property --cui-chat-composer-attachment-list-padding {
|
|
163
|
+
syntax: "<length>";
|
|
164
|
+
inherits: true;
|
|
165
|
+
initial-value: 0px;
|
|
166
|
+
}
|
|
167
|
+
|
|
150
168
|
@property --cui-chat-composer-attachment-background {
|
|
151
169
|
syntax: "<color>";
|
|
152
170
|
inherits: true;
|
|
@@ -164,6 +182,11 @@
|
|
|
164
182
|
inherits: true;
|
|
165
183
|
}
|
|
166
184
|
|
|
185
|
+
@property --cui-chat-composer-attachment-backdrop-filter {
|
|
186
|
+
syntax: "*";
|
|
187
|
+
inherits: true;
|
|
188
|
+
}
|
|
189
|
+
|
|
167
190
|
@property --cui-chat-composer-attachment-progress-background {
|
|
168
191
|
syntax: "<color>";
|
|
169
192
|
inherits: true;
|
|
@@ -175,3 +198,9 @@
|
|
|
175
198
|
inherits: true;
|
|
176
199
|
initial-value: transparent;
|
|
177
200
|
}
|
|
201
|
+
|
|
202
|
+
@property --cui-chat-composer-attachment-image-outline-color {
|
|
203
|
+
syntax: "<color>";
|
|
204
|
+
inherits: true;
|
|
205
|
+
initial-value: transparent;
|
|
206
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="chat-composer"][data-slot="root"]) {
|
|
3
|
-
--cui-chat-composer-root-background:
|
|
4
|
-
--cui-chat-composer-shell-background:
|
|
3
|
+
--cui-chat-composer-root-background: transparent;
|
|
4
|
+
--cui-chat-composer-shell-background: var(--card);
|
|
5
5
|
--cui-chat-composer-shell-background-image: none;
|
|
6
6
|
--cui-chat-composer-shell-backdrop-filter: none;
|
|
7
7
|
--cui-chat-composer-shell-border-color: var(--border);
|
|
8
|
+
--cui-chat-composer-shell-border-width: var(--control-rim-width);
|
|
8
9
|
--cui-chat-composer-shell-radius: var(--radius-field);
|
|
9
|
-
--cui-chat-composer-shell-shadow: var(--shadow-
|
|
10
|
-
--cui-chat-composer-input-foreground: var(--foreground);
|
|
10
|
+
--cui-chat-composer-shell-shadow: var(--shadow-md);
|
|
11
|
+
--cui-chat-composer-input-foreground: var(--card-foreground);
|
|
11
12
|
--cui-chat-composer-input-placeholder-foreground: var(--muted-foreground);
|
|
12
13
|
--cui-chat-composer-mention-radius: var(--radius-popup-item);
|
|
14
|
+
--cui-chat-composer-mention-icon-radius: min(var(--radius-sm), calc(var(--spacing) * 1));
|
|
13
15
|
--cui-chat-composer-mention-border-color: transparent;
|
|
14
16
|
--cui-chat-composer-mention-border-width: 0px;
|
|
15
17
|
--cui-chat-composer-mention-background: oklch(from var(--primary) l c h / 0.1);
|
|
@@ -18,33 +20,25 @@
|
|
|
18
20
|
background: var(--cui-chat-composer-root-background);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
@supports (backdrop-filter: blur(1px)) {
|
|
22
|
-
:where([data-control-family="chat-composer"][data-slot="root"]) {
|
|
23
|
-
--cui-chat-composer-root-background: oklch(from var(--background) l c h / 0.7);
|
|
24
|
-
backdrop-filter: blur(var(--backdrop-blur-popover));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
:where([data-control-family="chat-composer"][data-slot="shell"]) {
|
|
29
|
-
border:
|
|
24
|
+
border: var(--cui-chat-composer-shell-border-width) solid var(--cui-chat-composer-shell-border-color);
|
|
30
25
|
border-radius: var(--cui-chat-composer-shell-radius);
|
|
31
26
|
background-color: var(--cui-chat-composer-shell-background);
|
|
32
27
|
background-image: var(--cui-chat-composer-shell-background-image);
|
|
33
|
-
box-shadow:
|
|
34
|
-
inset 0 0 0 1px oklch(from var(--foreground) l c h / 0.04),
|
|
35
|
-
var(--cui-chat-composer-shell-shadow);
|
|
28
|
+
box-shadow: var(--cui-chat-composer-shell-shadow);
|
|
36
29
|
backdrop-filter: var(--cui-chat-composer-shell-backdrop-filter);
|
|
37
30
|
transition-property: box-shadow, filter, translate;
|
|
38
31
|
transition-duration: var(--duration-base);
|
|
39
32
|
transition-timing-function: var(--ease-emphasized);
|
|
40
33
|
}
|
|
41
34
|
|
|
42
|
-
:where(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
:where(
|
|
36
|
+
[data-control-family="chat-composer"][data-slot="shell"][data-keyboard-navigation]:has(
|
|
37
|
+
:is(textarea, [contenteditable="true"]):focus-visible
|
|
38
|
+
)
|
|
39
|
+
) {
|
|
40
|
+
outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring);
|
|
41
|
+
outline-offset: var(--focus-ring-offset);
|
|
48
42
|
}
|
|
49
43
|
|
|
50
44
|
:where([data-control-family="chat-composer"][data-slot="accent"]) {
|
|
@@ -76,9 +70,15 @@
|
|
|
76
70
|
opacity: 0.6;
|
|
77
71
|
}
|
|
78
72
|
|
|
73
|
+
:where([data-control-family="chat-composer"][data-slot="editor"] [aria-disabled="true"]) {
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
opacity: 0.6;
|
|
76
|
+
}
|
|
77
|
+
|
|
79
78
|
:where([data-control-family="chat-composer"][data-slot="toolbar"]) {
|
|
80
79
|
min-block-size: calc(var(--spacing) * 10);
|
|
81
80
|
gap: calc(var(--spacing) * 2);
|
|
81
|
+
flex-wrap: wrap;
|
|
82
82
|
padding-inline: calc(var(--spacing) * 2.5);
|
|
83
83
|
padding-block-end: calc(var(--spacing) * 2);
|
|
84
84
|
}
|
|
@@ -110,13 +110,20 @@
|
|
|
110
110
|
:where([data-control-family="chat-composer"][data-slot="mention-icon"]) {
|
|
111
111
|
inline-size: calc(var(--spacing) * 4);
|
|
112
112
|
block-size: calc(var(--spacing) * 4);
|
|
113
|
-
border-radius:
|
|
113
|
+
border-radius: var(--cui-chat-composer-mention-icon-radius);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
:where([data-control-family="chat-composer"][data-slot="mention-description"]) {
|
|
117
117
|
font-size: var(--text-micro);
|
|
118
118
|
color: var(--muted-foreground);
|
|
119
119
|
}
|
|
120
|
+
|
|
121
|
+
@media (pointer: coarse) {
|
|
122
|
+
:where([data-control-family="chat-composer"]:is([data-slot="textarea"], [data-slot="fallback"], [data-slot="placeholder"])),
|
|
123
|
+
:where([data-control-family="chat-composer"][data-slot="editor"] .ProseMirror) {
|
|
124
|
+
font-size: max(16px, var(--text-sm));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
120
127
|
}
|
|
121
128
|
|
|
122
129
|
@property --cui-chat-composer-root-background {
|
|
@@ -153,6 +160,12 @@
|
|
|
153
160
|
initial-value: transparent;
|
|
154
161
|
}
|
|
155
162
|
|
|
163
|
+
@property --cui-chat-composer-shell-border-width {
|
|
164
|
+
syntax: "<length>";
|
|
165
|
+
inherits: true;
|
|
166
|
+
initial-value: 0px;
|
|
167
|
+
}
|
|
168
|
+
|
|
156
169
|
@property --cui-chat-composer-shell-shadow {
|
|
157
170
|
syntax: "*";
|
|
158
171
|
inherits: true;
|
|
@@ -182,6 +195,12 @@
|
|
|
182
195
|
initial-value: 0px;
|
|
183
196
|
}
|
|
184
197
|
|
|
198
|
+
@property --cui-chat-composer-mention-icon-radius {
|
|
199
|
+
syntax: "<length>";
|
|
200
|
+
inherits: true;
|
|
201
|
+
initial-value: 0px;
|
|
202
|
+
}
|
|
203
|
+
|
|
185
204
|
@property --cui-chat-composer-mention-border-color {
|
|
186
205
|
syntax: "<color>";
|
|
187
206
|
inherits: true;
|
|
@@ -1,74 +1,57 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
:where([data-control-family="chat-layout"][data-slot="root"]) {
|
|
2
|
+
:where([data-control-family="chat-layout"][data-slot="root"][data-chrome]) {
|
|
3
3
|
--cui-chat-layout-radius: var(--radius-scene);
|
|
4
4
|
--cui-chat-layout-background: var(--background);
|
|
5
5
|
--cui-chat-layout-border-color: var(--border);
|
|
6
|
+
--cui-chat-layout-border-width: var(--control-rim-width);
|
|
6
7
|
--cui-chat-layout-shadow: var(--shadow-md);
|
|
7
|
-
--cui-chat-layout-
|
|
8
|
-
--cui-chat-layout-thought-hover-background: oklch(from var(--foreground) l c h / 0.04);
|
|
8
|
+
--cui-chat-layout-scroll-button-gap: calc(var(--spacing) * 3);
|
|
9
9
|
background: var(--cui-chat-layout-background);
|
|
10
|
-
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where([data-control-family="chat-layout"][data-slot="root"][data-chrome="panel"]) {
|
|
13
|
+
border: var(--cui-chat-layout-border-width) solid var(--cui-chat-layout-border-color);
|
|
11
14
|
border-radius: var(--cui-chat-layout-radius);
|
|
12
15
|
box-shadow: var(--cui-chat-layout-shadow);
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
:where([data-control-family="chat-layout"][data-
|
|
18
|
+
:where([data-control-family="chat-layout"][data-slot="thread-content"]) {
|
|
16
19
|
gap: calc(var(--spacing) * 8);
|
|
17
20
|
padding-block: calc(var(--spacing) * 6);
|
|
18
21
|
padding-inline: calc(var(--spacing) * 4);
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
@media (width >= 40rem) {
|
|
22
|
-
:where([data-control-family="chat-layout"][data-
|
|
25
|
+
:where([data-control-family="chat-layout"][data-slot="thread-content"]) {
|
|
23
26
|
padding-inline: calc(var(--spacing) * 8);
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
:where([data-control-family="chat-layout"][data-
|
|
28
|
-
|
|
30
|
+
:where([data-control-family="chat-layout"][data-slot="dock"])::before {
|
|
31
|
+
content: "";
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: calc(var(--scroll-fade-size) * -1) 0 0;
|
|
34
|
+
z-index: -1;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
background: var(--cui-chat-layout-background);
|
|
37
|
+
mask-image: linear-gradient(to bottom, transparent, oklch(0 0 0 / 0.7) calc(var(--scroll-fade-size) * 3));
|
|
29
38
|
}
|
|
30
39
|
|
|
31
|
-
:where([data-control-family="chat-layout"][data-slot="
|
|
32
|
-
|
|
40
|
+
:where([data-control-family="chat-layout"][data-slot="scroll-anchor"]) {
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset-block-end: calc(100% + var(--cui-chat-layout-scroll-button-gap));
|
|
43
|
+
inset-inline: 0;
|
|
44
|
+
margin-inline: auto;
|
|
33
45
|
inline-size: fit-content;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
border-radius: var(--radius-control);
|
|
38
|
-
color: var(--cui-chat-layout-thought-foreground);
|
|
39
|
-
font-size: var(--text-caption);
|
|
40
|
-
font-weight: var(--font-weight-medium);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@media (hover: hover) {
|
|
44
|
-
:where([data-control-family="chat-layout"][data-slot="trigger"]:hover) {
|
|
45
|
-
background: var(--cui-chat-layout-thought-hover-background);
|
|
46
|
-
color: var(--foreground);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:where([data-control-family="chat-layout"][data-slot="chevron"]) {
|
|
51
|
-
font-size: var(--text-sm);
|
|
52
|
-
line-height: 1;
|
|
53
|
-
transition: rotate var(--duration-base) var(--ease-emphasized);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:where([data-control-family="chat-layout"][data-slot="details"]) {
|
|
57
|
-
padding-inline: calc(var(--spacing) * 1);
|
|
58
|
-
padding-block: calc(var(--spacing) * 1) calc(var(--spacing) * 2);
|
|
59
|
-
color: var(--muted-foreground);
|
|
60
|
-
font-size: var(--text-caption);
|
|
61
|
-
line-height: calc(var(--spacing) * 5);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:where([data-control-family="chat-layout"][data-slot="title"]) {
|
|
65
|
-
color: var(--muted-foreground);
|
|
66
|
-
font-size: var(--text-caption);
|
|
67
|
-
font-weight: var(--font-weight-medium);
|
|
46
|
+
transition-property: opacity, scale, visibility;
|
|
47
|
+
transition-duration: var(--duration-base);
|
|
48
|
+
transition-timing-function: var(--ease-emphasized);
|
|
68
49
|
}
|
|
69
50
|
|
|
70
|
-
:where([data-control-family="chat-layout"][data-slot="
|
|
71
|
-
|
|
51
|
+
:where([data-control-family="chat-layout"][data-slot="scroll-anchor"][data-hidden]) {
|
|
52
|
+
opacity: 0;
|
|
53
|
+
scale: 0.9;
|
|
54
|
+
visibility: hidden;
|
|
72
55
|
}
|
|
73
56
|
}
|
|
74
57
|
|
|
@@ -90,19 +73,19 @@
|
|
|
90
73
|
initial-value: transparent;
|
|
91
74
|
}
|
|
92
75
|
|
|
93
|
-
@property --cui-chat-layout-
|
|
94
|
-
syntax: "
|
|
76
|
+
@property --cui-chat-layout-border-width {
|
|
77
|
+
syntax: "<length>";
|
|
95
78
|
inherits: true;
|
|
79
|
+
initial-value: 0px;
|
|
96
80
|
}
|
|
97
81
|
|
|
98
|
-
@property --cui-chat-layout-
|
|
99
|
-
syntax: "
|
|
82
|
+
@property --cui-chat-layout-shadow {
|
|
83
|
+
syntax: "*";
|
|
100
84
|
inherits: true;
|
|
101
|
-
initial-value: transparent;
|
|
102
85
|
}
|
|
103
86
|
|
|
104
|
-
@property --cui-chat-layout-
|
|
105
|
-
syntax: "<
|
|
87
|
+
@property --cui-chat-layout-scroll-button-gap {
|
|
88
|
+
syntax: "<length>";
|
|
106
89
|
inherits: true;
|
|
107
|
-
initial-value:
|
|
90
|
+
initial-value: 0px;
|
|
108
91
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--cui-chat-message-avatar-radius: 9999px;
|
|
4
4
|
--cui-chat-message-avatar-background: var(--card);
|
|
5
5
|
--cui-chat-message-avatar-border-color: var(--border);
|
|
6
|
-
--cui-chat-message-avatar-border-width:
|
|
6
|
+
--cui-chat-message-avatar-border-width: var(--control-rim-width);
|
|
7
7
|
--cui-chat-message-radius: 0px;
|
|
8
8
|
--cui-chat-message-corner-radius: 0px;
|
|
9
9
|
--cui-chat-message-background: transparent;
|
|
@@ -12,7 +12,58 @@
|
|
|
12
12
|
--cui-chat-message-border-color: transparent;
|
|
13
13
|
--cui-chat-message-border-width: 0px;
|
|
14
14
|
--cui-chat-message-shadow: none;
|
|
15
|
+
--cui-chat-message-pending-dot-color: var(--muted-foreground);
|
|
16
|
+
--cui-chat-message-pending-dot-size: calc(var(--spacing) * 1.5);
|
|
15
17
|
}
|
|
18
|
+
|
|
19
|
+
:where([data-control-family="chat-message"][data-slot="pending"]) {
|
|
20
|
+
gap: var(--cui-chat-message-pending-dot-size);
|
|
21
|
+
padding-block: calc(var(--spacing) * 2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where([data-control-family="chat-message"][data-slot="pending"] > span) {
|
|
25
|
+
inline-size: var(--cui-chat-message-pending-dot-size);
|
|
26
|
+
block-size: var(--cui-chat-message-pending-dot-size);
|
|
27
|
+
border-radius: 9999px;
|
|
28
|
+
background: var(--cui-chat-message-pending-dot-color);
|
|
29
|
+
animation: chat-message-pending calc(var(--duration-slow) * 3) var(--ease-standard) infinite;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([data-control-family="chat-message"][data-slot="pending"] > span:nth-child(2)) {
|
|
33
|
+
animation-delay: calc(var(--duration-slow) / 2);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-control-family="chat-message"][data-slot="pending"] > span:nth-child(3)) {
|
|
37
|
+
animation-delay: var(--duration-slow);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
:where([data-control-family="chat-message"][data-slot="pending"] > span) {
|
|
42
|
+
animation: none;
|
|
43
|
+
opacity: 1;
|
|
44
|
+
scale: 1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where([data-motion="reduced"] [data-control-family="chat-message"][data-slot="pending"] > span) {
|
|
49
|
+
animation: none;
|
|
50
|
+
opacity: 1;
|
|
51
|
+
scale: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes chat-message-pending {
|
|
55
|
+
0%,
|
|
56
|
+
60%,
|
|
57
|
+
100% {
|
|
58
|
+
opacity: 0.3;
|
|
59
|
+
scale: 0.75;
|
|
60
|
+
}
|
|
61
|
+
30% {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
scale: 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
16
67
|
:where([data-control-family="chat-message"][data-slot="row"]) {
|
|
17
68
|
gap: calc(var(--spacing) * 2);
|
|
18
69
|
padding-block: calc(var(--spacing) * 2);
|
|
@@ -27,7 +78,7 @@
|
|
|
27
78
|
}
|
|
28
79
|
|
|
29
80
|
:where([data-control-family="chat-message"][data-slot="root"]:not([data-role="user"]) [data-slot="body"]) {
|
|
30
|
-
max-inline-size:
|
|
81
|
+
max-inline-size: 100%;
|
|
31
82
|
flex: 1;
|
|
32
83
|
}
|
|
33
84
|
|
|
@@ -50,6 +101,7 @@
|
|
|
50
101
|
background-image: var(--cui-chat-message-background-image);
|
|
51
102
|
box-shadow: var(--cui-chat-message-shadow);
|
|
52
103
|
color: var(--cui-chat-message-foreground);
|
|
104
|
+
overflow-wrap: anywhere;
|
|
53
105
|
font-size: var(--text-body);
|
|
54
106
|
line-height: calc(var(--spacing) * 5);
|
|
55
107
|
}
|
|
@@ -68,24 +120,33 @@
|
|
|
68
120
|
:where([data-control-family="chat-message"][data-slot="actions"]) {
|
|
69
121
|
margin-block-start: calc(var(--spacing) * 1);
|
|
70
122
|
gap: calc(var(--spacing) * 1);
|
|
71
|
-
opacity:
|
|
123
|
+
opacity: 1;
|
|
72
124
|
transition-property: opacity;
|
|
73
|
-
transition-timing-function: var(--ease-standard);
|
|
74
125
|
transition-duration: var(--duration-fast);
|
|
126
|
+
transition-timing-function: var(--ease-standard);
|
|
75
127
|
}
|
|
76
128
|
|
|
77
|
-
@media (hover: hover) {
|
|
129
|
+
@media (hover: hover) and (pointer: fine) {
|
|
130
|
+
:where([data-control-family="chat-message"][data-slot="actions"]) {
|
|
131
|
+
opacity: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
78
134
|
:where([data-control-family="chat-message"][data-slot="row"]:hover [data-control-family="chat-message"][data-slot="actions"]) {
|
|
79
135
|
opacity: 1;
|
|
80
136
|
}
|
|
81
137
|
}
|
|
82
138
|
|
|
139
|
+
:where([data-control-family="chat-message"][data-slot="root"]:focus-within [data-slot="actions"]) {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
83
143
|
:where([data-control-family="chat-message"][data-slot="header"]) {
|
|
84
144
|
margin-block-end: calc(var(--spacing) * 1);
|
|
85
145
|
gap: calc(var(--spacing) * 2);
|
|
86
146
|
padding-inline: calc(var(--spacing) * 1);
|
|
87
147
|
font-size: var(--text-caption);
|
|
88
148
|
color: var(--muted-foreground);
|
|
149
|
+
font-variant-numeric: tabular-nums;
|
|
89
150
|
}
|
|
90
151
|
}
|
|
91
152
|
|
|
@@ -158,3 +219,15 @@
|
|
|
158
219
|
syntax: "*";
|
|
159
220
|
inherits: true;
|
|
160
221
|
}
|
|
222
|
+
|
|
223
|
+
@property --cui-chat-message-pending-dot-color {
|
|
224
|
+
syntax: "<color>";
|
|
225
|
+
inherits: true;
|
|
226
|
+
initial-value: transparent;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@property --cui-chat-message-pending-dot-size {
|
|
230
|
+
syntax: "<length>";
|
|
231
|
+
inherits: true;
|
|
232
|
+
initial-value: 0px;
|
|
233
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
inline-size: calc(var(--spacing) * 4);
|
|
5
5
|
block-size: calc(var(--spacing) * 4);
|
|
6
6
|
--cui-choice-radius: var(--radius-sm);
|
|
7
|
+
--cui-choice-shadow: var(--shadow-sm);
|
|
7
8
|
--cui-choice-border-color: var(--border);
|
|
8
9
|
--cui-choice-checked-background: var(--primary);
|
|
9
10
|
--cui-choice-checked-border-color: var(--primary);
|
|
@@ -12,10 +13,10 @@
|
|
|
12
13
|
background: var(--_choice-background);
|
|
13
14
|
box-shadow:
|
|
14
15
|
inset 0 0 0 1px var(--cui-choice-border-color),
|
|
15
|
-
var(--shadow
|
|
16
|
+
var(--cui-choice-shadow);
|
|
16
17
|
color: currentColor;
|
|
17
18
|
outline: none;
|
|
18
|
-
transition-property: background-color,
|
|
19
|
+
transition-property: background-color, color;
|
|
19
20
|
transition-duration: var(--duration-fast);
|
|
20
21
|
transition-timing-function: var(--ease-standard);
|
|
21
22
|
}
|
|
@@ -81,6 +82,18 @@
|
|
|
81
82
|
:where([data-control-family="choice"][data-choice-kind="checkbox"][data-slot="root"]) {
|
|
82
83
|
outline-style: none;
|
|
83
84
|
}
|
|
85
|
+
|
|
86
|
+
@media (pointer: coarse) {
|
|
87
|
+
:where([data-control-family="choice"][data-choice-kind="checkbox"][data-slot="root"])::after,
|
|
88
|
+
:where([data-control-family="choice"][data-choice-kind="radio-group"][data-slot="item"])::after {
|
|
89
|
+
content: "";
|
|
90
|
+
position: absolute;
|
|
91
|
+
inset: 50% 50%;
|
|
92
|
+
translate: -50% -50%;
|
|
93
|
+
inline-size: max(100%, 44px);
|
|
94
|
+
block-size: max(100%, 44px);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
84
97
|
}
|
|
85
98
|
|
|
86
99
|
@property --cui-choice-radius {
|
|
@@ -106,3 +119,9 @@
|
|
|
106
119
|
inherits: true;
|
|
107
120
|
initial-value: transparent;
|
|
108
121
|
}
|
|
122
|
+
|
|
123
|
+
@property --cui-choice-shadow {
|
|
124
|
+
syntax: "*";
|
|
125
|
+
inherits: true;
|
|
126
|
+
initial-value: none;
|
|
127
|
+
}
|