@lanfermann/ui 0.4.0 → 0.6.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.
Files changed (177) hide show
  1. package/dist/components/action-bar/action-bar.d.ts +59 -0
  2. package/dist/components/action-bar/action-bar.js +116 -0
  3. package/dist/components/alert/alert.d.ts +1 -1
  4. package/dist/components/alert/alert.js +3 -17
  5. package/dist/components/alert-dialog/alert-dialog.d.ts +1 -1
  6. package/dist/components/app-shell/app-shell.d.ts +33 -0
  7. package/dist/components/app-shell/app-shell.js +93 -0
  8. package/dist/components/attachment/attachment.d.ts +46 -0
  9. package/dist/components/attachment/attachment.js +222 -0
  10. package/dist/components/attachment/kinds.d.ts +7 -0
  11. package/dist/components/attachment/kinds.js +100 -0
  12. package/dist/components/avatar/avatar.d.ts +14 -4
  13. package/dist/components/avatar/avatar.js +57 -13
  14. package/dist/components/avatar-group/avatar-group.d.ts +33 -0
  15. package/dist/components/avatar-group/avatar-group.js +110 -0
  16. package/dist/components/avatar-group/people.d.ts +12 -0
  17. package/dist/components/avatar-group/people.js +24 -0
  18. package/dist/components/badge/badge.d.ts +9 -3
  19. package/dist/components/badge/badge.js +21 -6
  20. package/dist/components/banner/banner.d.ts +39 -0
  21. package/dist/components/banner/banner.js +149 -0
  22. package/dist/components/card/card.d.ts +11 -3
  23. package/dist/components/card/card.js +18 -4
  24. package/dist/components/checkbox-card/checkbox-card.d.ts +21 -0
  25. package/dist/components/checkbox-card/checkbox-card.js +49 -0
  26. package/dist/components/chip/chip-group.d.ts +15 -0
  27. package/dist/components/chip/chip-group.js +44 -0
  28. package/dist/components/chip/chip-variants.d.ts +6 -0
  29. package/dist/components/chip/chip-variants.js +28 -0
  30. package/dist/components/chip/chip.d.ts +39 -0
  31. package/dist/components/chip/chip.js +71 -0
  32. package/dist/components/code-block/code-block-live.d.ts +13 -1
  33. package/dist/components/code-block/code-block-live.js +10 -4
  34. package/dist/components/code-block/code-block.d.ts +1 -0
  35. package/dist/components/code-block/code-copy.d.ts +3 -11
  36. package/dist/components/code-block/code-copy.js +15 -62
  37. package/dist/components/code-block/code-keys.js +10 -22
  38. package/dist/components/code-block/code-lines-live.d.ts +7 -0
  39. package/dist/components/code-block/code-lines-live.js +167 -0
  40. package/dist/components/code-block/code-lines-view.d.ts +1 -0
  41. package/dist/components/code-block/code-lines-view.js +50 -18
  42. package/dist/components/code-block/code-lines.d.ts +3 -0
  43. package/dist/components/code-block/code-tabs.d.ts +1 -0
  44. package/dist/components/code-block/highlight.d.ts +1 -0
  45. package/dist/components/code-block/line-diff.js +135 -0
  46. package/dist/components/combobox/combobox.d.ts +50 -2
  47. package/dist/components/combobox/combobox.js +178 -9
  48. package/dist/components/command/command.d.ts +131 -0
  49. package/dist/components/command/command.js +335 -0
  50. package/dist/components/consent/consent-card.js +365 -0
  51. package/dist/components/consent/consent-embed.d.ts +21 -0
  52. package/dist/components/consent/consent-embed.js +111 -0
  53. package/dist/components/consent/consent-labels.d.ts +70 -0
  54. package/dist/components/consent/consent-labels.js +61 -0
  55. package/dist/components/consent/consent-record.d.ts +95 -0
  56. package/dist/components/consent/consent-record.js +112 -0
  57. package/dist/components/consent/consent-store.d.ts +26 -0
  58. package/dist/components/consent/consent-store.js +240 -0
  59. package/dist/components/consent/consent.d.ts +86 -0
  60. package/dist/components/consent/consent.js +306 -0
  61. package/dist/components/container/container.d.ts +1 -1
  62. package/dist/components/context-menu/context-menu.d.ts +23 -0
  63. package/dist/components/context-menu/context-menu.js +50 -0
  64. package/dist/components/conversation/conversation.d.ts +45 -0
  65. package/dist/components/conversation/conversation.js +295 -0
  66. package/dist/components/conversation/stick.js +23 -0
  67. package/dist/components/copy-button/copy-button.d.ts +50 -0
  68. package/dist/components/copy-button/copy-button.js +65 -0
  69. package/dist/components/copy-page/copy-page.js +7 -17
  70. package/dist/components/copy-pill/copy-pill.js +1 -1
  71. package/dist/components/description-list/description-list.d.ts +32 -0
  72. package/dist/components/description-list/description-list.js +51 -0
  73. package/dist/components/empty/empty.d.ts +38 -0
  74. package/dist/components/empty/empty.js +57 -0
  75. package/dist/components/field/field.js +1 -1
  76. package/dist/components/file-upload/file-upload.d.ts +96 -0
  77. package/dist/components/file-upload/file-upload.js +347 -0
  78. package/dist/components/file-upload/files.d.ts +39 -0
  79. package/dist/components/file-upload/files.js +74 -0
  80. package/dist/components/grow/grow.d.ts +15 -3
  81. package/dist/components/grow/grow.js +31 -10
  82. package/dist/components/heading/heading.d.ts +1 -1
  83. package/dist/components/icon/icon.d.ts +1 -1
  84. package/dist/components/input/input.js +1 -1
  85. package/dist/components/message/message.d.ts +73 -0
  86. package/dist/components/message/message.js +196 -0
  87. package/dist/components/otp-field/otp-field.d.ts +37 -0
  88. package/dist/components/otp-field/otp-field.js +126 -0
  89. package/dist/components/pagination/pagination.d.ts +50 -0
  90. package/dist/components/pagination/pagination.js +188 -0
  91. package/dist/components/prompt-input/keys.js +15 -0
  92. package/dist/components/prompt-input/prompt-input.d.ts +89 -0
  93. package/dist/components/prompt-input/prompt-input.js +331 -0
  94. package/dist/components/radio-card/radio-card.d.ts +23 -0
  95. package/dist/components/radio-card/radio-card.js +48 -0
  96. package/dist/components/rolling-number/rolling-number.d.ts +30 -0
  97. package/dist/components/rolling-number/rolling-number.js +149 -0
  98. package/dist/components/seam/seam.d.ts +1 -1
  99. package/dist/components/secret-field/secret-field.d.ts +53 -0
  100. package/dist/components/secret-field/secret-field.js +121 -0
  101. package/dist/components/section/section.d.ts +1 -1
  102. package/dist/components/select/select.d.ts +1 -1
  103. package/dist/components/select/select.js +1 -1
  104. package/dist/components/shortcut/shortcut.d.ts +46 -0
  105. package/dist/components/shortcut/shortcut.js +87 -0
  106. package/dist/components/sidebar/sidebar-context.js +16 -0
  107. package/dist/components/sidebar/sidebar.d.ts +161 -0
  108. package/dist/components/sidebar/sidebar.js +588 -0
  109. package/dist/components/site-header/site-header.js +1 -1
  110. package/dist/components/skeleton/loaded.d.ts +21 -0
  111. package/dist/components/skeleton/loaded.js +57 -0
  112. package/dist/components/skeleton/skeleton.d.ts +43 -0
  113. package/dist/components/skeleton/skeleton.js +48 -0
  114. package/dist/components/sources/source-list.d.ts +17 -0
  115. package/dist/components/sources/source-list.js +26 -0
  116. package/dist/components/sources/sources.d.ts +45 -0
  117. package/dist/components/sources/sources.js +167 -0
  118. package/dist/components/stat/stat.d.ts +57 -0
  119. package/dist/components/stat/stat.js +110 -0
  120. package/dist/components/steps/steps.d.ts +57 -0
  121. package/dist/components/steps/steps.js +131 -0
  122. package/dist/components/table/table.d.ts +18 -9
  123. package/dist/components/table/table.js +21 -13
  124. package/dist/components/text/text.d.ts +1 -1
  125. package/dist/components/theme-switch/theme-switch.js +1 -1
  126. package/dist/components/time-field/time-field.js +1 -1
  127. package/dist/components/timeline/timeline.d.ts +45 -0
  128. package/dist/components/timeline/timeline.js +86 -0
  129. package/dist/components/toast/toast.js +10 -26
  130. package/dist/components/toggle/toggle.d.ts +24 -0
  131. package/dist/components/toggle/toggle.js +53 -0
  132. package/dist/components/toggle-group/toggle-group.d.ts +27 -0
  133. package/dist/components/toggle-group/toggle-group.js +38 -0
  134. package/dist/components/toolbar/toolbar-context.js +12 -0
  135. package/dist/components/toolbar/toolbar.d.ts +45 -0
  136. package/dist/components/toolbar/toolbar.js +92 -0
  137. package/dist/components/trace/trace.d.ts +2 -1
  138. package/dist/components/trace/trace.js +14 -26
  139. package/dist/index.d.ts +46 -3
  140. package/dist/index.js +44 -3
  141. package/dist/internal/arriving-pieces.js +56 -0
  142. package/dist/internal/arriving.js +171 -0
  143. package/dist/internal/avatar-cut.d.ts +15 -0
  144. package/dist/internal/avatar-cut.js +83 -0
  145. package/dist/internal/choice-card.d.ts +15 -0
  146. package/dist/internal/choice-card.js +65 -0
  147. package/dist/internal/clipboard.js +37 -0
  148. package/dist/internal/copy.js +58 -0
  149. package/dist/internal/field.js +24 -4
  150. package/dist/internal/glyphs.js +26 -1
  151. package/dist/internal/live-list.js +41 -0
  152. package/dist/internal/number-places.js +156 -0
  153. package/dist/internal/picker-sheet.js +1 -1
  154. package/dist/internal/presence-dot.js +24 -0
  155. package/dist/internal/presence.js +104 -0
  156. package/dist/internal/rail-mark.d.ts +3 -0
  157. package/dist/internal/rail-mark.js +33 -0
  158. package/dist/internal/status-icon.js +22 -0
  159. package/dist/internal/travelling-mark.js +204 -0
  160. package/dist/lib/cn.js +4 -0
  161. package/dist/lib/shortcut.d.ts +11 -0
  162. package/dist/lib/shortcut.js +165 -0
  163. package/package.json +1 -1
  164. package/src/styles/action-bar.css +28 -0
  165. package/src/styles/assistant.css +83 -0
  166. package/src/styles/avatar.css +24 -0
  167. package/src/styles/code.css +89 -1
  168. package/src/styles/consent.css +65 -0
  169. package/src/styles/copy.css +12 -11
  170. package/src/styles/depth.css +46 -2
  171. package/src/styles/marks.css +20 -2
  172. package/src/styles/rail.css +49 -0
  173. package/src/styles/rolling-number.css +94 -0
  174. package/src/styles/steps.css +98 -0
  175. package/src/styles/timeline.css +48 -0
  176. package/src/styles/travel.css +36 -0
  177. package/src/styles.css +9 -0
