@ctrl-ui/react 0.8.4 → 0.8.5
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/audio-visualizer.js +1 -1
- package/dist/chat-composer-editor/extensions/mention.js +4 -0
- package/dist/chat-layout.d.ts +5 -0
- package/dist/chat-layout.js +61 -20
- package/dist/chat-message.d.ts +5 -0
- package/dist/chat-message.js +19 -2
- package/dist/context.js +0 -2
- package/dist/email/email-brand.d.ts +60 -0
- package/dist/email/email-brand.js +101 -0
- package/dist/email/email-code.d.ts +18 -0
- package/dist/email/email-code.js +172 -0
- package/dist/email/email-footer.d.ts +63 -0
- package/dist/email/email-footer.js +98 -0
- package/dist/email/email.d.ts +60 -11
- package/dist/email/email.js +155 -24
- package/dist/email/templates.d.ts +54 -9
- package/dist/email/templates.js +314 -116
- package/dist/email/theme.d.ts +13 -5
- package/dist/email/theme.js +30 -8
- package/dist/hooks/use-chat-message.d.ts +1 -0
- package/dist/hooks/use-chat-message.js +1 -0
- package/dist/hooks/use-chat-thread-scroll.d.ts +8 -0
- package/dist/hooks/use-chat-thread-scroll.js +66 -0
- package/dist/hooks/use-user-ask.d.ts +6 -4
- package/dist/hooks/use-user-ask.js +56 -17
- package/dist/inline-attachment.js +1 -1
- package/dist/knob-contracts/action-bar-knobs.d.ts +1 -1
- package/dist/knob-contracts/action-bar-knobs.js +1 -1
- package/dist/knob-contracts/activity-knobs.d.ts +1 -1
- package/dist/knob-contracts/activity-knobs.js +2 -1
- package/dist/knob-contracts/audio-visualizer-knobs.d.ts +1 -1
- package/dist/knob-contracts/audio-visualizer-knobs.js +1 -0
- package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-composer-attachment-knobs.js +2 -0
- package/dist/knob-contracts/chat-composer-knobs.d.ts +1 -1
- package/dist/knob-contracts/chat-composer-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 +3 -1
- package/dist/knob-contracts/context-knobs.d.ts +1 -1
- package/dist/knob-contracts/context-knobs.js +3 -0
- package/dist/knob-contracts/inline-attachment-knobs.d.ts +1 -1
- package/dist/knob-contracts/inline-attachment-knobs.js +4 -0
- package/dist/knob-contracts/inline-citation-knobs.d.ts +1 -1
- package/dist/knob-contracts/inline-citation-knobs.js +3 -1
- package/dist/knob-contracts/page-layout-knobs.d.ts +4 -0
- package/dist/knob-contracts/page-layout-knobs.js +15 -0
- package/dist/knob-contracts/table-of-contents-knobs.d.ts +1 -1
- package/dist/knob-contracts/table-of-contents-knobs.js +3 -3
- package/dist/knob-contracts/task-list-knobs.d.ts +1 -1
- package/dist/knob-contracts/task-list-knobs.js +4 -0
- package/dist/knob-contracts/user-ask-knobs.d.ts +1 -1
- package/dist/knob-contracts/user-ask-knobs.js +4 -0
- package/dist/lib/phone-input-format.js +1 -1
- package/dist/markdown-block.js +1 -1
- package/dist/styles/index.css +2 -1
- package/dist/styles/recipes/action-bar.css +37 -5
- package/dist/styles/recipes/activity.css +36 -3
- package/dist/styles/recipes/alert.css +2 -0
- package/dist/styles/recipes/audio-visualizer.css +8 -1
- package/dist/styles/recipes/button-group.css +8 -0
- package/dist/styles/recipes/button.css +15 -0
- package/dist/styles/recipes/calendar.css +21 -0
- package/dist/styles/recipes/card.css +2 -0
- package/dist/styles/recipes/chat-composer-attachment.css +33 -2
- package/dist/styles/recipes/chat-composer.css +16 -2
- package/dist/styles/recipes/chat-layout.css +25 -1
- package/dist/styles/recipes/chat-message.css +69 -2
- package/dist/styles/recipes/choice.css +12 -0
- package/dist/styles/recipes/code-diff.css +1 -0
- package/dist/styles/recipes/code.css +25 -0
- package/dist/styles/recipes/context.css +30 -18
- package/dist/styles/recipes/dynamic-notification-input.css +6 -0
- package/dist/styles/recipes/dynamic-notification.css +1 -0
- package/dist/styles/recipes/environment-variables.css +1 -0
- package/dist/styles/recipes/field-parts.css +2 -0
- package/dist/styles/recipes/field.css +6 -0
- package/dist/styles/recipes/gradient-editor.css +17 -0
- package/dist/styles/recipes/inline-attachment.css +57 -14
- package/dist/styles/recipes/inline-citation.css +44 -6
- package/dist/styles/recipes/item.css +3 -1
- package/dist/styles/recipes/markdown-block.css +1 -0
- package/dist/styles/recipes/markdown.css +7 -0
- package/dist/styles/recipes/page-layout.css +203 -0
- package/dist/styles/recipes/pagination.css +16 -0
- package/dist/styles/recipes/popup-drawer.css +3 -1
- package/dist/styles/recipes/popup-toast.css +2 -0
- package/dist/styles/recipes/popup.css +8 -12
- package/dist/styles/recipes/range.css +24 -2
- package/dist/styles/recipes/rich-tooltip.css +1 -0
- package/dist/styles/recipes/source-badge.css +20 -0
- package/dist/styles/recipes/table-of-contents.css +10 -10
- package/dist/styles/recipes/tabs.css +16 -0
- package/dist/styles/recipes/task-list.css +61 -8
- package/dist/styles/recipes/thread-rail.css +19 -13
- package/dist/styles/recipes/toolbar.css +21 -0
- package/dist/styles/recipes/transcript-divider.css +1 -0
- package/dist/styles/recipes/user-ask.css +59 -16
- package/dist/styles/theme.css +34 -0
- package/dist/thread-rail.js +1 -1
- package/dist/ui/alert-dialog.js +2 -2
- package/dist/ui/autocomplete.js +1 -1
- package/dist/ui/color-picker.js +4 -4
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/command.d.ts +5 -3
- package/dist/ui/command.js +27 -3
- package/dist/ui/context-menu.js +2 -2
- package/dist/ui/dialog.js +2 -2
- package/dist/ui/drawer.js +2 -2
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/dropzone.js +4 -1
- package/dist/ui/gradient-editor.js +2 -2
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/infinite-canvas.js +1 -0
- package/dist/ui/menubar.js +2 -2
- package/dist/ui/navigation-menu.js +1 -1
- package/dist/ui/number-field.js +1 -1
- package/dist/ui/page-layout.d.ts +44 -0
- package/dist/ui/page-layout.js +108 -0
- package/dist/ui/phone-input.js +4 -4
- package/dist/ui/popover.js +1 -1
- package/dist/ui/resizable.js +1 -1
- package/dist/ui/rich-tooltip.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/sidebar-resize-rail.js +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/toast.js +2 -2
- package/dist/ui/tooltip.js +1 -1
- package/dist/ui/trigger-menu.js +1 -1
- package/dist/user-ask.d.ts +5 -3
- package/dist/user-ask.js +38 -13
- package/package.json +3 -2
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
color: var(--foreground);
|
|
101
101
|
font-size: var(--text-label);
|
|
102
102
|
font-weight: var(--font-weight-medium);
|
|
103
|
+
text-wrap: balance;
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="label"]) {
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="description"]) {
|
|
116
117
|
color: var(--muted-foreground);
|
|
117
118
|
font-size: var(--text-caption);
|
|
119
|
+
text-wrap: pretty;
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
:where([data-control-family="field"][data-field-kind="field"][data-slot="error"]) {
|
|
@@ -172,6 +172,12 @@
|
|
|
172
172
|
:where([data-control-family="field"][data-field-kind="phone-input"][data-slot="input"]) {
|
|
173
173
|
padding-inline: calc(var(--spacing) * 3);
|
|
174
174
|
}
|
|
175
|
+
|
|
176
|
+
@media (pointer: coarse) {
|
|
177
|
+
:where([data-control-family="field"]:is(input, textarea)) {
|
|
178
|
+
font-size: max(16px, var(--cui-field-font-size));
|
|
179
|
+
}
|
|
180
|
+
}
|
|
175
181
|
}
|
|
176
182
|
|
|
177
183
|
@property --cui-field-radius {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
:where([data-control-family="gradient-editor"][data-slot="track"]) {
|
|
26
26
|
block-size: calc(var(--spacing) * 6);
|
|
27
|
+
touch-action: pan-y;
|
|
27
28
|
border: 0;
|
|
28
29
|
border-radius: var(--cui-gradient-editor-track-radius);
|
|
29
30
|
box-shadow: inset 0 0 0 1px oklch(from var(--border) l c h / 0.6);
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
:where([data-control-family="gradient-editor"][data-slot="stop"]) {
|
|
33
34
|
inline-size: calc(var(--spacing) * 5);
|
|
34
35
|
block-size: calc(var(--spacing) * 5);
|
|
36
|
+
touch-action: pan-y;
|
|
35
37
|
border: var(--cui-gradient-editor-stop-border-width) solid var(--cui-gradient-editor-stop-border-color);
|
|
36
38
|
border-radius: var(--cui-gradient-editor-stop-radius);
|
|
37
39
|
box-shadow: var(--cui-gradient-editor-stop-shadow);
|
|
@@ -58,6 +60,21 @@
|
|
|
58
60
|
:where([data-control-family="gradient-editor"][data-slot="stop"][data-selected="true"]) {
|
|
59
61
|
scale: 115% 115%;
|
|
60
62
|
}
|
|
63
|
+
|
|
64
|
+
@media (pointer: coarse) {
|
|
65
|
+
:where([data-control-family="gradient-editor"][data-slot="stop-add"]) {
|
|
66
|
+
position: relative;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where([data-control-family="gradient-editor"][data-slot="stop-add"])::after {
|
|
70
|
+
content: "";
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 50% 50%;
|
|
73
|
+
translate: -50% -50%;
|
|
74
|
+
inline-size: max(100%, 44px);
|
|
75
|
+
block-size: max(100%, 44px);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
61
78
|
}
|
|
62
79
|
|
|
63
80
|
@property --cui-gradient-editor-preview-radius {
|
|
@@ -1,33 +1,49 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="inline-attachment"][data-slot="root"]) {
|
|
3
|
-
--cui-inline-attachment-background: var(--
|
|
3
|
+
--cui-inline-attachment-background: var(--card);
|
|
4
4
|
--cui-inline-attachment-hover-shadow: var(--shadow-md);
|
|
5
|
-
--cui-inline-attachment-
|
|
5
|
+
--cui-inline-attachment-padding: calc(var(--spacing) * 3);
|
|
6
|
+
--cui-inline-attachment-radius: var(--radius-field);
|
|
6
7
|
--cui-inline-attachment-ring-color: var(--border);
|
|
7
8
|
--cui-inline-attachment-image-outline-color: oklch(from var(--foreground) l c h / 0.1);
|
|
8
9
|
--cui-inline-attachment-shadow: var(--shadow-sm);
|
|
9
10
|
--cui-inline-attachment-content-background: oklch(from var(--background) l c h / 0.85);
|
|
10
11
|
--cui-inline-attachment-content-foreground: var(--foreground);
|
|
11
|
-
--cui-inline-attachment-content-radius:
|
|
12
|
+
--cui-inline-attachment-content-radius: max(
|
|
13
|
+
var(--radius-sm),
|
|
14
|
+
calc(var(--cui-inline-attachment-radius) - var(--cui-inline-attachment-padding))
|
|
15
|
+
);
|
|
12
16
|
--cui-inline-attachment-content-shadow: var(--shadow-sm);
|
|
17
|
+
--cui-inline-attachment-document-padding: calc(var(--spacing) * 5);
|
|
18
|
+
--cui-inline-attachment-document-background: var(--muted);
|
|
19
|
+
--cui-inline-attachment-document-background-image: none;
|
|
13
20
|
border-radius: var(--cui-inline-attachment-radius);
|
|
14
21
|
background: var(--cui-inline-attachment-background);
|
|
15
22
|
box-shadow:
|
|
16
|
-
inset 0 0 0
|
|
23
|
+
inset 0 0 0 var(--control-rim-width) var(--cui-inline-attachment-ring-color),
|
|
17
24
|
var(--cui-inline-attachment-shadow);
|
|
18
25
|
text-align: left;
|
|
26
|
+
transition-property: box-shadow;
|
|
27
|
+
transition-duration: var(--duration-fast);
|
|
28
|
+
transition-timing-function: var(--ease-standard);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where([data-control-family="inline-attachment"][data-slot="root"]:focus-visible) {
|
|
32
|
+
box-shadow:
|
|
33
|
+
inset 0 0 0 var(--control-rim-width) var(--cui-inline-attachment-ring-color),
|
|
34
|
+
var(--cui-inline-attachment-hover-shadow);
|
|
19
35
|
}
|
|
20
36
|
|
|
21
37
|
@media (hover: hover) {
|
|
22
38
|
:where([data-control-family="inline-attachment"][data-slot="root"]:hover) {
|
|
23
39
|
box-shadow:
|
|
24
|
-
inset 0 0 0
|
|
40
|
+
inset 0 0 0 var(--control-rim-width) var(--cui-inline-attachment-ring-color),
|
|
25
41
|
var(--cui-inline-attachment-hover-shadow);
|
|
26
42
|
}
|
|
27
43
|
|
|
28
44
|
:where([data-control-family="inline-attachment"][data-slot="root"]:disabled:hover) {
|
|
29
45
|
box-shadow:
|
|
30
|
-
inset 0 0 0
|
|
46
|
+
inset 0 0 0 var(--control-rim-width) var(--cui-inline-attachment-ring-color),
|
|
31
47
|
var(--cui-inline-attachment-shadow);
|
|
32
48
|
}
|
|
33
49
|
}
|
|
@@ -38,21 +54,22 @@
|
|
|
38
54
|
|
|
39
55
|
:where([data-control-family="inline-attachment"][data-slot="media-image"]) {
|
|
40
56
|
border-radius: inherit;
|
|
41
|
-
outline:
|
|
42
|
-
outline-offset: -
|
|
57
|
+
outline: var(--control-rim-width) solid var(--cui-inline-attachment-image-outline-color);
|
|
58
|
+
outline-offset: calc(var(--control-rim-width) * -1);
|
|
43
59
|
}
|
|
44
60
|
|
|
45
61
|
:where([data-control-family="inline-attachment"][data-slot="document"]) {
|
|
46
|
-
padding:
|
|
47
|
-
background:
|
|
62
|
+
padding: var(--cui-inline-attachment-document-padding);
|
|
63
|
+
background: var(--cui-inline-attachment-document-background);
|
|
64
|
+
background-image: var(--cui-inline-attachment-document-background-image);
|
|
48
65
|
}
|
|
49
66
|
|
|
50
67
|
:where([data-control-family="inline-attachment"][data-slot="document-sheet"]) {
|
|
51
68
|
padding: calc(var(--spacing) * 4);
|
|
52
|
-
border-radius:
|
|
69
|
+
border-radius: max(0px, calc(var(--cui-inline-attachment-radius) - var(--cui-inline-attachment-document-padding)));
|
|
53
70
|
background: oklch(from var(--card) l c h / 0.78);
|
|
54
71
|
box-shadow:
|
|
55
|
-
inset 0 0 0
|
|
72
|
+
inset 0 0 0 var(--control-rim-width) oklch(from var(--foreground) l c h / 0.1),
|
|
56
73
|
var(--shadow-sm);
|
|
57
74
|
}
|
|
58
75
|
|
|
@@ -94,11 +111,13 @@
|
|
|
94
111
|
margin-block-start: calc(var(--spacing) * 5);
|
|
95
112
|
block-size: calc(var(--spacing) * 9);
|
|
96
113
|
inline-size: calc(var(--spacing) * 24);
|
|
97
|
-
border:
|
|
98
|
-
border-radius:
|
|
114
|
+
border: var(--control-rim-width) dashed oklch(from var(--foreground) l c h / 0.18);
|
|
115
|
+
border-radius: var(--radius-control);
|
|
99
116
|
}
|
|
100
117
|
|
|
101
118
|
:where([data-control-family="inline-attachment"][data-slot="content"]) {
|
|
119
|
+
inset-inline: var(--cui-inline-attachment-padding);
|
|
120
|
+
inset-block-end: var(--cui-inline-attachment-padding);
|
|
102
121
|
padding-inline: calc(var(--spacing) * 3);
|
|
103
122
|
padding-block: calc(var(--spacing) * 1);
|
|
104
123
|
border-radius: var(--cui-inline-attachment-content-radius);
|
|
@@ -112,6 +131,7 @@
|
|
|
112
131
|
|
|
113
132
|
:where([data-control-family="inline-attachment"][data-slot="description"]) {
|
|
114
133
|
font-size: var(--text-micro);
|
|
134
|
+
font-variant-numeric: tabular-nums;
|
|
115
135
|
opacity: 0.65;
|
|
116
136
|
}
|
|
117
137
|
|
|
@@ -147,6 +167,29 @@
|
|
|
147
167
|
initial-value: transparent;
|
|
148
168
|
}
|
|
149
169
|
|
|
170
|
+
@property --cui-inline-attachment-padding {
|
|
171
|
+
syntax: "<length>";
|
|
172
|
+
inherits: true;
|
|
173
|
+
initial-value: 0px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@property --cui-inline-attachment-document-padding {
|
|
177
|
+
syntax: "<length>";
|
|
178
|
+
inherits: true;
|
|
179
|
+
initial-value: 0px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@property --cui-inline-attachment-document-background {
|
|
183
|
+
syntax: "<color>";
|
|
184
|
+
inherits: true;
|
|
185
|
+
initial-value: transparent;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@property --cui-inline-attachment-document-background-image {
|
|
189
|
+
syntax: "*";
|
|
190
|
+
inherits: true;
|
|
191
|
+
}
|
|
192
|
+
|
|
150
193
|
@property --cui-inline-attachment-shadow {
|
|
151
194
|
syntax: "*";
|
|
152
195
|
inherits: true;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
:where([data-control-family="inline-citation"][data-slot="root"]),
|
|
3
3
|
:where([data-control-ui="inline-citation"][data-slot="content"]) {
|
|
4
|
+
--cui-inline-citation-favicon-background: var(--muted);
|
|
5
|
+
--cui-inline-citation-favicon-radius: 9999px;
|
|
4
6
|
--cui-inline-citation-navigation-background: oklch(from var(--muted) l c h / 0.45);
|
|
5
7
|
--cui-inline-citation-quote-background: oklch(from var(--muted) l c h / 0.55);
|
|
6
8
|
--cui-inline-citation-quote-radius: var(--radius-control);
|
|
@@ -34,19 +36,39 @@
|
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
|
|
39
|
+
:where([data-control-family="inline-citation"][data-slot="trigger"]:focus-visible) {
|
|
40
|
+
background: var(--cui-inline-citation-trigger-hover-background);
|
|
41
|
+
color: var(--cui-inline-citation-trigger-hover-foreground);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (pointer: coarse) {
|
|
45
|
+
:where([data-control-family="inline-citation"][data-slot="trigger"]) {
|
|
46
|
+
position: relative;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where([data-control-family="inline-citation"][data-slot="trigger"])::after {
|
|
50
|
+
content: "";
|
|
51
|
+
position: absolute;
|
|
52
|
+
inset: 50% 50%;
|
|
53
|
+
translate: -50% -50%;
|
|
54
|
+
inline-size: 100%;
|
|
55
|
+
block-size: max(100%, 44px);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
37
59
|
:where([data-control-ui="inline-citation"][data-slot="favicon"]) {
|
|
38
60
|
inline-size: calc(var(--spacing) * 3.5);
|
|
39
61
|
block-size: calc(var(--spacing) * 3.5);
|
|
40
|
-
border:
|
|
41
|
-
border-radius:
|
|
42
|
-
background: var(--
|
|
62
|
+
border: var(--control-rim-width) solid var(--background);
|
|
63
|
+
border-radius: var(--cui-inline-citation-favicon-radius);
|
|
64
|
+
background: var(--cui-inline-citation-favicon-background);
|
|
43
65
|
}
|
|
44
66
|
|
|
45
67
|
:where([data-control-family="inline-citation"][data-slot="navigation"]) {
|
|
46
68
|
min-block-size: calc(var(--spacing) * 10);
|
|
47
69
|
gap: calc(var(--spacing) * 1);
|
|
48
70
|
padding-inline: calc(var(--spacing) * 2);
|
|
49
|
-
border-bottom:
|
|
71
|
+
border-bottom: var(--control-rim-width) solid var(--border);
|
|
50
72
|
background: var(--cui-inline-citation-navigation-background);
|
|
51
73
|
}
|
|
52
74
|
|
|
@@ -74,8 +96,8 @@
|
|
|
74
96
|
:where([data-control-ui="inline-citation"][data-slot="source-favicon"]) {
|
|
75
97
|
inline-size: calc(var(--spacing) * 5);
|
|
76
98
|
block-size: calc(var(--spacing) * 5);
|
|
77
|
-
border-radius:
|
|
78
|
-
background: var(--
|
|
99
|
+
border-radius: var(--cui-inline-citation-favicon-radius);
|
|
100
|
+
background: var(--cui-inline-citation-favicon-background);
|
|
79
101
|
}
|
|
80
102
|
|
|
81
103
|
:where([data-control-family="inline-citation"][data-slot="source-title"]) {
|
|
@@ -115,6 +137,10 @@
|
|
|
115
137
|
padding-inline: calc(var(--spacing) * 1);
|
|
116
138
|
font-variant-numeric: tabular-nums;
|
|
117
139
|
}
|
|
140
|
+
|
|
141
|
+
:where([data-control-family="inline-citation"][data-slot="label"]) {
|
|
142
|
+
font-variant-numeric: tabular-nums;
|
|
143
|
+
}
|
|
118
144
|
}
|
|
119
145
|
|
|
120
146
|
@property --cui-inline-citation-trigger-radius {
|
|
@@ -176,3 +202,15 @@
|
|
|
176
202
|
inherits: true;
|
|
177
203
|
initial-value: 0px;
|
|
178
204
|
}
|
|
205
|
+
|
|
206
|
+
@property --cui-inline-citation-favicon-background {
|
|
207
|
+
syntax: "<color>";
|
|
208
|
+
inherits: true;
|
|
209
|
+
initial-value: transparent;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@property --cui-inline-citation-favicon-radius {
|
|
213
|
+
syntax: "<length-percentage>";
|
|
214
|
+
inherits: true;
|
|
215
|
+
initial-value: 0px;
|
|
216
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--cui-item-hover-background: transparent;
|
|
5
5
|
--cui-item-hover-border-color: var(--_item-border-color);
|
|
6
6
|
--cui-item-border-width: 0px;
|
|
7
|
-
--cui-item-active-scale:
|
|
7
|
+
--cui-item-active-scale: 0.99;
|
|
8
8
|
--_item-background: transparent;
|
|
9
9
|
--_item-border-color: transparent;
|
|
10
10
|
outline: var(--cui-item-border-width) solid var(--_item-border-color);
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
font-size: var(--text-sm);
|
|
62
62
|
line-height: var(--leading-relaxed);
|
|
63
63
|
color: var(--muted-foreground);
|
|
64
|
+
text-wrap: pretty;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
:where([data-control-family="item"][data-slot="title"]) {
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
font-weight: var(--font-weight-medium);
|
|
70
71
|
line-height: 1;
|
|
71
72
|
color: var(--foreground);
|
|
73
|
+
text-wrap: balance;
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
:where([data-control-family="item"][data-slot="media"]) {
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
:where([data-control-family="markdown"][data-slot="paragraph"]) {
|
|
90
90
|
margin-block: calc(var(--spacing) * 3);
|
|
91
91
|
line-height: calc(var(--spacing) * 7);
|
|
92
|
+
text-wrap: pretty;
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
:where([data-control-family="markdown"][data-slot="h3"]) {
|
|
@@ -97,6 +98,8 @@
|
|
|
97
98
|
font-size: var(--text-base);
|
|
98
99
|
line-height: var(--text-base--line-height);
|
|
99
100
|
color: var(--foreground);
|
|
101
|
+
text-wrap: balance;
|
|
102
|
+
scroll-margin-block-start: calc(var(--spacing) * 6);
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
:where([data-control-family="markdown"][data-slot="h2"]) {
|
|
@@ -104,6 +107,8 @@
|
|
|
104
107
|
font-size: var(--text-lg);
|
|
105
108
|
line-height: var(--text-lg--line-height);
|
|
106
109
|
color: var(--foreground);
|
|
110
|
+
text-wrap: balance;
|
|
111
|
+
scroll-margin-block-start: calc(var(--spacing) * 6);
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
:where([data-control-family="markdown"][data-slot="h1"]) {
|
|
@@ -111,6 +116,8 @@
|
|
|
111
116
|
font-size: var(--text-xl);
|
|
112
117
|
line-height: var(--text-xl--line-height);
|
|
113
118
|
color: var(--foreground);
|
|
119
|
+
text-wrap: balance;
|
|
120
|
+
scroll-margin-block-start: calc(var(--spacing) * 6);
|
|
114
121
|
}
|
|
115
122
|
|
|
116
123
|
:where([data-control-family="markdown"][data-slot="h1"]),
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where([data-control-family="page-layout"][data-slot="root"]) {
|
|
3
|
+
--cui-page-layout-article-size: 40rem;
|
|
4
|
+
--cui-page-layout-aside-size: 11.25rem;
|
|
5
|
+
--cui-page-layout-padding-inline: calc(var(--spacing) * 5);
|
|
6
|
+
--cui-page-layout-padding-block: calc(var(--spacing) * 10) calc(var(--spacing) * 24);
|
|
7
|
+
--cui-page-layout-column-gap: calc(var(--spacing) * 5);
|
|
8
|
+
--cui-page-layout-header-gap: calc(var(--spacing) * 8);
|
|
9
|
+
--cui-page-layout-header-column-gap: calc(var(--spacing) * 4);
|
|
10
|
+
--cui-page-layout-header-row-gap: calc(var(--spacing) * 2);
|
|
11
|
+
--cui-page-layout-sticky-gap: 0px;
|
|
12
|
+
|
|
13
|
+
/* Header and body both read this, so they stop at the same right edge. */
|
|
14
|
+
--cui-page-layout-size: calc(var(--cui-page-layout-article-size) + var(--cui-page-layout-padding-inline) * 2);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([data-control-family="page-layout"][data-slot="root"][data-width="content"]) {
|
|
18
|
+
--cui-page-layout-article-size: 48rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where([data-control-family="page-layout"][data-slot="root"][data-width="wide"]) {
|
|
22
|
+
--cui-page-layout-article-size: 80rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where([data-control-family="page-layout"][data-slot="root"][data-width="full"]) {
|
|
26
|
+
--cui-page-layout-size: none;
|
|
27
|
+
--cui-page-layout-padding-inline: calc(var(--spacing) * 6);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-control-family="page-layout"][data-slot="header"]) {
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-columns: minmax(0, 1fr);
|
|
33
|
+
grid-template-areas: "title" "description" "actions";
|
|
34
|
+
align-items: center;
|
|
35
|
+
width: 100%;
|
|
36
|
+
max-width: var(--cui-page-layout-size);
|
|
37
|
+
margin-inline: auto;
|
|
38
|
+
column-gap: var(--cui-page-layout-header-column-gap);
|
|
39
|
+
row-gap: var(--cui-page-layout-header-row-gap);
|
|
40
|
+
padding-inline: var(--cui-page-layout-padding-inline);
|
|
41
|
+
padding-block-end: var(--cui-page-layout-header-gap);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where([data-control-family="page-layout"][data-slot="body"]) {
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: minmax(0, 1fr);
|
|
47
|
+
width: 100%;
|
|
48
|
+
max-width: var(--cui-page-layout-size);
|
|
49
|
+
margin-inline: auto;
|
|
50
|
+
gap: var(--cui-page-layout-column-gap);
|
|
51
|
+
padding-inline: var(--cui-page-layout-padding-inline);
|
|
52
|
+
padding-block: var(--cui-page-layout-padding-block);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where([data-control-family="page-layout"][data-slot="title"]) {
|
|
56
|
+
grid-area: title;
|
|
57
|
+
font-size: var(--text-heading-1);
|
|
58
|
+
line-height: var(--text-heading-1--line-height);
|
|
59
|
+
font-weight: var(--text-heading-1--font-weight);
|
|
60
|
+
letter-spacing: var(--text-heading-1--letter-spacing);
|
|
61
|
+
color: var(--foreground);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where([data-control-family="page-layout"][data-slot="description"]) {
|
|
65
|
+
grid-area: description;
|
|
66
|
+
font-size: var(--text-body);
|
|
67
|
+
color: var(--muted-foreground);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where([data-control-family="page-layout"][data-slot="actions"]) {
|
|
71
|
+
grid-area: actions;
|
|
72
|
+
justify-self: start;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (width >= 40rem) {
|
|
76
|
+
:where([data-control-family="page-layout"][data-slot="header"]) {
|
|
77
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
78
|
+
grid-template-areas: "title actions" "description actions";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where([data-control-family="page-layout"][data-slot="actions"]) {
|
|
82
|
+
justify-self: end;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where([data-control-family="page-layout"][data-slot="header"][data-variant="sticky"]) {
|
|
87
|
+
position: sticky;
|
|
88
|
+
top: var(--cui-page-layout-sticky-gap);
|
|
89
|
+
z-index: 20;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Zero height: the band hangs over the body instead of displacing it. */
|
|
93
|
+
:where([data-control-family="page-layout"][data-slot="header"][data-variant="floating"]) {
|
|
94
|
+
position: sticky;
|
|
95
|
+
top: var(--cui-page-layout-sticky-gap);
|
|
96
|
+
z-index: 20;
|
|
97
|
+
align-items: start;
|
|
98
|
+
height: 0;
|
|
99
|
+
padding-block-end: 0;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([data-control-family="page-layout"][data-slot="header"][data-variant="floating"] > *) {
|
|
104
|
+
pointer-events: auto;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(
|
|
108
|
+
[data-control-family="page-layout"][data-slot="header"][data-variant="floating"]
|
|
109
|
+
[data-control-family="page-layout"][data-slot="actions"]
|
|
110
|
+
) {
|
|
111
|
+
justify-self: end;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where([data-control-family="page-layout"][data-slot="root"][data-width="full"] [data-control-family="page-layout"][data-slot="body"]) {
|
|
115
|
+
padding-block: 0;
|
|
116
|
+
padding-inline: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where([data-control-family="page-layout"][data-slot="aside"]) {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (width >= 80rem) {
|
|
124
|
+
:where([data-control-family="page-layout"][data-slot="body"][data-aside]),
|
|
125
|
+
:where(
|
|
126
|
+
[data-control-family="page-layout"][data-slot="header"]:has(+ [data-control-family="page-layout"][data-slot="body"][data-aside])
|
|
127
|
+
) {
|
|
128
|
+
--cui-page-layout-size: calc(
|
|
129
|
+
var(--cui-page-layout-article-size) +
|
|
130
|
+
var(--cui-page-layout-column-gap) +
|
|
131
|
+
var(--cui-page-layout-aside-size) +
|
|
132
|
+
var(--cui-page-layout-padding-inline) *
|
|
133
|
+
2
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:where([data-control-family="page-layout"][data-slot="body"][data-aside]) {
|
|
138
|
+
grid-template-columns: minmax(0, var(--cui-page-layout-article-size)) var(--cui-page-layout-aside-size);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where([data-control-family="page-layout"][data-slot="aside"]) {
|
|
142
|
+
display: block;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@property --cui-page-layout-article-size {
|
|
148
|
+
syntax: "<length>";
|
|
149
|
+
inherits: true;
|
|
150
|
+
initial-value: 0px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@property --cui-page-layout-aside-size {
|
|
154
|
+
syntax: "<length>";
|
|
155
|
+
inherits: true;
|
|
156
|
+
initial-value: 0px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@property --cui-page-layout-padding-inline {
|
|
160
|
+
syntax: "<length>";
|
|
161
|
+
inherits: true;
|
|
162
|
+
initial-value: 0px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@property --cui-page-layout-padding-block {
|
|
166
|
+
syntax: "*";
|
|
167
|
+
inherits: true;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@property --cui-page-layout-column-gap {
|
|
171
|
+
syntax: "<length>";
|
|
172
|
+
inherits: true;
|
|
173
|
+
initial-value: 0px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@property --cui-page-layout-header-gap {
|
|
177
|
+
syntax: "<length>";
|
|
178
|
+
inherits: true;
|
|
179
|
+
initial-value: 0px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@property --cui-page-layout-header-column-gap {
|
|
183
|
+
syntax: "<length>";
|
|
184
|
+
inherits: true;
|
|
185
|
+
initial-value: 0px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@property --cui-page-layout-header-row-gap {
|
|
189
|
+
syntax: "<length>";
|
|
190
|
+
inherits: true;
|
|
191
|
+
initial-value: 0px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@property --cui-page-layout-size {
|
|
195
|
+
syntax: "*";
|
|
196
|
+
inherits: true;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@property --cui-page-layout-sticky-gap {
|
|
200
|
+
syntax: "<length>";
|
|
201
|
+
inherits: true;
|
|
202
|
+
initial-value: 0px;
|
|
203
|
+
}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
inset 0 0 0 1px var(--_pagination-link-border-color),
|
|
21
21
|
var(--cui-pagination-link-shadow);
|
|
22
22
|
color: var(--cui-pagination-link-foreground);
|
|
23
|
+
font-variant-numeric: tabular-nums;
|
|
23
24
|
outline: none;
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -50,6 +51,21 @@
|
|
|
50
51
|
:where([data-control-family="pagination"][data-slot="ellipsis"]) {
|
|
51
52
|
color: var(--muted-foreground);
|
|
52
53
|
}
|
|
54
|
+
|
|
55
|
+
@media (pointer: coarse) {
|
|
56
|
+
:where([data-control-family="pagination"][data-slot="link"]) {
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where([data-control-family="pagination"][data-slot="link"])::after {
|
|
61
|
+
content: "";
|
|
62
|
+
position: absolute;
|
|
63
|
+
inset: 50% 50%;
|
|
64
|
+
translate: -50% -50%;
|
|
65
|
+
inline-size: 100%;
|
|
66
|
+
block-size: max(100%, 44px);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
53
69
|
}
|
|
54
70
|
|
|
55
71
|
@property --cui-pagination-link-radius {
|
|
@@ -85,11 +85,13 @@
|
|
|
85
85
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="title"]) {
|
|
86
86
|
color: var(--foreground);
|
|
87
87
|
font-weight: var(--font-weight-semibold);
|
|
88
|
+
text-wrap: balance;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="description"]) {
|
|
91
92
|
color: var(--muted-foreground);
|
|
92
93
|
font-size: var(--text-sm);
|
|
94
|
+
text-wrap: pretty;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="content"][data-padding="default"][data-side="bottom"]) {
|
|
@@ -150,7 +152,7 @@
|
|
|
150
152
|
|
|
151
153
|
:where([data-control-family="popup"][data-popup-kind="drawer"][data-slot="backdrop"]) {
|
|
152
154
|
transition-property: opacity;
|
|
153
|
-
transition-timing-function: var(--ease-
|
|
155
|
+
transition-timing-function: var(--ease-emphasized);
|
|
154
156
|
--_drawer-backdrop-transition-duration: var(--duration-base);
|
|
155
157
|
transition-duration: var(--_drawer-backdrop-transition-duration);
|
|
156
158
|
}
|
|
@@ -80,11 +80,13 @@
|
|
|
80
80
|
font-weight: var(--font-weight-semibold);
|
|
81
81
|
line-height: 1;
|
|
82
82
|
letter-spacing: -0.025em;
|
|
83
|
+
text-wrap: balance;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
:where([data-control-family="popup"][data-popup-kind="toast"][data-slot="description"]) {
|
|
86
87
|
color: var(--muted-foreground);
|
|
87
88
|
font-size: var(--text-body);
|
|
89
|
+
text-wrap: pretty;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
:where([data-control-family="button"][data-popup-kind="toast"][data-popup-part="close"]) {
|