@ctrl-ui/react 0.8.7 → 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 +40 -20
- package/dist/activity.js +8 -16
- 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-inspector.js +2 -2
- package/dist/blocks/design-canvas.d.ts +5 -1
- package/dist/blocks/design-canvas.js +200 -94
- 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 +102 -80
- 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 +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 +57 -30
- package/dist/chat-composer.d.ts +13 -32
- package/dist/chat-composer.js +53 -13
- 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 +39 -24
- 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 +86 -23
- 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 +20 -9
- package/dist/filter-bar/types.d.ts +1 -0
- package/dist/filter-bar.js +20 -14
- 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 +26 -17
- 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/phone-input-format.js +1 -1
- 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 +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 +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-dialog.js +1 -1
- package/dist/ui/alert.d.ts +3 -1
- package/dist/ui/alert.js +14 -8
- package/dist/ui/autocomplete.js +4 -2
- 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 +3 -3
- 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 +72 -28
- package/dist/ui/code.d.ts +5 -3
- package/dist/ui/code.js +28 -29
- package/dist/ui/collapsible.js +1 -1
- package/dist/ui/color-picker.d.ts +5 -2
- package/dist/ui/color-picker.js +85 -37
- package/dist/ui/combobox-disabled-selection.d.ts +1 -2
- package/dist/ui/combobox-disabled-selection.js +7 -9
- package/dist/ui/combobox.js +14 -6
- package/dist/ui/command.d.ts +8 -2
- package/dist/ui/command.js +30 -14
- package/dist/ui/context-menu.js +4 -1
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +4 -23
- 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/drawer.js +1 -1
- package/dist/ui/dropdown-menu.js +5 -4
- 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/hover-card.js +1 -1
- 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 +4 -14
- 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 +12 -8
- 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 +3 -3
- package/dist/ui/morphing-panel.js +3 -2
- package/dist/ui/native-select.d.ts +1 -1
- package/dist/ui/native-select.js +24 -11
- package/dist/ui/navigation-menu.js +1 -1
- 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 +58 -60
- package/dist/ui/popover.js +1 -1
- 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 +82 -34
- package/dist/ui/scroll-area.d.ts +1 -1
- package/dist/ui/scroll-area.js +43 -28
- package/dist/ui/select.js +1 -1
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar-menu.d.ts +5 -1
- package/dist/ui/sidebar-menu.js +32 -34
- package/dist/ui/sidebar-provider.d.ts +10 -1
- package/dist/ui/sidebar-provider.js +39 -14
- package/dist/ui/sidebar-resize-rail.js +8 -4
- package/dist/ui/sidebar.d.ts +11 -6
- package/dist/ui/sidebar.js +47 -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 +101 -55
- package/dist/ui/toolbar.d.ts +3 -2
- package/dist/ui/toolbar.js +4 -2
- package/dist/ui/tooltip.js +4 -21
- package/dist/ui/tree.js +121 -81
- package/dist/ui/trigger-menu.js +2 -1
- package/dist/user-ask.d.ts +10 -5
- package/dist/user-ask.js +32 -12
- package/package.json +5 -1
- package/dist/hooks/use-keyboard-navigation.d.ts +0 -3
- package/dist/hooks/use-keyboard-navigation.js +0 -22
|
@@ -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
|
+
}
|
|
@@ -4,19 +4,16 @@
|
|
|
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);
|
|
8
|
-
--cui-choice-border-color: var(--
|
|
9
|
-
--cui-choice-border-width:
|
|
7
|
+
--cui-choice-shadow: inset 0 0 0 var(--cui-choice-border-width) var(--cui-choice-border-color), var(--shadow-sm);
|
|
8
|
+
--cui-choice-border-color: var(--control-boundary);
|
|
9
|
+
--cui-choice-border-width: var(--control-rim-width);
|
|
10
10
|
--cui-choice-checked-background: var(--primary);
|
|
11
11
|
--cui-choice-checked-border-color: var(--primary);
|
|
12
12
|
--_choice-background: var(--control-fill);
|
|
13
13
|
border-radius: var(--cui-choice-radius);
|
|
14
14
|
background: var(--_choice-background);
|
|
15
|
-
box-shadow:
|
|
16
|
-
inset 0 0 0 var(--cui-choice-border-width) var(--cui-choice-border-color),
|
|
17
|
-
var(--cui-choice-shadow);
|
|
15
|
+
box-shadow: var(--cui-choice-shadow);
|
|
18
16
|
color: currentColor;
|
|
19
|
-
outline: none;
|
|
20
17
|
transition-property: background-color, color;
|
|
21
18
|
transition-duration: var(--duration-fast);
|
|
22
19
|
transition-timing-function: var(--ease-standard);
|
|
@@ -24,12 +21,17 @@
|
|
|
24
21
|
|
|
25
22
|
:where([data-control-family="choice"][data-choice-kind="radio-group"][data-slot="item"]) {
|
|
26
23
|
--cui-choice-radius: 9999px;
|
|
27
|
-
outline-style: none;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
@media (hover: hover) {
|
|
27
|
+
:where(
|
|
28
|
+
[data-control-family="choice"]:is(
|
|
29
|
+
[data-choice-kind="checkbox"][data-slot="root"],
|
|
30
|
+
[data-choice-kind="radio-group"][data-slot="item"]
|
|
31
|
+
):hover:not([data-disabled], [data-readonly])
|
|
32
|
+
) {
|
|
33
|
+
--cui-choice-border-color: color-mix(in oklch, var(--control-boundary), var(--foreground) 35%);
|
|
34
|
+
}
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
:where([data-control-family="choice"][data-choice-kind="checkbox"][data-slot="root"]:is([data-checked], [data-indeterminate])),
|
|
@@ -41,15 +43,14 @@
|
|
|
41
43
|
|
|
42
44
|
:where([data-control-family="choice"][data-choice-kind="checkbox"][data-slot="root"][data-disabled]),
|
|
43
45
|
:where([data-control-family="choice"][data-choice-kind="radio-group"][data-slot="item"][data-disabled]) {
|
|
44
|
-
opacity:
|
|
46
|
+
opacity: var(--disabled-opacity);
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
:where([data-control-family="choice"][data-choice-kind="checkbox"][data-slot="root"][data-invalid]),
|
|
48
50
|
:where([data-control-family="choice"][data-choice-kind="radio-group"][data-slot="item"][data-invalid]) {
|
|
49
51
|
--cui-choice-border-color: var(--destructive);
|
|
50
52
|
box-shadow:
|
|
51
|
-
|
|
52
|
-
var(--shadow-sm),
|
|
53
|
+
var(--cui-choice-shadow),
|
|
53
54
|
0 0 0 1px var(--destructive);
|
|
54
55
|
}
|
|
55
56
|
|
|
@@ -80,19 +81,15 @@
|
|
|
80
81
|
color: currentcolor;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
:where([data-control-family="choice"][data-choice-kind="checkbox"][data-slot="root"]) {
|
|
84
|
-
outline-style: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
84
|
@media (pointer: coarse) {
|
|
88
85
|
:where([data-control-family="choice"][data-choice-kind="checkbox"][data-slot="root"])::after,
|
|
89
86
|
:where([data-control-family="choice"][data-choice-kind="radio-group"][data-slot="item"])::after {
|
|
90
87
|
content: "";
|
|
91
88
|
position: absolute;
|
|
92
|
-
inset: 50
|
|
89
|
+
inset: 50%;
|
|
93
90
|
translate: -50% -50%;
|
|
94
|
-
inline-size: max(100%,
|
|
95
|
-
block-size: max(100%,
|
|
91
|
+
inline-size: max(100%, var(--touch-target));
|
|
92
|
+
block-size: max(100%, var(--touch-target));
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
}
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
:where([data-control-family="code-diff"][data-slot="root"]) {
|
|
3
3
|
--cui-code-diff-background: var(--background);
|
|
4
4
|
--cui-code-diff-border-color: var(--border);
|
|
5
|
-
--cui-code-diff-border-width:
|
|
6
|
-
--_code-
|
|
5
|
+
--cui-code-diff-border-width: var(--control-rim-width);
|
|
6
|
+
--_code-corner-inset: calc(var(--spacing) * 1.5);
|
|
7
7
|
--cui-code-diff-radius: min(
|
|
8
8
|
var(--radius-panel),
|
|
9
|
-
calc(var(--control-h-xs) / 2 + var(--cui-code-diff-border-width) + var(--_code-
|
|
9
|
+
calc(var(--control-h-xs) / 2 + var(--cui-code-diff-border-width) + var(--_code-corner-inset))
|
|
10
10
|
);
|
|
11
|
+
--_code-nest-radius: max(0px, calc(var(--cui-code-diff-radius) - var(--cui-code-diff-border-width) - var(--_code-corner-inset)));
|
|
11
12
|
--cui-code-diff-shadow: var(--shadow-sm);
|
|
13
|
+
--cui-code-diff-header-background: var(--diff-gutter-bg);
|
|
14
|
+
--cui-code-diff-header-border-color: var(--border);
|
|
12
15
|
--cui-code-diff-foreground: var(--code-foreground);
|
|
13
16
|
--cui-code-diff-add-background: var(--diff-add-line);
|
|
14
17
|
--cui-code-diff-del-background: var(--diff-del-line);
|
|
@@ -25,31 +28,20 @@
|
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
:where([data-control-family="code-diff"]:is([data-slot="header"], [data-slot="file-header"])) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
background: var(--diff-gutter-bg);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:where([data-control-family="code-diff"][data-slot="header"]) {
|
|
34
|
-
min-block-size: calc(var(--spacing) * 10);
|
|
35
|
-
padding-block: var(--_code-diff-corner-inset);
|
|
36
|
-
padding-inline: calc(var(--spacing) * 3) var(--_code-diff-corner-inset);
|
|
31
|
+
border-block-end-color: var(--cui-code-diff-header-border-color);
|
|
32
|
+
background: var(--cui-code-diff-header-background);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
:where([data-control-family="code-diff"][data-slot="file-header"]) {
|
|
40
36
|
min-block-size: calc(var(--spacing) * 9);
|
|
37
|
+
gap: calc(var(--spacing) * 3);
|
|
41
38
|
padding-block: calc(var(--spacing) * 1.5);
|
|
42
39
|
padding-inline: calc(var(--spacing) * 3);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
:where([data-control-family="code-diff"][data-slot="root"] > [data-control-family="button"][data-code-floating="true"]) {
|
|
46
|
-
--nest-radius: max(0px, calc(var(--cui-code-diff-radius) - var(--cui-code-diff-border-width) - var(--_code-diff-corner-inset)));
|
|
47
|
-
inset-block-start: var(--_code-diff-corner-inset);
|
|
48
|
-
inset-inline-end: var(--_code-diff-corner-inset);
|
|
40
|
+
border-block-end-width: 1px;
|
|
41
|
+
border-block-end-style: solid;
|
|
49
42
|
}
|
|
50
43
|
|
|
51
44
|
:where([data-control-family="code-diff"][data-slot="actions"]) {
|
|
52
|
-
--nest-radius: max(0px, calc(var(--cui-code-diff-radius) - var(--cui-code-diff-border-width) - var(--_code-diff-corner-inset)));
|
|
53
45
|
gap: calc(var(--spacing) * 2);
|
|
54
46
|
}
|
|
55
47
|
|
|
@@ -85,16 +77,16 @@
|
|
|
85
77
|
}
|
|
86
78
|
|
|
87
79
|
:where([data-control-family="code-diff"][data-slot="line"][data-indicators="bars"][data-line-type="add"]) {
|
|
88
|
-
border-
|
|
80
|
+
border-inline-start: 2px solid var(--diff-add-fg);
|
|
89
81
|
}
|
|
90
82
|
|
|
91
83
|
:where([data-control-family="code-diff"][data-slot="line"][data-indicators="bars"][data-line-type="del"]) {
|
|
92
|
-
border-
|
|
84
|
+
border-inline-start: 2px solid var(--diff-del-fg);
|
|
93
85
|
}
|
|
94
86
|
|
|
95
87
|
:where([data-control-family="code-diff"][data-slot="line"][data-side="left"]),
|
|
96
88
|
:where([data-control-family="code-diff"][data-slot="empty-half"][data-side="left"]) {
|
|
97
|
-
border-
|
|
89
|
+
border-inline-end: 1px solid oklch(from var(--border) l c h / 0.6);
|
|
98
90
|
}
|
|
99
91
|
|
|
100
92
|
:where([data-control-family="code-diff"][data-slot="empty-half"]) {
|
|
@@ -114,13 +106,8 @@
|
|
|
114
106
|
padding-inline: calc(var(--spacing) * 1.5);
|
|
115
107
|
}
|
|
116
108
|
|
|
117
|
-
:where([data-control-family="code-diff"][data-slot="
|
|
118
|
-
|
|
119
|
-
padding-inline: calc(var(--spacing) * 2);
|
|
120
|
-
color: var(--diff-context-fg);
|
|
121
|
-
opacity: 0.7;
|
|
122
|
-
text-align: right;
|
|
123
|
-
font-variant-numeric: tabular-nums;
|
|
109
|
+
:where([data-control-family="code-diff"][data-slot="revealed-row"]) {
|
|
110
|
+
--focus-ring-offset: calc(var(--focus-ring-width) * -1);
|
|
124
111
|
}
|
|
125
112
|
|
|
126
113
|
:where([data-control-family="code-diff"][data-slot="gutter"][data-line-type="add"]) {
|
|
@@ -163,18 +150,32 @@
|
|
|
163
150
|
}
|
|
164
151
|
|
|
165
152
|
:where([data-control-family="code-diff"][data-slot="expand-button"]) {
|
|
153
|
+
position: relative;
|
|
154
|
+
min-block-size: var(--target-min);
|
|
166
155
|
padding-inline: calc(var(--spacing) * 1.5);
|
|
167
156
|
padding-block: calc(var(--spacing) * 0.5);
|
|
168
157
|
border-radius: var(--cui-code-diff-expand-button-radius);
|
|
169
158
|
background: var(--cui-code-diff-expand-button-background);
|
|
170
159
|
box-shadow: var(--cui-code-diff-expand-button-shadow);
|
|
171
160
|
color: var(--cui-code-diff-expand-button-foreground);
|
|
172
|
-
outline-style: none;
|
|
173
161
|
}
|
|
174
162
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
163
|
+
@media (hover: hover) {
|
|
164
|
+
:where([data-control-family="code-diff"][data-slot="expand-button"]:hover) {
|
|
165
|
+
background: var(--cui-code-diff-expand-button-hover-background);
|
|
166
|
+
color: var(--cui-code-diff-expand-button-hover-foreground);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@media (pointer: coarse) {
|
|
171
|
+
:where([data-control-family="code-diff"][data-slot="expand-button"])::after {
|
|
172
|
+
content: "";
|
|
173
|
+
position: absolute;
|
|
174
|
+
inset: 50% 50%;
|
|
175
|
+
translate: -50% -50%;
|
|
176
|
+
inline-size: max(100%, var(--touch-target));
|
|
177
|
+
block-size: max(100%, var(--touch-target));
|
|
178
|
+
}
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
:where([data-control-family="code-diff"][data-slot="title"]) {
|
|
@@ -222,6 +223,18 @@
|
|
|
222
223
|
initial-value: 0px;
|
|
223
224
|
}
|
|
224
225
|
|
|
226
|
+
@property --cui-code-diff-header-background {
|
|
227
|
+
syntax: "<color>";
|
|
228
|
+
inherits: true;
|
|
229
|
+
initial-value: transparent;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@property --cui-code-diff-header-border-color {
|
|
233
|
+
syntax: "<color>";
|
|
234
|
+
inherits: true;
|
|
235
|
+
initial-value: transparent;
|
|
236
|
+
}
|
|
237
|
+
|
|
225
238
|
@property --cui-code-diff-foreground {
|
|
226
239
|
syntax: "<color>";
|
|
227
240
|
inherits: true;
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
:where([data-control-family="code"][data-slot="root"]) {
|
|
3
3
|
--cui-code-background: var(--background);
|
|
4
4
|
--cui-code-border-color: var(--control-rim);
|
|
5
|
-
--cui-code-border-width:
|
|
5
|
+
--cui-code-border-width: var(--control-rim-width);
|
|
6
6
|
--_code-corner-inset: calc(var(--spacing) * 1.5);
|
|
7
7
|
--cui-code-radius: min(var(--radius-panel), calc(var(--control-h-xs) / 2 + var(--cui-code-border-width) + var(--_code-corner-inset)));
|
|
8
|
+
--_code-nest-radius: max(0px, calc(var(--cui-code-radius) - var(--cui-code-border-width) - var(--_code-corner-inset)));
|
|
8
9
|
--cui-code-shadow: var(--shadow-sm);
|
|
10
|
+
--cui-code-header-background: transparent;
|
|
9
11
|
--cui-code-text-foreground: var(--code-foreground);
|
|
10
12
|
--cui-code-title-foreground: var(--muted-foreground);
|
|
11
13
|
--cui-code-line-highlight-background: oklch(from var(--primary) l c h / 0.08);
|
|
@@ -25,22 +27,34 @@
|
|
|
25
27
|
box-shadow: none;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
:where([data-control-family="code"][data-slot="header"]) {
|
|
30
|
+
:where(:is([data-control-family="code"], [data-control-family="code-diff"])[data-slot="header"]) {
|
|
29
31
|
min-block-size: calc(var(--spacing) * 10);
|
|
30
32
|
gap: calc(var(--spacing) * 3);
|
|
31
33
|
padding-block: var(--_code-corner-inset);
|
|
32
34
|
padding-inline: calc(var(--spacing) * 3) var(--_code-corner-inset);
|
|
33
|
-
border-
|
|
35
|
+
border-block-end-width: 1px;
|
|
36
|
+
border-block-end-style: solid;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where([data-control-family="code"][data-slot="header"]) {
|
|
40
|
+
border-block-end-color: var(--border);
|
|
41
|
+
background: var(--cui-code-header-background);
|
|
34
42
|
}
|
|
35
43
|
|
|
36
|
-
:where(
|
|
37
|
-
|
|
44
|
+
:where(
|
|
45
|
+
:is([data-control-family="code"][data-slot="floating-frame"], [data-control-family="code-diff"][data-slot="root"])
|
|
46
|
+
> [data-control-family="button"][data-code-floating="true"]
|
|
47
|
+
) {
|
|
48
|
+
--nest-radius: var(--_code-nest-radius);
|
|
38
49
|
inset-block-start: var(--_code-corner-inset);
|
|
39
50
|
inset-inline-end: var(--_code-corner-inset);
|
|
40
51
|
}
|
|
41
52
|
|
|
53
|
+
:where(:is([data-control-family="code"], [data-control-family="code-diff"])[data-slot="actions"]) {
|
|
54
|
+
--nest-radius: var(--_code-nest-radius);
|
|
55
|
+
}
|
|
56
|
+
|
|
42
57
|
:where([data-control-family="code"][data-slot="actions"]) {
|
|
43
|
-
--nest-radius: max(0px, calc(var(--cui-code-radius) - var(--cui-code-border-width) - var(--_code-corner-inset)));
|
|
44
58
|
gap: calc(var(--spacing) * 1);
|
|
45
59
|
margin-inline-start: auto;
|
|
46
60
|
}
|
|
@@ -107,36 +121,36 @@
|
|
|
107
121
|
padding: 0;
|
|
108
122
|
}
|
|
109
123
|
|
|
110
|
-
:where([data-control-family="code"][data-slot="gutter"]) {
|
|
111
|
-
min-inline-size: calc(var(--spacing) *
|
|
112
|
-
padding-inline: calc(var(--spacing) *
|
|
113
|
-
color: oklch(from var(--muted-foreground) l c h / 0.
|
|
124
|
+
:where(:is([data-control-family="code"], [data-control-family="code-diff"])[data-slot="gutter"]) {
|
|
125
|
+
min-inline-size: calc(var(--spacing) * 11);
|
|
126
|
+
padding-inline: calc(var(--spacing) * 3) calc(var(--spacing) * 2);
|
|
127
|
+
color: oklch(from var(--muted-foreground) l c h / 0.7);
|
|
114
128
|
text-align: right;
|
|
115
129
|
font-variant-numeric: tabular-nums;
|
|
116
130
|
}
|
|
117
131
|
|
|
118
132
|
@media (pointer: coarse) {
|
|
119
133
|
:where([data-control-family="code"][data-slot="editor"]) {
|
|
120
|
-
font-size: max(
|
|
134
|
+
font-size: max(var(--text-input-min), var(--text-label));
|
|
121
135
|
}
|
|
122
136
|
|
|
123
|
-
:where([data-control-family="code"][data-slot="header"]) {
|
|
124
|
-
min-block-size:
|
|
137
|
+
:where(:is([data-control-family="code"], [data-control-family="code-diff"])[data-slot="header"]) {
|
|
138
|
+
min-block-size: var(--touch-target);
|
|
125
139
|
}
|
|
126
140
|
|
|
127
|
-
:where([data-control-family="code"][data-slot="actions"] [data-control-family="button"]),
|
|
141
|
+
:where(:is([data-control-family="code"], [data-control-family="code-diff"])[data-slot="actions"] [data-control-family="button"]),
|
|
128
142
|
:where([data-control-family="button"][data-code-copy="true"]) {
|
|
129
143
|
position: relative;
|
|
130
144
|
}
|
|
131
145
|
|
|
132
|
-
:where([data-control-family="code"][data-slot="actions"] [data-control-family="button"])::after,
|
|
146
|
+
:where(:is([data-control-family="code"], [data-control-family="code-diff"])[data-slot="actions"] [data-control-family="button"])::after,
|
|
133
147
|
:where([data-control-family="button"][data-code-copy="true"])::after {
|
|
134
148
|
content: "";
|
|
135
149
|
position: absolute;
|
|
136
150
|
inset: 50% 50%;
|
|
137
151
|
translate: -50% -50%;
|
|
138
152
|
inline-size: 100%;
|
|
139
|
-
block-size: max(100%,
|
|
153
|
+
block-size: max(100%, var(--touch-target));
|
|
140
154
|
}
|
|
141
155
|
}
|
|
142
156
|
}
|
|
@@ -187,3 +201,9 @@
|
|
|
187
201
|
inherits: true;
|
|
188
202
|
initial-value: transparent;
|
|
189
203
|
}
|
|
204
|
+
|
|
205
|
+
@property --cui-code-header-background {
|
|
206
|
+
syntax: "<color>";
|
|
207
|
+
inherits: true;
|
|
208
|
+
initial-value: transparent;
|
|
209
|
+
}
|
|
@@ -16,14 +16,19 @@
|
|
|
16
16
|
font-size: var(--text-label);
|
|
17
17
|
font-weight: var(--font-weight-medium);
|
|
18
18
|
text-align: start;
|
|
19
|
-
outline: none;
|
|
20
19
|
transition: background-color var(--duration-fast) var(--ease-standard);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
:where([data-control-family="collapsible"][data-slot="trigger"]:
|
|
22
|
+
:where([data-control-family="collapsible"][data-slot="trigger"]:focus-visible) {
|
|
24
23
|
background: var(--cui-collapsible-trigger-hover-background);
|
|
25
24
|
}
|
|
26
25
|
|
|
26
|
+
@media (hover: hover) {
|
|
27
|
+
:where([data-control-family="collapsible"][data-slot="trigger"]:not(:disabled, [data-disabled]):hover) {
|
|
28
|
+
background: var(--cui-collapsible-trigger-hover-background);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
:where([data-control-family="collapsible"][data-slot="trigger"] > svg) {
|
|
28
33
|
inline-size: 1rem;
|
|
29
34
|
block-size: 1rem;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
:where([data-control-family="color-picker"][data-slot="trigger"]) {
|
|
7
7
|
border-radius: var(--cui-color-picker-trigger-radius);
|
|
8
|
-
outline-style: none;
|
|
9
8
|
transition-property: transform, translate, scale, rotate;
|
|
10
9
|
transition-timing-function: var(--ease-standard);
|
|
11
10
|
transition-duration: var(--duration-fast);
|
|
@@ -13,15 +12,15 @@
|
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
:where([data-control-family="color-picker"][data-slot="trigger"]:disabled) {
|
|
16
|
-
opacity:
|
|
15
|
+
opacity: var(--disabled-opacity);
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
:where([data-control-family="color-picker"][data-slot="area"][data-disabled="true"]) {
|
|
20
|
-
opacity:
|
|
19
|
+
opacity: var(--disabled-opacity);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
:where([data-control-family="color-picker"][data-slot="wheel"][data-disabled="true"]) {
|
|
24
|
-
opacity:
|
|
23
|
+
opacity: var(--disabled-opacity);
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
:where([data-control-family="color-picker"][data-slot="area-saturation"]) {
|