@atom63/ui-react 0.2.0-beta.11 → 0.2.0-beta.13

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 (96) hide show
  1. package/README.md +12 -0
  2. package/dist/button-DMnQeAEL.d.ts +22 -0
  3. package/dist/calendar/index.d.ts +2 -1
  4. package/dist/calendar/index.js +16 -1
  5. package/dist/calendar/index.js.map +1 -1
  6. package/dist/{chunk-J77BAGTA.js → chunk-IFBF2IA3.js} +17 -6
  7. package/dist/chunk-IFBF2IA3.js.map +1 -0
  8. package/dist/{chunk-NBHGMMQN.js → chunk-R7IQ3IL5.js} +26 -4
  9. package/dist/chunk-R7IQ3IL5.js.map +1 -0
  10. package/dist/{chunk-GDUMA6FI.js → chunk-RLF45GBS.js} +443 -275
  11. package/dist/chunk-RLF45GBS.js.map +1 -0
  12. package/dist/{chunk-R67OZVA2.js → chunk-WL27K6MO.js} +3 -2
  13. package/dist/chunk-WL27K6MO.js.map +1 -0
  14. package/dist/{chunk-X5L5DEUZ.js → chunk-ZEY2VU4O.js} +3 -3
  15. package/dist/{chunk-X5L5DEUZ.js.map → chunk-ZEY2VU4O.js.map} +1 -1
  16. package/dist/{destination-link-DMLeR-oF.d.ts → destination-link-BHVQyWry.d.ts} +2 -1
  17. package/dist/{index-BDzW8upQ.d.ts → index-CbgpSG4j.d.ts} +47 -8
  18. package/dist/index.d.ts +513 -141
  19. package/dist/index.js +1126 -235
  20. package/dist/index.js.map +1 -1
  21. package/dist/layout/index.d.ts +73 -1
  22. package/dist/layout/index.js +78 -2
  23. package/dist/layout/index.js.map +1 -1
  24. package/dist/media/index.d.ts +5 -4
  25. package/dist/media/index.js +35 -7
  26. package/dist/media/index.js.map +1 -1
  27. package/dist/media/media-lightbox/parts/index.d.ts +5 -4
  28. package/dist/media/media-lightbox/parts/index.js +2 -2
  29. package/dist/preview/index.d.ts +2 -3
  30. package/dist/preview/index.js +2 -2
  31. package/dist/theme/index.d.ts +3 -2
  32. package/dist/theme/index.js +2 -2
  33. package/dist/{types-Dxe5IzjE.d.ts → types-KQLxlHQZ.d.ts} +21 -0
  34. package/package.json +36 -26
  35. package/src/components/alert/alert.css +21 -18
  36. package/src/components/amount/amount.css +60 -0
  37. package/src/components/app-view/app-view.css +232 -0
  38. package/src/components/autocomplete/autocomplete.css +21 -5
  39. package/src/components/avatar/avatar.css +64 -8
  40. package/src/components/badge/badge.css +65 -0
  41. package/src/components/button/button.css +160 -31
  42. package/src/components/calendar/calendar.css +7 -3
  43. package/src/components/card/card.css +26 -10
  44. package/src/components/carousel/carousel.css +90 -5
  45. package/src/components/chat-composer/chat-composer.css +69 -0
  46. package/src/components/chat-message/chat-message.css +93 -0
  47. package/src/components/chat-steps/chat-steps.css +132 -0
  48. package/src/components/chat-typing-indicator/chat-typing-indicator.css +83 -0
  49. package/src/components/checkbox/checkbox.css +14 -1
  50. package/src/components/command/command.css +35 -5
  51. package/src/components/connected-panel/connected-panel.css +4 -19
  52. package/src/components/destination-link/destination-link.css +28 -0
  53. package/src/components/dialog/dialog.css +2 -2
  54. package/src/components/drawer/drawer.css +15 -2
  55. package/src/components/empty/empty.css +2 -4
  56. package/src/components/field/field.css +14 -9
  57. package/src/components/form/form.css +1 -1
  58. package/src/components/frame/frame.css +1 -1
  59. package/src/components/input/input.css +72 -4
  60. package/src/components/input-otp/input-otp.css +2 -2
  61. package/src/components/item/item.css +72 -2
  62. package/src/components/load-more-trigger/load-more-trigger.css +17 -0
  63. package/src/components/marquee/marquee.css +25 -3
  64. package/src/components/menu/menu.css +36 -1
  65. package/src/components/message/message.css +170 -0
  66. package/src/components/navigation-menu/navigation-menu.css +22 -4
  67. package/src/components/panel-setting-button/panel-setting-button.css +14 -0
  68. package/src/components/progress/progress.css +31 -1
  69. package/src/components/radio/radio.css +32 -5
  70. package/src/components/rating/rating.css +120 -0
  71. package/src/components/resizable/resizable.css +1 -1
  72. package/src/components/scroll-area/scroll-area.css +1 -1
  73. package/src/components/scrollable-list/scrollable-list.css +10 -5
  74. package/src/components/segmented-control/segmented-control.css +14 -0
  75. package/src/components/select/select.css +11 -3
  76. package/src/components/separator/separator.css +3 -1
  77. package/src/components/sheet/sheet.css +8 -4
  78. package/src/components/sidebar/sidebar.css +54 -24
  79. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +38 -5
  80. package/src/components/slider/slider.css +11 -6
  81. package/src/components/switch/switch.css +30 -11
  82. package/src/components/table/table.css +118 -10
  83. package/src/components/tabs/tabs.css +10 -0
  84. package/src/components/textarea/textarea.css +3 -3
  85. package/src/components/toaster/toaster.css +32 -0
  86. package/src/components/toggle/toggle.css +20 -8
  87. package/src/components/toggle-group/toggle-group.css +79 -1
  88. package/src/media/media-lightbox/media-lightbox.css +32 -2
  89. package/src/styles/recipes.css +10 -0
  90. package/src/styles/reset.css +13 -2
  91. package/src/styles/utilities.css +41 -28
  92. package/dist/button-CfLIHg-R.d.ts +0 -13
  93. package/dist/chunk-GDUMA6FI.js.map +0 -1
  94. package/dist/chunk-J77BAGTA.js.map +0 -1
  95. package/dist/chunk-NBHGMMQN.js.map +0 -1
  96. package/dist/chunk-R67OZVA2.js.map +0 -1
