@ctrl-ui/react 0.8.2 → 0.8.4
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/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/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 +12 -21
- package/dist/chat-layout.js +28 -83
- package/dist/chat-message.d.ts +14 -15
- package/dist/context-model.d.ts +7 -8
- package/dist/context.d.ts +21 -22
- 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.d.ts +6 -7
- package/dist/email/length.d.ts +2 -3
- package/dist/email/templates.d.ts +7 -8
- package/dist/email/theme.d.ts +4 -5
- 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 +7 -8
- 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 +6 -7
- package/dist/inline-attachment.d.ts +16 -17
- 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/activity-knobs.d.ts +3 -4
- 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/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 +3 -1
- package/dist/knob-contracts/chat-composer-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-knobs.js +1 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-layout-knobs.js +2 -3
- package/dist/knob-contracts/chat-message-knobs.d.ts +3 -4
- 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/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 +2 -1
- package/dist/knob-contracts/inline-citation-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-citation-knobs.js +1 -0
- 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/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 +1 -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 +1 -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-input-format.js +1 -1
- 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/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 +1 -4
- package/dist/styles/recipes/accordion.css +8 -2
- package/dist/styles/recipes/action-bar.css +5 -2
- package/dist/styles/recipes/alert.css +95 -16
- package/dist/styles/recipes/avatar.css +17 -1
- package/dist/styles/recipes/badge.css +0 -1
- package/dist/styles/recipes/button.css +34 -8
- package/dist/styles/recipes/calendar.css +0 -6
- package/dist/styles/recipes/chat-composer-attachment.css +51 -53
- package/dist/styles/recipes/chat-composer.css +26 -21
- package/dist/styles/recipes/chat-layout.css +21 -62
- package/dist/styles/recipes/chat-message.css +11 -5
- package/dist/styles/recipes/choice.css +9 -2
- package/dist/styles/recipes/code-diff.css +8 -1
- package/dist/styles/recipes/code.css +39 -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/dockable-panel.css +8 -1
- package/dist/styles/recipes/dropzone.css +9 -2
- package/dist/styles/recipes/empty.css +118 -17
- package/dist/styles/recipes/environment-variables.css +8 -1
- package/dist/styles/recipes/field-parts.css +1 -6
- package/dist/styles/recipes/field.css +9 -5
- package/dist/styles/recipes/gradient-editor.css +16 -5
- package/dist/styles/recipes/inline-attachment.css +13 -8
- package/dist/styles/recipes/inline-citation.css +8 -4
- package/dist/styles/recipes/item.css +1 -1
- package/dist/styles/recipes/kbd.css +8 -0
- package/dist/styles/recipes/markdown-block.css +16 -2
- package/dist/styles/recipes/markdown.css +12 -0
- package/dist/styles/recipes/morphing-panel.css +1 -1
- package/dist/styles/recipes/pagination.css +0 -4
- package/dist/styles/recipes/phone-input.css +8 -4
- package/dist/styles/recipes/popup-lists.css +11 -0
- package/dist/styles/recipes/popup-toast.css +1 -29
- package/dist/styles/recipes/popup.css +2 -2
- package/dist/styles/recipes/progressive-blur.css +28 -7
- package/dist/styles/recipes/range.css +50 -1
- package/dist/styles/recipes/resizable.css +8 -10
- package/dist/styles/recipes/rich-tooltip.css +0 -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 +0 -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 +19 -2
- package/dist/styles/recipes/task-list.css +8 -2
- package/dist/styles/recipes/thread-rail.css +0 -4
- package/dist/styles/recipes/toolbar.css +18 -4
- package/dist/styles/recipes/track-highlight.css +63 -5
- package/dist/styles/recipes/tree.css +2 -0
- package/dist/styles/recipes/user-ask.css +8 -4
- package/dist/styles/theme.css +130 -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/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 +8 -6
- 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 +5 -3
- 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 +6 -4
- package/dist/ui/combobox-disabled-selection.d.ts +3 -4
- package/dist/ui/combobox.d.ts +19 -20
- package/dist/ui/combobox.js +5 -3
- package/dist/ui/command.d.ts +19 -18
- package/dist/ui/command.js +38 -12
- package/dist/ui/context-menu.d.ts +30 -31
- package/dist/ui/context-menu.js +8 -5
- package/dist/ui/dialog.d.ts +13 -13
- package/dist/ui/dialog.js +10 -8
- 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 +7 -6
- package/dist/ui/dropdown-menu.d.ts +32 -33
- package/dist/ui/dropdown-menu.js +5 -3
- package/dist/ui/dropzone.d.ts +24 -24
- 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/hover-card.d.ts +6 -7
- package/dist/ui/hover-card.js +5 -3
- package/dist/ui/infinite-canvas.d.ts +11 -12
- 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 +8 -5
- 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 +5 -3
- package/dist/ui/number-field.d.ts +15 -16
- package/dist/ui/pagination.d.ts +10 -11
- package/dist/ui/phone-input.d.ts +5 -6
- package/dist/ui/phone-input.js +40 -37
- package/dist/ui/popover.d.ts +11 -12
- package/dist/ui/popover.js +5 -3
- 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/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 +5 -5
- 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 +7 -4
- package/dist/ui/separator.d.ts +2 -3
- package/dist/ui/sheet.d.ts +8 -9
- package/dist/ui/sheet.js +7 -5
- 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 +21 -14
- 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 +7 -8
- 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 +5 -3
- 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 +24 -25
- package/package.json +15 -15
- 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,10 +1,19 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
+
:where(
|
|
3
|
+
[data-control-family="popup"][data-popup-kind="dialog"][data-slot="content"]
|
|
4
|
+
> [data-control-family="button"][data-popup-part="close"][data-icon-only="true"]
|
|
5
|
+
) {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 12px;
|
|
8
|
+
right: 12px;
|
|
9
|
+
}
|
|
2
10
|
:where([data-control-family="button"][data-control="true"]) {
|
|
3
11
|
--cui-button-radius: var(--radius-control);
|
|
4
12
|
--cui-button-gap: calc(var(--spacing) * 1.5);
|
|
5
13
|
--cui-button-icon: 1rem;
|
|
6
14
|
--cui-button-height: var(--control-h-md);
|
|
7
15
|
--cui-button-padding-inline: var(--padding-x);
|
|
16
|
+
--cui-button-icon-padding-inline: max(0px, calc(var(--cui-button-padding-inline) - var(--spacing) * 0.5));
|
|
8
17
|
--cui-button-font-size: var(--text-body);
|
|
9
18
|
--cui-button-background: transparent;
|
|
10
19
|
--cui-button-background-image: none;
|
|
@@ -31,7 +40,7 @@
|
|
|
31
40
|
cursor: pointer;
|
|
32
41
|
font-weight: var(--font-weight-medium);
|
|
33
42
|
outline: none;
|
|
34
|
-
transition-property:
|
|
43
|
+
transition-property: scale, translate;
|
|
35
44
|
transition-timing-function: var(--ease-standard);
|
|
36
45
|
transition-duration: var(--duration-fast);
|
|
37
46
|
}
|
|
@@ -65,6 +74,24 @@
|
|
|
65
74
|
font-size: var(--cui-button-font-size);
|
|
66
75
|
}
|
|
67
76
|
|
|
77
|
+
:where(
|
|
78
|
+
[data-control-family="button"][data-control="true"][data-size]:not([data-icon-only="true"]):has(
|
|
79
|
+
> :is(svg, [data-slot="icon"]):first-child:not(:only-child),
|
|
80
|
+
> [data-slot="content"] > :is(svg, [data-slot="icon"]):first-child:not(:only-child)
|
|
81
|
+
)
|
|
82
|
+
) {
|
|
83
|
+
padding-inline-start: var(--cui-button-icon-padding-inline);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where(
|
|
87
|
+
[data-control-family="button"][data-control="true"][data-size]:not([data-icon-only="true"]):has(
|
|
88
|
+
> :is(svg, [data-slot="icon"]):last-child:not(:only-child),
|
|
89
|
+
> [data-slot="content"] > :is(svg, [data-slot="icon"]):last-child:not(:only-child)
|
|
90
|
+
)
|
|
91
|
+
) {
|
|
92
|
+
padding-inline-end: var(--cui-button-icon-padding-inline);
|
|
93
|
+
}
|
|
94
|
+
|
|
68
95
|
:where([data-control-family="button"][data-icon-only="true"]) {
|
|
69
96
|
aspect-ratio: 1;
|
|
70
97
|
padding-inline: 0;
|
|
@@ -205,13 +232,6 @@
|
|
|
205
232
|
gap: calc(var(--spacing) * 1.5);
|
|
206
233
|
}
|
|
207
234
|
|
|
208
|
-
:where([data-control-family="button"][data-button-kind="model-switcher"][data-slot="indicator"]) {
|
|
209
|
-
inline-size: calc(var(--spacing) * 1.5);
|
|
210
|
-
block-size: calc(var(--spacing) * 1.5);
|
|
211
|
-
border-radius: calc(infinity * 1px);
|
|
212
|
-
background-color: var(--primary);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
235
|
:where([data-control-family="button"][data-slot="group"]) {
|
|
216
236
|
gap: calc(var(--spacing) * 1);
|
|
217
237
|
}
|
|
@@ -247,6 +267,12 @@
|
|
|
247
267
|
initial-value: 0px;
|
|
248
268
|
}
|
|
249
269
|
|
|
270
|
+
@property --cui-button-icon-padding-inline {
|
|
271
|
+
syntax: "<length-percentage>";
|
|
272
|
+
inherits: true;
|
|
273
|
+
initial-value: 0px;
|
|
274
|
+
}
|
|
275
|
+
|
|
250
276
|
@property --cui-button-font-size {
|
|
251
277
|
syntax: "<length-percentage>";
|
|
252
278
|
inherits: true;
|
|
@@ -41,9 +41,6 @@
|
|
|
41
41
|
border-radius: var(--radius-control);
|
|
42
42
|
outline: none;
|
|
43
43
|
color: var(--muted-foreground);
|
|
44
|
-
transition-property: background-color, color, box-shadow;
|
|
45
|
-
transition-duration: var(--duration-fast);
|
|
46
|
-
transition-timing-function: var(--ease-standard);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
@media (hover: hover) {
|
|
@@ -66,9 +63,6 @@
|
|
|
66
63
|
font-size: var(--text-sm);
|
|
67
64
|
font-weight: var(--font-weight-normal);
|
|
68
65
|
line-height: 1;
|
|
69
|
-
transition-property: background-color, color, box-shadow;
|
|
70
|
-
transition-duration: var(--duration-fast);
|
|
71
|
-
transition-timing-function: var(--ease-standard);
|
|
72
66
|
}
|
|
73
67
|
|
|
74
68
|
@media (hover: hover) {
|
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
:where([data-
|
|
3
|
-
--cui-chat-composer-attachment-background:
|
|
4
|
-
--cui-chat-composer-attachment-border-color:
|
|
5
|
-
--cui-chat-composer-attachment-radius: var(--radius-
|
|
6
|
-
--cui-chat-composer-attachment-
|
|
7
|
-
--cui-chat-composer-attachment-
|
|
8
|
-
|
|
2
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant]) {
|
|
3
|
+
--cui-chat-composer-attachment-background: var(--popover);
|
|
4
|
+
--cui-chat-composer-attachment-border-color: var(--control-rim);
|
|
5
|
+
--cui-chat-composer-attachment-radius: var(--radius-popover);
|
|
6
|
+
--cui-chat-composer-attachment-image-outline-color: oklch(from var(--foreground) l c h / 0.1);
|
|
7
|
+
--cui-chat-composer-attachment-shadow:
|
|
8
|
+
inset 0 0 0 var(--control-rim-width) var(--cui-chat-composer-attachment-border-color), var(--shadow-sm);
|
|
9
|
+
--cui-chat-composer-attachment-backdrop-filter: blur(var(--backdrop-blur-popover));
|
|
10
|
+
--cui-chat-composer-attachment-progress-background: transparent;
|
|
11
|
+
--cui-chat-composer-attachment-progress-foreground: oklch(from var(--background) l c h / var(--overlay-opacity));
|
|
9
12
|
block-size: calc(var(--spacing) * 14);
|
|
10
13
|
text-align: left;
|
|
11
|
-
border: 1px solid var(--cui-chat-composer-attachment-border-color);
|
|
12
14
|
border-radius: var(--cui-chat-composer-attachment-radius);
|
|
13
15
|
background: var(--cui-chat-composer-attachment-background);
|
|
14
|
-
box-shadow:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
transition-property: background-color, border-color, box-shadow;
|
|
16
|
+
box-shadow: var(--cui-chat-composer-attachment-shadow);
|
|
17
|
+
backdrop-filter: var(--cui-chat-composer-attachment-backdrop-filter);
|
|
18
|
+
transition-property: background-color, box-shadow;
|
|
18
19
|
transition-duration: var(--duration-base);
|
|
19
20
|
transition-timing-function: var(--ease-standard);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
:where([data-control-family="chat-composer-attachment"][data-slot="list"]) {
|
|
23
24
|
gap: calc(var(--spacing) * 2);
|
|
24
|
-
padding
|
|
25
|
-
padding-inline: calc(var(--spacing) * 3);
|
|
25
|
+
padding: calc(var(--spacing) * 3);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="preview"]) {
|
|
29
29
|
inline-size: fit-content;
|
|
30
30
|
max-inline-size: calc(var(--spacing) * 40);
|
|
31
|
-
padding: calc(var(--spacing) * 1);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="file"]) {
|
|
35
34
|
inline-size: calc(var(--spacing) * 64);
|
|
36
35
|
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
36
|
}
|
|
41
37
|
|
|
42
38
|
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="preview"] [data-slot="preview"]) {
|
|
@@ -46,29 +42,31 @@
|
|
|
46
42
|
max-inline-size: 100%;
|
|
47
43
|
}
|
|
48
44
|
|
|
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);
|
|
45
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="content"]) {
|
|
46
|
+
padding-inline: calc(var(--spacing) * 3) calc(var(--spacing) * 8);
|
|
59
47
|
}
|
|
60
48
|
|
|
61
49
|
: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);
|
|
50
|
+
--cui-chat-composer-attachment-border-color: oklch(from var(--destructive) l c h / 0.45);
|
|
66
51
|
}
|
|
67
52
|
|
|
68
53
|
:where([data-control-family="chat-composer-attachment"][data-slot="preview"]) {
|
|
69
|
-
border-radius: calc(var(--radius-field) - 0.25rem);
|
|
70
54
|
background: var(--muted);
|
|
71
55
|
color: var(--muted-foreground);
|
|
56
|
+
border-radius: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="preview"] > img) {
|
|
60
|
+
border-radius: inherit;
|
|
61
|
+
outline: 1px solid var(--cui-chat-composer-attachment-image-outline-color);
|
|
62
|
+
outline-offset: -1px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where([data-control-family="chat-composer-attachment"][data-slot="root"][data-variant="file"] [data-slot="preview"]) {
|
|
66
|
+
inline-size: calc(var(--spacing) * 14);
|
|
67
|
+
block-size: 100%;
|
|
68
|
+
border-start-end-radius: 0;
|
|
69
|
+
border-end-end-radius: 0;
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
:where([data-control-family="chat-composer-attachment"][data-kind="pdf"] [data-slot="preview"]) {
|
|
@@ -86,18 +84,8 @@
|
|
|
86
84
|
font-weight: var(--font-weight-semibold);
|
|
87
85
|
}
|
|
88
86
|
|
|
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
87
|
:where([data-control-family="chat-composer-attachment"][data-slot="title"]) {
|
|
100
|
-
color: var(--foreground);
|
|
88
|
+
color: var(--popover-foreground);
|
|
101
89
|
font-size: var(--text-label);
|
|
102
90
|
font-weight: var(--font-weight-medium);
|
|
103
91
|
}
|
|
@@ -115,29 +103,28 @@
|
|
|
115
103
|
inline-size: calc(var(--spacing) * 5);
|
|
116
104
|
block-size: calc(var(--spacing) * 5);
|
|
117
105
|
padding: 0;
|
|
118
|
-
|
|
119
|
-
background: var(--foreground);
|
|
120
|
-
|
|
121
|
-
|
|
106
|
+
--cui-button-radius: 9999px;
|
|
107
|
+
--cui-button-background: var(--foreground);
|
|
108
|
+
--cui-button-foreground: var(--background);
|
|
109
|
+
--cui-button-shadow: var(--shadow-sm);
|
|
122
110
|
}
|
|
123
111
|
|
|
124
112
|
@media (hover: hover) {
|
|
125
113
|
:where([data-control-family="button"][data-chat-composer-attachment-remove="true"]:hover) {
|
|
126
|
-
background: oklch(from var(--foreground) l c h / 0.85);
|
|
114
|
+
--cui-button-hover-background: oklch(from var(--foreground) l c h / 0.85);
|
|
115
|
+
--cui-button-hover-foreground: var(--background);
|
|
127
116
|
}
|
|
128
117
|
}
|
|
129
118
|
|
|
130
119
|
:where([data-control-family="chat-composer-attachment"][data-slot="progress"]) {
|
|
131
|
-
block-size: calc(var(--spacing) * 1);
|
|
132
120
|
background: var(--cui-chat-composer-attachment-progress-background);
|
|
133
121
|
}
|
|
134
122
|
|
|
135
123
|
:where([data-control-family="chat-composer-attachment"][data-slot="progress-indicator"]) {
|
|
136
|
-
border-radius: 9999px;
|
|
137
124
|
background: var(--cui-chat-composer-attachment-progress-foreground);
|
|
138
|
-
transition-property:
|
|
125
|
+
transition-property: inline-size;
|
|
139
126
|
transition-duration: var(--duration-slow);
|
|
140
|
-
transition-timing-function: var(--ease-
|
|
127
|
+
transition-timing-function: var(--ease-standard);
|
|
141
128
|
}
|
|
142
129
|
}
|
|
143
130
|
|
|
@@ -164,6 +151,11 @@
|
|
|
164
151
|
inherits: true;
|
|
165
152
|
}
|
|
166
153
|
|
|
154
|
+
@property --cui-chat-composer-attachment-backdrop-filter {
|
|
155
|
+
syntax: "*";
|
|
156
|
+
inherits: true;
|
|
157
|
+
}
|
|
158
|
+
|
|
167
159
|
@property --cui-chat-composer-attachment-progress-background {
|
|
168
160
|
syntax: "<color>";
|
|
169
161
|
inherits: true;
|
|
@@ -175,3 +167,9 @@
|
|
|
175
167
|
inherits: true;
|
|
176
168
|
initial-value: transparent;
|
|
177
169
|
}
|
|
170
|
+
|
|
171
|
+
@property --cui-chat-composer-attachment-image-outline-color {
|
|
172
|
+
syntax: "<color>";
|
|
173
|
+
inherits: true;
|
|
174
|
+
initial-value: transparent;
|
|
175
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
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: 1px;
|
|
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);
|
|
13
14
|
--cui-chat-composer-mention-border-color: transparent;
|
|
@@ -18,33 +19,25 @@
|
|
|
18
19
|
background: var(--cui-chat-composer-root-background);
|
|
19
20
|
}
|
|
20
21
|
|
|
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
22
|
:where([data-control-family="chat-composer"][data-slot="shell"]) {
|
|
29
|
-
border:
|
|
23
|
+
border: var(--cui-chat-composer-shell-border-width) solid var(--cui-chat-composer-shell-border-color);
|
|
30
24
|
border-radius: var(--cui-chat-composer-shell-radius);
|
|
31
25
|
background-color: var(--cui-chat-composer-shell-background);
|
|
32
26
|
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);
|
|
27
|
+
box-shadow: var(--cui-chat-composer-shell-shadow);
|
|
36
28
|
backdrop-filter: var(--cui-chat-composer-shell-backdrop-filter);
|
|
37
29
|
transition-property: box-shadow, filter, translate;
|
|
38
30
|
transition-duration: var(--duration-base);
|
|
39
31
|
transition-timing-function: var(--ease-emphasized);
|
|
40
32
|
}
|
|
41
33
|
|
|
42
|
-
:where(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
34
|
+
:where(
|
|
35
|
+
[data-control-family="chat-composer"][data-slot="shell"][data-keyboard-navigation]:has(
|
|
36
|
+
:is(textarea, [contenteditable="true"]):focus-visible
|
|
37
|
+
)
|
|
38
|
+
) {
|
|
39
|
+
outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring);
|
|
40
|
+
outline-offset: var(--focus-ring-offset);
|
|
48
41
|
}
|
|
49
42
|
|
|
50
43
|
:where([data-control-family="chat-composer"][data-slot="accent"]) {
|
|
@@ -76,9 +69,15 @@
|
|
|
76
69
|
opacity: 0.6;
|
|
77
70
|
}
|
|
78
71
|
|
|
72
|
+
:where([data-control-family="chat-composer"][data-slot="editor"] [aria-disabled="true"]) {
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
opacity: 0.6;
|
|
75
|
+
}
|
|
76
|
+
|
|
79
77
|
:where([data-control-family="chat-composer"][data-slot="toolbar"]) {
|
|
80
78
|
min-block-size: calc(var(--spacing) * 10);
|
|
81
79
|
gap: calc(var(--spacing) * 2);
|
|
80
|
+
flex-wrap: wrap;
|
|
82
81
|
padding-inline: calc(var(--spacing) * 2.5);
|
|
83
82
|
padding-block-end: calc(var(--spacing) * 2);
|
|
84
83
|
}
|
|
@@ -153,6 +152,12 @@
|
|
|
153
152
|
initial-value: transparent;
|
|
154
153
|
}
|
|
155
154
|
|
|
155
|
+
@property --cui-chat-composer-shell-border-width {
|
|
156
|
+
syntax: "<length>";
|
|
157
|
+
inherits: true;
|
|
158
|
+
initial-value: 0px;
|
|
159
|
+
}
|
|
160
|
+
|
|
156
161
|
@property --cui-chat-composer-shell-shadow {
|
|
157
162
|
syntax: "*";
|
|
158
163
|
inherits: true;
|
|
@@ -1,74 +1,39 @@
|
|
|
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: 1px;
|
|
6
7
|
--cui-chat-layout-shadow: var(--shadow-md);
|
|
7
|
-
--cui-chat-layout-thought-foreground: var(--muted-foreground);
|
|
8
|
-
--cui-chat-layout-thought-hover-background: oklch(from var(--foreground) l c h / 0.04);
|
|
9
8
|
background: var(--cui-chat-layout-background);
|
|
10
|
-
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where([data-control-family="chat-layout"][data-slot="root"][data-chrome="panel"]) {
|
|
12
|
+
border: var(--cui-chat-layout-border-width) solid var(--cui-chat-layout-border-color);
|
|
11
13
|
border-radius: var(--cui-chat-layout-radius);
|
|
12
14
|
box-shadow: var(--cui-chat-layout-shadow);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
:where([data-control-family="chat-layout"][data-
|
|
17
|
+
:where([data-control-family="chat-layout"][data-slot="thread-content"]) {
|
|
16
18
|
gap: calc(var(--spacing) * 8);
|
|
17
19
|
padding-block: calc(var(--spacing) * 6);
|
|
18
20
|
padding-inline: calc(var(--spacing) * 4);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
@media (width >= 40rem) {
|
|
22
|
-
:where([data-control-family="chat-layout"][data-
|
|
24
|
+
:where([data-control-family="chat-layout"][data-slot="thread-content"]) {
|
|
23
25
|
padding-inline: calc(var(--spacing) * 8);
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
:where([data-control-family="chat-layout"][data-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
padding-inline: calc(var(--spacing) * 1.5);
|
|
36
|
-
padding-block: calc(var(--spacing) * 1);
|
|
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);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
:where([data-control-family="chat-layout"][data-slot="trigger"][data-state="open"] > span:last-child) {
|
|
71
|
-
rotate: 90deg;
|
|
29
|
+
:where([data-control-family="chat-layout"][data-slot="dock"])::before {
|
|
30
|
+
content: "";
|
|
31
|
+
position: absolute;
|
|
32
|
+
inset: calc(var(--scroll-fade-size) * -1) 0 0;
|
|
33
|
+
z-index: -1;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
background: var(--cui-chat-layout-background);
|
|
36
|
+
mask-image: linear-gradient(to bottom, transparent, oklch(0 0 0 / 0.7) calc(var(--scroll-fade-size) * 3));
|
|
72
37
|
}
|
|
73
38
|
}
|
|
74
39
|
|
|
@@ -90,19 +55,13 @@
|
|
|
90
55
|
initial-value: transparent;
|
|
91
56
|
}
|
|
92
57
|
|
|
93
|
-
@property --cui-chat-layout-
|
|
94
|
-
syntax: "
|
|
95
|
-
inherits: true;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@property --cui-chat-layout-thought-foreground {
|
|
99
|
-
syntax: "<color>";
|
|
58
|
+
@property --cui-chat-layout-border-width {
|
|
59
|
+
syntax: "<length>";
|
|
100
60
|
inherits: true;
|
|
101
|
-
initial-value:
|
|
61
|
+
initial-value: 0px;
|
|
102
62
|
}
|
|
103
63
|
|
|
104
|
-
@property --cui-chat-layout-
|
|
105
|
-
syntax: "
|
|
64
|
+
@property --cui-chat-layout-shadow {
|
|
65
|
+
syntax: "*";
|
|
106
66
|
inherits: true;
|
|
107
|
-
initial-value: transparent;
|
|
108
67
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:where([data-control-family="chat-message"][data-slot="root"]:not([data-role="user"]) [data-slot="body"]) {
|
|
30
|
-
max-inline-size:
|
|
30
|
+
max-inline-size: 100%;
|
|
31
31
|
flex: 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
background-image: var(--cui-chat-message-background-image);
|
|
51
51
|
box-shadow: var(--cui-chat-message-shadow);
|
|
52
52
|
color: var(--cui-chat-message-foreground);
|
|
53
|
+
overflow-wrap: anywhere;
|
|
53
54
|
font-size: var(--text-body);
|
|
54
55
|
line-height: calc(var(--spacing) * 5);
|
|
55
56
|
}
|
|
@@ -68,18 +69,23 @@
|
|
|
68
69
|
:where([data-control-family="chat-message"][data-slot="actions"]) {
|
|
69
70
|
margin-block-start: calc(var(--spacing) * 1);
|
|
70
71
|
gap: calc(var(--spacing) * 1);
|
|
71
|
-
opacity:
|
|
72
|
-
transition-property: opacity;
|
|
73
|
-
transition-timing-function: var(--ease-standard);
|
|
74
|
-
transition-duration: var(--duration-fast);
|
|
72
|
+
opacity: 1;
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
@media (hover: hover) {
|
|
76
|
+
:where([data-control-family="chat-message"][data-slot="actions"]) {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
78
80
|
:where([data-control-family="chat-message"][data-slot="row"]:hover [data-control-family="chat-message"][data-slot="actions"]) {
|
|
79
81
|
opacity: 1;
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
|
|
85
|
+
:where([data-control-family="chat-message"][data-slot="root"]:focus-within [data-slot="actions"]) {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
83
89
|
:where([data-control-family="chat-message"][data-slot="header"]) {
|
|
84
90
|
margin-block-end: calc(var(--spacing) * 1);
|
|
85
91
|
gap: calc(var(--spacing) * 2);
|
|
@@ -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
|
}
|
|
@@ -106,3 +107,9 @@
|
|
|
106
107
|
inherits: true;
|
|
107
108
|
initial-value: transparent;
|
|
108
109
|
}
|
|
110
|
+
|
|
111
|
+
@property --cui-choice-shadow {
|
|
112
|
+
syntax: "*";
|
|
113
|
+
inherits: true;
|
|
114
|
+
initial-value: none;
|
|
115
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
margin-block: calc(var(--spacing) * 4);
|
|
4
4
|
--cui-code-diff-background: var(--background);
|
|
5
5
|
--cui-code-diff-border-color: var(--border);
|
|
6
|
+
--cui-code-diff-border-width: 1px;
|
|
6
7
|
--cui-code-diff-radius: var(--radius-panel);
|
|
7
8
|
--cui-code-diff-shadow: var(--shadow-sm);
|
|
8
9
|
--cui-code-diff-foreground: var(--code-foreground);
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
--cui-code-diff-expand-button-shadow: none;
|
|
15
16
|
--cui-code-diff-expand-button-hover-background: oklch(from var(--foreground) l c h / 0.08);
|
|
16
17
|
--cui-code-diff-expand-button-hover-foreground: var(--foreground);
|
|
17
|
-
border:
|
|
18
|
+
border: var(--cui-code-diff-border-width) solid var(--cui-code-diff-border-color);
|
|
18
19
|
border-radius: var(--cui-code-diff-radius);
|
|
19
20
|
background: var(--cui-code-diff-background);
|
|
20
21
|
box-shadow: var(--cui-code-diff-shadow);
|
|
@@ -202,6 +203,12 @@
|
|
|
202
203
|
initial-value: transparent;
|
|
203
204
|
}
|
|
204
205
|
|
|
206
|
+
@property --cui-code-diff-border-width {
|
|
207
|
+
syntax: "<length>";
|
|
208
|
+
inherits: true;
|
|
209
|
+
initial-value: 0px;
|
|
210
|
+
}
|
|
211
|
+
|
|
205
212
|
@property --cui-code-diff-foreground {
|
|
206
213
|
syntax: "<color>";
|
|
207
214
|
inherits: true;
|