basecoat-css 1.0.1 → 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 +11 -2
- package/dist/basecoat-base.bundle.css +1884 -0
- package/dist/basecoat-base.cdn.css +58 -12
- 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 +200 -167
- package/dist/basecoat-luma.cdn.min.css +1 -2
- package/dist/basecoat-lyra.bundle.css +3302 -0
- package/dist/basecoat-lyra.cdn.css +131 -108
- package/dist/basecoat-lyra.cdn.min.css +1 -2
- package/dist/basecoat-maia.bundle.css +3287 -0
- package/dist/basecoat-maia.cdn.css +167 -116
- package/dist/basecoat-maia.cdn.min.css +1 -2
- package/dist/basecoat-mira.bundle.css +3296 -0
- package/dist/basecoat-mira.cdn.css +138 -110
- package/dist/basecoat-mira.cdn.min.css +1 -2
- package/dist/basecoat-nova.bundle.css +3314 -0
- package/dist/basecoat-nova.cdn.css +169 -118
- package/dist/basecoat-nova.cdn.min.css +1 -2
- package/dist/basecoat-rhea.bundle.css +3324 -0
- package/dist/basecoat-rhea.cdn.css +200 -167
- package/dist/basecoat-rhea.cdn.min.css +1 -2
- package/dist/basecoat-sera.bundle.css +3312 -0
- package/dist/basecoat-sera.cdn.css +176 -143
- package/dist/basecoat-sera.cdn.min.css +1 -2
- package/dist/basecoat-vega.bundle.css +3301 -0
- package/dist/basecoat-vega.cdn.css +159 -108
- package/dist/basecoat-vega.cdn.min.css +1 -2
- package/dist/basecoat.bundle.css +3301 -0
- package/dist/basecoat.cdn.css +159 -108
- package/dist/basecoat.cdn.min.css +1 -2
- package/dist/components/dialog.css +34 -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 +108 -44
- package/dist/styles/lyra.css +80 -36
- package/dist/styles/maia.css +86 -42
- package/dist/styles/mira.css +81 -37
- package/dist/styles/nova.css +89 -41
- package/dist/styles/rhea.css +108 -44
- package/dist/styles/sera.css +77 -41
- package/dist/styles/vega.css +77 -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/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
|
}
|
|
@@ -528,6 +532,11 @@
|
|
|
528
532
|
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-6 rounded-xl p-6 ring-1 duration-100 sm:max-w-lg;
|
|
529
533
|
}
|
|
530
534
|
|
|
535
|
+
.alert-dialog:is([data-size='sm']) > *,
|
|
536
|
+
.alert-dialog > [data-size='sm'] {
|
|
537
|
+
@apply sm:max-w-xs;
|
|
538
|
+
}
|
|
539
|
+
|
|
531
540
|
.dialog > * {
|
|
532
541
|
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md;
|
|
533
542
|
}
|
|
@@ -945,7 +954,7 @@
|
|
|
945
954
|
@apply opacity-50;
|
|
946
955
|
}
|
|
947
956
|
.input-group > :is(input, select, [data-control]) {
|
|
948
|
-
@apply px-2.5 py-1 text-sm;
|
|
957
|
+
@apply px-2.5 py-1 text-base md:text-sm;
|
|
949
958
|
}
|
|
950
959
|
|
|
951
960
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -957,7 +966,7 @@
|
|
|
957
966
|
}
|
|
958
967
|
|
|
959
968
|
.input-group > textarea {
|
|
960
|
-
@apply px-2.5 py-2 text-sm;
|
|
969
|
+
@apply px-2.5 py-2 text-base md:text-sm;
|
|
961
970
|
}
|
|
962
971
|
|
|
963
972
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1187,92 +1196,92 @@
|
|
|
1187
1196
|
}
|
|
1188
1197
|
|
|
1189
1198
|
/* Sidebar */
|
|
1190
|
-
.sidebar nav {
|
|
1199
|
+
.sidebar > nav {
|
|
1191
1200
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1192
1201
|
}
|
|
1193
1202
|
|
|
1194
|
-
.sidebar nav > header,
|
|
1195
|
-
.sidebar nav > footer {
|
|
1203
|
+
.sidebar > nav > header,
|
|
1204
|
+
.sidebar > nav > footer {
|
|
1196
1205
|
@apply gap-2 p-2;
|
|
1197
1206
|
}
|
|
1198
1207
|
|
|
1199
|
-
.sidebar nav > section {
|
|
1208
|
+
.sidebar > nav > section {
|
|
1200
1209
|
@apply gap-2;
|
|
1201
1210
|
}
|
|
1202
1211
|
|
|
1203
|
-
.sidebar nav [role=separator] {
|
|
1212
|
+
.sidebar > nav [role=separator] {
|
|
1204
1213
|
@apply border-sidebar-border mx-2;
|
|
1205
1214
|
}
|
|
1206
1215
|
|
|
1207
|
-
.sidebar nav > section > [role=group] {
|
|
1216
|
+
.sidebar > nav > section > [role=group] {
|
|
1208
1217
|
@apply p-2;
|
|
1209
1218
|
}
|
|
1210
1219
|
|
|
1211
|
-
.sidebar nav h3 {
|
|
1220
|
+
.sidebar > nav h3 {
|
|
1212
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;
|
|
1213
1222
|
}
|
|
1214
1223
|
|
|
1215
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1224
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1216
1225
|
@apply gap-1;
|
|
1217
1226
|
}
|
|
1218
1227
|
|
|
1219
|
-
.sidebar nav > section > [role=group] {
|
|
1228
|
+
.sidebar > nav > section > [role=group] {
|
|
1220
1229
|
@apply text-sm;
|
|
1221
1230
|
}
|
|
1222
1231
|
|
|
1223
|
-
.sidebar nav li > :is(a, button),
|
|
1224
|
-
.sidebar nav li > details > summary {
|
|
1232
|
+
.sidebar > nav li > :is(a, button),
|
|
1233
|
+
.sidebar > nav li > details > summary {
|
|
1225
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;
|
|
1226
1235
|
}
|
|
1227
1236
|
|
|
1228
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1229
|
-
.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]) {
|
|
1230
1239
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1231
1240
|
}
|
|
1232
1241
|
|
|
1233
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1234
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1235
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1236
|
-
.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] {
|
|
1237
1246
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1238
1247
|
}
|
|
1239
1248
|
|
|
1240
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1241
|
-
.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] {
|
|
1242
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;
|
|
1243
1252
|
}
|
|
1244
1253
|
|
|
1245
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1246
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1247
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1248
|
-
.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] {
|
|
1249
1258
|
@apply h-8 text-sm;
|
|
1250
1259
|
}
|
|
1251
1260
|
|
|
1252
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1253
|
-
.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] {
|
|
1254
1263
|
@apply h-7 text-xs;
|
|
1255
1264
|
}
|
|
1256
1265
|
|
|
1257
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1258
|
-
.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] {
|
|
1259
1268
|
@apply h-12 text-sm;
|
|
1260
1269
|
}
|
|
1261
1270
|
|
|
1262
|
-
.sidebar nav li > details > summary::after {
|
|
1271
|
+
.sidebar > nav li > details > summary::after {
|
|
1263
1272
|
@apply size-4;
|
|
1264
1273
|
}
|
|
1265
1274
|
|
|
1266
|
-
.sidebar nav li > details::details-content {
|
|
1275
|
+
.sidebar > nav li > details::details-content {
|
|
1267
1276
|
@apply px-3.5;
|
|
1268
1277
|
}
|
|
1269
1278
|
|
|
1270
|
-
.sidebar nav ul ul {
|
|
1279
|
+
.sidebar > nav ul ul {
|
|
1271
1280
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1272
1281
|
}
|
|
1273
1282
|
|
|
1274
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1275
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1283
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1284
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1276
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;
|
|
1277
1286
|
}
|
|
1278
1287
|
/* Progress */
|
|
@@ -1329,7 +1338,7 @@
|
|
|
1329
1338
|
|
|
1330
1339
|
/* Tooltip */
|
|
1331
1340
|
[data-tooltip]::before {
|
|
1332
|
-
@apply bg-foreground text-background
|
|
1341
|
+
@apply bg-foreground text-background rounded-md px-3 py-1.5 text-xs;
|
|
1333
1342
|
}
|
|
1334
1343
|
|
|
1335
1344
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1367,15 +1376,42 @@
|
|
|
1367
1376
|
}
|
|
1368
1377
|
|
|
1369
1378
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1370
|
-
@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)];
|
|
1371
1380
|
}
|
|
1372
1381
|
|
|
1373
1382
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1374
|
-
@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];
|
|
1375
1384
|
}
|
|
1376
1385
|
|
|
1377
1386
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1378
|
-
@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;
|
|
1379
1415
|
}
|
|
1380
1416
|
|
|
1381
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 %}
|