@@ -0,0 +1,49 @@
1
+ /*
2
+ * The rail: the hairline that joins the marks of a list read from top to bottom, a `Trace` and a
3
+ * `Timeline`. Each entry draws the piece below its own mark, from just under the mark to just
4
+ * above the next one, so the line never touches a mark and an entry that joins brings its piece
5
+ * with it.
6
+ *
7
+ * The piece is placed from the geometry of the first line of an entry:
8
+ * --rail-line height of that line (default 28px, a `Trace` step)
9
+ * --rail-lead width of the box in front that holds the mark (16px)
10
+ * --rail-mark height of what is drawn in that box: the 8px disc, or an avatar (8px)
11
+ * --rail-clear room left between the line and the mark above and below it (5px)
12
+ * --rail-gap space between two entries (0)
13
+ * --rail-next height of the mark of the entry below, where it differs (an avatar after a
14
+ * disc); by default the entry's own
15
+ * Set them on the list or on an entry; the defaults are a `Trace`.
16
+ *
17
+ * The last entry keeps its piece, invisible: when an entry joins below it, the piece fades in
18
+ * with the newcomer instead of appearing in one frame.
19
+ */
20
+ @utility rail-item {
21
+ position: relative;
22
+
23
+ &::before {
24
+ content: "";
25
+ position: absolute;
26
+ top: calc(
27
+ (var(--rail-line, 1.75rem) + var(--rail-mark, 0.5rem)) / 2 + var(--rail-clear, 0.3125rem)
28
+ );
29
+ bottom: calc(
30
+ var(--rail-clear, 0.3125rem) - var(--rail-gap, 0px) -
31
+ (var(--rail-line, 1.75rem) - var(--rail-next, var(--rail-mark, 0.5rem))) / 2
32
+ );
33
+ left: calc((var(--rail-lead, 1rem) - 1px) / 2);
34
+ width: 1px;
35
+ background-color: var(--lf-hairline);
36
+ transition: opacity var(--transition-duration-spring-settle) var(--ease-spring-settle);
37
+ }
38
+
39
+ &:last-child::before {
40
+ opacity: 0;
41
+ transition-duration: 0s;
42
+ }
43
+
44
+ @media (forced-colors: active) {
45
+ &::before {
46
+ background-color: CanvasText;
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,94 @@
1
+ /*
2
+ * The places of a `RollingNumber`. A digit is a column of the ten digits (and a second 0 under
3
+ * the 9) behind a window one line tall. Its position is `--roll`, a registered number that
4
+ * only grows while the number grows and only shrinks while it shrinks; the digit shown is the
5
+ * position modulo ten. So every column rolls the way the number moves, 9 goes forward into 0
6
+ * like an odometer, and a change that arrives mid-roll is a new target for the same transition.
7
+ *
8
+ * The window fades at its top and bottom edge, in the empty space above and below the digits, so
9
+ * a digit rolls out softly instead of being cut. At rest the fade touches nothing.
10
+ *
11
+ * A place that joins (999 becomes 1.000) opens from nothing as it fades in; one that leaves
12
+ * fades first, then closes, so what stands beside the number is pushed aside instead of jumping.
13
+ * This is the one width that moves in the kit besides a chip's place (`ChipGroup`): it moves
14
+ * the text after the number, which a transform could not.
15
+ */
16
+ @property --roll {
17
+ syntax: "<number>";
18
+ inherits: false;
19
+ initial-value: 0;
20
+ }
21
+
22
+ @layer components {
23
+ [data-slot="rolling-number-place"] {
24
+ display: inline-grid;
25
+ grid-template-columns: 1fr;
26
+ transition:
27
+ grid-template-columns var(--transition-duration-spring-settle) var(--ease-spring-settle),
28
+ opacity var(--transition-duration-spring-settle) var(--ease-spring-settle);
29
+
30
+ [data-live] & {
31
+ @starting-style {
32
+ grid-template-columns: 0fr;
33
+ opacity: 0;
34
+ }
35
+ }
36
+
37
+ /* Faded before its place closes, so it is never seen under a neighbour. */
38
+ &[data-leaving] {
39
+ grid-template-columns: 0fr;
40
+ opacity: 0;
41
+ transition:
42
+ opacity var(--transition-duration-spring-leave) var(--ease-spring-leave),
43
+ grid-template-columns var(--transition-duration-spring-settle) var(--ease-spring-settle)
44
+ 75ms;
45
+ }
46
+ }
47
+
48
+ /* What stands in a place keeps its size; only the place changes, and clips it sideways. */
49
+ [data-slot="rolling-number-symbol"] {
50
+ min-width: 0;
51
+ overflow: clip;
52
+ white-space: pre;
53
+ }
54
+
55
+ [data-slot="rolling-number-window"] {
56
+ min-width: 0;
57
+ height: 1lh;
58
+ /* `clip`, not `hidden`: a box that scrolls would sit on its bottom edge, not its baseline. */
59
+ overflow: clip;
60
+ /* A quarter of the room the line leaves around a digit: Sofia Sans sits its digits high in
61
+ the line, and a deeper fade touched their tops at rest (measured at 3x in three engines). */
62
+ mask-image: linear-gradient(
63
+ to bottom,
64
+ transparent,
65
+ #000 calc((1lh - 1cap) / 4),
66
+ #000 calc(100% - (1lh - 1cap) / 4),
67
+ transparent
68
+ );
69
+ }
70
+
71
+ [data-slot="rolling-number-column"] {
72
+ display: block;
73
+ white-space: pre;
74
+ translate: 0 calc(mod(var(--roll), 10) * -100% / 11);
75
+ /* Without bounce: a digit that overshot would show the next one for a moment (Justin,
76
+ 2026-11-19, `settle` over `seat`). */
77
+ transition: --roll var(--transition-duration-spring-settle) var(--ease-spring-settle);
78
+
79
+ &::before {
80
+ content: var(--rolling-digits, "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0");
81
+ }
82
+ }
83
+
84
+ /* Under reduced motion a digit changes at once and nothing beside it slides; places fade. */
85
+ @media (prefers-reduced-motion: reduce) {
86
+ [data-slot="rolling-number-column"] {
87
+ transition: none;
88
+ }
89
+ [data-slot="rolling-number-place"],
90
+ [data-slot="rolling-number-place"][data-leaving] {
91
+ transition: opacity var(--transition-duration-spring-leave) var(--ease-spring-leave);
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Steps draw themselves in where they first show (Justin, 2026-11-19): nothing stands there at
3
+ * first, then step after step arrives. Its mark seats in and its name fades up, a finished
4
+ * step's tick draws itself, and the line draws on towards the next mark, which seats in as the
5
+ * line reaches it. It is the one place where a page load animates.
6
+ *
7
+ * Every step carries these animations, whatever its state, and they run once, when the step is
8
+ * first drawn. Because they never change, a step that is finished later does not run them
9
+ * again: its own transitions do that (`steps.tsx`). `backwards` holds the start through the
10
+ * delay and lets go at the end, so the transitions own the parts again.
11
+ */
12
+
13
+ [data-slot="step"]:nth-child(2) {
14
+ --step-index: 1;
15
+ }
16
+ [data-slot="step"]:nth-child(3) {
17
+ --step-index: 2;
18
+ }
19
+ [data-slot="step"]:nth-child(4) {
20
+ --step-index: 3;
21
+ }
22
+ [data-slot="step"]:nth-child(5) {
23
+ --step-index: 4;
24
+ }
25
+ [data-slot="step"]:nth-child(6) {
26
+ --step-index: 5;
27
+ }
28
+ [data-slot="step"]:nth-child(7) {
29
+ --step-index: 6;
30
+ }
31
+ [data-slot="step"]:nth-child(n + 8) {
32
+ --step-index: 7;
33
+ }
34
+
35
+ /* The line is drawn by uncovering it from its start: the trough and its fill together. */
36
+ [data-slot="step-line"] {
37
+ --line-from: inset(0 100% 0 0);
38
+ clip-path: inset(0);
39
+ }
40
+ [data-slot="step-line"]:dir(rtl) {
41
+ --line-from: inset(0 0 0 100%);
42
+ }
43
+ [data-slot="steps"][data-orientation="vertical"] [data-slot="step-line"] {
44
+ --line-from: inset(0 0 100% 0);
45
+ }
46
+
47
+ @media (prefers-reduced-motion: no-preference) {
48
+ [data-slot="step"] {
49
+ /* When this step arrives: one after the other, as the line before it comes in. */
50
+ --step-arrives: calc(var(--step-index, 0) * 200ms + 80ms);
51
+ }
52
+ [data-slot="step-mark"] {
53
+ animation: steps-mark var(--transition-duration-spring-seat) var(--ease-spring-seat) backwards;
54
+ animation-delay: var(--step-arrives);
55
+ }
56
+ [data-slot="step-text"] {
57
+ animation: steps-text var(--transition-duration-spring-settle) var(--ease-spring-settle)
58
+ backwards;
59
+ animation-delay: calc(var(--step-arrives) + 40ms);
60
+ }
61
+ [data-slot="step-tick"] {
62
+ animation: steps-tick 150ms ease-out backwards;
63
+ animation-delay: calc(var(--step-arrives) + 140ms);
64
+ }
65
+ [data-slot="step-line"] {
66
+ animation: steps-line var(--transition-duration-spring-settle) var(--ease-spring-settle)
67
+ backwards;
68
+ animation-delay: calc(var(--step-arrives) + 60ms);
69
+ }
70
+ }
71
+
72
+ @keyframes steps-mark {
73
+ from {
74
+ opacity: 0;
75
+ scale: 0.6;
76
+ }
77
+ }
78
+
79
+ /* By `transform`, beside the `translate` that centres the one name of a narrow row. */
80
+ @keyframes steps-text {
81
+ from {
82
+ opacity: 0;
83
+ transform: translateY(var(--motion-enter-offset));
84
+ }
85
+ }
86
+
87
+ @keyframes steps-tick {
88
+ from {
89
+ opacity: 0;
90
+ stroke-dashoffset: 1;
91
+ }
92
+ }
93
+
94
+ @keyframes steps-line {
95
+ from {
96
+ clip-path: var(--line-from);
97
+ }
98
+ }
@@ -0,0 +1,48 @@
1
+ /*
2
+ * What happened lately, on the rail (`rail.css`). The newest entries stand at the top, so one
3
+ * that joins a list already on screen opens its room and fades in from above, and what stands
4
+ * below moves down with it instead of jumping. Page load does not animate: only an entry that
5
+ * joins once the list is `data-live` (a frame after it first showed) has a starting style.
6
+ *
7
+ * (A gate in CSS alone, a registered property flipped by an animation, was tried: Chrome takes
8
+ * transition lengths from a property's value before animations, so nothing ever moved there.)
9
+ */
10
+ @layer components {
11
+ /* An entry and a day are a grid of one row, which can open from nothing. */
12
+ [data-slot="timeline-item"],
13
+ [data-slot="timeline-group"] {
14
+ display: grid;
15
+ grid-template-rows: 1fr;
16
+ transition:
17
+ grid-template-rows var(--transition-duration-spring-settle) var(--ease-spring-settle),
18
+ opacity var(--transition-duration-spring-settle) var(--ease-spring-settle),
19
+ translate var(--transition-duration-spring-settle) var(--ease-spring-settle);
20
+
21
+ [data-live] & {
22
+ @starting-style {
23
+ grid-template-rows: 0fr;
24
+ opacity: 0;
25
+ translate: 0 calc(-1 * var(--motion-enter-offset));
26
+ }
27
+ }
28
+
29
+ @media (prefers-reduced-motion: reduce) {
30
+ transition: opacity var(--transition-duration-spring-settle) var(--ease-spring-settle);
31
+ }
32
+ }
33
+
34
+ /* The room clips what it holds while it opens; to the sides nothing is cut. */
35
+ [data-slot="timeline-entry"],
36
+ [data-slot="timeline-day"] {
37
+ min-height: 0;
38
+ overflow-y: clip;
39
+ }
40
+
41
+ /* Each entry's piece of the rail ends clear of the mark of the entry below. */
42
+ [data-slot="timeline-item"]:has(+ [data-lead="avatar"]) {
43
+ --rail-next: 1.5rem;
44
+ }
45
+ [data-slot="timeline-item"]:has(+ [data-lead="mark"]) {
46
+ --rail-next: 0.5rem;
47
+ }
48
+ }
@@ -0,0 +1,36 @@
1
+ /*
2
+ * A mark that travels: one piece that stands on the current entry of a list and moves to the
3
+ * next when another becomes current (the tint of a `Sidebar`, the tint under a page number).
4
+ * `useTravellingMark` (internal/travelling-mark.ts) measures the entry and writes the mark's
5
+ * place onto the piece as four lengths; this utility turns them into a box moved by `translate`.
6
+ *
7
+ * --mark-x, --mark-y where the mark stands inside the list
8
+ * --mark-w, --mark-h how large it is
9
+ *
10
+ * The lengths are not eased here. The hook steps a spring by hand and writes every frame of the
11
+ * way, because the place the mark travels to may be moving itself; a transition on top of that
12
+ * would lag behind each frame it is given.
13
+ *
14
+ * The piece only carries the place. What it looks like (a tint, a rule) and its corners are
15
+ * the part's own classes.
16
+ */
17
+ @utility travels {
18
+ position: absolute;
19
+ top: 0;
20
+ left: 0;
21
+ width: var(--mark-w, 0px);
22
+ height: var(--mark-h, 0px);
23
+ translate: var(--mark-x, 0px) var(--mark-y, 0px);
24
+ opacity: 0;
25
+ pointer-events: none;
26
+
27
+ /* An entry is current and laid out. Without one the piece is gone. */
28
+ &[data-shown] {
29
+ opacity: 1;
30
+ }
31
+
32
+ /* Forced colours drop backgrounds: the current entry is outlined by its own part instead. */
33
+ @media (forced-colors: active) {
34
+ display: none;
35
+ }
36
+ }
package/src/styles.css CHANGED
@@ -24,14 +24,23 @@
24
24
  @import "./styles/motion.generated.css";
25
25
  @import "./styles/motion.css";
26
26
  @import "./styles/marks.css";
27
+ @import "./styles/rail.css";
28
+ @import "./styles/timeline.css";
29
+ @import "./styles/avatar.css";
30
+ @import "./styles/travel.css";
27
31
  @import "./styles/toast.css";
32
+ @import "./styles/action-bar.css";
33
+ @import "./styles/rolling-number.css";
28
34
  @import "./styles/slider.css";
35
+ @import "./styles/steps.css";
29
36
  @import "./styles/segmented.css";
30
37
  @import "./styles/button-group.css";
31
38
  @import "./styles/scroll-fade.css";
39
+ @import "./styles/consent.css";
32
40
  @import "./styles/shimmer.css";
33
41
  @import "./styles/calendar.css";
34
42
  @import "./styles/prose.css";
43
+ @import "./styles/assistant.css";
35
44
  @import "./styles/base.css";
36
45
 
37
46
  /* Let the consumer's Tailwind see the class names used in the compiled components. */