@slotted/styles 0.1.0-beta.28 → 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.
Files changed (34) hide show
  1. package/package.json +3 -1
  2. package/src/attachment/attachment.css +13 -1
  3. package/src/command-palette/command-palette.css +36 -0
  4. package/src/command-palette/command-palette.tokens.json +1 -0
  5. package/src/date-picker/date-picker.css +41 -0
  6. package/src/date-picker/date-picker.tokens.json +4 -0
  7. package/src/date-range-picker/date-range-picker.css +33 -0
  8. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  9. package/src/datetime-picker/datetime-picker.css +42 -0
  10. package/src/datetime-picker/datetime-picker.tokens.json +4 -0
  11. package/src/datetime-range-picker/datetime-range-picker.css +33 -0
  12. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  13. package/src/description-list/description-list.css +23 -8
  14. package/src/description-list/description-list.tokens.json +1 -0
  15. package/src/dialog/dialog.css +59 -45
  16. package/src/drawer/drawer.css +27 -2
  17. package/src/drawer/drawer.tokens.json +2 -0
  18. package/src/entity-picker/entity-picker.css +36 -0
  19. package/src/entity-picker/entity-picker.tokens.json +1 -0
  20. package/src/field-group/field-group.css +18 -5
  21. package/src/field-group/field-group.tokens.json +3 -0
  22. package/src/media-viewer/media-viewer.css +790 -0
  23. package/src/media-viewer/media-viewer.tokens.json +53 -0
  24. package/src/message/message.css +1255 -1248
  25. package/src/message-scroller/message-scroller.css +322 -318
  26. package/src/runtime-properties.mjs +11 -0
  27. package/src/stat-card/stat-card.css +33 -0
  28. package/src/stat-card/stat-card.tokens.json +4 -0
  29. package/src/tag/tag.css +5 -4
  30. package/src/tag/tag.tokens.json +1 -0
  31. package/src/time-picker/time-picker.css +41 -0
  32. package/src/time-picker/time-picker.tokens.json +4 -0
  33. package/src/time-range-picker/time-range-picker.css +33 -0
  34. 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",
@@ -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 the set, to the first field in it. One step
28
- * wider than the distance between two fields, which is the correction the
29
- * first capture asked for: held at the same value, the description read as
30
- * belonging to the field under it rather than to the set.
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(--slotted-field-group-content-gap, var(--slotted-space-7, 1.25rem));
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
@@ -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",