@typlog/ui 0.11.8 → 0.12.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/addons.css +63 -0
- package/addons.d.ts +55 -2
- package/addons.js +81 -9
- package/base.css +16 -60
- package/components/badge.css +11 -0
- package/components/button.css +0 -39
- package/components/card.css +0 -55
- package/components/dialog.css +57 -302
- package/components/dropdown.css +79 -27
- package/components/inputs.css +8 -8
- package/components/pagination.css +0 -1
- package/components/popover.css +24 -34
- package/components/radio.css +137 -85
- package/components/tabs.css +105 -31
- package/components/toggle.css +42 -13
- package/components/tooltip.css +9 -1
- package/components.css +1054 -677
- package/components.d.ts +444 -236
- package/components.js +1113 -921
- package/package.json +3 -3
- package/tailwind/colors.css +0 -4
- package/tailwind/index.css +0 -1
- package/tailwind.css +1077 -0
- package/components/accordion.css +0 -149
- package/components/alert.css +0 -15
- package/components/avatar.css +0 -131
- package/components/collapsible.css +0 -27
- package/components/combobox.css +0 -388
- package/components/icon.css +0 -109
- package/components/inset.css +0 -94
- package/components/select.css +0 -308
- package/components/spinner.css +0 -36
- package/tailwind/breakpoints.css +0 -15
package/components/dialog.css
CHANGED
|
@@ -13,267 +13,6 @@
|
|
|
13
13
|
.ui-DialogTitle + .ui-DialogDescription {
|
|
14
14
|
margin-top: var(--space-2);
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
.ui-Button {
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
-webkit-user-select: none;
|
|
23
|
-
-moz-user-select: none;
|
|
24
|
-
user-select: none;
|
|
25
|
-
vertical-align: top;
|
|
26
|
-
font-style: normal;
|
|
27
|
-
font-weight: var(--button-font-weight);
|
|
28
|
-
text-align: center;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
height: var(--button-height);
|
|
31
|
-
padding-left: var(--button-padding-x);
|
|
32
|
-
padding-right: var(--button-padding-x);
|
|
33
|
-
}
|
|
34
|
-
.ui-Button:where(.r-variant-ghost) {
|
|
35
|
-
--button-font-weight: var(--font-weight-regular);
|
|
36
|
-
}
|
|
37
|
-
.ui-Button:where(:not(.r-variant-ghost)) {
|
|
38
|
-
--button-font-weight: var(--font-weight-medium);
|
|
39
|
-
}
|
|
40
|
-
.ui-Button:where([data-disabled]) {
|
|
41
|
-
cursor: not-allowed;
|
|
42
|
-
}
|
|
43
|
-
.ui-Button:where(.r-size-1) {
|
|
44
|
-
gap: var(--space-1);
|
|
45
|
-
font-size: var(--font-size-1);
|
|
46
|
-
line-height: var(--line-height-1);
|
|
47
|
-
letter-spacing: var(--letter-spacing-1);
|
|
48
|
-
border-radius: max(var(--radius-1), var(--radius-full));
|
|
49
|
-
--button-height: var(--space-5);
|
|
50
|
-
--button-padding-x: var(--space-2);
|
|
51
|
-
}
|
|
52
|
-
.ui-Button:where(.r-size-1):where(.r-variant-ghost) {
|
|
53
|
-
--button-ghost-padding-y: var(--space-1);
|
|
54
|
-
}
|
|
55
|
-
.ui-Button:where(.r-size-2) {
|
|
56
|
-
gap: var(--space-2);
|
|
57
|
-
font-size: var(--font-size-2);
|
|
58
|
-
line-height: var(--line-height-2);
|
|
59
|
-
letter-spacing: var(--letter-spacing-2);
|
|
60
|
-
border-radius: max(var(--radius-2), var(--radius-full));
|
|
61
|
-
--button-height: var(--space-6);
|
|
62
|
-
--button-padding-x: var(--space-3);
|
|
63
|
-
}
|
|
64
|
-
.ui-Button:where(.r-size-2):where(.r-variant-ghost) {
|
|
65
|
-
gap: var(--space-1);
|
|
66
|
-
--button-padding-x: var(--space-2);
|
|
67
|
-
--button-ghost-padding-y: var(--space-1);
|
|
68
|
-
}
|
|
69
|
-
.ui-Button:where(.r-size-3) {
|
|
70
|
-
gap: var(--space-3);
|
|
71
|
-
font-size: var(--font-size-3);
|
|
72
|
-
line-height: var(--line-height-3);
|
|
73
|
-
letter-spacing: var(--letter-spacing-3);
|
|
74
|
-
border-radius: max(var(--radius-3), var(--radius-full));
|
|
75
|
-
--button-height: var(--space-7);
|
|
76
|
-
--button-padding-x: var(--space-4);
|
|
77
|
-
}
|
|
78
|
-
.ui-Button:where(.r-size-3):where(.r-variant-ghost) {
|
|
79
|
-
gap: var(--space-2);
|
|
80
|
-
--button-padding-x: var(--space-3);
|
|
81
|
-
--button-ghost-padding-y: calc(var(--space-1) * 1.5);
|
|
82
|
-
}
|
|
83
|
-
.ui-Button:where(.r-size-4) {
|
|
84
|
-
gap: var(--space-3);
|
|
85
|
-
font-size: var(--font-size-4);
|
|
86
|
-
line-height: var(--line-height-4);
|
|
87
|
-
letter-spacing: var(--letter-spacing-4);
|
|
88
|
-
border-radius: max(var(--radius-4), var(--radius-full));
|
|
89
|
-
--button-height: var(--space-8);
|
|
90
|
-
--button-padding-x: var(--space-5);
|
|
91
|
-
}
|
|
92
|
-
.ui-Button:where(.r-size-4):where(.r-variant-ghost) {
|
|
93
|
-
gap: var(--space-2);
|
|
94
|
-
--button-padding-x: var(--space-4);
|
|
95
|
-
--button-ghost-padding-y: var(--space-2);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/* solid */
|
|
99
|
-
.ui-root {
|
|
100
|
-
--button-solid-active-filter: brightness(0.92) saturate(1.1);
|
|
101
|
-
--button-solid-high-contrast-hover-filter: contrast(0.88) saturate(1.1) brightness(1.1);
|
|
102
|
-
}
|
|
103
|
-
:is(.dark, .dark-theme) .ui-root {
|
|
104
|
-
--button-solid-active-filter: brightness(1.08);
|
|
105
|
-
--button-solid-high-contrast-hover-filter: contrast(0.88) saturate(1.3) brightness(1.18);
|
|
106
|
-
}
|
|
107
|
-
.ui-Button:where(.r-variant-solid) {
|
|
108
|
-
background-color: var(--accent-9);
|
|
109
|
-
color: var(--accent-contrast);
|
|
110
|
-
}
|
|
111
|
-
@media (hover: hover) {
|
|
112
|
-
.ui-Button:where(.r-variant-solid):where(:hover) {
|
|
113
|
-
background-color: var(--accent-10);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.ui-Button:where(.r-variant-solid):where(:focus-visible) {
|
|
117
|
-
outline: 2px solid var(--focus-8);
|
|
118
|
-
outline-offset: 2px;
|
|
119
|
-
}
|
|
120
|
-
.ui-Button:where(.r-variant-solid):where(:active) {
|
|
121
|
-
background-color: var(--accent-10);
|
|
122
|
-
filter: var(--button-solid-active-filter);
|
|
123
|
-
}
|
|
124
|
-
.ui-Button:where(.r-variant-solid):where(.r-high-contrast) {
|
|
125
|
-
background-color: var(--accent-12);
|
|
126
|
-
color: var(--gray-1);
|
|
127
|
-
}
|
|
128
|
-
@media (hover: hover) {
|
|
129
|
-
.ui-Button:where(.r-variant-solid):where(.r-high-contrast:hover) {
|
|
130
|
-
background-color: var(--accent-12);
|
|
131
|
-
filter: var(--button-solid-high-contrast-hover-filter);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
.ui-Button:where(.r-variant-solid):where([data-disabled]) {
|
|
135
|
-
color: var(--gray-a8);
|
|
136
|
-
background-color: var(--gray-a3);
|
|
137
|
-
outline: none;
|
|
138
|
-
filter: none;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* soft / ghost */
|
|
142
|
-
.ui-Button:where(.r-variant-soft, .r-variant-ghost) {
|
|
143
|
-
color: var(--accent-a11);
|
|
144
|
-
}
|
|
145
|
-
.ui-Button:where(.r-variant-soft, .r-variant-ghost):where(.r-high-contrast) {
|
|
146
|
-
color: var(--accent-12);
|
|
147
|
-
}
|
|
148
|
-
.ui-Button:where(.r-variant-soft) {
|
|
149
|
-
background-color: var(--accent-a3);
|
|
150
|
-
}
|
|
151
|
-
@media (hover: hover) {
|
|
152
|
-
.ui-Button:where(.r-variant-soft):where(:hover) {
|
|
153
|
-
background-color: var(--accent-a4);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
.ui-Button:where(.r-variant-soft):where(:focus-visible) {
|
|
157
|
-
outline: 2px solid var(--accent-8);
|
|
158
|
-
outline-offset: -1px;
|
|
159
|
-
}
|
|
160
|
-
.ui-Button:where(.r-variant-soft):where(:active) {
|
|
161
|
-
background-color: var(--accent-a5);
|
|
162
|
-
}
|
|
163
|
-
.ui-Button:where(.r-variant-soft):where([data-disabled]) {
|
|
164
|
-
color: var(--gray-a8);
|
|
165
|
-
background-color: var(--gray-a3);
|
|
166
|
-
}
|
|
167
|
-
.ui-Button:where(.r-variant-ghost) {
|
|
168
|
-
padding: var(--button-ghost-padding-y) var(--button-padding-x);
|
|
169
|
-
}
|
|
170
|
-
@media (hover: hover) {
|
|
171
|
-
.ui-Button:where(.r-variant-ghost):where(:hover) {
|
|
172
|
-
background-color: var(--accent-a3);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
.ui-Button:where(.r-variant-ghost):where(:focus-visible) {
|
|
176
|
-
outline: 2px solid var(--focus-8);
|
|
177
|
-
outline-offset: -1px;
|
|
178
|
-
}
|
|
179
|
-
.ui-Button:where(.r-variant-ghost):where(:active) {
|
|
180
|
-
background-color: var(--accent-a4);
|
|
181
|
-
}
|
|
182
|
-
.ui-Button:where(.r-variant-ghost):where([data-disabled]) {
|
|
183
|
-
color: var(--gray-a8);
|
|
184
|
-
background-color: transparent;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/* classic */
|
|
188
|
-
.ui-Button:where(.r-variant-classic) {
|
|
189
|
-
box-shadow: var(--shadow-2);
|
|
190
|
-
background-color: var(--color-background);
|
|
191
|
-
}
|
|
192
|
-
.ui-Button:where(.r-variant-classic):where(.r-high-contrast) {
|
|
193
|
-
color: var(--gray-12);
|
|
194
|
-
box-shadow: 0 0 0 1px var(--gray-a6), 0 1px 1px 0 var(--black-a4), 0 2px 1px -1px var(--black-a2), 0 1px 3px 0 var(--black-a1);
|
|
195
|
-
}
|
|
196
|
-
@media (hover: hover) {
|
|
197
|
-
.ui-Button:where(.r-variant-classic):where(:hover) {
|
|
198
|
-
color: var(--accent-a11);
|
|
199
|
-
background-color: var(--gray-a2);
|
|
200
|
-
}
|
|
201
|
-
.ui-Button:where(.r-variant-classic):where(.r-high-contrast):where(:hover) {
|
|
202
|
-
color: var(--accent-12);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
.ui-Button:where(.r-variant-classic):where(:focus-visible) {
|
|
206
|
-
outline: 2px solid var(--focus-8);
|
|
207
|
-
outline-offset: 2px;
|
|
208
|
-
}
|
|
209
|
-
.ui-Button:where(.r-variant-classic):where(:active:not([data-disabled])) {
|
|
210
|
-
box-shadow: var(--shadow-1);
|
|
211
|
-
}
|
|
212
|
-
.ui-Button:where(.r-variant-classic):where([data-disabled]) {
|
|
213
|
-
color: var(--gray-a10);
|
|
214
|
-
background-color: var(--gray-a2);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* outline */
|
|
218
|
-
.ui-Button:where(.r-variant-outline) {
|
|
219
|
-
box-shadow: inset 0 0 0 1px var(--accent-a8);
|
|
220
|
-
color: var(--accent-a11);
|
|
221
|
-
}
|
|
222
|
-
@media (hover: hover) {
|
|
223
|
-
.ui-Button:where(.r-variant-outline):where(:hover) {
|
|
224
|
-
background-color: var(--accent-a2);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
.ui-Button:where(.r-variant-outline):where(:focus-visible) {
|
|
228
|
-
outline: 2px solid var(--focus-8);
|
|
229
|
-
outline-offset: -1px;
|
|
230
|
-
}
|
|
231
|
-
.ui-Button:where(.r-variant-outline):where(.r-high-contrast) {
|
|
232
|
-
box-shadow: inset 0 0 0 1px var(--accent-a7), inset 0 0 0 1px var(--gray-a11);
|
|
233
|
-
color: var(--accent-12);
|
|
234
|
-
}
|
|
235
|
-
.ui-Button:where(.r-variant-outline):where(:active) {
|
|
236
|
-
background-color: var(--accent-a4);
|
|
237
|
-
}
|
|
238
|
-
.ui-Button:where(.r-variant-outline):where([data-disabled]) {
|
|
239
|
-
color: var(--gray-a8);
|
|
240
|
-
box-shadow: inset 0 0 0 1px var(--gray-a7);
|
|
241
|
-
background-color: transparent;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/* surface */
|
|
245
|
-
.ui-Button:where(.r-variant-surface) {
|
|
246
|
-
background-color: var(--accent-surface);
|
|
247
|
-
box-shadow: inset 0 0 0 1px var(--accent-a7);
|
|
248
|
-
color: var(--accent-a11);
|
|
249
|
-
}
|
|
250
|
-
@media (hover: hover) {
|
|
251
|
-
.ui-Button:where(.r-variant-surface):where(:hover) {
|
|
252
|
-
box-shadow: inset 0 0 0 1px var(--accent-a8);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
.ui-Button:where(.r-variant-surface):where(:focus-visible) {
|
|
256
|
-
outline: 2px solid var(--focus-8);
|
|
257
|
-
outline-offset: -1px;
|
|
258
|
-
}
|
|
259
|
-
.ui-Button:where(.r-variant-surface):where(.r-high-contrast) {
|
|
260
|
-
color: var(--accent-12);
|
|
261
|
-
}
|
|
262
|
-
.ui-Button:where(.r-variant-surface):where(:active) {
|
|
263
|
-
background-color: var(--accent-a4);
|
|
264
|
-
}
|
|
265
|
-
.ui-Button:where(.r-variant-surface):where([data-disabled]) {
|
|
266
|
-
color: var(--gray-a8);
|
|
267
|
-
box-shadow: inset 0 0 0 1px var(--gray-a6);
|
|
268
|
-
background-color: var(--gray-a2);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.ui-Button.ui-IconButton {
|
|
272
|
-
height: var(--button-height);
|
|
273
|
-
width: var(--button-height);
|
|
274
|
-
padding: 0;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
16
|
.ui-DialogOverlay {
|
|
278
17
|
position: fixed;
|
|
279
18
|
inset: 0;
|
|
@@ -300,57 +39,68 @@
|
|
|
300
39
|
box-sizing: border-box;
|
|
301
40
|
padding-top: var(--space-6);
|
|
302
41
|
}
|
|
303
|
-
.ui-
|
|
304
|
-
--inset-padding-top: var(--dialog-content-padding);
|
|
305
|
-
--inset-padding-right: var(--dialog-content-padding);
|
|
306
|
-
--inset-padding-bottom: var(--dialog-content-padding);
|
|
307
|
-
--inset-padding-left: var(--dialog-content-padding);
|
|
308
|
-
|
|
42
|
+
.ui-DialogPopup {
|
|
309
43
|
width: 100%;
|
|
310
44
|
max-height: calc(100vh - var(--space-6) * 2);
|
|
311
45
|
position: relative;
|
|
312
46
|
box-sizing: border-box;
|
|
313
47
|
overflow: auto;
|
|
314
48
|
text-align: left;
|
|
315
|
-
padding: var(--dialog-content-padding);
|
|
316
49
|
box-sizing: border-box;
|
|
317
50
|
background-color: var(--color-panel-solid);
|
|
318
51
|
outline: none;
|
|
319
|
-
border-top-left-radius: var(--dialog-
|
|
320
|
-
border-top-right-radius: var(--dialog-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
52
|
+
border-top-left-radius: var(--dialog-popup-radius);
|
|
53
|
+
border-top-right-radius: var(--dialog-popup-radius);
|
|
54
|
+
max-width: var(--dialog-popup-max-width);
|
|
55
|
+
max-height: var(--dialog-popup-max-height);
|
|
56
|
+
padding: var(--dialog-popup-padding);
|
|
57
|
+
}
|
|
58
|
+
.ui-DialogPopup:where(.r-size-1) {
|
|
59
|
+
--dialog-popup-padding: var(--space-3);
|
|
60
|
+
--dialog-popup-radius: var(--radius-4);
|
|
61
|
+
--dialog-popup-max-width: 450px;
|
|
62
|
+
--dialog-popup-max-height: calc(100vh - 100px);
|
|
63
|
+
}
|
|
64
|
+
.ui-DialogPopup:where(.r-size-2) {
|
|
65
|
+
--dialog-popup-padding: var(--space-4);
|
|
66
|
+
--dialog-popup-radius: var(--radius-4);
|
|
67
|
+
--dialog-popup-max-width: 600px;
|
|
68
|
+
--dialog-popup-max-height: calc(100vh - 100px);
|
|
69
|
+
}
|
|
70
|
+
.ui-DialogPopup:where(.r-size-3) {
|
|
71
|
+
--dialog-popup-padding: var(--space-5);
|
|
72
|
+
--dialog-popup-radius: var(--radius-5);
|
|
73
|
+
--dialog-popup-max-width: 860px;
|
|
74
|
+
--dialog-popup-max-height: calc(100vh - 100px);
|
|
75
|
+
}
|
|
76
|
+
.ui-DialogPopup:where(.r-size-4) {
|
|
77
|
+
--dialog-popup-padding: var(--space-6);
|
|
78
|
+
--dialog-popup-radius: var(--radius-5);
|
|
79
|
+
--dialog-popup-max-width: 1200px;
|
|
80
|
+
--dialog-popup-max-height: calc(100vh - 100px);
|
|
81
|
+
}
|
|
82
|
+
.ui-DialogPopup:where(.r-size-5) {
|
|
83
|
+
--dialog-popup-padding: var(--space-6);
|
|
84
|
+
--dialog-popup-radius: var(--radius-5);
|
|
85
|
+
--dialog-popup-max-width: none;
|
|
86
|
+
--dialog-popup-max-height: calc(100vh - 64px);
|
|
325
87
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
.ui-DialogContent:where(.r-size-3) {
|
|
331
|
-
--dialog-content-radius: var(--radius-5);
|
|
332
|
-
--dialog-content-padding: var(--space-4);
|
|
333
|
-
}
|
|
334
|
-
.ui-DialogContent:where(.r-size-4) {
|
|
335
|
-
--dialog-content-radius: var(--radius-5);
|
|
336
|
-
--dialog-content-padding: var(--space-5);
|
|
337
|
-
}
|
|
338
|
-
.ui-DialogContentClose {
|
|
339
|
-
position: absolute;
|
|
340
|
-
top: calc(var(--dialog-content-padding) / 1.5);
|
|
341
|
-
right: var(--dialog-content-padding);
|
|
88
|
+
|
|
89
|
+
/* special handle for tailwindcss p-0, when css priority doesn't work */
|
|
90
|
+
.ui-DialogPopup:where(.p-0) {
|
|
91
|
+
--dialog-popup-padding: 0;
|
|
342
92
|
}
|
|
343
|
-
@media (min-width:
|
|
93
|
+
@media (min-width: 450px) {
|
|
344
94
|
.ui-DialogContainer {
|
|
345
95
|
justify-content: center;
|
|
346
96
|
padding-bottom: max(var(--space-6), 6vh);
|
|
347
97
|
padding-left: var(--space-4);
|
|
348
98
|
padding-right: var(--space-4);
|
|
349
99
|
}
|
|
350
|
-
.ui-
|
|
100
|
+
.ui-DialogPopup {
|
|
351
101
|
box-shadow: var(--shadow-6);
|
|
352
|
-
border-bottom-left-radius: var(--dialog-
|
|
353
|
-
border-bottom-right-radius: var(--dialog-
|
|
102
|
+
border-bottom-left-radius: var(--dialog-popup-radius);
|
|
103
|
+
border-bottom-right-radius: var(--dialog-popup-radius);
|
|
354
104
|
}
|
|
355
105
|
}
|
|
356
106
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -365,21 +115,21 @@ to {
|
|
|
365
115
|
@keyframes ui-dialog-content-show {
|
|
366
116
|
from {
|
|
367
117
|
opacity: 0.1;
|
|
368
|
-
transform:
|
|
118
|
+
transform: translate3d(0, var(--space-6), 0);
|
|
369
119
|
}
|
|
370
120
|
to {
|
|
371
121
|
opacity: 1;
|
|
372
|
-
transform:
|
|
122
|
+
transform: translate3d(0, 0, 0);
|
|
373
123
|
}
|
|
374
124
|
}
|
|
375
125
|
@keyframes ui-dialog-content-hide {
|
|
376
126
|
from {
|
|
377
127
|
opacity: 1;
|
|
378
|
-
transform:
|
|
128
|
+
transform: translate3d(0, 0, 0);
|
|
379
129
|
}
|
|
380
130
|
to {
|
|
381
|
-
opacity:
|
|
382
|
-
transform:
|
|
131
|
+
opacity: 1;
|
|
132
|
+
transform: translate3d(0, var(--space-5), 0);
|
|
383
133
|
}
|
|
384
134
|
}
|
|
385
135
|
.ui-DialogOverlay[data-state='closed'] {
|
|
@@ -391,10 +141,15 @@ to {
|
|
|
391
141
|
.ui-DialogOverlay[data-state='closed']::before {
|
|
392
142
|
animation: ui-fade-out 160ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
393
143
|
}
|
|
394
|
-
.ui-
|
|
144
|
+
.ui-DialogPopup:where([data-state="open"]) {
|
|
395
145
|
animation: ui-dialog-content-show 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
396
146
|
}
|
|
397
|
-
.ui-
|
|
398
|
-
animation: ui-dialog-content-hide
|
|
147
|
+
.ui-DialogPopup:where([data-state="closed"]) {
|
|
148
|
+
animation: ui-dialog-content-hide 100ms linear;
|
|
399
149
|
}
|
|
400
150
|
}
|
|
151
|
+
|
|
152
|
+
.ui-AlertPopup {
|
|
153
|
+
--dialog-popup-radius: var(--radius-4);
|
|
154
|
+
--dialog-popup-max-width: 450px;
|
|
155
|
+
}
|
package/components/dropdown.css
CHANGED
|
@@ -105,6 +105,41 @@
|
|
|
105
105
|
.ui-ScrollAreaThumb:hover {
|
|
106
106
|
background-color: var(--gray-a9);
|
|
107
107
|
}
|
|
108
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
109
|
+
.ui-PopperContent {
|
|
110
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
111
|
+
}
|
|
112
|
+
.ui-PopperContent:where([data-state='open']) {
|
|
113
|
+
animation-duration: 160ms;
|
|
114
|
+
}
|
|
115
|
+
.ui-PopperContent:where([data-state='open']):where([data-side='top']) {
|
|
116
|
+
animation-name: ui-slide-from-top, ui-fade-in;
|
|
117
|
+
}
|
|
118
|
+
.ui-PopperContent:where([data-state='open']):where([data-side='bottom']) {
|
|
119
|
+
animation-name: ui-slide-from-bottom, ui-fade-in;
|
|
120
|
+
}
|
|
121
|
+
.ui-PopperContent:where([data-state='open']):where([data-side='left']) {
|
|
122
|
+
animation-name: ui-slide-from-left, ui-fade-in;
|
|
123
|
+
}
|
|
124
|
+
.ui-PopperContent:where([data-state='open']):where([data-side='right']) {
|
|
125
|
+
animation-name: ui-slide-from-right, ui-fade-in;
|
|
126
|
+
}
|
|
127
|
+
.ui-PopperContent:where([data-state='closed']) {
|
|
128
|
+
animation-duration: 100ms;
|
|
129
|
+
}
|
|
130
|
+
.ui-PopperContent:where([data-state='closed']):where([data-side='top']) {
|
|
131
|
+
animation-name: ui-slide-from-top, ui-fade-out;
|
|
132
|
+
}
|
|
133
|
+
.ui-PopperContent:where([data-state='closed']):where([data-side='bottom']) {
|
|
134
|
+
animation-name: ui-slide-from-bottom, ui-fade-out;
|
|
135
|
+
}
|
|
136
|
+
.ui-PopperContent:where([data-state='closed']):where([data-side='left']) {
|
|
137
|
+
animation-name: ui-slide-from-left, ui-fade-out;
|
|
138
|
+
}
|
|
139
|
+
.ui-PopperContent:where([data-state='closed']):where([data-side='right']) {
|
|
140
|
+
animation-name: ui-slide-from-right, ui-fade-out;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
108
143
|
|
|
109
144
|
.ui-MenuContent {
|
|
110
145
|
--scrollarea-scrollbar-vertical-margin-top: var(--menu-content-padding);
|
|
@@ -116,10 +151,10 @@
|
|
|
116
151
|
flex-direction: column;
|
|
117
152
|
box-sizing: border-box;
|
|
118
153
|
overflow: hidden;
|
|
154
|
+
border-radius: var(--menu-content-border-radius);
|
|
119
155
|
|
|
120
|
-
--menu-bg: var(--color-panel-solid);
|
|
121
156
|
box-shadow: var(--shadow-5);
|
|
122
|
-
background-color: var(--
|
|
157
|
+
background-color: var(--color-panel-solid);
|
|
123
158
|
}
|
|
124
159
|
.ui-MenuViewport {
|
|
125
160
|
flex: 1 1 0%;
|
|
@@ -134,17 +169,39 @@
|
|
|
134
169
|
}
|
|
135
170
|
.ui-MenuContent:where(.r-size-1) {
|
|
136
171
|
--menu-content-padding: var(--space-1);
|
|
172
|
+
--menu-content-border-radius: var(--radius-3);
|
|
173
|
+
|
|
137
174
|
--menu-item-padding-left: calc(var(--space-5) / 1.2);
|
|
138
175
|
--menu-item-padding-right: var(--space-2);
|
|
139
176
|
--menu-item-height: var(--space-5);
|
|
140
|
-
|
|
177
|
+
--menu-item-font-size: var(--font-size-1);
|
|
178
|
+
--menu-item-line-height: var(--line-height-1);
|
|
179
|
+
--menu-item-letter-spacing: var(--letter-spacing-1);
|
|
180
|
+
--menu-item-border-radius: var(--radius-1);
|
|
141
181
|
}
|
|
142
182
|
.ui-MenuContent:where(.r-size-2) {
|
|
143
183
|
--menu-content-padding: var(--space-2);
|
|
184
|
+
--menu-content-border-radius: var(--radius-4);
|
|
185
|
+
|
|
144
186
|
--menu-item-padding-left: var(--space-3);
|
|
145
187
|
--menu-item-padding-right: var(--space-3);
|
|
146
188
|
--menu-item-height: var(--space-6);
|
|
147
|
-
|
|
189
|
+
--menu-item-font-size: var(--font-size-2);
|
|
190
|
+
--menu-item-line-height: var(--line-height-2);
|
|
191
|
+
--menu-item-letter-spacing: var(--letter-spacing-2);
|
|
192
|
+
--menu-item-border-radius: var(--radius-2);
|
|
193
|
+
}
|
|
194
|
+
.ui-MenuContent:where(.r-variant-solid) {
|
|
195
|
+
--menu-item-highlighted-background-color: var(--accent-9);
|
|
196
|
+
--menu-item-highlighted-text-color: var(--accent-contrast);
|
|
197
|
+
}
|
|
198
|
+
.ui-MenuContent:where(.r-variant-solid.r-high-contrast) {
|
|
199
|
+
--menu-item-highlighted-background-color: var(--accent-12);
|
|
200
|
+
--menu-item-highlighted-text-color: var(--accent-1);
|
|
201
|
+
}
|
|
202
|
+
.ui-MenuContent:where(.r-variant-soft) {
|
|
203
|
+
--menu-item-highlighted-background-color: var(--accent-a4);
|
|
204
|
+
--menu-item-highlighted-text-color: var(--accent-a11);
|
|
148
205
|
}
|
|
149
206
|
|
|
150
207
|
.ui-MenuItem {
|
|
@@ -162,13 +219,18 @@
|
|
|
162
219
|
-moz-user-select: none;
|
|
163
220
|
user-select: none;
|
|
164
221
|
cursor: default;
|
|
165
|
-
color: var(--gray-
|
|
222
|
+
color: var(--gray-12);
|
|
223
|
+
font-size: var(--menu-item-font-size);
|
|
224
|
+
line-height: var(--menu-item-line-height);
|
|
225
|
+
letter-spacing: var(--menu-item-letter-spacing);
|
|
226
|
+
border-radius: var(--menu-item-border-radius);
|
|
166
227
|
}
|
|
167
228
|
.ui-MenuShortcut {
|
|
168
229
|
display: flex;
|
|
169
230
|
align-items: center;
|
|
170
231
|
margin-left: auto;
|
|
171
232
|
padding-left: var(--space-4);
|
|
233
|
+
color: var(--gray-a11);
|
|
172
234
|
}
|
|
173
235
|
.ui-MenuItem:where([data-accent-color]) {
|
|
174
236
|
color: var(--accent-a11);
|
|
@@ -176,29 +238,19 @@
|
|
|
176
238
|
.ui-MenuItem:where([data-disabled]) {
|
|
177
239
|
color: var(--gray-a8);
|
|
178
240
|
}
|
|
241
|
+
.ui-MenuItem:where([data-highlighted]) {
|
|
242
|
+
background-color: var(--menu-item-highlighted-background-color);
|
|
243
|
+
color: var(--menu-item-highlighted-text-color);
|
|
244
|
+
}
|
|
179
245
|
.ui-MenuItem:where([data-disabled], [data-highlighted]) :where(.ui-MenuShortcut) {
|
|
180
246
|
color: inherit;
|
|
181
247
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
line-height: var(--line-height-2);
|
|
191
|
-
letter-spacing: var(--letter-spacing-2);
|
|
192
|
-
border-radius: var(--radius-2);
|
|
193
|
-
}
|
|
194
|
-
.ui-MenuItem:where([data-variant="solid"]):where([data-highlighted]) {
|
|
195
|
-
background-color: var(--accent-9);
|
|
196
|
-
color: var(--accent-contrast);
|
|
197
|
-
}
|
|
198
|
-
.ui-MenuItem:where([data-variant="solid"]):where([data-high-contrast]):where([data-highlighted]) {
|
|
199
|
-
background-color: var(--accent-12);
|
|
200
|
-
color: var(--accent-1);
|
|
201
|
-
}
|
|
202
|
-
.ui-MenuItem:where([data-variant="soft"]):where([data-highlighted]) {
|
|
203
|
-
background-color: var(--accent-a4);
|
|
248
|
+
|
|
249
|
+
.ui-DropdownMenuSeparator {
|
|
250
|
+
height: 1px;
|
|
251
|
+
margin-top: var(--space-2);
|
|
252
|
+
margin-bottom: var(--space-2);
|
|
253
|
+
margin-left: var(--menu-item-padding-left);
|
|
254
|
+
margin-right: var(--menu-item-padding-right);
|
|
255
|
+
background-color: var(--gray-a6);
|
|
204
256
|
}
|
package/components/inputs.css
CHANGED
|
@@ -366,7 +366,6 @@
|
|
|
366
366
|
font-style: normal;
|
|
367
367
|
text-align: start;
|
|
368
368
|
overflow: hidden;
|
|
369
|
-
padding: var(--text-area-border-width);
|
|
370
369
|
width: 100%;
|
|
371
370
|
}
|
|
372
371
|
.ui-TextAreaInput {
|
|
@@ -385,6 +384,9 @@
|
|
|
385
384
|
outline: none;
|
|
386
385
|
box-shadow: none;
|
|
387
386
|
}
|
|
387
|
+
.ui-TextAreaInput:where(:disabled) {
|
|
388
|
+
cursor: not-allowed;
|
|
389
|
+
}
|
|
388
390
|
.ui-TextAreaInput::-webkit-scrollbar {
|
|
389
391
|
width: var(--space-3);
|
|
390
392
|
height: var(--space-3);
|
|
@@ -456,13 +458,11 @@
|
|
|
456
458
|
.ui-TextArea:where(.r-variant-surface) .ui-TextAreaInput::placeholder {
|
|
457
459
|
color: var(--gray-a10);
|
|
458
460
|
}
|
|
459
|
-
.ui-TextArea:where(.r-variant-surface) .ui-TextAreaInput
|
|
461
|
+
.ui-TextArea:where(.r-variant-surface) :where(.ui-TextAreaInput:-moz-read-only) {
|
|
460
462
|
background-image: linear-gradient(var(--gray-a2), var(--gray-a2));
|
|
461
|
-
box-shadow: inset 0 0 0 var(--text-area-border-width) var(--gray-a6);
|
|
462
463
|
}
|
|
463
|
-
.ui-TextArea:where(.r-variant-surface) .ui-TextAreaInput:
|
|
464
|
+
.ui-TextArea:where(.r-variant-surface) :where(.ui-TextAreaInput:read-only) {
|
|
464
465
|
background-image: linear-gradient(var(--gray-a2), var(--gray-a2));
|
|
465
|
-
box-shadow: inset 0 0 0 var(--text-area-border-width) var(--gray-a6);
|
|
466
466
|
}
|
|
467
467
|
.ui-TextArea:where(.r-variant-soft) {
|
|
468
468
|
--text-area-border-width: 0px;
|
|
@@ -487,11 +487,11 @@
|
|
|
487
487
|
color: var(--accent-12);
|
|
488
488
|
opacity: 0.65;
|
|
489
489
|
}
|
|
490
|
-
.ui-TextArea:where(.r-variant-soft) .ui-TextAreaInput
|
|
490
|
+
.ui-TextArea:where(.r-variant-soft) :where(.ui-TextAreaInput:-moz-read-only) {
|
|
491
491
|
background-image: linear-gradient(var(--gray-a2), var(--gray-a2));
|
|
492
492
|
box-shadow: inset 0 0 0 var(--text-area-border-width) var(--gray-a6);
|
|
493
493
|
}
|
|
494
|
-
.ui-TextArea:where(.r-variant-soft) .ui-TextAreaInput:
|
|
494
|
+
.ui-TextArea:where(.r-variant-soft) :where(.ui-TextAreaInput:read-only) {
|
|
495
495
|
background-image: linear-gradient(var(--gray-a2), var(--gray-a2));
|
|
496
496
|
box-shadow: inset 0 0 0 var(--text-area-border-width) var(--gray-a6);
|
|
497
497
|
}
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
.ui-ColorField:where(.r-variant-ring) {
|
|
527
527
|
--color-input-size: calc(var(--color-field-size) - var(--color-field-border-width) * 4);
|
|
528
528
|
--color-input-radius: calc(var(--color-field-radius) - 2px);
|
|
529
|
-
border: var(--color-field-border-width) solid var(--color-field-
|
|
529
|
+
border: var(--color-field-border-width) solid var(--color-field-color);
|
|
530
530
|
}
|
|
531
531
|
.ui-ColorFieldInput {
|
|
532
532
|
-webkit-appearance: none;
|
package/components/popover.css
CHANGED
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-PopoverContent {
|
|
3
|
-
--inset-padding-top: var(--popover-content-padding);
|
|
4
|
-
--inset-padding-right: var(--popover-content-padding);
|
|
5
|
-
--inset-padding-bottom: var(--popover-content-padding);
|
|
6
|
-
--inset-padding-left: var(--popover-content-padding);
|
|
7
|
-
|
|
8
|
-
background-color: var(--color-panel-solid);
|
|
9
|
-
box-shadow: var(--shadow-5);
|
|
10
|
-
min-width: var(--reka-popover-trigger-width);
|
|
11
|
-
max-width: var(--reka-popover-content-available-width);
|
|
12
|
-
outline: 0;
|
|
13
|
-
overflow: auto;
|
|
14
|
-
position: relative;
|
|
15
|
-
padding: var(--popover-content-padding);
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
transform-origin: var(--reka-popover-content-transform-origin);
|
|
18
|
-
}
|
|
19
|
-
.ui-PopoverContent:where(.r-size-1) {
|
|
20
|
-
--popover-content-padding: var(--space-3);
|
|
21
|
-
border-radius: var(--radius-4);
|
|
22
|
-
}
|
|
23
|
-
.ui-PopoverContent:where(.r-size-2) {
|
|
24
|
-
--popover-content-padding: var(--space-4);
|
|
25
|
-
border-radius: var(--radius-4);
|
|
26
|
-
}
|
|
27
|
-
.ui-PopoverContent:where(.r-size-3) {
|
|
28
|
-
--popover-content-padding: var(--space-5);
|
|
29
|
-
border-radius: var(--radius-5);
|
|
30
|
-
}
|
|
31
|
-
.ui-PopoverContent:where(.r-size-4) {
|
|
32
|
-
--popover-content-padding: var(--space-6);
|
|
33
|
-
border-radius: var(--radius-5);
|
|
34
|
-
}
|
|
35
1
|
@media (prefers-reduced-motion: no-preference) {
|
|
36
2
|
.ui-PopperContent {
|
|
37
3
|
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
@@ -67,3 +33,27 @@
|
|
|
67
33
|
animation-name: ui-slide-from-right, ui-fade-out;
|
|
68
34
|
}
|
|
69
35
|
}
|
|
36
|
+
|
|
37
|
+
.ui-PopoverPopup {
|
|
38
|
+
background-color: var(--color-panel-solid);
|
|
39
|
+
box-shadow: var(--shadow-5);
|
|
40
|
+
min-width: var(--reka-popover-trigger-width);
|
|
41
|
+
max-width: var(--reka-popover-content-available-width);
|
|
42
|
+
outline: 0;
|
|
43
|
+
overflow: auto;
|
|
44
|
+
position: relative;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
transform-origin: var(--reka-popover-content-transform-origin);
|
|
47
|
+
padding: var(--popover-popup-padding);
|
|
48
|
+
}
|
|
49
|
+
.ui-PopoverPopup:where(.r-size-1) {
|
|
50
|
+
border-radius: var(--radius-4);
|
|
51
|
+
--popover-popup-padding: var(--space-2);
|
|
52
|
+
}
|
|
53
|
+
.ui-PopoverPopup:where(.r-size-2) {
|
|
54
|
+
border-radius: var(--radius-5);
|
|
55
|
+
--popover-popup-padding: var(--space-4);
|
|
56
|
+
}
|
|
57
|
+
.ui-PopoverPopup:where(.p-0) {
|
|
58
|
+
--popover-popup-padding: 0;
|
|
59
|
+
}
|