@slotted/styles 0.1.0-beta.33 → 0.1.0-beta.35
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/package.json +5 -1
- package/src/accordion/accordion.css +20 -2
- package/src/accordion/accordion.tokens.json +2 -0
- package/src/avatar/avatar.css +1 -1
- package/src/avatar/avatar.tokens.json +1 -0
- package/src/badge/badge.css +1 -1
- package/src/badge/badge.tokens.json +1 -0
- package/src/button/button.css +168 -4
- package/src/button/button.tokens.json +5 -0
- package/src/calendar/calendar.css +131 -0
- package/src/calendar/calendar.tokens.json +10 -0
- package/src/card/card.css +63 -3
- package/src/cascader/cascader.css +13 -0
- package/src/chart/chart.css +3 -3
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +47 -0
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/collapsible/collapsible.css +174 -5
- package/src/collapsible/collapsible.tokens.json +4 -0
- package/src/combobox/combobox.css +13 -0
- package/src/command-palette/command-palette.css +10 -1
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +12 -7
- package/src/dashboard-grid/dashboard-grid.tokens.json +1 -0
- package/src/data-grid/data-grid.css +44 -5
- package/src/data-list/data-list.css +17 -11
- package/src/description-list/description-list.css +15 -1
- package/src/drawer/drawer.css +91 -0
- package/src/entity-picker/entity-picker.css +23 -1
- package/src/entity-picker/entity-picker.tokens.json +1 -0
- package/src/filter-bar/filter-bar.css +24 -0
- package/src/floating-panel/floating-panel.css +123 -0
- package/src/floating-panel/floating-panel.tokens.json +30 -0
- package/src/form/form.css +19 -16
- package/src/inline-message/inline-message.css +1 -1
- package/src/inline-message/inline-message.tokens.json +1 -0
- package/src/kbd/kbd.css +1 -1
- package/src/kbd/kbd.tokens.json +1 -0
- package/src/list/list.css +10 -1
- package/src/list/list.tokens.json +1 -0
- package/src/list-item/list-item.css +108 -7
- package/src/list-item/list-item.tokens.json +3 -0
- package/src/listbox/listbox.css +50 -2
- package/src/listbox/listbox.tokens.json +6 -0
- package/src/message/message.css +20 -0
- package/src/message/message.tokens.json +1 -0
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +13 -0
- package/src/page/page.css +58 -4
- package/src/page/page.tokens.json +7 -0
- package/src/progress-indicator/progress-indicator.css +70 -0
- package/src/progress-indicator/progress-indicator.tokens.json +3 -0
- package/src/prompt-composer/prompt-composer.css +18 -7
- package/src/radio-group/radio-group.css +50 -0
- package/src/radio-group/radio-group.tokens.json +2 -0
- package/src/rating/rating.css +1 -1
- package/src/rating/rating.tokens.json +1 -0
- package/src/runtime-properties.mjs +19 -0
- package/src/section/section.css +61 -4
- package/src/section/section.tokens.json +6 -0
- package/src/segmented-control/segmented-control.css +11 -0
- package/src/select/select.css +13 -0
- package/src/side-navigation/side-navigation.css +3 -3
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/slider/slider.css +7 -1
- package/src/slider/slider.tokens.json +1 -0
- package/src/sparkline/sparkline.css +207 -0
- package/src/sparkline/sparkline.tokens.json +10 -0
- package/src/stat-card/stat-card.css +5 -0
- package/src/status-indicator/status-indicator.css +3 -2
- package/src/switch/switch.css +49 -25
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +166 -12
- package/src/table/table.tokens.json +5 -0
- package/src/tag/tag.css +4 -1
- package/src/tag/tag.tokens.json +1 -0
- package/src/toolbar/toolbar.css +16 -2
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/top-navigation/top-navigation.css +1 -1
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/typography/typography.css +25 -0
- package/src/typography/typography.tokens.json +1 -0
package/src/drawer/drawer.css
CHANGED
|
@@ -484,6 +484,16 @@
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* A form written around the header, the body and the footer, so Enter in
|
|
489
|
+
* any field and the footer's submit belong to one form. It draws no box:
|
|
490
|
+
* its children are the panel's rows, and every rule of a part is written a
|
|
491
|
+
* second time through it, so the parts keep the panel's inset and rows.
|
|
492
|
+
*/
|
|
493
|
+
[data-ui-drawer] > [data-part-panel] > form {
|
|
494
|
+
display: contents;
|
|
495
|
+
}
|
|
496
|
+
|
|
487
497
|
/* ── Where the panel sits, and where it goes when it leaves ───────────── */
|
|
488
498
|
|
|
489
499
|
[data-ui-drawer][data-side='start'] > [data-part-panel],
|
|
@@ -557,6 +567,10 @@
|
|
|
557
567
|
border-start-end-radius: var(--slotted-drawer-radius-expanded, 0px);
|
|
558
568
|
}
|
|
559
569
|
|
|
570
|
+
[data-ui-drawer][data-side='bottom'][data-expanded]
|
|
571
|
+
> [data-part-panel]
|
|
572
|
+
> form
|
|
573
|
+
> [data-part-header],
|
|
560
574
|
[data-ui-drawer][data-side='bottom'][data-expanded] > [data-part-panel] > [data-part-header] {
|
|
561
575
|
padding-block-start: calc(var(--_padding-block) + env(safe-area-inset-top, 0px));
|
|
562
576
|
}
|
|
@@ -566,14 +580,17 @@
|
|
|
566
580
|
* one. `top` needs no such rule: its separator is the fourth row and the
|
|
567
581
|
* three above it are already where the base puts them.
|
|
568
582
|
*/
|
|
583
|
+
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > form > [data-part-header],
|
|
569
584
|
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > [data-part-header] {
|
|
570
585
|
grid-row: 2;
|
|
571
586
|
}
|
|
572
587
|
|
|
588
|
+
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > form > [data-part-body],
|
|
573
589
|
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > [data-part-body] {
|
|
574
590
|
grid-row: 3;
|
|
575
591
|
}
|
|
576
592
|
|
|
593
|
+
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > form > [data-part-footer],
|
|
577
594
|
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > [data-part-footer] {
|
|
578
595
|
grid-row: 4;
|
|
579
596
|
}
|
|
@@ -678,6 +695,7 @@
|
|
|
678
695
|
* sits over its end. The inset is padding inside the scrollport, so the last
|
|
679
696
|
* line scrolls clear of the indicator rather than stopping under it.
|
|
680
697
|
*/
|
|
698
|
+
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > form > [data-part-body]:last-child,
|
|
681
699
|
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > [data-part-body]:last-child {
|
|
682
700
|
padding-block-end: calc(var(--_padding-block) + env(safe-area-inset-bottom, 0px));
|
|
683
701
|
}
|
|
@@ -1090,6 +1108,7 @@
|
|
|
1090
1108
|
* consumer can write: a header, a body and a footer draw two rules; a header
|
|
1091
1109
|
* and a footer alone draw one; and a panel that is only a body draws none.
|
|
1092
1110
|
*/
|
|
1111
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header],
|
|
1093
1112
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] {
|
|
1094
1113
|
grid-row: 1;
|
|
1095
1114
|
display: grid;
|
|
@@ -1107,6 +1126,7 @@
|
|
|
1107
1126
|
* panel past its own measure, and a panel pinned to an edge then pushes its
|
|
1108
1127
|
* inner edge across the layer.
|
|
1109
1128
|
*/
|
|
1129
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header] > [data-part-title],
|
|
1110
1130
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-title] {
|
|
1111
1131
|
grid-column: 1;
|
|
1112
1132
|
grid-row: 1;
|
|
@@ -1127,24 +1147,34 @@
|
|
|
1127
1147
|
}
|
|
1128
1148
|
|
|
1129
1149
|
/* Actions take a column between the words and the close button, on the title's row. */
|
|
1150
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header]:has(> [data-part-actions]),
|
|
1130
1151
|
[data-ui-drawer] > [data-part-panel] > [data-part-header]:has(> [data-part-actions]) {
|
|
1131
1152
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
1132
1153
|
}
|
|
1133
1154
|
|
|
1134
1155
|
/* A column gap is drawn beside an empty track too, so a header holds only the
|
|
1135
1156
|
columns of the parts it has. */
|
|
1157
|
+
[data-ui-drawer]
|
|
1158
|
+
> [data-part-panel]
|
|
1159
|
+
> form
|
|
1160
|
+
> [data-part-header]:has(> [data-part-actions]):not(:has(> [data-part-close])),
|
|
1136
1161
|
[data-ui-drawer]
|
|
1137
1162
|
> [data-part-panel]
|
|
1138
1163
|
> [data-part-header]:has(> [data-part-actions]):not(:has(> [data-part-close])) {
|
|
1139
1164
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
1140
1165
|
}
|
|
1141
1166
|
|
|
1167
|
+
[data-ui-drawer]
|
|
1168
|
+
> [data-part-panel]
|
|
1169
|
+
> form
|
|
1170
|
+
> [data-part-header]:not(:has(> [data-part-actions], > [data-part-close])),
|
|
1142
1171
|
[data-ui-drawer]
|
|
1143
1172
|
> [data-part-panel]
|
|
1144
1173
|
> [data-part-header]:not(:has(> [data-part-actions], > [data-part-close])) {
|
|
1145
1174
|
grid-template-columns: minmax(0, 1fr);
|
|
1146
1175
|
}
|
|
1147
1176
|
|
|
1177
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header] > [data-part-actions],
|
|
1148
1178
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-actions] {
|
|
1149
1179
|
grid-column: 2;
|
|
1150
1180
|
grid-row: 1 / span 2;
|
|
@@ -1154,6 +1184,7 @@
|
|
|
1154
1184
|
gap: var(--slotted-space-2, 0.25rem);
|
|
1155
1185
|
}
|
|
1156
1186
|
|
|
1187
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header] > [data-part-description],
|
|
1157
1188
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-description] {
|
|
1158
1189
|
grid-column: 1;
|
|
1159
1190
|
grid-row: 2;
|
|
@@ -1175,6 +1206,7 @@
|
|
|
1175
1206
|
* an `icon` box, sized here through the icon token so the box and the
|
|
1176
1207
|
* formula above read one length.
|
|
1177
1208
|
*/
|
|
1209
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header] > [data-part-close],
|
|
1178
1210
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-close] {
|
|
1179
1211
|
--slotted-icon-size: var(--_icon-size);
|
|
1180
1212
|
|
|
@@ -1207,10 +1239,12 @@
|
|
|
1207
1239
|
is the one a mouse sees: a transparent `::before` centerd on the control
|
|
1208
1240
|
reaches 44 pixels, and the ground and the ring stay square. */
|
|
1209
1241
|
@media (pointer: coarse) {
|
|
1242
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header] > [data-part-close],
|
|
1210
1243
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-close] {
|
|
1211
1244
|
position: relative;
|
|
1212
1245
|
}
|
|
1213
1246
|
|
|
1247
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-header] > [data-part-close]::before,
|
|
1214
1248
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-close]::before {
|
|
1215
1249
|
content: '';
|
|
1216
1250
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
@@ -1218,6 +1252,11 @@
|
|
|
1218
1252
|
}
|
|
1219
1253
|
}
|
|
1220
1254
|
|
|
1255
|
+
[data-ui-drawer]
|
|
1256
|
+
> [data-part-panel]
|
|
1257
|
+
> form
|
|
1258
|
+
> [data-part-header]
|
|
1259
|
+
> [data-part-close]:not(:disabled):hover,
|
|
1221
1260
|
[data-ui-drawer]
|
|
1222
1261
|
> [data-part-panel]
|
|
1223
1262
|
> [data-part-header]
|
|
@@ -1229,6 +1268,11 @@
|
|
|
1229
1268
|
);
|
|
1230
1269
|
}
|
|
1231
1270
|
|
|
1271
|
+
[data-ui-drawer]
|
|
1272
|
+
> [data-part-panel]
|
|
1273
|
+
> form
|
|
1274
|
+
> [data-part-header]
|
|
1275
|
+
> [data-part-close]:not(:disabled):active,
|
|
1232
1276
|
[data-ui-drawer]
|
|
1233
1277
|
> [data-part-panel]
|
|
1234
1278
|
> [data-part-header]
|
|
@@ -1239,6 +1283,11 @@
|
|
|
1239
1283
|
);
|
|
1240
1284
|
}
|
|
1241
1285
|
|
|
1286
|
+
[data-ui-drawer]
|
|
1287
|
+
> [data-part-panel]
|
|
1288
|
+
> form
|
|
1289
|
+
> [data-part-header]
|
|
1290
|
+
> [data-part-close]:focus-visible,
|
|
1242
1291
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-close]:focus-visible {
|
|
1243
1292
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1244
1293
|
outline-offset: calc(-1 * var(--slotted-focus-ring-offset, 2px));
|
|
@@ -1252,6 +1301,7 @@
|
|
|
1252
1301
|
* `dismissable-layer` covers the modal case; this covers the other two, where
|
|
1253
1302
|
* the page behind is not locked at all.
|
|
1254
1303
|
*/
|
|
1304
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-body],
|
|
1255
1305
|
[data-ui-drawer] > [data-part-panel] > [data-part-body] {
|
|
1256
1306
|
grid-row: 2;
|
|
1257
1307
|
min-block-size: 0;
|
|
@@ -1269,10 +1319,12 @@
|
|
|
1269
1319
|
}
|
|
1270
1320
|
|
|
1271
1321
|
/* Content that brings its own inset — a page, a list on the panel's edges. */
|
|
1322
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-body][data-inset='none'],
|
|
1272
1323
|
[data-ui-drawer] > [data-part-panel] > [data-part-body][data-inset='none'] {
|
|
1273
1324
|
padding: 0;
|
|
1274
1325
|
}
|
|
1275
1326
|
|
|
1327
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-body]:not(:first-child),
|
|
1276
1328
|
[data-ui-drawer] > [data-part-panel] > [data-part-body]:not(:first-child) {
|
|
1277
1329
|
border-block-start: var(--_rule-size) solid
|
|
1278
1330
|
var(--slotted-drawer-rule-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -1285,6 +1337,7 @@
|
|
|
1285
1337
|
* instead, and the header, the close button, Escape and the resizer all stay
|
|
1286
1338
|
* operable: a loading drawer a reader cannot leave is the worse failure.
|
|
1287
1339
|
*/
|
|
1340
|
+
[data-ui-drawer][data-loading] > [data-part-panel] > form > [data-part-body],
|
|
1288
1341
|
[data-ui-drawer][data-loading] > [data-part-panel] > [data-part-body] {
|
|
1289
1342
|
min-block-size: var(--slotted-space-12, 4rem);
|
|
1290
1343
|
}
|
|
@@ -1297,6 +1350,7 @@
|
|
|
1297
1350
|
* reason the middle one is bounded — an unbounded panel pushes it past the
|
|
1298
1351
|
* fold, which is the whole failure the three-row grid exists to prevent.
|
|
1299
1352
|
*/
|
|
1353
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-footer],
|
|
1300
1354
|
[data-ui-drawer] > [data-part-panel] > [data-part-footer] {
|
|
1301
1355
|
grid-row: 3;
|
|
1302
1356
|
display: flex;
|
|
@@ -1313,6 +1367,7 @@
|
|
|
1313
1367
|
}
|
|
1314
1368
|
|
|
1315
1369
|
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
1370
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-footer],
|
|
1316
1371
|
[data-ui-drawer] > [data-part-panel] > [data-part-footer] {
|
|
1317
1372
|
-webkit-backdrop-filter: none;
|
|
1318
1373
|
backdrop-filter: none;
|
|
@@ -1332,12 +1387,14 @@
|
|
|
1332
1387
|
* above it and the header already clears it; the body scrolls, so an inset on
|
|
1333
1388
|
* it would be padding inside a scrollport rather than under it.
|
|
1334
1389
|
*/
|
|
1390
|
+
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > form > [data-part-footer],
|
|
1335
1391
|
[data-ui-drawer][data-side='bottom'] > [data-part-panel] > [data-part-footer] {
|
|
1336
1392
|
padding-block-end: calc(
|
|
1337
1393
|
var(--_footer-padding-block, var(--_padding-block)) + env(safe-area-inset-bottom, 0px)
|
|
1338
1394
|
);
|
|
1339
1395
|
}
|
|
1340
1396
|
|
|
1397
|
+
[data-ui-drawer] > [data-part-panel] > form > [data-part-footer]:not(:first-child),
|
|
1341
1398
|
[data-ui-drawer] > [data-part-panel] > [data-part-footer]:not(:first-child) {
|
|
1342
1399
|
border-block-start: var(--_rule-size) solid
|
|
1343
1400
|
var(--slotted-drawer-rule-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -1451,6 +1508,10 @@
|
|
|
1451
1508
|
border-start-end-radius var(--_move);
|
|
1452
1509
|
}
|
|
1453
1510
|
|
|
1511
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag]
|
|
1512
|
+
> [data-part-panel]
|
|
1513
|
+
> form
|
|
1514
|
+
> [data-part-footer],
|
|
1454
1515
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag]
|
|
1455
1516
|
> [data-part-panel]
|
|
1456
1517
|
> [data-part-footer] {
|
|
@@ -1485,6 +1546,10 @@
|
|
|
1485
1546
|
}
|
|
1486
1547
|
|
|
1487
1548
|
/* `size="full"` is the screen: the footer rests at its bottom, in the row that takes what is left. */
|
|
1549
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel'][data-size='full']
|
|
1550
|
+
> [data-part-panel]
|
|
1551
|
+
> form
|
|
1552
|
+
> [data-part-footer],
|
|
1488
1553
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel'][data-size='full']
|
|
1489
1554
|
> [data-part-panel]
|
|
1490
1555
|
> [data-part-footer] {
|
|
@@ -1507,6 +1572,10 @@
|
|
|
1507
1572
|
block-size: 0;
|
|
1508
1573
|
}
|
|
1509
1574
|
|
|
1575
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1576
|
+
> [data-part-panel]
|
|
1577
|
+
> form
|
|
1578
|
+
> [data-part-body],
|
|
1510
1579
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1511
1580
|
> [data-part-panel]
|
|
1512
1581
|
> [data-part-body] {
|
|
@@ -1522,6 +1591,10 @@
|
|
|
1522
1591
|
z-index: 2;
|
|
1523
1592
|
}
|
|
1524
1593
|
|
|
1594
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1595
|
+
> [data-part-panel]
|
|
1596
|
+
> form
|
|
1597
|
+
> [data-part-header],
|
|
1525
1598
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1526
1599
|
> [data-part-panel]
|
|
1527
1600
|
> [data-part-header] {
|
|
@@ -1537,6 +1610,10 @@
|
|
|
1537
1610
|
* their own, as the footer has: a frosted theme gives them a blur and a
|
|
1538
1611
|
* lighter fill there.
|
|
1539
1612
|
*/
|
|
1613
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1614
|
+
> [data-part-panel]
|
|
1615
|
+
> form
|
|
1616
|
+
> :is([data-part-resizer], [data-part-header])[data-stuck],
|
|
1540
1617
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1541
1618
|
> [data-part-panel]
|
|
1542
1619
|
> :is([data-part-resizer], [data-part-header])[data-stuck] {
|
|
@@ -1549,6 +1626,10 @@
|
|
|
1549
1626
|
}
|
|
1550
1627
|
|
|
1551
1628
|
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
1629
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1630
|
+
> [data-part-panel]
|
|
1631
|
+
> form
|
|
1632
|
+
> :is([data-part-resizer], [data-part-header])[data-stuck],
|
|
1552
1633
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='panel']
|
|
1553
1634
|
> [data-part-panel]
|
|
1554
1635
|
> :is([data-part-resizer], [data-part-header])[data-stuck] {
|
|
@@ -1573,12 +1654,22 @@
|
|
|
1573
1654
|
touch-action: none;
|
|
1574
1655
|
}
|
|
1575
1656
|
|
|
1657
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='resizer']
|
|
1658
|
+
> [data-part-panel]
|
|
1659
|
+
> form
|
|
1660
|
+
> [data-part-body],
|
|
1576
1661
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='resizer']
|
|
1577
1662
|
> [data-part-panel]
|
|
1578
1663
|
> [data-part-body] {
|
|
1579
1664
|
touch-action: pan-y;
|
|
1580
1665
|
}
|
|
1581
1666
|
|
|
1667
|
+
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='resizer']:not(
|
|
1668
|
+
[data-top-stop]
|
|
1669
|
+
)
|
|
1670
|
+
> [data-part-panel]
|
|
1671
|
+
> form
|
|
1672
|
+
> [data-part-body],
|
|
1582
1673
|
[data-ui-drawer][data-mode='overlay'][data-side='bottom'][data-drag='resizer']:not(
|
|
1583
1674
|
[data-top-stop]
|
|
1584
1675
|
)
|
|
@@ -995,7 +995,7 @@
|
|
|
995
995
|
* the items and below the parts the surface draws over them.
|
|
996
996
|
*/
|
|
997
997
|
[data-ui-entity-picker][data-part-positioner] [data-part-group-label] {
|
|
998
|
-
background:
|
|
998
|
+
background: transparent;
|
|
999
999
|
box-sizing: border-box;
|
|
1000
1000
|
color: var(--_muted);
|
|
1001
1001
|
font-size: var(--_secondary-font-size);
|
|
@@ -1010,6 +1010,15 @@
|
|
|
1010
1010
|
z-index: 1;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
|
+
/**
|
|
1014
|
+
* At rest the label stands on the panel's own surface and paints none, so a
|
|
1015
|
+
* translucent panel does not draw a second layer under every label. Only
|
|
1016
|
+
* while it is stuck, with rows passing under it, does it fill.
|
|
1017
|
+
*/
|
|
1018
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] {
|
|
1019
|
+
background: var(--slotted-entity-picker-group-label-stuck-surface, var(--_surface));
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1013
1022
|
@media (forced-colors: active) {
|
|
1014
1023
|
[data-ui-entity-picker][data-part-positioner] [data-part-group-label] {
|
|
1015
1024
|
background: Canvas;
|
|
@@ -1297,6 +1306,19 @@
|
|
|
1297
1306
|
display: none;
|
|
1298
1307
|
}
|
|
1299
1308
|
|
|
1309
|
+
/* Beside the empty message the status says the same thing to the eye. It
|
|
1310
|
+
stays the live region that announces the count, clipped to one pixel. */
|
|
1311
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-empty] ~ [data-part-status] {
|
|
1312
|
+
block-size: 1px;
|
|
1313
|
+
clip-path: inset(50%);
|
|
1314
|
+
inline-size: 1px;
|
|
1315
|
+
min-inline-size: 0;
|
|
1316
|
+
overflow: hidden;
|
|
1317
|
+
padding: 0;
|
|
1318
|
+
position: absolute;
|
|
1319
|
+
white-space: nowrap;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1300
1322
|
/**
|
|
1301
1323
|
* The error names what failed in the text color, with the alert mark — a
|
|
1302
1324
|
* `Glyph` the binding draws before the words — beside it in the danger
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"--slotted-entity-picker-field-basis",
|
|
63
63
|
"--slotted-entity-picker-field-min",
|
|
64
64
|
"--slotted-entity-picker-group-label-height",
|
|
65
|
+
"--slotted-entity-picker-group-label-stuck-surface",
|
|
65
66
|
"--slotted-entity-picker-highlight",
|
|
66
67
|
"--slotted-entity-picker-highlight-active",
|
|
67
68
|
"--slotted-entity-picker-highlight-ring",
|
|
@@ -1222,6 +1222,30 @@
|
|
|
1222
1222
|
justify-self: start;
|
|
1223
1223
|
padding-block: 0;
|
|
1224
1224
|
}
|
|
1225
|
+
|
|
1226
|
+
/*
|
|
1227
|
+
* With no chip and no pill, the row holds the summary alone: a line of a
|
|
1228
|
+
* phone spent on one button, which pushed the first records down. The
|
|
1229
|
+
* summary stands at the end of the search line instead, and the row of
|
|
1230
|
+
* conditions comes back with the first chip or pinned field.
|
|
1231
|
+
*/
|
|
1232
|
+
[data-ui-filter-bar]
|
|
1233
|
+
> [data-part-frame]:not(:has(> [data-part-bar] > :is([data-part-chip], [data-part-pill]))) {
|
|
1234
|
+
grid-template-areas:
|
|
1235
|
+
'search bar'
|
|
1236
|
+
'count count';
|
|
1237
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
[data-ui-filter-bar]
|
|
1241
|
+
> [data-part-frame]:not(
|
|
1242
|
+
:has(> [data-part-bar] > :is([data-part-chip], [data-part-pill]))
|
|
1243
|
+
):has(> [data-part-end]:not(:empty)) {
|
|
1244
|
+
grid-template-areas:
|
|
1245
|
+
'search bar'
|
|
1246
|
+
'end end'
|
|
1247
|
+
'count count';
|
|
1248
|
+
}
|
|
1225
1249
|
}
|
|
1226
1250
|
|
|
1227
1251
|
/**
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@layer slotted.components {
|
|
2
|
+
/**
|
|
3
|
+
* A tool that floats over the page and holds nobody: no scrim, no focus
|
|
4
|
+
* trap, no inert page. It stands at the place the binding writes (`--_x`,
|
|
5
|
+
* `--_y`, the top-left corner in viewport pixels) and the translation is
|
|
6
|
+
* clamped by the viewport and its own size, so the whole panel stays in view
|
|
7
|
+
* while it moves, when the window shrinks and when a stored place lies
|
|
8
|
+
* outside it, with no script on resize.
|
|
9
|
+
*
|
|
10
|
+
* [data-ui-floating-panel] ▸ handle ▸ grip · title · close
|
|
11
|
+
* ▸ body
|
|
12
|
+
*/
|
|
13
|
+
[data-ui-floating-panel][data-part-root] {
|
|
14
|
+
background-color: var(--slotted-floating-panel-surface, var(--slotted-surface-raised, Canvas));
|
|
15
|
+
border: var(--slotted-border-width-thin, 1px) solid
|
|
16
|
+
var(--slotted-floating-panel-border-color, var(--slotted-border-strong, CanvasText));
|
|
17
|
+
border-radius: var(--slotted-floating-panel-radius, var(--slotted-radius-lg, 8px));
|
|
18
|
+
box-shadow: var(--slotted-floating-panel-shadow, var(--slotted-shadow-lg, none));
|
|
19
|
+
-webkit-backdrop-filter: var(--slotted-floating-panel-backdrop-filter, none);
|
|
20
|
+
backdrop-filter: var(--slotted-floating-panel-backdrop-filter, none);
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
color: var(--slotted-text, CanvasText);
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
font-family: var(--slotted-font-family-sans, system-ui, sans-serif);
|
|
26
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
27
|
+
/* The place is physical (a pointer's coordinates), so the panel stands
|
|
28
|
+
at the viewport's left edge in either direction before it moves. */
|
|
29
|
+
inset-block-start: 0;
|
|
30
|
+
inset-inline-start: 0;
|
|
31
|
+
max-block-size: 100dvh;
|
|
32
|
+
max-inline-size: 100vw;
|
|
33
|
+
position: fixed;
|
|
34
|
+
translate: clamp(0px, var(--_x, 0px), calc(100vw - 100%))
|
|
35
|
+
clamp(0px, var(--_y, 0px), calc(100dvh - 100%));
|
|
36
|
+
/* Over the page and its popovers' layer, under a toast. */
|
|
37
|
+
z-index: var(--slotted-z-index-popover, 1000);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-ui-floating-panel][data-part-root]:dir(rtl) {
|
|
41
|
+
inset-inline-end: 0;
|
|
42
|
+
inset-inline-start: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-ui-floating-panel] > [data-part-handle] {
|
|
46
|
+
align-items: center;
|
|
47
|
+
border-block-end: var(--slotted-border-width-thin, 1px) solid
|
|
48
|
+
var(--slotted-floating-panel-rule-color, var(--slotted-border-subtle, ButtonBorder));
|
|
49
|
+
cursor: grab;
|
|
50
|
+
display: flex;
|
|
51
|
+
gap: var(--slotted-space-3, 0.375rem);
|
|
52
|
+
padding-block: var(--slotted-space-2, 0.25rem);
|
|
53
|
+
padding-inline: var(--slotted-space-3, 0.375rem);
|
|
54
|
+
/* A press on the handle is a drag, never a scroll of the page. */
|
|
55
|
+
touch-action: none;
|
|
56
|
+
user-select: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-ui-floating-panel][data-dragging] > [data-part-handle] {
|
|
60
|
+
cursor: grabbing;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-ui-floating-panel] > [data-part-handle] > [data-part-title] {
|
|
64
|
+
flex: 1 1 auto;
|
|
65
|
+
font-family: var(
|
|
66
|
+
--slotted-font-family-heading,
|
|
67
|
+
var(--slotted-font-family-sans, system-ui, sans-serif)
|
|
68
|
+
);
|
|
69
|
+
font-size: inherit;
|
|
70
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
71
|
+
margin: 0;
|
|
72
|
+
min-inline-size: 0;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-ui-floating-panel] > [data-part-handle] > :is([data-part-grip], [data-part-close]) {
|
|
79
|
+
align-items: center;
|
|
80
|
+
appearance: none;
|
|
81
|
+
background-color: transparent;
|
|
82
|
+
block-size: var(--slotted-control-inner-size-md, 24px);
|
|
83
|
+
border: 0;
|
|
84
|
+
border-radius: var(--slotted-radius-sm, 4px);
|
|
85
|
+
color: var(--slotted-text-muted, GrayText);
|
|
86
|
+
cursor: inherit;
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
flex: none;
|
|
89
|
+
inline-size: var(--slotted-control-inner-size-md, 24px);
|
|
90
|
+
justify-content: center;
|
|
91
|
+
padding: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-ui-floating-panel] > [data-part-handle] > [data-part-close] {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-ui-floating-panel]
|
|
99
|
+
> [data-part-handle]
|
|
100
|
+
> :is([data-part-grip], [data-part-close]):hover:not(:disabled) {
|
|
101
|
+
background-color: var(--slotted-tone-secondary-subtle-hover);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-ui-floating-panel]
|
|
105
|
+
> [data-part-handle]
|
|
106
|
+
> :is([data-part-grip], [data-part-close]):focus-visible {
|
|
107
|
+
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
108
|
+
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-ui-floating-panel] > [data-part-body] {
|
|
112
|
+
min-block-size: 0;
|
|
113
|
+
overflow: auto;
|
|
114
|
+
padding: var(--slotted-space-5, 0.75rem);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
118
|
+
[data-ui-floating-panel][data-part-root] {
|
|
119
|
+
-webkit-backdrop-filter: none;
|
|
120
|
+
backdrop-filter: none;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[
|
|
2
|
+
"--slotted-border-strong",
|
|
3
|
+
"--slotted-border-subtle",
|
|
4
|
+
"--slotted-border-width-thin",
|
|
5
|
+
"--slotted-control-inner-size-md",
|
|
6
|
+
"--slotted-floating-panel-backdrop-filter",
|
|
7
|
+
"--slotted-floating-panel-border-color",
|
|
8
|
+
"--slotted-floating-panel-radius",
|
|
9
|
+
"--slotted-floating-panel-rule-color",
|
|
10
|
+
"--slotted-floating-panel-shadow",
|
|
11
|
+
"--slotted-floating-panel-surface",
|
|
12
|
+
"--slotted-focus-ring-color",
|
|
13
|
+
"--slotted-focus-ring-offset",
|
|
14
|
+
"--slotted-focus-ring-width",
|
|
15
|
+
"--slotted-font-family-heading",
|
|
16
|
+
"--slotted-font-family-sans",
|
|
17
|
+
"--slotted-font-size-sm",
|
|
18
|
+
"--slotted-font-weight-semibold",
|
|
19
|
+
"--slotted-radius-lg",
|
|
20
|
+
"--slotted-radius-sm",
|
|
21
|
+
"--slotted-shadow-lg",
|
|
22
|
+
"--slotted-space-2",
|
|
23
|
+
"--slotted-space-3",
|
|
24
|
+
"--slotted-space-5",
|
|
25
|
+
"--slotted-surface-raised",
|
|
26
|
+
"--slotted-text",
|
|
27
|
+
"--slotted-text-muted",
|
|
28
|
+
"--slotted-tone-secondary-subtle-hover",
|
|
29
|
+
"--slotted-z-index-popover"
|
|
30
|
+
]
|
package/src/form/form.css
CHANGED
|
@@ -153,15 +153,23 @@
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* Two
|
|
157
|
-
* apart by a step of the space scale
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
156
|
+
* Two children written one after the other directly inside the form stand
|
|
157
|
+
* apart by a step of the space scale: two fields, a row of fields the page
|
|
158
|
+
* draws itself, a message or a paragraph between them. The root is a block
|
|
159
|
+
* and drew no distance at all, so a form written from the minimal example
|
|
160
|
+
* rendered its fields touching. The aside and the summary keep their own
|
|
161
|
+
* margins, the action row keeps its own step, and a hidden input draws
|
|
162
|
+
* nothing, so it neither takes the gap nor gives it away.
|
|
163
|
+
* shortcut: a hidden input between two children drops the gap between them.
|
|
161
164
|
*/
|
|
162
165
|
[data-ui-form][data-part-root]
|
|
163
|
-
> :
|
|
164
|
-
+ :
|
|
166
|
+
> :where(:not([data-ui-form]:is([data-part-aside], [data-part-summary]), [type='hidden']))
|
|
167
|
+
+ :where(
|
|
168
|
+
:not(
|
|
169
|
+
[data-ui-form]:is([data-part-aside], [data-part-summary], [data-part-actions]),
|
|
170
|
+
[type='hidden']
|
|
171
|
+
)
|
|
172
|
+
) {
|
|
165
173
|
margin-block-start: var(--slotted-form-field-gap, var(--slotted-space-6, 1rem));
|
|
166
174
|
}
|
|
167
175
|
|
|
@@ -174,16 +182,11 @@
|
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
/**
|
|
177
|
-
* One column at a bounded measure: a field
|
|
178
|
-
* summary and the actions end where the fields end.
|
|
185
|
+
* One column at a bounded measure: a field, a row of fields, a message and
|
|
186
|
+
* the summary and the actions end where the fields end. The aside stands
|
|
187
|
+
* outside the column.
|
|
179
188
|
*/
|
|
180
|
-
[data-ui-form][data-part-root]
|
|
181
|
-
> :is(
|
|
182
|
-
[data-ui-field],
|
|
183
|
-
[data-ui-field-group],
|
|
184
|
-
[data-ui-form][data-part-summary],
|
|
185
|
-
[data-ui-form][data-part-actions]
|
|
186
|
-
) {
|
|
189
|
+
[data-ui-form][data-part-root] > :not([data-ui-form][data-part-aside]) {
|
|
187
190
|
max-inline-size: var(--slotted-form-measure, 40rem);
|
|
188
191
|
}
|
|
189
192
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
* rather than to the half-leading around it: the field's six-pixel row gap
|
|
95
95
|
* is six pixels from the control to the capitals.
|
|
96
96
|
*/
|
|
97
|
-
text-box: trim-both cap alphabetic;
|
|
97
|
+
text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
|
|
98
98
|
text-wrap: pretty;
|
|
99
99
|
}
|
|
100
100
|
|
package/src/kbd/kbd.css
CHANGED
package/src/kbd/kbd.tokens.json
CHANGED
package/src/list/list.css
CHANGED
|
@@ -48,6 +48,11 @@
|
|
|
48
48
|
--_frame-width: var(--slotted-list-border-width, var(--slotted-border-width-thin, 1px));
|
|
49
49
|
--_frame-radius: var(--slotted-list-radius, var(--slotted-radius-md, 6px));
|
|
50
50
|
--_surface: var(--slotted-list-background, var(--slotted-surface, Canvas));
|
|
51
|
+
/* The ground a sticky group heading paints, so it covers the rows that
|
|
52
|
+
scroll under it. A plain or ruled list paints no surface and stands on
|
|
53
|
+
a ground it does not know (a page, a sunken region); the consumer names
|
|
54
|
+
that ground here. A framed or separated list paints its own. */
|
|
55
|
+
--_section-background: var(--slotted-list-section-background, var(--slotted-surface, Canvas));
|
|
51
56
|
/* The group heading's type and color. It is a heading in the document,
|
|
52
57
|
so it takes the muted ink rather than a tone: a colored heading over a
|
|
53
58
|
neutral list reads as a status the group does not have. */
|
|
@@ -129,6 +134,10 @@
|
|
|
129
134
|
row-gap: var(--_gap);
|
|
130
135
|
}
|
|
131
136
|
|
|
137
|
+
[data-ui-list][data-part-root]:is([data-variant='framed'], [data-variant='separated']) {
|
|
138
|
+
--_section-background: var(--slotted-list-section-background, var(--_surface));
|
|
139
|
+
}
|
|
140
|
+
|
|
132
141
|
/**
|
|
133
142
|
* A group inside the set. It is an `li` holding a heading and a nested list,
|
|
134
143
|
* which is the grouping HTML already has; MUI, Angular Material, Primer and
|
|
@@ -221,7 +230,7 @@
|
|
|
221
230
|
}
|
|
222
231
|
|
|
223
232
|
[data-ui-list] [data-part-section-label][data-sticky] {
|
|
224
|
-
background-color: var(--
|
|
233
|
+
background-color: var(--_section-background);
|
|
225
234
|
inset-block-start: 0;
|
|
226
235
|
position: sticky;
|
|
227
236
|
z-index: var(--slotted-z-index-sticky, 100);
|