@typlog/ui 0.12.2 → 0.13.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.js +5 -7
- package/components.css +585 -333
- package/components.d.ts +209 -104
- package/components.js +728 -437
- package/index.css +2 -0
- package/package.json +5 -4
- package/components/badge.css +0 -86
- package/components/card.css +0 -31
- package/components/checkbox.css +0 -90
- package/components/dialog.css +0 -159
- package/components/dropdown.css +0 -255
- package/components/editable.css +0 -34
- package/components/inputs.css +0 -570
- package/components/pagination.css +0 -279
- package/components/popover.css +0 -58
- package/components/quota.css +0 -14
- package/components/radio.css +0 -264
- package/components/scrollarea.css +0 -107
- package/components/separator.css +0 -26
- package/components/switch.css +0 -176
- package/components/table.css +0 -198
- package/components/tabs.css +0 -201
- package/components/toggle.css +0 -217
- package/components/tooltip.css +0 -45
- package/tailwind/colors.css +0 -1091
- package/tailwind/index.css +0 -3
- package/tailwind/shadow.css +0 -8
- package/tailwind/space.css +0 -11
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
.ui-Button {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
-webkit-user-select: none;
|
|
7
|
-
-moz-user-select: none;
|
|
8
|
-
user-select: none;
|
|
9
|
-
vertical-align: top;
|
|
10
|
-
font-style: normal;
|
|
11
|
-
font-weight: var(--button-font-weight);
|
|
12
|
-
text-align: center;
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
height: var(--button-height);
|
|
15
|
-
padding-left: var(--button-padding-x);
|
|
16
|
-
padding-right: var(--button-padding-x);
|
|
17
|
-
}
|
|
18
|
-
.ui-Button:where(.r-variant-ghost) {
|
|
19
|
-
--button-font-weight: var(--font-weight-regular);
|
|
20
|
-
}
|
|
21
|
-
.ui-Button:where(:not(.r-variant-ghost)) {
|
|
22
|
-
--button-font-weight: var(--font-weight-medium);
|
|
23
|
-
}
|
|
24
|
-
.ui-Button:where([data-disabled]) {
|
|
25
|
-
cursor: not-allowed;
|
|
26
|
-
}
|
|
27
|
-
.ui-Button:where(.r-size-1) {
|
|
28
|
-
gap: var(--space-1);
|
|
29
|
-
font-size: var(--font-size-1);
|
|
30
|
-
line-height: var(--line-height-1);
|
|
31
|
-
letter-spacing: var(--letter-spacing-1);
|
|
32
|
-
border-radius: max(var(--radius-1), var(--radius-full));
|
|
33
|
-
--button-height: var(--space-5);
|
|
34
|
-
--button-padding-x: var(--space-2);
|
|
35
|
-
}
|
|
36
|
-
.ui-Button:where(.r-size-1):where(.r-variant-ghost) {
|
|
37
|
-
--button-ghost-padding-y: var(--space-1);
|
|
38
|
-
}
|
|
39
|
-
.ui-Button:where(.r-size-2) {
|
|
40
|
-
gap: var(--space-2);
|
|
41
|
-
font-size: var(--font-size-2);
|
|
42
|
-
line-height: var(--line-height-2);
|
|
43
|
-
letter-spacing: var(--letter-spacing-2);
|
|
44
|
-
border-radius: max(var(--radius-2), var(--radius-full));
|
|
45
|
-
--button-height: var(--space-6);
|
|
46
|
-
--button-padding-x: var(--space-3);
|
|
47
|
-
}
|
|
48
|
-
.ui-Button:where(.r-size-2):where(.r-variant-ghost) {
|
|
49
|
-
gap: var(--space-1);
|
|
50
|
-
--button-padding-x: var(--space-2);
|
|
51
|
-
--button-ghost-padding-y: var(--space-1);
|
|
52
|
-
}
|
|
53
|
-
.ui-Button:where(.r-size-3) {
|
|
54
|
-
gap: var(--space-3);
|
|
55
|
-
font-size: var(--font-size-3);
|
|
56
|
-
line-height: var(--line-height-3);
|
|
57
|
-
letter-spacing: var(--letter-spacing-3);
|
|
58
|
-
border-radius: max(var(--radius-3), var(--radius-full));
|
|
59
|
-
--button-height: var(--space-7);
|
|
60
|
-
--button-padding-x: var(--space-4);
|
|
61
|
-
}
|
|
62
|
-
.ui-Button:where(.r-size-3):where(.r-variant-ghost) {
|
|
63
|
-
gap: var(--space-2);
|
|
64
|
-
--button-padding-x: var(--space-3);
|
|
65
|
-
--button-ghost-padding-y: calc(var(--space-1) * 1.5);
|
|
66
|
-
}
|
|
67
|
-
.ui-Button:where(.r-size-4) {
|
|
68
|
-
gap: var(--space-3);
|
|
69
|
-
font-size: var(--font-size-4);
|
|
70
|
-
line-height: var(--line-height-4);
|
|
71
|
-
letter-spacing: var(--letter-spacing-4);
|
|
72
|
-
border-radius: max(var(--radius-4), var(--radius-full));
|
|
73
|
-
--button-height: var(--space-8);
|
|
74
|
-
--button-padding-x: var(--space-5);
|
|
75
|
-
}
|
|
76
|
-
.ui-Button:where(.r-size-4):where(.r-variant-ghost) {
|
|
77
|
-
gap: var(--space-2);
|
|
78
|
-
--button-padding-x: var(--space-4);
|
|
79
|
-
--button-ghost-padding-y: var(--space-2);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* solid */
|
|
83
|
-
.ui-root {
|
|
84
|
-
--button-solid-active-filter: brightness(0.92) saturate(1.1);
|
|
85
|
-
--button-solid-high-contrast-hover-filter: contrast(0.88) saturate(1.1) brightness(1.1);
|
|
86
|
-
}
|
|
87
|
-
:is(.dark, .dark-theme) .ui-root {
|
|
88
|
-
--button-solid-active-filter: brightness(1.08);
|
|
89
|
-
--button-solid-high-contrast-hover-filter: contrast(0.88) saturate(1.3) brightness(1.18);
|
|
90
|
-
}
|
|
91
|
-
.ui-Button:where(.r-variant-solid) {
|
|
92
|
-
background-color: var(--accent-9);
|
|
93
|
-
color: var(--accent-contrast);
|
|
94
|
-
}
|
|
95
|
-
@media (hover: hover) {
|
|
96
|
-
.ui-Button:where(.r-variant-solid):where(:hover) {
|
|
97
|
-
background-color: var(--accent-10);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.ui-Button:where(.r-variant-solid):where(:focus-visible) {
|
|
101
|
-
outline: 2px solid var(--focus-8);
|
|
102
|
-
outline-offset: 2px;
|
|
103
|
-
}
|
|
104
|
-
.ui-Button:where(.r-variant-solid):where(:active) {
|
|
105
|
-
background-color: var(--accent-10);
|
|
106
|
-
filter: var(--button-solid-active-filter);
|
|
107
|
-
}
|
|
108
|
-
.ui-Button:where(.r-variant-solid):where(.r-high-contrast) {
|
|
109
|
-
background-color: var(--accent-12);
|
|
110
|
-
color: var(--gray-1);
|
|
111
|
-
}
|
|
112
|
-
@media (hover: hover) {
|
|
113
|
-
.ui-Button:where(.r-variant-solid):where(.r-high-contrast:hover) {
|
|
114
|
-
background-color: var(--accent-12);
|
|
115
|
-
filter: var(--button-solid-high-contrast-hover-filter);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
.ui-Button:where(.r-variant-solid):where([data-disabled]) {
|
|
119
|
-
color: var(--gray-a8);
|
|
120
|
-
background-color: var(--gray-a3);
|
|
121
|
-
outline: none;
|
|
122
|
-
filter: none;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* soft / ghost */
|
|
126
|
-
.ui-Button:where(.r-variant-soft, .r-variant-ghost) {
|
|
127
|
-
color: var(--accent-a11);
|
|
128
|
-
}
|
|
129
|
-
.ui-Button:where(.r-variant-soft, .r-variant-ghost):where(.r-high-contrast) {
|
|
130
|
-
color: var(--accent-12);
|
|
131
|
-
}
|
|
132
|
-
.ui-Button:where(.r-variant-soft) {
|
|
133
|
-
background-color: var(--accent-a3);
|
|
134
|
-
}
|
|
135
|
-
@media (hover: hover) {
|
|
136
|
-
.ui-Button:where(.r-variant-soft):where(:hover) {
|
|
137
|
-
background-color: var(--accent-a4);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
.ui-Button:where(.r-variant-soft):where(:focus-visible) {
|
|
141
|
-
outline: 2px solid var(--accent-8);
|
|
142
|
-
outline-offset: -1px;
|
|
143
|
-
}
|
|
144
|
-
.ui-Button:where(.r-variant-soft):where(:active) {
|
|
145
|
-
background-color: var(--accent-a5);
|
|
146
|
-
}
|
|
147
|
-
.ui-Button:where(.r-variant-soft):where([data-disabled]) {
|
|
148
|
-
color: var(--gray-a8);
|
|
149
|
-
background-color: var(--gray-a3);
|
|
150
|
-
}
|
|
151
|
-
.ui-Button:where(.r-variant-ghost) {
|
|
152
|
-
padding: var(--button-ghost-padding-y) var(--button-padding-x);
|
|
153
|
-
}
|
|
154
|
-
@media (hover: hover) {
|
|
155
|
-
.ui-Button:where(.r-variant-ghost):where(:hover) {
|
|
156
|
-
background-color: var(--accent-a3);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
.ui-Button:where(.r-variant-ghost):where(:focus-visible) {
|
|
160
|
-
outline: 2px solid var(--focus-8);
|
|
161
|
-
outline-offset: -1px;
|
|
162
|
-
}
|
|
163
|
-
.ui-Button:where(.r-variant-ghost):where(:active) {
|
|
164
|
-
background-color: var(--accent-a4);
|
|
165
|
-
}
|
|
166
|
-
.ui-Button:where(.r-variant-ghost):where([data-disabled]) {
|
|
167
|
-
color: var(--gray-a8);
|
|
168
|
-
background-color: transparent;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/* classic */
|
|
172
|
-
.ui-Button:where(.r-variant-classic) {
|
|
173
|
-
box-shadow: var(--shadow-2);
|
|
174
|
-
background-color: var(--color-background);
|
|
175
|
-
}
|
|
176
|
-
.ui-Button:where(.r-variant-classic):where(.r-high-contrast) {
|
|
177
|
-
color: var(--gray-12);
|
|
178
|
-
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);
|
|
179
|
-
}
|
|
180
|
-
@media (hover: hover) {
|
|
181
|
-
.ui-Button:where(.r-variant-classic):where(:hover) {
|
|
182
|
-
color: var(--accent-a11);
|
|
183
|
-
background-color: var(--gray-a2);
|
|
184
|
-
}
|
|
185
|
-
.ui-Button:where(.r-variant-classic):where(.r-high-contrast):where(:hover) {
|
|
186
|
-
color: var(--accent-12);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
.ui-Button:where(.r-variant-classic):where(:focus-visible) {
|
|
190
|
-
outline: 2px solid var(--focus-8);
|
|
191
|
-
outline-offset: 2px;
|
|
192
|
-
}
|
|
193
|
-
.ui-Button:where(.r-variant-classic):where(:active:not([data-disabled])) {
|
|
194
|
-
box-shadow: var(--shadow-1);
|
|
195
|
-
}
|
|
196
|
-
.ui-Button:where(.r-variant-classic):where([data-disabled]) {
|
|
197
|
-
color: var(--gray-a10);
|
|
198
|
-
background-color: var(--gray-a2);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/* outline */
|
|
202
|
-
.ui-Button:where(.r-variant-outline) {
|
|
203
|
-
box-shadow: inset 0 0 0 1px var(--accent-a8);
|
|
204
|
-
color: var(--accent-a11);
|
|
205
|
-
}
|
|
206
|
-
@media (hover: hover) {
|
|
207
|
-
.ui-Button:where(.r-variant-outline):where(:hover) {
|
|
208
|
-
background-color: var(--accent-a2);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
.ui-Button:where(.r-variant-outline):where(:focus-visible) {
|
|
212
|
-
outline: 2px solid var(--focus-8);
|
|
213
|
-
outline-offset: -1px;
|
|
214
|
-
}
|
|
215
|
-
.ui-Button:where(.r-variant-outline):where(.r-high-contrast) {
|
|
216
|
-
box-shadow: inset 0 0 0 1px var(--accent-a7), inset 0 0 0 1px var(--gray-a11);
|
|
217
|
-
color: var(--accent-12);
|
|
218
|
-
}
|
|
219
|
-
.ui-Button:where(.r-variant-outline):where(:active) {
|
|
220
|
-
background-color: var(--accent-a4);
|
|
221
|
-
}
|
|
222
|
-
.ui-Button:where(.r-variant-outline):where([data-disabled]) {
|
|
223
|
-
color: var(--gray-a8);
|
|
224
|
-
box-shadow: inset 0 0 0 1px var(--gray-a7);
|
|
225
|
-
background-color: transparent;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/* surface */
|
|
229
|
-
.ui-Button:where(.r-variant-surface) {
|
|
230
|
-
background-color: var(--accent-surface);
|
|
231
|
-
box-shadow: inset 0 0 0 1px var(--accent-a7);
|
|
232
|
-
color: var(--accent-a11);
|
|
233
|
-
}
|
|
234
|
-
@media (hover: hover) {
|
|
235
|
-
.ui-Button:where(.r-variant-surface):where(:hover) {
|
|
236
|
-
box-shadow: inset 0 0 0 1px var(--accent-a8);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
.ui-Button:where(.r-variant-surface):where(:focus-visible) {
|
|
240
|
-
outline: 2px solid var(--focus-8);
|
|
241
|
-
outline-offset: -1px;
|
|
242
|
-
}
|
|
243
|
-
.ui-Button:where(.r-variant-surface):where(.r-high-contrast) {
|
|
244
|
-
color: var(--accent-12);
|
|
245
|
-
}
|
|
246
|
-
.ui-Button:where(.r-variant-surface):where(:active) {
|
|
247
|
-
background-color: var(--accent-a4);
|
|
248
|
-
}
|
|
249
|
-
.ui-Button:where(.r-variant-surface):where([data-disabled]) {
|
|
250
|
-
color: var(--gray-a8);
|
|
251
|
-
box-shadow: inset 0 0 0 1px var(--gray-a6);
|
|
252
|
-
background-color: var(--gray-a2);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.ui-Button.ui-IconButton {
|
|
256
|
-
height: var(--button-height);
|
|
257
|
-
width: var(--button-height);
|
|
258
|
-
padding: 0;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.ui-Pagination {
|
|
262
|
-
display: flex;
|
|
263
|
-
align-items: center;
|
|
264
|
-
}
|
|
265
|
-
.ui-Pagination:where(.r-size-1) {
|
|
266
|
-
gap: var(--space-1);
|
|
267
|
-
}
|
|
268
|
-
.ui-Pagination:where(.r-size-2) {
|
|
269
|
-
gap: var(--space-2);
|
|
270
|
-
}
|
|
271
|
-
.ui-Pagination:where(.r-size-3) {
|
|
272
|
-
gap: var(--space-3);
|
|
273
|
-
}
|
|
274
|
-
.ui-Pagination:where(.r-size-4) {
|
|
275
|
-
gap: var(--space-4);
|
|
276
|
-
}
|
|
277
|
-
.ui-Pagination:where(.r-variant-ghost) {
|
|
278
|
-
gap: 0;
|
|
279
|
-
}
|
package/components/popover.css
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
2
|
-
.ui-PopperContent {
|
|
3
|
-
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
4
|
-
}
|
|
5
|
-
.ui-PopperContent:where([data-state='open']) {
|
|
6
|
-
animation-duration: 160ms;
|
|
7
|
-
}
|
|
8
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='top']) {
|
|
9
|
-
animation-name: ui-slide-from-top, ui-fade-in;
|
|
10
|
-
}
|
|
11
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='bottom']) {
|
|
12
|
-
animation-name: ui-slide-from-bottom, ui-fade-in;
|
|
13
|
-
}
|
|
14
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='left']) {
|
|
15
|
-
animation-name: ui-slide-from-left, ui-fade-in;
|
|
16
|
-
}
|
|
17
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='right']) {
|
|
18
|
-
animation-name: ui-slide-from-right, ui-fade-in;
|
|
19
|
-
}
|
|
20
|
-
.ui-PopperContent:where([data-state='closed']) {
|
|
21
|
-
animation-duration: 100ms;
|
|
22
|
-
}
|
|
23
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='top']) {
|
|
24
|
-
animation-name: ui-slide-from-top, ui-fade-out;
|
|
25
|
-
}
|
|
26
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='bottom']) {
|
|
27
|
-
animation-name: ui-slide-from-bottom, ui-fade-out;
|
|
28
|
-
}
|
|
29
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='left']) {
|
|
30
|
-
animation-name: ui-slide-from-left, ui-fade-out;
|
|
31
|
-
}
|
|
32
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='right']) {
|
|
33
|
-
animation-name: ui-slide-from-right, ui-fade-out;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@layer components {
|
|
38
|
-
.ui-PopoverPopup {
|
|
39
|
-
background-color: var(--color-panel-solid);
|
|
40
|
-
box-shadow: var(--shadow-5);
|
|
41
|
-
min-width: var(--reka-popover-trigger-width);
|
|
42
|
-
max-width: var(--reka-popover-content-available-width);
|
|
43
|
-
outline: 0;
|
|
44
|
-
overflow: auto;
|
|
45
|
-
position: relative;
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
transform-origin: var(--reka-popover-content-transform-origin);
|
|
48
|
-
padding: var(--popover-popup-padding);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
.ui-PopoverPopup:where(.r-size-1) {
|
|
52
|
-
border-radius: var(--radius-4);
|
|
53
|
-
--popover-popup-padding: var(--space-2);
|
|
54
|
-
}
|
|
55
|
-
.ui-PopoverPopup:where(.r-size-2) {
|
|
56
|
-
border-radius: var(--radius-5);
|
|
57
|
-
--popover-popup-padding: var(--space-4);
|
|
58
|
-
}
|
package/components/quota.css
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-Quota {
|
|
3
|
-
position: relative;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
border-radius: var(--radius-full);
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: var(--space-2);
|
|
8
|
-
background-color: var(--slate-4);
|
|
9
|
-
}
|
|
10
|
-
.ui-QuotaValue {
|
|
11
|
-
border-radius: var(--radius-full);
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
}
|
package/components/radio.css
DELETED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
.ui-RadioBase {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
vertical-align: top;
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
cursor: default;
|
|
9
|
-
width: var(--radio-size);
|
|
10
|
-
height: var(--radio-size);
|
|
11
|
-
border: none;
|
|
12
|
-
box-shadow: none;
|
|
13
|
-
}
|
|
14
|
-
.ui-RadioBase:where(.r-size-1) {
|
|
15
|
-
--radio-size: calc(var(--space-4) * 0.875);
|
|
16
|
-
}
|
|
17
|
-
.ui-RadioBase:where(.r-size-2) {
|
|
18
|
-
--radio-size: var(--space-4);
|
|
19
|
-
}
|
|
20
|
-
.ui-RadioBase:where(.r-size-3) {
|
|
21
|
-
--radio-size: calc(var(--space-4) * 1.25);
|
|
22
|
-
}
|
|
23
|
-
.ui-RadioBase:checked {
|
|
24
|
-
/* reset for tailwind */
|
|
25
|
-
background-image: none;
|
|
26
|
-
}
|
|
27
|
-
.ui-RadioBase:focus {
|
|
28
|
-
/* reset for tailwind */
|
|
29
|
-
box-shadow: none;
|
|
30
|
-
}
|
|
31
|
-
.ui-RadioBase:where(:focus-visible) {
|
|
32
|
-
outline: none;
|
|
33
|
-
}
|
|
34
|
-
.ui-RadioBase:where(:disabled, [data-disabled]) {
|
|
35
|
-
cursor: not-allowed;
|
|
36
|
-
}
|
|
37
|
-
.ui-RadioBase::before {
|
|
38
|
-
content: '';
|
|
39
|
-
display: block;
|
|
40
|
-
height: var(--radio-size);
|
|
41
|
-
width: var(--radio-size);
|
|
42
|
-
border-radius: 100%;
|
|
43
|
-
}
|
|
44
|
-
.ui-RadioBase::after {
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
position: absolute;
|
|
47
|
-
height: var(--radio-size);
|
|
48
|
-
width: var(--radio-size);
|
|
49
|
-
border-radius: 100%;
|
|
50
|
-
/* Scale via transform to achieve perfect sub-pixel positioning */
|
|
51
|
-
transform: scale(0.4);
|
|
52
|
-
}
|
|
53
|
-
.ui-RadioBase:where(:checked, [data-state='checked'])::after {
|
|
54
|
-
content: '';
|
|
55
|
-
}
|
|
56
|
-
.ui-RadioBase:where(:focus-visible)::before {
|
|
57
|
-
outline: 2px solid var(--focus-8);
|
|
58
|
-
outline-offset: 2px;
|
|
59
|
-
}
|
|
60
|
-
:where(.ui-RadioGroupRoot.r-variant-surface) .ui-RadioBase:where(:not(:checked), [data-state='unchecked'])::before,
|
|
61
|
-
.ui-RadioBase:where(.r-variant-surface):where(:not(:checked), [data-state='unchecked'])::before {
|
|
62
|
-
background-color: var(--color-surface);
|
|
63
|
-
box-shadow: inset 0 0 0 1px var(--gray-a7);
|
|
64
|
-
}
|
|
65
|
-
:where(.ui-RadioGroupRoot.r-variant-surface) .ui-RadioBase:where(:checked, [data-state='checked'])::before,
|
|
66
|
-
.ui-RadioBase:where(.r-variant-surface):where(:checked, [data-state='checked'])::before {
|
|
67
|
-
background-color: var(--accent-indicator);
|
|
68
|
-
}
|
|
69
|
-
:where(.ui-RadioGroupRoot.r-variant-surface) .ui-RadioBase::after,
|
|
70
|
-
.ui-RadioBase:where(.r-variant-surface)::after {
|
|
71
|
-
background-color: var(--accent-contrast);
|
|
72
|
-
}
|
|
73
|
-
:where(.ui-RadioGroupRoot.r-variant-surface.r-high-contrast) .ui-RadioBase:where(:checked, [data-state='checked'])::before,
|
|
74
|
-
.ui-RadioBase:where(.r-variant-surface.r-high-contrast):where(:checked, [data-state='checked'])::before {
|
|
75
|
-
background-color: var(--accent-12);
|
|
76
|
-
}
|
|
77
|
-
:where(.ui-RadioGroupRoot.r-variant-surface.r-high-contrast) .ui-RadioBase::after,
|
|
78
|
-
.ui-RadioBase:where(.r-variant-surface.r-high-contrast)::after {
|
|
79
|
-
background-color: var(--accent-1);
|
|
80
|
-
}
|
|
81
|
-
:where(.ui-RadioGroupRoot.r-variant-surface) .ui-RadioBase:where(:disabled, [data-disabled])::before,
|
|
82
|
-
.ui-RadioBase:where(.r-variant-surface):where(:disabled, [data-disabled])::before {
|
|
83
|
-
box-shadow: inset 0 0 0 1px var(--gray-a6);
|
|
84
|
-
background-color: var(--gray-a3);
|
|
85
|
-
}
|
|
86
|
-
:where(.ui-RadioGroupRoot.r-variant-surface) .ui-RadioBase:where(:disabled, [data-disabled])::after,
|
|
87
|
-
.ui-RadioBase:where(.r-variant-surface):where(:disabled, [data-disabled])::after {
|
|
88
|
-
background-color: var(--gray-a8);
|
|
89
|
-
}
|
|
90
|
-
:where(.ui-RadioGroupRoot.r-variant-soft) .ui-RadioBase::before,
|
|
91
|
-
.ui-RadioBase:where(.r-variant-soft)::before {
|
|
92
|
-
background-color: var(--accent-a4);
|
|
93
|
-
}
|
|
94
|
-
:where(.ui-RadioGroupRoot.r-variant-soft) .ui-RadioBase::after,
|
|
95
|
-
.ui-RadioBase:where(.r-variant-soft)::after {
|
|
96
|
-
background-color: var(--accent-a11);
|
|
97
|
-
}
|
|
98
|
-
:where(.ui-RadioGroupRoot.r-variant-soft.r-high-contrast) .ui-RadioBase::after,
|
|
99
|
-
.ui-RadioBase:where(.r-variant-soft.r-high-contrast)::after {
|
|
100
|
-
background-color: var(--accent-12);
|
|
101
|
-
}
|
|
102
|
-
:where(.ui-RadioGroupRoot.r-variant-soft:focus-visible) .ui-RadioBase::before,
|
|
103
|
-
.ui-RadioBase:where(.r-variant-soft:focus-visible)::before {
|
|
104
|
-
outline-color: var(--accent-a8);
|
|
105
|
-
}
|
|
106
|
-
:where(.ui-RadioGroupRoot.r-variant-soft) .ui-RadioBase:where(:disabled, [data-disabled])::before,
|
|
107
|
-
.ui-RadioBase:where(.r-variant-soft):where(:disabled, [data-disabled])::before {
|
|
108
|
-
background-color: var(--gray-a3);
|
|
109
|
-
}
|
|
110
|
-
:where(.ui-RadioGroupRoot.r-variant-soft) .ui-RadioBase:where(:disabled, [data-disabled])::after,
|
|
111
|
-
.ui-RadioBase:where(.r-variant-soft):where(:disabled, [data-disabled])::after {
|
|
112
|
-
background-color: var(--gray-a8);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ui-Radio {
|
|
116
|
-
-webkit-appearance: none;
|
|
117
|
-
-moz-appearance: none;
|
|
118
|
-
appearance: none;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ui-RadioGroupRoot:where(.r-size-1) {
|
|
122
|
-
--radio-size: calc(var(--space-4) * 0.875);
|
|
123
|
-
}
|
|
124
|
-
.ui-RadioGroupRoot:where(.r-size-2) {
|
|
125
|
-
--radio-size: var(--space-4);
|
|
126
|
-
}
|
|
127
|
-
.ui-RadioGroupRoot:where(.r-size-3) {
|
|
128
|
-
--radio-size: calc(var(--space-4) * 1.25);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@layer components {
|
|
132
|
-
.ui-RadioGroupItem {
|
|
133
|
-
display: inline-flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
gap: .5em;
|
|
136
|
-
width: -moz-fit-content;
|
|
137
|
-
width: fit-content;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ui-RadioCardsRoot:where(.r-size-1) {
|
|
142
|
-
--card-padding: var(--space-3);
|
|
143
|
-
--card-border-radius: max(var(--radius-4), var(--radius-full));
|
|
144
|
-
}
|
|
145
|
-
.ui-RadioCardsRoot:where(.r-size-2) {
|
|
146
|
-
--card-padding: var(--space-4);
|
|
147
|
-
--card-border-radius: max(var(--radius-4), var(--radius-full));
|
|
148
|
-
}
|
|
149
|
-
.ui-RadioCardsRoot:where(.r-size-3) {
|
|
150
|
-
--card-padding: var(--space-5);
|
|
151
|
-
--card-border-radius: max(var(--radius-5), var(--radius-full));
|
|
152
|
-
}
|
|
153
|
-
@layer components {
|
|
154
|
-
.ui-BaseCard {
|
|
155
|
-
display: block;
|
|
156
|
-
position: relative;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
font-style: normal;
|
|
159
|
-
text-align: start;
|
|
160
|
-
box-sizing: border-box;
|
|
161
|
-
border-radius: var(--card-border-radius);
|
|
162
|
-
padding: var(--card-padding);
|
|
163
|
-
border-color: var(--card-border-color, var(--gray-a5));
|
|
164
|
-
border-width: var(--card-border-width, 1px);
|
|
165
|
-
border-style: solid;
|
|
166
|
-
width: 100%;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
.ui-BaseCard:where(:-moz-any-link, button, label):where(:hover) {
|
|
170
|
-
--card-border-color: var(--gray-a7);
|
|
171
|
-
}
|
|
172
|
-
.ui-BaseCard:where(:any-link, button, label):where(:hover) {
|
|
173
|
-
--card-border-color: var(--gray-a7);
|
|
174
|
-
}
|
|
175
|
-
.ui-BaseCard:where(:-moz-any-link, button, label):where(:focus-visible) {
|
|
176
|
-
--card-border-color: var(--focus-8);
|
|
177
|
-
box-shadow: 0 0 0 2px var(--accent-4), 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
178
|
-
}
|
|
179
|
-
.ui-BaseCard:where(:any-link, button, label):where(:focus-visible) {
|
|
180
|
-
--card-border-color: var(--focus-8);
|
|
181
|
-
box-shadow: 0 0 0 2px var(--accent-4), 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.ui-RadioCardsItem {
|
|
185
|
-
height: 100%;
|
|
186
|
-
}
|
|
187
|
-
.ui-RadioCardsItem:where([data-state="checked"]) {
|
|
188
|
-
--card-border-color: var(--accent-10);
|
|
189
|
-
box-shadow: 0 0 0 1px var(--accent-10);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
@layer components {
|
|
193
|
-
.ui-RadioTabsRoot {
|
|
194
|
-
display: inline-flex;
|
|
195
|
-
width: -moz-fit-content;
|
|
196
|
-
width: fit-content;
|
|
197
|
-
align-items: center;
|
|
198
|
-
box-sizing: border-box;
|
|
199
|
-
padding: var(--radio-tabs-list-padding);
|
|
200
|
-
border-radius: var(--radio-tabs-list-radius);
|
|
201
|
-
font-size: var(--radio-tabs-font-size);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
.ui-RadioTabsRoot:where(.r-size-1) {
|
|
205
|
-
--radio-tabs-font-size: var(--font-size-1);
|
|
206
|
-
--radio-tabs-list-padding: var(--space-1);
|
|
207
|
-
--radio-tabs-list-radius: max(var(--radius-2), var(--radius-full));
|
|
208
|
-
--radio-tabs-item-padding: 3px 6px;
|
|
209
|
-
--radio-tabs-item-radius: max(var(--radius-1), var(--radius-full));
|
|
210
|
-
}
|
|
211
|
-
.ui-RadioTabsRoot:where(.r-size-2) {
|
|
212
|
-
--radio-tabs-font-size: var(--font-size-2);
|
|
213
|
-
--radio-tabs-list-padding: var(--space-1);
|
|
214
|
-
--radio-tabs-list-radius: max(var(--radius-3), var(--radius-full));
|
|
215
|
-
--radio-tabs-item-padding: 4px 8px;
|
|
216
|
-
--radio-tabs-item-radius: max(var(--radius-2), var(--radius-full));
|
|
217
|
-
}
|
|
218
|
-
.ui-RadioTabsRoot:where(.r-variant-surface) {
|
|
219
|
-
background-color: var(--accent-surface);
|
|
220
|
-
box-shadow: inset 0 0 0 1px var(--accent-a7);
|
|
221
|
-
}
|
|
222
|
-
.ui-RadioTabsRoot:where(.r-variant-classic) {
|
|
223
|
-
background-color: var(--accent-a3);
|
|
224
|
-
}
|
|
225
|
-
.ui-RadioTabsRoot:where(.r-variant-soft) {
|
|
226
|
-
background-color: var(--accent-a3);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.ui-RadioTabsItem {
|
|
230
|
-
display: inline-flex;
|
|
231
|
-
flex-grow: 1;
|
|
232
|
-
justify-content: center;
|
|
233
|
-
align-items: center;
|
|
234
|
-
color: var(--gray-a11);
|
|
235
|
-
padding: var(--radio-tabs-item-padding);
|
|
236
|
-
border-radius: var(--radio-tabs-item-radius);
|
|
237
|
-
}
|
|
238
|
-
.ui-RadioTabsItem:where([data-state="unchecked"]) {
|
|
239
|
-
letter-spacing: var(--tab-inactive-letter-spacing);
|
|
240
|
-
word-spacing: var(--tab-inactive-word-spacing);
|
|
241
|
-
}
|
|
242
|
-
.ui-RadioTabsItem:where([data-state="checked"]) {
|
|
243
|
-
font-weight: var(--font-weight-medium);
|
|
244
|
-
letter-spacing: var(--tab-active-letter-spacing);
|
|
245
|
-
word-spacing: var(--tab-active-word-spacing);
|
|
246
|
-
}
|
|
247
|
-
.ui-RadioTabsRoot:where(.r-variant-classic) :where(.ui-RadioTabsItem[data-state="checked"]) {
|
|
248
|
-
color: var(--gray-12);
|
|
249
|
-
background-color: var(--color-background);
|
|
250
|
-
box-shadow: var(--shadow-2);
|
|
251
|
-
}
|
|
252
|
-
.ui-RadioTabsRoot:where(.r-variant-soft) :where(.ui-RadioTabsItem[data-state="checked"]),
|
|
253
|
-
.ui-RadioTabsRoot:where(.r-variant-surface) :where(.ui-RadioTabsItem[data-state="checked"]) {
|
|
254
|
-
color: var(--accent-a11);
|
|
255
|
-
background-color: var(--accent-a3);
|
|
256
|
-
}
|
|
257
|
-
@media (hover: hover) {
|
|
258
|
-
:where(.ui-RadioTabsRoot.r-variant-classic) .ui-RadioTabsItem:where(:hover) {
|
|
259
|
-
color: var(--gray-12);
|
|
260
|
-
}
|
|
261
|
-
:where(.ui-RadioTabsRoot.r-variant-classic) .ui-RadioTabsItem:where(:hover) {
|
|
262
|
-
color: var(--gray-12);
|
|
263
|
-
}
|
|
264
|
-
}
|