@ctrl-ui/react 0.8.7 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-bar.d.ts +15 -7
- package/dist/action-bar.js +39 -19
- package/dist/activity.js +7 -15
- package/dist/audio-recorder.d.ts +14 -4
- package/dist/audio-recorder.js +82 -29
- package/dist/audio-visualizer.js +1 -1
- package/dist/blocks/coding-agent.js +39 -39
- package/dist/blocks/design-canvas.d.ts +5 -1
- package/dist/blocks/design-canvas.js +198 -92
- package/dist/blocks/discussion.d.ts +28 -0
- package/dist/blocks/discussion.js +67 -0
- package/dist/blocks/file-explorer-data.d.ts +1 -0
- package/dist/blocks/file-explorer-data.js +4 -1
- package/dist/blocks/file-explorer.d.ts +9 -1
- package/dist/blocks/file-explorer.js +461 -192
- package/dist/blocks/settings.d.ts +2 -1
- package/dist/blocks/settings.js +101 -79
- package/dist/blocks/team-chat.d.ts +12 -0
- package/dist/blocks/team-chat.js +26 -0
- package/dist/blocks/theme-toggle.js +23 -31
- package/dist/chat-composer-attachment.d.ts +4 -1
- package/dist/chat-composer-attachment.js +35 -10
- package/dist/chat-composer-editor/extensions/mention.d.ts +5 -1
- package/dist/chat-composer-editor/extensions/mention.js +59 -28
- package/dist/chat-composer-editor/ghost.js +2 -4
- package/dist/chat-composer-editor/types.d.ts +5 -0
- package/dist/chat-composer-editor.d.ts +1 -1
- package/dist/chat-composer-editor.js +57 -30
- package/dist/chat-composer.d.ts +13 -32
- package/dist/chat-composer.js +52 -12
- package/dist/chat-layout.d.ts +19 -0
- package/dist/chat-layout.js +91 -40
- package/dist/chat-message/social.d.ts +26 -0
- package/dist/chat-message/social.js +122 -0
- package/dist/chat-message.d.ts +28 -29
- package/dist/chat-message.js +106 -25
- package/dist/context.d.ts +2 -2
- package/dist/context.js +38 -23
- package/dist/dynamic-notification-canvas-loop.d.ts +24 -0
- package/dist/dynamic-notification-canvas-loop.js +113 -0
- package/dist/dynamic-notification-glass.js +23 -114
- package/dist/dynamic-notification-liquid.js +14 -118
- package/dist/dynamic-notification.d.ts +16 -8
- package/dist/dynamic-notification.js +85 -22
- package/dist/email/email-brand.d.ts +7 -4
- package/dist/email/email-brand.js +9 -6
- package/dist/email/email-code.d.ts +3 -2
- package/dist/email/email-code.js +11 -9
- package/dist/email/email-footer.d.ts +5 -3
- package/dist/email/email-footer.js +11 -5
- package/dist/email/email.d.ts +31 -9
- package/dist/email/email.js +50 -26
- package/dist/email/templates.d.ts +10 -9
- package/dist/email/templates.js +102 -38
- package/dist/email/theme.js +1 -1
- package/dist/environment-variables.d.ts +4 -2
- package/dist/environment-variables.js +52 -32
- package/dist/filter-bar/editor.js +20 -8
- package/dist/filter-bar/model.d.ts +1 -0
- package/dist/filter-bar/model.js +10 -1
- package/dist/filter-bar/motion.js +4 -4
- package/dist/filter-bar/parts.js +19 -8
- package/dist/filter-bar/types.d.ts +1 -0
- package/dist/filter-bar.js +19 -13
- package/dist/hooks/use-audio-recorder.js +12 -6
- package/dist/hooks/use-chat-composer.d.ts +19 -7
- package/dist/hooks/use-chat-composer.js +32 -5
- package/dist/hooks/use-chat-message.d.ts +28 -2
- package/dist/hooks/use-chat-message.js +41 -10
- package/dist/hooks/use-chat-thread-scroll.js +43 -7
- package/dist/hooks/use-color-area.d.ts +3 -3
- package/dist/hooks/use-color-area.js +13 -12
- package/dist/hooks/use-copy-to-clipboard.d.ts +2 -1
- package/dist/hooks/use-copy-to-clipboard.js +20 -20
- package/dist/hooks/use-dynamic-notification.d.ts +6 -2
- package/dist/hooks/use-dynamic-notification.js +26 -10
- package/dist/hooks/use-mobile.d.ts +3 -2
- package/dist/hooks/use-mobile.js +8 -4
- package/dist/hooks/use-textarea-trigger-menu.js +2 -1
- package/dist/hooks/use-trigger-menu.d.ts +54 -0
- package/dist/hooks/use-trigger-menu.js +102 -47
- package/dist/hooks/use-user-ask.d.ts +2 -0
- package/dist/hooks/use-user-ask.js +35 -41
- package/dist/inline-attachment.d.ts +6 -2
- package/dist/inline-attachment.js +36 -15
- package/dist/inline-citation.d.ts +12 -5
- package/dist/inline-citation.js +25 -16
- package/dist/knob-contracts/audio-recorder-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-recorder-knobs.js +2 -1
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-visualizer-knobs.js +2 -1
- package/dist/knob-contracts/avatar-knobs.d.ts +1 -1
- package/dist/knob-contracts/avatar-knobs.js +6 -1
- package/dist/knob-contracts/badge-knobs.d.ts +1 -1
- package/dist/knob-contracts/badge-knobs.js +2 -1
- package/dist/knob-contracts/breadcrumb-knobs.d.ts +4 -0
- package/dist/knob-contracts/breadcrumb-knobs.js +8 -0
- package/dist/knob-contracts/button-knobs.d.ts +1 -1
- package/dist/knob-contracts/button-knobs.js +1 -0
- package/dist/knob-contracts/chat-message-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-message-knobs.js +8 -1
- package/dist/knob-contracts/code-diff-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-diff-knobs.js +2 -0
- package/dist/knob-contracts/code-knobs.d.ts +1 -1
- package/dist/knob-contracts/code-knobs.js +2 -1
- package/dist/knob-contracts/dynamic-notification-knobs.d.ts +1 -1
- package/dist/knob-contracts/dynamic-notification-knobs.js +2 -0
- package/dist/knob-contracts/emoji-picker-knobs.d.ts +4 -0
- package/dist/knob-contracts/emoji-picker-knobs.js +10 -0
- package/dist/knob-contracts/field-knobs.d.ts +1 -1
- package/dist/knob-contracts/field-knobs.js +5 -1
- package/dist/knob-contracts/filter-bar-knobs.d.ts +1 -1
- package/dist/knob-contracts/filter-bar-knobs.js +1 -2
- package/dist/knob-contracts/markdown-knobs.d.ts +1 -1
- package/dist/knob-contracts/markdown-knobs.js +3 -1
- package/dist/knob-contracts/page-layout-knobs.d.ts +1 -1
- package/dist/knob-contracts/page-layout-knobs.js +2 -1
- package/dist/knob-contracts/popup-knobs.d.ts +1 -1
- package/dist/knob-contracts/popup-knobs.js +27 -0
- package/dist/knob-contracts/range-knobs.d.ts +1 -1
- package/dist/knob-contracts/range-knobs.js +1 -0
- package/dist/knob-contracts/rich-tooltip-knobs.d.ts +1 -1
- package/dist/knob-contracts/rich-tooltip-knobs.js +2 -1
- package/dist/knob-contracts/sidebar-knobs.d.ts +1 -1
- package/dist/knob-contracts/sidebar-knobs.js +27 -2
- package/dist/knob-contracts/spinner-knobs.d.ts +1 -1
- package/dist/knob-contracts/spinner-knobs.js +1 -1
- package/dist/knob-contracts/stepper-knobs.d.ts +1 -1
- package/dist/knob-contracts/stepper-knobs.js +4 -1
- package/dist/knob-contracts/switch-knobs.d.ts +1 -1
- package/dist/knob-contracts/switch-knobs.js +5 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +1 -1
- package/dist/knob-contracts/table-of-contents-knobs.js +2 -1
- package/dist/knob-contracts/tabs-knobs.d.ts +1 -1
- package/dist/knob-contracts/tabs-knobs.js +1 -0
- package/dist/knob-contracts/tree-knobs.d.ts +1 -1
- package/dist/knob-contracts/tree-knobs.js +2 -1
- package/dist/lib/cn.js +0 -4
- package/dist/lib/contrast.d.ts +1 -0
- package/dist/lib/contrast.js +17 -5
- package/dist/lib/dropzone-validation.js +41 -28
- package/dist/lib/env-file.d.ts +1 -1
- package/dist/lib/env-file.js +5 -5
- package/dist/lib/motion.d.ts +4 -0
- package/dist/lib/motion.js +15 -0
- package/dist/lib/trigger-detect.js +6 -8
- package/dist/markdown-block.js +2 -1
- package/dist/popup-parts.d.ts +8 -0
- package/dist/popup-parts.js +43 -0
- package/dist/source-badge.js +3 -1
- package/dist/styles/code.css +0 -2
- package/dist/styles/effects.css +6 -32
- package/dist/styles/index.css +10 -5
- package/dist/styles/recipes/accordion.css +9 -6
- package/dist/styles/recipes/action-bar.css +0 -15
- package/dist/styles/recipes/activity.css +5 -11
- package/dist/styles/recipes/alert.css +4 -4
- package/dist/styles/recipes/audio-recorder.css +15 -3
- package/dist/styles/recipes/audio-visualizer.css +13 -2
- package/dist/styles/recipes/avatar.css +78 -1
- package/dist/styles/recipes/badge.css +14 -4
- package/dist/styles/recipes/breadcrumb.css +77 -0
- package/dist/styles/recipes/button-group.css +5 -7
- package/dist/styles/recipes/button-states.css +66 -0
- package/dist/styles/recipes/button.css +24 -83
- package/dist/styles/recipes/calendar.css +17 -23
- package/dist/styles/recipes/card.css +2 -2
- package/dist/styles/recipes/chat-composer-attachment.css +9 -3
- package/dist/styles/recipes/chat-composer.css +7 -10
- package/dist/styles/recipes/chat-layout.css +35 -0
- package/dist/styles/recipes/chat-message-social.css +123 -0
- package/dist/styles/recipes/chat-message.css +157 -37
- package/dist/styles/recipes/choice.css +18 -21
- package/dist/styles/recipes/code-diff.css +46 -33
- package/dist/styles/recipes/code.css +36 -16
- package/dist/styles/recipes/collapsible.css +7 -2
- package/dist/styles/recipes/color-picker-details.css +3 -4
- package/dist/styles/recipes/color-picker-values.css +9 -8
- package/dist/styles/recipes/color-picker.css +11 -2
- package/dist/styles/recipes/context.css +3 -3
- package/dist/styles/recipes/dockable-panel.css +7 -4
- package/dist/styles/recipes/dropzone.css +7 -8
- package/dist/styles/recipes/dynamic-notification-input.css +8 -5
- package/dist/styles/recipes/dynamic-notification-motion.css +12 -21
- package/dist/styles/recipes/dynamic-notification.css +40 -26
- package/dist/styles/recipes/emoji-picker.css +132 -0
- package/dist/styles/recipes/empty.css +5 -4
- package/dist/styles/recipes/environment-variables.css +4 -15
- package/dist/styles/recipes/field-parts.css +30 -24
- package/dist/styles/recipes/field.css +61 -26
- package/dist/styles/recipes/filter-bar.css +18 -31
- package/dist/styles/recipes/gradient-editor.css +18 -7
- package/dist/styles/recipes/infinite-canvas.css +0 -1
- package/dist/styles/recipes/inline-attachment.css +3 -3
- package/dist/styles/recipes/inline-citation.css +10 -4
- package/dist/styles/recipes/item.css +23 -9
- package/dist/styles/recipes/markdown-block.css +5 -4
- package/dist/styles/recipes/markdown.css +68 -26
- package/dist/styles/recipes/morphing-panel.css +8 -8
- package/dist/styles/recipes/page-layout.css +20 -12
- package/dist/styles/recipes/pagination.css +4 -5
- package/dist/styles/recipes/phone-input.css +12 -8
- package/dist/styles/recipes/popup-controls.css +166 -33
- package/dist/styles/recipes/popup-drawer.css +3 -14
- package/dist/styles/recipes/popup-lists.css +128 -27
- package/dist/styles/recipes/popup-motion.css +4 -45
- package/dist/styles/recipes/popup-toast.css +55 -26
- package/dist/styles/recipes/popup.css +139 -141
- package/dist/styles/recipes/range.css +54 -18
- package/dist/styles/recipes/resizable.css +2 -7
- package/dist/styles/recipes/rich-tooltip.css +24 -34
- package/dist/styles/recipes/scroll-area.css +8 -1
- package/dist/styles/recipes/sidebar-menu.css +166 -34
- package/dist/styles/recipes/sidebar-parts.css +192 -0
- package/dist/styles/recipes/sidebar.css +188 -128
- package/dist/styles/recipes/source-badge.css +1 -1
- package/dist/styles/recipes/spinner.css +8 -1
- package/dist/styles/recipes/stepper.css +31 -13
- package/dist/styles/recipes/switch.css +68 -23
- package/dist/styles/recipes/table-of-contents.css +9 -1
- package/dist/styles/recipes/table.css +14 -10
- package/dist/styles/recipes/tabs.css +17 -12
- package/dist/styles/recipes/task-list.css +7 -14
- package/dist/styles/recipes/thread-rail.css +42 -19
- package/dist/styles/recipes/timeline.css +2 -0
- package/dist/styles/recipes/toolbar.css +27 -25
- package/dist/styles/recipes/track-highlight.css +10 -7
- package/dist/styles/recipes/tree.css +31 -4
- package/dist/styles/recipes/user-ask-details.css +0 -1
- package/dist/styles/recipes/user-ask.css +4 -4
- package/dist/styles/theme.css +37 -16
- package/dist/task-list.d.ts +4 -1
- package/dist/task-list.js +24 -8
- package/dist/thread-rail.d.ts +1 -1
- package/dist/thread-rail.js +61 -19
- package/dist/transcript-divider.js +2 -1
- package/dist/ui/alert.d.ts +3 -1
- package/dist/ui/alert.js +14 -8
- package/dist/ui/autocomplete.js +3 -1
- package/dist/ui/avatar.d.ts +8 -0
- package/dist/ui/avatar.js +23 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.ts +27 -0
- package/dist/ui/breadcrumb.js +88 -0
- package/dist/ui/button.d.ts +2 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/calendar.js +2 -2
- package/dist/ui/card.d.ts +3 -1
- package/dist/ui/card.js +12 -7
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/code-diff.d.ts +1 -1
- package/dist/ui/code-diff.js +71 -27
- package/dist/ui/code.d.ts +5 -3
- package/dist/ui/code.js +26 -27
- package/dist/ui/color-picker.d.ts +5 -2
- package/dist/ui/color-picker.js +84 -36
- package/dist/ui/combobox-disabled-selection.d.ts +1 -2
- package/dist/ui/combobox-disabled-selection.js +7 -9
- package/dist/ui/combobox.js +13 -5
- package/dist/ui/command.d.ts +8 -2
- package/dist/ui/command.js +30 -14
- package/dist/ui/context-menu.js +3 -0
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +3 -22
- package/dist/ui/dockable-panel-geometry.d.ts +1 -0
- package/dist/ui/dockable-panel-geometry.js +7 -1
- package/dist/ui/dockable-panel.d.ts +9 -6
- package/dist/ui/dockable-panel.js +63 -23
- package/dist/ui/dropdown-menu.js +4 -3
- package/dist/ui/dropzone.d.ts +2 -2
- package/dist/ui/dropzone.js +75 -16
- package/dist/ui/emoji-picker.d.ts +18 -0
- package/dist/ui/emoji-picker.js +136 -0
- package/dist/ui/empty.d.ts +3 -1
- package/dist/ui/empty.js +12 -7
- package/dist/ui/gradient-editor.d.ts +1 -1
- package/dist/ui/gradient-editor.js +37 -21
- package/dist/ui/infinite-canvas.d.ts +3 -2
- package/dist/ui/infinite-canvas.js +63 -19
- package/dist/ui/input-group.d.ts +0 -3
- package/dist/ui/input-group.js +3 -13
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.js +32 -15
- package/dist/ui/input.js +4 -4
- package/dist/ui/item.d.ts +2 -1
- package/dist/ui/item.js +11 -7
- package/dist/ui/live-status.d.ts +7 -0
- package/dist/ui/live-status.js +17 -0
- package/dist/ui/markdown-elements.d.ts +6 -0
- package/dist/ui/markdown-elements.js +31 -1
- package/dist/ui/menubar.js +2 -2
- package/dist/ui/morphing-panel.js +2 -1
- package/dist/ui/native-select.d.ts +1 -1
- package/dist/ui/native-select.js +24 -11
- package/dist/ui/page-layout.d.ts +2 -2
- package/dist/ui/page-layout.js +2 -4
- package/dist/ui/pagination.d.ts +7 -5
- package/dist/ui/pagination.js +19 -13
- package/dist/ui/phone-input.d.ts +1 -0
- package/dist/ui/phone-input.js +56 -58
- package/dist/ui/radio-group.d.ts +2 -0
- package/dist/ui/resizable.d.ts +3 -2
- package/dist/ui/resizable.js +5 -3
- package/dist/ui/responsive-dialog.d.ts +1 -1
- package/dist/ui/responsive-dialog.js +4 -21
- package/dist/ui/rich-tooltip.d.ts +10 -4
- package/dist/ui/rich-tooltip.js +81 -33
- package/dist/ui/scroll-area.d.ts +1 -1
- package/dist/ui/scroll-area.js +43 -28
- package/dist/ui/sidebar-menu.d.ts +5 -1
- package/dist/ui/sidebar-menu.js +34 -34
- package/dist/ui/sidebar-provider.d.ts +10 -1
- package/dist/ui/sidebar-provider.js +38 -13
- package/dist/ui/sidebar-resize-rail.js +7 -3
- package/dist/ui/sidebar.d.ts +11 -6
- package/dist/ui/sidebar.js +48 -24
- package/dist/ui/slider.js +31 -22
- package/dist/ui/spinner.d.ts +3 -2
- package/dist/ui/spinner.js +3 -2
- package/dist/ui/stepper.d.ts +8 -1
- package/dist/ui/stepper.js +74 -25
- package/dist/ui/switch.d.ts +1 -0
- package/dist/ui/table-of-contents.d.ts +2 -2
- package/dist/ui/table-of-contents.js +20 -8
- package/dist/ui/table.js +4 -2
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.js +20 -9
- package/dist/ui/timeline.d.ts +3 -1
- package/dist/ui/timeline.js +17 -9
- package/dist/ui/toast.d.ts +11 -5
- package/dist/ui/toast.js +100 -54
- package/dist/ui/toolbar.d.ts +2 -1
- package/dist/ui/toolbar.js +3 -1
- package/dist/ui/tooltip.js +3 -20
- package/dist/ui/tree.js +120 -80
- package/dist/ui/trigger-menu.js +1 -0
- package/dist/user-ask.d.ts +10 -5
- package/dist/user-ask.js +31 -11
- package/package.json +5 -1
- package/dist/hooks/use-keyboard-navigation.d.ts +0 -3
- package/dist/hooks/use-keyboard-navigation.js +0 -22
|
@@ -5,10 +5,43 @@
|
|
|
5
5
|
--cui-sidebar-inset-background: var(--background);
|
|
6
6
|
--cui-sidebar-inset-background-image: none;
|
|
7
7
|
--cui-sidebar-inset-shadow: var(--shadow-sm);
|
|
8
|
+
--cui-sidebar-inset-border-color: var(--sidebar-border);
|
|
9
|
+
--cui-sidebar-inset-border-width: 0px;
|
|
10
|
+
--cui-sidebar-inset-radius: var(--radius-xl);
|
|
11
|
+
--cui-sidebar-inset-inset: calc(var(--spacing) * 2);
|
|
12
|
+
--cui-sidebar-skip-link-background: var(--background);
|
|
13
|
+
--cui-sidebar-skip-link-foreground: var(--foreground);
|
|
14
|
+
--cui-sidebar-skip-link-radius: var(--radius-control);
|
|
15
|
+
--cui-sidebar-skip-link-shadow: var(--shadow-md);
|
|
8
16
|
background-color: var(--cui-sidebar-wrapper-background);
|
|
9
17
|
background-image: var(--cui-sidebar-wrapper-background-image);
|
|
10
18
|
}
|
|
11
19
|
|
|
20
|
+
:where([data-control-family="sidebar"][data-slot="skip-link"]) {
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset-block-start: calc(var(--spacing) * 3);
|
|
23
|
+
inset-inline-start: calc(var(--spacing) * 3);
|
|
24
|
+
z-index: var(--z-popup);
|
|
25
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
26
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
27
|
+
border-radius: var(--cui-sidebar-skip-link-radius);
|
|
28
|
+
background-color: var(--cui-sidebar-skip-link-background);
|
|
29
|
+
color: var(--cui-sidebar-skip-link-foreground);
|
|
30
|
+
box-shadow: var(--cui-sidebar-skip-link-shadow);
|
|
31
|
+
font-size: var(--text-body);
|
|
32
|
+
font-weight: var(--font-weight-medium);
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([data-control-family="sidebar"][data-slot="skip-link"]:not(:focus)) {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
inline-size: 1px;
|
|
39
|
+
block-size: 1px;
|
|
40
|
+
padding: 0;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
clip-path: inset(50%);
|
|
43
|
+
}
|
|
44
|
+
|
|
12
45
|
:where([data-control-family="sidebar"][data-slot="wrapper"]:has([data-control-family="sidebar"][data-variant="inset"][data-state])) {
|
|
13
46
|
--cui-sidebar-wrapper-background: var(--sidebar);
|
|
14
47
|
}
|
|
@@ -25,16 +58,33 @@
|
|
|
25
58
|
--cui-sidebar-inner-border-width: 0px;
|
|
26
59
|
--cui-sidebar-inner-radius: 0px;
|
|
27
60
|
--cui-sidebar-inner-shadow: none;
|
|
61
|
+
--cui-sidebar-header-background: transparent;
|
|
62
|
+
--cui-sidebar-header-shadow: 0 0 transparent;
|
|
28
63
|
--cui-sidebar-rail-divider-background: transparent;
|
|
29
64
|
--cui-sidebar-group-label-foreground: oklch(from var(--sidebar-foreground) l c h / 0.7);
|
|
65
|
+
--cui-sidebar-group-label-font-size: var(--text-caption);
|
|
66
|
+
--cui-sidebar-group-label-font-weight: 500;
|
|
67
|
+
--cui-sidebar-group-label-letter-spacing: 0em;
|
|
68
|
+
--cui-sidebar-group-label-text-transform: none;
|
|
69
|
+
--cui-sidebar-group-label-padding: 0px calc(var(--spacing) * 2);
|
|
70
|
+
--cui-sidebar-menu-button-height: var(--control-h-md);
|
|
71
|
+
--cui-sidebar-menu-button-padding-block: 0px;
|
|
72
|
+
--cui-sidebar-menu-button-padding-inline: calc(var(--sidebar-width-icon) / 2 - var(--spacing) * 4);
|
|
73
|
+
--cui-sidebar-menu-button-font-size: var(--text-body);
|
|
74
|
+
--cui-sidebar-menu-button-font-weight: 400;
|
|
75
|
+
--cui-sidebar-menu-button-active-font-weight: 500;
|
|
30
76
|
--cui-sidebar-menu-button-radius: var(--radius-popup-item);
|
|
31
77
|
--cui-sidebar-menu-button-foreground: var(--sidebar-foreground);
|
|
78
|
+
--cui-sidebar-menu-badge-height: calc(var(--spacing) * 5);
|
|
79
|
+
--cui-sidebar-menu-badge-background: oklch(from var(--sidebar-foreground) l c h / 0.08);
|
|
80
|
+
--cui-sidebar-menu-badge-foreground: var(--sidebar-foreground);
|
|
32
81
|
--cui-sidebar-menu-button-hover-background: var(--hover-fill);
|
|
33
82
|
--cui-sidebar-menu-button-hover-foreground: var(--foreground);
|
|
34
83
|
--cui-sidebar-menu-button-hover-shadow: 0 0 transparent;
|
|
35
84
|
--cui-sidebar-menu-button-active-background: var(--active-fill);
|
|
36
85
|
--cui-sidebar-menu-button-active-shadow: 0 0 transparent;
|
|
37
86
|
--cui-sidebar-menu-button-active-foreground: var(--foreground);
|
|
87
|
+
--cui-sidebar-menu-button-track-active-foreground: var(--foreground);
|
|
38
88
|
background-color: var(--sidebar);
|
|
39
89
|
color: var(--sidebar-foreground);
|
|
40
90
|
}
|
|
@@ -46,6 +96,7 @@
|
|
|
46
96
|
|
|
47
97
|
:where([data-control-family="sidebar"][data-slot="gap"]) {
|
|
48
98
|
background-color: transparent;
|
|
99
|
+
transition: width var(--duration-base) var(--ease-standard);
|
|
49
100
|
}
|
|
50
101
|
|
|
51
102
|
:where([data-control-family="sidebar"][data-slot="root"][data-variant="sidebar"][data-side="left"] [data-slot="container"]) {
|
|
@@ -79,132 +130,11 @@
|
|
|
79
130
|
}
|
|
80
131
|
|
|
81
132
|
:where([data-control-family="sidebar"][data-slot="root"][data-variant="floating"][data-state]) {
|
|
82
|
-
--cui-sidebar-inner-border-width:
|
|
133
|
+
--cui-sidebar-inner-border-width: var(--control-rim-width);
|
|
83
134
|
--cui-sidebar-inner-radius: var(--radius-panel);
|
|
84
135
|
--cui-sidebar-inner-shadow: var(--shadow-md);
|
|
85
136
|
}
|
|
86
137
|
|
|
87
|
-
:where([data-control-family="sidebar"][data-slot="rail"]) {
|
|
88
|
-
inline-size: calc(var(--spacing) * 4);
|
|
89
|
-
background-image: linear-gradient(var(--cui-sidebar-rail-divider-background), var(--cui-sidebar-rail-divider-background));
|
|
90
|
-
background-position: center;
|
|
91
|
-
background-repeat: no-repeat;
|
|
92
|
-
background-size: 2px 100%;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:where([data-control-family="sidebar"][data-collapsible="offcanvas"] [data-slot="rail"]) {
|
|
96
|
-
background-position: right;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@media (hover: hover) {
|
|
100
|
-
:where([data-control-family="sidebar"][data-slot="rail"]:hover) {
|
|
101
|
-
--cui-sidebar-rail-divider-background: var(--sidebar-border);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:where([data-control-family="sidebar"][data-collapsible="offcanvas"] [data-slot="rail"]:not([data-resizable]):hover) {
|
|
105
|
-
background-color: var(--sidebar);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
:where([data-control-family="sidebar"][data-slot="rail"][data-resizable]) {
|
|
110
|
-
inline-size: calc(var(--spacing) * 2);
|
|
111
|
-
background: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:where([data-control-family="sidebar"][data-slot="rail"][data-resizable])::after {
|
|
115
|
-
content: "";
|
|
116
|
-
position: absolute;
|
|
117
|
-
inset-block: 12.5%;
|
|
118
|
-
inset-inline-start: 50%;
|
|
119
|
-
inline-size: 1px;
|
|
120
|
-
background-image: linear-gradient(transparent, var(--cui-sidebar-rail-divider-background), transparent);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
:where([data-control-family="sidebar"][data-slot="rail"]:is(:focus-visible, [data-resizing="true"])) {
|
|
124
|
-
--cui-sidebar-rail-divider-background: var(--ring);
|
|
125
|
-
outline: none;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:where([data-control-family="sidebar"][data-slot="inset"]) {
|
|
129
|
-
background-color: var(--cui-sidebar-inset-background);
|
|
130
|
-
background-image: var(--cui-sidebar-inset-background-image);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@media (width >= 64rem) {
|
|
134
|
-
:where(
|
|
135
|
-
[data-control-family="sidebar"][data-slot="root"][data-variant="inset"][data-state]
|
|
136
|
-
~ [data-control-family="sidebar"][data-slot="inset"]
|
|
137
|
-
) {
|
|
138
|
-
margin: calc(var(--spacing) * 2);
|
|
139
|
-
margin-inline-start: 0;
|
|
140
|
-
border-radius: var(--radius-xl);
|
|
141
|
-
box-shadow: var(--cui-sidebar-inset-shadow);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
:where(
|
|
145
|
-
[data-control-family="sidebar"][data-slot="root"][data-variant="inset"][data-state="collapsed"]
|
|
146
|
-
~ [data-control-family="sidebar"][data-slot="inset"]
|
|
147
|
-
) {
|
|
148
|
-
margin-inline-start: calc(var(--spacing) * 2);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
:where([data-control-family="sidebar"][data-slot="header"]),
|
|
153
|
-
:where([data-control-family="sidebar"][data-slot="footer"]) {
|
|
154
|
-
gap: calc(var(--spacing) * 2);
|
|
155
|
-
padding: calc(var(--spacing) * 2);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
:where([data-control-family="sidebar"][data-slot="content-stack"]) {
|
|
159
|
-
gap: calc(var(--spacing) * 2);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
:where([data-control-family="sidebar"][data-slot="group"]) {
|
|
163
|
-
padding: calc(var(--spacing) * 2);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
:where([data-control-family="sidebar"][data-slot="menu"]) {
|
|
167
|
-
gap: calc(var(--spacing) * 1);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
:where([data-control-family="sidebar"][data-slot="menu"][data-submenu]) {
|
|
171
|
-
margin-block: calc(var(--spacing) * 1);
|
|
172
|
-
margin-inline-start: calc(var(--spacing) * 3);
|
|
173
|
-
padding-inline-start: calc(var(--spacing) * 2);
|
|
174
|
-
border-inline-start: 1px solid var(--sidebar-border);
|
|
175
|
-
width: auto;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
:where([data-control-family="sidebar"]:is([data-slot="group-label"], [data-slot="menu-button"])[aria-expanded] > [data-slot="chevron"]) {
|
|
179
|
-
margin-inline-start: auto;
|
|
180
|
-
transition: rotate var(--duration-base) var(--ease-standard);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
:where([data-control-family="sidebar"][aria-expanded="true"] > [data-slot="chevron"]) {
|
|
184
|
-
rotate: 90deg;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:where([data-control-family="sidebar"][data-slot="group-label"][aria-expanded]) {
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
width: 100%;
|
|
190
|
-
text-align: start;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@media (pointer: coarse) {
|
|
194
|
-
:where([data-control-family="sidebar"]:is([data-slot="menu-button"], [data-slot="group-label"][aria-expanded])) {
|
|
195
|
-
min-block-size: 44px;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
:where([data-control-family="button"][data-sidebar-trigger]) {
|
|
199
|
-
min-inline-size: 44px;
|
|
200
|
-
min-block-size: 44px;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
:where([data-control-family="sidebar"][data-slot="menu"]:is([data-indicator="hover"], [data-indicator="slide"])) {
|
|
205
|
-
gap: 0;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
138
|
:where([data-control-family="sidebar"][data-slot="menu-track"] > [data-control-family="track-highlight"]) {
|
|
209
139
|
--cui-track-highlight-radius: var(--cui-sidebar-menu-button-radius);
|
|
210
140
|
}
|
|
@@ -231,12 +161,6 @@
|
|
|
231
161
|
inherits: true;
|
|
232
162
|
}
|
|
233
163
|
|
|
234
|
-
@property --cui-sidebar-menu-button-radius {
|
|
235
|
-
syntax: "<length-percentage>";
|
|
236
|
-
inherits: true;
|
|
237
|
-
initial-value: 0px;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
164
|
@property --cui-sidebar-inner-background {
|
|
241
165
|
syntax: "<color>";
|
|
242
166
|
inherits: true;
|
|
@@ -277,6 +201,17 @@
|
|
|
277
201
|
inherits: true;
|
|
278
202
|
}
|
|
279
203
|
|
|
204
|
+
@property --cui-sidebar-header-background {
|
|
205
|
+
syntax: "<color>";
|
|
206
|
+
inherits: true;
|
|
207
|
+
initial-value: transparent;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@property --cui-sidebar-header-shadow {
|
|
211
|
+
syntax: "*";
|
|
212
|
+
inherits: true;
|
|
213
|
+
}
|
|
214
|
+
|
|
280
215
|
@property --cui-sidebar-inset-background {
|
|
281
216
|
syntax: "<color>";
|
|
282
217
|
inherits: true;
|
|
@@ -293,6 +228,36 @@
|
|
|
293
228
|
inherits: true;
|
|
294
229
|
}
|
|
295
230
|
|
|
231
|
+
@property --cui-sidebar-inset-border-color {
|
|
232
|
+
syntax: "<color>";
|
|
233
|
+
inherits: true;
|
|
234
|
+
initial-value: transparent;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@property --cui-sidebar-inset-border-width {
|
|
238
|
+
syntax: "<length>";
|
|
239
|
+
inherits: true;
|
|
240
|
+
initial-value: 0px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@property --cui-sidebar-inset-radius {
|
|
244
|
+
syntax: "<length-percentage>";
|
|
245
|
+
inherits: true;
|
|
246
|
+
initial-value: 0px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@property --cui-sidebar-inset-inset {
|
|
250
|
+
syntax: "<length-percentage>";
|
|
251
|
+
inherits: true;
|
|
252
|
+
initial-value: 0px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@property --cui-sidebar-menu-button-radius {
|
|
256
|
+
syntax: "<length-percentage>";
|
|
257
|
+
inherits: true;
|
|
258
|
+
initial-value: 0px;
|
|
259
|
+
}
|
|
260
|
+
|
|
296
261
|
@property --cui-sidebar-group-label-foreground {
|
|
297
262
|
syntax: "<color>";
|
|
298
263
|
inherits: true;
|
|
@@ -338,3 +303,98 @@
|
|
|
338
303
|
syntax: "*";
|
|
339
304
|
inherits: true;
|
|
340
305
|
}
|
|
306
|
+
|
|
307
|
+
@property --cui-sidebar-menu-button-track-active-foreground {
|
|
308
|
+
syntax: "<color>";
|
|
309
|
+
inherits: true;
|
|
310
|
+
initial-value: transparent;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@property --cui-sidebar-menu-button-height {
|
|
314
|
+
syntax: "<length-percentage>";
|
|
315
|
+
inherits: true;
|
|
316
|
+
initial-value: 0px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@property --cui-sidebar-menu-button-padding-block {
|
|
320
|
+
syntax: "<length-percentage>";
|
|
321
|
+
inherits: true;
|
|
322
|
+
initial-value: 0px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@property --cui-sidebar-menu-button-padding-inline {
|
|
326
|
+
syntax: "<length-percentage>";
|
|
327
|
+
inherits: true;
|
|
328
|
+
initial-value: 0px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@property --cui-sidebar-menu-button-font-size {
|
|
332
|
+
syntax: "<length-percentage>";
|
|
333
|
+
inherits: true;
|
|
334
|
+
initial-value: 1rem;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@property --cui-sidebar-menu-button-font-weight {
|
|
338
|
+
syntax: "<number>";
|
|
339
|
+
inherits: true;
|
|
340
|
+
initial-value: 400;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@property --cui-sidebar-menu-button-active-font-weight {
|
|
344
|
+
syntax: "<number>";
|
|
345
|
+
inherits: true;
|
|
346
|
+
initial-value: 500;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@property --cui-sidebar-group-label-font-size {
|
|
350
|
+
syntax: "<length-percentage>";
|
|
351
|
+
inherits: true;
|
|
352
|
+
initial-value: 1rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
@property --cui-sidebar-group-label-font-weight {
|
|
356
|
+
syntax: "<number>";
|
|
357
|
+
inherits: true;
|
|
358
|
+
initial-value: 500;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
@property --cui-sidebar-group-label-letter-spacing {
|
|
362
|
+
syntax: "<length>";
|
|
363
|
+
inherits: true;
|
|
364
|
+
initial-value: 0em;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
@property --cui-sidebar-group-label-text-transform {
|
|
368
|
+
syntax: "none | uppercase | lowercase | capitalize";
|
|
369
|
+
inherits: true;
|
|
370
|
+
initial-value: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@property --cui-sidebar-group-label-padding {
|
|
374
|
+
syntax: "<length-percentage>+";
|
|
375
|
+
inherits: true;
|
|
376
|
+
initial-value: 0px;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@property --cui-sidebar-skip-link-background {
|
|
380
|
+
syntax: "<color>";
|
|
381
|
+
inherits: true;
|
|
382
|
+
initial-value: transparent;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
@property --cui-sidebar-skip-link-foreground {
|
|
386
|
+
syntax: "<color>";
|
|
387
|
+
inherits: true;
|
|
388
|
+
initial-value: transparent;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@property --cui-sidebar-skip-link-radius {
|
|
392
|
+
syntax: "<length-percentage>";
|
|
393
|
+
inherits: true;
|
|
394
|
+
initial-value: 0px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@property --cui-sidebar-skip-link-shadow {
|
|
398
|
+
syntax: "*";
|
|
399
|
+
inherits: true;
|
|
400
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="spinner"][data-slot="root"]) {
|
|
3
3
|
--cui-spinner-foreground: var(--muted-foreground);
|
|
4
|
+
--cui-spinner-animation-duration: var(--duration-loop);
|
|
4
5
|
color: var(--cui-spinner-foreground);
|
|
5
6
|
}
|
|
6
7
|
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
:where([data-control-family="spinner"][data-slot="indicator"]) {
|
|
12
13
|
inline-size: calc(var(--spacing) * 4);
|
|
13
14
|
block-size: calc(var(--spacing) * 4);
|
|
14
|
-
animation: spin
|
|
15
|
+
animation: cui-spin var(--cui-spinner-animation-duration) linear infinite;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
:where([data-control-family="spinner"][data-slot="indicator"][data-size="xs"]) {
|
|
@@ -35,3 +36,9 @@
|
|
|
35
36
|
inherits: true;
|
|
36
37
|
initial-value: transparent;
|
|
37
38
|
}
|
|
39
|
+
|
|
40
|
+
@property --cui-spinner-animation-duration {
|
|
41
|
+
syntax: "<time>";
|
|
42
|
+
inherits: true;
|
|
43
|
+
initial-value: 0s;
|
|
44
|
+
}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="stepper"][data-slot="root"]) {
|
|
3
|
+
--cui-stepper-indicator-size: calc(var(--spacing) * 8);
|
|
3
4
|
--cui-stepper-indicator-radius: 9999px;
|
|
4
5
|
--cui-stepper-indicator-background: var(--background);
|
|
5
6
|
--cui-stepper-indicator-foreground: var(--muted-foreground);
|
|
6
7
|
--cui-stepper-indicator-border-color: var(--border);
|
|
7
|
-
--cui-stepper-indicator-border-width:
|
|
8
|
+
--cui-stepper-indicator-border-width: var(--control-rim-width);
|
|
9
|
+
--cui-stepper-indicator-current-border-width: 2px;
|
|
8
10
|
--cui-stepper-separator-background: var(--border);
|
|
9
11
|
--cui-stepper-title-foreground: var(--foreground);
|
|
12
|
+
--cui-stepper-title-current-font-weight: var(--font-weight-semibold);
|
|
10
13
|
}
|
|
11
14
|
:where([data-control-family="stepper"][data-slot="trigger"]) {
|
|
12
15
|
border-radius: var(--radius-control);
|
|
13
|
-
outline: none;
|
|
14
16
|
transition: color var(--duration-fast) var(--ease-standard);
|
|
15
|
-
|
|
16
|
-
text-align: var(--_stepper-trigger-text-align);
|
|
17
|
+
text-align: start;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
:where([data-control-family="stepper"][data-slot="trigger"]:disabled) {
|
|
20
|
-
opacity:
|
|
21
|
+
opacity: var(--disabled-opacity);
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
:where([data-control-family="stepper"][data-slot="indicator"]) {
|
|
24
|
-
inline-size:
|
|
25
|
-
block-size:
|
|
25
|
+
inline-size: var(--cui-stepper-indicator-size);
|
|
26
|
+
block-size: var(--cui-stepper-indicator-size);
|
|
26
27
|
--_stepper-indicator-shadow: 0 0 transparent;
|
|
27
28
|
border: var(--cui-stepper-indicator-border-width) solid var(--cui-stepper-indicator-border-color);
|
|
28
29
|
border-radius: var(--cui-stepper-indicator-radius);
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
:where([data-control-family="stepper"][data-slot="indicator"][data-state="current"]:not([data-invalid])) {
|
|
47
48
|
--cui-stepper-indicator-foreground: var(--primary-text);
|
|
48
49
|
--cui-stepper-indicator-border-color: var(--primary);
|
|
50
|
+
--cui-stepper-indicator-border-width: var(--cui-stepper-indicator-current-border-width);
|
|
49
51
|
--_stepper-indicator-shadow: 0 0 0 4px oklch(from var(--primary) l c h / 0.1);
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -73,6 +75,10 @@
|
|
|
73
75
|
line-height: var(--leading-tight);
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
:where([data-control-family="stepper"][data-slot="item"][aria-current="step"] [data-slot="title"]) {
|
|
79
|
+
font-weight: var(--cui-stepper-title-current-font-weight);
|
|
80
|
+
}
|
|
81
|
+
|
|
76
82
|
:where([data-control-family="stepper"][data-slot="description"]) {
|
|
77
83
|
color: var(--muted-foreground);
|
|
78
84
|
font-size: var(--text-body);
|
|
@@ -81,7 +87,6 @@
|
|
|
81
87
|
|
|
82
88
|
:where([data-control-family="stepper"][data-slot="content"]) {
|
|
83
89
|
margin-block-start: calc(var(--spacing) * 6);
|
|
84
|
-
outline: none;
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
:where([data-control-family="stepper"][data-slot="root"][data-orientation="vertical"] [data-slot="item"]) {
|
|
@@ -115,11 +120,6 @@
|
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
@container stepper (width < 28rem) {
|
|
118
|
-
:where([data-control-family="stepper"][data-slot="trigger"]) {
|
|
119
|
-
--_stepper-trigger-text-align: left;
|
|
120
|
-
text-align: var(--_stepper-trigger-text-align);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
:where([data-control-family="stepper"][data-slot="root"][data-orientation="horizontal"] [data-slot="item"]) {
|
|
124
124
|
padding-block-end: calc(var(--spacing) * 6);
|
|
125
125
|
}
|
|
@@ -183,3 +183,21 @@
|
|
|
183
183
|
inherits: true;
|
|
184
184
|
initial-value: transparent;
|
|
185
185
|
}
|
|
186
|
+
|
|
187
|
+
@property --cui-stepper-indicator-size {
|
|
188
|
+
syntax: "<length>";
|
|
189
|
+
inherits: true;
|
|
190
|
+
initial-value: 0px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@property --cui-stepper-indicator-current-border-width {
|
|
194
|
+
syntax: "<length>";
|
|
195
|
+
inherits: true;
|
|
196
|
+
initial-value: 0px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@property --cui-stepper-title-current-font-weight {
|
|
200
|
+
syntax: "<number>";
|
|
201
|
+
inherits: true;
|
|
202
|
+
initial-value: 400;
|
|
203
|
+
}
|
|
@@ -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;
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
--cui-table-of-contents-trail-stroke: var(--primary-text);
|
|
27
27
|
--cui-table-of-contents-trail-size: 2px;
|
|
28
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);
|
|
29
30
|
border: var(--cui-table-of-contents-border-width) solid var(--cui-table-of-contents-border-color);
|
|
30
31
|
border-radius: var(--cui-table-of-contents-radius);
|
|
31
32
|
background-color: var(--cui-table-of-contents-background);
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
padding: var(--cui-table-of-contents-padding);
|
|
36
37
|
font-size: var(--cui-table-of-contents-item-font-size);
|
|
37
38
|
line-height: var(--cui-table-of-contents-item-line-height);
|
|
39
|
+
scroll-margin-block-start: var(--cui-table-of-contents-scroll-inset);
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
:where([data-control-family="table-of-contents"][data-slot="label"]) {
|
|
@@ -271,3 +273,9 @@
|
|
|
271
273
|
inherits: true;
|
|
272
274
|
initial-value: transparent;
|
|
273
275
|
}
|
|
276
|
+
|
|
277
|
+
@property --cui-table-of-contents-scroll-inset {
|
|
278
|
+
syntax: "<length>";
|
|
279
|
+
inherits: true;
|
|
280
|
+
initial-value: 0px;
|
|
281
|
+
}
|