@ctrl-ui/react 0.8.1 → 0.8.4
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/README.md +32 -23
- package/dist/action-bar.d.ts +11 -12
- package/dist/activity.d.ts +24 -25
- package/dist/audio-recorder.d.ts +16 -16
- package/dist/audio-visualizer.d.ts +3 -4
- package/dist/blocks/chat.d.ts +3 -4
- package/dist/blocks/chat.js +6 -3
- package/dist/blocks/coding-agent.d.ts +11 -12
- package/dist/blocks/coding-agent.js +10 -9
- package/dist/blocks/file-explorer-data.d.ts +11 -12
- package/dist/blocks/file-explorer.d.ts +3 -3
- package/dist/blocks/settings-data.d.ts +8 -9
- package/dist/blocks/settings.d.ts +4 -4
- package/dist/blocks/theme-toggle.d.ts +11 -12
- package/dist/blocks/theme-toggle.js +14 -4
- package/dist/chat-composer-attachment.d.ts +20 -21
- package/dist/chat-composer-attachment.js +24 -20
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -6
- package/dist/chat-composer-editor/ghost.d.ts +3 -4
- package/dist/chat-composer-editor/schema.d.ts +2 -3
- package/dist/chat-composer-editor/serialize.d.ts +3 -4
- package/dist/chat-composer-editor/types.d.ts +5 -6
- package/dist/chat-composer-editor.d.ts +2 -3
- package/dist/chat-composer-editor.js +18 -4
- package/dist/chat-composer.d.ts +17 -18
- package/dist/chat-composer.js +14 -8
- package/dist/chat-layout.d.ts +12 -21
- package/dist/chat-layout.js +28 -83
- package/dist/chat-message.d.ts +14 -15
- package/dist/context-model.d.ts +7 -8
- package/dist/context.d.ts +21 -22
- package/dist/control-props.d.ts +10 -11
- package/dist/control-variants.d.ts +6 -7
- package/dist/dynamic-notification-glass.d.ts +3 -4
- package/dist/dynamic-notification-liquid.d.ts +3 -4
- package/dist/dynamic-notification-siri-wave.d.ts +2 -3
- package/dist/dynamic-notification.d.ts +28 -29
- package/dist/email/email.d.ts +6 -7
- package/dist/email/email.js +12 -3
- package/dist/email/length.d.ts +3 -0
- package/dist/email/length.js +34 -0
- package/dist/email/templates.d.ts +7 -8
- package/dist/email/templates.js +5 -5
- package/dist/email/theme.d.ts +16 -5
- package/dist/email/theme.js +21 -6
- package/dist/environment-variables.d.ts +35 -36
- package/dist/extensions/create-track-highlight.d.ts +3 -4
- package/dist/extensions/supports-anchor-transitions.d.ts +2 -3
- package/dist/extensions/track-highlight.d.ts +3 -4
- package/dist/hooks/use-audio-recorder.d.ts +14 -15
- package/dist/hooks/use-chat-composer.d.ts +5 -6
- package/dist/hooks/use-chat-message.d.ts +7 -8
- package/dist/hooks/use-color-area.d.ts +5 -6
- package/dist/hooks/use-copy-to-clipboard.d.ts +7 -8
- package/dist/hooks/use-dropzone.d.ts +11 -12
- package/dist/hooks/use-dynamic-notification.d.ts +6 -7
- package/dist/hooks/use-environment-variables.d.ts +9 -10
- package/dist/hooks/use-keyboard-navigation.d.ts +3 -0
- package/dist/hooks/use-keyboard-navigation.js +22 -0
- package/dist/hooks/use-mobile.d.ts +2 -3
- package/dist/hooks/use-textarea-trigger-menu.d.ts +2 -3
- package/dist/hooks/use-trigger-menu.d.ts +7 -8
- package/dist/hooks/use-user-ask.d.ts +6 -7
- package/dist/inline-attachment.d.ts +16 -17
- package/dist/inline-citation.d.ts +22 -23
- package/dist/knob-contracts/accordion-knobs.d.ts +3 -4
- package/dist/knob-contracts/accordion-knobs.js +1 -0
- package/dist/knob-contracts/action-bar-knobs.d.ts +3 -4
- package/dist/knob-contracts/activity-knobs.d.ts +3 -4
- package/dist/knob-contracts/alert-knobs.d.ts +3 -4
- package/dist/knob-contracts/alert-knobs.js +12 -1
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +3 -4
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +3 -4
- package/dist/knob-contracts/avatar-knobs.d.ts +3 -4
- package/dist/knob-contracts/avatar-knobs.js +2 -1
- package/dist/knob-contracts/badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-group-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.d.ts +3 -4
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/calendar-knobs.d.ts +3 -4
- package/dist/knob-contracts/card-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-attachment-knobs.js +3 -1
- package/dist/knob-contracts/chat-composer-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-composer-knobs.js +1 -0
- package/dist/knob-contracts/chat-layout-knobs.d.ts +3 -4
- package/dist/knob-contracts/chat-layout-knobs.js +2 -3
- package/dist/knob-contracts/chat-message-knobs.d.ts +3 -4
- package/dist/knob-contracts/choice-knobs.d.ts +3 -4
- package/dist/knob-contracts/choice-knobs.js +2 -1
- package/dist/knob-contracts/code-diff-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-diff-knobs.js +1 -0
- package/dist/knob-contracts/code-knobs.d.ts +3 -4
- package/dist/knob-contracts/code-knobs.js +3 -1
- package/dist/knob-contracts/collapsible-knobs.d.ts +3 -4
- package/dist/knob-contracts/color-picker-knobs.d.ts +3 -4
- package/dist/knob-contracts/context-knobs.d.ts +3 -4
- package/dist/knob-contracts/dockable-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/dockable-panel-knobs.js +1 -0
- package/dist/knob-contracts/dropzone-knobs.d.ts +3 -4
- package/dist/knob-contracts/dropzone-knobs.js +1 -0
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.d.ts +3 -4
- package/dist/knob-contracts/empty-knobs.js +14 -1
- package/dist/knob-contracts/environment-variables-knobs.d.ts +3 -4
- package/dist/knob-contracts/environment-variables-knobs.js +2 -1
- package/dist/knob-contracts/field-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.d.ts +3 -4
- package/dist/knob-contracts/gradient-editor-knobs.js +3 -1
- package/dist/knob-contracts/infinite-canvas-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-attachment-knobs.js +2 -1
- package/dist/knob-contracts/inline-citation-knobs.d.ts +3 -4
- package/dist/knob-contracts/inline-citation-knobs.js +1 -0
- package/dist/knob-contracts/item-knobs.d.ts +3 -4
- package/dist/knob-contracts/kbd-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-block-knobs.js +2 -0
- package/dist/knob-contracts/markdown-knobs.d.ts +3 -4
- package/dist/knob-contracts/markdown-knobs.js +1 -0
- package/dist/knob-contracts/morphing-panel-knobs.d.ts +3 -4
- package/dist/knob-contracts/pagination-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.d.ts +3 -4
- package/dist/knob-contracts/phone-input-knobs.js +1 -0
- package/dist/knob-contracts/popup-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.d.ts +3 -4
- package/dist/knob-contracts/progressive-blur-knobs.js +1 -0
- package/dist/knob-contracts/range-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.d.ts +3 -4
- package/dist/knob-contracts/resizable-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +3 -4
- package/dist/knob-contracts/scroll-area-knobs.d.ts +3 -4
- package/dist/knob-contracts/separator-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.d.ts +3 -4
- package/dist/knob-contracts/sidebar-knobs.js +1 -0
- package/dist/knob-contracts/skeleton-knobs.d.ts +3 -4
- package/dist/knob-contracts/skeleton-knobs.js +9 -1
- package/dist/knob-contracts/source-badge-knobs.d.ts +3 -4
- package/dist/knob-contracts/spinner-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.d.ts +3 -4
- package/dist/knob-contracts/stepper-knobs.js +1 -0
- package/dist/knob-contracts/switch-knobs.d.ts +3 -4
- package/dist/knob-contracts/switch-knobs.js +7 -1
- package/dist/knob-contracts/table-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +3 -4
- package/dist/knob-contracts/table-of-contents-knobs.js +25 -0
- package/dist/knob-contracts/tabs-knobs.d.ts +3 -4
- package/dist/knob-contracts/tabs-knobs.js +2 -1
- package/dist/knob-contracts/task-list-knobs.d.ts +3 -4
- package/dist/knob-contracts/task-list-knobs.js +1 -0
- package/dist/knob-contracts/thread-rail-knobs.d.ts +3 -4
- package/dist/knob-contracts/timeline-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.d.ts +3 -4
- package/dist/knob-contracts/toolbar-knobs.js +1 -0
- package/dist/knob-contracts/track-highlight-knobs.d.ts +3 -4
- package/dist/knob-contracts/transcript-divider-knobs.d.ts +3 -4
- package/dist/knob-contracts/tree-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.d.ts +3 -4
- package/dist/knob-contracts/user-ask-knobs.js +1 -0
- package/dist/lib/cn.d.ts +2 -3
- package/dist/lib/code-tokens.d.ts +12 -13
- package/dist/lib/color.d.ts +26 -27
- package/dist/lib/contrast.d.ts +12 -13
- package/dist/lib/diff.d.ts +14 -15
- package/dist/lib/dropzone-validation.d.ts +25 -26
- package/dist/lib/env-file.d.ts +12 -13
- package/dist/lib/format-audio-recorder-duration.d.ts +2 -3
- package/dist/lib/liquid-glass-optics.d.ts +2 -3
- package/dist/lib/phone-input-format.d.ts +3 -4
- package/dist/lib/phone-input-format.js +1 -1
- package/dist/lib/phone-number.d.ts +8 -9
- package/dist/lib/trigger-detect.d.ts +4 -5
- package/dist/markdown-block.d.ts +11 -12
- package/dist/scripts/contrast-eval.d.ts +16 -17
- package/dist/scripts/contrast-eval.js +13 -7
- package/dist/skin-provider.d.ts +14 -0
- package/dist/skin-provider.js +21 -0
- package/dist/skin.d.ts +14 -33
- package/dist/skin.js +3 -46
- package/dist/source-badge.d.ts +7 -8
- package/dist/styles/index.css +2 -4
- package/dist/styles/recipes/accordion.css +8 -2
- package/dist/styles/recipes/action-bar.css +5 -2
- package/dist/styles/recipes/alert.css +95 -16
- package/dist/styles/recipes/avatar.css +17 -1
- package/dist/styles/recipes/badge.css +0 -1
- package/dist/styles/recipes/button.css +34 -8
- package/dist/styles/recipes/calendar.css +0 -6
- package/dist/styles/recipes/chat-composer-attachment.css +51 -53
- package/dist/styles/recipes/chat-composer.css +26 -21
- package/dist/styles/recipes/chat-layout.css +21 -62
- package/dist/styles/recipes/chat-message.css +11 -5
- package/dist/styles/recipes/choice.css +9 -2
- package/dist/styles/recipes/code-diff.css +8 -1
- package/dist/styles/recipes/code.css +39 -17
- package/dist/styles/recipes/collapsible.css +0 -3
- package/dist/styles/recipes/color-picker-details.css +1 -2
- package/dist/styles/recipes/color-picker-values.css +0 -4
- package/dist/styles/recipes/dockable-panel.css +8 -1
- package/dist/styles/recipes/dropzone.css +9 -2
- package/dist/styles/recipes/empty.css +118 -17
- package/dist/styles/recipes/environment-variables.css +8 -1
- package/dist/styles/recipes/field-parts.css +1 -6
- package/dist/styles/recipes/field.css +9 -5
- package/dist/styles/recipes/gradient-editor.css +16 -5
- package/dist/styles/recipes/inline-attachment.css +13 -8
- package/dist/styles/recipes/inline-citation.css +8 -4
- package/dist/styles/recipes/item.css +1 -1
- package/dist/styles/recipes/kbd.css +8 -0
- package/dist/styles/recipes/markdown-block.css +16 -2
- package/dist/styles/recipes/markdown.css +12 -0
- package/dist/styles/recipes/morphing-panel.css +1 -1
- package/dist/styles/recipes/pagination.css +0 -4
- package/dist/styles/recipes/phone-input.css +8 -4
- package/dist/styles/recipes/popup-lists.css +11 -0
- package/dist/styles/recipes/popup-toast.css +1 -29
- package/dist/styles/recipes/popup.css +2 -2
- package/dist/styles/recipes/progressive-blur.css +28 -7
- package/dist/styles/recipes/range.css +50 -1
- package/dist/styles/recipes/resizable.css +8 -10
- package/dist/styles/recipes/rich-tooltip.css +0 -4
- package/dist/styles/recipes/scroll-area.css +8 -2
- package/dist/styles/recipes/sidebar-menu.css +150 -0
- package/dist/styles/recipes/sidebar.css +56 -110
- package/dist/styles/recipes/skeleton.css +85 -3
- package/dist/styles/recipes/source-badge.css +0 -3
- package/dist/styles/recipes/stepper.css +8 -1
- package/dist/styles/recipes/switch.css +89 -17
- package/dist/styles/recipes/table-of-contents.css +211 -45
- package/dist/styles/recipes/table.css +0 -1
- package/dist/styles/recipes/tabs.css +19 -2
- package/dist/styles/recipes/task-list.css +8 -2
- package/dist/styles/recipes/thread-rail.css +0 -4
- package/dist/styles/recipes/toolbar.css +18 -4
- package/dist/styles/recipes/track-highlight.css +63 -5
- package/dist/styles/recipes/tree.css +2 -0
- package/dist/styles/recipes/user-ask.css +8 -4
- package/dist/styles/theme.css +130 -138
- package/dist/surface-variants.d.ts +4 -5
- package/dist/task-list.d.ts +16 -17
- package/dist/thread-rail.d.ts +21 -22
- package/dist/transcript-divider.d.ts +6 -7
- package/dist/ui/accordion.d.ts +10 -11
- package/dist/ui/alert-dialog.d.ts +11 -12
- package/dist/ui/alert-dialog.js +8 -6
- package/dist/ui/alert.d.ts +9 -10
- package/dist/ui/alert.js +3 -3
- package/dist/ui/aspect-ratio.d.ts +3 -4
- package/dist/ui/autocomplete.d.ts +19 -20
- package/dist/ui/autocomplete.js +5 -3
- package/dist/ui/avatar.d.ts +9 -10
- package/dist/ui/badge.d.ts +9 -10
- package/dist/ui/button-group.d.ts +7 -8
- package/dist/ui/button-group.js +3 -2
- package/dist/ui/button.d.ts +17 -18
- package/dist/ui/button.js +20 -5
- package/dist/ui/calendar.d.ts +3 -4
- package/dist/ui/card.d.ts +16 -17
- package/dist/ui/checkbox-group.d.ts +4 -5
- package/dist/ui/checkbox-group.js +3 -2
- package/dist/ui/checkbox.d.ts +3 -4
- package/dist/ui/code-diff.d.ts +8 -9
- package/dist/ui/code.d.ts +32 -23
- package/dist/ui/code.js +41 -20
- package/dist/ui/collapsible.d.ts +7 -8
- package/dist/ui/color-picker.d.ts +40 -41
- package/dist/ui/color-picker.js +5 -3
- package/dist/ui/combobox-disabled-selection.d.ts +3 -4
- package/dist/ui/combobox.d.ts +21 -20
- package/dist/ui/combobox.js +5 -3
- package/dist/ui/command.d.ts +19 -18
- package/dist/ui/command.js +38 -12
- package/dist/ui/context-menu.d.ts +30 -31
- package/dist/ui/context-menu.js +8 -5
- package/dist/ui/dialog.d.ts +13 -13
- package/dist/ui/dialog.js +10 -8
- package/dist/ui/dockable-panel-geometry.d.ts +7 -8
- package/dist/ui/dockable-panel.d.ts +21 -22
- package/dist/ui/drawer.d.ts +17 -18
- package/dist/ui/drawer.js +7 -6
- package/dist/ui/dropdown-menu.d.ts +36 -29
- package/dist/ui/dropdown-menu.js +116 -9
- package/dist/ui/dropzone.d.ts +24 -24
- package/dist/ui/empty.d.ts +14 -14
- package/dist/ui/empty.js +3 -3
- package/dist/ui/field.d.ts +26 -27
- package/dist/ui/form.d.ts +4 -5
- package/dist/ui/gradient-editor.d.ts +16 -17
- package/dist/ui/hover-card.d.ts +6 -7
- package/dist/ui/hover-card.js +5 -3
- package/dist/ui/infinite-canvas.d.ts +11 -12
- package/dist/ui/input-group.d.ts +6 -7
- package/dist/ui/input-otp.d.ts +7 -8
- package/dist/ui/input.d.ts +3 -4
- package/dist/ui/item.d.ts +20 -21
- package/dist/ui/kbd.d.ts +7 -5
- package/dist/ui/kbd.js +4 -2
- package/dist/ui/markdown-elements.d.ts +20 -21
- package/dist/ui/markdown.d.ts +5 -6
- package/dist/ui/menubar.d.ts +25 -26
- package/dist/ui/menubar.js +8 -5
- package/dist/ui/meter.d.ts +11 -12
- package/dist/ui/morphing-panel.d.ts +8 -9
- package/dist/ui/native-select.d.ts +3 -4
- package/dist/ui/native-select.js +1 -1
- package/dist/ui/navigation-menu.d.ts +17 -18
- package/dist/ui/navigation-menu.js +5 -3
- package/dist/ui/number-field.d.ts +15 -16
- package/dist/ui/pagination.d.ts +10 -11
- package/dist/ui/phone-input.d.ts +5 -6
- package/dist/ui/phone-input.js +40 -37
- package/dist/ui/popover.d.ts +11 -12
- package/dist/ui/popover.js +5 -3
- package/dist/ui/progress.d.ts +11 -12
- package/dist/ui/progressive-blur.d.ts +4 -5
- package/dist/ui/radio-group.d.ts +5 -6
- package/dist/ui/resizable.d.ts +12 -13
- package/dist/ui/responsive-dialog.d.ts +11 -12
- package/dist/ui/rich-tooltip-tour.d.ts +5 -6
- package/dist/ui/rich-tooltip.d.ts +21 -23
- package/dist/ui/rich-tooltip.js +5 -5
- package/dist/ui/scroll-area.d.ts +7 -8
- package/dist/ui/scroll-area.js +9 -6
- package/dist/ui/select.d.ts +21 -14
- package/dist/ui/select.js +7 -4
- package/dist/ui/separator.d.ts +2 -3
- package/dist/ui/sheet.d.ts +8 -9
- package/dist/ui/sheet.js +7 -5
- package/dist/ui/sidebar-menu.d.ts +24 -15
- package/dist/ui/sidebar-menu.js +30 -4
- package/dist/ui/sidebar-provider.d.ts +32 -7
- package/dist/ui/sidebar-provider.js +82 -22
- package/dist/ui/sidebar-resize-rail.d.ts +8 -0
- package/dist/ui/sidebar-resize-rail.js +192 -0
- package/dist/ui/sidebar.d.ts +20 -14
- package/dist/ui/sidebar.js +122 -57
- package/dist/ui/skeleton.d.ts +7 -4
- package/dist/ui/skeleton.js +9 -2
- package/dist/ui/slider.d.ts +6 -5
- package/dist/ui/slider.js +16 -13
- package/dist/ui/spinner.d.ts +3 -4
- package/dist/ui/stepper.d.ts +22 -23
- package/dist/ui/switch.d.ts +3 -4
- package/dist/ui/switch.js +12 -1
- package/dist/ui/table-of-contents.d.ts +7 -8
- package/dist/ui/table-of-contents.js +4 -2
- package/dist/ui/table.d.ts +17 -18
- package/dist/ui/tabs.d.ts +14 -11
- package/dist/ui/textarea.d.ts +3 -4
- package/dist/ui/timeline.d.ts +18 -19
- package/dist/ui/toast.d.ts +9 -9
- package/dist/ui/toast.js +21 -14
- package/dist/ui/toggle.d.ts +5 -6
- package/dist/ui/toggle.js +3 -2
- package/dist/ui/toolbar.d.ts +15 -16
- package/dist/ui/toolbar.js +15 -4
- package/dist/ui/tooltip.d.ts +6 -13
- package/dist/ui/tooltip.js +7 -8
- package/dist/ui/tree.d.ts +18 -19
- package/dist/ui/tree.js +3 -2
- package/dist/ui/trigger-menu.d.ts +15 -16
- package/dist/ui/trigger-menu.js +5 -3
- package/dist/ui/use-switch-drag.d.ts +7 -0
- package/dist/ui/use-switch-drag.js +104 -0
- package/dist/user-ask.d.ts +24 -25
- package/package.json +15 -15
- package/dist/code-block-editor.d.ts +0 -59
- package/dist/code-block-editor.js +0 -250
- package/dist/knob-contracts/code-block-editor-knobs.d.ts +0 -5
- package/dist/knob-contracts/code-block-editor-knobs.js +0 -11
- package/dist/lib/code-block-shiki.d.ts +0 -9
- package/dist/lib/code-block-shiki.js +0 -6
- package/dist/skin.config.d.ts +0 -5
- package/dist/skin.config.js +0 -12
- package/dist/styles/recipes/code-block-editor.css +0 -136
- package/dist/styles/skin-theme.css +0 -137
- package/dist/styles/skin.css +0 -143
|
@@ -1,72 +1,87 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="table-of-contents"][data-slot="root"]) {
|
|
3
|
-
--cui-table-of-contents-
|
|
4
|
-
--cui-table-of-contents-
|
|
5
|
-
--cui-table-of-contents-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
font-
|
|
3
|
+
--cui-table-of-contents-background: var(--card);
|
|
4
|
+
--cui-table-of-contents-border-color: var(--border);
|
|
5
|
+
--cui-table-of-contents-border-width: 1px;
|
|
6
|
+
--cui-table-of-contents-radius: var(--radius-panel);
|
|
7
|
+
--cui-table-of-contents-shadow: var(--shadow-sm);
|
|
8
|
+
--cui-table-of-contents-backdrop-filter: none;
|
|
9
|
+
--cui-table-of-contents-padding: calc(var(--spacing) * 4);
|
|
10
|
+
--cui-table-of-contents-label-foreground: var(--muted-foreground);
|
|
11
|
+
--cui-table-of-contents-label-font-size: var(--text-caption);
|
|
12
|
+
--cui-table-of-contents-label-font-weight: var(--font-weight-medium);
|
|
13
|
+
--cui-table-of-contents-label-gap: calc(var(--spacing) * 3);
|
|
14
|
+
--cui-table-of-contents-item-foreground: var(--muted-foreground);
|
|
15
|
+
--cui-table-of-contents-item-hover-foreground: var(--foreground);
|
|
16
|
+
--cui-table-of-contents-item-active-foreground: var(--foreground);
|
|
17
|
+
--cui-table-of-contents-item-font-size: var(--text-body);
|
|
18
|
+
--cui-table-of-contents-item-line-height: var(--leading-normal);
|
|
19
|
+
--cui-table-of-contents-item-font-weight: var(--font-weight-normal);
|
|
20
|
+
--cui-table-of-contents-item-root-font-weight: var(--font-weight-medium);
|
|
21
|
+
--cui-table-of-contents-item-padding-block: calc(var(--spacing) * 1.5);
|
|
22
|
+
--cui-table-of-contents-item-padding-inline: calc(var(--spacing) * 3);
|
|
23
|
+
--cui-table-of-contents-item-indent: calc(var(--spacing) * 2);
|
|
24
|
+
--cui-table-of-contents-rail-background: var(--border);
|
|
25
|
+
--cui-table-of-contents-rail-width: 1px;
|
|
26
|
+
--cui-table-of-contents-trail-background: var(--foreground);
|
|
27
|
+
--cui-table-of-contents-trail-width: 2px;
|
|
28
|
+
--cui-table-of-contents-trail-radius: var(--cui-table-of-contents-trail-width);
|
|
29
|
+
--cui-table-of-contents-highlight-radius: var(--radius-popup-item);
|
|
30
|
+
--cui-table-of-contents-highlight-background: var(--active-fill);
|
|
31
|
+
border: var(--cui-table-of-contents-border-width) solid var(--cui-table-of-contents-border-color);
|
|
32
|
+
border-radius: var(--cui-table-of-contents-radius);
|
|
33
|
+
background-color: var(--cui-table-of-contents-background);
|
|
34
|
+
box-shadow: var(--cui-table-of-contents-shadow);
|
|
35
|
+
-webkit-backdrop-filter: var(--cui-table-of-contents-backdrop-filter);
|
|
36
|
+
backdrop-filter: var(--cui-table-of-contents-backdrop-filter);
|
|
37
|
+
padding: var(--cui-table-of-contents-padding);
|
|
38
|
+
font-size: var(--cui-table-of-contents-item-font-size);
|
|
39
|
+
line-height: var(--cui-table-of-contents-item-line-height);
|
|
13
40
|
}
|
|
14
41
|
|
|
15
42
|
:where([data-control-family="table-of-contents"][data-slot="label"]) {
|
|
16
|
-
margin-block-end:
|
|
17
|
-
color: var(--
|
|
18
|
-
font-size: var(--
|
|
19
|
-
font-weight: var(--font-weight
|
|
43
|
+
margin-block-end: var(--cui-table-of-contents-label-gap);
|
|
44
|
+
color: var(--cui-table-of-contents-label-foreground);
|
|
45
|
+
font-size: var(--cui-table-of-contents-label-font-size);
|
|
46
|
+
font-weight: var(--cui-table-of-contents-label-font-weight);
|
|
20
47
|
}
|
|
21
48
|
|
|
22
49
|
:where([data-control-family="table-of-contents"][data-slot="rail"]) {
|
|
50
|
+
inline-size: var(--cui-table-of-contents-rail-width);
|
|
23
51
|
background-color: var(--cui-table-of-contents-rail-background);
|
|
24
52
|
}
|
|
25
53
|
|
|
26
54
|
:where([data-control-family="table-of-contents"][data-slot="item"]) {
|
|
27
|
-
padding-block:
|
|
28
|
-
padding-inline
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="2"]) {
|
|
42
|
-
padding-inline-start: calc(var(--spacing) * 7);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="3"]) {
|
|
46
|
-
padding-inline-start: calc(var(--spacing) * 9);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="4"]) {
|
|
50
|
-
padding-inline-start: calc(var(--spacing) * 11);
|
|
55
|
+
padding-block: var(--cui-table-of-contents-item-padding-block);
|
|
56
|
+
padding-inline: var(--cui-table-of-contents-item-padding-inline);
|
|
57
|
+
padding-inline-start: calc(
|
|
58
|
+
var(--cui-table-of-contents-item-padding-inline) +
|
|
59
|
+
var(--_toc-depth) *
|
|
60
|
+
var(--cui-table-of-contents-item-indent)
|
|
61
|
+
);
|
|
62
|
+
color: var(--cui-table-of-contents-item-foreground);
|
|
63
|
+
font-size: var(--cui-table-of-contents-item-font-size);
|
|
64
|
+
font-weight: var(--cui-table-of-contents-item-font-weight);
|
|
65
|
+
line-height: var(--cui-table-of-contents-item-line-height);
|
|
66
|
+
overflow-wrap: anywhere;
|
|
51
67
|
}
|
|
52
68
|
|
|
53
69
|
:where([data-control-family="table-of-contents"][data-slot="item"][data-depth="0"]) {
|
|
54
|
-
|
|
55
|
-
font-weight: var(--font-weight-medium);
|
|
70
|
+
font-weight: var(--cui-table-of-contents-item-root-font-weight);
|
|
56
71
|
}
|
|
57
72
|
|
|
58
73
|
@media (hover: hover) {
|
|
59
74
|
:where([data-control-family="table-of-contents"][data-slot="item"]:hover) {
|
|
60
|
-
color: var(--foreground);
|
|
75
|
+
color: var(--cui-table-of-contents-item-hover-foreground);
|
|
61
76
|
}
|
|
62
77
|
}
|
|
63
78
|
|
|
64
79
|
:where([data-control-family="table-of-contents"][data-slot="item"]:focus-visible) {
|
|
65
|
-
color: var(--foreground);
|
|
80
|
+
color: var(--cui-table-of-contents-item-hover-foreground);
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
:where([data-control-family="table-of-contents"][data-slot="item"][data-active]) {
|
|
69
|
-
color: var(--foreground);
|
|
84
|
+
color: var(--cui-table-of-contents-item-active-foreground);
|
|
70
85
|
}
|
|
71
86
|
|
|
72
87
|
:where([data-control-family="table-of-contents"][data-slot="root"] [data-control-family="track-highlight"][data-slot="root"]) {
|
|
@@ -83,17 +98,168 @@
|
|
|
83
98
|
}
|
|
84
99
|
|
|
85
100
|
:where([data-control-family="table-of-contents"][data-slot="trail"]) {
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
inline-size: var(--cui-table-of-contents-trail-width);
|
|
102
|
+
border-radius: var(--cui-table-of-contents-trail-radius);
|
|
103
|
+
background-color: var(--cui-table-of-contents-trail-background);
|
|
88
104
|
}
|
|
89
105
|
}
|
|
90
106
|
|
|
107
|
+
@property --cui-table-of-contents-background {
|
|
108
|
+
syntax: "<color>";
|
|
109
|
+
inherits: true;
|
|
110
|
+
initial-value: transparent;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@property --cui-table-of-contents-border-color {
|
|
114
|
+
syntax: "<color>";
|
|
115
|
+
inherits: true;
|
|
116
|
+
initial-value: transparent;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@property --cui-table-of-contents-border-width {
|
|
120
|
+
syntax: "<length>";
|
|
121
|
+
inherits: true;
|
|
122
|
+
initial-value: 0px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@property --cui-table-of-contents-radius {
|
|
126
|
+
syntax: "<length-percentage>";
|
|
127
|
+
inherits: true;
|
|
128
|
+
initial-value: 0px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@property --cui-table-of-contents-shadow {
|
|
132
|
+
syntax: "*";
|
|
133
|
+
inherits: true;
|
|
134
|
+
initial-value: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@property --cui-table-of-contents-backdrop-filter {
|
|
138
|
+
syntax: "*";
|
|
139
|
+
inherits: true;
|
|
140
|
+
initial-value: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@property --cui-table-of-contents-padding {
|
|
144
|
+
syntax: "<length-percentage>";
|
|
145
|
+
inherits: true;
|
|
146
|
+
initial-value: 0px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@property --cui-table-of-contents-label-foreground {
|
|
150
|
+
syntax: "<color>";
|
|
151
|
+
inherits: true;
|
|
152
|
+
initial-value: transparent;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@property --cui-table-of-contents-label-font-size {
|
|
156
|
+
syntax: "<length-percentage>";
|
|
157
|
+
inherits: true;
|
|
158
|
+
initial-value: 1rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@property --cui-table-of-contents-label-font-weight {
|
|
162
|
+
syntax: "<number>";
|
|
163
|
+
inherits: true;
|
|
164
|
+
initial-value: 400;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@property --cui-table-of-contents-label-gap {
|
|
168
|
+
syntax: "<length-percentage>";
|
|
169
|
+
inherits: true;
|
|
170
|
+
initial-value: 0px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@property --cui-table-of-contents-item-foreground {
|
|
174
|
+
syntax: "<color>";
|
|
175
|
+
inherits: true;
|
|
176
|
+
initial-value: transparent;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@property --cui-table-of-contents-item-hover-foreground {
|
|
180
|
+
syntax: "<color>";
|
|
181
|
+
inherits: true;
|
|
182
|
+
initial-value: transparent;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@property --cui-table-of-contents-item-active-foreground {
|
|
186
|
+
syntax: "<color>";
|
|
187
|
+
inherits: true;
|
|
188
|
+
initial-value: transparent;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@property --cui-table-of-contents-item-font-size {
|
|
192
|
+
syntax: "<length-percentage>";
|
|
193
|
+
inherits: true;
|
|
194
|
+
initial-value: 1rem;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@property --cui-table-of-contents-item-line-height {
|
|
198
|
+
syntax: "<number>";
|
|
199
|
+
inherits: true;
|
|
200
|
+
initial-value: 1.5;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@property --cui-table-of-contents-item-font-weight {
|
|
204
|
+
syntax: "<number>";
|
|
205
|
+
inherits: true;
|
|
206
|
+
initial-value: 400;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@property --cui-table-of-contents-item-root-font-weight {
|
|
210
|
+
syntax: "<number>";
|
|
211
|
+
inherits: true;
|
|
212
|
+
initial-value: 400;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@property --cui-table-of-contents-item-padding-block {
|
|
216
|
+
syntax: "<length-percentage>";
|
|
217
|
+
inherits: true;
|
|
218
|
+
initial-value: 0px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@property --cui-table-of-contents-item-padding-inline {
|
|
222
|
+
syntax: "<length-percentage>";
|
|
223
|
+
inherits: true;
|
|
224
|
+
initial-value: 0px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@property --cui-table-of-contents-item-indent {
|
|
228
|
+
syntax: "<length>";
|
|
229
|
+
inherits: true;
|
|
230
|
+
initial-value: 0px;
|
|
231
|
+
}
|
|
232
|
+
|
|
91
233
|
@property --cui-table-of-contents-rail-background {
|
|
92
234
|
syntax: "<color>";
|
|
93
235
|
inherits: true;
|
|
94
236
|
initial-value: transparent;
|
|
95
237
|
}
|
|
96
238
|
|
|
239
|
+
@property --cui-table-of-contents-rail-width {
|
|
240
|
+
syntax: "<length>";
|
|
241
|
+
inherits: true;
|
|
242
|
+
initial-value: 0px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@property --cui-table-of-contents-trail-background {
|
|
246
|
+
syntax: "<color>";
|
|
247
|
+
inherits: true;
|
|
248
|
+
initial-value: transparent;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@property --cui-table-of-contents-trail-width {
|
|
252
|
+
syntax: "<length>";
|
|
253
|
+
inherits: true;
|
|
254
|
+
initial-value: 0px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@property --cui-table-of-contents-trail-radius {
|
|
258
|
+
syntax: "<length-percentage>";
|
|
259
|
+
inherits: true;
|
|
260
|
+
initial-value: 0px;
|
|
261
|
+
}
|
|
262
|
+
|
|
97
263
|
@property --cui-table-of-contents-highlight-radius {
|
|
98
264
|
syntax: "<length-percentage>";
|
|
99
265
|
inherits: true;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
--cui-tabs-active-foreground: var(--foreground);
|
|
15
15
|
--cui-tabs-indicator-shadow: var(--shadow-sm);
|
|
16
16
|
--cui-tabs-border-color: var(--border);
|
|
17
|
+
--cui-tabs-border-width: 1px;
|
|
17
18
|
}
|
|
18
19
|
:where([data-control-family="tabs"][data-slot="list"]) {
|
|
19
20
|
--_tabs-trigger-radius-fit: min(var(--cui-tabs-trigger-radius), calc(var(--_tabs-trigger-h) / 2));
|
|
@@ -51,6 +52,17 @@
|
|
|
51
52
|
box-shadow var(--duration-fast) var(--ease-standard);
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
:where([data-control-family="tabs"][data-slot="list"][data-orientation="vertical"]) {
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: stretch;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where([data-control-family="tabs"][data-slot="list"][data-orientation="vertical"] [data-slot="indicator"]) {
|
|
61
|
+
top: 0;
|
|
62
|
+
height: var(--active-tab-height);
|
|
63
|
+
transform: translate(var(--active-tab-left), var(--active-tab-top));
|
|
64
|
+
}
|
|
65
|
+
|
|
54
66
|
:where([data-control-family="tabs"][data-slot="tab"]) {
|
|
55
67
|
position: relative;
|
|
56
68
|
z-index: 1;
|
|
@@ -68,7 +80,6 @@
|
|
|
68
80
|
font-size: var(--text-label);
|
|
69
81
|
font-weight: var(--font-weight-medium);
|
|
70
82
|
outline: none;
|
|
71
|
-
transition: color var(--duration-fast) var(--ease-standard);
|
|
72
83
|
}
|
|
73
84
|
|
|
74
85
|
:where([data-control-family="tabs"][data-slot="tab"]:hover) {
|
|
@@ -111,7 +122,7 @@
|
|
|
111
122
|
content: "";
|
|
112
123
|
position: absolute;
|
|
113
124
|
inset: 0 var(--_tabs-trigger-radius-fit);
|
|
114
|
-
border:
|
|
125
|
+
border: var(--cui-tabs-border-width) solid var(--cui-tabs-border-color);
|
|
115
126
|
border-bottom: none;
|
|
116
127
|
border-radius: var(--_tabs-trigger-radius-fit) var(--_tabs-trigger-radius-fit) 0 0;
|
|
117
128
|
background: var(--cui-tabs-indicator-background);
|
|
@@ -233,3 +244,9 @@
|
|
|
233
244
|
inherits: true;
|
|
234
245
|
initial-value: transparent;
|
|
235
246
|
}
|
|
247
|
+
|
|
248
|
+
@property --cui-tabs-border-width {
|
|
249
|
+
syntax: "<length>";
|
|
250
|
+
inherits: true;
|
|
251
|
+
initial-value: 0px;
|
|
252
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
:where([data-control-family="task-list"][data-slot="root"]) {
|
|
3
3
|
--cui-task-list-background: oklch(from var(--card) l c h / 0.9);
|
|
4
4
|
--cui-task-list-border-color: var(--border);
|
|
5
|
+
--cui-task-list-border-width: 1px;
|
|
5
6
|
--cui-task-list-foreground: var(--foreground);
|
|
6
7
|
--cui-task-list-radius: var(--radius-field);
|
|
7
8
|
--cui-task-list-shadow: var(--shadow-md);
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
--cui-task-list-indicator-foreground: oklch(from var(--muted-foreground) l c h / 0.7);
|
|
10
11
|
--cui-task-list-item-foreground: var(--foreground);
|
|
11
12
|
--cui-task-list-item-pending-foreground: var(--muted-foreground);
|
|
12
|
-
border:
|
|
13
|
+
border: var(--cui-task-list-border-width) solid var(--cui-task-list-border-color);
|
|
13
14
|
border-radius: var(--cui-task-list-radius);
|
|
14
15
|
background: var(--cui-task-list-background);
|
|
15
16
|
color: var(--cui-task-list-foreground);
|
|
@@ -25,7 +26,6 @@
|
|
|
25
26
|
padding-inline: calc(var(--spacing) * 3);
|
|
26
27
|
padding-block: calc(var(--spacing) * 2);
|
|
27
28
|
font-size: var(--text-sm);
|
|
28
|
-
transition: background-color var(--duration-fast) var(--ease-standard);
|
|
29
29
|
text-align: left;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -116,6 +116,12 @@
|
|
|
116
116
|
initial-value: transparent;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
@property --cui-task-list-border-width {
|
|
120
|
+
syntax: "<length>";
|
|
121
|
+
inherits: true;
|
|
122
|
+
initial-value: 0px;
|
|
123
|
+
}
|
|
124
|
+
|
|
119
125
|
@property --cui-task-list-shadow {
|
|
120
126
|
syntax: "*";
|
|
121
127
|
inherits: true;
|
|
@@ -27,10 +27,6 @@
|
|
|
27
27
|
border-radius: var(--cui-thread-rail-line-radius);
|
|
28
28
|
background: oklch(from var(--foreground) l c h / 0.2);
|
|
29
29
|
outline: none;
|
|
30
|
-
transition:
|
|
31
|
-
width var(--duration-base) var(--ease-standard),
|
|
32
|
-
background-color var(--duration-base) var(--ease-standard),
|
|
33
|
-
box-shadow var(--duration-base) var(--ease-standard);
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
:where([data-control-family="thread-rail"][data-slot="item"][data-in-view] [data-control-family="thread-rail"][data-slot="line"]) {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--cui-toolbar-background: oklch(from var(--card) l c h / 0.72);
|
|
9
9
|
--cui-toolbar-foreground: var(--foreground);
|
|
10
10
|
--cui-toolbar-border-color: var(--border);
|
|
11
|
+
--cui-toolbar-border-width: 1px;
|
|
11
12
|
--cui-toolbar-shadow: var(--shadow-sm);
|
|
12
13
|
--cui-toolbar-item-radius: min(var(--radius-sm), calc(var(--control-h-sm) / 2));
|
|
13
14
|
--cui-toolbar-item-background: transparent;
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
--cui-toolbar-item-active-background: var(--active-fill);
|
|
19
20
|
--cui-toolbar-item-active-foreground: var(--foreground);
|
|
20
21
|
--cui-toolbar-separator-background: var(--border);
|
|
21
|
-
border:
|
|
22
|
+
border: var(--cui-toolbar-border-width) solid var(--cui-toolbar-border-color);
|
|
22
23
|
padding: var(--cui-toolbar-padding);
|
|
23
24
|
border-radius: var(--cui-toolbar-radius);
|
|
24
25
|
background-color: var(--cui-toolbar-background);
|
|
@@ -27,6 +28,16 @@
|
|
|
27
28
|
gap: calc(var(--spacing) * 1);
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
:where([data-control-family="toolbar"][data-slot="root"][data-variant="floating"]) {
|
|
32
|
+
--cui-toolbar-background: transparent;
|
|
33
|
+
--cui-toolbar-border-color: transparent;
|
|
34
|
+
--cui-toolbar-shadow: none;
|
|
35
|
+
--cui-toolbar-item-foreground: var(--foreground);
|
|
36
|
+
position: relative;
|
|
37
|
+
isolation: isolate;
|
|
38
|
+
border-width: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
:where([data-control-family="toolbar"][data-slot="root"][data-variant="inverse"]) {
|
|
31
42
|
--cui-toolbar-background: var(--foreground);
|
|
32
43
|
--cui-toolbar-foreground: var(--background);
|
|
@@ -52,9 +63,6 @@
|
|
|
52
63
|
box-shadow: var(--cui-toolbar-item-shadow);
|
|
53
64
|
color: var(--cui-toolbar-item-foreground);
|
|
54
65
|
font-weight: var(--font-weight-medium);
|
|
55
|
-
transition-property: background-color, color, box-shadow;
|
|
56
|
-
transition-duration: var(--duration-fast);
|
|
57
|
-
transition-timing-function: var(--ease-standard);
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
:where([data-control-family="toolbar"][data-slot="group"]) {
|
|
@@ -201,6 +209,12 @@
|
|
|
201
209
|
initial-value: transparent;
|
|
202
210
|
}
|
|
203
211
|
|
|
212
|
+
@property --cui-toolbar-border-width {
|
|
213
|
+
syntax: "<length>";
|
|
214
|
+
inherits: true;
|
|
215
|
+
initial-value: 0px;
|
|
216
|
+
}
|
|
217
|
+
|
|
204
218
|
@property --cui-toolbar-shadow {
|
|
205
219
|
syntax: "*";
|
|
206
220
|
inherits: true;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--_track-highlight-opacity: 0;
|
|
5
5
|
border-radius: var(--cui-track-highlight-radius);
|
|
6
6
|
opacity: var(--_track-highlight-opacity);
|
|
7
|
-
transition-property: top, left, right, bottom, width, height, opacity
|
|
7
|
+
transition-property: top, left, right, bottom, width, height, opacity;
|
|
8
8
|
transition-duration: var(--cui-track-highlight-transition-duration);
|
|
9
9
|
transition-timing-function: var(--ease-emphasized);
|
|
10
10
|
}
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
--cui-track-highlight-ring-color: oklch(from var(--foreground) l c h / 0.05);
|
|
17
17
|
--cui-track-highlight-shadow: var(--shadow-sm);
|
|
18
18
|
--cui-track-highlight-transition-duration: var(--duration-fast);
|
|
19
|
-
|
|
19
|
+
--_track-highlight-fill: var(--cui-track-highlight-background);
|
|
20
|
+
background: var(--_track-highlight-fill);
|
|
20
21
|
box-shadow:
|
|
21
22
|
0 0 0 1px var(--cui-track-highlight-ring-color),
|
|
22
23
|
var(--cui-track-highlight-shadow);
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
|
|
25
26
|
:where([data-control-family="track-highlight"][data-slot="root"][data-hover]),
|
|
26
27
|
:where([data-track="hover"] > [data-control-family="track-highlight"][data-slot="root"]) {
|
|
27
|
-
--
|
|
28
|
+
--_track-highlight-fill: var(--cui-track-highlight-hover-background);
|
|
28
29
|
--cui-track-highlight-ring-color: transparent;
|
|
29
30
|
--cui-track-highlight-shadow: none;
|
|
30
31
|
}
|
|
@@ -33,6 +34,11 @@
|
|
|
33
34
|
background: var(--cui-track-highlight-hover-background);
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
:where([data-track="hover"] > [data-control-family="track-highlight"]),
|
|
38
|
+
:where([data-control-family="track-highlight"][data-slot="hover"]) {
|
|
39
|
+
transition: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
:where([data-control-family="track-highlight"][data-slot="root"][data-visible]),
|
|
37
43
|
:where([data-control-family="track-highlight"][data-slot="hover"][data-visible]) {
|
|
38
44
|
--_track-highlight-opacity: 1;
|
|
@@ -57,6 +63,58 @@
|
|
|
57
63
|
--cui-track-highlight-radius: var(--radius-control);
|
|
58
64
|
}
|
|
59
65
|
|
|
66
|
+
:where([data-control-family="button-group"][data-track="hover"]) {
|
|
67
|
+
--_button-group-leading-cap: 0;
|
|
68
|
+
--_button-group-trailing-cap: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (hover: hover) {
|
|
72
|
+
:where([data-control-family="button-group"][data-track="hover"]:has(> :first-child:hover)) {
|
|
73
|
+
--_button-group-leading-cap: 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:where(
|
|
77
|
+
[data-control-family="button-group"][data-track="hover"]:has(
|
|
78
|
+
> :nth-last-child(1 of :not([data-control-family="track-highlight"])):hover
|
|
79
|
+
)
|
|
80
|
+
) {
|
|
81
|
+
--_button-group-trailing-cap: 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where([data-control-family="button-group"][data-track="hover"]:has(:focus-visible)) {
|
|
86
|
+
--_button-group-leading-cap: 0;
|
|
87
|
+
--_button-group-trailing-cap: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:where([data-control-family="button-group"][data-track="hover"]:has(> :first-child:is(:focus-visible, :has(:focus-visible)))) {
|
|
91
|
+
--_button-group-leading-cap: 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where(
|
|
95
|
+
[data-control-family="button-group"][data-track="hover"]:has(
|
|
96
|
+
> :nth-last-child(1 of :not([data-control-family="track-highlight"])):is(:focus-visible, :has(:focus-visible))
|
|
97
|
+
)
|
|
98
|
+
) {
|
|
99
|
+
--_button-group-trailing-cap: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:where(
|
|
103
|
+
[data-control-family="button-group"][data-track="hover"][data-orientation="horizontal"] > [data-control-family="track-highlight"]
|
|
104
|
+
) {
|
|
105
|
+
border-start-start-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-leading-cap));
|
|
106
|
+
border-end-start-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-leading-cap));
|
|
107
|
+
border-start-end-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-trailing-cap));
|
|
108
|
+
border-end-end-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-trailing-cap));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:where([data-control-family="button-group"][data-track="hover"][data-orientation="vertical"] > [data-control-family="track-highlight"]) {
|
|
112
|
+
border-start-start-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-leading-cap));
|
|
113
|
+
border-start-end-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-leading-cap));
|
|
114
|
+
border-end-start-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-trailing-cap));
|
|
115
|
+
border-end-end-radius: calc(var(--cui-track-highlight-radius) * var(--_button-group-trailing-cap));
|
|
116
|
+
}
|
|
117
|
+
|
|
60
118
|
@supports ((anchor-name: --cui-track) and (anchor-scope: --cui-track)) {
|
|
61
119
|
:where([data-track]:has(> [data-control-family="track-highlight"])) {
|
|
62
120
|
anchor-scope: --cui-track-active, --cui-track-hover, --cui-track-focus;
|
|
@@ -120,7 +178,7 @@
|
|
|
120
178
|
):not(:has(:focus-visible, [data-track] [data-track-item]:hover))
|
|
121
179
|
> [data-control-family="track-highlight"][data-positioning="anchor"]:not([data-measured])
|
|
122
180
|
) {
|
|
123
|
-
--
|
|
181
|
+
--_track-highlight-fill: var(--cui-track-highlight-hover-background);
|
|
124
182
|
--cui-track-highlight-ring-color: transparent;
|
|
125
183
|
--cui-track-highlight-shadow: none;
|
|
126
184
|
}
|
|
@@ -155,7 +213,7 @@
|
|
|
155
213
|
):not(:has([data-track] :focus-visible))
|
|
156
214
|
> [data-control-family="track-highlight"][data-positioning="anchor"]:not([data-measured])
|
|
157
215
|
) {
|
|
158
|
-
--
|
|
216
|
+
--_track-highlight-fill: var(--cui-track-highlight-hover-background);
|
|
159
217
|
--cui-track-highlight-ring-color: transparent;
|
|
160
218
|
--cui-track-highlight-shadow: none;
|
|
161
219
|
}
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
:where([data-control-family="tree"][data-slot="root"] > [data-control-family="track-highlight"]) {
|
|
19
19
|
--cui-track-highlight-radius: var(--cui-tree-item-trigger-radius);
|
|
20
|
+
--cui-track-highlight-background: var(--cui-tree-item-trigger-selected-background);
|
|
21
|
+
--cui-track-highlight-hover-background: var(--cui-tree-item-trigger-hover-background);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
:where([data-control-family="tree"][data-slot="item-trigger"]) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
:where([data-control-family="user-ask"][data-slot="root"]) {
|
|
3
3
|
--cui-user-ask-background: oklch(from var(--card) l c h / 0.9);
|
|
4
4
|
--cui-user-ask-border-color: var(--border);
|
|
5
|
+
--cui-user-ask-border-width: 1px;
|
|
5
6
|
--cui-user-ask-foreground: var(--foreground);
|
|
6
7
|
--cui-user-ask-radius: var(--radius-field);
|
|
7
8
|
--cui-user-ask-shadow: var(--shadow-md);
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
--cui-user-ask-option-hover-background: oklch(from var(--muted) l c h / 0.5);
|
|
13
14
|
--cui-user-ask-option-radius: var(--radius-popup-item);
|
|
14
15
|
--cui-user-ask-option-selected-background: oklch(from var(--muted) l c h / 0.7);
|
|
15
|
-
border:
|
|
16
|
+
border: var(--cui-user-ask-border-width) solid var(--cui-user-ask-border-color);
|
|
16
17
|
border-radius: var(--cui-user-ask-radius);
|
|
17
18
|
background: var(--cui-user-ask-background);
|
|
18
19
|
color: var(--cui-user-ask-foreground);
|
|
@@ -61,9 +62,6 @@
|
|
|
61
62
|
padding-block: calc(var(--spacing) * 1.5);
|
|
62
63
|
border-radius: var(--cui-user-ask-option-radius);
|
|
63
64
|
font-size: var(--text-sm);
|
|
64
|
-
transition-property: background-color, box-shadow;
|
|
65
|
-
transition-duration: var(--duration-fast);
|
|
66
|
-
transition-timing-function: var(--ease-standard);
|
|
67
65
|
text-align: left;
|
|
68
66
|
}
|
|
69
67
|
|
|
@@ -156,6 +154,12 @@
|
|
|
156
154
|
initial-value: transparent;
|
|
157
155
|
}
|
|
158
156
|
|
|
157
|
+
@property --cui-user-ask-border-width {
|
|
158
|
+
syntax: "<length>";
|
|
159
|
+
inherits: true;
|
|
160
|
+
initial-value: 0px;
|
|
161
|
+
}
|
|
162
|
+
|
|
159
163
|
@property --cui-user-ask-shadow {
|
|
160
164
|
syntax: "*";
|
|
161
165
|
inherits: true;
|