@@ -120,8 +120,8 @@
120
120
  outline: none;
121
121
  }
122
122
  .a63-Dialog-close-button svg {
123
- width: var(--a63-control-icon-size-sm);
124
- height: var(--a63-control-icon-size-sm);
123
+ width: var(--a63-control-icon-only-size-sm);
124
+ height: var(--a63-control-icon-only-size-sm);
125
125
  }
126
126
  @media (hover: hover) {
127
127
  .a63-Dialog-close-button:hover {
@@ -48,6 +48,15 @@
48
48
  pointer-events: none;
49
49
  }
50
50
 
51
+ /* A persistent sheet (modal={false}) has no backdrop, and its full-screen
52
+ viewport lets pointer events through to the page; only the sheet takes them. */
53
+ .a63-Drawer-viewport[data-modal='false'] {
54
+ pointer-events: none;
55
+ }
56
+ .a63-Drawer-viewport[data-modal='false'] .a63-Drawer-content {
57
+ pointer-events: auto;
58
+ }
59
+
51
60
  .a63-Drawer-viewport[data-side='top'] {
52
61
  grid-template-rows: auto 1fr;
53
62
  padding-bottom: var(--a63-drawer-viewport-gutter);
@@ -63,12 +72,16 @@
63
72
  display: flex;
64
73
  }
65
74
 
75
+ /* `left` and `right` are physical screen edges, in right-to-left pages too: the
76
+ placement, the closed translate, the safe-area padding and the swipe to
77
+ dismiss all name the same edge. `justify-content: left/right` is physical,
78
+ where flex-start/flex-end would follow the text direction. */
66
79
  .a63-Drawer-viewport[data-side='left'] {
67
- justify-content: flex-start;
80
+ justify-content: left;
68
81
  }
69
82
 
70
83
  .a63-Drawer-viewport[data-side='right'] {
71
- justify-content: flex-end;
84
+ justify-content: right;
72
85
  }
73
86
 
74
87
  .a63-Drawer-content {
@@ -112,13 +112,11 @@
112
112
  gap: 0.375rem;
113
113
  }
114
114
 
115
+ /* A muted ghost Button: it rests in the secondary text colour (4.5:1) and goes
116
+ to full contrast on hover, focus and while expanded. */
115
117
  .a63-Empty-errorToggle.a63-Button {
116
- color: color-mix(in oklch, var(--a63-text-secondary) 60%, transparent);
117
118
  font-size: var(--a63-control-font-size-xs);
118
119
  }
119
- .a63-Empty-errorToggle.a63-Button:hover {
120
- color: var(--a63-text-secondary);
121
- }
122
120
 
123
121
  .a63-Empty-errorBox {
124
122
  position: relative;
@@ -160,19 +160,24 @@
160
160
  border: var(--a63-control-border-width) solid transparent;
161
161
  border-radius: var(--radius-lg);
162
162
  }
163
- .a63-FieldLabel:has([data-checked]) {
164
- border-color: color-mix(in oklch, var(--a63-action-primary) 30%, transparent);
165
- background-color: color-mix(in oklch, var(--a63-action-primary) 5%, transparent);
163
+ /* With its control's indicator hidden, the card is the only visible boundary. */
164
+ .a63-FieldLabel:has(> [data-slot='field'] [data-indicator='hidden']) {
165
+ border-color: var(--a63-border-subtle);
166
166
  }
167
- /* prod darkens the tint + lightens the border in dark mode
168
- * (dark:has-data-checked:border-primary/20 dark:…:bg-primary/10) */
169
- :is(.dark, [data-a63-mode='dark']) .a63-FieldLabel:has([data-checked]) {
170
- border-color: color-mix(in oklch, var(--a63-action-primary) 20%, transparent);
171
- background-color: color-mix(in oklch, var(--a63-action-primary) 10%, transparent);
167
+ .a63-FieldLabel:has([data-checked]) {
168
+ /* The tokens lighten the border and deepen the tint in dark mode (prod dark:…/20, /10). */
169
+ border-color: var(--a63-choice-card-checked-border);
170
+ background-color: var(--a63-choice-card-checked-background);
172
171
  }
173
172
  .a63-FieldLabel [data-slot='field'] {
174
173
  padding: 0.625rem;
175
174
  }
175
+ /* A card whose control hides its indicator draws the keyboard focus ring itself. */
176
+ .a63-FieldLabel:has([data-indicator='hidden']:focus-visible) {
177
+ outline: var(--a63-control-focus-ring-width) solid
178
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
179
+ outline-offset: 2px;
180
+ }
176
181
 
177
182
  /* ── FieldTitle ────────────────────────────────────────────────────────── */
178
183
  .a63-FieldTitle {
@@ -193,7 +198,7 @@
193
198
  text-align: start;
194
199
  color: var(--a63-text-secondary);
195
200
  font-family: var(--a63-control-font-family);
196
- font-size: var(--a63-control-font-size-sm);
201
+ font-size: var(--a63-control-font-size-secondary, var(--a63-control-font-size-sm));
197
202
  font-weight: 400;
198
203
  line-height: 1.5;
199
204
  }
@@ -19,7 +19,7 @@
19
19
  margin: 0;
20
20
  color: var(--a63-text-secondary);
21
21
  font-family: var(--a63-control-font-family);
22
- font-size: var(--a63-control-font-size-sm);
22
+ font-size: var(--a63-control-font-size-secondary, var(--a63-control-font-size-sm));
23
23
  line-height: var(--typography-sm-line-height);
24
24
  }
25
25
 
@@ -106,7 +106,7 @@
106
106
  line-height: var(--typography-sm-line-height);
107
107
  }
108
108
  .a63-Frame-description {
109
- font-size: var(--a63-control-font-size-sm);
109
+ font-size: var(--a63-control-font-size-secondary, var(--a63-control-font-size-sm));
110
110
  color: var(--a63-text-secondary);
111
111
  line-height: var(--typography-sm-line-height);
112
112
  }
@@ -19,13 +19,13 @@
19
19
  arg; otherwise the live semantic resolves. --field-shadow is mode-independent
20
20
  (contract default / theme override), so it reads --a63-field-shadow directly. */
21
21
  --field-background: var(--a63-field-background, var(--a63-surface-control));
22
- --field-border: var(--a63-field-border, var(--a63-border-control));
22
+ --field-border: var(--a63-field-border, var(--a63-border-input));
23
23
  --field-radius: var(--a63-field-radius, var(--a63-control-radius));
24
24
  --field-shadow: var(--a63-field-shadow);
25
25
  --field-focus-ring: var(--a63-field-focus-ring, var(--a63-focus-ring));
26
26
  --field-focus-border: var(
27
27
  --a63-field-focus-border,
28
- color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-control))
28
+ color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-input))
29
29
  );
