@ctrl-ui/react 0.8.20 → 0.9.0
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 +1 -0
- package/dist/action-bar.d.ts +1 -2
- package/dist/action-bar.js +7 -8
- package/dist/blocks/design-canvas-inspector.js +4 -1
- package/dist/blocks/file-explorer.js +1 -1
- package/dist/chat-message.js +4 -13
- package/dist/hooks/use-textarea-trigger-menu.d.ts +21 -3
- package/dist/hooks/use-textarea-trigger-menu.js +36 -40
- package/dist/hooks/use-user-ask.d.ts +1 -0
- package/dist/hooks/use-user-ask.js +5 -1
- 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/chart-knobs.d.ts +4 -0
- package/dist/knob-contracts/chart-knobs.js +24 -0
- package/dist/knob-contracts/choice-knobs.d.ts +1 -1
- package/dist/knob-contracts/choice-knobs.js +1 -0
- package/dist/knob-contracts/dockable-panel-knobs.d.ts +1 -1
- package/dist/knob-contracts/dockable-panel-knobs.js +2 -1
- package/dist/knob-contracts/emoji-picker-knobs.d.ts +1 -1
- package/dist/knob-contracts/emoji-picker-knobs.js +1 -0
- package/dist/knob-contracts/empty-knobs.d.ts +1 -1
- package/dist/knob-contracts/empty-knobs.js +2 -1
- package/dist/knob-contracts/icon-picker-knobs.d.ts +1 -1
- package/dist/knob-contracts/icon-picker-knobs.js +3 -1
- package/dist/knob-contracts/resizable-knobs.d.ts +1 -1
- package/dist/knob-contracts/resizable-knobs.js +2 -2
- package/dist/knob-contracts/sidebar-knobs.d.ts +1 -1
- package/dist/knob-contracts/sidebar-knobs.js +3 -1
- package/dist/knob-contracts/tabs-knobs.d.ts +1 -1
- package/dist/knob-contracts/tabs-knobs.js +2 -1
- package/dist/knob-contracts/tree-knobs.d.ts +1 -1
- package/dist/knob-contracts/tree-knobs.js +2 -1
- package/dist/lib/color.d.ts +2 -6
- package/dist/lib/color.js +45 -28
- package/dist/lib/contrast.d.ts +6 -0
- package/dist/lib/contrast.js +33 -1
- package/dist/lib/gradient.d.ts +17 -0
- package/dist/lib/gradient.js +69 -0
- package/dist/markdown-editor/drag-handle.js +73 -10
- package/dist/markdown-editor/drag-preview.d.ts +3 -0
- package/dist/markdown-editor/drag-preview.js +31 -0
- package/dist/markdown-editor/extensions.d.ts +2 -2
- package/dist/markdown-editor/extensions.js +25 -3
- package/dist/markdown-editor/suggestions.js +5 -5
- package/dist/markdown-editor/task-item.d.ts +3 -0
- package/dist/markdown-editor/task-item.js +50 -0
- package/dist/markdown-editor/toolbar.js +122 -63
- package/dist/markdown-editor.js +3 -3
- package/dist/skin.d.ts +0 -1
- package/dist/styles/index.css +3 -2
- package/dist/styles/recipes/action-bar.css +1 -1
- package/dist/styles/recipes/activity.css +1 -1
- package/dist/styles/recipes/alert.css +9 -10
- package/dist/styles/recipes/app-shell-header.css +2 -2
- package/dist/styles/recipes/audio-recorder.css +15 -4
- package/dist/styles/recipes/audio-visualizer.css +4 -4
- package/dist/styles/recipes/avatar.css +3 -3
- package/dist/styles/recipes/badge.css +2 -2
- package/dist/styles/recipes/button.css +2 -5
- package/dist/styles/recipes/card.css +0 -2
- package/dist/styles/recipes/chart.css +378 -0
- package/dist/styles/recipes/chat-composer-attachment.css +3 -3
- package/dist/styles/recipes/chat-composer.css +3 -3
- package/dist/styles/recipes/chat-layout.css +2 -2
- package/dist/styles/recipes/chat-message-social.css +1 -1
- package/dist/styles/recipes/chat-message.css +1 -1
- package/dist/styles/recipes/choice.css +9 -3
- package/dist/styles/recipes/code-diff.css +1 -1
- package/dist/styles/recipes/code.css +1 -1
- package/dist/styles/recipes/color-picker-details.css +17 -11
- package/dist/styles/recipes/color-picker-values.css +17 -7
- package/dist/styles/recipes/color-picker.css +88 -70
- package/dist/styles/recipes/context.css +2 -2
- package/dist/styles/recipes/dockable-panel.css +9 -2
- package/dist/styles/recipes/dynamic-notification-motion.css +1 -55
- package/dist/styles/recipes/dynamic-notification.css +0 -1
- package/dist/styles/recipes/emoji-picker.css +35 -19
- package/dist/styles/recipes/empty.css +19 -14
- package/dist/styles/recipes/field-parts.css +2 -2
- package/dist/styles/recipes/field.css +6 -4
- package/dist/styles/recipes/filter-bar.css +10 -10
- package/dist/styles/recipes/flow.css +5 -3
- package/dist/styles/recipes/gradient-editor.css +8 -0
- package/dist/styles/recipes/icon-picker.css +45 -10
- package/dist/styles/recipes/inline-attachment.css +4 -4
- package/dist/styles/recipes/inline-citation.css +2 -2
- package/dist/styles/recipes/item.css +4 -4
- package/dist/styles/recipes/markdown-editor.css +35 -24
- package/dist/styles/recipes/markdown.css +23 -27
- package/dist/styles/recipes/page-layout.css +13 -11
- package/dist/styles/recipes/popup-controls.css +2 -2
- package/dist/styles/recipes/popup-lists.css +3 -3
- package/dist/styles/recipes/popup.css +11 -9
- package/dist/styles/recipes/range.css +4 -5
- package/dist/styles/recipes/resizable.css +15 -10
- package/dist/styles/recipes/resize-handle.css +2 -2
- package/dist/styles/recipes/scroll-area.css +1 -1
- package/dist/styles/recipes/sidebar-menu.css +5 -15
- package/dist/styles/recipes/sidebar-mobile.css +4 -4
- package/dist/styles/recipes/sidebar-parts.css +26 -1
- package/dist/styles/recipes/sidebar.css +18 -31
- package/dist/styles/recipes/skeleton.css +10 -5
- package/dist/styles/recipes/stepper.css +1 -1
- package/dist/styles/recipes/switch.css +12 -11
- package/dist/styles/recipes/table-of-contents.css +6 -8
- package/dist/styles/recipes/table.css +4 -4
- package/dist/styles/recipes/tabs.css +10 -5
- package/dist/styles/recipes/task-list.css +3 -3
- package/dist/styles/recipes/tree.css +10 -3
- package/dist/styles/recipes/user-ask-details.css +5 -4
- package/dist/styles/recipes/user-ask.css +5 -5
- package/dist/styles/theme.css +158 -177
- package/dist/ui/chart-cartesian.d.ts +801 -0
- package/dist/ui/chart-cartesian.js +420 -0
- package/dist/ui/chart-colors.d.ts +7 -0
- package/dist/ui/chart-colors.js +27 -0
- package/dist/ui/chart-curves.d.ts +7 -0
- package/dist/ui/chart-curves.js +87 -0
- package/dist/ui/chart-marks.d.ts +68 -0
- package/dist/ui/chart-marks.js +227 -0
- package/dist/ui/chart-polar.d.ts +103 -0
- package/dist/ui/chart-polar.js +124 -0
- package/dist/ui/chart-series.d.ts +36 -0
- package/dist/ui/chart-series.js +71 -0
- package/dist/ui/chart.d.ts +32 -0
- package/dist/ui/chart.js +257 -0
- package/dist/ui/color-picker-area.d.ts +16 -0
- package/dist/ui/color-picker-area.js +175 -0
- package/dist/ui/color-picker-context.d.ts +27 -0
- package/dist/ui/color-picker-context.js +87 -0
- package/dist/ui/color-picker-contrast.d.ts +20 -0
- package/dist/ui/color-picker-contrast.js +129 -0
- package/dist/ui/color-picker-sliders.d.ts +15 -0
- package/dist/ui/color-picker-sliders.js +146 -0
- package/dist/ui/color-picker-swatches.d.ts +23 -0
- package/dist/ui/color-picker-swatches.js +94 -0
- package/dist/ui/color-picker-values.d.ts +59 -0
- package/dist/ui/color-picker-values.js +244 -0
- package/dist/ui/color-picker.d.ts +15 -110
- package/dist/ui/color-picker.js +30 -759
- package/dist/ui/emoji-picker.d.ts +10 -1
- package/dist/ui/emoji-picker.js +71 -14
- package/dist/ui/flow.js +1 -1
- package/dist/ui/gradient-editor-controls.d.ts +19 -0
- package/dist/ui/gradient-editor-controls.js +75 -0
- package/dist/ui/gradient-editor.d.ts +23 -22
- package/dist/ui/gradient-editor.js +77 -123
- package/dist/ui/icon-picker.d.ts +1 -1
- package/dist/ui/icon-picker.js +11 -6
- package/dist/ui/markdown-elements.d.ts +3 -1
- package/dist/ui/markdown-elements.js +62 -22
- package/dist/ui/markdown-heading.d.ts +9 -0
- package/dist/ui/markdown-heading.js +25 -0
- package/dist/ui/resizable.js +24 -9
- package/dist/ui/sidebar-provider.js +3 -12
- package/dist/ui/typography.d.ts +1 -0
- package/dist/ui/typography.js +12 -3
- package/dist/user-ask.js +4 -8
- package/package.json +7 -3
- package/dist/ui/emoji-icon-picker.d.ts +0 -13
- package/dist/ui/emoji-icon-picker.js +0 -50
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
:where([data-control-family="popup"][data-popup-part="backdrop"]) {
|
|
90
90
|
--cui-popup-backdrop-background: oklch(from var(--foreground) l c h / var(--overlay-opacity));
|
|
91
91
|
background-color: var(--cui-popup-backdrop-background);
|
|
92
|
-
--cui-popup-backdrop-blur:
|
|
93
|
-
-webkit-backdrop-filter: var(--cui-popup-backdrop-blur);
|
|
94
|
-
backdrop-filter: var(--cui-popup-backdrop-blur);
|
|
92
|
+
--cui-popup-backdrop-blur: var(--backdrop-blur-overlay);
|
|
93
|
+
-webkit-backdrop-filter: blur(var(--cui-popup-backdrop-blur));
|
|
94
|
+
backdrop-filter: blur(var(--cui-popup-backdrop-blur));
|
|
95
95
|
transition: opacity var(--duration-base) var(--ease-emphasized);
|
|
96
96
|
}
|
|
97
97
|
:where(.dark [data-control-family="popup"][data-popup-part="backdrop"]) {
|
|
@@ -255,8 +255,9 @@
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
@property --cui-popup-radius {
|
|
258
|
-
syntax: "
|
|
258
|
+
syntax: "<length-percentage>";
|
|
259
259
|
inherits: true;
|
|
260
|
+
initial-value: 0px;
|
|
260
261
|
}
|
|
261
262
|
|
|
262
263
|
@property --cui-popup-background {
|
|
@@ -300,8 +301,9 @@
|
|
|
300
301
|
}
|
|
301
302
|
|
|
302
303
|
@property --cui-popup-backdrop-blur {
|
|
303
|
-
syntax: "
|
|
304
|
+
syntax: "<length>";
|
|
304
305
|
inherits: true;
|
|
306
|
+
initial-value: 0px;
|
|
305
307
|
}
|
|
306
308
|
|
|
307
309
|
@property --cui-popup-item-radius {
|
|
@@ -311,15 +313,15 @@
|
|
|
311
313
|
}
|
|
312
314
|
|
|
313
315
|
@property --cui-popup-item-font-size {
|
|
314
|
-
syntax: "<length>";
|
|
316
|
+
syntax: "<length-percentage>";
|
|
315
317
|
inherits: true;
|
|
316
318
|
initial-value: 0px;
|
|
317
319
|
}
|
|
318
320
|
|
|
319
321
|
@property --cui-popup-item-icon-size {
|
|
320
|
-
syntax: "<length>";
|
|
322
|
+
syntax: "<length-percentage>";
|
|
321
323
|
inherits: true;
|
|
322
|
-
initial-value:
|
|
324
|
+
initial-value: 0px;
|
|
323
325
|
}
|
|
324
326
|
|
|
325
327
|
@property --cui-popup-item-padding-block {
|
|
@@ -335,7 +337,7 @@
|
|
|
335
337
|
}
|
|
336
338
|
|
|
337
339
|
@property --cui-popup-item-min-height {
|
|
338
|
-
syntax: "<length>";
|
|
340
|
+
syntax: "<length-percentage>";
|
|
339
341
|
inherits: true;
|
|
340
342
|
initial-value: 0px;
|
|
341
343
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
:where([data-control-family="range"][data-range-kind="slider"][data-slot="track"][data-dragging]) {
|
|
54
|
-
background: oklch(from var(--foreground) l c h / 0.1);
|
|
54
|
+
--cui-range-track-background: oklch(from var(--foreground) l c h / 0.1);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
:where([data-control-family="range"][data-range-kind="slider"][data-slot="indicator"]),
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
|
|
110
110
|
:where([data-control-family="range"][data-range-kind="slider"][data-slot="thumb"][data-dragging]) {
|
|
111
111
|
scale: 1.1;
|
|
112
|
-
|
|
112
|
+
--cui-range-thumb-shadow: var(--shadow-md);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
:where([data-control-family="range"][data-range-kind="slider"][data-slot="thumb"][data-variant="plain"]) {
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
@property --cui-range-indeterminate-size {
|
|
315
315
|
syntax: "<length-percentage>";
|
|
316
316
|
inherits: true;
|
|
317
|
-
initial-value:
|
|
317
|
+
initial-value: 0px;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
@property --cui-range-track-radius {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
@property --cui-range-thumb-background {
|
|
351
|
-
syntax: "
|
|
351
|
+
syntax: "<color>";
|
|
352
352
|
inherits: true;
|
|
353
353
|
initial-value: transparent;
|
|
354
354
|
}
|
|
@@ -362,5 +362,4 @@
|
|
|
362
362
|
@property --cui-range-thumb-shadow {
|
|
363
363
|
syntax: "*";
|
|
364
364
|
inherits: true;
|
|
365
|
-
initial-value: none;
|
|
366
365
|
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
--cui-resizable-group-radius: var(--radius-panel);
|
|
5
5
|
--cui-resizable-group-border-color: var(--border);
|
|
6
6
|
--cui-resizable-group-border-width: var(--control-rim-width);
|
|
7
|
-
--cui-resizable-handle-
|
|
7
|
+
--cui-resizable-handle-background: transparent;
|
|
8
8
|
--cui-resizable-handle-hover-background: oklch(from var(--foreground) l c h / 0.25);
|
|
9
9
|
--cui-resizable-handle-active-background: oklch(from var(--foreground) l c h / 0.4);
|
|
10
|
-
--cui-resizable-grip-radius: var(--radius-
|
|
10
|
+
--cui-resizable-grip-radius: var(--radius-sm);
|
|
11
11
|
--cui-resizable-grip-background: var(--card);
|
|
12
12
|
--cui-resizable-grip-foreground: var(--muted-foreground);
|
|
13
13
|
background-color: var(--cui-resizable-group-background);
|
|
@@ -26,7 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:where([data-control-family="resizable"][data-slot="handle"]) {
|
|
29
|
-
--_resizable-gradient-color: var(--cui-resizable-handle-
|
|
29
|
+
--_resizable-gradient-color: var(--cui-resizable-handle-hover-background);
|
|
30
|
+
background-color: var(--cui-resizable-handle-background);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where([data-control-family="resizable"][data-slot="handle"][data-separator="active"]) {
|
|
34
|
+
--_resizable-gradient-color: var(--cui-resizable-handle-active-background);
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
:where([data-control-family="resizable"][data-slot="handle"][data-axis="vertical"]:not([data-cursor="none"])) {
|
|
@@ -38,7 +43,7 @@
|
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
:where([data-control-family="resizable"][data-slot="handle"][data-variant="solid"]) {
|
|
41
|
-
background
|
|
46
|
+
--cui-resizable-handle-background: var(--border);
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
:where([data-control-family="resizable"][data-slot="handle"][data-variant="solid"][data-separator="hover"]),
|
|
@@ -134,12 +139,6 @@
|
|
|
134
139
|
initial-value: 0px;
|
|
135
140
|
}
|
|
136
141
|
|
|
137
|
-
@property --cui-resizable-handle-color {
|
|
138
|
-
syntax: "<color>";
|
|
139
|
-
inherits: true;
|
|
140
|
-
initial-value: transparent;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
142
|
@property --cui-resizable-handle-hover-background {
|
|
144
143
|
syntax: "<color>";
|
|
145
144
|
inherits: true;
|
|
@@ -169,3 +168,9 @@
|
|
|
169
168
|
inherits: true;
|
|
170
169
|
initial-value: transparent;
|
|
171
170
|
}
|
|
171
|
+
|
|
172
|
+
@property --cui-resizable-handle-background {
|
|
173
|
+
syntax: "<color>";
|
|
174
|
+
inherits: true;
|
|
175
|
+
initial-value: transparent;
|
|
176
|
+
}
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
@property --cui-resize-handle-size {
|
|
87
|
-
syntax: "<length>";
|
|
87
|
+
syntax: "<length-percentage>";
|
|
88
88
|
inherits: true;
|
|
89
89
|
initial-value: 0px;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
@property --cui-resize-handle-hit-size {
|
|
93
|
-
syntax: "<length>";
|
|
93
|
+
syntax: "<length-percentage>";
|
|
94
94
|
inherits: true;
|
|
95
95
|
initial-value: 0px;
|
|
96
96
|
}
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
padding-inline: var(--cui-sidebar-menu-button-padding-inline);
|
|
20
20
|
font-size: var(--cui-sidebar-menu-button-font-size);
|
|
21
21
|
font-weight: var(--cui-sidebar-menu-button-font-weight);
|
|
22
|
-
background-color:
|
|
22
|
+
background-color: var(--cui-sidebar-menu-button-background);
|
|
23
|
+
box-shadow: var(--cui-sidebar-menu-button-shadow);
|
|
23
24
|
color: var(--cui-sidebar-menu-button-foreground);
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -116,20 +117,9 @@
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
:where([data-control-family="sidebar"][data-slot="menu-button"][data-variant="outline"]) {
|
|
119
|
-
background
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
@media (hover: hover) {
|
|
124
|
-
:where(
|
|
125
|
-
[data-control-family="sidebar"][data-slot="menu-button"][data-variant="outline"]:hover:not(
|
|
126
|
-
:disabled,
|
|
127
|
-
[data-disabled],
|
|
128
|
-
[aria-disabled="true"]
|
|
129
|
-
)
|
|
130
|
-
) {
|
|
131
|
-
box-shadow: 0 0 0 1px oklch(from var(--foreground) l c h / 0.08);
|
|
132
|
-
}
|
|
120
|
+
--cui-sidebar-menu-button-background: var(--background);
|
|
121
|
+
--cui-sidebar-menu-button-shadow: 0 0 0 1px var(--sidebar-border);
|
|
122
|
+
--cui-sidebar-menu-button-hover-shadow: 0 0 0 1px oklch(from var(--foreground) l c h / 0.08);
|
|
133
123
|
}
|
|
134
124
|
|
|
135
125
|
:where(
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
@property --cui-sidebar-nav-height {
|
|
115
|
-
syntax: "<length>";
|
|
115
|
+
syntax: "<length-percentage>";
|
|
116
116
|
inherits: true;
|
|
117
|
-
initial-value:
|
|
117
|
+
initial-value: 0px;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
@property --cui-sidebar-nav-background {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
@property --cui-sidebar-nav-gap {
|
|
168
|
-
syntax: "<length>";
|
|
168
|
+
syntax: "<length-percentage>";
|
|
169
169
|
inherits: true;
|
|
170
|
-
initial-value:
|
|
170
|
+
initial-value: 0px;
|
|
171
171
|
}
|
|
@@ -175,10 +175,35 @@
|
|
|
175
175
|
:where([data-control-family="sidebar"][data-slot="menu"]:is([data-indicator="hover"], [data-indicator="slide"])) {
|
|
176
176
|
gap: 0;
|
|
177
177
|
}
|
|
178
|
+
|
|
179
|
+
:where([data-control-family="sidebar"][data-slot="skip-link"]) {
|
|
180
|
+
position: absolute;
|
|
181
|
+
inset-block-start: calc(var(--spacing) * 3);
|
|
182
|
+
inset-inline-start: calc(var(--spacing) * 3);
|
|
183
|
+
z-index: var(--z-popup);
|
|
184
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
185
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
186
|
+
border-radius: var(--cui-sidebar-skip-link-radius);
|
|
187
|
+
background-color: var(--cui-sidebar-skip-link-background);
|
|
188
|
+
color: var(--cui-sidebar-skip-link-foreground);
|
|
189
|
+
box-shadow: var(--cui-sidebar-skip-link-shadow);
|
|
190
|
+
font-size: var(--text-body);
|
|
191
|
+
font-weight: var(--font-weight-medium);
|
|
192
|
+
text-decoration: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:where([data-control-family="sidebar"][data-slot="skip-link"]:not(:focus)) {
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
inline-size: 1px;
|
|
198
|
+
block-size: 1px;
|
|
199
|
+
padding: 0;
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
clip-path: inset(50%);
|
|
202
|
+
}
|
|
178
203
|
}
|
|
179
204
|
|
|
180
205
|
@property --cui-sidebar-menu-badge-height {
|
|
181
|
-
syntax: "<length>";
|
|
206
|
+
syntax: "<length-percentage>";
|
|
182
207
|
inherits: true;
|
|
183
208
|
initial-value: 0px;
|
|
184
209
|
}
|
|
@@ -17,31 +17,6 @@
|
|
|
17
17
|
background-image: var(--cui-sidebar-wrapper-background-image);
|
|
18
18
|
}
|
|
19
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
|
-
|
|
45
20
|
:where([data-control-family="sidebar"][data-slot="wrapper"]:has([data-control-family="sidebar"][data-variant="inset"][data-state])) {
|
|
46
21
|
--cui-sidebar-wrapper-background: var(--sidebar);
|
|
47
22
|
}
|
|
@@ -78,6 +53,8 @@
|
|
|
78
53
|
--cui-sidebar-menu-badge-height: calc(var(--spacing) * 5);
|
|
79
54
|
--cui-sidebar-menu-badge-background: oklch(from var(--sidebar-foreground) l c h / 0.08);
|
|
80
55
|
--cui-sidebar-menu-badge-foreground: var(--sidebar-foreground);
|
|
56
|
+
--cui-sidebar-menu-button-background: transparent;
|
|
57
|
+
--cui-sidebar-menu-button-shadow: 0 0 transparent;
|
|
81
58
|
--cui-sidebar-menu-button-hover-background: var(--hover-fill);
|
|
82
59
|
--cui-sidebar-menu-button-hover-foreground: var(--foreground);
|
|
83
60
|
--cui-sidebar-menu-button-hover-shadow: 0 0 transparent;
|
|
@@ -181,7 +158,6 @@
|
|
|
181
158
|
@property --cui-sidebar-inner-backdrop-filter {
|
|
182
159
|
syntax: "*";
|
|
183
160
|
inherits: true;
|
|
184
|
-
initial-value: none;
|
|
185
161
|
}
|
|
186
162
|
|
|
187
163
|
@property --cui-sidebar-inner-border-width {
|
|
@@ -331,7 +307,7 @@
|
|
|
331
307
|
@property --cui-sidebar-menu-button-font-size {
|
|
332
308
|
syntax: "<length-percentage>";
|
|
333
309
|
inherits: true;
|
|
334
|
-
initial-value:
|
|
310
|
+
initial-value: 0px;
|
|
335
311
|
}
|
|
336
312
|
|
|
337
313
|
@property --cui-sidebar-menu-button-font-weight {
|
|
@@ -343,25 +319,25 @@
|
|
|
343
319
|
@property --cui-sidebar-menu-button-active-font-weight {
|
|
344
320
|
syntax: "<number>";
|
|
345
321
|
inherits: true;
|
|
346
|
-
initial-value:
|
|
322
|
+
initial-value: 400;
|
|
347
323
|
}
|
|
348
324
|
|
|
349
325
|
@property --cui-sidebar-group-label-font-size {
|
|
350
326
|
syntax: "<length-percentage>";
|
|
351
327
|
inherits: true;
|
|
352
|
-
initial-value:
|
|
328
|
+
initial-value: 0px;
|
|
353
329
|
}
|
|
354
330
|
|
|
355
331
|
@property --cui-sidebar-group-label-font-weight {
|
|
356
332
|
syntax: "<number>";
|
|
357
333
|
inherits: true;
|
|
358
|
-
initial-value:
|
|
334
|
+
initial-value: 400;
|
|
359
335
|
}
|
|
360
336
|
|
|
361
337
|
@property --cui-sidebar-group-label-letter-spacing {
|
|
362
338
|
syntax: "<length>";
|
|
363
339
|
inherits: true;
|
|
364
|
-
initial-value:
|
|
340
|
+
initial-value: 0px;
|
|
365
341
|
}
|
|
366
342
|
|
|
367
343
|
@property --cui-sidebar-group-label-text-transform {
|
|
@@ -398,3 +374,14 @@
|
|
|
398
374
|
syntax: "*";
|
|
399
375
|
inherits: true;
|
|
400
376
|
}
|
|
377
|
+
|
|
378
|
+
@property --cui-sidebar-menu-button-background {
|
|
379
|
+
syntax: "<color>";
|
|
380
|
+
inherits: true;
|
|
381
|
+
initial-value: transparent;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
@property --cui-sidebar-menu-button-shadow {
|
|
385
|
+
syntax: "*";
|
|
386
|
+
inherits: true;
|
|
387
|
+
}
|
|
@@ -15,13 +15,17 @@
|
|
|
15
15
|
background-image: var(--cui-skeleton-background-image);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
:where([data-control-family="skeleton"][data-slot="root"][data-variant="shimmer"]) {
|
|
19
|
+
--cui-skeleton-easing: linear;
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
:where([data-control-family="skeleton"][data-slot="root"][data-variant="shimmer"])::after {
|
|
19
23
|
content: "";
|
|
20
24
|
position: absolute;
|
|
21
25
|
inset: 0;
|
|
22
26
|
pointer-events: none;
|
|
23
27
|
background-image: linear-gradient(90deg, transparent, var(--cui-skeleton-highlight-background), transparent);
|
|
24
|
-
transform: translateX(-
|
|
28
|
+
transform: translateX(-125%);
|
|
25
29
|
animation: cui-skeleton-shimmer var(--cui-skeleton-animation-duration) var(--cui-skeleton-easing) infinite;
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -47,8 +51,11 @@
|
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
@keyframes cui-skeleton-shimmer {
|
|
54
|
+
from {
|
|
55
|
+
transform: translateX(-125%);
|
|
56
|
+
}
|
|
50
57
|
to {
|
|
51
|
-
transform: translateX(
|
|
58
|
+
transform: translateX(125%);
|
|
52
59
|
}
|
|
53
60
|
}
|
|
54
61
|
|
|
@@ -77,7 +84,6 @@
|
|
|
77
84
|
@property --cui-skeleton-background-image {
|
|
78
85
|
syntax: "*";
|
|
79
86
|
inherits: true;
|
|
80
|
-
initial-value: none;
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
@property --cui-skeleton-highlight-background {
|
|
@@ -95,11 +101,10 @@
|
|
|
95
101
|
@property --cui-skeleton-easing {
|
|
96
102
|
syntax: "*";
|
|
97
103
|
inherits: true;
|
|
98
|
-
initial-value: ease;
|
|
99
104
|
}
|
|
100
105
|
|
|
101
106
|
@property --cui-skeleton-pulse-opacity {
|
|
102
107
|
syntax: "<number>";
|
|
103
108
|
inherits: true;
|
|
104
|
-
initial-value:
|
|
109
|
+
initial-value: 1;
|
|
105
110
|
}
|
|
@@ -238,38 +238,39 @@
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
@property --cui-switch-inline-size {
|
|
241
|
-
syntax: "<length>";
|
|
241
|
+
syntax: "<length-percentage>";
|
|
242
242
|
inherits: true;
|
|
243
|
-
initial-value:
|
|
243
|
+
initial-value: 0px;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
@property --cui-switch-height {
|
|
247
|
-
syntax: "<length>";
|
|
247
|
+
syntax: "<length-percentage>";
|
|
248
248
|
inherits: true;
|
|
249
|
-
initial-value:
|
|
249
|
+
initial-value: 0px;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
@property --cui-switch-padding {
|
|
253
|
-
syntax: "<length>";
|
|
253
|
+
syntax: "<length-percentage>";
|
|
254
254
|
inherits: true;
|
|
255
|
-
initial-value:
|
|
255
|
+
initial-value: 0px;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
@property --cui-switch-thumb-inline-size {
|
|
259
|
-
syntax: "<length>";
|
|
259
|
+
syntax: "<length-percentage>";
|
|
260
260
|
inherits: true;
|
|
261
|
-
initial-value:
|
|
261
|
+
initial-value: 0px;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
@property --cui-switch-thumb-press-inline-size {
|
|
265
|
-
syntax: "<length>";
|
|
265
|
+
syntax: "<length-percentage>";
|
|
266
266
|
inherits: true;
|
|
267
|
-
initial-value:
|
|
267
|
+
initial-value: 0px;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
@property --cui-switch-thumb-press-scale {
|
|
271
|
-
syntax: "
|
|
271
|
+
syntax: "<number>";
|
|
272
272
|
inherits: true;
|
|
273
|
+
initial-value: 1;
|
|
273
274
|
}
|
|
274
275
|
|
|
275
276
|
@property --cui-switch-thumb-backdrop-filter {
|
|
@@ -145,13 +145,11 @@
|
|
|
145
145
|
@property --cui-table-of-contents-shadow {
|
|
146
146
|
syntax: "*";
|
|
147
147
|
inherits: true;
|
|
148
|
-
initial-value: none;
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
@property --cui-table-of-contents-backdrop-filter {
|
|
152
151
|
syntax: "*";
|
|
153
152
|
inherits: true;
|
|
154
|
-
initial-value: none;
|
|
155
153
|
}
|
|
156
154
|
|
|
157
155
|
@property --cui-table-of-contents-padding {
|
|
@@ -169,7 +167,7 @@
|
|
|
169
167
|
@property --cui-table-of-contents-label-font-size {
|
|
170
168
|
syntax: "<length-percentage>";
|
|
171
169
|
inherits: true;
|
|
172
|
-
initial-value:
|
|
170
|
+
initial-value: 0px;
|
|
173
171
|
}
|
|
174
172
|
|
|
175
173
|
@property --cui-table-of-contents-label-font-weight {
|
|
@@ -205,7 +203,7 @@
|
|
|
205
203
|
@property --cui-table-of-contents-item-font-size {
|
|
206
204
|
syntax: "<length-percentage>";
|
|
207
205
|
inherits: true;
|
|
208
|
-
initial-value:
|
|
206
|
+
initial-value: 0px;
|
|
209
207
|
}
|
|
210
208
|
|
|
211
209
|
@property --cui-table-of-contents-item-line-height {
|
|
@@ -239,7 +237,7 @@
|
|
|
239
237
|
}
|
|
240
238
|
|
|
241
239
|
@property --cui-table-of-contents-item-indent-size {
|
|
242
|
-
syntax: "<length>";
|
|
240
|
+
syntax: "<length-percentage>";
|
|
243
241
|
inherits: true;
|
|
244
242
|
initial-value: 0px;
|
|
245
243
|
}
|
|
@@ -251,7 +249,7 @@
|
|
|
251
249
|
}
|
|
252
250
|
|
|
253
251
|
@property --cui-table-of-contents-rail-size {
|
|
254
|
-
syntax: "<length>";
|
|
252
|
+
syntax: "<length-percentage>";
|
|
255
253
|
inherits: true;
|
|
256
254
|
initial-value: 0px;
|
|
257
255
|
}
|
|
@@ -263,7 +261,7 @@
|
|
|
263
261
|
}
|
|
264
262
|
|
|
265
263
|
@property --cui-table-of-contents-trail-size {
|
|
266
|
-
syntax: "<length>";
|
|
264
|
+
syntax: "<length-percentage>";
|
|
267
265
|
inherits: true;
|
|
268
266
|
initial-value: 0px;
|
|
269
267
|
}
|
|
@@ -275,7 +273,7 @@
|
|
|
275
273
|
}
|
|
276
274
|
|
|
277
275
|
@property --cui-table-of-contents-scroll-inset {
|
|
278
|
-
syntax: "<length>";
|
|
276
|
+
syntax: "<length-percentage>";
|
|
279
277
|
inherits: true;
|
|
280
278
|
initial-value: 0px;
|
|
281
279
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
@property --cui-table-background {
|
|
88
|
-
syntax: "
|
|
88
|
+
syntax: "<color>";
|
|
89
89
|
inherits: true;
|
|
90
90
|
initial-value: transparent;
|
|
91
91
|
}
|
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
@property --cui-table-row-hover-background {
|
|
106
|
-
syntax: "
|
|
106
|
+
syntax: "<color>";
|
|
107
107
|
inherits: true;
|
|
108
108
|
initial-value: transparent;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
@property --cui-table-row-selected-background {
|
|
112
|
-
syntax: "
|
|
112
|
+
syntax: "<color>";
|
|
113
113
|
inherits: true;
|
|
114
114
|
initial-value: transparent;
|
|
115
115
|
}
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
@property --cui-table-footer-background {
|
|
124
|
-
syntax: "
|
|
124
|
+
syntax: "<color>";
|
|
125
125
|
inherits: true;
|
|
126
126
|
initial-value: transparent;
|
|
127
127
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
--cui-tabs-list-shadow: inset 0 0 0 var(--control-rim-width) var(--control-rim), var(--shadow-inset);
|
|
14
14
|
--cui-tabs-list-backdrop-filter: none;
|
|
15
15
|
--cui-tabs-indicator-background: var(--background);
|
|
16
|
+
--cui-tabs-indicator-background-image: none;
|
|
16
17
|
--cui-tabs-surface-background: var(--background);
|
|
17
18
|
--cui-tabs-surface-radius: var(--radius-panel);
|
|
18
19
|
--cui-tabs-foreground: var(--muted-foreground);
|
|
@@ -53,7 +54,8 @@
|
|
|
53
54
|
width: var(--active-tab-width);
|
|
54
55
|
transform: translateX(var(--active-tab-left)) translateY(-50%);
|
|
55
56
|
border-radius: var(--_tabs-trigger-radius-fit);
|
|
56
|
-
background: var(--cui-tabs-indicator-background);
|
|
57
|
+
background-color: var(--cui-tabs-indicator-background);
|
|
58
|
+
background-image: var(--cui-tabs-indicator-background-image);
|
|
57
59
|
box-shadow: var(--cui-tabs-indicator-shadow);
|
|
58
60
|
/* Compositor transforms tear the strip while its width resizes. */
|
|
59
61
|
transition:
|
|
@@ -244,7 +246,7 @@
|
|
|
244
246
|
}
|
|
245
247
|
|
|
246
248
|
@property --cui-tabs-surface-radius {
|
|
247
|
-
syntax: "<length>";
|
|
249
|
+
syntax: "<length-percentage>";
|
|
248
250
|
inherits: true;
|
|
249
251
|
initial-value: 0px;
|
|
250
252
|
}
|
|
@@ -276,11 +278,10 @@
|
|
|
276
278
|
@property --cui-tabs-list-backdrop-filter {
|
|
277
279
|
syntax: "*";
|
|
278
280
|
inherits: true;
|
|
279
|
-
initial-value: none;
|
|
280
281
|
}
|
|
281
282
|
|
|
282
283
|
@property --cui-tabs-indicator-background {
|
|
283
|
-
syntax: "
|
|
284
|
+
syntax: "<color>";
|
|
284
285
|
inherits: true;
|
|
285
286
|
initial-value: transparent;
|
|
286
287
|
}
|
|
@@ -306,7 +307,6 @@
|
|
|
306
307
|
@property --cui-tabs-indicator-shadow {
|
|
307
308
|
syntax: "*";
|
|
308
309
|
inherits: true;
|
|
309
|
-
initial-value: none;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
@property --cui-tabs-list-shadow {
|
|
@@ -325,3 +325,8 @@
|
|
|
325
325
|
inherits: true;
|
|
326
326
|
initial-value: 0px;
|
|
327
327
|
}
|
|
328
|
+
|
|
329
|
+
@property --cui-tabs-indicator-background-image {
|
|
330
|
+
syntax: "*";
|
|
331
|
+
inherits: true;
|
|
332
|
+
}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
@property --cui-task-list-radius {
|
|
118
|
-
syntax: "<length>";
|
|
118
|
+
syntax: "<length-percentage>";
|
|
119
119
|
inherits: true;
|
|
120
120
|
initial-value: 0px;
|
|
121
121
|
}
|
|
@@ -127,13 +127,13 @@
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
@property --cui-task-list-items-padding {
|
|
130
|
-
syntax: "<length>";
|
|
130
|
+
syntax: "<length-percentage>";
|
|
131
131
|
inherits: true;
|
|
132
132
|
initial-value: 0px;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
@property --cui-task-list-item-radius {
|
|
136
|
-
syntax: "<length>";
|
|
136
|
+
syntax: "<length-percentage>";
|
|
137
137
|
inherits: true;
|
|
138
138
|
initial-value: 0px;
|
|
139
139
|
}
|