@ctrl-ui/react 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-bar.d.ts +15 -7
- package/dist/action-bar.js +39 -19
- package/dist/activity.js +7 -15
- package/dist/audio-recorder.d.ts +14 -4
- package/dist/audio-recorder.js +82 -29
- package/dist/audio-visualizer.js +1 -1
- package/dist/blocks/coding-agent.js +54 -57
- package/dist/blocks/design-canvas-data.d.ts +32 -0
- package/dist/blocks/design-canvas-data.js +100 -0
- package/dist/blocks/design-canvas-inspector.d.ts +8 -0
- package/dist/blocks/design-canvas-inspector.js +238 -0
- package/dist/blocks/design-canvas.d.ts +21 -0
- package/dist/blocks/design-canvas.js +452 -0
- package/dist/blocks/discussion.d.ts +28 -0
- package/dist/blocks/discussion.js +67 -0
- package/dist/blocks/file-explorer-data.d.ts +1 -0
- package/dist/blocks/file-explorer-data.js +4 -1
- package/dist/blocks/file-explorer.d.ts +9 -1
- package/dist/blocks/file-explorer.js +461 -192
- package/dist/blocks/settings.d.ts +2 -1
- package/dist/blocks/settings.js +101 -79
- package/dist/blocks/team-chat.d.ts +12 -0
- package/dist/blocks/team-chat.js +26 -0
- package/dist/blocks/theme-toggle.js +23 -31
- package/dist/chat-composer-attachment.d.ts +12 -3
- package/dist/chat-composer-attachment.js +61 -19
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -1
- package/dist/chat-composer-editor/extensions/mention.js +58 -27
- package/dist/chat-composer-editor/ghost.js +2 -4
- package/dist/chat-composer-editor/types.d.ts +5 -0
- package/dist/chat-composer-editor.d.ts +1 -1
- package/dist/chat-composer-editor.js +71 -28
- package/dist/chat-composer.d.ts +13 -32
- package/dist/chat-composer.js +54 -13
- package/dist/chat-layout.d.ts +19 -0
- package/dist/chat-layout.js +96 -32
- package/dist/chat-message/social.d.ts +26 -0
- package/dist/chat-message/social.js +122 -0
- package/dist/chat-message.d.ts +28 -29
- package/dist/chat-message.js +106 -25
- package/dist/context.d.ts +2 -2
- package/dist/context.js +38 -23
- package/dist/dynamic-notification-canvas-loop.d.ts +24 -0
- package/dist/dynamic-notification-canvas-loop.js +113 -0
- package/dist/dynamic-notification-glass.js +23 -114
- package/dist/dynamic-notification-liquid.js +14 -118
- package/dist/dynamic-notification.d.ts +16 -8
- package/dist/dynamic-notification.js +85 -22
- package/dist/email/email-brand.d.ts +7 -4
- package/dist/email/email-brand.js +9 -6
- package/dist/email/email-code.d.ts +3 -2
- package/dist/email/email-code.js +11 -9
- package/dist/email/email-footer.d.ts +5 -3
- package/dist/email/email-footer.js +11 -5
- package/dist/email/email.d.ts +31 -9
- package/dist/email/email.js +50 -26
- package/dist/email/templates.d.ts +10 -9
- package/dist/email/templates.js +102 -38
- package/dist/email/theme.js +1 -1
- package/dist/environment-variables.d.ts +4 -2
- package/dist/environment-variables.js +52 -32
- package/dist/filter-bar/context.d.ts +32 -0
- package/dist/filter-bar/context.js +11 -0
- package/dist/filter-bar/editor.d.ts +14 -0
- package/dist/filter-bar/editor.js +216 -0
- package/dist/filter-bar/model.d.ts +10 -0
- package/dist/filter-bar/model.js +57 -0
- package/dist/filter-bar/motion.d.ts +10 -0
- package/dist/filter-bar/motion.js +84 -0
- package/dist/filter-bar/parts.d.ts +19 -0
- package/dist/filter-bar/parts.js +244 -0
- package/dist/filter-bar/types.d.ts +54 -0
- package/dist/filter-bar/types.js +0 -0
- package/dist/filter-bar.d.ts +27 -0
- package/dist/filter-bar.js +310 -0
- package/dist/hooks/use-audio-recorder.js +12 -6
- package/dist/hooks/use-chat-composer.d.ts +21 -7
- package/dist/hooks/use-chat-composer.js +32 -5
- package/dist/hooks/use-chat-message.d.ts +28 -2
- package/dist/hooks/use-chat-message.js +41 -10
- package/dist/hooks/use-chat-thread-scroll.js +43 -7
- package/dist/hooks/use-color-area.d.ts +3 -3
- package/dist/hooks/use-color-area.js +13 -12
- package/dist/hooks/use-copy-to-clipboard.d.ts +2 -1
- package/dist/hooks/use-copy-to-clipboard.js +20 -20
- package/dist/hooks/use-dropzone.d.ts +7 -4
- package/dist/hooks/use-dropzone.js +34 -3
- package/dist/hooks/use-dynamic-notification.d.ts +6 -2
- package/dist/hooks/use-dynamic-notification.js +26 -10
- package/dist/hooks/use-mobile.d.ts +3 -2
- package/dist/hooks/use-mobile.js +8 -4
- package/dist/hooks/use-textarea-trigger-menu.js +2 -1
- package/dist/hooks/use-trigger-menu.d.ts +54 -0
- package/dist/hooks/use-trigger-menu.js +102 -47
- package/dist/hooks/use-user-ask.d.ts +2 -0
- package/dist/hooks/use-user-ask.js +35 -41
- package/dist/inline-attachment.d.ts +6 -2
- package/dist/inline-attachment.js +44 -29
- package/dist/inline-citation.d.ts +12 -5
- package/dist/inline-citation.js +25 -16
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-recorder-knobs.js +2 -1
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-visualizer-knobs.js +2 -1
- package/dist/knob-contracts/avatar-knobs.d.ts +1 -1
- package/dist/knob-contracts/avatar-knobs.js +6 -1
- package/dist/knob-contracts/badge-knobs.d.ts +1 -1
- package/dist/knob-contracts/badge-knobs.js +2 -1
- package/dist/knob-contracts/breadcrumb-knobs.d.ts +4 -0
- package/dist/knob-contracts/breadcrumb-knobs.js +8 -0
- package/dist/knob-contracts/button-knobs.d.ts +1 -1
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-layout-knobs.js +2 -1
- package/dist/knob-contracts/chat-message-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-message-knobs.js +8 -1
- package/dist/knob-contracts/choice-knobs.d.ts +1 -1
- package/dist/knob-contracts/choice-knobs.js +1 -0
- package/dist/knob-contracts/code-diff-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-diff-knobs.js +2 -0
- package/dist/knob-contracts/code-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-knobs.js +2 -1
- package/dist/knob-contracts/collapsible-knobs.d.ts +1 -1
- package/dist/knob-contracts/collapsible-knobs.js +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.js +2 -0
- package/dist/knob-contracts/emoji-picker-knobs.d.ts +4 -0
- package/dist/knob-contracts/emoji-picker-knobs.js +10 -0
- package/dist/knob-contracts/field-knobs.d.ts +1 -1
- package/dist/knob-contracts/field-knobs.js +5 -1
- package/dist/knob-contracts/filter-bar-knobs.d.ts +4 -0
- package/dist/knob-contracts/filter-bar-knobs.js +15 -0
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +1 -1
- package/dist/knob-contracts/infinite-canvas-knobs.js +3 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +1 -1
- package/dist/knob-contracts/markdown-knobs.js +3 -1
- package/dist/knob-contracts/page-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/page-layout-knobs.js +4 -1
- package/dist/knob-contracts/popup-knobs.d.ts +1 -1
- package/dist/knob-contracts/popup-knobs.js +28 -0
- package/dist/knob-contracts/range-knobs.d.ts +1 -1
- package/dist/knob-contracts/range-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +1 -1
- package/dist/knob-contracts/rich-tooltip-knobs.js +2 -1
- package/dist/knob-contracts/sidebar-knobs.d.ts +1 -1
- package/dist/knob-contracts/sidebar-knobs.js +27 -2
- package/dist/knob-contracts/spinner-knobs.d.ts +1 -1
- package/dist/knob-contracts/spinner-knobs.js +1 -1
- package/dist/knob-contracts/stepper-knobs.d.ts +1 -1
- package/dist/knob-contracts/stepper-knobs.js +4 -1
- package/dist/knob-contracts/switch-knobs.d.ts +1 -1
- package/dist/knob-contracts/switch-knobs.js +5 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +1 -1
- package/dist/knob-contracts/table-of-contents-knobs.js +4 -5
- package/dist/knob-contracts/tabs-knobs.d.ts +1 -1
- package/dist/knob-contracts/tabs-knobs.js +1 -0
- package/dist/knob-contracts/tree-knobs.d.ts +1 -1
- package/dist/knob-contracts/tree-knobs.js +2 -1
- package/dist/lib/cn.js +0 -4
- package/dist/lib/contrast.d.ts +1 -0
- package/dist/lib/contrast.js +17 -5
- package/dist/lib/dropzone-validation.js +41 -28
- package/dist/lib/env-file.d.ts +1 -1
- package/dist/lib/env-file.js +5 -5
- package/dist/lib/motion.d.ts +4 -0
- package/dist/lib/motion.js +15 -0
- package/dist/lib/trigger-detect.js +6 -8
- package/dist/markdown-block.js +13 -8
- package/dist/popup-parts.d.ts +8 -0
- package/dist/popup-parts.js +43 -0
- package/dist/scripts/contrast-eval.js +5 -4
- package/dist/source-badge.js +3 -1
- package/dist/styles/code.css +0 -2
- package/dist/styles/effects.css +6 -32
- package/dist/styles/index.css +14 -8
- package/dist/styles/recipes/accordion.css +9 -6
- package/dist/styles/recipes/action-bar.css +0 -15
- package/dist/styles/recipes/activity.css +5 -11
- package/dist/styles/recipes/alert.css +4 -4
- package/dist/styles/recipes/audio-recorder.css +15 -3
- package/dist/styles/recipes/audio-visualizer.css +13 -2
- package/dist/styles/recipes/avatar.css +78 -1
- package/dist/styles/recipes/badge.css +14 -4
- package/dist/styles/recipes/breadcrumb.css +77 -0
- package/dist/styles/recipes/button-group.css +6 -8
- package/dist/styles/recipes/button-states.css +66 -0
- package/dist/styles/recipes/button.css +26 -85
- package/dist/styles/recipes/calendar.css +17 -23
- package/dist/styles/recipes/card.css +2 -2
- package/dist/styles/recipes/chat-composer-attachment.css +9 -3
- package/dist/styles/recipes/chat-composer.css +21 -16
- package/dist/styles/recipes/chat-layout.css +64 -2
- package/dist/styles/recipes/chat-message-social.css +123 -0
- package/dist/styles/recipes/chat-message.css +157 -37
- package/dist/styles/recipes/choice.css +25 -21
- package/dist/styles/recipes/code-diff.css +51 -26
- package/dist/styles/recipes/code.css +44 -18
- package/dist/styles/recipes/collapsible.css +43 -1
- package/dist/styles/recipes/color-picker-details.css +3 -4
- package/dist/styles/recipes/color-picker-values.css +9 -8
- package/dist/styles/recipes/color-picker.css +23 -4
- package/dist/styles/recipes/context.css +3 -3
- package/dist/styles/recipes/dockable-panel.css +18 -7
- package/dist/styles/recipes/dropzone.css +7 -8
- package/dist/styles/recipes/dynamic-notification-input.css +8 -5
- package/dist/styles/recipes/dynamic-notification-motion.css +12 -21
- package/dist/styles/recipes/dynamic-notification.css +40 -26
- package/dist/styles/recipes/emoji-picker.css +132 -0
- package/dist/styles/recipes/empty.css +5 -4
- package/dist/styles/recipes/environment-variables.css +4 -15
- package/dist/styles/recipes/field-parts.css +89 -21
- package/dist/styles/recipes/field.css +83 -26
- package/dist/styles/recipes/filter-bar.css +161 -0
- package/dist/styles/recipes/gradient-editor.css +18 -7
- package/dist/styles/recipes/infinite-canvas.css +51 -4
- package/dist/styles/recipes/inline-attachment.css +9 -4
- package/dist/styles/recipes/inline-citation.css +10 -4
- package/dist/styles/recipes/item.css +23 -9
- package/dist/styles/recipes/markdown-block.css +5 -4
- package/dist/styles/recipes/markdown.css +68 -26
- package/dist/styles/recipes/morphing-panel.css +8 -8
- package/dist/styles/recipes/page-layout.css +36 -10
- package/dist/styles/recipes/pagination.css +5 -6
- package/dist/styles/recipes/phone-input.css +12 -8
- package/dist/styles/recipes/popup-controls.css +175 -26
- package/dist/styles/recipes/popup-drawer.css +35 -44
- package/dist/styles/recipes/popup-lists.css +139 -29
- package/dist/styles/recipes/popup-motion.css +4 -45
- package/dist/styles/recipes/popup-toast.css +55 -26
- package/dist/styles/recipes/popup.css +149 -153
- package/dist/styles/recipes/range.css +55 -19
- package/dist/styles/recipes/resizable.css +36 -7
- package/dist/styles/recipes/rich-tooltip.css +24 -34
- package/dist/styles/recipes/scroll-area.css +8 -1
- package/dist/styles/recipes/sidebar-menu.css +149 -34
- package/dist/styles/recipes/sidebar-parts.css +154 -0
- package/dist/styles/recipes/sidebar.css +187 -128
- package/dist/styles/recipes/source-badge.css +1 -1
- package/dist/styles/recipes/spinner.css +12 -1
- package/dist/styles/recipes/stepper.css +31 -13
- package/dist/styles/recipes/switch.css +68 -23
- package/dist/styles/recipes/table-of-contents.css +49 -41
- package/dist/styles/recipes/table.css +14 -10
- package/dist/styles/recipes/tabs.css +38 -12
- package/dist/styles/recipes/task-list.css +7 -14
- package/dist/styles/recipes/thread-rail.css +42 -19
- package/dist/styles/recipes/timeline.css +2 -0
- package/dist/styles/recipes/toolbar.css +27 -25
- package/dist/styles/recipes/track-highlight.css +12 -8
- package/dist/styles/recipes/transcript-divider.css +2 -2
- package/dist/styles/recipes/tree.css +31 -4
- package/dist/styles/recipes/user-ask-details.css +0 -1
- package/dist/styles/recipes/user-ask.css +4 -4
- package/dist/styles/theme.css +287 -107
- package/dist/task-list.d.ts +4 -1
- package/dist/task-list.js +24 -8
- package/dist/thread-rail.d.ts +1 -1
- package/dist/thread-rail.js +61 -19
- package/dist/transcript-divider.js +2 -1
- package/dist/ui/alert.d.ts +3 -1
- package/dist/ui/alert.js +14 -8
- package/dist/ui/autocomplete.js +7 -1
- package/dist/ui/avatar.d.ts +8 -0
- package/dist/ui/avatar.js +23 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.ts +27 -0
- package/dist/ui/breadcrumb.js +88 -0
- package/dist/ui/button.d.ts +2 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/calendar.js +2 -2
- package/dist/ui/card.d.ts +3 -1
- package/dist/ui/card.js +12 -7
- package/dist/ui/checkbox-group.js +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/code-diff.d.ts +1 -1
- package/dist/ui/code-diff.js +71 -27
- package/dist/ui/code.d.ts +5 -3
- package/dist/ui/code.js +27 -28
- package/dist/ui/color-picker.d.ts +5 -2
- package/dist/ui/color-picker.js +84 -36
- package/dist/ui/combobox-disabled-selection.d.ts +1 -2
- package/dist/ui/combobox-disabled-selection.js +7 -8
- package/dist/ui/combobox.d.ts +5 -23
- package/dist/ui/combobox.js +36 -16
- package/dist/ui/command.d.ts +8 -2
- package/dist/ui/command.js +39 -15
- package/dist/ui/context-menu.js +3 -0
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +3 -22
- package/dist/ui/dockable-panel-geometry.d.ts +1 -0
- package/dist/ui/dockable-panel-geometry.js +7 -1
- package/dist/ui/dockable-panel.d.ts +9 -6
- package/dist/ui/dockable-panel.js +81 -33
- package/dist/ui/drawer.d.ts +7 -4
- package/dist/ui/drawer.js +35 -22
- package/dist/ui/dropdown-menu.js +4 -3
- package/dist/ui/dropzone.d.ts +5 -3
- package/dist/ui/dropzone.js +78 -17
- package/dist/ui/emoji-picker.d.ts +18 -0
- package/dist/ui/emoji-picker.js +136 -0
- package/dist/ui/empty.d.ts +3 -1
- package/dist/ui/empty.js +12 -7
- package/dist/ui/field.js +1 -1
- package/dist/ui/gradient-editor.d.ts +1 -1
- package/dist/ui/gradient-editor.js +37 -21
- package/dist/ui/infinite-canvas.d.ts +13 -1
- package/dist/ui/infinite-canvas.js +139 -20
- package/dist/ui/input-group.d.ts +2 -4
- package/dist/ui/input-group.js +13 -14
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.js +32 -15
- package/dist/ui/input.js +11 -2
- package/dist/ui/item.d.ts +2 -1
- package/dist/ui/item.js +11 -7
- package/dist/ui/live-status.d.ts +7 -0
- package/dist/ui/live-status.js +17 -0
- package/dist/ui/markdown-elements.d.ts +6 -0
- package/dist/ui/markdown-elements.js +42 -9
- package/dist/ui/menubar.js +2 -2
- package/dist/ui/morphing-panel.js +2 -1
- package/dist/ui/native-select.d.ts +1 -1
- package/dist/ui/native-select.js +24 -11
- package/dist/ui/number-field.d.ts +1 -1
- package/dist/ui/number-field.js +13 -2
- package/dist/ui/page-layout.d.ts +2 -2
- package/dist/ui/page-layout.js +2 -4
- package/dist/ui/pagination.d.ts +7 -5
- package/dist/ui/pagination.js +19 -13
- package/dist/ui/phone-input.d.ts +1 -0
- package/dist/ui/phone-input.js +56 -58
- package/dist/ui/radio-group.d.ts +3 -0
- package/dist/ui/radio-group.js +11 -1
- package/dist/ui/resizable.d.ts +20 -2
- package/dist/ui/resizable.js +130 -8
- package/dist/ui/responsive-dialog.d.ts +1 -1
- package/dist/ui/responsive-dialog.js +9 -23
- package/dist/ui/rich-tooltip.d.ts +10 -4
- package/dist/ui/rich-tooltip.js +81 -33
- package/dist/ui/scroll-area.d.ts +4 -1
- package/dist/ui/scroll-area.js +44 -28
- package/dist/ui/select.d.ts +2 -1
- package/dist/ui/select.js +57 -32
- package/dist/ui/sidebar-menu.d.ts +5 -1
- package/dist/ui/sidebar-menu.js +31 -33
- package/dist/ui/sidebar-provider.d.ts +10 -1
- package/dist/ui/sidebar-provider.js +38 -13
- package/dist/ui/sidebar-resize-rail.js +7 -3
- package/dist/ui/sidebar.d.ts +11 -6
- package/dist/ui/sidebar.js +46 -23
- package/dist/ui/slider.js +31 -22
- package/dist/ui/spinner.d.ts +3 -2
- package/dist/ui/spinner.js +3 -2
- package/dist/ui/stepper.d.ts +8 -1
- package/dist/ui/stepper.js +74 -25
- package/dist/ui/switch.d.ts +1 -0
- package/dist/ui/table-of-contents.d.ts +5 -4
- package/dist/ui/table-of-contents.js +143 -52
- package/dist/ui/table.js +15 -9
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.js +20 -9
- package/dist/ui/timeline.d.ts +3 -1
- package/dist/ui/timeline.js +17 -9
- package/dist/ui/toast.d.ts +11 -5
- package/dist/ui/toast.js +100 -54
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.js +2 -1
- package/dist/ui/toolbar.d.ts +3 -2
- package/dist/ui/toolbar.js +4 -2
- package/dist/ui/tooltip.js +3 -20
- package/dist/ui/tree.js +120 -80
- package/dist/ui/trigger-menu.js +7 -2
- package/dist/user-ask.d.ts +10 -5
- package/dist/user-ask.js +31 -11
- package/package.json +5 -1
- package/dist/hooks/use-keyboard-navigation.d.ts +0 -3
- package/dist/hooks/use-keyboard-navigation.js +0 -22
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--cui-chat-composer-shell-backdrop-filter: none;
|
|
7
7
|
--cui-chat-composer-shell-border-color: var(--border);
|
|
8
8
|
--cui-chat-composer-shell-border-width: var(--control-rim-width);
|
|
9
|
-
--cui-chat-composer-shell-radius: var(--radius-
|
|
9
|
+
--cui-chat-composer-shell-radius: var(--radius-composer);
|
|
10
10
|
--cui-chat-composer-shell-shadow: var(--shadow-md);
|
|
11
11
|
--cui-chat-composer-input-foreground: var(--card-foreground);
|
|
12
12
|
--cui-chat-composer-input-placeholder-foreground: var(--muted-foreground);
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
--cui-chat-composer-mention-border-color: transparent;
|
|
16
16
|
--cui-chat-composer-mention-border-width: 0px;
|
|
17
17
|
--cui-chat-composer-mention-background: oklch(from var(--primary) l c h / 0.1);
|
|
18
|
-
padding-inline:
|
|
19
|
-
padding-block: calc(var(--spacing) * 1)
|
|
18
|
+
padding-inline: var(--composer-padding);
|
|
19
|
+
padding-block: calc(var(--spacing) * 1) var(--composer-padding);
|
|
20
20
|
background: var(--cui-chat-composer-root-background);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
transition-timing-function: var(--ease-emphasized);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:where(
|
|
36
|
-
[data-control-family="chat-composer"][data-slot="shell"][data-keyboard-navigation]:has(
|
|
37
|
-
:is(textarea, [contenteditable="true"]):focus-visible
|
|
38
|
-
)
|
|
39
|
-
) {
|
|
35
|
+
:where([data-control-family="chat-composer"][data-slot="shell"]:has(:is(textarea, [contenteditable="true"]):focus-visible)) {
|
|
40
36
|
outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring);
|
|
41
|
-
outline-offset: var(--focus-ring-
|
|
37
|
+
outline-offset: calc(var(--focus-ring-width) * -1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where([data-control-family="chat-composer"][data-slot="shell"] [data-control-family="dropzone"][data-slot="overlay"]) {
|
|
41
|
+
--cui-dropzone-surface-radius: max(0px, calc(var(--cui-chat-composer-shell-radius) - var(--cui-chat-composer-shell-border-width)));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
:where([data-control-family="chat-composer"][data-slot="accent"]) {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
:where([data-control-family="chat-composer"]:is([data-slot="textarea"], [data-slot="fallback"], [data-slot="placeholder"])),
|
|
50
50
|
:where([data-control-family="chat-composer"][data-slot="editor"] .ProseMirror) {
|
|
51
|
-
font-size: var(--text-
|
|
51
|
+
font-size: var(--text-body);
|
|
52
52
|
line-height: calc(var(--spacing) * 6);
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
border: 0;
|
|
58
58
|
background: transparent;
|
|
59
59
|
color: var(--cui-chat-composer-input-foreground);
|
|
60
|
+
--focus-ring-width: 0px;
|
|
60
61
|
outline: none;
|
|
61
62
|
}
|
|
62
63
|
|
|
@@ -67,20 +68,24 @@
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
:where([data-control-family="chat-composer"][data-slot="textarea"]:disabled) {
|
|
70
|
-
opacity:
|
|
71
|
+
opacity: var(--disabled-opacity);
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
:where([data-control-family="chat-composer"][data-slot="editor"] [aria-disabled="true"]) {
|
|
74
75
|
cursor: not-allowed;
|
|
75
|
-
opacity:
|
|
76
|
+
opacity: var(--disabled-opacity);
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
:where([data-control-family="chat-composer"][data-slot="toolbar"]) {
|
|
79
|
-
|
|
80
|
+
--nest-radius: max(
|
|
81
|
+
0px,
|
|
82
|
+
calc(var(--cui-chat-composer-shell-radius) - var(--cui-chat-composer-shell-border-width) - var(--composer-padding))
|
|
83
|
+
);
|
|
84
|
+
min-block-size: calc(var(--control-h-xs) + var(--composer-padding) + var(--spacing) * 0.5);
|
|
80
85
|
gap: calc(var(--spacing) * 2);
|
|
81
86
|
flex-wrap: wrap;
|
|
82
|
-
padding-inline:
|
|
83
|
-
padding-block-end:
|
|
87
|
+
padding-inline: var(--composer-padding);
|
|
88
|
+
padding-block-end: var(--composer-padding);
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
:where([data-control-family="chat-composer"][data-slot="tools"]) {
|
|
@@ -121,7 +126,7 @@
|
|
|
121
126
|
@media (pointer: coarse) {
|
|
122
127
|
:where([data-control-family="chat-composer"]:is([data-slot="textarea"], [data-slot="fallback"], [data-slot="placeholder"])),
|
|
123
128
|
:where([data-control-family="chat-composer"][data-slot="editor"] .ProseMirror) {
|
|
124
|
-
font-size: max(
|
|
129
|
+
font-size: max(var(--text-input-min), var(--text-body));
|
|
125
130
|
}
|
|
126
131
|
}
|
|
127
132
|
}
|
|
@@ -6,27 +6,83 @@
|
|
|
6
6
|
--cui-chat-layout-border-width: var(--control-rim-width);
|
|
7
7
|
--cui-chat-layout-shadow: var(--shadow-md);
|
|
8
8
|
--cui-chat-layout-scroll-button-gap: calc(var(--spacing) * 3);
|
|
9
|
-
|
|
9
|
+
--cui-chat-layout-turn-gap: calc(var(--spacing) * 2);
|
|
10
|
+
container: chat-layout / inline-size;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where(
|
|
14
|
+
[data-control-family="chat-layout"][data-slot="root"][data-chrome="panel"]:has([data-control-family="chat-layout"][data-slot="dock"])
|
|
15
|
+
) {
|
|
16
|
+
--cui-chat-layout-radius: max(
|
|
17
|
+
var(--radius-scene),
|
|
18
|
+
calc(var(--radius-composer) + var(--composer-padding) + var(--cui-chat-layout-border-width))
|
|
19
|
+
);
|
|
10
20
|
}
|
|
11
21
|
|
|
12
22
|
:where([data-control-family="chat-layout"][data-slot="root"][data-chrome="panel"]) {
|
|
23
|
+
background: var(--cui-chat-layout-background);
|
|
13
24
|
border: var(--cui-chat-layout-border-width) solid var(--cui-chat-layout-border-color);
|
|
14
25
|
border-radius: var(--cui-chat-layout-radius);
|
|
15
26
|
box-shadow: var(--cui-chat-layout-shadow);
|
|
16
27
|
}
|
|
17
28
|
|
|
29
|
+
:where([data-popup-part="surface"] [data-control-family="chat-layout"][data-slot="root"][data-chrome="embedded"]) {
|
|
30
|
+
--cui-chat-layout-background: var(--cui-popup-background);
|
|
31
|
+
--cui-chat-layout-radius: var(--cui-popup-radius);
|
|
32
|
+
border-radius: var(--cui-chat-layout-radius);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where([data-control-family="chat-layout"][data-slot="header"]) {
|
|
36
|
+
padding-block: calc(var(--spacing) * 3);
|
|
37
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
38
|
+
border-block-end: var(--cui-chat-layout-border-width) solid var(--cui-chat-layout-border-color);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where([data-control-family="chat-layout"][data-slot="header"] > :not([data-control-family="chat-layout"])) {
|
|
42
|
+
grid-column: 1;
|
|
43
|
+
grid-row: 1 / span 2;
|
|
44
|
+
margin-inline-end: calc(var(--spacing) * 2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where([data-control-family="chat-layout"][data-slot="title"]) {
|
|
48
|
+
font-size: var(--text-body);
|
|
49
|
+
font-weight: var(--font-weight-semibold);
|
|
50
|
+
line-height: var(--leading-tight);
|
|
51
|
+
color: var(--foreground);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where([data-control-family="chat-layout"][data-slot="description"]) {
|
|
55
|
+
margin-block-start: calc(var(--spacing) * 0.5);
|
|
56
|
+
font-size: var(--text-caption);
|
|
57
|
+
color: var(--muted-foreground);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where([data-control-family="chat-layout"][data-slot="actions"]) {
|
|
61
|
+
gap: calc(var(--spacing) * 1);
|
|
62
|
+
margin-inline-start: calc(var(--spacing) * 3);
|
|
63
|
+
}
|
|
64
|
+
|
|
18
65
|
:where([data-control-family="chat-layout"][data-slot="thread-content"]) {
|
|
19
66
|
gap: calc(var(--spacing) * 8);
|
|
20
67
|
padding-block: calc(var(--spacing) * 6);
|
|
21
68
|
padding-inline: calc(var(--spacing) * 4);
|
|
22
69
|
}
|
|
23
70
|
|
|
24
|
-
@
|
|
71
|
+
@container chat-layout (width >= 40rem) {
|
|
25
72
|
:where([data-control-family="chat-layout"][data-slot="thread-content"]) {
|
|
26
73
|
padding-inline: calc(var(--spacing) * 8);
|
|
27
74
|
}
|
|
28
75
|
}
|
|
29
76
|
|
|
77
|
+
:where([data-control-family="chat-layout"][data-slot="thread-content"]:has(> [data-control-family="chat-message"][data-layout="flat"])) {
|
|
78
|
+
gap: 0;
|
|
79
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-control-family="chat-layout"][data-slot="turn"]) {
|
|
83
|
+
gap: var(--cui-chat-layout-turn-gap);
|
|
84
|
+
}
|
|
85
|
+
|
|
30
86
|
:where([data-control-family="chat-layout"][data-slot="dock"])::before {
|
|
31
87
|
content: "";
|
|
32
88
|
position: absolute;
|
|
@@ -89,3 +145,9 @@
|
|
|
89
145
|
inherits: true;
|
|
90
146
|
initial-value: 0px;
|
|
91
147
|
}
|
|
148
|
+
|
|
149
|
+
@property --cui-chat-layout-turn-gap {
|
|
150
|
+
syntax: "<length>";
|
|
151
|
+
inherits: true;
|
|
152
|
+
initial-value: 0px;
|
|
153
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="chat-message"][data-slot="root"][data-kind="typing"]) {
|
|
3
|
+
gap: calc(var(--spacing) * 2);
|
|
4
|
+
min-block-size: calc(var(--spacing) * 5);
|
|
5
|
+
font-size: var(--text-caption);
|
|
6
|
+
color: var(--muted-foreground);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where([data-control-family="chat-message"][data-slot="row"][data-continuation]) {
|
|
10
|
+
padding-block-start: calc(var(--spacing) * 0.5);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where([data-control-family="chat-message"][data-slot="avatar"][data-continuation]) {
|
|
14
|
+
margin-block-start: 0;
|
|
15
|
+
block-size: calc(var(--spacing) * 5);
|
|
16
|
+
border-color: transparent;
|
|
17
|
+
background: transparent;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([data-control-family="chat-message"][data-slot="avatar"] [data-slot="time"]) {
|
|
21
|
+
font-size: 0.625rem;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
transition-property: opacity;
|
|
24
|
+
transition-duration: var(--duration-fast);
|
|
25
|
+
transition-timing-function: var(--ease-standard);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where([data-control-family="chat-message"][data-slot="row"]:hover > [data-slot="avatar"] [data-slot="time"]) {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([data-control-family="chat-message"][data-slot="row"]:focus-within > [data-slot="avatar"] [data-slot="time"]) {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-control-family="chat-message"][data-slot="footer"]) {
|
|
37
|
+
margin-block-start: calc(var(--spacing) * 1);
|
|
38
|
+
gap: calc(var(--spacing) * 1.5);
|
|
39
|
+
padding-inline: calc(var(--spacing) * 1);
|
|
40
|
+
font-size: var(--text-caption);
|
|
41
|
+
color: var(--muted-foreground);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where([data-control-family="chat-message"][data-slot="footer"][data-state="error"]) {
|
|
45
|
+
color: var(--destructive);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where([data-control-family="chat-message"][data-slot="reactions"]) {
|
|
49
|
+
margin-block-start: calc(var(--spacing) * 1.5);
|
|
50
|
+
gap: calc(var(--spacing) * 1);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(
|
|
54
|
+
[data-control-family="chat-message"]:is(
|
|
55
|
+
[data-slot="header"],
|
|
56
|
+
[data-slot="footer"],
|
|
57
|
+
[data-slot="reactions"]
|
|
58
|
+
)[data-layout="bubble"][data-role="user"]
|
|
59
|
+
) {
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where([data-control-family="chat-message"][data-slot="footer"][data-layout="flat"]) {
|
|
64
|
+
padding-inline: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where([data-control-family="chat-message"][data-slot="reaction"]) {
|
|
68
|
+
gap: calc(var(--spacing) * 1);
|
|
69
|
+
block-size: calc(var(--spacing) * 6);
|
|
70
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
71
|
+
border: var(--cui-chat-message-reaction-border-width) solid var(--cui-chat-message-reaction-border-color);
|
|
72
|
+
border-radius: var(--cui-chat-message-reaction-radius);
|
|
73
|
+
background: var(--cui-chat-message-reaction-background);
|
|
74
|
+
font-size: var(--text-caption);
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
color: var(--muted-foreground);
|
|
77
|
+
transition-property: background-color, border-color, color;
|
|
78
|
+
transition-duration: var(--duration-fast);
|
|
79
|
+
transition-timing-function: var(--ease-standard);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-control-family="chat-message"][data-slot="reaction"][data-pressed]) {
|
|
83
|
+
border-color: var(--cui-chat-message-reaction-pressed-border-color);
|
|
84
|
+
background: var(--cui-chat-message-reaction-pressed-background);
|
|
85
|
+
color: var(--foreground);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (hover: hover) and (pointer: fine) {
|
|
89
|
+
:where([data-control-family="chat-message"][data-slot="reaction"][aria-pressed]:hover) {
|
|
90
|
+
color: var(--foreground);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where([data-control-family="chat-message"][data-slot="reaction-emoji"]) {
|
|
95
|
+
font-size: var(--text-body);
|
|
96
|
+
line-height: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:where([data-control-family="chat-message"][data-slot="reply-summary"]) {
|
|
100
|
+
margin-block-start: calc(var(--spacing) * 1);
|
|
101
|
+
gap: calc(var(--spacing) * 2);
|
|
102
|
+
padding: calc(var(--spacing) * 1);
|
|
103
|
+
border-radius: var(--radius-md);
|
|
104
|
+
font-size: var(--text-caption);
|
|
105
|
+
color: var(--muted-foreground);
|
|
106
|
+
transition-property: background-color, color;
|
|
107
|
+
transition-duration: var(--duration-fast);
|
|
108
|
+
transition-timing-function: var(--ease-standard);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (hover: hover) and (pointer: fine) {
|
|
112
|
+
:where([data-control-family="chat-message"][data-slot="reply-summary"]:hover) {
|
|
113
|
+
background-color: var(--cui-chat-message-row-hover-background);
|
|
114
|
+
color: var(--foreground);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:where([data-control-family="chat-message"][data-slot="replies"]) {
|
|
119
|
+
margin-block-start: calc(var(--spacing) * 2);
|
|
120
|
+
padding-inline-start: calc(var(--spacing) * 3);
|
|
121
|
+
border-inline-start: 2px solid var(--border);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -14,14 +14,26 @@
|
|
|
14
14
|
--cui-chat-message-shadow: none;
|
|
15
15
|
--cui-chat-message-pending-dot-color: var(--muted-foreground);
|
|
16
16
|
--cui-chat-message-pending-dot-size: calc(var(--spacing) * 1.5);
|
|
17
|
+
--cui-chat-message-row-hover-background: oklch(from var(--muted) l c h / 0.6);
|
|
18
|
+
--cui-chat-message-reaction-radius: 9999px;
|
|
19
|
+
--cui-chat-message-reaction-background: oklch(from var(--muted) l c h / 0.7);
|
|
20
|
+
--cui-chat-message-reaction-border-color: transparent;
|
|
21
|
+
--cui-chat-message-reaction-border-width: var(--control-rim-width);
|
|
22
|
+
--cui-chat-message-reaction-pressed-background: oklch(from var(--primary) l c h / 0.14);
|
|
23
|
+
--cui-chat-message-reaction-pressed-border-color: oklch(from var(--primary) l c h / 0.55);
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
:where([data-control-family="chat-message"][data-slot="pending"])
|
|
26
|
+
:where([data-control-family="chat-message"][data-slot="pending"]),
|
|
27
|
+
:where([data-control-family="chat-message"][data-slot="typing-dots"]) {
|
|
20
28
|
gap: var(--cui-chat-message-pending-dot-size);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where([data-control-family="chat-message"][data-slot="pending"]) {
|
|
21
32
|
padding-block: calc(var(--spacing) * 2);
|
|
22
33
|
}
|
|
23
34
|
|
|
24
|
-
:where([data-control-family="chat-message"][data-slot="pending"] > span)
|
|
35
|
+
:where([data-control-family="chat-message"][data-slot="pending"] > span),
|
|
36
|
+
:where([data-control-family="chat-message"][data-slot="typing-dots"] > span) {
|
|
25
37
|
inline-size: var(--cui-chat-message-pending-dot-size);
|
|
26
38
|
block-size: var(--cui-chat-message-pending-dot-size);
|
|
27
39
|
border-radius: 9999px;
|
|
@@ -29,28 +41,16 @@
|
|
|
29
41
|
animation: chat-message-pending calc(var(--duration-slow) * 3) var(--ease-standard) infinite;
|
|
30
42
|
}
|
|
31
43
|
|
|
32
|
-
:where([data-control-family="chat-message"][data-slot="pending"] > span:nth-child(2))
|
|
44
|
+
:where([data-control-family="chat-message"][data-slot="pending"] > span:nth-child(2)),
|
|
45
|
+
:where([data-control-family="chat-message"][data-slot="typing-dots"] > span:nth-child(2)) {
|
|
33
46
|
animation-delay: calc(var(--duration-slow) / 2);
|
|
34
47
|
}
|
|
35
48
|
|
|
36
|
-
:where([data-control-family="chat-message"][data-slot="pending"] > span:nth-child(3))
|
|
49
|
+
:where([data-control-family="chat-message"][data-slot="pending"] > span:nth-child(3)),
|
|
50
|
+
:where([data-control-family="chat-message"][data-slot="typing-dots"] > span:nth-child(3)) {
|
|
37
51
|
animation-delay: var(--duration-slow);
|
|
38
52
|
}
|
|
39
53
|
|
|
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
54
|
@keyframes chat-message-pending {
|
|
55
55
|
0%,
|
|
56
56
|
60%,
|
|
@@ -69,17 +69,33 @@
|
|
|
69
69
|
padding-block: calc(var(--spacing) * 2);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
:where([data-control-family="chat-message"][data-slot="
|
|
72
|
+
:where([data-control-family="chat-message"][data-slot="row"][data-density="compact"]) {
|
|
73
73
|
padding-block: calc(var(--spacing) * 1);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
:where([data-control-family="chat-message"][data-slot="
|
|
77
|
-
|
|
76
|
+
:where([data-control-family="chat-message"][data-slot="row"][data-layout="flat"]) {
|
|
77
|
+
gap: calc(var(--spacing) * 3);
|
|
78
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
79
|
+
border-radius: var(--radius-md);
|
|
80
|
+
transition-property: background-color;
|
|
81
|
+
transition-duration: var(--duration-fast);
|
|
82
|
+
transition-timing-function: var(--ease-standard);
|
|
78
83
|
}
|
|
79
84
|
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
@media (hover: hover) and (pointer: fine) {
|
|
86
|
+
:where([data-control-family="chat-message"][data-slot="row"][data-layout="flat"]:hover:not(:has([data-slot="row"]:hover))) {
|
|
87
|
+
background-color: var(--cui-chat-message-row-hover-background);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where([data-control-family="chat-message"][data-slot="body"]) {
|
|
82
92
|
flex: 1;
|
|
93
|
+
max-inline-size: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:where([data-control-family="chat-message"][data-slot="body"][data-layout="bubble"]:is([data-role="user"], [data-role="participant"])) {
|
|
97
|
+
flex: 0 1 auto;
|
|
98
|
+
max-inline-size: 76%;
|
|
83
99
|
}
|
|
84
100
|
|
|
85
101
|
:where([data-control-family="chat-message"][data-slot="avatar"]) {
|
|
@@ -93,6 +109,16 @@
|
|
|
93
109
|
color: var(--muted-foreground);
|
|
94
110
|
}
|
|
95
111
|
|
|
112
|
+
:where([data-control-family="chat-message"][data-slot="avatar"][data-layout="flat"]) {
|
|
113
|
+
inline-size: calc(var(--spacing) * 8);
|
|
114
|
+
block-size: calc(var(--spacing) * 8);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where([data-control-family="chat-message"][data-slot="avatar"]:has(> [data-control-family="avatar"])) {
|
|
118
|
+
border-color: transparent;
|
|
119
|
+
background: transparent;
|
|
120
|
+
}
|
|
121
|
+
|
|
96
122
|
:where([data-control-family="chat-message"][data-slot="content"]) {
|
|
97
123
|
border: var(--cui-chat-message-border-width) solid var(--cui-chat-message-border-color);
|
|
98
124
|
border-radius: var(--cui-chat-message-radius);
|
|
@@ -101,12 +127,12 @@
|
|
|
101
127
|
background-image: var(--cui-chat-message-background-image);
|
|
102
128
|
box-shadow: var(--cui-chat-message-shadow);
|
|
103
129
|
color: var(--cui-chat-message-foreground);
|
|
104
|
-
overflow-wrap:
|
|
130
|
+
overflow-wrap: break-word;
|
|
105
131
|
font-size: var(--text-body);
|
|
106
132
|
line-height: calc(var(--spacing) * 5);
|
|
107
133
|
}
|
|
108
134
|
|
|
109
|
-
:where([data-control-family="chat-message"][data-slot="root"][data-role="user"]) {
|
|
135
|
+
:where([data-control-family="chat-message"][data-slot="root"][data-layout="bubble"][data-role="user"]) {
|
|
110
136
|
--cui-chat-message-radius: var(--radius-field);
|
|
111
137
|
--cui-chat-message-corner-radius: var(--radius-lg);
|
|
112
138
|
--cui-chat-message-background: var(--primary);
|
|
@@ -114,9 +140,39 @@
|
|
|
114
140
|
--cui-chat-message-shadow: var(--shadow-sm);
|
|
115
141
|
}
|
|
116
142
|
|
|
117
|
-
:where([data-control-family="chat-message"][data-slot="
|
|
143
|
+
:where([data-control-family="chat-message"][data-slot="root"][data-layout="bubble"][data-role="participant"]) {
|
|
144
|
+
--cui-chat-message-radius: var(--radius-field);
|
|
145
|
+
--cui-chat-message-corner-radius: var(--radius-field);
|
|
146
|
+
--cui-chat-message-background: var(--muted);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:where([data-control-family="chat-message"][data-slot="header"][data-role="assistant"][data-state="streaming"]) {
|
|
118
150
|
@apply shimmer-text;
|
|
119
151
|
}
|
|
152
|
+
|
|
153
|
+
:where([data-control-family="chat-message"][data-slot="header"]) {
|
|
154
|
+
margin-block-end: calc(var(--spacing) * 1);
|
|
155
|
+
gap: calc(var(--spacing) * 2);
|
|
156
|
+
padding-inline: calc(var(--spacing) * 1);
|
|
157
|
+
font-size: var(--text-caption);
|
|
158
|
+
color: var(--muted-foreground);
|
|
159
|
+
font-variant-numeric: tabular-nums;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:where([data-control-family="chat-message"][data-slot="header"][data-layout="flat"]) {
|
|
163
|
+
margin-block-end: calc(var(--spacing) * 0.5);
|
|
164
|
+
padding-inline: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:where([data-control-family="chat-message"][data-slot="author"]) {
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
color: var(--foreground);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:where([data-control-family="chat-message"][data-slot="author"][data-layout="flat"]) {
|
|
173
|
+
font-size: var(--text-body);
|
|
174
|
+
}
|
|
175
|
+
|
|
120
176
|
:where([data-control-family="chat-message"][data-slot="actions"]) {
|
|
121
177
|
margin-block-start: calc(var(--spacing) * 1);
|
|
122
178
|
gap: calc(var(--spacing) * 1);
|
|
@@ -126,27 +182,49 @@
|
|
|
126
182
|
transition-timing-function: var(--ease-standard);
|
|
127
183
|
}
|
|
128
184
|
|
|
185
|
+
:where([data-control-family="chat-message"][data-slot="actions"][data-layout="flat"]) {
|
|
186
|
+
position: relative;
|
|
187
|
+
isolation: isolate;
|
|
188
|
+
align-self: flex-start;
|
|
189
|
+
margin-block-start: 0;
|
|
190
|
+
padding: calc(var(--spacing) * 0.5);
|
|
191
|
+
}
|
|
192
|
+
|
|
129
193
|
@media (hover: hover) and (pointer: fine) {
|
|
130
194
|
:where([data-control-family="chat-message"][data-slot="actions"]) {
|
|
131
195
|
opacity: 0;
|
|
196
|
+
pointer-events: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:where([data-control-family="chat-message"][data-slot="actions"][data-layout="flat"]) {
|
|
200
|
+
position: absolute;
|
|
201
|
+
z-index: 1;
|
|
202
|
+
inset-block-start: calc(var(--spacing) * -3);
|
|
203
|
+
inset-inline-end: calc(var(--spacing) * 2);
|
|
132
204
|
}
|
|
133
205
|
|
|
134
|
-
:where([data-control-family="chat-message"][data-slot="row"]:hover
|
|
206
|
+
:where([data-control-family="chat-message"][data-slot="row"]:hover:not(:has([data-slot="row"]:hover)) > [data-slot="actions"]),
|
|
207
|
+
:where(
|
|
208
|
+
[data-control-family="chat-message"][data-slot="row"]:hover:not(:has([data-slot="row"]:hover))
|
|
209
|
+
> [data-slot="body"]
|
|
210
|
+
> [data-slot="actions"]
|
|
211
|
+
) {
|
|
135
212
|
opacity: 1;
|
|
213
|
+
pointer-events: auto;
|
|
136
214
|
}
|
|
137
215
|
}
|
|
138
216
|
|
|
139
|
-
:where(
|
|
217
|
+
:where(
|
|
218
|
+
[data-control-family="chat-message"][data-slot="row"]:focus-within:not(:has([data-slot="row"]:focus-within)) > [data-slot="actions"]
|
|
219
|
+
),
|
|
220
|
+
:where(
|
|
221
|
+
[data-control-family="chat-message"][data-slot="row"]:focus-within:not(:has([data-slot="row"]:focus-within))
|
|
222
|
+
> [data-slot="body"]
|
|
223
|
+
> [data-slot="actions"]
|
|
224
|
+
),
|
|
225
|
+
:where([data-control-family="chat-message"][data-slot="actions"]:has([data-popup-open])) {
|
|
140
226
|
opacity: 1;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
:where([data-control-family="chat-message"][data-slot="header"]) {
|
|
144
|
-
margin-block-end: calc(var(--spacing) * 1);
|
|
145
|
-
gap: calc(var(--spacing) * 2);
|
|
146
|
-
padding-inline: calc(var(--spacing) * 1);
|
|
147
|
-
font-size: var(--text-caption);
|
|
148
|
-
color: var(--muted-foreground);
|
|
149
|
-
font-variant-numeric: tabular-nums;
|
|
227
|
+
pointer-events: auto;
|
|
150
228
|
}
|
|
151
229
|
}
|
|
152
230
|
|
|
@@ -231,3 +309,45 @@
|
|
|
231
309
|
inherits: true;
|
|
232
310
|
initial-value: 0px;
|
|
233
311
|
}
|
|
312
|
+
|
|
313
|
+
@property --cui-chat-message-row-hover-background {
|
|
314
|
+
syntax: "<color>";
|
|
315
|
+
inherits: true;
|
|
316
|
+
initial-value: transparent;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@property --cui-chat-message-reaction-radius {
|
|
320
|
+
syntax: "<length-percentage>";
|
|
321
|
+
inherits: true;
|
|
322
|
+
initial-value: 0px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@property --cui-chat-message-reaction-background {
|
|
326
|
+
syntax: "<color>";
|
|
327
|
+
inherits: true;
|
|
328
|
+
initial-value: transparent;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@property --cui-chat-message-reaction-border-color {
|
|
332
|
+
syntax: "<color>";
|
|
333
|
+
inherits: true;
|
|
334
|
+
initial-value: transparent;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@property --cui-chat-message-reaction-border-width {
|
|
338
|
+
syntax: "<length>";
|
|
339
|
+
inherits: true;
|
|
340
|
+
initial-value: 0px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@property --cui-chat-message-reaction-pressed-background {
|
|
344
|
+
syntax: "<color>";
|
|
345
|
+
inherits: true;
|
|
346
|
+
initial-value: transparent;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@property --cui-chat-message-reaction-pressed-border-color {
|
|
350
|
+
syntax: "<color>";
|
|
351
|
+
inherits: true;
|
|
352
|
+
initial-value: transparent;
|
|
353
|
+
}
|