@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="accordion"][data-slot="root"]) {
|
|
3
3
|
--cui-accordion-item-border-color: var(--border);
|
|
4
|
-
--cui-accordion-item-border-width:
|
|
4
|
+
--cui-accordion-item-border-width: var(--control-rim-width);
|
|
5
5
|
--cui-accordion-trigger-foreground: var(--foreground);
|
|
6
6
|
--cui-accordion-trigger-hover-foreground: oklch(from var(--foreground) l c h / 0.8);
|
|
7
7
|
--cui-accordion-icon-foreground: var(--muted-foreground);
|
|
@@ -19,18 +19,20 @@
|
|
|
19
19
|
padding-block: calc(var(--spacing) * 3);
|
|
20
20
|
color: var(--cui-accordion-trigger-foreground);
|
|
21
21
|
font-size: var(--text-body);
|
|
22
|
-
|
|
23
|
-
text-
|
|
22
|
+
text-align: start;
|
|
23
|
+
text-wrap: balance;
|
|
24
24
|
font-weight: var(--font-weight-medium);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@media (hover: hover) {
|
|
28
|
+
:where([data-control-family="accordion"][data-slot="trigger"]:not([data-disabled]):hover) {
|
|
29
|
+
color: var(--cui-accordion-trigger-hover-foreground);
|
|
30
|
+
}
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
:where([data-control-family="accordion"][data-slot="trigger"][data-disabled]) {
|
|
32
34
|
cursor: not-allowed;
|
|
33
|
-
opacity:
|
|
35
|
+
opacity: var(--disabled-opacity);
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
:where([data-control-family="accordion"][data-slot="icon"]) {
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
:where([data-control-family="accordion"][data-slot="panel"]) {
|
|
52
54
|
color: var(--muted-foreground);
|
|
53
55
|
font-size: var(--text-body);
|
|
56
|
+
text-wrap: pretty;
|
|
54
57
|
height: var(--accordion-panel-height);
|
|
55
58
|
overflow: hidden;
|
|
56
59
|
transition: height var(--duration-base) var(--ease-emphasized);
|
|
@@ -24,21 +24,6 @@
|
|
|
24
24
|
:where([data-control-family="chat-layout"][data-slot="turn"]:focus-within [data-control-family="action-bar"][data-slot="root"]) {
|
|
25
25
|
opacity: var(--cui-action-bar-visible-opacity);
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
@media (pointer: coarse) {
|
|
29
|
-
:where([data-control-family="action-bar"][data-slot="root"] [data-control-family="button"]) {
|
|
30
|
-
position: relative;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:where([data-control-family="action-bar"][data-slot="root"] [data-control-family="button"])::after {
|
|
34
|
-
content: "";
|
|
35
|
-
position: absolute;
|
|
36
|
-
inset: 50% 50%;
|
|
37
|
-
translate: -50% -50%;
|
|
38
|
-
inline-size: 100%;
|
|
39
|
-
block-size: max(100%, 44px);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
27
|
}
|
|
43
28
|
|
|
44
29
|
@property --cui-action-bar-hidden-opacity {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
:where([data-control-family="activity"][data-slot="root"][data-activity-state="running"] [data-slot="icon"][data-status-icon] svg) {
|
|
68
|
-
animation:
|
|
68
|
+
animation: cui-spin var(--duration-loop) linear infinite;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
:where([data-control-family="activity"][data-slot="root"][data-activity-state="error"] [data-slot="icon"]) {
|
|
@@ -117,20 +117,14 @@
|
|
|
117
117
|
:where([data-control-family="activity"][data-slot="trigger"])::after {
|
|
118
118
|
content: "";
|
|
119
119
|
position: absolute;
|
|
120
|
-
inset:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
block-size: max(100%,
|
|
120
|
+
inset-inline: 0;
|
|
121
|
+
inset-block-start: 50%;
|
|
122
|
+
translate: 0 -50%;
|
|
123
|
+
block-size: max(100%, var(--touch-target));
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
@keyframes activity-spin {
|
|
129
|
-
to {
|
|
130
|
-
rotate: 360deg;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
128
|
@property --cui-activity-row-foreground {
|
|
135
129
|
syntax: "<color>";
|
|
136
130
|
inherits: true;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
--cui-alert-shadow: none;
|
|
7
7
|
--cui-alert-foreground: var(--card-foreground);
|
|
8
8
|
--cui-alert-description-foreground: var(--muted-foreground);
|
|
9
|
-
--cui-alert-border-width:
|
|
9
|
+
--cui-alert-border-width: var(--control-rim-width);
|
|
10
10
|
--cui-alert-padding: calc(var(--spacing) * 3);
|
|
11
11
|
--cui-alert-padding-inline: calc(var(--spacing) * 4);
|
|
12
12
|
--cui-alert-gap: calc(var(--spacing) * 0.5);
|
|
13
13
|
--cui-alert-icon-gap: calc(var(--spacing) * 3);
|
|
14
14
|
--cui-alert-icon-size: calc(var(--spacing) * 4);
|
|
15
|
-
--cui-alert-font-size: var(--text-
|
|
15
|
+
--cui-alert-font-size: var(--text-body);
|
|
16
16
|
--cui-alert-title-font-weight: var(--font-weight-medium);
|
|
17
17
|
--cui-alert-description-gap: var(--spacing);
|
|
18
18
|
grid-template-columns: 0 minmax(0, 1fr);
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
box-shadow: var(--cui-alert-shadow);
|
|
25
25
|
color: var(--cui-alert-foreground);
|
|
26
26
|
font-size: var(--cui-alert-font-size);
|
|
27
|
-
line-height: var(--
|
|
27
|
+
line-height: var(--leading-normal);
|
|
28
28
|
overflow-wrap: anywhere;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
gap: var(--cui-alert-description-gap);
|
|
44
44
|
color: var(--cui-alert-description-foreground);
|
|
45
45
|
font-size: var(--cui-alert-font-size);
|
|
46
|
-
line-height: var(--
|
|
46
|
+
line-height: var(--leading-normal);
|
|
47
47
|
text-wrap: pretty;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
--cui-audio-recorder-foreground: var(--muted-foreground);
|
|
5
5
|
--cui-audio-recorder-recording-ring-color: oklch(from var(--destructive) l c h / 0.25);
|
|
6
6
|
--cui-audio-recorder-error-foreground: var(--destructive-text);
|
|
7
|
+
--cui-audio-recorder-meta-foreground: var(--muted-foreground);
|
|
7
8
|
min-block-size: calc(var(--spacing) * 8);
|
|
8
9
|
gap: calc(var(--spacing) * 2);
|
|
9
10
|
padding-inline-end: calc(var(--spacing) * 1);
|
|
@@ -36,7 +37,8 @@
|
|
|
36
37
|
--_audio-recorder-content-visible-scale: 100%;
|
|
37
38
|
opacity: 0;
|
|
38
39
|
filter: blur(var(--blur-xs));
|
|
39
|
-
|
|
40
|
+
--_audio-recorder-inline-sign: 1;
|
|
41
|
+
translate: calc(var(--spacing) * var(--_audio-recorder-inline-sign)) 0;
|
|
40
42
|
scale: var(--_audio-recorder-content-hidden-scale);
|
|
41
43
|
visibility: hidden;
|
|
42
44
|
transition-property: opacity, filter, translate, scale, visibility;
|
|
@@ -45,6 +47,10 @@
|
|
|
45
47
|
transition-behavior: allow-discrete;
|
|
46
48
|
}
|
|
47
49
|
|
|
50
|
+
:where([data-control-ui="audio-recorder"]:dir(rtl)) {
|
|
51
|
+
--_audio-recorder-inline-sign: -1;
|
|
52
|
+
}
|
|
53
|
+
|
|
48
54
|
:where([data-control-ui="audio-recorder"]:is([data-slot="cancel"], [data-slot="submit"])) {
|
|
49
55
|
--_audio-recorder-content-hidden-scale: 95%;
|
|
50
56
|
}
|
|
@@ -62,7 +68,7 @@
|
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
:where([data-control-ui="audio-recorder"]:is([data-slot="status"], [data-slot="duration"])) {
|
|
65
|
-
color: var(--
|
|
71
|
+
color: var(--cui-audio-recorder-meta-foreground);
|
|
66
72
|
font-size: var(--text-caption);
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -72,7 +78,7 @@
|
|
|
72
78
|
|
|
73
79
|
:where([data-control-ui="audio-recorder"][data-slot="duration"]) {
|
|
74
80
|
inline-size: calc(var(--spacing) * 10);
|
|
75
|
-
text-align:
|
|
81
|
+
text-align: end;
|
|
76
82
|
font-variant-numeric: tabular-nums;
|
|
77
83
|
}
|
|
78
84
|
}
|
|
@@ -100,3 +106,9 @@
|
|
|
100
106
|
inherits: true;
|
|
101
107
|
initial-value: transparent;
|
|
102
108
|
}
|
|
109
|
+
|
|
110
|
+
@property --cui-audio-recorder-meta-foreground {
|
|
111
|
+
syntax: "<color>";
|
|
112
|
+
inherits: true;
|
|
113
|
+
initial-value: transparent;
|
|
114
|
+
}
|
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
--cui-audio-visualizer-bar-radius: var(--radius-control);
|
|
6
6
|
--cui-audio-visualizer-line-fill: oklch(from var(--primary) l c h / 0.18);
|
|
7
7
|
--cui-audio-visualizer-line-stroke: oklch(from var(--primary) l c h / 0.8);
|
|
8
|
+
--cui-audio-visualizer-baseline-stroke: oklch(from var(--border) l c h / 0.55);
|
|
9
|
+
--_audio-visualizer-inline-sign: 1;
|
|
10
|
+
}
|
|
11
|
+
:where([data-control-family="audio-visualizer"][data-variant]:dir(rtl)) {
|
|
12
|
+
--_audio-visualizer-inline-sign: -1;
|
|
8
13
|
}
|
|
9
14
|
:where([data-control-family="audio-visualizer"][data-slot="root"][data-variant]) {
|
|
10
15
|
block-size: calc(var(--spacing) * 7);
|
|
@@ -42,7 +47,7 @@
|
|
|
42
47
|
opacity: 0;
|
|
43
48
|
--_audio-visualizer-bar-track-filter: blur(var(--blur-xs));
|
|
44
49
|
filter: var(--_audio-visualizer-bar-track-filter);
|
|
45
|
-
translate: var(--spacing) 0;
|
|
50
|
+
translate: calc(var(--spacing) * var(--_audio-visualizer-inline-sign)) 0;
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
|
|
@@ -56,7 +61,7 @@
|
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
:where([data-control-family="audio-visualizer"][data-slot="baseline"]) {
|
|
59
|
-
stroke:
|
|
64
|
+
stroke: var(--cui-audio-visualizer-baseline-stroke);
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
:where([data-control-family="audio-visualizer"][data-slot="waveform"]) {
|
|
@@ -95,3 +100,9 @@
|
|
|
95
100
|
inherits: true;
|
|
96
101
|
initial-value: transparent;
|
|
97
102
|
}
|
|
103
|
+
|
|
104
|
+
@property --cui-audio-visualizer-baseline-stroke {
|
|
105
|
+
syntax: "<color>";
|
|
106
|
+
inherits: true;
|
|
107
|
+
initial-value: transparent;
|
|
108
|
+
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="avatar"][data-slot="root"]) {
|
|
3
|
-
--cui-avatar-image-outline-color:
|
|
3
|
+
--cui-avatar-image-outline-color: var(--image-outline);
|
|
4
|
+
--cui-avatar-badge-size: max(0.5rem, 30%);
|
|
5
|
+
--cui-avatar-badge-ring-size: 2px;
|
|
6
|
+
--cui-avatar-badge-ring-color: var(--background);
|
|
7
|
+
--cui-avatar-badge-background: var(--primary);
|
|
8
|
+
--cui-avatar-badge-foreground: var(--primary-foreground);
|
|
4
9
|
inline-size: calc(var(--spacing) * 9);
|
|
5
10
|
block-size: calc(var(--spacing) * 9);
|
|
6
11
|
}
|
|
@@ -28,6 +33,48 @@
|
|
|
28
33
|
box-shadow: 0 0 0 2px var(--cui-avatar-group-ring-color);
|
|
29
34
|
}
|
|
30
35
|
|
|
36
|
+
:where([data-control-family="avatar"][data-slot="image"]) {
|
|
37
|
+
border-radius: inherit;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where([data-control-family="avatar"][data-slot="badge"]) {
|
|
41
|
+
z-index: 1;
|
|
42
|
+
inset-block-end: 0;
|
|
43
|
+
inset-inline-end: 0;
|
|
44
|
+
inline-size: var(--cui-avatar-badge-size);
|
|
45
|
+
aspect-ratio: 1;
|
|
46
|
+
border-radius: 9999px;
|
|
47
|
+
background: var(--cui-avatar-badge-background);
|
|
48
|
+
color: var(--cui-avatar-badge-foreground);
|
|
49
|
+
box-shadow: 0 0 0 var(--cui-avatar-badge-ring-size) var(--cui-avatar-badge-ring-color);
|
|
50
|
+
font-size: 0.5rem;
|
|
51
|
+
font-weight: var(--font-weight-medium);
|
|
52
|
+
font-variant-numeric: tabular-nums;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
transition: background-color var(--duration-fast) var(--ease-standard);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where([data-control-family="avatar"][data-slot="badge"] > svg) {
|
|
58
|
+
inline-size: 70%;
|
|
59
|
+
block-size: 70%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where([data-control-family="avatar"][data-slot="badge"][data-status="online"]) {
|
|
63
|
+
--cui-avatar-badge-background: var(--success-text);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where([data-control-family="avatar"][data-slot="badge"][data-status="away"]) {
|
|
67
|
+
--cui-avatar-badge-background: var(--warning-text);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where([data-control-family="avatar"][data-slot="badge"][data-status="busy"]) {
|
|
71
|
+
--cui-avatar-badge-background: var(--destructive);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:where([data-control-family="avatar"][data-slot="badge"][data-status="offline"]) {
|
|
75
|
+
--cui-avatar-badge-background: oklch(from var(--muted-foreground) l c h / 0.6);
|
|
76
|
+
}
|
|
77
|
+
|
|
31
78
|
:where([data-control-family="avatar"][data-slot="fallback"]) {
|
|
32
79
|
border-radius: inherit;
|
|
33
80
|
background: var(--cui-avatar-fallback-background);
|
|
@@ -66,3 +113,33 @@
|
|
|
66
113
|
inherits: true;
|
|
67
114
|
initial-value: transparent;
|
|
68
115
|
}
|
|
116
|
+
|
|
117
|
+
@property --cui-avatar-badge-size {
|
|
118
|
+
syntax: "<length-percentage>";
|
|
119
|
+
inherits: true;
|
|
120
|
+
initial-value: 0px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@property --cui-avatar-badge-ring-size {
|
|
124
|
+
syntax: "<length>";
|
|
125
|
+
inherits: true;
|
|
126
|
+
initial-value: 0px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@property --cui-avatar-badge-ring-color {
|
|
130
|
+
syntax: "<color>";
|
|
131
|
+
inherits: true;
|
|
132
|
+
initial-value: transparent;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@property --cui-avatar-badge-background {
|
|
136
|
+
syntax: "<color>";
|
|
137
|
+
inherits: true;
|
|
138
|
+
initial-value: transparent;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@property --cui-avatar-badge-foreground {
|
|
142
|
+
syntax: "<color>";
|
|
143
|
+
inherits: true;
|
|
144
|
+
initial-value: transparent;
|
|
145
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--cui-badge-background: var(--_badge-color-background);
|
|
7
7
|
--cui-badge-foreground: var(--_badge-color-foreground);
|
|
8
8
|
--cui-badge-border-color: transparent;
|
|
9
|
+
--cui-badge-font-size: var(--text-caption);
|
|
9
10
|
--_badge-color-background: var(--badge-neutral);
|
|
10
11
|
--_badge-color-foreground: var(--badge-neutral-foreground);
|
|
11
12
|
--_badge-color-border: var(--badge-neutral-border);
|
|
@@ -15,10 +16,11 @@
|
|
|
15
16
|
border-radius: var(--cui-badge-radius);
|
|
16
17
|
background: var(--cui-badge-background);
|
|
17
18
|
color: var(--cui-badge-foreground);
|
|
18
|
-
|
|
19
|
+
font-size: var(--cui-badge-font-size);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
:where([data-control-family="badge"][data-slot="root"][data-size="sm"]) {
|
|
23
|
+
--cui-badge-font-size: var(--text-micro);
|
|
22
24
|
block-size: calc(var(--spacing) * 4);
|
|
23
25
|
padding: 0 calc(var(--spacing) * 1.5);
|
|
24
26
|
}
|
|
@@ -29,9 +31,11 @@
|
|
|
29
31
|
--_badge-hover-background: var(--_badge-color-background);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
@media (hover: hover) {
|
|
35
|
+
:where(a[data-control-family="badge"][data-slot="root"]:hover),
|
|
36
|
+
:where(button[data-control-family="badge"][data-slot="root"]:not(:disabled):hover) {
|
|
37
|
+
background: var(--_badge-hover-background);
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
:where([data-control-family="badge"][data-slot="root"][data-color="red"]) {
|
|
@@ -107,3 +111,9 @@
|
|
|
107
111
|
inherits: true;
|
|
108
112
|
initial-value: transparent;
|
|
109
113
|
}
|
|
114
|
+
|
|
115
|
+
@property --cui-badge-font-size {
|
|
116
|
+
syntax: "<length>";
|
|
117
|
+
inherits: true;
|
|
118
|
+
initial-value: 0px;
|
|
119
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="breadcrumb"][data-slot="root"]) {
|
|
3
|
+
--cui-breadcrumb-list-foreground: var(--muted-foreground);
|
|
4
|
+
--cui-breadcrumb-page-foreground: var(--foreground);
|
|
5
|
+
--cui-breadcrumb-link-hover-foreground: var(--foreground);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where([data-control-family="breadcrumb"][data-slot="page"]) {
|
|
9
|
+
font-weight: var(--font-weight-normal);
|
|
10
|
+
color: var(--cui-breadcrumb-page-foreground);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where([data-control-family="breadcrumb"][data-slot="list"]) {
|
|
14
|
+
gap: calc(var(--spacing) * 1.5);
|
|
15
|
+
font-size: var(--text-body);
|
|
16
|
+
line-height: calc(var(--spacing) * 5);
|
|
17
|
+
color: var(--cui-breadcrumb-list-foreground);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (width >= 40rem) {
|
|
21
|
+
:where([data-control-family="breadcrumb"][data-slot="list"]) {
|
|
22
|
+
gap: calc(var(--spacing) * 2.5);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where([data-control-family="breadcrumb"][data-slot="item"]) {
|
|
27
|
+
gap: calc(var(--spacing) * 1.5);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-control-family="breadcrumb"][data-slot="link"]) {
|
|
31
|
+
transition: color var(--duration-fast) var(--ease-standard);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (hover: hover) {
|
|
35
|
+
:where([data-control-family="breadcrumb"][data-slot="link"]:hover:not([aria-disabled="true"])) {
|
|
36
|
+
color: var(--cui-breadcrumb-link-hover-foreground);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where([data-control-family="breadcrumb"][data-slot="ellipsis"]) {
|
|
41
|
+
inline-size: calc(var(--spacing) * 9);
|
|
42
|
+
block-size: calc(var(--spacing) * 9);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (pointer: coarse) {
|
|
46
|
+
:where([data-control-family="breadcrumb"][data-slot="link"]) {
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where([data-control-family="breadcrumb"][data-slot="link"])::after {
|
|
51
|
+
content: "";
|
|
52
|
+
position: absolute;
|
|
53
|
+
inset: 50% 50%;
|
|
54
|
+
translate: -50% -50%;
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
block-size: max(100%, var(--touch-target));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@property --cui-breadcrumb-list-foreground {
|
|
62
|
+
syntax: "<color>";
|
|
63
|
+
inherits: true;
|
|
64
|
+
initial-value: transparent;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@property --cui-breadcrumb-page-foreground {
|
|
68
|
+
syntax: "<color>";
|
|
69
|
+
inherits: true;
|
|
70
|
+
initial-value: transparent;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@property --cui-breadcrumb-link-hover-foreground {
|
|
74
|
+
syntax: "<color>";
|
|
75
|
+
inherits: true;
|
|
76
|
+
initial-value: transparent;
|
|
77
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
:where([data-control-family="button-group"][data-slot="text"]) {
|
|
10
10
|
block-size: var(--control-h-md);
|
|
11
|
-
border:
|
|
11
|
+
border: var(--control-rim-width) solid var(--control-rim);
|
|
12
12
|
border-radius: var(--cui-button-group-text-radius);
|
|
13
13
|
background: var(--cui-button-group-text-background);
|
|
14
14
|
box-shadow: var(--shadow-sm);
|
|
@@ -84,12 +84,10 @@
|
|
|
84
84
|
z-index: 3;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
block-size: 100%;
|
|
92
|
-
}
|
|
87
|
+
:where(
|
|
88
|
+
[data-control-family="button-group"][data-slot="root"][data-orientation="vertical"] [data-control-family="button"][data-size="xs"]
|
|
89
|
+
)::after {
|
|
90
|
+
block-size: 100%;
|
|
93
91
|
}
|
|
94
92
|
}
|
|
95
93
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@media (hover: hover) {
|
|
3
|
+
:where([data-control-family="button"][data-control="true"]:hover:not(:disabled, [data-disabled], [aria-disabled="true"])) {
|
|
4
|
+
background-color: var(--cui-button-hover-background);
|
|
5
|
+
background-image: var(--cui-button-hover-background-image);
|
|
6
|
+
box-shadow: var(--cui-button-hover-shadow);
|
|
7
|
+
color: var(--cui-button-hover-foreground);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where([data-control-family="button"][data-popup-open]) {
|
|
12
|
+
background-color: var(--cui-button-open-background);
|
|
13
|
+
color: var(--cui-button-open-foreground);
|
|
14
|
+
box-shadow: var(--cui-button-open-shadow);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([data-control-family="button"][data-active="true"]) {
|
|
18
|
+
background-color: var(--cui-button-active-background);
|
|
19
|
+
box-shadow: var(--cui-button-active-shadow);
|
|
20
|
+
color: var(--cui-button-active-foreground);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media (hover: hover) {
|
|
24
|
+
:where([data-control-family="button"][data-active="true"]:hover:not(:disabled, [data-disabled], [aria-disabled="true"])) {
|
|
25
|
+
background-color: var(--cui-button-active-hover-background);
|
|
26
|
+
color: var(--cui-button-active-foreground);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@scope ([data-track="hover"]) to ([data-track]) {
|
|
31
|
+
@media (hover: hover) {
|
|
32
|
+
:where(
|
|
33
|
+
[data-track="hover"] [data-control-family="button"][data-track-item]:hover:not([data-active="true"], [data-popup-open], :active)
|
|
34
|
+
) {
|
|
35
|
+
background-color: var(--cui-button-background);
|
|
36
|
+
background-image: var(--cui-button-background-image);
|
|
37
|
+
box-shadow: var(--cui-button-shadow);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(
|
|
41
|
+
[data-track="hover"] [data-control-family="button"][data-track-item][data-active="true"]:hover:not([data-popup-open], :active)
|
|
42
|
+
) {
|
|
43
|
+
background-color: var(--cui-button-active-background);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@scope ([data-track="slide"]) to ([data-track]) {
|
|
49
|
+
:where([data-track="slide"] [data-control-family="button"][data-track-item]:not([data-popup-open], :active)) {
|
|
50
|
+
background-color: var(--cui-button-background);
|
|
51
|
+
background-image: var(--cui-button-background-image);
|
|
52
|
+
box-shadow: var(--cui-button-shadow);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where([data-control-family="button"][data-control="true"]:active:not(:disabled, [data-disabled], [aria-disabled="true"])) {
|
|
57
|
+
background-color: var(--cui-button-press-background);
|
|
58
|
+
box-shadow: var(--cui-button-press-shadow);
|
|
59
|
+
scale: var(--cui-button-press-scale);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where([data-control-family="button"]:is(:disabled, [data-disabled], [aria-disabled="true"])) {
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
opacity: var(--disabled-opacity);
|
|
65
|
+
}
|
|
66
|
+
}
|