@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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--cui-inline-citation-quote-radius: var(--radius-control);
|
|
9
9
|
--cui-inline-citation-trigger-background: oklch(from var(--muted) l c h / 0.55);
|
|
10
10
|
--cui-inline-citation-trigger-border-color: var(--border);
|
|
11
|
-
--cui-inline-citation-trigger-border-width:
|
|
11
|
+
--cui-inline-citation-trigger-border-width: var(--control-rim-width);
|
|
12
12
|
--cui-inline-citation-trigger-foreground: var(--muted-foreground);
|
|
13
13
|
--cui-inline-citation-trigger-hover-background: var(--muted);
|
|
14
14
|
--cui-inline-citation-trigger-hover-foreground: var(--foreground);
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
inset: 50% 50%;
|
|
53
53
|
translate: -50% -50%;
|
|
54
54
|
inline-size: 100%;
|
|
55
|
-
block-size: max(100%,
|
|
55
|
+
block-size: max(100%, var(--touch-target));
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
min-block-size: calc(var(--spacing) * 10);
|
|
69
69
|
gap: calc(var(--spacing) * 1);
|
|
70
70
|
padding-inline: calc(var(--spacing) * 2);
|
|
71
|
-
border-
|
|
71
|
+
border-block-end: var(--control-rim-width) solid var(--border);
|
|
72
72
|
background: var(--cui-inline-citation-navigation-background);
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -109,10 +109,16 @@
|
|
|
109
109
|
outline-style: none;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
:where([data-control-family="inline-citation"][data-slot="source-title"]:
|
|
112
|
+
:where([data-control-family="inline-citation"][data-slot="source-title"]:focus-visible) {
|
|
113
113
|
text-decoration-line: underline;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
@media (hover: hover) {
|
|
117
|
+
:where([data-control-family="inline-citation"][data-slot="source-title"]:hover) {
|
|
118
|
+
text-decoration-line: underline;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
116
122
|
:where([data-control-family="inline-citation"][data-slot="source-external-icon"]) {
|
|
117
123
|
margin-block-start: calc(var(--spacing) * 0.5);
|
|
118
124
|
inline-size: calc(var(--spacing) * 3.5);
|
|
@@ -35,20 +35,34 @@
|
|
|
35
35
|
|
|
36
36
|
:where([data-control-family="item"][data-slot="root"][data-variant="outline"]) {
|
|
37
37
|
--_item-border-color: var(--border);
|
|
38
|
-
--cui-item-border-width:
|
|
38
|
+
--cui-item-border-width: var(--control-rim-width);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
:where([data-control-family="item"][data-slot="root"][data-variant="muted"]) {
|
|
42
42
|
--_item-background: oklch(from var(--muted) l c h / 0.5);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
@media (hover: hover) {
|
|
46
|
+
:where(
|
|
47
|
+
[data-control-family="item"][data-slot="root"]:is(a, button, [href], [role="button"]):not(
|
|
48
|
+
:disabled,
|
|
49
|
+
[data-disabled],
|
|
50
|
+
[aria-disabled="true"]
|
|
51
|
+
):hover
|
|
52
|
+
) {
|
|
53
|
+
outline-color: var(--cui-item-hover-border-color);
|
|
54
|
+
background: var(--cui-item-hover-background);
|
|
55
|
+
box-shadow: none;
|
|
56
|
+
}
|
|
49
57
|
}
|
|
50
58
|
|
|
51
|
-
:where(
|
|
59
|
+
:where(
|
|
60
|
+
[data-control-family="item"][data-slot="root"]:is(a, button, [href], [role="button"]):not(
|
|
61
|
+
:disabled,
|
|
62
|
+
[data-disabled],
|
|
63
|
+
[aria-disabled="true"]
|
|
64
|
+
):active
|
|
65
|
+
) {
|
|
52
66
|
scale: var(--cui-item-active-scale);
|
|
53
67
|
}
|
|
54
68
|
|
|
@@ -58,7 +72,7 @@
|
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
:where([data-control-family="item"][data-slot="description"]) {
|
|
61
|
-
font-size: var(--text-
|
|
75
|
+
font-size: var(--text-body);
|
|
62
76
|
line-height: var(--leading-relaxed);
|
|
63
77
|
color: var(--muted-foreground);
|
|
64
78
|
text-wrap: pretty;
|
|
@@ -66,9 +80,9 @@
|
|
|
66
80
|
|
|
67
81
|
:where([data-control-family="item"][data-slot="title"]) {
|
|
68
82
|
gap: calc(var(--spacing) * 2);
|
|
69
|
-
font-size: var(--text-
|
|
83
|
+
font-size: var(--text-body);
|
|
70
84
|
font-weight: var(--font-weight-medium);
|
|
71
|
-
line-height:
|
|
85
|
+
line-height: var(--leading-tight);
|
|
72
86
|
color: var(--foreground);
|
|
73
87
|
text-wrap: balance;
|
|
74
88
|
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
--cui-markdown-block-radius: var(--radius-panel);
|
|
5
5
|
--cui-markdown-block-background: var(--background);
|
|
6
6
|
--cui-markdown-block-border-color: var(--border);
|
|
7
|
-
--cui-markdown-block-border-width:
|
|
7
|
+
--cui-markdown-block-border-width: var(--control-rim-width);
|
|
8
8
|
--cui-markdown-block-shadow: var(--shadow-sm);
|
|
9
9
|
--cui-markdown-block-header-border-color: var(--border);
|
|
10
|
-
--cui-markdown-block-header-border-width:
|
|
10
|
+
--cui-markdown-block-header-border-width: var(--control-rim-width);
|
|
11
11
|
--cui-markdown-block-icon-background: oklch(from var(--foreground) l c h / 0.08);
|
|
12
12
|
background: var(--cui-markdown-block-background);
|
|
13
13
|
border: var(--cui-markdown-block-border-width) solid var(--cui-markdown-block-border-color);
|
|
@@ -19,18 +19,19 @@
|
|
|
19
19
|
gap: calc(var(--spacing) * 3);
|
|
20
20
|
padding-inline: calc(var(--spacing) * 4);
|
|
21
21
|
padding-block: calc(var(--spacing) * 2);
|
|
22
|
-
border-
|
|
22
|
+
border-block-end: var(--cui-markdown-block-header-border-width) solid var(--cui-markdown-block-header-border-color);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
:where([data-control-family="markdown-block"][data-slot="title"]) {
|
|
26
26
|
gap: calc(var(--spacing) * 2);
|
|
27
|
-
font-size: var(--text-
|
|
27
|
+
font-size: var(--text-body);
|
|
28
28
|
font-weight: var(--font-weight-medium);
|
|
29
29
|
text-wrap: balance;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:where([data-control-family="markdown-block"][data-slot="content"]) {
|
|
33
33
|
padding: calc(var(--spacing) * 4);
|
|
34
|
+
overflow-wrap: break-word;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
:where([data-control-family="markdown-block"][data-slot="title-icon"]) {
|
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
--cui-markdown-inline-code-background: color-mix(in oklab, var(--foreground) 8%, transparent);
|
|
7
7
|
--cui-markdown-inline-code-foreground: var(--foreground);
|
|
8
8
|
--cui-markdown-inline-code-radius: 0.25rem;
|
|
9
|
-
--cui-markdown-image-outline-color:
|
|
9
|
+
--cui-markdown-image-outline-color: var(--image-outline);
|
|
10
10
|
--cui-markdown-link-foreground: var(--primary-text);
|
|
11
11
|
--cui-markdown-table-cell-border-color: var(--border);
|
|
12
12
|
--cui-markdown-table-header-background: var(--muted);
|
|
13
|
+
--cui-markdown-font-size: var(--text-body);
|
|
14
|
+
--cui-markdown-line-height: var(--leading-relaxed);
|
|
13
15
|
color: var(--cui-markdown-foreground);
|
|
14
|
-
font-size: var(--
|
|
16
|
+
font-size: var(--cui-markdown-font-size);
|
|
17
|
+
overflow-wrap: break-word;
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
:where([data-control-family="markdown"][data-slot="root"] img[data-streamdown="image"]) {
|
|
@@ -25,6 +28,7 @@
|
|
|
25
28
|
border-style: solid;
|
|
26
29
|
border-width: 1px;
|
|
27
30
|
border-color: var(--cui-markdown-table-cell-border-color);
|
|
31
|
+
font-variant-numeric: tabular-nums;
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
:where([data-control-family="markdown"][data-slot="table-header"]) {
|
|
@@ -34,13 +38,13 @@
|
|
|
34
38
|
border-width: 1px;
|
|
35
39
|
border-color: var(--border);
|
|
36
40
|
background-color: var(--cui-markdown-table-header-background);
|
|
37
|
-
text-align:
|
|
41
|
+
text-align: start;
|
|
38
42
|
font-weight: var(--font-weight-semibold);
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
:where([data-control-family="markdown"][data-slot="table"]) {
|
|
42
46
|
border-collapse: collapse;
|
|
43
|
-
font-size: var(--
|
|
47
|
+
font-size: var(--cui-markdown-font-size);
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
:where([data-control-family="markdown"][data-slot="emphasis"]) {
|
|
@@ -61,8 +65,8 @@
|
|
|
61
65
|
margin-block: calc(var(--spacing) * 4);
|
|
62
66
|
padding-inline-start: calc(var(--spacing) * 4);
|
|
63
67
|
border-color: var(--cui-markdown-blockquote-border-color);
|
|
64
|
-
border-
|
|
65
|
-
border-
|
|
68
|
+
border-inline-start-style: solid;
|
|
69
|
+
border-inline-start-width: 2px;
|
|
66
70
|
color: var(--cui-markdown-blockquote-foreground);
|
|
67
71
|
font-style: italic;
|
|
68
72
|
}
|
|
@@ -73,6 +77,7 @@
|
|
|
73
77
|
--_markdown-link-decoration: underline;
|
|
74
78
|
text-decoration-line: var(--_markdown-link-decoration);
|
|
75
79
|
text-underline-offset: 2px;
|
|
80
|
+
overflow-wrap: anywhere;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
@media (hover: hover) {
|
|
@@ -83,41 +88,56 @@
|
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
:where([data-control-family="markdown"][data-slot="list-item"]) {
|
|
86
|
-
line-height:
|
|
91
|
+
line-height: var(--cui-markdown-line-height);
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
:where([data-control-family="markdown"][data-slot="paragraph"]) {
|
|
90
95
|
margin-block: calc(var(--spacing) * 3);
|
|
91
|
-
line-height:
|
|
96
|
+
line-height: var(--cui-markdown-line-height);
|
|
92
97
|
text-wrap: pretty;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
|
-
:where(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
:where(
|
|
101
|
+
[data-control-family="markdown"]:is(
|
|
102
|
+
[data-slot="h1"],
|
|
103
|
+
[data-slot="h2"],
|
|
104
|
+
[data-slot="h3"],
|
|
105
|
+
[data-slot="h4"],
|
|
106
|
+
[data-slot="h5"],
|
|
107
|
+
[data-slot="h6"]
|
|
108
|
+
)
|
|
109
|
+
) {
|
|
100
110
|
color: var(--foreground);
|
|
101
111
|
text-wrap: balance;
|
|
102
112
|
scroll-margin-block-start: calc(var(--spacing) * 6);
|
|
103
113
|
}
|
|
104
114
|
|
|
105
|
-
:where([data-control-family="markdown"][data-slot="
|
|
115
|
+
:where([data-control-family="markdown"]:is([data-slot="h3"], [data-slot="h4"], [data-slot="h5"], [data-slot="h6"])) {
|
|
116
|
+
margin-block: calc(var(--spacing) * 5) calc(var(--spacing) * 2);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where([data-control-family="markdown"]:is([data-slot="h4"], [data-slot="h5"], [data-slot="h6"])) {
|
|
106
120
|
font-weight: var(--font-weight-semibold);
|
|
107
|
-
font-size: var(--text-
|
|
108
|
-
line-height: var(--
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
121
|
+
font-size: var(--text-body);
|
|
122
|
+
line-height: var(--leading-tight);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:where([data-control-family="markdown"][data-slot="h3"]) {
|
|
126
|
+
font-weight: var(--text-heading-4--font-weight);
|
|
127
|
+
font-size: var(--text-heading-4);
|
|
128
|
+
line-height: var(--text-heading-4--line-height);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where([data-control-family="markdown"][data-slot="h2"]) {
|
|
132
|
+
font-weight: var(--text-heading-3--font-weight);
|
|
133
|
+
font-size: var(--text-heading-3);
|
|
134
|
+
line-height: var(--text-heading-3--line-height);
|
|
112
135
|
}
|
|
113
136
|
|
|
114
137
|
:where([data-control-family="markdown"][data-slot="h1"]) {
|
|
115
|
-
font-weight: var(--font-weight
|
|
116
|
-
font-size: var(--text-
|
|
117
|
-
line-height: var(--text-
|
|
118
|
-
color: var(--foreground);
|
|
119
|
-
text-wrap: balance;
|
|
120
|
-
scroll-margin-block-start: calc(var(--spacing) * 6);
|
|
138
|
+
font-weight: var(--text-heading-2--font-weight);
|
|
139
|
+
font-size: var(--text-heading-2);
|
|
140
|
+
line-height: var(--text-heading-2--line-height);
|
|
121
141
|
}
|
|
122
142
|
|
|
123
143
|
:where([data-control-family="markdown"][data-slot="h1"]),
|
|
@@ -125,7 +145,16 @@
|
|
|
125
145
|
margin-block: calc(var(--spacing) * 6) calc(var(--spacing) * 3);
|
|
126
146
|
}
|
|
127
147
|
|
|
128
|
-
:where(
|
|
148
|
+
:where(
|
|
149
|
+
[data-control-family="markdown"]:is(
|
|
150
|
+
[data-slot="h1"],
|
|
151
|
+
[data-slot="h2"],
|
|
152
|
+
[data-slot="h3"],
|
|
153
|
+
[data-slot="h4"],
|
|
154
|
+
[data-slot="h5"],
|
|
155
|
+
[data-slot="h6"]
|
|
156
|
+
):first-child
|
|
157
|
+
) {
|
|
129
158
|
margin-block-start: 0;
|
|
130
159
|
}
|
|
131
160
|
|
|
@@ -158,6 +187,7 @@
|
|
|
158
187
|
background-color: var(--cui-markdown-inline-code-background);
|
|
159
188
|
font-family: var(--font-mono);
|
|
160
189
|
font-size: 0.9em;
|
|
190
|
+
overflow-wrap: anywhere;
|
|
161
191
|
color: var(--cui-markdown-inline-code-foreground);
|
|
162
192
|
}
|
|
163
193
|
}
|
|
@@ -221,3 +251,15 @@
|
|
|
221
251
|
inherits: true;
|
|
222
252
|
initial-value: transparent;
|
|
223
253
|
}
|
|
254
|
+
|
|
255
|
+
@property --cui-markdown-font-size {
|
|
256
|
+
syntax: "<length>";
|
|
257
|
+
inherits: true;
|
|
258
|
+
initial-value: 0px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@property --cui-markdown-line-height {
|
|
262
|
+
syntax: "<number>";
|
|
263
|
+
inherits: true;
|
|
264
|
+
initial-value: 1.5;
|
|
265
|
+
}
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
--cui-morphing-panel-shadow: var(--shadow-pop);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
:where([data-control-
|
|
25
|
+
:where([data-control-family="morphing-panel"][data-slot="trigger"]) {
|
|
26
26
|
inline-size: 100%;
|
|
27
27
|
block-size: 100%;
|
|
28
28
|
gap: calc(var(--spacing) * 2);
|
|
29
29
|
padding-inline: calc(var(--spacing) * 4);
|
|
30
30
|
border-radius: inherit;
|
|
31
|
-
|
|
31
|
+
--focus-ring-offset: calc(var(--focus-ring-width) * -1);
|
|
32
32
|
color: currentColor;
|
|
33
33
|
font-size: var(--text-body);
|
|
34
34
|
font-weight: var(--font-weight-medium);
|
|
35
|
-
transition-property: top,
|
|
35
|
+
transition-property: top, inset-inline-end, width, height, border-radius, padding, color, box-shadow;
|
|
36
36
|
transition-duration: var(--duration-slow);
|
|
37
37
|
transition-timing-function: var(--ease-emphasized);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
:where([data-control-
|
|
40
|
+
:where([data-control-family="morphing-panel"][data-slot="trigger"][data-state="open"]) {
|
|
41
41
|
inline-size: calc(var(--spacing) * 9);
|
|
42
42
|
block-size: calc(var(--spacing) * 9);
|
|
43
43
|
padding: 0;
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@media (pointer: coarse) {
|
|
48
|
-
:where([data-control-
|
|
48
|
+
:where([data-control-family="morphing-panel"][data-slot="trigger"][data-state="open"]) {
|
|
49
49
|
inline-size: calc(var(--spacing) * 11);
|
|
50
50
|
block-size: calc(var(--spacing) * 11);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@media (hover: hover) {
|
|
55
|
-
:where([data-control-
|
|
55
|
+
:where([data-control-family="morphing-panel"][data-slot="trigger"]:hover) {
|
|
56
56
|
background-color: var(--cui-morphing-panel-trigger-hover-background);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
:where([data-control-
|
|
60
|
+
:where([data-control-family="morphing-panel"][data-slot="trigger"] > svg) {
|
|
61
61
|
transition-property: rotate;
|
|
62
62
|
transition-duration: var(--duration-base);
|
|
63
63
|
transition-timing-function: var(--ease-emphasized);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
:where([data-control-
|
|
66
|
+
:where([data-control-family="morphing-panel"][data-slot="trigger"][data-state="open"] > svg) {
|
|
67
67
|
rotate: 45deg;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
--cui-page-layout-header-column-gap: calc(var(--spacing) * 4);
|
|
11
11
|
--cui-page-layout-header-row-gap: calc(var(--spacing) * 2);
|
|
12
12
|
--cui-page-layout-sticky-gap: 0px;
|
|
13
|
+
--cui-page-layout-background: var(--canvas);
|
|
14
|
+
--cui-page-layout-sticky-header-background: oklch(from var(--cui-page-layout-background) l c h / 0.85);
|
|
15
|
+
--cui-page-layout-sticky-header-backdrop-filter: blur(12px);
|
|
16
|
+
background: var(--cui-page-layout-background);
|
|
13
17
|
|
|
14
18
|
/* Header and body both read this, so they stop at the same right edge. */
|
|
15
19
|
--cui-page-layout-size: calc(var(--cui-page-layout-article-size) + var(--cui-page-layout-padding-inline) * 2);
|
|
@@ -69,12 +73,14 @@
|
|
|
69
73
|
font-weight: var(--text-heading-1--font-weight);
|
|
70
74
|
letter-spacing: var(--text-heading-1--letter-spacing);
|
|
71
75
|
color: var(--foreground);
|
|
76
|
+
text-wrap: balance;
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
:where([data-control-family="page-layout"][data-slot="description"]) {
|
|
75
80
|
grid-area: description;
|
|
76
81
|
font-size: var(--text-body);
|
|
77
82
|
color: var(--muted-foreground);
|
|
83
|
+
text-wrap: pretty;
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
:where([data-control-family="page-layout"][data-slot="actions"]) {
|
|
@@ -95,14 +101,25 @@
|
|
|
95
101
|
|
|
96
102
|
:where([data-control-family="page-layout"][data-slot="header"][data-variant="sticky"]) {
|
|
97
103
|
position: sticky;
|
|
98
|
-
|
|
104
|
+
inset-block-start: var(--cui-page-layout-sticky-gap);
|
|
99
105
|
z-index: 20;
|
|
106
|
+
background: var(--cui-page-layout-sticky-header-background);
|
|
107
|
+
-webkit-backdrop-filter: var(--cui-page-layout-sticky-header-backdrop-filter);
|
|
108
|
+
backdrop-filter: var(--cui-page-layout-sticky-header-backdrop-filter);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
112
|
+
:where([data-control-family="page-layout"][data-slot="header"][data-variant="sticky"]) {
|
|
113
|
+
background: var(--cui-page-layout-background);
|
|
114
|
+
-webkit-backdrop-filter: none;
|
|
115
|
+
backdrop-filter: none;
|
|
116
|
+
}
|
|
100
117
|
}
|
|
101
118
|
|
|
102
119
|
/* Zero height: the band hangs over the body instead of displacing it. */
|
|
103
120
|
:where([data-control-family="page-layout"][data-slot="header"][data-variant="floating"]) {
|
|
104
121
|
position: sticky;
|
|
105
|
-
|
|
122
|
+
inset-block-start: var(--cui-page-layout-sticky-gap);
|
|
106
123
|
z-index: 20;
|
|
107
124
|
align-items: start;
|
|
108
125
|
height: 0;
|
|
@@ -126,10 +143,6 @@
|
|
|
126
143
|
padding-inline: 0;
|
|
127
144
|
}
|
|
128
145
|
|
|
129
|
-
:where([data-control-family="page-layout"][data-slot="aside"]) {
|
|
130
|
-
display: none;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
146
|
@media (width >= 80rem) {
|
|
134
147
|
:where([data-control-family="page-layout"][data-slot="body"][data-aside]),
|
|
135
148
|
:where(
|
|
@@ -147,10 +160,6 @@
|
|
|
147
160
|
:where([data-control-family="page-layout"][data-slot="body"][data-aside]) {
|
|
148
161
|
grid-template-columns: minmax(0, var(--cui-page-layout-article-size)) var(--cui-page-layout-aside-size);
|
|
149
162
|
}
|
|
150
|
-
|
|
151
|
-
:where([data-control-family="page-layout"][data-slot="aside"]) {
|
|
152
|
-
display: block;
|
|
153
|
-
}
|
|
154
163
|
}
|
|
155
164
|
}
|
|
156
165
|
|
|
@@ -217,3 +226,20 @@
|
|
|
217
226
|
inherits: true;
|
|
218
227
|
initial-value: 0px;
|
|
219
228
|
}
|
|
229
|
+
|
|
230
|
+
@property --cui-page-layout-background {
|
|
231
|
+
syntax: "<color>";
|
|
232
|
+
inherits: true;
|
|
233
|
+
initial-value: transparent;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@property --cui-page-layout-sticky-header-background {
|
|
237
|
+
syntax: "<color>";
|
|
238
|
+
inherits: true;
|
|
239
|
+
initial-value: transparent;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@property --cui-page-layout-sticky-header-backdrop-filter {
|
|
243
|
+
syntax: "*";
|
|
244
|
+
inherits: true;
|
|
245
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
:where([data-control-family="pagination"][data-slot="root"]) {
|
|
3
3
|
--cui-pagination-link-radius: var(--radius-control);
|
|
4
4
|
--cui-pagination-link-background: transparent;
|
|
5
|
-
--cui-pagination-link-hover-background:
|
|
5
|
+
--cui-pagination-link-hover-background: var(--hover-fill);
|
|
6
6
|
--cui-pagination-link-foreground: var(--foreground);
|
|
7
7
|
--cui-pagination-link-shadow: none;
|
|
8
8
|
}
|
|
@@ -21,23 +21,22 @@
|
|
|
21
21
|
var(--cui-pagination-link-shadow);
|
|
22
22
|
color: var(--cui-pagination-link-foreground);
|
|
23
23
|
font-variant-numeric: tabular-nums;
|
|
24
|
-
outline: none;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
:where([data-control-family="pagination"][data-slot="link"][data-active="true"]) {
|
|
28
|
-
--cui-pagination-link-background:
|
|
27
|
+
--cui-pagination-link-background: var(--control-fill);
|
|
29
28
|
--_pagination-link-border-color: var(--border);
|
|
30
29
|
--cui-pagination-link-shadow: var(--shadow-sm);
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
@media (hover: hover) {
|
|
34
|
-
:where([data-control-family="pagination"][data-slot="link"]:hover) {
|
|
33
|
+
:where([data-control-family="pagination"][data-slot="link"]:hover:not([aria-disabled="true"])) {
|
|
35
34
|
background: var(--cui-pagination-link-hover-background);
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
:where([data-control-family="pagination"][data-slot="link"][aria-disabled="true"]) {
|
|
40
|
-
opacity:
|
|
39
|
+
opacity: var(--disabled-opacity);
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
:where([data-control-family="pagination"][data-slot="link"]:has(> svg:first-child)) {
|
|
@@ -63,7 +62,7 @@
|
|
|
63
62
|
inset: 50% 50%;
|
|
64
63
|
translate: -50% -50%;
|
|
65
64
|
inline-size: 100%;
|
|
66
|
-
block-size: max(100%,
|
|
65
|
+
block-size: max(100%, var(--touch-target));
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="field"][data-field-kind="phone-input"][data-slot="root"]) {
|
|
3
3
|
--cui-phone-input-country-border-color: var(--border);
|
|
4
|
-
--cui-phone-input-country-border-width:
|
|
4
|
+
--cui-phone-input-country-border-width: var(--control-rim-width);
|
|
5
5
|
--cui-phone-input-trigger-hover-background: oklch(from var(--foreground) l c h / 0.06);
|
|
6
6
|
--cui-phone-input-trigger-focus-background: oklch(from var(--foreground) l c h / 0.06);
|
|
7
7
|
--cui-phone-input-metadata-foreground: var(--muted-foreground);
|
|
8
8
|
--cui-phone-input-chevron-foreground: var(--muted-foreground);
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
:where([data-control-family="phone-input"][data-slot="root"]) {
|
|
12
|
+
--cui-phone-input-metadata-foreground: var(--muted-foreground);
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
:where([data-control-family="field"][data-phone-input-country]) {
|
|
11
16
|
border-inline-end: var(--cui-phone-input-country-border-width) solid var(--cui-phone-input-country-border-color);
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
@media (hover: hover) {
|
|
15
|
-
:where([data-control-family="phone-input"][data-slot="country-trigger"]:hover) {
|
|
20
|
+
:where([data-control-family="phone-input"][data-slot="country-trigger"]:hover:not(:disabled)) {
|
|
16
21
|
background-color: var(--cui-phone-input-trigger-hover-background);
|
|
17
22
|
}
|
|
18
23
|
}
|
|
@@ -21,10 +26,6 @@
|
|
|
21
26
|
background-color: var(--cui-phone-input-trigger-focus-background);
|
|
22
27
|
}
|
|
23
28
|
|
|
24
|
-
:where([data-control-family="phone-input"][data-slot="country-trigger"]:disabled) {
|
|
25
|
-
opacity: 0.5;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
29
|
:where([data-control-family="phone-input"][data-slot="flag"]) {
|
|
29
30
|
inline-size: calc(var(--spacing) * 5);
|
|
30
31
|
block-size: calc(var(--spacing) * 3.5);
|
|
@@ -64,10 +65,13 @@
|
|
|
64
65
|
min-inline-size: calc(var(--spacing) * 14);
|
|
65
66
|
gap: calc(var(--spacing) * 2);
|
|
66
67
|
padding-inline: calc(var(--spacing) * 3);
|
|
67
|
-
outline-style: none;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
:where(
|
|
70
|
+
:where(
|
|
71
|
+
[data-control-family="field"][data-field-kind="phone-input"][data-slot="root"]
|
|
72
|
+
[data-control-family="field"][data-field-kind="input-group"][data-slot="input"]
|
|
73
|
+
) {
|
|
74
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
71
75
|
font-variant-numeric: tabular-nums;
|
|
72
76
|
}
|
|
73
77
|
}
|