@slotted/styles 0.1.0-beta.27 → 0.1.0-beta.29
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 +3 -1
- package/src/attachment/attachment.css +13 -1
- package/src/command-palette/command-palette.css +36 -0
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/date-picker/date-picker.css +41 -0
- package/src/date-picker/date-picker.tokens.json +4 -0
- package/src/date-range-picker/date-range-picker.css +33 -0
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-picker/datetime-picker.css +42 -0
- package/src/datetime-picker/datetime-picker.tokens.json +4 -0
- package/src/datetime-range-picker/datetime-range-picker.css +33 -0
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +23 -8
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/dialog/dialog.css +59 -45
- package/src/drawer/drawer.css +27 -2
- package/src/drawer/drawer.tokens.json +2 -0
- package/src/entity-picker/entity-picker.css +36 -0
- package/src/entity-picker/entity-picker.tokens.json +1 -0
- package/src/field/field.css +3 -1
- package/src/field-group/field-group.css +20 -6
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/message/message.css +1255 -1248
- package/src/message-scroller/message-scroller.css +322 -318
- package/src/runtime-properties.mjs +11 -0
- package/src/stat-card/stat-card.css +33 -0
- package/src/stat-card/stat-card.tokens.json +4 -0
- package/src/tag/tag.css +5 -4
- package/src/tag/tag.tokens.json +1 -0
- package/src/time-picker/time-picker.css +41 -0
- package/src/time-picker/time-picker.tokens.json +4 -0
- package/src/time-range-picker/time-range-picker.css +33 -0
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
|
@@ -986,14 +986,50 @@
|
|
|
986
986
|
margin-block-start: var(--slotted-space-2, 0.25rem);
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
+
/**
|
|
990
|
+
* A group's label stays at the top of the list while its group is in view.
|
|
991
|
+
* The group is the label's containing block, so the next label pushes it out
|
|
992
|
+
* and a group scrolled past takes its label with it. It sticks to the
|
|
993
|
+
* scrollport's edge rather than the padding's, on the surface's ground, above
|
|
994
|
+
* the items and below the parts the surface draws over them.
|
|
995
|
+
*/
|
|
989
996
|
[data-ui-entity-picker][data-part-positioner] [data-part-group-label] {
|
|
997
|
+
background: var(--_surface);
|
|
998
|
+
box-sizing: border-box;
|
|
990
999
|
color: var(--_muted);
|
|
991
1000
|
font-size: var(--_secondary-font-size);
|
|
992
1001
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
993
1002
|
grid-column: 1 / -1;
|
|
1003
|
+
inset-block-start: calc(-1 * var(--_inset-block));
|
|
994
1004
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
1005
|
+
min-block-size: var(--_group-label-height);
|
|
995
1006
|
padding-block: var(--slotted-space-3, 0.375rem) var(--slotted-space-2, 0.25rem);
|
|
996
1007
|
padding-inline: var(--_item-inset);
|
|
1008
|
+
position: sticky;
|
|
1009
|
+
z-index: 1;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
@media (forced-colors: active) {
|
|
1013
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label] {
|
|
1014
|
+
background: Canvas;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* The label's height, which the list keeps clear above an item the keys
|
|
1020
|
+
* bring into view (`revealWithin` reads the scroll padding), so the item is
|
|
1021
|
+
* never drawn under a label stuck to the top.
|
|
1022
|
+
*/
|
|
1023
|
+
[data-ui-entity-picker] > [data-part-content]:has([data-part-group-label]) {
|
|
1024
|
+
--_group-label-height: var(
|
|
1025
|
+
--slotted-entity-picker-group-label-height,
|
|
1026
|
+
calc(
|
|
1027
|
+
var(--_secondary-font-size) * var(--slotted-line-height-sm, 1.45) +
|
|
1028
|
+
var(--slotted-space-3, 0.375rem) + var(--slotted-space-2, 0.25rem)
|
|
1029
|
+
)
|
|
1030
|
+
);
|
|
1031
|
+
|
|
1032
|
+
scroll-padding-block-start: var(--_group-label-height);
|
|
997
1033
|
}
|
|
998
1034
|
|
|
999
1035
|
/* ── The record ───────────────────────────────────────────────────────── */
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"--slotted-entity-picker-error-color",
|
|
62
62
|
"--slotted-entity-picker-field-basis",
|
|
63
63
|
"--slotted-entity-picker-field-min",
|
|
64
|
+
"--slotted-entity-picker-group-label-height",
|
|
64
65
|
"--slotted-entity-picker-highlight",
|
|
65
66
|
"--slotted-entity-picker-highlight-active",
|
|
66
67
|
"--slotted-entity-picker-highlight-ring",
|
package/src/field/field.css
CHANGED
|
@@ -209,7 +209,9 @@
|
|
|
209
209
|
[data-ui-field] > [data-part-label] > [data-part-mark],
|
|
210
210
|
[data-ui-field] > [data-part-header] > [data-part-label] > [data-part-mark] {
|
|
211
211
|
color: var(--slotted-field-mark-color, var(--slotted-tone-danger-text));
|
|
212
|
-
|
|
212
|
+
/* The distance is the space written before the mark, which the accessible
|
|
213
|
+
name needs as text; the token adds to it. */
|
|
214
|
+
margin-inline-start: var(--slotted-field-mark-gap, 0);
|
|
213
215
|
/* The label breaks anywhere; the necessity word never does. `(required)`
|
|
214
216
|
split across two lines as `(re` and `quired)` in the 240-pixel capture,
|
|
215
217
|
because a rule for one unbreakable German noun had reached the one part
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
/** Legend to its own description, and description to error. */
|
|
25
25
|
--_message-gap: var(--slotted-field-group-message-gap, var(--slotted-space-2, 0.25rem));
|
|
26
26
|
/**
|
|
27
|
-
* The last thing said about
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
27
|
+
* The last thing said about a question, to its choices: the distance a
|
|
28
|
+
* field's label stands from its control, because a question and its
|
|
29
|
+
* choices are one answer, as a label and its control are. A section
|
|
30
|
+
* stands further from its first field, below.
|
|
31
31
|
*/
|
|
32
|
-
--_content-gap: var(
|
|
32
|
+
--_content-gap: var(
|
|
33
|
+
--slotted-field-group-content-gap,
|
|
34
|
+
var(--slotted-field-row-gap, var(--slotted-space-3, 0.375rem))
|
|
35
|
+
);
|
|
33
36
|
/** One field to the next. */
|
|
34
37
|
--_field-gap: var(--slotted-field-group-field-gap, var(--slotted-space-6, 1rem));
|
|
35
38
|
|
|
@@ -60,6 +63,16 @@
|
|
|
60
63
|
margin-block-start: var(--_content-gap);
|
|
61
64
|
}
|
|
62
65
|
|
|
66
|
+
/**
|
|
67
|
+
* The last thing said about a section, to the first field in it. One step
|
|
68
|
+
* wider than the distance between two fields, which is the correction the
|
|
69
|
+
* first capture asked for: held at the same value, the description read as
|
|
70
|
+
* belonging to the field under it rather than to the set.
|
|
71
|
+
*/
|
|
72
|
+
[data-ui-field-group][data-part-root][data-kind='section'] {
|
|
73
|
+
--_content-gap: var(--slotted-field-group-section-content-gap, var(--slotted-space-7, 1.25rem));
|
|
74
|
+
}
|
|
75
|
+
|
|
63
76
|
/* ── Size ─────────────────────────────────────────────────────────────
|
|
64
77
|
*
|
|
65
78
|
* The same three steps a field has, and for the same reason: a group in a
|
|
@@ -112,7 +125,8 @@
|
|
|
112
125
|
*/
|
|
113
126
|
[data-ui-field-group] > [data-part-legend] > [data-part-mark] {
|
|
114
127
|
color: var(--slotted-field-group-mark-color, var(--slotted-tone-danger-text));
|
|
115
|
-
|
|
128
|
+
/* The space written before the mark is the distance; the token adds to it. */
|
|
129
|
+
margin-inline-start: var(--slotted-field-group-mark-gap, 0);
|
|
116
130
|
overflow-wrap: normal;
|
|
117
131
|
/* Its own bidi run, for the reason the field's marker records: a Latin
|
|
118
132
|
legend in a right-to-left document is one left-to-right run, and a marker
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"--slotted-field-group-mark-gap",
|
|
17
17
|
"--slotted-field-group-mark-text-color",
|
|
18
18
|
"--slotted-field-group-message-gap",
|
|
19
|
+
"--slotted-field-group-section-content-gap",
|
|
19
20
|
"--slotted-field-group-track-min",
|
|
21
|
+
"--slotted-field-row-gap",
|
|
20
22
|
"--slotted-font-family-heading",
|
|
21
23
|
"--slotted-font-family-sans",
|
|
22
24
|
"--slotted-font-size-xs",
|
|
@@ -25,6 +27,7 @@
|
|
|
25
27
|
"--slotted-font-weight-semibold",
|
|
26
28
|
"--slotted-line-height-sm",
|
|
27
29
|
"--slotted-space-2",
|
|
30
|
+
"--slotted-space-3",
|
|
28
31
|
"--slotted-space-6",
|
|
29
32
|
"--slotted-space-7",
|
|
30
33
|
"--slotted-text",
|