@ctrl-ui/react 0.8.7 → 0.8.9
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 +39 -39
- package/dist/blocks/design-canvas.d.ts +5 -1
- package/dist/blocks/design-canvas.js +198 -92
- 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 +4 -1
- package/dist/chat-composer-attachment.js +35 -10
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -1
- package/dist/chat-composer-editor/extensions/mention.js +59 -28
- 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 +57 -30
- package/dist/chat-composer.d.ts +13 -32
- package/dist/chat-composer.js +52 -12
- package/dist/chat-layout.d.ts +19 -0
- package/dist/chat-layout.js +91 -40
- 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/editor.js +20 -8
- package/dist/filter-bar/model.d.ts +1 -0
- package/dist/filter-bar/model.js +10 -1
- package/dist/filter-bar/motion.js +4 -4
- package/dist/filter-bar/parts.js +19 -8
- package/dist/filter-bar/types.d.ts +1 -0
- package/dist/filter-bar.js +19 -13
- package/dist/hooks/use-audio-recorder.js +12 -6
- package/dist/hooks/use-chat-composer.d.ts +19 -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-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 +36 -15
- 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-message-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-message-knobs.js +8 -1
- 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/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 +1 -1
- package/dist/knob-contracts/filter-bar-knobs.js +1 -2
- 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 +2 -1
- package/dist/knob-contracts/popup-knobs.d.ts +1 -1
- package/dist/knob-contracts/popup-knobs.js +27 -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 +2 -1
- 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 +2 -1
- package/dist/popup-parts.d.ts +8 -0
- package/dist/popup-parts.js +43 -0
- 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 +10 -5
- 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 +5 -7
- package/dist/styles/recipes/button-states.css +66 -0
- package/dist/styles/recipes/button.css +24 -83
- 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 +7 -10
- package/dist/styles/recipes/chat-layout.css +35 -0
- 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 +18 -21
- package/dist/styles/recipes/code-diff.css +46 -33
- package/dist/styles/recipes/code.css +36 -16
- package/dist/styles/recipes/collapsible.css +7 -2
- 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 +11 -2
- package/dist/styles/recipes/context.css +3 -3
- package/dist/styles/recipes/dockable-panel.css +7 -4
- 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 +30 -24
- package/dist/styles/recipes/field.css +61 -26
- package/dist/styles/recipes/filter-bar.css +18 -31
- package/dist/styles/recipes/gradient-editor.css +18 -7
- package/dist/styles/recipes/infinite-canvas.css +0 -1
- package/dist/styles/recipes/inline-attachment.css +3 -3
- 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 +20 -12
- package/dist/styles/recipes/pagination.css +4 -5
- package/dist/styles/recipes/phone-input.css +12 -8
- package/dist/styles/recipes/popup-controls.css +166 -33
- package/dist/styles/recipes/popup-drawer.css +3 -14
- package/dist/styles/recipes/popup-lists.css +128 -27
- package/dist/styles/recipes/popup-motion.css +4 -45
- package/dist/styles/recipes/popup-toast.css +55 -26
- package/dist/styles/recipes/popup.css +139 -141
- package/dist/styles/recipes/range.css +54 -18
- package/dist/styles/recipes/resizable.css +2 -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 +166 -34
- package/dist/styles/recipes/sidebar-parts.css +192 -0
- package/dist/styles/recipes/sidebar.css +188 -128
- package/dist/styles/recipes/source-badge.css +1 -1
- package/dist/styles/recipes/spinner.css +8 -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 +9 -1
- package/dist/styles/recipes/table.css +14 -10
- package/dist/styles/recipes/tabs.css +17 -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 +10 -7
- 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 +37 -16
- 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 +3 -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.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 +26 -27
- 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 -9
- package/dist/ui/combobox.js +13 -5
- package/dist/ui/command.d.ts +8 -2
- package/dist/ui/command.js +30 -14
- 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 +63 -23
- package/dist/ui/dropdown-menu.js +4 -3
- package/dist/ui/dropzone.d.ts +2 -2
- package/dist/ui/dropzone.js +75 -16
- 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/gradient-editor.d.ts +1 -1
- package/dist/ui/gradient-editor.js +37 -21
- package/dist/ui/infinite-canvas.d.ts +3 -2
- package/dist/ui/infinite-canvas.js +63 -19
- package/dist/ui/input-group.d.ts +0 -3
- package/dist/ui/input-group.js +3 -13
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.js +32 -15
- package/dist/ui/input.js +4 -4
- 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 +31 -1
- 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/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 +2 -0
- package/dist/ui/resizable.d.ts +3 -2
- package/dist/ui/resizable.js +5 -3
- package/dist/ui/responsive-dialog.d.ts +1 -1
- package/dist/ui/responsive-dialog.js +4 -21
- package/dist/ui/rich-tooltip.d.ts +10 -4
- package/dist/ui/rich-tooltip.js +81 -33
- package/dist/ui/scroll-area.d.ts +1 -1
- package/dist/ui/scroll-area.js +43 -28
- package/dist/ui/sidebar-menu.d.ts +5 -1
- package/dist/ui/sidebar-menu.js +34 -34
- 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 +48 -24
- 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 +2 -2
- package/dist/ui/table-of-contents.js +20 -8
- package/dist/ui/table.js +4 -2
- 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/toolbar.d.ts +2 -1
- package/dist/ui/toolbar.js +3 -1
- package/dist/ui/tooltip.js +3 -20
- package/dist/ui/tree.js +120 -80
- package/dist/ui/trigger-menu.js +1 -0
- 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
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
+
:where([data-control-family="button"][data-size="xs"])::after {
|
|
3
|
+
content: "";
|
|
4
|
+
position: absolute;
|
|
5
|
+
inset: 50%;
|
|
6
|
+
translate: -50% -50%;
|
|
7
|
+
inline-size: max(100%, var(--target-min));
|
|
8
|
+
block-size: max(100%, var(--target-min));
|
|
9
|
+
}
|
|
10
|
+
|
|
2
11
|
@media (pointer: coarse) {
|
|
3
|
-
:where([data-control-family="button"][data-size="xs"]) {
|
|
4
|
-
|
|
12
|
+
:where([data-control-family="button"][data-size="xs"])::after {
|
|
13
|
+
block-size: max(100%, var(--touch-target));
|
|
5
14
|
}
|
|
6
15
|
|
|
7
|
-
:where([data-control-family="button"][data-size="xs"])::after {
|
|
8
|
-
|
|
9
|
-
position: absolute;
|
|
10
|
-
inset: 50% 50%;
|
|
11
|
-
translate: -50% -50%;
|
|
12
|
-
inline-size: 100%;
|
|
13
|
-
block-size: max(100%, 44px);
|
|
16
|
+
:where([data-control-family="button"][data-size="xs"][data-icon-only="true"])::after {
|
|
17
|
+
inline-size: max(100%, var(--touch-target));
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
:where(
|
|
18
|
-
[data-control-family="popup"][data-popup-kind="dialog"][data-slot="content"]
|
|
19
|
-
> [data-control-family="button"][data-popup-part="close"][data-icon-only="true"]
|
|
20
|
-
) {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 12px;
|
|
23
|
-
right: 12px;
|
|
24
|
-
}
|
|
25
21
|
:where([data-control-family="button"][data-control="true"]) {
|
|
26
22
|
--cui-button-radius: var(--radius-control);
|
|
27
23
|
--cui-button-gap: calc(var(--spacing) * 1.5);
|
|
@@ -34,9 +30,10 @@
|
|
|
34
30
|
--cui-button-background-image: none;
|
|
35
31
|
--cui-button-foreground: var(--muted-foreground);
|
|
36
32
|
--cui-button-hover-background: var(--hover-fill);
|
|
33
|
+
--cui-button-hover-background-image: var(--cui-button-background-image);
|
|
37
34
|
--cui-button-hover-foreground: var(--foreground);
|
|
38
35
|
--cui-button-press-background: var(--cui-button-hover-background);
|
|
39
|
-
--cui-button-press-scale: 0.
|
|
36
|
+
--cui-button-press-scale: 0.96;
|
|
40
37
|
--cui-button-active-background: var(--active-fill);
|
|
41
38
|
--cui-button-active-foreground: var(--foreground);
|
|
42
39
|
--cui-button-active-hover-background: var(--cui-button-active-background);
|
|
@@ -54,13 +51,14 @@
|
|
|
54
51
|
color: var(--cui-button-foreground);
|
|
55
52
|
cursor: pointer;
|
|
56
53
|
font-weight: var(--font-weight-medium);
|
|
57
|
-
outline: none;
|
|
58
54
|
transition-property: scale, translate;
|
|
59
55
|
transition-timing-function: var(--ease-standard);
|
|
60
56
|
transition-duration: var(--duration-fast);
|
|
61
57
|
}
|
|
62
58
|
|
|
59
|
+
/* Every slot, not just root: callers override data-slot, and an unpositioned xs ::after hit area spans the nearest positioned ancestor. */
|
|
63
60
|
:where([data-control-family="button"]) {
|
|
61
|
+
position: relative;
|
|
64
62
|
gap: var(--cui-button-gap);
|
|
65
63
|
}
|
|
66
64
|
|
|
@@ -133,7 +131,7 @@
|
|
|
133
131
|
:where([data-control-family="button"][data-variant="solid"]) {
|
|
134
132
|
--cui-button-background: var(--primary);
|
|
135
133
|
--cui-button-foreground: var(--primary-foreground);
|
|
136
|
-
--cui-button-hover-background:
|
|
134
|
+
--cui-button-hover-background: color-mix(in oklch, var(--primary) 90%, var(--foreground));
|
|
137
135
|
--cui-button-hover-foreground: var(--primary-foreground);
|
|
138
136
|
--cui-button-shadow: var(--shadow-sm);
|
|
139
137
|
--cui-button-active-background: var(--cui-button-background);
|
|
@@ -165,7 +163,7 @@
|
|
|
165
163
|
:where([data-control-family="button"][data-tone="danger"][data-variant="solid"]) {
|
|
166
164
|
--cui-button-background: var(--destructive);
|
|
167
165
|
--cui-button-foreground: var(--destructive-foreground);
|
|
168
|
-
--cui-button-hover-background: oklch(from var(--destructive) l
|
|
166
|
+
--cui-button-hover-background: oklch(from var(--destructive) calc(l - 0.05) c h);
|
|
169
167
|
--cui-button-hover-foreground: var(--destructive-foreground);
|
|
170
168
|
--cui-button-active-background: var(--cui-button-background);
|
|
171
169
|
--cui-button-active-foreground: var(--cui-button-foreground);
|
|
@@ -181,68 +179,6 @@
|
|
|
181
179
|
--cui-button-radius: 9999px;
|
|
182
180
|
}
|
|
183
181
|
|
|
184
|
-
@media (hover: hover) {
|
|
185
|
-
:where([data-control-family="button"][data-control="true"]:hover) {
|
|
186
|
-
background-color: var(--cui-button-hover-background);
|
|
187
|
-
box-shadow: var(--cui-button-hover-shadow);
|
|
188
|
-
color: var(--cui-button-hover-foreground);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
:where([data-control-family="button"][data-popup-open]) {
|
|
193
|
-
background-color: var(--cui-button-open-background);
|
|
194
|
-
color: var(--cui-button-open-foreground);
|
|
195
|
-
box-shadow: var(--cui-button-open-shadow);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
:where([data-control-family="button"][data-active="true"]) {
|
|
199
|
-
background-color: var(--cui-button-active-background);
|
|
200
|
-
box-shadow: var(--cui-button-active-shadow);
|
|
201
|
-
color: var(--cui-button-active-foreground);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
@media (hover: hover) {
|
|
205
|
-
:where([data-control-family="button"][data-active="true"]:hover) {
|
|
206
|
-
background-color: var(--cui-button-active-hover-background);
|
|
207
|
-
color: var(--cui-button-active-foreground);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@scope ([data-track="hover"]) to ([data-track]) {
|
|
212
|
-
@media (hover: hover) {
|
|
213
|
-
:where(
|
|
214
|
-
[data-track="hover"] [data-control-family="button"][data-track-item]:hover:not([data-active="true"], [data-popup-open], :active)
|
|
215
|
-
) {
|
|
216
|
-
background-color: var(--cui-button-background);
|
|
217
|
-
box-shadow: var(--cui-button-shadow);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
:where(
|
|
221
|
-
[data-track="hover"] [data-control-family="button"][data-track-item][data-active="true"]:hover:not([data-popup-open], :active)
|
|
222
|
-
) {
|
|
223
|
-
background-color: var(--cui-button-active-background);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
@scope ([data-track="slide"]) to ([data-track]) {
|
|
229
|
-
:where([data-track="slide"] [data-control-family="button"][data-track-item]:not([data-popup-open], :active)) {
|
|
230
|
-
background-color: var(--cui-button-background);
|
|
231
|
-
box-shadow: var(--cui-button-shadow);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
:where([data-control-family="button"][data-control="true"]:active) {
|
|
236
|
-
background-color: var(--cui-button-press-background);
|
|
237
|
-
box-shadow: var(--cui-button-press-shadow);
|
|
238
|
-
scale: var(--cui-button-press-scale);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
:where([data-control-family="button"]:is(:disabled, [data-disabled], [aria-disabled="true"])) {
|
|
242
|
-
cursor: not-allowed;
|
|
243
|
-
opacity: 0.45;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
182
|
:where([data-control-family="button"][data-button-kind="model-switcher"][data-slot="value"]) {
|
|
247
183
|
gap: calc(var(--spacing) * 1.5);
|
|
248
184
|
}
|
|
@@ -305,6 +241,11 @@
|
|
|
305
241
|
inherits: true;
|
|
306
242
|
}
|
|
307
243
|
|
|
244
|
+
@property --cui-button-hover-background-image {
|
|
245
|
+
syntax: "*";
|
|
246
|
+
inherits: true;
|
|
247
|
+
}
|
|
248
|
+
|
|
308
249
|
@property --cui-button-foreground {
|
|
309
250
|
syntax: "<color>";
|
|
310
251
|
inherits: true;
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
:where([data-control-family="calendar"][data-slot="caption-label"]) {
|
|
12
12
|
color: var(--foreground);
|
|
13
|
-
font-size: var(--text-
|
|
13
|
+
font-size: var(--text-body);
|
|
14
14
|
font-weight: var(--font-weight-medium);
|
|
15
|
-
line-height:
|
|
15
|
+
line-height: 1.4;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
:where([data-control-family="calendar"][data-slot="months"]) {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
:where([data-control-family="calendar"][data-slot="weekday"]) {
|
|
32
32
|
padding-block-end: calc(var(--spacing) * 1.5);
|
|
33
33
|
color: var(--muted-foreground);
|
|
34
|
-
font-size:
|
|
34
|
+
font-size: var(--text-caption);
|
|
35
35
|
font-weight: var(--font-weight-normal);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -39,44 +39,38 @@
|
|
|
39
39
|
inline-size: calc(var(--spacing) * 8);
|
|
40
40
|
block-size: calc(var(--spacing) * 8);
|
|
41
41
|
border-radius: var(--radius-control);
|
|
42
|
-
outline: none;
|
|
43
42
|
color: var(--muted-foreground);
|
|
44
43
|
}
|
|
45
44
|
|
|
45
|
+
:where([data-control-family="calendar"]:is([data-slot="nav-button"], [data-slot="day"]):is(:disabled, [aria-disabled="true"])) {
|
|
46
|
+
opacity: var(--disabled-opacity);
|
|
47
|
+
}
|
|
48
|
+
|
|
46
49
|
@media (hover: hover) {
|
|
47
|
-
:where([data-control-family="calendar"][data-slot="nav-button"]:hover) {
|
|
50
|
+
:where([data-control-family="calendar"][data-slot="nav-button"]:hover:not(:disabled, [aria-disabled="true"])) {
|
|
48
51
|
background-color: var(--accent);
|
|
49
52
|
color: var(--accent-foreground);
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
53
|
-
:where([data-control-family="calendar"][data-slot="nav-button"]:disabled) {
|
|
54
|
-
opacity: 0.4;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
56
|
:where([data-control-family="calendar"][data-slot="day"]) {
|
|
58
57
|
block-size: calc(var(--spacing) * 9);
|
|
59
58
|
min-inline-size: calc(var(--spacing) * 9);
|
|
60
59
|
border-radius: var(--cui-calendar-day-radius);
|
|
61
|
-
outline: none;
|
|
62
60
|
color: var(--foreground);
|
|
63
|
-
font-size: var(--text-
|
|
61
|
+
font-size: var(--text-body);
|
|
64
62
|
font-weight: var(--font-weight-normal);
|
|
65
63
|
line-height: 1;
|
|
66
64
|
font-variant-numeric: tabular-nums;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
@media (hover: hover) {
|
|
70
|
-
:where([data-control-family="calendar"][data-slot="day"]:hover) {
|
|
68
|
+
:where([data-control-family="calendar"][data-slot="day"]:hover:not(:disabled, [aria-disabled="true"])) {
|
|
71
69
|
background-color: var(--accent);
|
|
72
70
|
color: var(--accent-foreground);
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
:where([data-control-family="calendar"][data-slot="day"]:disabled) {
|
|
77
|
-
opacity: 0.4;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
74
|
:where([data-control-family="calendar"][data-slot="day"][data-today]) {
|
|
81
75
|
background-color: var(--cui-calendar-today-background);
|
|
82
76
|
color: var(--accent-foreground);
|
|
@@ -97,13 +91,13 @@
|
|
|
97
91
|
}
|
|
98
92
|
|
|
99
93
|
:where([data-control-family="calendar"][data-slot="day"][data-range-start]) {
|
|
100
|
-
border-
|
|
101
|
-
border-
|
|
94
|
+
border-start-end-radius: 0;
|
|
95
|
+
border-end-end-radius: 0;
|
|
102
96
|
}
|
|
103
97
|
|
|
104
98
|
:where([data-control-family="calendar"][data-slot="day"][data-range-end]) {
|
|
105
|
-
border-
|
|
106
|
-
border-
|
|
99
|
+
border-start-start-radius: 0;
|
|
100
|
+
border-end-start-radius: 0;
|
|
107
101
|
}
|
|
108
102
|
|
|
109
103
|
:where([data-control-family="calendar"][data-slot="day-cell"]) {
|
|
@@ -117,8 +111,8 @@
|
|
|
117
111
|
|
|
118
112
|
@media (pointer: coarse) {
|
|
119
113
|
:where([data-control-family="calendar"][data-slot="day"]) {
|
|
120
|
-
min-inline-size:
|
|
121
|
-
min-block-size:
|
|
114
|
+
min-inline-size: var(--touch-target);
|
|
115
|
+
min-block-size: var(--touch-target);
|
|
122
116
|
}
|
|
123
117
|
|
|
124
118
|
:where([data-control-family="calendar"][data-slot="nav-button"]) {
|
|
@@ -131,7 +125,7 @@
|
|
|
131
125
|
inset: 50% 50%;
|
|
132
126
|
translate: -50% -50%;
|
|
133
127
|
inline-size: 100%;
|
|
134
|
-
block-size: max(100%,
|
|
128
|
+
block-size: max(100%, var(--touch-target));
|
|
135
129
|
}
|
|
136
130
|
}
|
|
137
131
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--cui-card-radius: var(--radius-lg);
|
|
4
4
|
--cui-card-background: var(--card);
|
|
5
5
|
--cui-card-border-color: var(--border);
|
|
6
|
-
--cui-card-border-width:
|
|
6
|
+
--cui-card-border-width: var(--control-rim-width);
|
|
7
7
|
--cui-card-shadow: var(--shadow-sm);
|
|
8
8
|
--cui-card-backdrop-filter: none;
|
|
9
9
|
border: var(--cui-card-border-width) solid var(--cui-card-border-color);
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
:where([data-control-family="card"][data-slot="title"]) {
|
|
49
49
|
font-weight: var(--font-weight-semibold);
|
|
50
|
-
line-height:
|
|
50
|
+
line-height: var(--leading-tight);
|
|
51
51
|
text-wrap: balance;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
--cui-chat-composer-attachment-border-color: var(--control-rim);
|
|
9
9
|
--cui-chat-composer-attachment-height: calc(var(--spacing) * 14);
|
|
10
10
|
--cui-chat-composer-attachment-radius: var(--radius-popover);
|
|
11
|
-
--cui-chat-composer-attachment-image-outline-color:
|
|
11
|
+
--cui-chat-composer-attachment-image-outline-color: var(--image-outline);
|
|
12
12
|
--cui-chat-composer-attachment-shadow:
|
|
13
13
|
inset 0 0 0 var(--control-rim-width) var(--cui-chat-composer-attachment-border-color), var(--shadow-sm);
|
|
14
14
|
--cui-chat-composer-attachment-backdrop-filter: blur(var(--backdrop-blur-popover));
|
|
15
15
|
--cui-chat-composer-attachment-progress-background: transparent;
|
|
16
16
|
--cui-chat-composer-attachment-progress-foreground: oklch(from var(--background) l c h / var(--overlay-opacity));
|
|
17
17
|
block-size: var(--cui-chat-composer-attachment-height);
|
|
18
|
-
text-align:
|
|
18
|
+
text-align: start;
|
|
19
19
|
border-radius: var(--cui-chat-composer-attachment-radius);
|
|
20
20
|
background: var(--cui-chat-composer-attachment-background);
|
|
21
21
|
box-shadow: var(--cui-chat-composer-attachment-shadow);
|
|
@@ -129,7 +129,13 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
@media (hover: hover) {
|
|
132
|
-
:where(
|
|
132
|
+
:where(
|
|
133
|
+
[data-control-family="button"][data-chat-composer-attachment-remove="true"]:not(
|
|
134
|
+
:disabled,
|
|
135
|
+
[data-disabled],
|
|
136
|
+
[aria-disabled="true"]
|
|
137
|
+
):hover
|
|
138
|
+
) {
|
|
133
139
|
--cui-button-hover-background: oklch(from var(--foreground) l c h / 0.85);
|
|
134
140
|
--cui-button-hover-foreground: var(--background);
|
|
135
141
|
}
|
|
@@ -32,13 +32,9 @@
|
|
|
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);
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
:where([data-control-family="chat-composer"][data-slot="shell"] [data-control-family="dropzone"][data-slot="overlay"]) {
|
|
@@ -52,7 +48,7 @@
|
|
|
52
48
|
|
|
53
49
|
:where([data-control-family="chat-composer"]:is([data-slot="textarea"], [data-slot="fallback"], [data-slot="placeholder"])),
|
|
54
50
|
:where([data-control-family="chat-composer"][data-slot="editor"] .ProseMirror) {
|
|
55
|
-
font-size: var(--text-
|
|
51
|
+
font-size: var(--text-body);
|
|
56
52
|
line-height: calc(var(--spacing) * 6);
|
|
57
53
|
}
|
|
58
54
|
|
|
@@ -61,6 +57,7 @@
|
|
|
61
57
|
border: 0;
|
|
62
58
|
background: transparent;
|
|
63
59
|
color: var(--cui-chat-composer-input-foreground);
|
|
60
|
+
--focus-ring-width: 0px;
|
|
64
61
|
outline: none;
|
|
65
62
|
}
|
|
66
63
|
|
|
@@ -71,12 +68,12 @@
|
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
:where([data-control-family="chat-composer"][data-slot="textarea"]:disabled) {
|
|
74
|
-
opacity:
|
|
71
|
+
opacity: var(--disabled-opacity);
|
|
75
72
|
}
|
|
76
73
|
|
|
77
74
|
:where([data-control-family="chat-composer"][data-slot="editor"] [aria-disabled="true"]) {
|
|
78
75
|
cursor: not-allowed;
|
|
79
|
-
opacity:
|
|
76
|
+
opacity: var(--disabled-opacity);
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
:where([data-control-family="chat-composer"][data-slot="toolbar"]) {
|
|
@@ -129,7 +126,7 @@
|
|
|
129
126
|
@media (pointer: coarse) {
|
|
130
127
|
:where([data-control-family="chat-composer"]:is([data-slot="textarea"], [data-slot="fallback"], [data-slot="placeholder"])),
|
|
131
128
|
:where([data-control-family="chat-composer"][data-slot="editor"] .ProseMirror) {
|
|
132
|
-
font-size: max(
|
|
129
|
+
font-size: max(var(--text-input-min), var(--text-body));
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
132
|
}
|
|
@@ -32,6 +32,36 @@
|
|
|
32
32
|
border-radius: var(--cui-chat-layout-radius);
|
|
33
33
|
}
|
|
34
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
|
+
|
|
35
65
|
:where([data-control-family="chat-layout"][data-slot="thread-content"]) {
|
|
36
66
|
gap: calc(var(--spacing) * 8);
|
|
37
67
|
padding-block: calc(var(--spacing) * 6);
|
|
@@ -44,6 +74,11 @@
|
|
|
44
74
|
}
|
|
45
75
|
}
|
|
46
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
|
+
|
|
47
82
|
:where([data-control-family="chat-layout"][data-slot="turn"]) {
|
|
48
83
|
gap: var(--cui-chat-layout-turn-gap);
|
|
49
84
|
}
|
|
@@ -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
|
+
}
|