@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--cui-environment-variables-error-foreground: var(--destructive-text);
|
|
4
4
|
--cui-environment-variables-message-background: oklch(from var(--destructive) l c h / 0.05);
|
|
5
5
|
--cui-environment-variables-message-border-color: oklch(from var(--destructive) l c h / 0.4);
|
|
6
|
-
--cui-environment-variables-message-border-width:
|
|
6
|
+
--cui-environment-variables-message-border-width: var(--control-rim-width);
|
|
7
7
|
--cui-environment-variables-message-foreground: var(--destructive-text);
|
|
8
8
|
--cui-environment-variables-meta-foreground: var(--muted-foreground);
|
|
9
9
|
--cui-environment-variables-title-foreground: var(--foreground);
|
|
@@ -75,12 +75,9 @@
|
|
|
75
75
|
color: var(--foreground);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
:where([data-control-family="environment-variables"]
|
|
79
|
-
font-size: var(--text-caption);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
:where([data-control-family="environment-variables"][data-slot="value-group"][data-invalid="true"]) {
|
|
83
|
-
box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.7);
|
|
78
|
+
:where([data-control-family="environment-variables"][data-slot="row"] [data-control-family="field"][data-control="true"]) {
|
|
79
|
+
--cui-field-font-size: var(--text-caption);
|
|
80
|
+
font-family: var(--font-mono);
|
|
84
81
|
}
|
|
85
82
|
|
|
86
83
|
:where([data-control-family="environment-variables"][data-slot="field-error"]) {
|
|
@@ -114,18 +111,10 @@
|
|
|
114
111
|
text-align: center;
|
|
115
112
|
}
|
|
116
113
|
|
|
117
|
-
:where([data-control-family="environment-variables"][data-slot="value-input"]) {
|
|
118
|
-
font-family: var(--font-mono);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
114
|
:where([data-control-family="environment-variables"][data-slot="field-label"]) {
|
|
122
115
|
font-weight: var(--font-weight-medium);
|
|
123
116
|
}
|
|
124
117
|
|
|
125
|
-
:where([data-control-family="environment-variables"][data-slot="key-input"]) {
|
|
126
|
-
font-family: var(--font-mono);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
118
|
:where([data-control-family="environment-variables"][data-slot="column-labels"]) {
|
|
130
119
|
gap: calc(var(--spacing) * 2);
|
|
131
120
|
padding-inline: calc(var(--spacing) * 1);
|
|
@@ -1,33 +1,41 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="field"][data-field-kind="input-group"][data-slot="addon"]),
|
|
3
|
-
:where([data-control-family="field"][data-field-kind="
|
|
4
|
-
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="clear"]),
|
|
5
|
-
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]),
|
|
6
|
-
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="increment"]),
|
|
7
|
-
:where([data-control-family="field"][data-field-kind="native-select"][data-slot="icon"]) {
|
|
3
|
+
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="clear"]) {
|
|
8
4
|
color: var(--muted-foreground);
|
|
9
5
|
}
|
|
10
6
|
|
|
7
|
+
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="trigger"]),
|
|
8
|
+
:where([data-control-family="field"][data-field-kind="number-field"]:is([data-slot="decrement"], [data-slot="increment"])) {
|
|
9
|
+
background-color: var(--cui-field-affordance-background);
|
|
10
|
+
box-shadow: var(--cui-field-affordance-shadow);
|
|
11
|
+
color: var(--cui-field-affordance-foreground);
|
|
12
|
+
}
|
|
13
|
+
|
|
11
14
|
:where([data-control-family="field"][data-slot="root"][data-control="true"]:is(button, a)) {
|
|
12
15
|
cursor: pointer;
|
|
13
16
|
color: var(--muted-foreground);
|
|
14
17
|
text-align: start;
|
|
15
18
|
}
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
@media (hover: hover) {
|
|
21
|
+
:where(
|
|
22
|
+
[data-control-family="field"][data-slot="root"][data-control="true"]:is(button, a):hover:not(
|
|
23
|
+
:disabled,
|
|
24
|
+
[data-disabled],
|
|
25
|
+
[aria-disabled="true"]
|
|
26
|
+
)
|
|
27
|
+
) {
|
|
28
|
+
color: var(--foreground);
|
|
29
|
+
}
|
|
19
30
|
}
|
|
20
31
|
|
|
21
32
|
:where([data-control-family="field"][data-field-kind="input-group"][data-slot="input"]),
|
|
22
|
-
:where([data-control-family="field"][data-field-kind="phone-input"][data-slot="input"]),
|
|
23
33
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="input"]) {
|
|
24
|
-
outline: none;
|
|
25
34
|
background: transparent;
|
|
26
35
|
color: var(--foreground);
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
:where([data-control-family="field"][data-field-kind="input-group"][data-slot="input"])::placeholder,
|
|
30
|
-
:where([data-control-family="field"][data-field-kind="phone-input"][data-slot="input"])::placeholder,
|
|
31
39
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="input"])::placeholder {
|
|
32
40
|
color: var(--muted-foreground);
|
|
33
41
|
}
|
|
@@ -35,14 +43,17 @@
|
|
|
35
43
|
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="trigger"]),
|
|
36
44
|
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="clear"]) {
|
|
37
45
|
border-radius: var(--radius-control);
|
|
38
|
-
outline: none;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
@media (hover: hover) {
|
|
42
|
-
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="trigger"]:hover),
|
|
43
|
-
:where([data-control-family="field"][data-field-kind="
|
|
44
|
-
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="
|
|
45
|
-
|
|
49
|
+
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="trigger"]:hover:not(:disabled, [data-disabled])),
|
|
50
|
+
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]:hover:not(:disabled, [data-disabled])),
|
|
51
|
+
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="increment"]:hover:not(:disabled, [data-disabled])) {
|
|
52
|
+
background-color: var(--cui-field-affordance-hover-background);
|
|
53
|
+
color: var(--foreground);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="clear"]:hover:not(:disabled, [data-disabled])) {
|
|
46
57
|
background: var(--hover-fill);
|
|
47
58
|
color: var(--foreground);
|
|
48
59
|
}
|
|
@@ -51,7 +62,7 @@
|
|
|
51
62
|
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="trigger"]:disabled),
|
|
52
63
|
:where([data-control-family="field"][data-field-kind="autocomplete"][data-slot="clear"]:disabled) {
|
|
53
64
|
cursor: not-allowed;
|
|
54
|
-
opacity:
|
|
65
|
+
opacity: var(--disabled-opacity);
|
|
55
66
|
}
|
|
56
67
|
|
|
57
68
|
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="icon"]) {
|
|
@@ -75,13 +86,8 @@
|
|
|
75
86
|
border-inline-start: 1px solid var(--border);
|
|
76
87
|
}
|
|
77
88
|
|
|
78
|
-
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]),
|
|
79
|
-
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="increment"]) {
|
|
80
|
-
outline: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]:active),
|
|
84
|
-
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="increment"]:active) {
|
|
89
|
+
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="decrement"]:active:not(:disabled, [data-disabled])),
|
|
90
|
+
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="increment"]:active:not(:disabled, [data-disabled])) {
|
|
85
91
|
background: oklch(from var(--foreground) l c h / 0.06);
|
|
86
92
|
}
|
|
87
93
|
|
|
@@ -172,7 +178,7 @@
|
|
|
172
178
|
}
|
|
173
179
|
|
|
174
180
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="label"][data-disabled]) {
|
|
175
|
-
opacity:
|
|
181
|
+
opacity: var(--disabled-opacity);
|
|
176
182
|
}
|
|
177
183
|
|
|
178
184
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="description"]) {
|
|
@@ -3,18 +3,22 @@
|
|
|
3
3
|
gap: calc(var(--spacing) * 1.5);
|
|
4
4
|
--cui-field-radius: var(--radius-control);
|
|
5
5
|
--cui-field-background: var(--control-fill);
|
|
6
|
+
--cui-field-hover-background: var(--hover-fill);
|
|
7
|
+
--cui-field-affordance-background: transparent;
|
|
8
|
+
--cui-field-affordance-shadow: 0 0 transparent;
|
|
9
|
+
--cui-field-affordance-foreground: var(--muted-foreground);
|
|
10
|
+
--cui-field-affordance-hover-background: var(--hover-fill);
|
|
6
11
|
--cui-field-foreground: var(--foreground);
|
|
7
12
|
--cui-field-border-color: var(--control-rim);
|
|
8
13
|
--cui-field-border-width: var(--control-rim-width);
|
|
9
14
|
--cui-field-shadow: var(--shadow-inset);
|
|
10
15
|
--cui-field-backdrop-filter: blur(0px);
|
|
11
|
-
--
|
|
16
|
+
--focus-ring-offset: calc(var(--focus-ring-width) * -1);
|
|
12
17
|
--cui-field-height: var(--control-h-md);
|
|
13
18
|
--cui-field-padding-inline: var(--padding-x);
|
|
14
19
|
--cui-field-font-size: var(--text-body);
|
|
15
20
|
border: var(--cui-field-border-width) solid var(--cui-field-border-color);
|
|
16
21
|
border-radius: var(--nest-radius, var(--cui-field-radius));
|
|
17
|
-
outline: none;
|
|
18
22
|
background: var(--cui-field-background);
|
|
19
23
|
box-shadow: var(--cui-field-shadow);
|
|
20
24
|
color: var(--cui-field-foreground);
|
|
@@ -64,12 +68,16 @@
|
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
@media (hover: hover) {
|
|
67
|
-
:where(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
:where(
|
|
72
|
+
[data-control-family="field"][data-control="true"]:is(
|
|
73
|
+
[data-field-kind="autocomplete"],
|
|
74
|
+
[data-field-kind="combobox"],
|
|
75
|
+
[data-field-kind="native-select"],
|
|
76
|
+
[data-field-kind="select"],
|
|
77
|
+
[data-field-kind="number-field"]
|
|
78
|
+
):hover:not(:disabled, [data-disabled], [aria-disabled="true"])
|
|
79
|
+
) {
|
|
80
|
+
background: var(--cui-field-hover-background);
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
:where(
|
|
@@ -84,11 +92,8 @@
|
|
|
84
92
|
) {
|
|
85
93
|
background: var(--cui-field-background);
|
|
86
94
|
}
|
|
87
|
-
|
|
88
|
-
:where([data-control-family="field"][data-control="true"]:is(:focus-visible, :focus-within)) {
|
|
89
|
-
border-color: var(--cui-field-focus-border-color);
|
|
90
|
-
}
|
|
91
95
|
}
|
|
96
|
+
|
|
92
97
|
:where([data-control-family="field"][data-control="true"][data-invalid]),
|
|
93
98
|
:where([data-control-family="field"][data-control="true"][aria-invalid="true"]) {
|
|
94
99
|
box-shadow:
|
|
@@ -99,7 +104,7 @@
|
|
|
99
104
|
:where([data-control-family="field"][data-control="true"]:disabled),
|
|
100
105
|
:where([data-control-family="field"][data-control="true"][data-disabled]) {
|
|
101
106
|
cursor: not-allowed;
|
|
102
|
-
opacity:
|
|
107
|
+
opacity: var(--disabled-opacity);
|
|
103
108
|
}
|
|
104
109
|
:where([data-control-family="field"][data-field-kind="select"][data-slot="trigger"]) {
|
|
105
110
|
cursor: pointer;
|
|
@@ -124,8 +129,20 @@
|
|
|
124
129
|
appearance: none;
|
|
125
130
|
}
|
|
126
131
|
|
|
132
|
+
:where(div[data-control-family="field"][data-field-kind="native-select"]),
|
|
133
|
+
:where([data-control-family="field"][data-field-kind="combobox"][data-slot="input-group"]) {
|
|
134
|
+
--cui-field-affordance-background: transparent;
|
|
135
|
+
--cui-field-affordance-shadow: 0 0 transparent;
|
|
136
|
+
--cui-field-affordance-hover-background: var(--hover-fill);
|
|
137
|
+
--cui-field-affordance-foreground: var(--muted-foreground);
|
|
138
|
+
--cui-field-font-size: var(--text-body);
|
|
139
|
+
}
|
|
140
|
+
|
|
127
141
|
:where([data-control-family="field"][data-field-kind="native-select"][data-slot="icon"]) {
|
|
128
|
-
|
|
142
|
+
inset-inline-end: calc(var(--padding-x) * 0.6);
|
|
143
|
+
background-color: var(--cui-field-affordance-background);
|
|
144
|
+
box-shadow: var(--cui-field-affordance-shadow);
|
|
145
|
+
color: var(--cui-field-affordance-foreground);
|
|
129
146
|
}
|
|
130
147
|
|
|
131
148
|
:where([data-control-family="field"][data-field-kind="number-field"][data-slot="drag-icon"]) {
|
|
@@ -191,13 +208,9 @@
|
|
|
191
208
|
padding-inline: calc(var(--spacing) * 2);
|
|
192
209
|
}
|
|
193
210
|
|
|
194
|
-
:where([data-control-family="field"][data-field-kind="phone-input"][data-slot="input"]) {
|
|
195
|
-
padding-inline: calc(var(--spacing) * 3);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
211
|
@media (pointer: coarse) {
|
|
199
|
-
:where([data-control-family="field"]:is(input, textarea)) {
|
|
200
|
-
font-size: max(
|
|
212
|
+
:where([data-control-family="field"]:is(input, textarea, select)) {
|
|
213
|
+
font-size: max(var(--text-input-min), var(--cui-field-font-size));
|
|
201
214
|
}
|
|
202
215
|
}
|
|
203
216
|
}
|
|
@@ -213,6 +226,34 @@
|
|
|
213
226
|
inherits: true;
|
|
214
227
|
}
|
|
215
228
|
|
|
229
|
+
@property --cui-field-hover-background {
|
|
230
|
+
syntax: "*";
|
|
231
|
+
inherits: true;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@property --cui-field-affordance-background {
|
|
235
|
+
syntax: "<color>";
|
|
236
|
+
inherits: true;
|
|
237
|
+
initial-value: transparent;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@property --cui-field-affordance-shadow {
|
|
241
|
+
syntax: "*";
|
|
242
|
+
inherits: true;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@property --cui-field-affordance-foreground {
|
|
246
|
+
syntax: "<color>";
|
|
247
|
+
inherits: true;
|
|
248
|
+
initial-value: currentcolor;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@property --cui-field-affordance-hover-background {
|
|
252
|
+
syntax: "<color>";
|
|
253
|
+
inherits: true;
|
|
254
|
+
initial-value: transparent;
|
|
255
|
+
}
|
|
256
|
+
|
|
216
257
|
@property --cui-field-foreground {
|
|
217
258
|
syntax: "<color>";
|
|
218
259
|
inherits: true;
|
|
@@ -241,12 +282,6 @@
|
|
|
241
282
|
inherits: true;
|
|
242
283
|
}
|
|
243
284
|
|
|
244
|
-
@property --cui-field-focus-border-color {
|
|
245
|
-
syntax: "<color>";
|
|
246
|
-
inherits: true;
|
|
247
|
-
initial-value: transparent;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
285
|
@property --cui-field-height {
|
|
251
286
|
syntax: "<length-percentage>";
|
|
252
287
|
inherits: true;
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
--cui-filter-bar-padding-inline: calc(var(--spacing) * 2);
|
|
11
11
|
--cui-filter-bar-font-size: var(--text-label);
|
|
12
12
|
--cui-filter-bar-hover-background: var(--hover-fill);
|
|
13
|
-
--
|
|
13
|
+
--filter-bar-inline-sign: 1;
|
|
14
14
|
gap: var(--cui-filter-bar-gap);
|
|
15
15
|
border: 0;
|
|
16
16
|
padding: 0;
|
|
17
17
|
margin: 0;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
:where([data-control-family="filter-bar"][data-slot="root"]:dir(rtl)) {
|
|
21
|
+
--filter-bar-inline-sign: -1;
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
:where([data-control-family="filter-bar"][data-slot="chip"]) {
|
|
21
25
|
border: var(--cui-filter-bar-border-width) solid var(--cui-filter-bar-border-color);
|
|
22
26
|
border-radius: var(--cui-filter-bar-radius);
|
|
@@ -38,19 +42,21 @@
|
|
|
38
42
|
color: inherit;
|
|
39
43
|
font-size: inherit;
|
|
40
44
|
gap: calc(var(--spacing) * 1.5);
|
|
45
|
+
--focus-ring-offset: calc(var(--focus-ring-width) * -1);
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
:where([data-control-family="filter-bar"][data-slot="chip"] > :not(:first-child)) {
|
|
44
49
|
border-inline-start: var(--cui-filter-bar-border-width) solid var(--cui-filter-bar-border-color);
|
|
45
50
|
}
|
|
46
51
|
|
|
47
|
-
:where([data-control-family="filter-bar"]:is([data-slot="segment"], [data-slot="remove"]):focus-visible) {
|
|
48
|
-
outline: 2px solid var(--cui-filter-bar-focus-ring-color);
|
|
49
|
-
outline-offset: -2px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
52
|
@media (hover: hover) {
|
|
53
|
-
:where(
|
|
53
|
+
:where(
|
|
54
|
+
[data-control-family="filter-bar"]:is([data-slot="segment"], [data-slot="remove"]):not(
|
|
55
|
+
:disabled,
|
|
56
|
+
[data-disabled],
|
|
57
|
+
[aria-disabled="true"]
|
|
58
|
+
):hover
|
|
59
|
+
) {
|
|
54
60
|
background: var(--cui-filter-bar-hover-background);
|
|
55
61
|
}
|
|
56
62
|
}
|
|
@@ -62,7 +68,7 @@
|
|
|
62
68
|
|
|
63
69
|
:where([data-control-family="filter-bar"][data-slot="exit"]) {
|
|
64
70
|
pointer-events: none;
|
|
65
|
-
transform-origin:
|
|
71
|
+
transform-origin: calc(50% - 50% * var(--filter-bar-inline-sign)) center;
|
|
66
72
|
animation: cui-filter-chip-exit var(--duration-fast) var(--ease-standard) forwards;
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -71,28 +77,14 @@
|
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
:where([data-control-family="filter-bar"][data-disabled]) {
|
|
74
|
-
opacity:
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media (prefers-reduced-motion: reduce) {
|
|
78
|
-
:where([data-control-family="filter-bar"]),
|
|
79
|
-
:where([data-control-family="filter-bar"] *) {
|
|
80
|
-
animation: none;
|
|
81
|
-
transition: none;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:where([data-motion="reduced"] [data-control-family="filter-bar"]),
|
|
86
|
-
:where([data-motion="reduced"] [data-control-family="filter-bar"] *) {
|
|
87
|
-
animation: none;
|
|
88
|
-
transition: none;
|
|
80
|
+
opacity: var(--disabled-opacity);
|
|
89
81
|
}
|
|
90
82
|
}
|
|
91
83
|
|
|
92
84
|
@keyframes cui-filter-segment-enter {
|
|
93
85
|
from {
|
|
94
86
|
opacity: 0;
|
|
95
|
-
translate: -4px 0;
|
|
87
|
+
translate: calc(-4px * var(--filter-bar-inline-sign)) 0;
|
|
96
88
|
}
|
|
97
89
|
to {
|
|
98
90
|
opacity: 1;
|
|
@@ -103,7 +95,8 @@
|
|
|
103
95
|
@keyframes cui-filter-chip-exit {
|
|
104
96
|
to {
|
|
105
97
|
opacity: 0;
|
|
106
|
-
|
|
98
|
+
translate: calc(-4px * var(--filter-bar-inline-sign)) 0;
|
|
99
|
+
scale: 0.97;
|
|
107
100
|
}
|
|
108
101
|
}
|
|
109
102
|
|
|
@@ -166,9 +159,3 @@
|
|
|
166
159
|
inherits: true;
|
|
167
160
|
initial-value: transparent;
|
|
168
161
|
}
|
|
169
|
-
|
|
170
|
-
@property --cui-filter-bar-focus-ring-color {
|
|
171
|
-
syntax: "<color>";
|
|
172
|
-
inherits: true;
|
|
173
|
-
initial-value: transparent;
|
|
174
|
-
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:where([data-control-family="gradient-editor"][data-slot="root"]) {
|
|
7
7
|
gap: calc(var(--spacing) * 3);
|
|
8
8
|
--cui-gradient-editor-add-border-color: var(--border);
|
|
9
|
-
--cui-gradient-editor-add-border-width:
|
|
9
|
+
--cui-gradient-editor-add-border-width: var(--control-rim-width);
|
|
10
10
|
--cui-gradient-editor-add-radius: 9999px;
|
|
11
11
|
--cui-gradient-editor-preview-radius: var(--radius-field);
|
|
12
12
|
--cui-gradient-editor-preview-ring-color: oklch(from var(--border) l c h / 0.6);
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
border: var(--cui-gradient-editor-stop-border-width) solid var(--cui-gradient-editor-stop-border-color);
|
|
38
38
|
border-radius: var(--cui-gradient-editor-stop-radius);
|
|
39
39
|
box-shadow: var(--cui-gradient-editor-stop-shadow);
|
|
40
|
-
outline: none;
|
|
41
40
|
transition: scale var(--duration-fast) var(--ease-standard);
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -47,11 +46,10 @@
|
|
|
47
46
|
border: var(--cui-gradient-editor-add-border-width) dashed var(--cui-gradient-editor-add-border-color);
|
|
48
47
|
border-radius: var(--cui-gradient-editor-add-radius);
|
|
49
48
|
color: var(--muted-foreground);
|
|
50
|
-
outline: none;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
@media (hover: hover) {
|
|
54
|
-
:where([data-control-family="gradient-editor"][data-slot="stop-add"]:hover) {
|
|
52
|
+
:where([data-control-family="gradient-editor"][data-slot="stop-add"]:hover:not(:disabled)) {
|
|
55
53
|
border-color: oklch(from var(--foreground) l c h / 0.4);
|
|
56
54
|
color: var(--foreground);
|
|
57
55
|
}
|
|
@@ -61,6 +59,15 @@
|
|
|
61
59
|
scale: 115% 115%;
|
|
62
60
|
}
|
|
63
61
|
|
|
62
|
+
:where([data-control-family="gradient-editor"][data-slot="stop"])::after {
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset: 50%;
|
|
66
|
+
translate: -50% -50%;
|
|
67
|
+
inline-size: max(100%, var(--target-min));
|
|
68
|
+
block-size: max(100%, var(--target-min));
|
|
69
|
+
}
|
|
70
|
+
|
|
64
71
|
@media (pointer: coarse) {
|
|
65
72
|
:where([data-control-family="gradient-editor"][data-slot="stop-add"]) {
|
|
66
73
|
position: relative;
|
|
@@ -69,10 +76,14 @@
|
|
|
69
76
|
:where([data-control-family="gradient-editor"][data-slot="stop-add"])::after {
|
|
70
77
|
content: "";
|
|
71
78
|
position: absolute;
|
|
72
|
-
inset: 50
|
|
79
|
+
inset: 50%;
|
|
73
80
|
translate: -50% -50%;
|
|
74
|
-
inline-size: max(100%,
|
|
75
|
-
block-size: max(100%,
|
|
81
|
+
inline-size: max(100%, var(--touch-target));
|
|
82
|
+
block-size: max(100%, var(--touch-target));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where([data-control-family="gradient-editor"][data-slot="stop"])::after {
|
|
86
|
+
block-size: max(100%, var(--touch-target));
|
|
76
87
|
}
|
|
77
88
|
}
|
|
78
89
|
}
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
background-color: var(--cui-infinite-canvas-background);
|
|
28
28
|
background-image: radial-gradient(circle at center, var(--cui-infinite-canvas-grid-dot-color) 1px, transparent 1px);
|
|
29
29
|
box-shadow: 0 0 0 1px var(--cui-infinite-canvas-border-color);
|
|
30
|
-
outline-style: none;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
:where([data-control-family="infinite-canvas"][data-slot="root"][data-easing]) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
calc(var(--cui-inline-attachment-padding) + var(--_inline-attachment-content-line-height) / 2 + var(--spacing))
|
|
10
10
|
);
|
|
11
11
|
--cui-inline-attachment-ring-color: var(--border);
|
|
12
|
-
--cui-inline-attachment-image-outline-color:
|
|
12
|
+
--cui-inline-attachment-image-outline-color: var(--image-outline);
|
|
13
13
|
--cui-inline-attachment-shadow: var(--shadow-sm);
|
|
14
14
|
--cui-inline-attachment-content-background: oklch(from var(--background) l c h / 0.85);
|
|
15
15
|
--cui-inline-attachment-content-foreground: var(--foreground);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
box-shadow:
|
|
27
27
|
inset 0 0 0 var(--control-rim-width) var(--cui-inline-attachment-ring-color),
|
|
28
28
|
var(--cui-inline-attachment-shadow);
|
|
29
|
-
text-align:
|
|
29
|
+
text-align: start;
|
|
30
30
|
transition-property: box-shadow;
|
|
31
31
|
transition-duration: var(--duration-fast);
|
|
32
32
|
transition-timing-function: var(--ease-standard);
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
var(--cui-inline-attachment-hover-shadow);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
:where([data-control-family="inline-attachment"][data-slot="root"]:disabled:hover) {
|
|
48
|
+
:where([data-control-family="inline-attachment"][data-slot="root"]:is(:disabled, [aria-disabled="true"]):hover) {
|
|
49
49
|
box-shadow:
|
|
50
50
|
inset 0 0 0 var(--control-rim-width) var(--cui-inline-attachment-ring-color),
|
|
51
51
|
var(--cui-inline-attachment-shadow);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--cui-inline-citation-quote-radius: var(--radius-control);
|
|
9
9
|
--cui-inline-citation-trigger-background: oklch(from var(--muted) l c h / 0.55);
|
|
10
10
|
--cui-inline-citation-trigger-border-color: var(--border);
|
|
11
|
-
--cui-inline-citation-trigger-border-width:
|
|
11
|
+
--cui-inline-citation-trigger-border-width: var(--control-rim-width);
|
|
12
12
|
--cui-inline-citation-trigger-foreground: var(--muted-foreground);
|
|
13
13
|
--cui-inline-citation-trigger-hover-background: var(--muted);
|
|
14
14
|
--cui-inline-citation-trigger-hover-foreground: var(--foreground);
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
inset: 50% 50%;
|
|
53
53
|
translate: -50% -50%;
|
|
54
54
|
inline-size: 100%;
|
|
55
|
-
block-size: max(100%,
|
|
55
|
+
block-size: max(100%, var(--touch-target));
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
min-block-size: calc(var(--spacing) * 10);
|
|
69
69
|
gap: calc(var(--spacing) * 1);
|
|
70
70
|
padding-inline: calc(var(--spacing) * 2);
|
|
71
|
-
border-
|
|
71
|
+
border-block-end: var(--control-rim-width) solid var(--border);
|
|
72
72
|
background: var(--cui-inline-citation-navigation-background);
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -109,10 +109,16 @@
|
|
|
109
109
|
outline-style: none;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
:where([data-control-family="inline-citation"][data-slot="source-title"]:
|
|
112
|
+
:where([data-control-family="inline-citation"][data-slot="source-title"]:focus-visible) {
|
|
113
113
|
text-decoration-line: underline;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
@media (hover: hover) {
|
|
117
|
+
:where([data-control-family="inline-citation"][data-slot="source-title"]:hover) {
|
|
118
|
+
text-decoration-line: underline;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
116
122
|
:where([data-control-family="inline-citation"][data-slot="source-external-icon"]) {
|
|
117
123
|
margin-block-start: calc(var(--spacing) * 0.5);
|
|
118
124
|
inline-size: calc(var(--spacing) * 3.5);
|
|
@@ -35,20 +35,34 @@
|
|
|
35
35
|
|
|
36
36
|
:where([data-control-family="item"][data-slot="root"][data-variant="outline"]) {
|
|
37
37
|
--_item-border-color: var(--border);
|
|
38
|
-
--cui-item-border-width:
|
|
38
|
+
--cui-item-border-width: var(--control-rim-width);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
:where([data-control-family="item"][data-slot="root"][data-variant="muted"]) {
|
|
42
42
|
--_item-background: oklch(from var(--muted) l c h / 0.5);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
@media (hover: hover) {
|
|
46
|
+
:where(
|
|
47
|
+
[data-control-family="item"][data-slot="root"]:is(a, button, [href], [role="button"]):not(
|
|
48
|
+
:disabled,
|
|
49
|
+
[data-disabled],
|
|
50
|
+
[aria-disabled="true"]
|
|
51
|
+
):hover
|
|
52
|
+
) {
|
|
53
|
+
outline-color: var(--cui-item-hover-border-color);
|
|
54
|
+
background: var(--cui-item-hover-background);
|
|
55
|
+
box-shadow: none;
|
|
56
|
+
}
|
|
49
57
|
}
|
|
50
58
|
|
|
51
|
-
:where(
|
|
59
|
+
:where(
|
|
60
|
+
[data-control-family="item"][data-slot="root"]:is(a, button, [href], [role="button"]):not(
|
|
61
|
+
:disabled,
|
|
62
|
+
[data-disabled],
|
|
63
|
+
[aria-disabled="true"]
|
|
64
|
+
):active
|
|
65
|
+
) {
|
|
52
66
|
scale: var(--cui-item-active-scale);
|
|
53
67
|
}
|
|
54
68
|
|
|
@@ -58,7 +72,7 @@
|
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
:where([data-control-family="item"][data-slot="description"]) {
|
|
61
|
-
font-size: var(--text-
|
|
75
|
+
font-size: var(--text-body);
|
|
62
76
|
line-height: var(--leading-relaxed);
|
|
63
77
|
color: var(--muted-foreground);
|
|
64
78
|
text-wrap: pretty;
|
|
@@ -66,9 +80,9 @@
|
|
|
66
80
|
|
|
67
81
|
:where([data-control-family="item"][data-slot="title"]) {
|
|
68
82
|
gap: calc(var(--spacing) * 2);
|
|
69
|
-
font-size: var(--text-
|
|
83
|
+
font-size: var(--text-body);
|
|
70
84
|
font-weight: var(--font-weight-medium);
|
|
71
|
-
line-height:
|
|
85
|
+
line-height: var(--leading-tight);
|
|
72
86
|
color: var(--foreground);
|
|
73
87
|
text-wrap: balance;
|
|
74
88
|
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
--cui-markdown-block-radius: var(--radius-panel);
|
|
5
5
|
--cui-markdown-block-background: var(--background);
|
|
6
6
|
--cui-markdown-block-border-color: var(--border);
|
|
7
|
-
--cui-markdown-block-border-width:
|
|
7
|
+
--cui-markdown-block-border-width: var(--control-rim-width);
|
|
8
8
|
--cui-markdown-block-shadow: var(--shadow-sm);
|
|
9
9
|
--cui-markdown-block-header-border-color: var(--border);
|
|
10
|
-
--cui-markdown-block-header-border-width:
|
|
10
|
+
--cui-markdown-block-header-border-width: var(--control-rim-width);
|
|
11
11
|
--cui-markdown-block-icon-background: oklch(from var(--foreground) l c h / 0.08);
|
|
12
12
|
background: var(--cui-markdown-block-background);
|
|
13
13
|
border: var(--cui-markdown-block-border-width) solid var(--cui-markdown-block-border-color);
|
|
@@ -19,18 +19,19 @@
|
|
|
19
19
|
gap: calc(var(--spacing) * 3);
|
|
20
20
|
padding-inline: calc(var(--spacing) * 4);
|
|
21
21
|
padding-block: calc(var(--spacing) * 2);
|
|
22
|
-
border-
|
|
22
|
+
border-block-end: var(--cui-markdown-block-header-border-width) solid var(--cui-markdown-block-header-border-color);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
:where([data-control-family="markdown-block"][data-slot="title"]) {
|
|
26
26
|
gap: calc(var(--spacing) * 2);
|
|
27
|
-
font-size: var(--text-
|
|
27
|
+
font-size: var(--text-body);
|
|
28
28
|
font-weight: var(--font-weight-medium);
|
|
29
29
|
text-wrap: balance;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:where([data-control-family="markdown-block"][data-slot="content"]) {
|
|
33
33
|
padding: calc(var(--spacing) * 4);
|
|
34
|
+
overflow-wrap: break-word;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
:where([data-control-family="markdown-block"][data-slot="title-icon"]) {
|