basecoat-css 1.0.2 → 1.1.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/dist/base/base.css +10 -1
- package/dist/basecoat-base.bundle.css +1884 -0
- package/dist/basecoat-base.cdn.css +30 -10
- package/dist/basecoat-base.cdn.min.css +1 -2
- package/dist/basecoat-compat.cdn.css +1 -1
- package/dist/basecoat-compat.cdn.min.css +1 -2
- package/dist/basecoat-luma.bundle.css +3319 -0
- package/dist/basecoat-luma.cdn.css +167 -165
- package/dist/basecoat-luma.cdn.min.css +1 -2
- package/dist/basecoat-lyra.bundle.css +3302 -0
- package/dist/basecoat-lyra.cdn.css +98 -106
- package/dist/basecoat-lyra.cdn.min.css +1 -2
- package/dist/basecoat-maia.bundle.css +3287 -0
- package/dist/basecoat-maia.cdn.css +134 -114
- package/dist/basecoat-maia.cdn.min.css +1 -2
- package/dist/basecoat-mira.bundle.css +3296 -0
- package/dist/basecoat-mira.cdn.css +104 -108
- package/dist/basecoat-mira.cdn.min.css +1 -2
- package/dist/basecoat-nova.bundle.css +3314 -0
- package/dist/basecoat-nova.cdn.css +136 -116
- package/dist/basecoat-nova.cdn.min.css +1 -2
- package/dist/basecoat-rhea.bundle.css +3324 -0
- package/dist/basecoat-rhea.cdn.css +167 -165
- package/dist/basecoat-rhea.cdn.min.css +1 -2
- package/dist/basecoat-sera.bundle.css +3312 -0
- package/dist/basecoat-sera.cdn.css +143 -141
- package/dist/basecoat-sera.cdn.min.css +1 -2
- package/dist/basecoat-vega.bundle.css +3301 -0
- package/dist/basecoat-vega.cdn.css +126 -106
- package/dist/basecoat-vega.cdn.min.css +1 -2
- package/dist/basecoat.bundle.css +3301 -0
- package/dist/basecoat.cdn.css +126 -106
- package/dist/basecoat.cdn.min.css +1 -2
- package/dist/components/dialog.css +14 -0
- package/dist/components/sidebar.css +10 -7
- package/dist/components/tooltip.css +1 -1
- package/dist/js/all.js +28 -13
- package/dist/js/all.min.js +1 -1
- package/dist/js/combobox.js +6 -2
- package/dist/js/combobox.min.js +1 -1
- package/dist/js/dropdown-menu.js +1 -1
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/popover.js +1 -1
- package/dist/js/popover.min.js +1 -1
- package/dist/js/select.js +1 -1
- package/dist/js/select.min.js +1 -1
- package/dist/js/sidebar.js +1 -1
- package/dist/js/sidebar.min.js +1 -1
- package/dist/js/toast.js +18 -7
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +103 -44
- package/dist/styles/lyra.css +75 -36
- package/dist/styles/maia.css +81 -42
- package/dist/styles/mira.css +76 -37
- package/dist/styles/nova.css +84 -41
- package/dist/styles/rhea.css +103 -44
- package/dist/styles/sera.css +72 -41
- package/dist/styles/vega.css +72 -41
- package/package.json +4 -1
- package/templates/jinja/command.html.jinja +1 -1
- package/templates/jinja/dialog.html.jinja +1 -1
- package/templates/nunjucks/command.njk +1 -1
- package/templates/nunjucks/dialog.njk +1 -1
package/dist/styles/sera.css
CHANGED
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
/* Native Select */
|
|
222
222
|
.field > select,
|
|
223
223
|
select.select {
|
|
224
|
-
@apply border-transparent border-b-input bg-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 w-fit rounded-none border py-2 ps-0 pe-8 text-sm transition-[color,border-color] data-[size=sm]:h-9;
|
|
224
|
+
@apply border-transparent border-b-input bg-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 w-fit rounded-none border py-2 ps-0 pe-8 text-base md:text-sm transition-[color,border-color] data-[size=sm]:h-9;
|
|
225
225
|
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0] bg-size-[0.875rem];
|
|
226
226
|
}
|
|
227
227
|
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
.command > header input {
|
|
380
|
-
@apply h-9 ps-1.5 pe-2 text-sm placeholder:text-muted-foreground;
|
|
380
|
+
@apply h-9 ps-1.5 pe-2 text-base md:text-sm placeholder:text-muted-foreground;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
.command [role='menu'] {
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
|
|
420
420
|
/* Combobox */
|
|
421
421
|
.combobox > input[role='combobox'] {
|
|
422
|
-
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 rounded-none border py-2 ps-0 pe-8 text-sm transition-[color,border-color];
|
|
422
|
+
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 rounded-none border py-2 ps-0 pe-8 text-base md:text-sm transition-[color,border-color];
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.combobox > svg,
|
|
@@ -468,6 +468,10 @@
|
|
|
468
468
|
@apply border-transparent border-b-input bg-transparent focus-within:border-b-ring has-[[aria-invalid=true]]:border-b-destructive dark:has-[[aria-invalid=true]]:border-b-destructive/50 min-h-10 gap-1.5 rounded-none border bg-clip-padding px-0 py-1.5 text-sm transition-[color,border-color];
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
.combobox-chips > input[role='combobox'] {
|
|
472
|
+
@apply text-base md:text-sm;
|
|
473
|
+
}
|
|
474
|
+
|
|
471
475
|
.combobox-chip {
|
|
472
476
|
@apply bg-muted text-foreground h-5.5 gap-1 rounded-none px-2 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
473
477
|
}
|
|
@@ -970,7 +974,7 @@
|
|
|
970
974
|
@apply opacity-50;
|
|
971
975
|
}
|
|
972
976
|
.input-group > :is(input, select, [data-control]) {
|
|
973
|
-
@apply px-0 py-1 text-sm;
|
|
977
|
+
@apply px-0 py-1 text-base md:text-sm;
|
|
974
978
|
}
|
|
975
979
|
|
|
976
980
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -982,7 +986,7 @@
|
|
|
982
986
|
}
|
|
983
987
|
|
|
984
988
|
.input-group > textarea {
|
|
985
|
-
@apply px-0 py-2.5 text-sm;
|
|
989
|
+
@apply px-0 py-2.5 text-base md:text-sm;
|
|
986
990
|
}
|
|
987
991
|
|
|
988
992
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1203,92 +1207,92 @@
|
|
|
1203
1207
|
}
|
|
1204
1208
|
|
|
1205
1209
|
/* Sidebar */
|
|
1206
|
-
.sidebar nav {
|
|
1210
|
+
.sidebar > nav {
|
|
1207
1211
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1208
1212
|
}
|
|
1209
1213
|
|
|
1210
|
-
.sidebar nav > header,
|
|
1211
|
-
.sidebar nav > footer {
|
|
1214
|
+
.sidebar > nav > header,
|
|
1215
|
+
.sidebar > nav > footer {
|
|
1212
1216
|
@apply gap-2 p-2 [--radius:0];
|
|
1213
1217
|
}
|
|
1214
1218
|
|
|
1215
|
-
.sidebar nav > section {
|
|
1219
|
+
.sidebar > nav > section {
|
|
1216
1220
|
@apply gap-2 [--radius:0];
|
|
1217
1221
|
}
|
|
1218
1222
|
|
|
1219
|
-
.sidebar nav [role=separator] {
|
|
1223
|
+
.sidebar > nav [role=separator] {
|
|
1220
1224
|
@apply border-sidebar-border mx-2;
|
|
1221
1225
|
}
|
|
1222
1226
|
|
|
1223
|
-
.sidebar nav > section > [role=group] {
|
|
1227
|
+
.sidebar > nav > section > [role=group] {
|
|
1224
1228
|
@apply p-2;
|
|
1225
1229
|
}
|
|
1226
1230
|
|
|
1227
|
-
.sidebar nav h3 {
|
|
1231
|
+
.sidebar > nav h3 {
|
|
1228
1232
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-none px-3 text-xs font-semibold uppercase tracking-wider focus-visible:ring-2 [&>svg]:size-3.5 transition-[margin,opacity] duration-200 ease-linear;
|
|
1229
1233
|
}
|
|
1230
1234
|
|
|
1231
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1235
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1232
1236
|
@apply gap-0.5;
|
|
1233
1237
|
}
|
|
1234
1238
|
|
|
1235
|
-
.sidebar nav > section > [role=group] {
|
|
1239
|
+
.sidebar > nav > section > [role=group] {
|
|
1236
1240
|
@apply text-sm;
|
|
1237
1241
|
}
|
|
1238
1242
|
|
|
1239
|
-
.sidebar nav li > :is(a, button),
|
|
1240
|
-
.sidebar nav li > details > summary {
|
|
1243
|
+
.sidebar > nav li > :is(a, button),
|
|
1244
|
+
.sidebar > nav li > details > summary {
|
|
1241
1245
|
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground gap-2 rounded-none px-3 py-2 text-sm focus-visible:ring-2 text-left focus-visible:outline-hidden data-[open]:hover:bg-sidebar-accent data-[open]:hover:text-sidebar-accent-foreground [&>svg]:shrink-0 [&>svg]:size-3.5;
|
|
1242
1246
|
}
|
|
1243
1247
|
|
|
1244
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1245
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1248
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1249
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1246
1250
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1247
1251
|
}
|
|
1248
1252
|
|
|
1249
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1250
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1251
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1252
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1253
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1254
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1255
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1256
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1253
1257
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1254
1258
|
}
|
|
1255
1259
|
|
|
1256
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1257
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1260
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1261
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1258
1262
|
@apply bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1259
1263
|
}
|
|
1260
1264
|
|
|
1261
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1262
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1263
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1264
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1265
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1266
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1267
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1268
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1265
1269
|
@apply h-9 text-sm;
|
|
1266
1270
|
}
|
|
1267
1271
|
|
|
1268
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1269
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1272
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1273
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1270
1274
|
@apply h-8 text-xs;
|
|
1271
1275
|
}
|
|
1272
1276
|
|
|
1273
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1274
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1277
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1278
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1275
1279
|
@apply h-14 px-3 text-sm;
|
|
1276
1280
|
}
|
|
1277
1281
|
|
|
1278
|
-
.sidebar nav li > details > summary::after {
|
|
1282
|
+
.sidebar > nav li > details > summary::after {
|
|
1279
1283
|
@apply size-3.5;
|
|
1280
1284
|
}
|
|
1281
1285
|
|
|
1282
|
-
.sidebar nav li > details::details-content {
|
|
1286
|
+
.sidebar > nav li > details::details-content {
|
|
1283
1287
|
@apply px-3.5;
|
|
1284
1288
|
}
|
|
1285
1289
|
|
|
1286
|
-
.sidebar nav ul ul {
|
|
1290
|
+
.sidebar > nav ul ul {
|
|
1287
1291
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1288
1292
|
}
|
|
1289
1293
|
|
|
1290
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1291
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1294
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1295
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1292
1296
|
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-7 gap-2 rounded-none px-3 text-sm focus-visible:ring-2 [&>svg]:size-3.5;
|
|
1293
1297
|
}
|
|
1294
1298
|
/* Progress */
|
|
@@ -1345,7 +1349,7 @@
|
|
|
1345
1349
|
|
|
1346
1350
|
/* Tooltip */
|
|
1347
1351
|
[data-tooltip]::before {
|
|
1348
|
-
@apply bg-foreground text-background
|
|
1352
|
+
@apply bg-foreground text-background rounded-none px-3 py-1.5 text-xs;
|
|
1349
1353
|
}
|
|
1350
1354
|
|
|
1351
1355
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1383,15 +1387,42 @@
|
|
|
1383
1387
|
}
|
|
1384
1388
|
|
|
1385
1389
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1386
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1390
|
+
@apply size-3 border-none bg-primary transition-colors -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1387
1391
|
}
|
|
1388
1392
|
|
|
1389
1393
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1390
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1394
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
1391
1395
|
}
|
|
1392
1396
|
|
|
1393
1397
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1394
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1398
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1402
|
+
@media (hover: hover) {
|
|
1403
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1404
|
+
@apply ring-2 ring-ring/30;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1408
|
+
@apply ring-2 ring-ring/30;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1412
|
+
@apply ring-2 ring-ring/30;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1417
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1421
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1425
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1395
1426
|
}
|
|
1396
1427
|
|
|
1397
1428
|
}
|
package/dist/styles/vega.css
CHANGED
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
/* Native Select */
|
|
206
206
|
.field > select,
|
|
207
207
|
select.select {
|
|
208
|
-
@apply border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-fit rounded-md border bg-transparent py-1 ps-2.5 pe-8 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8;
|
|
208
|
+
@apply border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-fit rounded-md border bg-transparent py-1 ps-2.5 pe-8 text-base md:text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8;
|
|
209
209
|
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.625rem] bg-size-[1rem];
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
.command > header input {
|
|
364
|
-
@apply ps-1.5 text-sm placeholder:text-muted-foreground;
|
|
364
|
+
@apply ps-1.5 text-base md:text-sm placeholder:text-muted-foreground;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.command [role='menu'] {
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
|
|
404
404
|
/* Combobox */
|
|
405
405
|
.combobox > input[role='combobox'] {
|
|
406
|
-
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent py-2 ps-2.5 pe-8 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3;
|
|
406
|
+
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent py-2 ps-2.5 pe-8 text-base md:text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.combobox > svg,
|
|
@@ -452,6 +452,10 @@
|
|
|
452
452
|
@apply dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40 has-[[aria-invalid=true]]:border-destructive dark:has-[[aria-invalid=true]]:border-destructive/50 min-h-9 gap-1.5 rounded-md border bg-transparent bg-clip-padding px-1.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-3 has-[[aria-invalid=true]]:ring-3;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
+
.combobox-chips > input[role='combobox'] {
|
|
456
|
+
@apply text-base md:text-sm;
|
|
457
|
+
}
|
|
458
|
+
|
|
455
459
|
.combobox-chip {
|
|
456
460
|
@apply bg-muted text-foreground h-5.5 gap-1 rounded-sm px-1.5 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
457
461
|
}
|
|
@@ -950,7 +954,7 @@
|
|
|
950
954
|
@apply opacity-50;
|
|
951
955
|
}
|
|
952
956
|
.input-group > :is(input, select, [data-control]) {
|
|
953
|
-
@apply px-2.5 py-1 text-sm;
|
|
957
|
+
@apply px-2.5 py-1 text-base md:text-sm;
|
|
954
958
|
}
|
|
955
959
|
|
|
956
960
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -962,7 +966,7 @@
|
|
|
962
966
|
}
|
|
963
967
|
|
|
964
968
|
.input-group > textarea {
|
|
965
|
-
@apply px-2.5 py-2 text-sm;
|
|
969
|
+
@apply px-2.5 py-2 text-base md:text-sm;
|
|
966
970
|
}
|
|
967
971
|
|
|
968
972
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1192,92 +1196,92 @@
|
|
|
1192
1196
|
}
|
|
1193
1197
|
|
|
1194
1198
|
/* Sidebar */
|
|
1195
|
-
.sidebar nav {
|
|
1199
|
+
.sidebar > nav {
|
|
1196
1200
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1197
1201
|
}
|
|
1198
1202
|
|
|
1199
|
-
.sidebar nav > header,
|
|
1200
|
-
.sidebar nav > footer {
|
|
1203
|
+
.sidebar > nav > header,
|
|
1204
|
+
.sidebar > nav > footer {
|
|
1201
1205
|
@apply gap-2 p-2;
|
|
1202
1206
|
}
|
|
1203
1207
|
|
|
1204
|
-
.sidebar nav > section {
|
|
1208
|
+
.sidebar > nav > section {
|
|
1205
1209
|
@apply gap-2;
|
|
1206
1210
|
}
|
|
1207
1211
|
|
|
1208
|
-
.sidebar nav [role=separator] {
|
|
1212
|
+
.sidebar > nav [role=separator] {
|
|
1209
1213
|
@apply border-sidebar-border mx-2;
|
|
1210
1214
|
}
|
|
1211
1215
|
|
|
1212
|
-
.sidebar nav > section > [role=group] {
|
|
1216
|
+
.sidebar > nav > section > [role=group] {
|
|
1213
1217
|
@apply p-2;
|
|
1214
1218
|
}
|
|
1215
1219
|
|
|
1216
|
-
.sidebar nav h3 {
|
|
1220
|
+
.sidebar > nav h3 {
|
|
1217
1221
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1218
1222
|
}
|
|
1219
1223
|
|
|
1220
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1224
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1221
1225
|
@apply gap-1;
|
|
1222
1226
|
}
|
|
1223
1227
|
|
|
1224
|
-
.sidebar nav > section > [role=group] {
|
|
1228
|
+
.sidebar > nav > section > [role=group] {
|
|
1225
1229
|
@apply text-sm;
|
|
1226
1230
|
}
|
|
1227
1231
|
|
|
1228
|
-
.sidebar nav li > :is(a, button),
|
|
1229
|
-
.sidebar nav li > details > summary {
|
|
1232
|
+
.sidebar > nav li > :is(a, button),
|
|
1233
|
+
.sidebar > nav li > details > summary {
|
|
1230
1234
|
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-sm focus-visible:ring-2 text-left focus-visible:outline-hidden data-[open]:hover:bg-sidebar-accent data-[open]:hover:text-sidebar-accent-foreground [&>svg]:shrink-0 [&>svg]:size-4;
|
|
1231
1235
|
}
|
|
1232
1236
|
|
|
1233
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1234
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1237
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1238
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1235
1239
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1236
1240
|
}
|
|
1237
1241
|
|
|
1238
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1239
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1240
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1241
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1242
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1243
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1244
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1245
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1242
1246
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1243
1247
|
}
|
|
1244
1248
|
|
|
1245
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1246
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1249
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1250
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1247
1251
|
@apply bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1248
1252
|
}
|
|
1249
1253
|
|
|
1250
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1251
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1252
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1253
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1254
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1255
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1256
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1257
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1254
1258
|
@apply h-8 text-sm;
|
|
1255
1259
|
}
|
|
1256
1260
|
|
|
1257
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1258
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1261
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1262
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1259
1263
|
@apply h-7 text-xs;
|
|
1260
1264
|
}
|
|
1261
1265
|
|
|
1262
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1263
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1266
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1267
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1264
1268
|
@apply h-12 text-sm;
|
|
1265
1269
|
}
|
|
1266
1270
|
|
|
1267
|
-
.sidebar nav li > details > summary::after {
|
|
1271
|
+
.sidebar > nav li > details > summary::after {
|
|
1268
1272
|
@apply size-4;
|
|
1269
1273
|
}
|
|
1270
1274
|
|
|
1271
|
-
.sidebar nav li > details::details-content {
|
|
1275
|
+
.sidebar > nav li > details::details-content {
|
|
1272
1276
|
@apply px-3.5;
|
|
1273
1277
|
}
|
|
1274
1278
|
|
|
1275
|
-
.sidebar nav ul ul {
|
|
1279
|
+
.sidebar > nav ul ul {
|
|
1276
1280
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1277
1281
|
}
|
|
1278
1282
|
|
|
1279
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1280
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1283
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1284
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1281
1285
|
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 text-sm focus-visible:ring-2 [&>svg]:size-4;
|
|
1282
1286
|
}
|
|
1283
1287
|
/* Progress */
|
|
@@ -1334,7 +1338,7 @@
|
|
|
1334
1338
|
|
|
1335
1339
|
/* Tooltip */
|
|
1336
1340
|
[data-tooltip]::before {
|
|
1337
|
-
@apply bg-foreground text-background
|
|
1341
|
+
@apply bg-foreground text-background rounded-md px-3 py-1.5 text-xs;
|
|
1338
1342
|
}
|
|
1339
1343
|
|
|
1340
1344
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1372,15 +1376,42 @@
|
|
|
1372
1376
|
}
|
|
1373
1377
|
|
|
1374
1378
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1375
|
-
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow]
|
|
1379
|
+
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow] -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1376
1380
|
}
|
|
1377
1381
|
|
|
1378
1382
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1379
|
-
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow]
|
|
1383
|
+
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow];
|
|
1380
1384
|
}
|
|
1381
1385
|
|
|
1382
1386
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1383
|
-
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow]
|
|
1387
|
+
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow];
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1391
|
+
@media (hover: hover) {
|
|
1392
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1393
|
+
@apply ring-4;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1397
|
+
@apply ring-4;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1401
|
+
@apply ring-4;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1406
|
+
@apply ring-4 outline-hidden;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1410
|
+
@apply ring-4 outline-hidden;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1414
|
+
@apply ring-4 outline-hidden;
|
|
1384
1415
|
}
|
|
1385
1416
|
|
|
1386
1417
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basecoat-css",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Tailwind CSS for Basecoat components",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "hunvreus",
|
|
@@ -123,6 +123,8 @@
|
|
|
123
123
|
"scripts": {
|
|
124
124
|
"build": "node ./scripts/build.js",
|
|
125
125
|
"prepack": "node ./scripts/build.js",
|
|
126
|
+
"check": "npm run build && node ./scripts/check.js && npm pack --dry-run --ignore-scripts",
|
|
127
|
+
"check:site": "npm run docs:build && node ./scripts/check.js site",
|
|
126
128
|
"docs:build": "npm run build && npm --prefix site clean-install --progress=false && npm --prefix site run build",
|
|
127
129
|
"docs:dev": "npm --prefix site run dev",
|
|
128
130
|
"docs:preview": "npm run docs:build && npm --prefix site run preview",
|
|
@@ -132,6 +134,7 @@
|
|
|
132
134
|
},
|
|
133
135
|
"devDependencies": {
|
|
134
136
|
"@tailwindcss/cli": "^4.1.17",
|
|
137
|
+
"esbuild": "0.28.2",
|
|
135
138
|
"prettier": "^3.5.3",
|
|
136
139
|
"tailwindcss": "^4.1.17",
|
|
137
140
|
"terser": "^5.42.0"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
class="command-dialog {{ dialog_attrs.class | default('') }}"
|
|
99
99
|
aria-label="Command menu"
|
|
100
100
|
{% if open %}open{% endif %}
|
|
101
|
-
onclick="if (event.target === this) this.close()"
|
|
101
|
+
onpointerdown="this.dataset.backdropPress = event.target === this" onclick="if (event.target === this && this.dataset.backdropPress === 'true') this.close()"
|
|
102
102
|
{% for key, value in dialog_attrs.items() %}
|
|
103
103
|
{% if key != 'class' %}{{ key }}="{{ value }}"{% endif %}
|
|
104
104
|
{% endfor %}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
{% if title %}aria-labelledby="{{ id }}-title"{% endif %}
|
|
54
54
|
{% if description %}aria-describedby="{{ id }}-description"{% endif %}
|
|
55
55
|
{% if open %}open{% endif %}
|
|
56
|
-
{% if close_on_overlay_click %}onclick="if (event.target === this) this.close()"{% endif %}
|
|
56
|
+
{% if close_on_overlay_click %}onpointerdown="this.dataset.backdropPress = event.target === this" onclick="if (event.target === this && this.dataset.backdropPress === 'true') this.close()"{% endif %}
|
|
57
57
|
{% for key, value in dialog_attrs.items() %}
|
|
58
58
|
{% if key != 'class' %}{{ key }}="{{ value }}"{% endif %}
|
|
59
59
|
{% endfor %}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
class="command-dialog {{ dialog_attrs.class }}"
|
|
93
93
|
aria-label="Command menu"
|
|
94
94
|
{% if open %}open{% endif %}
|
|
95
|
-
onclick="if (event.target === this) this.close()"
|
|
95
|
+
onpointerdown="this.dataset.backdropPress = event.target === this" onclick="if (event.target === this && this.dataset.backdropPress === 'true') this.close()"
|
|
96
96
|
{% for key, value in dialog_attrs %}
|
|
97
97
|
{% if key != 'class' %}{{ key }}="{{ value }}"{% endif %}
|
|
98
98
|
{% endfor %}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
{% if title %}aria-labelledby="{{ id }}-title"{% endif %}
|
|
49
49
|
{% if description %}aria-describedby="{{ id }}-description"{% endif %}
|
|
50
50
|
{% if open %}open{% endif %}
|
|
51
|
-
{% if close_on_overlay_click %}onclick="if (event.target === this) this.close()"{% endif %}
|
|
51
|
+
{% if close_on_overlay_click %}onpointerdown="this.dataset.backdropPress = event.target === this" onclick="if (event.target === this && this.dataset.backdropPress === 'true') this.close()"{% endif %}
|
|
52
52
|
{% for key, value in dialog_attrs %}
|
|
53
53
|
{% if key != 'class' %}{{ key }}="{{ value }}"{% endif %}
|
|
54
54
|
{% endfor %}
|