30
30
  /* Content floor — see button.css for the full rationale. Height comes from
31
31
  the density-owned control ramp, font size from the type-scale axis; the two
@@ -87,7 +87,7 @@
87
87
  }
88
88
 
89
89
  .a63-Input-field::placeholder {
90
- color: var(--a63-text-secondary);
90
+ color: var(--a63-text-tertiary);
91
91
  opacity: 1;
92
92
  }
93
93
 
@@ -156,6 +156,74 @@
156
156
  cursor: not-allowed;
157
157
  }
158
158
 
159
+ /* ── Variants (default is the outlined base rule above) ────────────────── */
160
+
161
+ /* filled: a muted well with no resting border, for search and filter fields
162
+ with an icon and placeholder. The border keeps its width (transparent) so the
163
+ field does not move; it shows on hover and focus. Form fields stay default:
164
+ their border is how a person finds them (WCAG 1.4.11). */
165
+ .a63-Input[data-variant='filled']:not([data-unstyled]),
166
+ .a63-InputGroup[data-variant='filled'] {
167
+ --field-background: var(--a63-surface-muted);
168
+ --field-shadow: 0 0 #0000;
169
+
170
+ border-color: transparent;
171
+ }
172
+
173
+ .a63-Input[data-variant='filled']:not([data-unstyled]):hover,
174
+ .a63-InputGroup[data-variant='filled']:hover {
175
+ border-color: var(--a63-border-control);
176
+ }
177
+
178
+ /* plain: no border or fill and a separator below, for a field inside a menu,
179
+ popover or command palette (the look Command draws for its own input). */
180
+ .a63-Input[data-variant='plain']:not([data-unstyled]),
181
+ .a63-InputGroup[data-variant='plain'],
182
+ .a63-Input[data-variant='plain']:not([data-unstyled]):is(:hover, :focus-within),
183
+ .a63-InputGroup[data-variant='plain']:is(:hover, :focus-within) {
184
+ --field-background: transparent;
185
+ --field-radius: 0;
186
+ --field-shadow: 0 0 #0000;
187
+
188
+ border-color: transparent;
189
+ border-block-end-color: var(--a63-border-subtle);
190
+ }
191
+
192
+ /* An invalid filled or plain field keeps its danger edge at rest. */
193
+ .a63-Input[data-variant='filled'][data-invalid]:not([data-unstyled]),
194
+ .a63-InputGroup[data-variant='filled'][data-invalid] {
195
+ border-color: var(--field-border);
196
+ }
197
+
198
+ .a63-Input[data-variant='plain'][data-invalid]:not([data-unstyled]),
199
+ .a63-InputGroup[data-variant='plain'][data-invalid] {
200
+ border-block-end-color: var(--field-border);
201
+ }
202
+
203
+ .a63-Input[data-variant='filled']:not([data-unstyled]):focus-within,
204
+ .a63-InputGroup[data-variant='filled']:focus-within {
205
+ border-color: var(--field-focus-border);
206
+ }
207
+
208
+ /* Both draw the focus ring as an outline on :focus-visible of the text field.
209
+ The plain ring is inset, as Command's is, so a menu or popover does not clip
210
+ it. */
211
+ .a63-Input:is([data-variant='filled'], [data-variant='plain']):not([data-unstyled]):focus-within,
212
+ .a63-InputGroup:is([data-variant='filled'], [data-variant='plain']):focus-within {
213
+ outline: none;
214
+ }
215
+
216
+ .a63-Input[data-variant='filled']:not([data-unstyled]):has(.a63-Input-field:focus-visible),
217
+ .a63-InputGroup[data-variant='filled']:has(.a63-Input-field:focus-visible) {
218
+ outline: var(--a63-control-focus-ring-width) solid var(--field-focus-ring);
219
+ }
220
+
221
+ .a63-Input[data-variant='plain']:not([data-unstyled]):has(.a63-Input-field:focus-visible),
222
+ .a63-InputGroup[data-variant='plain']:has(.a63-Input-field:focus-visible) {
223
+ outline: var(--a63-control-focus-ring-width) solid var(--field-focus-ring);
224
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
225
+ }
226
+
159
227
  /* ── Sizes (md is the base rule above) ─────────────────────────────────── */
