@ctrl-ui/react 0.8.2 → 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/length.d.ts +2 -3
- package/dist/email/templates.d.ts +7 -8
- package/dist/email/theme.d.ts +4 -5
- 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 +1 -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 +0 -6
- package/dist/styles/recipes/sidebar.css +56 -17
- 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 +6 -4
- package/dist/ui/combobox-disabled-selection.d.ts +3 -4
- package/dist/ui/combobox.d.ts +19 -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 +32 -33
- package/dist/ui/dropdown-menu.js +5 -3
- 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 +18 -19
- package/dist/ui/sidebar-menu.js +4 -3
- 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 +19 -13
- package/dist/ui/sidebar.js +120 -55
- 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
|
@@ -2,11 +2,63 @@
|
|
|
2
2
|
:where([data-control-family="skeleton"][data-slot="root"]) {
|
|
3
3
|
--cui-skeleton-radius: var(--radius-control);
|
|
4
4
|
--cui-skeleton-background: var(--muted);
|
|
5
|
+
--cui-skeleton-background-image: none;
|
|
6
|
+
--cui-skeleton-highlight-background: oklch(from var(--foreground) l c h / 0.06);
|
|
7
|
+
--cui-skeleton-animation-duration: calc(var(--duration-slow) * 5);
|
|
8
|
+
--cui-skeleton-easing: var(--ease-standard);
|
|
9
|
+
--cui-skeleton-pulse-opacity: 0.5;
|
|
10
|
+
position: relative;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
isolation: isolate;
|
|
5
13
|
border-radius: var(--cui-skeleton-radius);
|
|
6
14
|
background-color: var(--cui-skeleton-background);
|
|
7
|
-
background-image:
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
background-image: var(--cui-skeleton-background-image);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where([data-control-family="skeleton"][data-slot="root"][data-variant="shimmer"])::after {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
inset: 0;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
background-image: linear-gradient(90deg, transparent, var(--cui-skeleton-highlight-background), transparent);
|
|
24
|
+
transform: translateX(-100%);
|
|
25
|
+
animation: cui-skeleton-shimmer var(--cui-skeleton-animation-duration) var(--cui-skeleton-easing) infinite;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where([data-control-family="skeleton"][data-slot="root"][data-variant="pulse"]) {
|
|
29
|
+
animation: cui-skeleton-pulse var(--cui-skeleton-animation-duration) var(--cui-skeleton-easing) infinite;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([data-control-family="skeleton"][data-slot="root"][data-variant="none"]) {
|
|
33
|
+
animation: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (prefers-reduced-motion: reduce) {
|
|
37
|
+
:where([data-control-family="skeleton"][data-slot="root"]),
|
|
38
|
+
:where([data-control-family="skeleton"][data-slot="root"])::after {
|
|
39
|
+
animation: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where([data-motion="reduced"] [data-control-family="skeleton"][data-slot="root"]),
|
|
44
|
+
:where([data-motion="reduced"] [data-control-family="skeleton"][data-slot="root"])::after {
|
|
45
|
+
animation: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes cui-skeleton-shimmer {
|
|
50
|
+
to {
|
|
51
|
+
transform: translateX(100%);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes cui-skeleton-pulse {
|
|
56
|
+
0%,
|
|
57
|
+
100% {
|
|
58
|
+
opacity: 1;
|
|
59
|
+
}
|
|
60
|
+
50% {
|
|
61
|
+
opacity: var(--cui-skeleton-pulse-opacity);
|
|
10
62
|
}
|
|
11
63
|
}
|
|
12
64
|
|
|
@@ -21,3 +73,33 @@
|
|
|
21
73
|
inherits: true;
|
|
22
74
|
initial-value: transparent;
|
|
23
75
|
}
|
|
76
|
+
|
|
77
|
+
@property --cui-skeleton-background-image {
|
|
78
|
+
syntax: "*";
|
|
79
|
+
inherits: true;
|
|
80
|
+
initial-value: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@property --cui-skeleton-highlight-background {
|
|
84
|
+
syntax: "<color>";
|
|
85
|
+
inherits: true;
|
|
86
|
+
initial-value: transparent;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@property --cui-skeleton-animation-duration {
|
|
90
|
+
syntax: "<time>";
|
|
91
|
+
inherits: true;
|
|
92
|
+
initial-value: 0s;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@property --cui-skeleton-easing {
|
|
96
|
+
syntax: "*";
|
|
97
|
+
inherits: true;
|
|
98
|
+
initial-value: ease;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@property --cui-skeleton-pulse-opacity {
|
|
102
|
+
syntax: "<number>";
|
|
103
|
+
inherits: true;
|
|
104
|
+
initial-value: 0.5;
|
|
105
|
+
}
|
|
@@ -12,9 +12,6 @@
|
|
|
12
12
|
--cui-source-badge-favicon-radius: var(--radius-sm);
|
|
13
13
|
background: var(--cui-source-badge-background);
|
|
14
14
|
color: var(--cui-source-badge-foreground);
|
|
15
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
16
|
-
transition-duration: var(--duration-fast);
|
|
17
|
-
transition-timing-function: var(--ease-standard);
|
|
18
15
|
font-weight: var(--font-weight-normal);
|
|
19
16
|
}
|
|
20
17
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
--cui-stepper-indicator-background: var(--background);
|
|
5
5
|
--cui-stepper-indicator-foreground: var(--muted-foreground);
|
|
6
6
|
--cui-stepper-indicator-border-color: var(--border);
|
|
7
|
+
--cui-stepper-indicator-border-width: 1px;
|
|
7
8
|
--cui-stepper-separator-background: var(--border);
|
|
8
9
|
--cui-stepper-title-foreground: var(--foreground);
|
|
9
10
|
}
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
inline-size: calc(var(--spacing) * 8);
|
|
24
25
|
block-size: calc(var(--spacing) * 8);
|
|
25
26
|
--_stepper-indicator-shadow: 0 0 transparent;
|
|
26
|
-
border:
|
|
27
|
+
border: var(--cui-stepper-indicator-border-width) solid var(--cui-stepper-indicator-border-color);
|
|
27
28
|
border-radius: var(--cui-stepper-indicator-radius);
|
|
28
29
|
background: var(--cui-stepper-indicator-background);
|
|
29
30
|
color: var(--cui-stepper-indicator-foreground);
|
|
@@ -165,6 +166,12 @@
|
|
|
165
166
|
initial-value: transparent;
|
|
166
167
|
}
|
|
167
168
|
|
|
169
|
+
@property --cui-stepper-indicator-border-width {
|
|
170
|
+
syntax: "<length>";
|
|
171
|
+
inherits: true;
|
|
172
|
+
initial-value: 0px;
|
|
173
|
+
}
|
|
174
|
+
|
|
168
175
|
@property --cui-stepper-separator-background {
|
|
169
176
|
syntax: "<color>";
|
|
170
177
|
inherits: true;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="switch"][data-slot="root"]) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
padding: calc(var(--spacing) * 0.5);
|
|
3
|
+
--cui-switch-inline-size: calc(var(--spacing) * 9);
|
|
4
|
+
--cui-switch-height: calc(var(--spacing) * 5);
|
|
5
|
+
--cui-switch-padding: calc(var(--spacing) * 0.5);
|
|
6
|
+
--cui-switch-thumb-inline-size: calc(var(--spacing) * 4);
|
|
7
|
+
--cui-switch-thumb-press-scale: 1.25 1;
|
|
8
|
+
--cui-switch-thumb-backdrop-filter: none;
|
|
9
|
+
--_switch-direction: 1;
|
|
10
|
+
--_switch-progress: 0;
|
|
11
|
+
--_switch-travel: calc(var(--cui-switch-inline-size) - var(--cui-switch-padding) * 2 - var(--cui-switch-thumb-inline-size));
|
|
12
|
+
block-size: var(--cui-switch-height);
|
|
13
|
+
inline-size: var(--cui-switch-inline-size);
|
|
14
|
+
padding: var(--cui-switch-padding);
|
|
15
|
+
touch-action: pan-y;
|
|
16
|
+
user-select: none;
|
|
6
17
|
--cui-switch-background: oklch(from var(--foreground) l c h / 0.14);
|
|
7
18
|
--cui-switch-hover-background: oklch(from var(--foreground) l c h / 0.2);
|
|
8
19
|
--cui-switch-checked-background: var(--primary);
|
|
@@ -13,7 +24,6 @@
|
|
|
13
24
|
border-radius: calc(infinity * 1px);
|
|
14
25
|
background: var(--cui-switch-background);
|
|
15
26
|
outline: none;
|
|
16
|
-
transition: background-color var(--duration-base) var(--ease-standard);
|
|
17
27
|
}
|
|
18
28
|
|
|
19
29
|
:where([data-control-family="switch"][data-slot="root"]:hover) {
|
|
@@ -21,10 +31,12 @@
|
|
|
21
31
|
}
|
|
22
32
|
|
|
23
33
|
:where([data-control-family="switch"][data-slot="root"]:active) {
|
|
24
|
-
background: oklch(from var(--foreground) l c h / 0.25);
|
|
34
|
+
--cui-switch-background: oklch(from var(--foreground) l c h / 0.25);
|
|
35
|
+
background: var(--cui-switch-background);
|
|
25
36
|
}
|
|
26
37
|
|
|
27
38
|
:where([data-control-family="switch"][data-slot="root"][data-checked]) {
|
|
39
|
+
--_switch-progress: 1;
|
|
28
40
|
background: var(--cui-switch-checked-background);
|
|
29
41
|
}
|
|
30
42
|
|
|
@@ -33,7 +45,8 @@
|
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
:where([data-control-family="switch"][data-slot="root"][data-checked]:active) {
|
|
36
|
-
background: oklch(from var(--primary) l c h / 0.8);
|
|
48
|
+
--cui-switch-checked-background: oklch(from var(--primary) l c h / 0.8);
|
|
49
|
+
background: var(--cui-switch-checked-background);
|
|
37
50
|
}
|
|
38
51
|
|
|
39
52
|
:where([data-control-family="switch"][data-slot="root"][data-disabled]) {
|
|
@@ -52,9 +65,13 @@
|
|
|
52
65
|
border-radius: var(--cui-switch-thumb-radius);
|
|
53
66
|
background: var(--cui-switch-thumb-background);
|
|
54
67
|
box-shadow: var(--cui-switch-thumb-shadow);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
inline-size: var(--cui-switch-thumb-inline-size);
|
|
69
|
+
block-size: calc(var(--cui-switch-height) - var(--cui-switch-padding) * 2);
|
|
70
|
+
translate: calc(var(--_switch-direction) * var(--_switch-travel) * var(--_switch-progress)) 0;
|
|
71
|
+
transform-origin: left center;
|
|
72
|
+
-webkit-backdrop-filter: var(--cui-switch-thumb-backdrop-filter);
|
|
73
|
+
backdrop-filter: var(--cui-switch-thumb-backdrop-filter);
|
|
74
|
+
transition-property: translate, scale, background-color, box-shadow;
|
|
58
75
|
transition-duration: var(--duration-base);
|
|
59
76
|
transition-timing-function: var(--ease-emphasized);
|
|
60
77
|
}
|
|
@@ -92,18 +109,39 @@
|
|
|
92
109
|
opacity: 1;
|
|
93
110
|
}
|
|
94
111
|
|
|
95
|
-
:where([data-control-family="switch"][data-slot="
|
|
96
|
-
--_switch-
|
|
97
|
-
translate: var(--_switch-thumb-translate);
|
|
112
|
+
:where([data-control-family="switch"][data-slot="root"]:dir(rtl)) {
|
|
113
|
+
--_switch-direction: -1;
|
|
98
114
|
}
|
|
99
115
|
|
|
100
|
-
:where([data-control-family="switch"][data-slot="
|
|
101
|
-
|
|
116
|
+
:where([data-control-family="switch"][data-slot="thumb"][data-checked]),
|
|
117
|
+
:where([data-control-family="switch"][data-slot="thumb"]:dir(rtl)) {
|
|
118
|
+
transform-origin: right center;
|
|
102
119
|
}
|
|
103
120
|
|
|
104
|
-
:where([data-control-family="switch"][data-slot="
|
|
105
|
-
|
|
106
|
-
|
|
121
|
+
:where([data-control-family="switch"][data-slot="thumb"][data-checked]:dir(rtl)) {
|
|
122
|
+
transform-origin: left center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:where(
|
|
126
|
+
[data-control-family="switch"][data-slot="root"]:is(:active, [data-dragging]):not([data-disabled], [data-readonly]) [data-slot="thumb"]
|
|
127
|
+
) {
|
|
128
|
+
scale: var(--cui-switch-thumb-press-scale);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where([data-control-family="switch"][data-slot="root"][data-dragging]) {
|
|
132
|
+
--_switch-progress: var(--_switch-drag-progress);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:where([data-control-family="switch"][data-slot="root"][data-drag-checked="false"]) {
|
|
136
|
+
background: var(--cui-switch-background);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:where([data-control-family="switch"][data-slot="root"][data-drag-checked="true"]) {
|
|
140
|
+
background: var(--cui-switch-checked-background);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:where([data-control-family="switch"][data-slot="root"][data-dragging] [data-slot="thumb"]) {
|
|
144
|
+
transition-property: scale, background-color, box-shadow;
|
|
107
145
|
}
|
|
108
146
|
}
|
|
109
147
|
|
|
@@ -147,3 +185,37 @@
|
|
|
147
185
|
inherits: true;
|
|
148
186
|
initial-value: transparent;
|
|
149
187
|
}
|
|
188
|
+
|
|
189
|
+
@property --cui-switch-inline-size {
|
|
190
|
+
syntax: "<length>";
|
|
191
|
+
inherits: true;
|
|
192
|
+
initial-value: 36px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@property --cui-switch-height {
|
|
196
|
+
syntax: "<length>";
|
|
197
|
+
inherits: true;
|
|
198
|
+
initial-value: 20px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@property --cui-switch-padding {
|
|
202
|
+
syntax: "<length>";
|
|
203
|
+
inherits: true;
|
|
204
|
+
initial-value: 2px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@property --cui-switch-thumb-inline-size {
|
|
208
|
+
syntax: "<length>";
|
|
209
|
+
inherits: true;
|
|
210
|
+
initial-value: 16px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@property --cui-switch-thumb-press-scale {
|
|
214
|
+
syntax: "*";
|
|
215
|
+
inherits: true;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@property --cui-switch-thumb-backdrop-filter {
|
|
219
|
+
syntax: "*";
|
|
220
|
+
inherits: true;
|
|
221
|
+
}
|
|
@@ -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
|
+
}
|