@ctrl-ui/react 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-bar.d.ts +15 -7
- package/dist/action-bar.js +39 -19
- package/dist/activity.js +7 -15
- package/dist/audio-recorder.d.ts +14 -4
- package/dist/audio-recorder.js +82 -29
- package/dist/audio-visualizer.js +1 -1
- package/dist/blocks/coding-agent.js +54 -57
- package/dist/blocks/design-canvas-data.d.ts +32 -0
- package/dist/blocks/design-canvas-data.js +100 -0
- package/dist/blocks/design-canvas-inspector.d.ts +8 -0
- package/dist/blocks/design-canvas-inspector.js +238 -0
- package/dist/blocks/design-canvas.d.ts +21 -0
- package/dist/blocks/design-canvas.js +452 -0
- package/dist/blocks/discussion.d.ts +28 -0
- package/dist/blocks/discussion.js +67 -0
- package/dist/blocks/file-explorer-data.d.ts +1 -0
- package/dist/blocks/file-explorer-data.js +4 -1
- package/dist/blocks/file-explorer.d.ts +9 -1
- package/dist/blocks/file-explorer.js +461 -192
- package/dist/blocks/settings.d.ts +2 -1
- package/dist/blocks/settings.js +101 -79
- package/dist/blocks/team-chat.d.ts +12 -0
- package/dist/blocks/team-chat.js +26 -0
- package/dist/blocks/theme-toggle.js +23 -31
- package/dist/chat-composer-attachment.d.ts +12 -3
- package/dist/chat-composer-attachment.js +61 -19
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -1
- package/dist/chat-composer-editor/extensions/mention.js +58 -27
- package/dist/chat-composer-editor/ghost.js +2 -4
- package/dist/chat-composer-editor/types.d.ts +5 -0
- package/dist/chat-composer-editor.d.ts +1 -1
- package/dist/chat-composer-editor.js +71 -28
- package/dist/chat-composer.d.ts +13 -32
- package/dist/chat-composer.js +54 -13
- package/dist/chat-layout.d.ts +19 -0
- package/dist/chat-layout.js +96 -32
- package/dist/chat-message/social.d.ts +26 -0
- package/dist/chat-message/social.js +122 -0
- package/dist/chat-message.d.ts +28 -29
- package/dist/chat-message.js +106 -25
- package/dist/context.d.ts +2 -2
- package/dist/context.js +38 -23
- package/dist/dynamic-notification-canvas-loop.d.ts +24 -0
- package/dist/dynamic-notification-canvas-loop.js +113 -0
- package/dist/dynamic-notification-glass.js +23 -114
- package/dist/dynamic-notification-liquid.js +14 -118
- package/dist/dynamic-notification.d.ts +16 -8
- package/dist/dynamic-notification.js +85 -22
- package/dist/email/email-brand.d.ts +7 -4
- package/dist/email/email-brand.js +9 -6
- package/dist/email/email-code.d.ts +3 -2
- package/dist/email/email-code.js +11 -9
- package/dist/email/email-footer.d.ts +5 -3
- package/dist/email/email-footer.js +11 -5
- package/dist/email/email.d.ts +31 -9
- package/dist/email/email.js +50 -26
- package/dist/email/templates.d.ts +10 -9
- package/dist/email/templates.js +102 -38
- package/dist/email/theme.js +1 -1
- package/dist/environment-variables.d.ts +4 -2
- package/dist/environment-variables.js +52 -32
- package/dist/filter-bar/context.d.ts +32 -0
- package/dist/filter-bar/context.js +11 -0
- package/dist/filter-bar/editor.d.ts +14 -0
- package/dist/filter-bar/editor.js +216 -0
- package/dist/filter-bar/model.d.ts +10 -0
- package/dist/filter-bar/model.js +57 -0
- package/dist/filter-bar/motion.d.ts +10 -0
- package/dist/filter-bar/motion.js +84 -0
- package/dist/filter-bar/parts.d.ts +19 -0
- package/dist/filter-bar/parts.js +244 -0
- package/dist/filter-bar/types.d.ts +54 -0
- package/dist/filter-bar/types.js +0 -0
- package/dist/filter-bar.d.ts +27 -0
- package/dist/filter-bar.js +310 -0
- package/dist/hooks/use-audio-recorder.js +12 -6
- package/dist/hooks/use-chat-composer.d.ts +21 -7
- package/dist/hooks/use-chat-composer.js +32 -5
- package/dist/hooks/use-chat-message.d.ts +28 -2
- package/dist/hooks/use-chat-message.js +41 -10
- package/dist/hooks/use-chat-thread-scroll.js +43 -7
- package/dist/hooks/use-color-area.d.ts +3 -3
- package/dist/hooks/use-color-area.js +13 -12
- package/dist/hooks/use-copy-to-clipboard.d.ts +2 -1
- package/dist/hooks/use-copy-to-clipboard.js +20 -20
- package/dist/hooks/use-dropzone.d.ts +7 -4
- package/dist/hooks/use-dropzone.js +34 -3
- package/dist/hooks/use-dynamic-notification.d.ts +6 -2
- package/dist/hooks/use-dynamic-notification.js +26 -10
- package/dist/hooks/use-mobile.d.ts +3 -2
- package/dist/hooks/use-mobile.js +8 -4
- package/dist/hooks/use-textarea-trigger-menu.js +2 -1
- package/dist/hooks/use-trigger-menu.d.ts +54 -0
- package/dist/hooks/use-trigger-menu.js +102 -47
- package/dist/hooks/use-user-ask.d.ts +2 -0
- package/dist/hooks/use-user-ask.js +35 -41
- package/dist/inline-attachment.d.ts +6 -2
- package/dist/inline-attachment.js +44 -29
- package/dist/inline-citation.d.ts +12 -5
- package/dist/inline-citation.js +25 -16
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-recorder-knobs.js +2 -1
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-visualizer-knobs.js +2 -1
- package/dist/knob-contracts/avatar-knobs.d.ts +1 -1
- package/dist/knob-contracts/avatar-knobs.js +6 -1
- package/dist/knob-contracts/badge-knobs.d.ts +1 -1
- package/dist/knob-contracts/badge-knobs.js +2 -1
- package/dist/knob-contracts/breadcrumb-knobs.d.ts +4 -0
- package/dist/knob-contracts/breadcrumb-knobs.js +8 -0
- package/dist/knob-contracts/button-knobs.d.ts +1 -1
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-layout-knobs.js +2 -1
- package/dist/knob-contracts/chat-message-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-message-knobs.js +8 -1
- package/dist/knob-contracts/choice-knobs.d.ts +1 -1
- package/dist/knob-contracts/choice-knobs.js +1 -0
- package/dist/knob-contracts/code-diff-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-diff-knobs.js +2 -0
- package/dist/knob-contracts/code-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-knobs.js +2 -1
- package/dist/knob-contracts/collapsible-knobs.d.ts +1 -1
- package/dist/knob-contracts/collapsible-knobs.js +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.js +2 -0
- package/dist/knob-contracts/emoji-picker-knobs.d.ts +4 -0
- package/dist/knob-contracts/emoji-picker-knobs.js +10 -0
- package/dist/knob-contracts/field-knobs.d.ts +1 -1
- package/dist/knob-contracts/field-knobs.js +5 -1
- package/dist/knob-contracts/filter-bar-knobs.d.ts +4 -0
- package/dist/knob-contracts/filter-bar-knobs.js +15 -0
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +1 -1
- package/dist/knob-contracts/infinite-canvas-knobs.js +3 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +1 -1
- package/dist/knob-contracts/markdown-knobs.js +3 -1
- package/dist/knob-contracts/page-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/page-layout-knobs.js +4 -1
- package/dist/knob-contracts/popup-knobs.d.ts +1 -1
- package/dist/knob-contracts/popup-knobs.js +28 -0
- package/dist/knob-contracts/range-knobs.d.ts +1 -1
- package/dist/knob-contracts/range-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +1 -1
- package/dist/knob-contracts/rich-tooltip-knobs.js +2 -1
- package/dist/knob-contracts/sidebar-knobs.d.ts +1 -1
- package/dist/knob-contracts/sidebar-knobs.js +27 -2
- package/dist/knob-contracts/spinner-knobs.d.ts +1 -1
- package/dist/knob-contracts/spinner-knobs.js +1 -1
- package/dist/knob-contracts/stepper-knobs.d.ts +1 -1
- package/dist/knob-contracts/stepper-knobs.js +4 -1
- package/dist/knob-contracts/switch-knobs.d.ts +1 -1
- package/dist/knob-contracts/switch-knobs.js +5 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +1 -1
- package/dist/knob-contracts/table-of-contents-knobs.js +4 -5
- package/dist/knob-contracts/tabs-knobs.d.ts +1 -1
- package/dist/knob-contracts/tabs-knobs.js +1 -0
- package/dist/knob-contracts/tree-knobs.d.ts +1 -1
- package/dist/knob-contracts/tree-knobs.js +2 -1
- package/dist/lib/cn.js +0 -4
- package/dist/lib/contrast.d.ts +1 -0
- package/dist/lib/contrast.js +17 -5
- package/dist/lib/dropzone-validation.js +41 -28
- package/dist/lib/env-file.d.ts +1 -1
- package/dist/lib/env-file.js +5 -5
- package/dist/lib/motion.d.ts +4 -0
- package/dist/lib/motion.js +15 -0
- package/dist/lib/trigger-detect.js +6 -8
- package/dist/markdown-block.js +13 -8
- package/dist/popup-parts.d.ts +8 -0
- package/dist/popup-parts.js +43 -0
- package/dist/scripts/contrast-eval.js +5 -4
- package/dist/source-badge.js +3 -1
- package/dist/styles/code.css +0 -2
- package/dist/styles/effects.css +6 -32
- package/dist/styles/index.css +14 -8
- package/dist/styles/recipes/accordion.css +9 -6
- package/dist/styles/recipes/action-bar.css +0 -15
- package/dist/styles/recipes/activity.css +5 -11
- package/dist/styles/recipes/alert.css +4 -4
- package/dist/styles/recipes/audio-recorder.css +15 -3
- package/dist/styles/recipes/audio-visualizer.css +13 -2
- package/dist/styles/recipes/avatar.css +78 -1
- package/dist/styles/recipes/badge.css +14 -4
- package/dist/styles/recipes/breadcrumb.css +77 -0
- package/dist/styles/recipes/button-group.css +6 -8
- package/dist/styles/recipes/button-states.css +66 -0
- package/dist/styles/recipes/button.css +26 -85
- package/dist/styles/recipes/calendar.css +17 -23
- package/dist/styles/recipes/card.css +2 -2
- package/dist/styles/recipes/chat-composer-attachment.css +9 -3
- package/dist/styles/recipes/chat-composer.css +21 -16
- package/dist/styles/recipes/chat-layout.css +64 -2
- package/dist/styles/recipes/chat-message-social.css +123 -0
- package/dist/styles/recipes/chat-message.css +157 -37
- package/dist/styles/recipes/choice.css +25 -21
- package/dist/styles/recipes/code-diff.css +51 -26
- package/dist/styles/recipes/code.css +44 -18
- package/dist/styles/recipes/collapsible.css +43 -1
- package/dist/styles/recipes/color-picker-details.css +3 -4
- package/dist/styles/recipes/color-picker-values.css +9 -8
- package/dist/styles/recipes/color-picker.css +23 -4
- package/dist/styles/recipes/context.css +3 -3
- package/dist/styles/recipes/dockable-panel.css +18 -7
- package/dist/styles/recipes/dropzone.css +7 -8
- package/dist/styles/recipes/dynamic-notification-input.css +8 -5
- package/dist/styles/recipes/dynamic-notification-motion.css +12 -21
- package/dist/styles/recipes/dynamic-notification.css +40 -26
- package/dist/styles/recipes/emoji-picker.css +132 -0
- package/dist/styles/recipes/empty.css +5 -4
- package/dist/styles/recipes/environment-variables.css +4 -15
- package/dist/styles/recipes/field-parts.css +89 -21
- package/dist/styles/recipes/field.css +83 -26
- package/dist/styles/recipes/filter-bar.css +161 -0
- package/dist/styles/recipes/gradient-editor.css +18 -7
- package/dist/styles/recipes/infinite-canvas.css +51 -4
- package/dist/styles/recipes/inline-attachment.css +9 -4
- package/dist/styles/recipes/inline-citation.css +10 -4
- package/dist/styles/recipes/item.css +23 -9
- package/dist/styles/recipes/markdown-block.css +5 -4
- package/dist/styles/recipes/markdown.css +68 -26
- package/dist/styles/recipes/morphing-panel.css +8 -8
- package/dist/styles/recipes/page-layout.css +36 -10
- package/dist/styles/recipes/pagination.css +5 -6
- package/dist/styles/recipes/phone-input.css +12 -8
- package/dist/styles/recipes/popup-controls.css +175 -26
- package/dist/styles/recipes/popup-drawer.css +35 -44
- package/dist/styles/recipes/popup-lists.css +139 -29
- package/dist/styles/recipes/popup-motion.css +4 -45
- package/dist/styles/recipes/popup-toast.css +55 -26
- package/dist/styles/recipes/popup.css +149 -153
- package/dist/styles/recipes/range.css +55 -19
- package/dist/styles/recipes/resizable.css +36 -7
- package/dist/styles/recipes/rich-tooltip.css +24 -34
- package/dist/styles/recipes/scroll-area.css +8 -1
- package/dist/styles/recipes/sidebar-menu.css +149 -34
- package/dist/styles/recipes/sidebar-parts.css +154 -0
- package/dist/styles/recipes/sidebar.css +187 -128
- package/dist/styles/recipes/source-badge.css +1 -1
- package/dist/styles/recipes/spinner.css +12 -1
- package/dist/styles/recipes/stepper.css +31 -13
- package/dist/styles/recipes/switch.css +68 -23
- package/dist/styles/recipes/table-of-contents.css +49 -41
- package/dist/styles/recipes/table.css +14 -10
- package/dist/styles/recipes/tabs.css +38 -12
- package/dist/styles/recipes/task-list.css +7 -14
- package/dist/styles/recipes/thread-rail.css +42 -19
- package/dist/styles/recipes/timeline.css +2 -0
- package/dist/styles/recipes/toolbar.css +27 -25
- package/dist/styles/recipes/track-highlight.css +12 -8
- package/dist/styles/recipes/transcript-divider.css +2 -2
- package/dist/styles/recipes/tree.css +31 -4
- package/dist/styles/recipes/user-ask-details.css +0 -1
- package/dist/styles/recipes/user-ask.css +4 -4
- package/dist/styles/theme.css +287 -107
- package/dist/task-list.d.ts +4 -1
- package/dist/task-list.js +24 -8
- package/dist/thread-rail.d.ts +1 -1
- package/dist/thread-rail.js +61 -19
- package/dist/transcript-divider.js +2 -1
- package/dist/ui/alert.d.ts +3 -1
- package/dist/ui/alert.js +14 -8
- package/dist/ui/autocomplete.js +7 -1
- package/dist/ui/avatar.d.ts +8 -0
- package/dist/ui/avatar.js +23 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.ts +27 -0
- package/dist/ui/breadcrumb.js +88 -0
- package/dist/ui/button.d.ts +2 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/calendar.js +2 -2
- package/dist/ui/card.d.ts +3 -1
- package/dist/ui/card.js +12 -7
- package/dist/ui/checkbox-group.js +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/code-diff.d.ts +1 -1
- package/dist/ui/code-diff.js +71 -27
- package/dist/ui/code.d.ts +5 -3
- package/dist/ui/code.js +27 -28
- package/dist/ui/color-picker.d.ts +5 -2
- package/dist/ui/color-picker.js +84 -36
- package/dist/ui/combobox-disabled-selection.d.ts +1 -2
- package/dist/ui/combobox-disabled-selection.js +7 -8
- package/dist/ui/combobox.d.ts +5 -23
- package/dist/ui/combobox.js +36 -16
- package/dist/ui/command.d.ts +8 -2
- package/dist/ui/command.js +39 -15
- package/dist/ui/context-menu.js +3 -0
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +3 -22
- package/dist/ui/dockable-panel-geometry.d.ts +1 -0
- package/dist/ui/dockable-panel-geometry.js +7 -1
- package/dist/ui/dockable-panel.d.ts +9 -6
- package/dist/ui/dockable-panel.js +81 -33
- package/dist/ui/drawer.d.ts +7 -4
- package/dist/ui/drawer.js +35 -22
- package/dist/ui/dropdown-menu.js +4 -3
- package/dist/ui/dropzone.d.ts +5 -3
- package/dist/ui/dropzone.js +78 -17
- package/dist/ui/emoji-picker.d.ts +18 -0
- package/dist/ui/emoji-picker.js +136 -0
- package/dist/ui/empty.d.ts +3 -1
- package/dist/ui/empty.js +12 -7
- package/dist/ui/field.js +1 -1
- package/dist/ui/gradient-editor.d.ts +1 -1
- package/dist/ui/gradient-editor.js +37 -21
- package/dist/ui/infinite-canvas.d.ts +13 -1
- package/dist/ui/infinite-canvas.js +139 -20
- package/dist/ui/input-group.d.ts +2 -4
- package/dist/ui/input-group.js +13 -14
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.js +32 -15
- package/dist/ui/input.js +11 -2
- package/dist/ui/item.d.ts +2 -1
- package/dist/ui/item.js +11 -7
- package/dist/ui/live-status.d.ts +7 -0
- package/dist/ui/live-status.js +17 -0
- package/dist/ui/markdown-elements.d.ts +6 -0
- package/dist/ui/markdown-elements.js +42 -9
- package/dist/ui/menubar.js +2 -2
- package/dist/ui/morphing-panel.js +2 -1
- package/dist/ui/native-select.d.ts +1 -1
- package/dist/ui/native-select.js +24 -11
- package/dist/ui/number-field.d.ts +1 -1
- package/dist/ui/number-field.js +13 -2
- package/dist/ui/page-layout.d.ts +2 -2
- package/dist/ui/page-layout.js +2 -4
- package/dist/ui/pagination.d.ts +7 -5
- package/dist/ui/pagination.js +19 -13
- package/dist/ui/phone-input.d.ts +1 -0
- package/dist/ui/phone-input.js +56 -58
- package/dist/ui/radio-group.d.ts +3 -0
- package/dist/ui/radio-group.js +11 -1
- package/dist/ui/resizable.d.ts +20 -2
- package/dist/ui/resizable.js +130 -8
- package/dist/ui/responsive-dialog.d.ts +1 -1
- package/dist/ui/responsive-dialog.js +9 -23
- package/dist/ui/rich-tooltip.d.ts +10 -4
- package/dist/ui/rich-tooltip.js +81 -33
- package/dist/ui/scroll-area.d.ts +4 -1
- package/dist/ui/scroll-area.js +44 -28
- package/dist/ui/select.d.ts +2 -1
- package/dist/ui/select.js +57 -32
- package/dist/ui/sidebar-menu.d.ts +5 -1
- package/dist/ui/sidebar-menu.js +31 -33
- package/dist/ui/sidebar-provider.d.ts +10 -1
- package/dist/ui/sidebar-provider.js +38 -13
- package/dist/ui/sidebar-resize-rail.js +7 -3
- package/dist/ui/sidebar.d.ts +11 -6
- package/dist/ui/sidebar.js +46 -23
- package/dist/ui/slider.js +31 -22
- package/dist/ui/spinner.d.ts +3 -2
- package/dist/ui/spinner.js +3 -2
- package/dist/ui/stepper.d.ts +8 -1
- package/dist/ui/stepper.js +74 -25
- package/dist/ui/switch.d.ts +1 -0
- package/dist/ui/table-of-contents.d.ts +5 -4
- package/dist/ui/table-of-contents.js +143 -52
- package/dist/ui/table.js +15 -9
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.js +20 -9
- package/dist/ui/timeline.d.ts +3 -1
- package/dist/ui/timeline.js +17 -9
- package/dist/ui/toast.d.ts +11 -5
- package/dist/ui/toast.js +100 -54
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.js +2 -1
- package/dist/ui/toolbar.d.ts +3 -2
- package/dist/ui/toolbar.js +4 -2
- package/dist/ui/tooltip.js +3 -20
- package/dist/ui/tree.js +120 -80
- package/dist/ui/trigger-menu.js +7 -2
- package/dist/user-ask.d.ts +10 -5
- package/dist/user-ask.js +31 -11
- package/package.json +5 -1
- package/dist/hooks/use-keyboard-navigation.d.ts +0 -3
- package/dist/hooks/use-keyboard-navigation.js +0 -22
|
@@ -16,49 +16,63 @@
|
|
|
16
16
|
user-select: none;
|
|
17
17
|
--cui-switch-background: oklch(from var(--foreground) l c h / 0.14);
|
|
18
18
|
--cui-switch-hover-background: oklch(from var(--foreground) l c h / 0.2);
|
|
19
|
+
--cui-switch-border-color: var(--control-boundary);
|
|
20
|
+
--cui-switch-border-width: var(--control-rim-width);
|
|
19
21
|
--cui-switch-checked-background: var(--primary);
|
|
20
|
-
--cui-switch-checked-hover-background:
|
|
22
|
+
--cui-switch-checked-hover-background: color-mix(in oklch, var(--primary) 90%, var(--foreground));
|
|
23
|
+
--cui-switch-checked-border-color: transparent;
|
|
24
|
+
--cui-switch-radius: 9999px;
|
|
25
|
+
--cui-switch-shadow: 0 0 transparent;
|
|
21
26
|
--cui-switch-thumb-radius: 9999px;
|
|
22
27
|
--cui-switch-thumb-background: var(--background);
|
|
23
28
|
--cui-switch-thumb-shadow: var(--shadow-sm);
|
|
24
|
-
border-
|
|
25
|
-
|
|
26
|
-
outline: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:where([data-control-family="switch"][data-slot="root"]:hover) {
|
|
30
|
-
background: var(--cui-switch-hover-background);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:where([data-control-family="switch"][data-slot="root"]:active) {
|
|
34
|
-
--cui-switch-background: oklch(from var(--foreground) l c h / 0.25);
|
|
29
|
+
--_switch-border-color: var(--cui-switch-border-color);
|
|
30
|
+
border-radius: var(--cui-switch-radius);
|
|
35
31
|
background: var(--cui-switch-background);
|
|
32
|
+
box-shadow:
|
|
33
|
+
inset 0 0 0 var(--cui-switch-border-width) var(--_switch-border-color),
|
|
34
|
+
var(--cui-switch-shadow);
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
:where([data-control-family="switch"][data-slot="root"][data-checked]) {
|
|
39
38
|
--_switch-progress: 1;
|
|
39
|
+
--_switch-border-color: var(--cui-switch-checked-border-color);
|
|
40
40
|
background: var(--cui-switch-checked-background);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
@media (hover: hover) {
|
|
44
|
+
:where([data-control-family="switch"][data-slot="root"]:hover:not([data-checked], [data-disabled], [data-readonly])) {
|
|
45
|
+
background: var(--cui-switch-hover-background);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked]:hover:not([data-disabled], [data-readonly])) {
|
|
49
|
+
background: var(--cui-switch-checked-hover-background);
|
|
50
|
+
}
|
|
45
51
|
}
|
|
46
52
|
|
|
47
|
-
:where([data-control-family="switch"][data-slot="root"][data-checked]
|
|
48
|
-
--cui-switch-
|
|
49
|
-
background: var(--cui-switch-
|
|
53
|
+
:where([data-control-family="switch"][data-slot="root"]:active:not([data-checked], [data-disabled], [data-readonly])) {
|
|
54
|
+
--cui-switch-background: oklch(from var(--foreground) l c h / 0.25);
|
|
55
|
+
background: var(--cui-switch-background);
|
|
50
56
|
}
|
|
51
57
|
|
|
52
|
-
:where([data-control-family="switch"][data-slot="root"][data-disabled]) {
|
|
53
|
-
|
|
58
|
+
:where([data-control-family="switch"][data-slot="root"][data-checked]:active:not([data-disabled], [data-readonly])) {
|
|
59
|
+
--cui-switch-checked-background: color-mix(in oklch, var(--primary) 80%, var(--foreground));
|
|
60
|
+
background: var(--cui-switch-checked-background);
|
|
54
61
|
}
|
|
55
62
|
|
|
56
|
-
:where([data-control-family="switch"][data-slot="root"][data-disabled]
|
|
57
|
-
|
|
63
|
+
:where([data-control-family="switch"][data-slot="root"][data-disabled]) {
|
|
64
|
+
opacity: var(--disabled-opacity);
|
|
58
65
|
}
|
|
59
66
|
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
@media (pointer: coarse) {
|
|
68
|
+
:where([data-control-family="switch"][data-slot="root"])::after {
|
|
69
|
+
content: "";
|
|
70
|
+
position: absolute;
|
|
71
|
+
inset: 50%;
|
|
72
|
+
translate: -50% -50%;
|
|
73
|
+
inline-size: max(100%, var(--touch-target));
|
|
74
|
+
block-size: max(100%, var(--touch-target));
|
|
75
|
+
}
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
:where([data-control-family="switch"][data-slot="thumb"]) {
|
|
@@ -133,10 +147,12 @@
|
|
|
133
147
|
}
|
|
134
148
|
|
|
135
149
|
:where([data-control-family="switch"][data-slot="root"][data-drag-checked="false"]) {
|
|
150
|
+
--_switch-border-color: var(--cui-switch-border-color);
|
|
136
151
|
background: var(--cui-switch-background);
|
|
137
152
|
}
|
|
138
153
|
|
|
139
154
|
:where([data-control-family="switch"][data-slot="root"][data-drag-checked="true"]) {
|
|
155
|
+
--_switch-border-color: var(--cui-switch-checked-border-color);
|
|
140
156
|
background: var(--cui-switch-checked-background);
|
|
141
157
|
}
|
|
142
158
|
|
|
@@ -150,12 +166,41 @@
|
|
|
150
166
|
inherits: true;
|
|
151
167
|
}
|
|
152
168
|
|
|
169
|
+
@property --cui-switch-radius {
|
|
170
|
+
syntax: "<length-percentage>";
|
|
171
|
+
inherits: true;
|
|
172
|
+
initial-value: 0px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@property --cui-switch-shadow {
|
|
176
|
+
syntax: "*";
|
|
177
|
+
inherits: true;
|
|
178
|
+
}
|
|
179
|
+
|
|
153
180
|
@property --cui-switch-background {
|
|
154
181
|
syntax: "<color>";
|
|
155
182
|
inherits: true;
|
|
156
183
|
initial-value: transparent;
|
|
157
184
|
}
|
|
158
185
|
|
|
186
|
+
@property --cui-switch-border-color {
|
|
187
|
+
syntax: "<color>";
|
|
188
|
+
inherits: true;
|
|
189
|
+
initial-value: transparent;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@property --cui-switch-border-width {
|
|
193
|
+
syntax: "<length>";
|
|
194
|
+
inherits: true;
|
|
195
|
+
initial-value: 0px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@property --cui-switch-checked-border-color {
|
|
199
|
+
syntax: "<color>";
|
|
200
|
+
inherits: true;
|
|
201
|
+
initial-value: transparent;
|
|
202
|
+
}
|
|
203
|
+
|
|
159
204
|
@property --cui-switch-hover-background {
|
|
160
205
|
syntax: "<color>";
|
|
161
206
|
inherits: true;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
:where([data-control-family="table-of-contents"][data-slot="root"]) {
|
|
3
3
|
--cui-table-of-contents-background: var(--card);
|
|
4
4
|
--cui-table-of-contents-border-color: var(--border);
|
|
5
|
-
--cui-table-of-contents-border-width:
|
|
5
|
+
--cui-table-of-contents-border-width: var(--control-rim-width);
|
|
6
6
|
--cui-table-of-contents-radius: var(--radius-panel);
|
|
7
7
|
--cui-table-of-contents-shadow: var(--shadow-sm);
|
|
8
8
|
--cui-table-of-contents-backdrop-filter: none;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--cui-table-of-contents-label-gap: calc(var(--spacing) * 3);
|
|
14
14
|
--cui-table-of-contents-item-foreground: var(--muted-foreground);
|
|
15
15
|
--cui-table-of-contents-item-hover-foreground: var(--foreground);
|
|
16
|
-
--cui-table-of-contents-item-active-foreground: var(--
|
|
16
|
+
--cui-table-of-contents-item-active-foreground: var(--primary-text);
|
|
17
17
|
--cui-table-of-contents-item-font-size: var(--text-body);
|
|
18
18
|
--cui-table-of-contents-item-line-height: var(--leading-normal);
|
|
19
19
|
--cui-table-of-contents-item-font-weight: var(--font-weight-normal);
|
|
@@ -21,13 +21,12 @@
|
|
|
21
21
|
--cui-table-of-contents-item-padding-block: calc(var(--spacing) * 1.5);
|
|
22
22
|
--cui-table-of-contents-item-padding-inline: calc(var(--spacing) * 3);
|
|
23
23
|
--cui-table-of-contents-item-indent-size: calc(var(--spacing) * 2);
|
|
24
|
-
--cui-table-of-contents-rail-
|
|
24
|
+
--cui-table-of-contents-rail-stroke: var(--border);
|
|
25
25
|
--cui-table-of-contents-rail-size: 1px;
|
|
26
|
-
--cui-table-of-contents-trail-
|
|
26
|
+
--cui-table-of-contents-trail-stroke: var(--primary-text);
|
|
27
27
|
--cui-table-of-contents-trail-size: 2px;
|
|
28
|
-
--cui-table-of-contents-
|
|
29
|
-
--cui-table-of-contents-
|
|
30
|
-
--cui-table-of-contents-highlight-background: var(--active-fill);
|
|
28
|
+
--cui-table-of-contents-indicator-foreground: var(--cui-table-of-contents-trail-stroke);
|
|
29
|
+
--cui-table-of-contents-scroll-inset: calc(var(--spacing) * 20);
|
|
31
30
|
border: var(--cui-table-of-contents-border-width) solid var(--cui-table-of-contents-border-color);
|
|
32
31
|
border-radius: var(--cui-table-of-contents-radius);
|
|
33
32
|
background-color: var(--cui-table-of-contents-background);
|
|
@@ -37,6 +36,7 @@
|
|
|
37
36
|
padding: var(--cui-table-of-contents-padding);
|
|
38
37
|
font-size: var(--cui-table-of-contents-item-font-size);
|
|
39
38
|
line-height: var(--cui-table-of-contents-item-line-height);
|
|
39
|
+
scroll-margin-block-start: var(--cui-table-of-contents-scroll-inset);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
:where([data-control-family="table-of-contents"][data-slot="label"]) {
|
|
@@ -47,8 +47,41 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:where([data-control-family="table-of-contents"][data-slot="rail"]) {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
fill: none;
|
|
51
|
+
stroke: var(--cui-table-of-contents-rail-stroke);
|
|
52
|
+
stroke-width: var(--cui-table-of-contents-rail-size);
|
|
53
|
+
stroke-linejoin: round;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where([data-control-family="table-of-contents"][data-slot="trail"]) {
|
|
57
|
+
fill: none;
|
|
58
|
+
stroke: var(--cui-table-of-contents-trail-stroke);
|
|
59
|
+
stroke-width: var(--cui-table-of-contents-trail-size);
|
|
60
|
+
stroke-linecap: round;
|
|
61
|
+
stroke-linejoin: round;
|
|
62
|
+
stroke-dasharray: var(--_toc-trail-length) var(--_toc-rail-length);
|
|
63
|
+
stroke-dashoffset: calc(-1 * var(--_toc-trail-start));
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transition-property: stroke-dasharray, stroke-dashoffset, opacity;
|
|
66
|
+
transition-duration: var(--duration-base);
|
|
67
|
+
transition-timing-function: var(--ease-standard);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where([data-control-family="table-of-contents"][data-slot="indicator"]) {
|
|
71
|
+
display: grid;
|
|
72
|
+
place-items: center;
|
|
73
|
+
color: var(--cui-table-of-contents-indicator-foreground);
|
|
74
|
+
offset-distance: var(--_toc-indicator-distance);
|
|
75
|
+
offset-rotate: 0deg;
|
|
76
|
+
opacity: 0;
|
|
77
|
+
transition-property: offset-distance, opacity;
|
|
78
|
+
transition-duration: var(--duration-base);
|
|
79
|
+
transition-timing-function: var(--ease-standard);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where([data-control-family="table-of-contents"][data-slot="trail"][data-visible]),
|
|
83
|
+
:where([data-control-family="table-of-contents"][data-slot="indicator"][data-visible]) {
|
|
84
|
+
opacity: 1;
|
|
52
85
|
}
|
|
53
86
|
|
|
54
87
|
:where([data-control-family="table-of-contents"][data-slot="item"]) {
|
|
@@ -83,25 +116,6 @@
|
|
|
83
116
|
:where([data-control-family="table-of-contents"][data-slot="item"][data-active]) {
|
|
84
117
|
color: var(--cui-table-of-contents-item-active-foreground);
|
|
85
118
|
}
|
|
86
|
-
|
|
87
|
-
:where([data-control-family="table-of-contents"][data-slot="root"] [data-control-family="track-highlight"][data-slot="root"]) {
|
|
88
|
-
--cui-track-highlight-transition-duration: var(--duration-base);
|
|
89
|
-
--cui-track-highlight-radius: var(--cui-table-of-contents-highlight-radius);
|
|
90
|
-
--cui-track-highlight-background: var(--cui-table-of-contents-highlight-background);
|
|
91
|
-
--cui-track-highlight-ring-color: transparent;
|
|
92
|
-
--cui-track-highlight-shadow: none;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:where([data-control-family="table-of-contents"][data-slot="root"][data-variant="trail"]) {
|
|
96
|
-
--cui-table-of-contents-highlight-radius: 0px;
|
|
97
|
-
--cui-table-of-contents-highlight-background: transparent;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:where([data-control-family="table-of-contents"][data-slot="trail"]) {
|
|
101
|
-
inline-size: var(--cui-table-of-contents-trail-size);
|
|
102
|
-
border-radius: var(--cui-table-of-contents-trail-radius);
|
|
103
|
-
background-color: var(--cui-table-of-contents-trail-background);
|
|
104
|
-
}
|
|
105
119
|
}
|
|
106
120
|
|
|
107
121
|
@property --cui-table-of-contents-background {
|
|
@@ -230,7 +244,7 @@
|
|
|
230
244
|
initial-value: 0px;
|
|
231
245
|
}
|
|
232
246
|
|
|
233
|
-
@property --cui-table-of-contents-rail-
|
|
247
|
+
@property --cui-table-of-contents-rail-stroke {
|
|
234
248
|
syntax: "<color>";
|
|
235
249
|
inherits: true;
|
|
236
250
|
initial-value: transparent;
|
|
@@ -242,7 +256,7 @@
|
|
|
242
256
|
initial-value: 0px;
|
|
243
257
|
}
|
|
244
258
|
|
|
245
|
-
@property --cui-table-of-contents-trail-
|
|
259
|
+
@property --cui-table-of-contents-trail-stroke {
|
|
246
260
|
syntax: "<color>";
|
|
247
261
|
inherits: true;
|
|
248
262
|
initial-value: transparent;
|
|
@@ -254,20 +268,14 @@
|
|
|
254
268
|
initial-value: 0px;
|
|
255
269
|
}
|
|
256
270
|
|
|
257
|
-
@property --cui-table-of-contents-
|
|
258
|
-
syntax: "<
|
|
271
|
+
@property --cui-table-of-contents-indicator-foreground {
|
|
272
|
+
syntax: "<color>";
|
|
259
273
|
inherits: true;
|
|
260
|
-
initial-value:
|
|
274
|
+
initial-value: transparent;
|
|
261
275
|
}
|
|
262
276
|
|
|
263
|
-
@property --cui-table-of-contents-
|
|
264
|
-
syntax: "<length
|
|
277
|
+
@property --cui-table-of-contents-scroll-inset {
|
|
278
|
+
syntax: "<length>";
|
|
265
279
|
inherits: true;
|
|
266
280
|
initial-value: 0px;
|
|
267
281
|
}
|
|
268
|
-
|
|
269
|
-
@property --cui-table-of-contents-highlight-background {
|
|
270
|
-
syntax: "<color>";
|
|
271
|
-
inherits: true;
|
|
272
|
-
initial-value: transparent;
|
|
273
|
-
}
|
|
@@ -31,15 +31,17 @@
|
|
|
31
31
|
border-bottom-width: 1px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
@media (hover: hover) {
|
|
35
|
+
:where(
|
|
36
|
+
[data-control-family="table"][data-slot="row"]:is(
|
|
37
|
+
[data-interactive],
|
|
38
|
+
[tabindex],
|
|
39
|
+
[role="button"],
|
|
40
|
+
:has(a, button, [role="checkbox"])
|
|
41
|
+
):hover
|
|
42
|
+
) {
|
|
43
|
+
background: var(--cui-table-row-hover-background);
|
|
44
|
+
}
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
:where([data-control-family="table"][data-slot="row"][data-state="selected"]) {
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
block-size: calc(var(--spacing) * 10);
|
|
51
53
|
padding-inline: calc(var(--spacing) * 2);
|
|
52
54
|
color: var(--cui-table-header-foreground);
|
|
53
|
-
text-align:
|
|
55
|
+
text-align: start;
|
|
54
56
|
font-weight: var(--font-weight-medium);
|
|
55
57
|
}
|
|
56
58
|
|
|
@@ -58,6 +60,7 @@
|
|
|
58
60
|
margin-block-start: calc(var(--spacing) * 4);
|
|
59
61
|
color: var(--muted-foreground);
|
|
60
62
|
font-size: var(--text-body);
|
|
63
|
+
text-wrap: pretty;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
:where([data-control-family="table"][data-slot="footer"] > tr:last-child) {
|
|
@@ -77,6 +80,7 @@
|
|
|
77
80
|
|
|
78
81
|
:where([data-control-family="table"][data-slot="cell"]) {
|
|
79
82
|
padding: calc(var(--spacing) * 2);
|
|
83
|
+
font-variant-numeric: tabular-nums;
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
|
|
@@ -12,10 +12,17 @@
|
|
|
12
12
|
--cui-tabs-indicator-background: var(--background);
|
|
13
13
|
--cui-tabs-foreground: var(--muted-foreground);
|
|
14
14
|
--cui-tabs-active-foreground: var(--foreground);
|
|
15
|
+
--cui-tabs-hover-foreground: var(--foreground);
|
|
15
16
|
--cui-tabs-indicator-shadow: var(--shadow-sm);
|
|
16
17
|
--cui-tabs-border-color: var(--border);
|
|
17
|
-
--cui-tabs-border-width:
|
|
18
|
+
--cui-tabs-border-width: var(--control-rim-width);
|
|
18
19
|
}
|
|
20
|
+
|
|
21
|
+
:where([data-control-family="tabs"][data-slot="root"][data-orientation="vertical"]) {
|
|
22
|
+
display: flex;
|
|
23
|
+
gap: calc(var(--spacing) * 4);
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
:where([data-control-family="tabs"][data-slot="list"]) {
|
|
20
27
|
--_tabs-trigger-radius-fit: min(var(--cui-tabs-trigger-radius), calc(var(--_tabs-trigger-h) / 2));
|
|
21
28
|
position: relative;
|
|
@@ -43,7 +50,7 @@
|
|
|
43
50
|
border-radius: var(--_tabs-trigger-radius-fit);
|
|
44
51
|
background: var(--cui-tabs-indicator-background);
|
|
45
52
|
box-shadow: var(--cui-tabs-indicator-shadow);
|
|
46
|
-
/*
|
|
53
|
+
/* Compositor transforms tear the strip while its width resizes. */
|
|
47
54
|
transition:
|
|
48
55
|
width var(--duration-base) var(--ease-standard),
|
|
49
56
|
left var(--duration-base) var(--ease-standard),
|
|
@@ -79,11 +86,12 @@
|
|
|
79
86
|
color: var(--cui-tabs-foreground);
|
|
80
87
|
font-size: var(--text-label);
|
|
81
88
|
font-weight: var(--font-weight-medium);
|
|
82
|
-
outline: none;
|
|
83
89
|
}
|
|
84
90
|
|
|
85
|
-
|
|
86
|
-
|
|
91
|
+
@media (hover: hover) {
|
|
92
|
+
:where([data-control-family="tabs"][data-slot="tab"]:hover:not([data-disabled])) {
|
|
93
|
+
color: var(--cui-tabs-hover-foreground);
|
|
94
|
+
}
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
:where([data-control-family="tabs"][data-slot="tab"]:is([aria-selected="true"], [data-active])) {
|
|
@@ -92,22 +100,21 @@
|
|
|
92
100
|
|
|
93
101
|
:where([data-control-family="tabs"][data-slot="tab"][data-disabled]) {
|
|
94
102
|
cursor: not-allowed;
|
|
95
|
-
opacity:
|
|
103
|
+
opacity: var(--disabled-opacity);
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"]) {
|
|
99
107
|
--_tabs-browser-corner-double: calc(var(--_tabs-trigger-radius-fit) + var(--_tabs-trigger-radius-fit));
|
|
100
|
-
/* One trigger radius for the flare, plus the surface corner arc it must clear. */
|
|
101
108
|
--_tabs-browser-inset: calc(var(--_tabs-trigger-radius-fit) + var(--radius-panel));
|
|
102
109
|
min-height: calc(var(--_tabs-trigger-h) + var(--cui-tabs-list-padding));
|
|
110
|
+
width: auto;
|
|
103
111
|
align-items: flex-end;
|
|
104
112
|
isolation: isolate;
|
|
105
|
-
/* The slide machinery promotes the surface wrapper mid-switch — the strip stays above it. */
|
|
106
113
|
z-index: 1;
|
|
107
|
-
/* Bare-surface chrome: re-pin the pill knobs so a skin's pill styling can't leak in. */
|
|
108
114
|
--cui-tabs-list-background: transparent;
|
|
109
115
|
--cui-tabs-list-shadow: inset 0 -1px 0 var(--cui-tabs-border-color);
|
|
110
116
|
--cui-tabs-indicator-background: var(--background);
|
|
117
|
+
--cui-tabs-active-foreground: var(--foreground);
|
|
111
118
|
border-radius: var(--cui-tabs-list-radius) var(--cui-tabs-list-radius) 0 0;
|
|
112
119
|
}
|
|
113
120
|
|
|
@@ -128,7 +135,6 @@
|
|
|
128
135
|
background: var(--cui-tabs-indicator-background);
|
|
129
136
|
}
|
|
130
137
|
|
|
131
|
-
/* Flares: the side walls scoop outward into the surface line — an arc no border can draw. */
|
|
132
138
|
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"] [data-slot="indicator"])::after {
|
|
133
139
|
content: "";
|
|
134
140
|
position: absolute;
|
|
@@ -172,6 +178,20 @@
|
|
|
172
178
|
outline-style: none;
|
|
173
179
|
}
|
|
174
180
|
|
|
181
|
+
:where(
|
|
182
|
+
[data-control-family="tabs"][data-slot="list"][data-orientation="horizontal"]:not([data-variant="browser"]) ~ [data-slot="panel"]
|
|
183
|
+
) {
|
|
184
|
+
margin-block-start: calc(var(--spacing) * 3);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"] ~ [data-slot="panel"]) {
|
|
188
|
+
border: var(--cui-tabs-border-width) solid var(--cui-tabs-border-color);
|
|
189
|
+
border-top: none;
|
|
190
|
+
border-radius: 0 0 var(--radius-panel) var(--radius-panel);
|
|
191
|
+
background: var(--cui-tabs-indicator-background);
|
|
192
|
+
padding: calc(var(--spacing) * 4);
|
|
193
|
+
}
|
|
194
|
+
|
|
175
195
|
:where([data-control-family="tabs"][data-slot="list"][data-variant="browser"] [data-control-family="tabs"][data-slot="tab"]) {
|
|
176
196
|
border-top-left-radius: var(--_tabs-trigger-radius-fit);
|
|
177
197
|
border-top-right-radius: var(--_tabs-trigger-radius-fit);
|
|
@@ -186,11 +206,11 @@
|
|
|
186
206
|
inset: 50% 50%;
|
|
187
207
|
translate: -50% -50%;
|
|
188
208
|
inline-size: 100%;
|
|
189
|
-
block-size: max(100%,
|
|
209
|
+
block-size: max(100%, var(--touch-target));
|
|
190
210
|
}
|
|
191
211
|
|
|
192
212
|
:where([data-control-family="tabs"][data-slot="list"][data-orientation="vertical"]:not([data-single="true"]) [data-slot="tab"])::after {
|
|
193
|
-
inline-size: max(100%,
|
|
213
|
+
inline-size: max(100%, var(--touch-target));
|
|
194
214
|
block-size: 100%;
|
|
195
215
|
}
|
|
196
216
|
}
|
|
@@ -244,6 +264,12 @@
|
|
|
244
264
|
initial-value: transparent;
|
|
245
265
|
}
|
|
246
266
|
|
|
267
|
+
@property --cui-tabs-hover-foreground {
|
|
268
|
+
syntax: "<color>";
|
|
269
|
+
inherits: true;
|
|
270
|
+
initial-value: transparent;
|
|
271
|
+
}
|
|
272
|
+
|
|
247
273
|
@property --cui-tabs-indicator-shadow {
|
|
248
274
|
syntax: "*";
|
|
249
275
|
inherits: true;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--cui-task-list-ring-color: oklch(from var(--foreground) l c h / 0.04);
|
|
9
9
|
--cui-task-list-shadow: var(--shadow-md);
|
|
10
10
|
--cui-task-list-indicator-active-foreground: var(--primary-text);
|
|
11
|
-
--cui-task-list-indicator-foreground:
|
|
11
|
+
--cui-task-list-indicator-foreground: var(--muted-foreground);
|
|
12
12
|
--cui-task-list-item-foreground: var(--foreground);
|
|
13
13
|
--cui-task-list-item-pending-foreground: var(--muted-foreground);
|
|
14
14
|
--cui-task-list-items-padding: calc(var(--spacing) * 2);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
gap: calc(var(--spacing) * 2);
|
|
33
33
|
padding-inline: calc(var(--spacing) * 3);
|
|
34
34
|
padding-block: calc(var(--spacing) * 2);
|
|
35
|
-
text-align:
|
|
35
|
+
text-align: start;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
@media (hover: hover) {
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
:where([data-control-family="task-list"][data-slot="trigger"])::after {
|
|
54
54
|
content: "";
|
|
55
55
|
position: absolute;
|
|
56
|
-
inset:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
block-size: max(100%,
|
|
56
|
+
inset-inline: 0;
|
|
57
|
+
inset-block-start: 50%;
|
|
58
|
+
translate: 0 -50%;
|
|
59
|
+
block-size: max(100%, var(--touch-target));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
|
|
95
95
|
:where([data-control-family="task-list"][data-slot="item"][data-status="pending"]) {
|
|
96
96
|
color: var(--cui-task-list-item-pending-foreground);
|
|
97
|
-
opacity: 0.7;
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
:where([data-control-family="task-list"][data-slot="item-indicator"]) {
|
|
@@ -106,7 +105,7 @@
|
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
:where([data-control-family="task-list"][data-slot="item-indicator"][data-status="active"] > svg) {
|
|
109
|
-
animation:
|
|
108
|
+
animation: cui-spin var(--duration-loop) linear infinite;
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
:where([data-control-family="task-list"][data-slot="progress"]) {
|
|
@@ -115,12 +114,6 @@
|
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
@keyframes task-list-spin {
|
|
119
|
-
to {
|
|
120
|
-
rotate: 360deg;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
117
|
@property --cui-task-list-radius {
|
|
125
118
|
syntax: "<length>";
|
|
126
119
|
inherits: true;
|
|
@@ -26,22 +26,20 @@
|
|
|
26
26
|
inline-size: calc(var(--spacing) * 2);
|
|
27
27
|
border-radius: var(--cui-thread-rail-line-radius);
|
|
28
28
|
background: oklch(from var(--foreground) l c h / 0.2);
|
|
29
|
-
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where([data-control-family="thread-rail"][data-slot="line"])::before {
|
|
32
|
+
content: "";
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset-block: calc(var(--spacing) * -1);
|
|
35
|
+
inset-inline-start: 0;
|
|
36
|
+
inline-size: calc(var(--spacing) * 4);
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
:where([data-control-family="thread-rail"][data-slot="item"][data-in-view] [data-control-family="thread-rail"][data-slot="line"]) {
|
|
33
40
|
background: oklch(from var(--foreground) l c h / 0.6);
|
|
34
41
|
}
|
|
35
42
|
|
|
36
|
-
:where(
|
|
37
|
-
[data-control-family="thread-rail"][data-slot="item"]:has(+ [data-control-family="thread-rail"][data-slot="item"]:hover)
|
|
38
|
-
[data-control-family="thread-rail"][data-slot="line"]
|
|
39
|
-
),
|
|
40
|
-
:where(
|
|
41
|
-
[data-control-family="thread-rail"][data-slot="item"]:hover
|
|
42
|
-
+ [data-control-family="thread-rail"][data-slot="item"]
|
|
43
|
-
[data-control-family="thread-rail"][data-slot="line"]
|
|
44
|
-
),
|
|
45
43
|
:where(
|
|
46
44
|
[data-control-family="thread-rail"][data-slot="item"]:has(+ [data-control-family="thread-rail"][data-slot="item"]:focus-within)
|
|
47
45
|
[data-control-family="thread-rail"][data-slot="line"]
|
|
@@ -55,13 +53,33 @@
|
|
|
55
53
|
background: oklch(from var(--foreground) l c h / 0.45);
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
:
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
@media (hover: hover) {
|
|
57
|
+
:where(
|
|
58
|
+
[data-control-family="thread-rail"][data-slot="item"]:has(+ [data-control-family="thread-rail"][data-slot="item"]:hover)
|
|
59
|
+
[data-control-family="thread-rail"][data-slot="line"]
|
|
60
|
+
),
|
|
61
|
+
:where(
|
|
62
|
+
[data-control-family="thread-rail"][data-slot="item"]:hover
|
|
63
|
+
+ [data-control-family="thread-rail"][data-slot="item"]
|
|
64
|
+
[data-control-family="thread-rail"][data-slot="line"]
|
|
65
|
+
) {
|
|
66
|
+
inline-size: calc(var(--spacing) * 3);
|
|
67
|
+
background: oklch(from var(--foreground) l c h / 0.45);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where([data-control-family="thread-rail"][data-slot="item"]:focus-within [data-control-family="thread-rail"][data-slot="line"]) {
|
|
61
72
|
inline-size: calc(var(--spacing) * 4);
|
|
62
73
|
background: var(--foreground);
|
|
63
74
|
}
|
|
64
75
|
|
|
76
|
+
@media (hover: hover) {
|
|
77
|
+
:where([data-control-family="thread-rail"][data-slot="item"]:hover [data-control-family="thread-rail"][data-slot="line"]) {
|
|
78
|
+
inline-size: calc(var(--spacing) * 4);
|
|
79
|
+
background: var(--foreground);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
65
83
|
:where([data-control-family="thread-rail"][data-slot="item"][data-rail-current] [data-control-family="thread-rail"][data-slot="line"]) {
|
|
66
84
|
anchor-name: --_thread-rail-active;
|
|
67
85
|
}
|
|
@@ -70,7 +88,7 @@
|
|
|
70
88
|
position: absolute;
|
|
71
89
|
inset-inline-start: 100%;
|
|
72
90
|
margin-inline-start: calc(var(--spacing) * 3);
|
|
73
|
-
|
|
91
|
+
inset-block-start: 0;
|
|
74
92
|
translate: 0 calc(var(--_thread-rail-inset) + var(--_thread-rail-active-index, 0) * var(--_thread-rail-pitch) - 50%);
|
|
75
93
|
transform-origin: left center;
|
|
76
94
|
scale: 0.98;
|
|
@@ -85,12 +103,17 @@
|
|
|
85
103
|
-webkit-backdrop-filter: blur(var(--cui-thread-rail-popover-backdrop-blur));
|
|
86
104
|
backdrop-filter: blur(var(--cui-thread-rail-popover-backdrop-blur));
|
|
87
105
|
transition:
|
|
88
|
-
|
|
106
|
+
inset-block-start var(--duration-slow) var(--ease-standard),
|
|
89
107
|
translate var(--duration-slow) var(--ease-standard),
|
|
90
108
|
height var(--duration-slow) var(--ease-standard),
|
|
91
109
|
opacity var(--duration-base) var(--ease-standard),
|
|
92
110
|
scale var(--duration-base) var(--ease-standard);
|
|
93
|
-
text-align:
|
|
111
|
+
text-align: start;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where([data-control-family="thread-rail"][data-slot="popover"]:dir(rtl)),
|
|
115
|
+
:where([data-control-family="thread-rail"][data-slot="popover-layer"]:dir(rtl)) {
|
|
116
|
+
transform-origin: right center;
|
|
94
117
|
}
|
|
95
118
|
|
|
96
119
|
@media (hover: hover) and (pointer: fine) {
|
|
@@ -119,9 +142,9 @@
|
|
|
119
142
|
}
|
|
120
143
|
}
|
|
121
144
|
|
|
122
|
-
@supports (
|
|
145
|
+
@supports (inset-block-start: anchor(--_thread-rail-active center)) {
|
|
123
146
|
:where([data-control-family="thread-rail"][data-slot="popover"]) {
|
|
124
|
-
|
|
147
|
+
inset-block-start: anchor(--_thread-rail-active center);
|
|
125
148
|
translate: 0 -50%;
|
|
126
149
|
}
|
|
127
150
|
}
|
|
@@ -130,7 +153,7 @@
|
|
|
130
153
|
padding: calc(var(--spacing) * 3.5);
|
|
131
154
|
position: absolute;
|
|
132
155
|
inset-inline: 0;
|
|
133
|
-
|
|
156
|
+
inset-block-start: 0;
|
|
134
157
|
transform-origin: left center;
|
|
135
158
|
scale: 0.96;
|
|
136
159
|
opacity: 0;
|
|
@@ -55,12 +55,14 @@
|
|
|
55
55
|
font-size: var(--text-label);
|
|
56
56
|
font-weight: var(--font-weight-medium);
|
|
57
57
|
line-height: calc(var(--spacing) * 5);
|
|
58
|
+
text-wrap: balance;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
:where([data-control-family="timeline"][data-slot="description"]) {
|
|
61
62
|
color: var(--muted-foreground);
|
|
62
63
|
font-size: var(--text-label);
|
|
63
64
|
line-height: calc(var(--spacing) * 5);
|
|
65
|
+
text-wrap: pretty;
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
68
|
|