160
228
 
161
229
  .a63-Input[data-size='sm']:not([data-unstyled]),
@@ -272,7 +340,7 @@
272
340
  transparent
273
341
  );
274
342
 
275
- border-radius: var(--radius-full);
343
+ border-radius: var(--radius-pill);
276
344
  }
277
345
 
278
346
  .a63-InputGroup-addon [data-trigger-slot='input-group-button']:hover {
@@ -3,7 +3,7 @@
3
3
  * production. `.a63-InputOTP` is the flex container the `input-otp` primitive
4
4
  * lays its hidden input into; `.a63-InputOTP-group` clusters the visible slots
5
5
  * and `.a63-InputOTP-slot` is one box. Slots share the recessed-field vocabulary
6
- * (--a63-field-* → --a63-surface-control / --a63-border-control / --a63-control-radius),
6
+ * (--a63-field-* → --a63-surface-control / --a63-border-input / --a63-control-radius),
7
7
  * fuse into a single pill by collapsing inner borders, and the active slot lifts
8
8
  * with the brand accent + focus ring. Caret blink is a local keyframe. No new tokens.
9
9
  */
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  .a63-InputOTP-slot {
33
- --otp-border: var(--a63-field-border, var(--a63-border-control));
33
+ --otp-border: var(--a63-field-border, var(--a63-border-input));
34
34
  --otp-accent: var(--a63-selection-accent, var(--a63-action-primary));
35
35
 
36
36
  position: relative;
@@ -22,6 +22,59 @@
22
22
  gap: var(--a63-space-2);
23
23
  }
24
24
 
25
+ /* Inset group: one rounded card on the panel surface, rows joined by hairlines
26
+ that stop short of the inline edges, as in a grouped settings list. */
27
+ .a63-ItemGroup[data-variant='inset'] {
28
+ gap: 0;
29
+ overflow: hidden;
30
+ border-radius: var(--a63-inset-group-radius, var(--radius-lg));
31
+ background-color: var(--a63-surface-panel);
32
+ }
33
+ /* surface="muted": the grey card for a white page. A row's hover (half the muted
34
+ fill) would vanish on it, so it darkens the card's own fill instead. */
35
+ .a63-ItemGroup[data-variant='inset'][data-surface='muted'] {
36
+ background-color: var(--a63-surface-muted);
37
+ }
38
+ .a63-ItemGroup[data-variant='inset'][data-surface='muted']
39
+ > :where(a, button, [role='button'], [role='link']).a63-Item:hover {
40
+ background-color: color-mix(in oklch, var(--a63-surface-muted), var(--a63-text-primary) 6%);
41
+ }
42
+ .a63-ItemGroup[data-variant='inset'] > .a63-Item {
43
+ position: relative;
44
+ border-radius: 0;
45
+ }
46
+ /* The phone form factor sets --a63-inset-row-min-size (52px, the iOS grouped-list
47
+ row) for default and sm rows, static ones included. Elsewhere the variable is
48
+ unset: the static rule then computes to no minimum, and the interactive rule
49
+ keeps its control-height floor, so nothing changes outside a phone. */
50
+ .a63-ItemGroup[data-variant='inset'] > .a63-Item:is([data-size='default'], [data-size='sm']) {
51
+ min-height: calc(var(--a63-inset-row-min-size) * var(--a63-density-scale, 1));
52
+ }
53
+ .a63-ItemGroup[data-variant='inset']
54
+ > :where(a, button, [role='button'], [role='link']).a63-Item[data-size='default'] {
55
+ min-height: max(
56
+ calc(var(--a63-inset-row-min-size, 0px) * var(--a63-density-scale, 1)),
57
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
58
+ var(--a63-control-min-size)
59
+ );
60
+ }
61
+ .a63-ItemGroup[data-variant='inset']
62
+ > :where(a, button, [role='button'], [role='link']).a63-Item[data-size='sm'] {
63
+ min-height: max(
64
+ calc(var(--a63-inset-row-min-size, 0px) * var(--a63-density-scale, 1)),
65
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
66
+ var(--a63-control-min-size)
67
+ );
68
+ }
69
+ .a63-ItemGroup[data-variant='inset'] > .a63-Item + .a63-Item::before {
70
+ content: '';
71
+ position: absolute;
72
+ inset-block-start: 0;
73
+ inset-inline: var(--a63-space-4) 0;
74
+ height: var(--a63-control-border-width);
75
+ background-color: var(--a63-border-subtle);
76
+ }
77
+
25
78
  .a63-ItemSeparator {
26
79
  margin-block: var(--a63-space-2);
27
80
  }
@@ -68,8 +121,10 @@
68
121
  var(--a63-control-min-size)
69
122
  );
