@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
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="sidebar"][data-slot="rail"]) {
|
|
3
|
+
inline-size: calc(var(--spacing) * 4);
|
|
4
|
+
background-image: linear-gradient(var(--cui-sidebar-rail-divider-background), var(--cui-sidebar-rail-divider-background));
|
|
5
|
+
background-position: center;
|
|
6
|
+
background-repeat: no-repeat;
|
|
7
|
+
background-size: 2px 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where([data-control-family="sidebar"][data-collapsible="offcanvas"] [data-slot="rail"]) {
|
|
11
|
+
background-position: right;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-control-family="sidebar"][data-collapsible="offcanvas"] [data-slot="rail"]:dir(rtl)) {
|
|
15
|
+
background-position: left;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (hover: hover) {
|
|
19
|
+
:where([data-control-family="sidebar"][data-slot="rail"]:hover) {
|
|
20
|
+
--cui-sidebar-rail-divider-background: var(--sidebar-border);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-control-family="sidebar"][data-collapsible="offcanvas"] [data-slot="rail"]:not([data-resizable]):hover) {
|
|
24
|
+
background-color: var(--sidebar);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where([data-control-family="sidebar"][data-slot="rail"][data-resizable]) {
|
|
29
|
+
inline-size: calc(var(--spacing) * 2);
|
|
30
|
+
background: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where([data-control-family="sidebar"][data-slot="rail"][data-resizable])::after {
|
|
34
|
+
content: "";
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset-block: 12.5%;
|
|
37
|
+
inset-inline-start: 50%;
|
|
38
|
+
inline-size: 1px;
|
|
39
|
+
background-image: linear-gradient(transparent, var(--cui-sidebar-rail-divider-background), transparent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where([data-control-family="sidebar"][data-slot="rail"]:is(:focus-visible, [data-resizing="true"])) {
|
|
43
|
+
--cui-sidebar-rail-divider-background: var(--focus-ring);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where([data-control-family="sidebar"][data-slot="inset"]) {
|
|
47
|
+
background-color: var(--cui-sidebar-inset-background);
|
|
48
|
+
background-image: var(--cui-sidebar-inset-background-image);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where([data-control-family="sidebar"][data-slot="inset"]:focus-visible) {
|
|
52
|
+
--focus-ring-offset: calc(var(--focus-ring-width) * -1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (width >= 64rem) {
|
|
56
|
+
:where(
|
|
57
|
+
[data-control-family="sidebar"][data-slot="root"][data-variant="inset"][data-state]
|
|
58
|
+
~ [data-control-family="sidebar"][data-slot="inset"]
|
|
59
|
+
) {
|
|
60
|
+
margin: var(--cui-sidebar-inset-inset);
|
|
61
|
+
margin-inline-start: 0;
|
|
62
|
+
border: var(--cui-sidebar-inset-border-width) solid var(--cui-sidebar-inset-border-color);
|
|
63
|
+
border-radius: var(--cui-sidebar-inset-radius);
|
|
64
|
+
box-shadow: var(--cui-sidebar-inset-shadow);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(
|
|
68
|
+
[data-control-family="sidebar"][data-slot="root"][data-variant="inset"][data-state="collapsed"]
|
|
69
|
+
~ [data-control-family="sidebar"][data-slot="inset"]
|
|
70
|
+
) {
|
|
71
|
+
margin-inline-start: var(--cui-sidebar-inset-inset);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where([data-control-family="sidebar"][data-slot="header"]),
|
|
76
|
+
:where([data-control-family="sidebar"][data-slot="footer"]) {
|
|
77
|
+
gap: calc(var(--spacing) * 2);
|
|
78
|
+
padding: calc(var(--spacing) * 2);
|
|
79
|
+
background-color: var(--cui-sidebar-header-background);
|
|
80
|
+
box-shadow: var(--cui-sidebar-header-shadow);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where([data-control-family="sidebar"][data-slot="content-stack"]) {
|
|
84
|
+
gap: calc(var(--spacing) * 2);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where([data-control-family="sidebar"][data-slot="group"]) {
|
|
88
|
+
padding: calc(var(--spacing) * 2);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where([data-control-family="sidebar"][data-slot="menu"]) {
|
|
92
|
+
gap: calc(var(--spacing) * 1);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where([data-control-family="sidebar"][data-slot="menu"][data-submenu]) {
|
|
96
|
+
margin-block: calc(var(--spacing) * 1);
|
|
97
|
+
margin-inline-start: calc(var(--spacing) * 3);
|
|
98
|
+
padding-inline-start: calc(var(--spacing) * 2);
|
|
99
|
+
border-inline-start: 1px solid var(--sidebar-border);
|
|
100
|
+
width: auto;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([data-control-family="sidebar"]:is([data-slot="group-label"], [data-slot="menu-button"])[aria-expanded] > [data-slot="chevron"]) {
|
|
104
|
+
margin-inline-start: auto;
|
|
105
|
+
transition: rotate var(--duration-base) var(--ease-standard);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:where([data-control-family="sidebar"][aria-expanded="true"] > [data-slot="chevron"]) {
|
|
109
|
+
rotate: 90deg;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:where([data-control-family="sidebar"][data-slot="group-label"][aria-expanded]) {
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
width: 100%;
|
|
115
|
+
text-align: start;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (pointer: coarse) {
|
|
119
|
+
:where([data-control-family="sidebar"][data-slot="menu-button"]) {
|
|
120
|
+
min-block-size: max(var(--cui-sidebar-menu-button-height), var(--touch-target));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where([data-control-family="sidebar"][data-slot="group-label"][aria-expanded]) {
|
|
124
|
+
min-block-size: var(--touch-target);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:where([data-control-family="button"][data-sidebar-trigger]) {
|
|
128
|
+
min-inline-size: var(--touch-target);
|
|
129
|
+
min-block-size: var(--touch-target);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:where([data-control-family="sidebar"][data-slot="menu"]:is([data-indicator="hover"], [data-indicator="slide"])) {
|
|
134
|
+
gap: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@property --cui-sidebar-menu-badge-height {
|
|
139
|
+
syntax: "<length>";
|
|
140
|
+
inherits: true;
|
|
141
|
+
initial-value: 0px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@property --cui-sidebar-menu-badge-background {
|
|
145
|
+
syntax: "<color>";
|
|
146
|
+
inherits: true;
|
|
147
|
+
initial-value: transparent;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@property --cui-sidebar-menu-badge-foreground {
|
|
151
|
+
syntax: "<color>";
|
|
152
|
+
inherits: true;
|
|
153
|
+
initial-value: transparent;
|
|
154
|
+
}
|
|
@@ -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: var(--padding-x);
|
|
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
|
}
|
|
@@ -79,132 +129,11 @@
|
|
|
79
129
|
}
|
|
80
130
|
|
|
81
131
|
:where([data-control-family="sidebar"][data-slot="root"][data-variant="floating"][data-state]) {
|
|
82
|
-
--cui-sidebar-inner-border-width:
|
|
132
|
+
--cui-sidebar-inner-border-width: var(--control-rim-width);
|
|
83
133
|
--cui-sidebar-inner-radius: var(--radius-panel);
|
|
84
134
|
--cui-sidebar-inner-shadow: var(--shadow-md);
|
|
85
135
|
}
|
|
86
136
|
|
|
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
137
|
:where([data-control-family="sidebar"][data-slot="menu-track"] > [data-control-family="track-highlight"]) {
|
|
209
138
|
--cui-track-highlight-radius: var(--cui-sidebar-menu-button-radius);
|
|
210
139
|
}
|
|
@@ -231,12 +160,6 @@
|
|
|
231
160
|
inherits: true;
|
|
232
161
|
}
|
|
233
162
|
|
|
234
|
-
@property --cui-sidebar-menu-button-radius {
|
|
235
|
-
syntax: "<length-percentage>";
|
|
236
|
-
inherits: true;
|
|
237
|
-
initial-value: 0px;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
163
|
@property --cui-sidebar-inner-background {
|
|
241
164
|
syntax: "<color>";
|
|
242
165
|
inherits: true;
|
|
@@ -277,6 +200,17 @@
|
|
|
277
200
|
inherits: true;
|
|
278
201
|
}
|
|
279
202
|
|
|
203
|
+
@property --cui-sidebar-header-background {
|
|
204
|
+
syntax: "<color>";
|
|
205
|
+
inherits: true;
|
|
206
|
+
initial-value: transparent;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@property --cui-sidebar-header-shadow {
|
|
210
|
+
syntax: "*";
|
|
211
|
+
inherits: true;
|
|
212
|
+
}
|
|
213
|
+
|
|
280
214
|
@property --cui-sidebar-inset-background {
|
|
281
215
|
syntax: "<color>";
|
|
282
216
|
inherits: true;
|
|
@@ -293,6 +227,36 @@
|
|
|
293
227
|
inherits: true;
|
|
294
228
|
}
|
|
295
229
|
|
|
230
|
+
@property --cui-sidebar-inset-border-color {
|
|
231
|
+
syntax: "<color>";
|
|
232
|
+
inherits: true;
|
|
233
|
+
initial-value: transparent;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@property --cui-sidebar-inset-border-width {
|
|
237
|
+
syntax: "<length>";
|
|
238
|
+
inherits: true;
|
|
239
|
+
initial-value: 0px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@property --cui-sidebar-inset-radius {
|
|
243
|
+
syntax: "<length-percentage>";
|
|
244
|
+
inherits: true;
|
|
245
|
+
initial-value: 0px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@property --cui-sidebar-inset-inset {
|
|
249
|
+
syntax: "<length-percentage>";
|
|
250
|
+
inherits: true;
|
|
251
|
+
initial-value: 0px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@property --cui-sidebar-menu-button-radius {
|
|
255
|
+
syntax: "<length-percentage>";
|
|
256
|
+
inherits: true;
|
|
257
|
+
initial-value: 0px;
|
|
258
|
+
}
|
|
259
|
+
|
|
296
260
|
@property --cui-sidebar-group-label-foreground {
|
|
297
261
|
syntax: "<color>";
|
|
298
262
|
inherits: true;
|
|
@@ -338,3 +302,98 @@
|
|
|
338
302
|
syntax: "*";
|
|
339
303
|
inherits: true;
|
|
340
304
|
}
|
|
305
|
+
|
|
306
|
+
@property --cui-sidebar-menu-button-track-active-foreground {
|
|
307
|
+
syntax: "<color>";
|
|
308
|
+
inherits: true;
|
|
309
|
+
initial-value: transparent;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
@property --cui-sidebar-menu-button-height {
|
|
313
|
+
syntax: "<length-percentage>";
|
|
314
|
+
inherits: true;
|
|
315
|
+
initial-value: 0px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@property --cui-sidebar-menu-button-padding-block {
|
|
319
|
+
syntax: "<length-percentage>";
|
|
320
|
+
inherits: true;
|
|
321
|
+
initial-value: 0px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@property --cui-sidebar-menu-button-padding-inline {
|
|
325
|
+
syntax: "<length-percentage>";
|
|
326
|
+
inherits: true;
|
|
327
|
+
initial-value: 0px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@property --cui-sidebar-menu-button-font-size {
|
|
331
|
+
syntax: "<length-percentage>";
|
|
332
|
+
inherits: true;
|
|
333
|
+
initial-value: 1rem;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@property --cui-sidebar-menu-button-font-weight {
|
|
337
|
+
syntax: "<number>";
|
|
338
|
+
inherits: true;
|
|
339
|
+
initial-value: 400;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@property --cui-sidebar-menu-button-active-font-weight {
|
|
343
|
+
syntax: "<number>";
|
|
344
|
+
inherits: true;
|
|
345
|
+
initial-value: 500;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@property --cui-sidebar-group-label-font-size {
|
|
349
|
+
syntax: "<length-percentage>";
|
|
350
|
+
inherits: true;
|
|
351
|
+
initial-value: 1rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@property --cui-sidebar-group-label-font-weight {
|
|
355
|
+
syntax: "<number>";
|
|
356
|
+
inherits: true;
|
|
357
|
+
initial-value: 500;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
@property --cui-sidebar-group-label-letter-spacing {
|
|
361
|
+
syntax: "<length>";
|
|
362
|
+
inherits: true;
|
|
363
|
+
initial-value: 0em;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@property --cui-sidebar-group-label-text-transform {
|
|
367
|
+
syntax: "none | uppercase | lowercase | capitalize";
|
|
368
|
+
inherits: true;
|
|
369
|
+
initial-value: none;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
@property --cui-sidebar-group-label-padding {
|
|
373
|
+
syntax: "<length-percentage>+";
|
|
374
|
+
inherits: true;
|
|
375
|
+
initial-value: 0px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@property --cui-sidebar-skip-link-background {
|
|
379
|
+
syntax: "<color>";
|
|
380
|
+
inherits: true;
|
|
381
|
+
initial-value: transparent;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
@property --cui-sidebar-skip-link-foreground {
|
|
385
|
+
syntax: "<color>";
|
|
386
|
+
inherits: true;
|
|
387
|
+
initial-value: transparent;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@property --cui-sidebar-skip-link-radius {
|
|
391
|
+
syntax: "<length-percentage>";
|
|
392
|
+
inherits: true;
|
|
393
|
+
initial-value: 0px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@property --cui-sidebar-skip-link-shadow {
|
|
397
|
+
syntax: "*";
|
|
398
|
+
inherits: true;
|
|
399
|
+
}
|
|
@@ -1,13 +1,18 @@
|
|
|
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
|
|
|
8
|
+
:where([data-control-family="button"] [data-control-family="spinner"][data-slot="root"]) {
|
|
9
|
+
--cui-spinner-foreground: currentColor;
|
|
10
|
+
}
|
|
11
|
+
|
|
7
12
|
:where([data-control-family="spinner"][data-slot="indicator"]) {
|
|
8
13
|
inline-size: calc(var(--spacing) * 4);
|
|
9
14
|
block-size: calc(var(--spacing) * 4);
|
|
10
|
-
animation: spin
|
|
15
|
+
animation: cui-spin var(--cui-spinner-animation-duration) linear infinite;
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
:where([data-control-family="spinner"][data-slot="indicator"][data-size="xs"]) {
|
|
@@ -31,3 +36,9 @@
|
|
|
31
36
|
inherits: true;
|
|
32
37
|
initial-value: transparent;
|
|
33
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
|
+
}
|