70
123
  }
124
+ /* Hover is half the neutral selected fill, so a selected row stays visibly
125
+ stronger than a hovered one. */
71
126
  :where(a, button, [role='button'], [role='link']).a63-Item:hover {
72
- background-color: var(--a63-surface-muted);
127
+ background-color: color-mix(in oklch, var(--a63-selected-background) 50%, transparent);
73
128
  }
74
129
 
75
130
  /* Variants (border/fill only) */
@@ -84,6 +139,21 @@
84
139
  background-color: color-mix(in oklch, var(--a63-surface-muted) 50%, transparent);
85
140
  }
86
141
 
142
+ /* Selected and current: the row the user picked, or the one for the page they
143
+ are on. aria-current carries the meaning on links; data-selected covers rows
144
+ that are not. Placed after the variants so it wins over their fills. The
145
+ neutral tone (default) is a muted fill; tone="accent" opts into the primary wash. */
146
+ .a63-Item[aria-current]:not([aria-current='false']),
147
+ .a63-Item[data-selected]:not([data-selected='false']) {
148
+ background-color: var(--a63-selected-background);
149
+ color: var(--a63-selected-foreground);
150
+ }
151
+ .a63-Item[data-tone='accent'][aria-current]:not([aria-current='false']),
152
+ .a63-Item[data-tone='accent'][data-selected]:not([data-selected='false']) {
153
+ background-color: var(--a63-selected-accent-background);
154
+ color: var(--a63-selected-accent-foreground);
155
+ }
156
+
87
157
  /* Sizes (gap + padding). Block padding comes from the row contract so the
88
158
  design-language axis can retune row density; inline padding stays local. */
89
159
  .a63-Item[data-size='default'] {
@@ -180,7 +250,7 @@
180
250
 
181
251
  .a63-ItemDescription {
182
252
  color: var(--a63-text-secondary);
183
- font-size: var(--a63-control-font-size-sm);
253
+ font-size: var(--a63-control-font-size-secondary, var(--a63-control-font-size-sm));
184
254
  font-weight: 400;
185
255
  line-height: 1.5;
186
256
  text-align: start;
@@ -29,6 +29,11 @@
29
29
  --load-more-accent: var(--a63-action-danger);
30
30
  }
31
31
 
32
+ /* Hidden keeps only the empty live region mounted; it takes no space. */
33
+ .a63-LoadMoreTrigger[data-state='hidden'] {
34
+ padding-block: 0;
35
+ }
36
+
32
37
  /* The message form reserves a minimum height so the observer target keeps a
33
38
  stable hit area as it swaps between idle + loading copy. */
34
39
  .a63-LoadMoreTrigger[data-has-message] {
@@ -81,6 +86,7 @@
81
86
  }
82
87
 
83
88
  .a63-LoadMoreTrigger-action {
89
+ position: relative;
84
90
  padding: 0;
85
91
  border: 0;
86
92
  background: transparent;
@@ -90,6 +96,17 @@
90
96
  cursor: pointer;
91
97
  }
92
98
 
99
+ /* The hit area reaches the control minimum target (24px, 44px on coarse
100
+ pointers) without growing the inline text, the way Button does. */
101
+ .a63-LoadMoreTrigger-action::before {
102
+ content: '';
103
+ position: absolute;
104
+ inset: 50%;
105
+ min-width: max(100%, var(--a63-control-min-target));
106
+ min-height: max(100%, var(--a63-control-min-target));
107
+ translate: -50% -50%;
108
+ }
109
+
93
110
  .a63-LoadMoreTrigger-action:focus-visible {
94
111
  border-radius: var(--radius-sm);
95
112
  outline: 2px solid var(--load-more-accent);
@@ -2,14 +2,19 @@
2
2
  * Marquee recipe — an infinitely scrolling strip. The container clips overflow
3
3
  * and lays out `repeat` duplicate tracks; each track scrolls one --gap-adjusted
4
4
  * span via the a63-marquee keyframes (prod's animate-marquee). data-orientation
5
- * switches axis; reverse/paused/pauseOnHover drive the animation play-state.
5
+ * switches axis; reverse/paused/pauseOnHover drive the animation play-state, and
6
+ * .a63-Marquee-control is the built-in pause toggle.
6
7
  * Animation is suppressed under prefers-reduced-motion.
7
8
  */
8
9
 
9
10
  .a63-Marquee {
10
11
  --gap: 1rem;
11
12
  --duration: 40s;
13
+ /* 1 scrolls the tracks left; -1 under dir="rtl", where the duplicate tracks
14
+ lay out to the left and the strip has to scroll right to loop. */
15
+ --marquee-dir: 1;
12
16
 
17
+ position: relative;
13
18
  display: flex;
14
19
  gap: var(--gap);
15
20
  padding: var(--a63-space-2);
@@ -18,6 +23,9 @@
18
23
  .a63-Marquee[data-orientation='horizontal'] {
19
24
  flex-direction: row;
20
25
  }
26
+ .a63-Marquee:dir(rtl) {
27
+ --marquee-dir: -1;
28
+ }
21
29
  .a63-Marquee[data-orientation='vertical'] {
22
30
  flex-direction: column;
23
31
  }
@@ -48,12 +56,25 @@
48
56
  animation-play-state: paused;
49
57
  }
50
58
 
59
+ /* Built-in pause toggle (WCAG 2.2.2), pinned to the inline end over the strip. */
60
+ .a63-Marquee > .a63-Marquee-control {
61
+ position: absolute;
62
+ z-index: 1;
63
+ inset-block-start: 50%;
64
+ inset-inline-end: var(--a63-space-2);
65
+ translate: 0 -50%;
66
+ }
67
+ .a63-Marquee[data-orientation='vertical'] > .a63-Marquee-control {
68
+ inset-block-start: var(--a63-space-2);
69
+ translate: none;
70
+ }
71
+
51
72
  @keyframes a63-marquee {
52
73
  0% {
53
74
  transform: translateX(0);
54
75
  }
55
76
  100% {
56
- transform: translateX(calc(-100% - var(--gap)));
77
+ transform: translateX(calc((-100% - var(--gap)) * var(--marquee-dir)));
57
78
  }
58
79
  }
59
80
 
@@ -73,7 +94,8 @@
73
94
  .a63-Marquee-track {
74
95
  animation: none;
75
96
  }
76
- .a63-Marquee-track:not(:first-child) {
97
+ .a63-Marquee-track:not(:first-child),
98
+ .a63-Marquee-control {
77
99
  display: none;
78
100
  }
79
101
  }
@@ -111,6 +111,22 @@
111
111
  color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
112
112
  }
113
113
 
114
+ /* Keyboard focus: an inset ring on top of the highlight, which alone is too
115
+ faint to mark focus (WCAG 1.4.11). Menu and Select items take DOM focus, so
116
+ a pointer hover keeps only the fill. Autocomplete keeps focus in its input
117
+ and marks the option Enter picks with data-highlighted, so that option
118
+ always carries the ring. Inset: the popup clips an outer ring. */
119
+ .a63-Menu-item:focus-visible,
120
+ .a63-Autocomplete-item[data-highlighted] {
121
+ outline: var(--a63-control-focus-ring-width) solid
122
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
123
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
124
+ }
125
+ .a63-Menu-popup[data-tone='primary'] .a63-Menu-item:focus-visible,
126
+ .a63-Menu-popup[data-tone='primary'] .a63-Autocomplete-item[data-highlighted] {
127
+ outline-color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
128
+ }
129
+
114
130
  .a63-Menu-item[data-disabled] {
115
131
  pointer-events: none;
116
132
  opacity: var(--a63-menu-disabled-opacity);
@@ -184,7 +200,6 @@
184
200
  text-transform: uppercase;
185
201
  letter-spacing: 0;
186
202
  line-height: 1;
187
- opacity: 0.75;
188
203
  }
189
204
 
190
205
  .a63-Menu-label[data-inset] {
@@ -215,3 +230,23 @@
215
230
  transition: none;
216
231
  }
217
232
  }
233
+
234
+ /* Forced colors drop the highlight fill, gloss and shadow, and every row sets
235
+ `outline: none`, so the focused row takes the system selection colours. Each
236
+ selector matches the specificity of the tone or variant rule it overrides. */
237
+ @media (forced-colors: active) {
238
+ .a63-Menu-item[data-highlighted],
239
+ .a63-Menu-item[data-variant][data-highlighted],
240
+ .a63-Menu-popup[data-tone] .a63-Menu-item[data-highlighted],
241
+ .a63-Menu-sub-trigger[data-popup-open],
242
+ .a63-Menu-popup[data-tone] .a63-Menu-sub-trigger[data-popup-open] {
243
+ background-color: Highlight;
244
+ color: HighlightText;
245
+ }
246
+ .a63-Menu-item[data-highlighted] :is(svg, .a63-Menu-shortcut, .a63-Menu-item-indicator),
247
+ .a63-Menu-popup[data-tone] .a63-Menu-item[data-highlighted] :is(svg, .a63-Menu-shortcut),
248
+ .a63-Menu-sub-trigger[data-popup-open] :is(svg, .a63-Menu-sub-icon),
249
+ .a63-Menu-popup[data-tone] .a63-Menu-sub-trigger[data-popup-open] :is(svg, .a63-Menu-sub-icon) {
250
+ color: HighlightText;
251
+ }
252
+ }
@@ -0,0 +1,170 @@
1
+ /*
2
+ * Message recipe — the SURFACE archetype. A person-to-person thread: incoming
3
+ * bubbles on the leading side on --a63-surface-muted, outgoing bubbles on the
4
+ * trailing side in the accent (--a63-message-outgoing-* defaults to
5
+ * --a63-action-primary, so a theme or a product can set them). A run of
6
+ * consecutive messages from one sender joins at its shared corners, which use
7
+ * the small radius; single and last messages draw the tail as a sharp bottom
8
+ * corner on the sender's side. Corners are logical, so a thread mirrors in
9
+ * right-to-left scripts.
10
+ */
11
+
12
+ .a63-MessageList {
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: calc(var(--a63-space-1) / 2);
16
+ min-width: 0;
17
+ }
18
+
19
+ /* A new run starts with more room above it. */
20
+ .a63-MessageList > [data-slot='message']:is([data-position='single'], [data-position='first']),
21
+ .a63-MessageList > [data-slot='message-event'] {
22
+ margin-block-start: var(--a63-space-3);
23
+ }
24
+
25
+ .a63-MessageList > :first-child {
26
+ margin-block-start: 0;
27
+ }
28
+
29
+ .a63-Message {
30
+ --message-radius: var(--radius-2xl);
31
+ --message-joined-radius: var(--radius-sm);
32
+ --message-tail-radius: var(--radius-xs);
33
+
34
+ display: flex;
35
+ align-items: flex-end;
36
+ gap: var(--a63-space-2);
37
+ min-width: 0;
38
+ font-size: var(--typography-base-font-size);
39
+ line-height: var(--typography-base-line-height);
40
+ }
41
+
42
+ .a63-Message[data-direction='outgoing'] {
43
+ flex-direction: row-reverse;
44
+ }
45
+
46
+ .a63-Message-avatar {
47
+ display: flex;
48
+ flex: none;
49
+ }
50
+
51
+ /* The avatar shows on the last message of a run and keeps its column on the others. */
52
+ .a63-Message:is([data-position='first'], [data-position='middle']) .a63-Message-avatar {
53
+ visibility: hidden;
54
+ }
55
+
56
+ .a63-Message-bubble {
57
+ display: flex;
58
+ flex-direction: column;
59
+ min-width: 0;
60
+ max-inline-size: min(78%, 32rem);
61
+ overflow: hidden;
62
+ border-radius: var(--message-radius);
63
+ overflow-wrap: anywhere;
64
+ }
65
+
66
+ .a63-Message[data-direction='incoming'] .a63-Message-bubble {
67
+ background-color: var(--a63-surface-muted);
68
+ color: var(--a63-text-primary);
69
+ }
70
+
71
+ .a63-Message[data-direction='outgoing'] .a63-Message-bubble {
72
+ background-color: var(--a63-message-outgoing-background, var(--a63-action-primary));
73
+ color: var(--a63-message-outgoing-foreground, var(--a63-action-primary-foreground));
74
+ }
75
+
76
+ /* Joined corners on the sender's side: above for middle and last, below for first and middle. */
77
+ .a63-Message[data-direction='incoming']:is([data-position='middle'], [data-position='last'])
78
+ .a63-Message-bubble {
79
+ border-start-start-radius: var(--message-joined-radius);
80
+ }
81
+
82
+ .a63-Message[data-direction='incoming']:is([data-position='first'], [data-position='middle'])
83
+ .a63-Message-bubble {
84
+ border-end-start-radius: var(--message-joined-radius);
85
+ }
86
+
87
+ .a63-Message[data-direction='outgoing']:is([data-position='middle'], [data-position='last'])
88
+ .a63-Message-bubble {
89
+ border-start-end-radius: var(--message-joined-radius);
90
+ }
91
+
92
+ .a63-Message[data-direction='outgoing']:is([data-position='first'], [data-position='middle'])
93
+ .a63-Message-bubble {
94
+ border-end-end-radius: var(--message-joined-radius);
95
+ }
96
+
97
+ /* The tail: a sharp bottom corner on the sender's side. */
98
+ .a63-Message[data-direction='incoming']:is([data-position='single'], [data-position='last'])
99
+ .a63-Message-bubble {
100
+ border-end-start-radius: var(--message-tail-radius);
101
+ }
102
+
103
+ .a63-Message[data-direction='outgoing']:is([data-position='single'], [data-position='last'])
104
+ .a63-Message-bubble {
105
+ border-end-end-radius: var(--message-tail-radius);
106
+ }
107
+
108
+ /* A message with media takes a set width, so a photo without intrinsic size still shows. */
109
+ .a63-Message[data-media] .a63-Message-bubble {
110
+ inline-size: min(78%, 18rem);
111
+ }
112
+
113
+ .a63-Message-media > * {
114
+ display: block;
115
+ inline-size: 100%;
116
+ block-size: auto;
117
+ }
118
+
119
+ .a63-Message-content {
120
+ padding-block: var(--a63-space-2);
121
+ padding-inline: var(--a63-space-3);
122
+ white-space: pre-wrap;
123
+ }
124
+
125
+ /* The meta floats at the end of the last line, as in most messengers. */
126
+ .a63-Message-meta {
127
+ display: inline-flex;
128
+ float: inline-end;
129
+ align-items: center;
130
+ gap: var(--a63-space-1);
131
+ margin-block-start: var(--a63-space-1);
132
+ margin-inline-start: var(--a63-space-2);
133
+ font-size: var(--typography-xs-font-size);
134
+ line-height: var(--typography-xs-line-height);
135
+ white-space: nowrap;
136
+ }
137
+
138
+ /* Full contrast on both fills: secondary text on the muted fill, the bubble's own foreground on the accent. */
139
+ .a63-Message[data-direction='incoming'] .a63-Message-meta {
140
+ color: var(--a63-text-secondary);
141
+ }
142
+
143
+ .a63-Message-status {
144
+ display: inline-flex;
145
+ }
146
+
147
+ .a63-Message-status svg {
148
+ inline-size: var(--a63-control-icon-size-xs);
149
+ block-size: var(--a63-control-icon-size-xs);
150
+ }
151
+
152
+ .a63-MessageEvent {
153
+ display: flex;
154
+ align-items: center;
155
+ justify-content: center;
156
+ gap: var(--a63-space-1);
157
+ color: var(--a63-text-secondary);
158
+ font-size: var(--typography-xs-font-size);
159
+ line-height: var(--typography-xs-line-height);
160
+ text-align: center;
161
+ }
162
+
163
+ .a63-MessageEvent-icon {
164
+ display: inline-flex;
165
+ }
166
+
167
+ .a63-MessageEvent-icon svg {
168
+ inline-size: var(--a63-control-icon-size-xs);
169
+ block-size: var(--a63-control-icon-size-xs);
170
+ }