@atom63/ui-react 0.2.0-beta.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 (92) hide show
  1. package/README.md +121 -0
  2. package/dist/button-sktq-nvV.d.ts +13 -0
  3. package/dist/chunk-7VSPECOH.js +73 -0
  4. package/dist/chunk-7VSPECOH.js.map +1 -0
  5. package/dist/chunk-AJLHJRK6.js +11 -0
  6. package/dist/chunk-AJLHJRK6.js.map +1 -0
  7. package/dist/chunk-MXNO63TC.js +2745 -0
  8. package/dist/chunk-MXNO63TC.js.map +1 -0
  9. package/dist/chunk-STCXERLM.js +354 -0
  10. package/dist/chunk-STCXERLM.js.map +1 -0
  11. package/dist/destination-link-C9NKeKLe.d.ts +34 -0
  12. package/dist/index.d.ts +1605 -0
  13. package/dist/index.js +7337 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/layout/index.d.ts +196 -0
  16. package/dist/layout/index.js +500 -0
  17. package/dist/layout/index.js.map +1 -0
  18. package/dist/media/index.d.ts +208 -0
  19. package/dist/media/index.js +1498 -0
  20. package/dist/media/index.js.map +1 -0
  21. package/dist/media/media-lightbox/parts/index.d.ts +284 -0
  22. package/dist/media/media-lightbox/parts/index.js +5 -0
  23. package/dist/media/media-lightbox/parts/index.js.map +1 -0
  24. package/dist/theme/index.d.ts +350 -0
  25. package/dist/theme/index.js +1173 -0
  26. package/dist/theme/index.js.map +1 -0
  27. package/dist/types-Dxe5IzjE.d.ts +145 -0
  28. package/package.json +188 -0
  29. package/src/components/accordion/accordion.css +196 -0
  30. package/src/components/alert/alert.css +189 -0
  31. package/src/components/alert-dialog/alert-dialog.css +205 -0
  32. package/src/components/autocomplete/autocomplete.css +240 -0
  33. package/src/components/avatar/avatar.css +147 -0
  34. package/src/components/badge/badge.css +223 -0
  35. package/src/components/breadcrumb/breadcrumb.css +99 -0
  36. package/src/components/button/button.css +594 -0
  37. package/src/components/button-group/button-group.css +412 -0
  38. package/src/components/calendar/calendar.css +271 -0
  39. package/src/components/card/card.css +421 -0
  40. package/src/components/carousel/carousel.css +163 -0
  41. package/src/components/checkbox/checkbox.css +113 -0
  42. package/src/components/collapsible/collapsible.css +59 -0
  43. package/src/components/command/command.css +226 -0
  44. package/src/components/connected-panel/connected-panel.css +437 -0
  45. package/src/components/copy-button/copy-button.css +57 -0
  46. package/src/components/dialog/dialog.css +221 -0
  47. package/src/components/drawer/drawer.css +265 -0
  48. package/src/components/empty/empty.css +145 -0
  49. package/src/components/feedback-state/feedback-state.css +141 -0
  50. package/src/components/field/field.css +260 -0
  51. package/src/components/form/form.css +32 -0
  52. package/src/components/frame/frame.css +115 -0
  53. package/src/components/hover-card/hover-card.css +80 -0
  54. package/src/components/input/input.css +291 -0
  55. package/src/components/input-otp/input-otp.css +145 -0
  56. package/src/components/item/item.css +216 -0
  57. package/src/components/kbd/kbd.css +72 -0
  58. package/src/components/label/label.css +37 -0
  59. package/src/components/load-more-trigger/load-more-trigger.css +109 -0
  60. package/src/components/marquee/marquee.css +79 -0
  61. package/src/components/menu/menu.css +216 -0
  62. package/src/components/menubar/menubar.css +67 -0
  63. package/src/components/navigation-menu/navigation-menu.css +275 -0
  64. package/src/components/pagination/pagination.css +86 -0
  65. package/src/components/panel-setting-button/panel-setting-button.css +76 -0
  66. package/src/components/popover/popover.css +89 -0
  67. package/src/components/preview-card/preview-card.css +69 -0
  68. package/src/components/progress/progress.css +70 -0
  69. package/src/components/radio/radio.css +115 -0
  70. package/src/components/resizable/resizable.css +99 -0
  71. package/src/components/scroll-area/scroll-area.css +130 -0
  72. package/src/components/scrollable-list/scrollable-list.css +144 -0
  73. package/src/components/segmented-control/segmented-control.css +235 -0
  74. package/src/components/select/select.css +261 -0
  75. package/src/components/separator/separator.css +43 -0
  76. package/src/components/sheet/sheet.css +209 -0
  77. package/src/components/sidebar/sidebar.css +728 -0
  78. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +179 -0
  79. package/src/components/skeleton/skeleton.css +42 -0
  80. package/src/components/slider/slider.css +124 -0
  81. package/src/components/switch/switch.css +149 -0
  82. package/src/components/table/table.css +183 -0
  83. package/src/components/tabs/tabs.css +416 -0
  84. package/src/components/text-ticker/text-ticker.css +139 -0
  85. package/src/components/textarea/textarea.css +122 -0
  86. package/src/components/toggle/toggle.css +185 -0
  87. package/src/components/toggle-group/toggle-group.css +102 -0
  88. package/src/components/tooltip/tooltip.css +133 -0
  89. package/src/media/media-lightbox/media-lightbox.css +171 -0
  90. package/src/styles/index.css +3 -0
  91. package/src/styles/recipes.css +70 -0
  92. package/src/styles/reset.css +22 -0
@@ -0,0 +1,291 @@
1
+ /*
2
+ * Field recipes — the RECESSED control (text field), the inset counterpart to the
3
+ * raised Button, plus the composable InputGroup that shares its chrome.
4
+ *
5
+ * `.a63-Input` (styled) and `.a63-InputGroup` both own the field CHROME (border,
6
+ * recessed --a63-field-shadow, focus-within ring, sizing) — shared via the same
7
+ * selectors so there's one source of recessed-field truth. `.a63-Input-field` is
8
+ * the transparent text input. When nested inside a group, an `unstyled` Input
9
+ * becomes `display: contents` so the GROUP provides the chrome and lays out
10
+ * `[leading addon] [field] [trailing addon]` in one box. All sizing comes from
11
+ * the control ramp, so design language (web/iOS) + density reshape it for free.
12
+ */
13
+
14
+ .a63-Input:not([data-unstyled]),
15
+ .a63-InputGroup {
16
+ /* Resolve the axis-dependent tokens HERE (the use-site), not at :root, so their
17
+ var()s pick up the field's own mode/theme/brand instead of freezing to the
18
+ root's (the resolve-at-declaration trap). A theme override wins via the first
19
+ arg; otherwise the live semantic resolves. --field-shadow is mode-independent
20
+ (contract default / theme override), so it reads --a63-field-shadow directly. */
21
+ --field-background: var(--a63-field-background, var(--a63-surface-control));
22
+ --field-border: var(--a63-field-border, var(--a63-border-control));
23
+ --field-radius: var(--a63-field-radius, var(--a63-control-radius));
24
+ --field-shadow: var(--a63-field-shadow);
25
+ --field-focus-ring: var(--a63-field-focus-ring, var(--a63-focus-ring));
26
+ --field-focus-border: var(
27
+ --a63-field-focus-border,
28
+ color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-control))
29
+ );
30
+ /* Content floor — see button.css for the full rationale. Height comes from
31
+ the density-owned control ramp, font size from the type-scale axis; the two
32
+ are orthogonal, so a control can end up shorter than its own text. The
33
+ floor is keyed to the SIZE STEP (not `1lh`) so sibling controls in a row
34
+ resolve identically, and it is sized to be inert in every shipping
35
+ type-scale × density combination. */
36
+ --field-content-lh: var(--typography-sm-line-height);
37
+ --field-content-floor: calc(var(--field-content-lh) + 2 * var(--a63-space-0_5));
38
+ --field-height: max(
39
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
40
+ var(--a63-control-min-size),
41
+ var(--field-content-floor)
42
+ );
43
+ --field-padding-inline: var(--a63-control-padding-inline-md);
44
+ --field-font-size: var(--a63-control-font-size-md);
45
+
46
+ display: inline-flex;
47
+ align-items: center;
48
+ inline-size: 100%;
49
+ min-width: 0;
50
+ height: var(--field-height);
51
+ padding: 0 var(--field-padding-inline);
52
+ border: var(--a63-control-border-width) solid var(--field-border);
53
+ border-radius: var(--field-radius);
54
+ background-color: var(--field-background);
55
+ box-shadow: var(--field-shadow);
56
+ color: var(--a63-text-primary);
57
+ font-family: var(--a63-control-font-family);
58
+ font-size: max(var(--field-font-size), var(--a63-editable-font-size-min, 0px));
59
+ cursor: text;
60
+ transition:
61
+ border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
62
+ box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
63
+ }
64
+
65
+ /* Drop the recessed field shadow (shadow={false}) — for inputs on translucent
66
+ or flat chrome (search bars, window toolbars). */
67
+ .a63-Input[data-shadow='false'],
68
+ .a63-InputGroup[data-shadow='false'] {
69
+ --field-shadow: 0 0 #0000;
70
+ }
71
+
72
+ /* Chrome-less field for nesting inside a group: the wrapper collapses, so
73
+ .a63-Input-field participates directly in the group's flex row. */
74
+ .a63-Input[data-unstyled] {
75
+ display: contents;
76
+ }
77
+
78
+ .a63-Input-field {
79
+ flex: 1 1 auto;
80
+ min-width: 0;
81
+ height: 100%;
82
+ padding: 0;
83
+ border: none;
84
+ background: transparent;
85
+ color: inherit;
86
+ font: inherit;
87
+ letter-spacing: inherit;
88
+ outline: none;
89
+ }
90
+
91
+ .a63-Input-field::placeholder {
92
+ color: var(--a63-text-secondary);
93
+ opacity: 1;
94
+ }
95
+
96
+ /* prod type-specific field polish */
97
+ .a63-Input-field[type='search']::-webkit-search-cancel-button,
98
+ .a63-Input-field[type='search']::-webkit-search-decoration,
99
+ .a63-Input-field[type='search']::-webkit-search-results-button,
100
+ .a63-Input-field[type='search']::-webkit-search-results-decoration {
101
+ appearance: none;
102
+ }
103
+
104
+ .a63-Input-field[type='file'] {
105
+ color: var(--a63-text-secondary);
106
+ }
107
+
108
+ .a63-Input-field[type='file']::file-selector-button {
109
+ margin-inline-end: var(--a63-space-3, 0.75rem);
110
+ border: 0;
111
+ background: transparent;
112
+ color: var(--a63-text-primary);
113
+ font: inherit;
114
+ font-weight: 500;
115
+ font-size: var(--a63-control-font-size-sm);
116
+ }
117
+
118
+ .a63-Input-field[type='number'] {
119
+ appearance: textfield;
120
+ }
121
+
122
+ .a63-Input-field[type='number']::-webkit-inner-spin-button,
123
+ .a63-Input-field[type='number']::-webkit-outer-spin-button {
124
+ appearance: none;
125
+ }
126
+
127
+ /* ── States (shared by field + group) ──────────────────────────────────── */
128
+
129
+ .a63-Input:not([data-unstyled]):hover,
130
+ .a63-InputGroup:hover {
131
+ border-color: color-mix(in oklch, var(--field-border), var(--a63-text-primary) 18%);
132
+ }
133
+
134
+ .a63-Input:not([data-unstyled]):focus-within,
135
+ .a63-InputGroup:focus-within {
136
+ border-color: var(--field-focus-border);
137
+ box-shadow:
138
+ var(--field-shadow),
139
+ 0 0 0 var(--a63-control-focus-ring-width) var(--field-focus-ring);
140
+ }
141
+
142
+ .a63-Input[data-invalid],
143
+ .a63-InputGroup[data-invalid] {
144
+ /* Mix danger toward TRANSPARENT, not the neutral border: an oklch mix between
145
+ danger (red) and the blue-ish neutral swings through magenta on the shortest
146
+ hue path. Mixing with transparent keeps the red hue and just softens it. */
147
+ --field-border: color-mix(in oklch, var(--a63-action-danger) 62%, transparent);
148
+ --field-focus-border: var(--a63-action-danger);
149
+ --field-focus-ring: color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
150
+ }
151
+
152
+ .a63-Input[data-disabled],
153
+ .a63-InputGroup[data-disabled] {
154
+ cursor: not-allowed;
155
+ opacity: 0.56;
156
+ }
157
+
158
+ .a63-Input[data-disabled] .a63-Input-field,
159
+ .a63-InputGroup[data-disabled] .a63-Input-field {
160
+ cursor: not-allowed;
161
+ }
162
+
163
+ /* ── Sizes (md is the base rule above) ─────────────────────────────────── */
164
+
165
+ .a63-Input[data-size='sm']:not([data-unstyled]),
166
+ .a63-InputGroup[data-size='sm'] {
167
+ --field-content-lh: var(--typography-xs-line-height);
168
+ --field-height: max(
169
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
170
+ var(--a63-control-min-size),
171
+ var(--field-content-floor)
172
+ );
173
+ --field-padding-inline: var(--a63-control-padding-inline-sm);
174
+ --field-font-size: var(--a63-control-font-size-sm);
175
+ }
176
+
177
+ .a63-Input[data-size='lg']:not([data-unstyled]),
178
+ .a63-InputGroup[data-size='lg'] {
179
+ --field-content-lh: var(--typography-base-line-height);
180
+ --field-height: max(
181
+ calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
182
+ var(--a63-control-min-size-lg, var(--a63-control-min-size)),
183
+ var(--field-content-floor)
184
+ );
185
+ --field-padding-inline: var(--a63-control-padding-inline-lg);
186
+ --field-font-size: var(--a63-control-font-size-lg);
187
+ }
188
+
189
+ /* ── Group layout + addons ─────────────────────────────────────────────── */
190
+
191
+ .a63-InputGroup {
192
+ gap: var(--a63-control-gap);
193
+ }
194
+
195
+ /* Block addons (prod): stack label/actions above or below a growing textarea. */
196
+ .a63-InputGroup:has(> [data-align='block-start']),
197
+ .a63-InputGroup:has(> [data-align='block-end']),
198
+ .a63-InputGroup:has(textarea) {
199
+ flex-direction: column;
200
+ align-items: stretch;
201
+ height: auto;
202
+ min-height: var(--field-height);
203
+ padding-block: var(--a63-space-2, 0.5rem);
204
+ }
205
+
206
+ .a63-InputGroup:has(> [data-align='block-start']) .a63-Input-field,
207
+ .a63-InputGroup:has(> [data-align='block-end']) .a63-Input-field,
208
+ .a63-InputGroup:has(textarea) .a63-Input-field,
209
+ .a63-InputGroup .a63-Textarea-field {
210
+ height: auto;
211
+ min-height: 5.125rem;
212
+ padding-block: var(--a63-space-1_5, 0.375rem);
213
+ resize: none;
214
+ }
215
+
216
+ /* Field stays in the middle; addons order to either edge regardless of authoring
217
+ order. The field grows (flex:1), pushing a trailing addon to the far side. */
218
+ .a63-InputGroup .a63-Input-field,
219
+ .a63-InputGroup .a63-Textarea-field {
220
+ order: 0;
221
+ flex: 1 1 auto;
222
+ inline-size: 100%;
223
+ }
224
+
225
+ .a63-InputGroup-addon {
226
+ display: inline-flex;
227
+ flex: none;
228
+ align-items: center;
229
+ gap: var(--a63-space-1_5, 0.375rem);
230
+ order: 1;
231
+ color: var(--a63-text-secondary);
232
+ cursor: text;
233
+ user-select: none;
234
+ white-space: nowrap;
235
+ }
236
+
237
+ .a63-InputGroup-addon[data-align='inline-start'] {
238
+ order: -1;
239
+ }
240
+
241
+ .a63-InputGroup-addon[data-align='block-start'] {
242
+ order: -1;
243
+ inline-size: 100%;
244
+ justify-content: flex-start;
245
+ }
246
+
247
+ .a63-InputGroup-addon[data-align='block-end'] {
248
+ order: 1;
249
+ inline-size: 100%;
250
+ justify-content: flex-start;
251
+ }
252
+
253
+ /* Icons scale with the field's font-size so they track the size ramp. */
254
+ .a63-InputGroup-addon :where(svg) {
255
+ width: 1.25em;
256
+ height: 1.25em;
257
+ flex: none;
258
+ }
259
+
260
+ .a63-InputGroup-text {
261
+ display: inline-flex;
262
+ align-items: center;
263
+ gap: var(--a63-space-1_5, 0.375rem);
264
+ color: var(--a63-text-secondary);
265
+ white-space: nowrap;
266
+ }
267
+
268
+ /* In-field action button — quiet by default (a muted glyph), not a heavy control.
269
+ Circular so its hover reads as a subtle icon affordance, and a softer hover fill
270
+ than the standalone ghost button. */
271
+ .a63-InputGroup-addon [data-trigger-slot='input-group-button'] {
272
+ --button-foreground: var(--a63-text-secondary);
273
+ --button-state-hover-background: color-mix(
274
+ in oklch,
275
+ var(--a63-surface-control-hover) 55%,
276
+ transparent
277
+ );
278
+
279
+ border-radius: var(--radius-full);
280
+ }
281
+
282
+ .a63-InputGroup-addon [data-trigger-slot='input-group-button']:hover {
283
+ --button-foreground: var(--a63-text-primary);
284
+ }
285
+
286
+ @media (prefers-reduced-motion: reduce) {
287
+ .a63-Input:not([data-unstyled]),
288
+ .a63-InputGroup {
289
+ transition: none;
290
+ }
291
+ }
@@ -0,0 +1,145 @@
1
+ /*
2
+ * InputOTP recipe — a segmented one-time-password field, ported faithfully from
3
+ * production. `.a63-InputOTP` is the flex container the `input-otp` primitive
4
+ * lays its hidden input into; `.a63-InputOTP-group` clusters the visible slots
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),
7
+ * fuse into a single pill by collapsing inner borders, and the active slot lifts
8
+ * with the brand accent + focus ring. Caret blink is a local keyframe. No new tokens.
9
+ */
10
+
11
+ .a63-InputOTP {
12
+ display: flex;
13
+ align-items: center;
14
+ gap: var(--a63-space-2, 0.5rem);
15
+ }
16
+
17
+ .a63-InputOTP:has(:disabled),
18
+ .a63-InputOTP:has([data-disabled]) {
19
+ opacity: 0.5;
20
+ }
21
+
22
+ /* The primitive's single hidden input — inherits the not-allowed cursor. */
23
+ .a63-InputOTP-input:disabled {
24
+ cursor: not-allowed;
25
+ }
26
+
27
+ .a63-InputOTP-group {
28
+ display: flex;
29
+ align-items: center;
30
+ }
31
+
32
+ .a63-InputOTP-slot {
33
+ --otp-border: var(--a63-field-border, var(--a63-border-control));
34
+ --otp-accent: var(--a63-selection-accent, var(--a63-action-primary));
35
+
36
+ position: relative;
37
+ display: flex;
38
+ /* Content floor — see button.css. Square slot, so both axes come from one
39
+ value; flooring height alone would desquare it. */
40
+ --otp-slot-size: max(
41
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
42
+ var(--a63-control-min-size),
43
+ calc(var(--typography-sm-line-height) + 2 * var(--a63-space-0_5))
44
+ );
45
+
46
+ align-items: center;
47
+ justify-content: center;
48
+ width: var(--otp-slot-size);
49
+ height: var(--otp-slot-size);
50
+ border: var(--a63-control-border-width) solid var(--otp-border);
51
+ /* Collapse inner borders so the group fuses into one pill. */
52
+ border-inline-start-width: 0;
53
+ background-color: var(--a63-field-background, var(--a63-surface-control));
54
+ box-shadow: var(--a63-field-shadow);
55
+ color: var(--a63-text-primary);
56
+ font-family: var(--a63-control-font-family);
57
+ font-size: max(var(--a63-control-font-size-md), var(--a63-editable-font-size-min, 0px));
58
+ outline: none;
59
+ transition:
60
+ border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
61
+ box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
62
+ }
63
+
64
+ /* Rounded outer corners + the missing leading border on the first slot. */
65
+ .a63-InputOTP-slot:first-child {
66
+ border-inline-start-width: var(--a63-control-border-width);
67
+ border-start-start-radius: var(--a63-control-radius);
68
+ border-end-start-radius: var(--a63-control-radius);
69
+ }
70
+ .a63-InputOTP-slot:last-child {
71
+ border-start-end-radius: var(--a63-control-radius);
72
+ border-end-end-radius: var(--a63-control-radius);
73
+ }
74
+
75
+ /* Active slot lifts above its neighbors, adopts the accent border + focus ring. */
76
+ .a63-InputOTP-slot[data-active='true'] {
77
+ z-index: 1;
78
+ border-color: var(--otp-accent);
79
+ box-shadow:
80
+ var(--a63-field-shadow),
81
+ 0 0 0 var(--a63-control-focus-ring-width)
82
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
83
+ }
84
+
85
+ /* Invalid state — recolor the border + active ring to danger. */
86
+ .a63-InputOTP-slot[aria-invalid='true'],
87
+ .a63-InputOTP:has(.a63-InputOTP-input[aria-invalid='true']) .a63-InputOTP-slot {
88
+ --otp-border: color-mix(in oklch, var(--a63-action-danger) 62%, transparent);
89
+ }
90
+ .a63-InputOTP-slot[aria-invalid='true'][data-active='true'],
91
+ .a63-InputOTP:has(.a63-InputOTP-input[aria-invalid='true']) .a63-InputOTP-slot[data-active='true'] {
92
+ border-color: var(--a63-action-danger);
93
+ box-shadow:
94
+ var(--a63-field-shadow),
95
+ 0 0 0 var(--a63-control-focus-ring-width)
96
+ color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
97
+ }
98
+
99
+ /* Fake caret — a blinking hairline centered in the active empty slot. */
100
+ .a63-InputOTP-caretWrap {
101
+ position: absolute;
102
+ inset: 0;
103
+ display: flex;
104
+ align-items: center;
105
+ justify-content: center;
106
+ pointer-events: none;
107
+ }
108
+ .a63-InputOTP-caret {
109
+ width: 1px;
110
+ height: 1rem;
111
+ background-color: var(--a63-text-primary);
112
+ animation: a63-input-otp-caret-blink 1s step-end infinite;
113
+ }
114
+
115
+ /* Separator (e.g. between OTP groups) — a muted glyph. */
116
+ .a63-InputOTP-separator {
117
+ display: inline-flex;
118
+ align-items: center;
119
+ color: var(--a63-text-secondary);
120
+ }
121
+ .a63-InputOTP-separator :where(svg) {
122
+ width: 1em;
123
+ height: 1em;
124
+ }
125
+
126
+ @keyframes a63-input-otp-caret-blink {
127
+ 0%,
128
+ 70%,
129
+ 100% {
130
+ opacity: 1;
131
+ }
132
+ 20%,
133
+ 50% {
134
+ opacity: 0;
135
+ }
136
+ }
137
+
138
+ @media (prefers-reduced-motion: reduce) {
139
+ .a63-InputOTP-slot {
140
+ transition: none;
141
+ }
142
+ .a63-InputOTP-caret {
143
+ animation: none;
144
+ }
145
+ }
@@ -0,0 +1,216 @@
1
+ /*
2
+ * Item recipe — a flexible list/row primitive (media · content · actions).
3
+ * Faithful to prod @atom63/ui: a rounded row with variant chrome
4
+ * (default/outline/muted) + a size ramp (default/sm/xs), an ItemMedia lockup
5
+ * (default/icon/image), stacked ItemContent (Title + Description), trailing
6
+ * Actions, and Header/Footer bands. Interactive rendered rows get a muted hover.
7
+ * ItemGroup lays rows out in a gapped column; ItemSeparator divides them.
8
+ * Colors + focus ring from --a63-* tokens.
9
+ */
10
+
11
+ /* ── Group ──────────────────────────────────────────────────────────────── */
12
+ .a63-ItemGroup {
13
+ display: flex;
14
+ width: 100%;
15
+ flex-direction: column;
16
+ gap: var(--a63-space-4);
17
+ }
18
+ .a63-ItemGroup:has([data-size='sm']) {
19
+ gap: 0.625rem;
20
+ }
21
+ .a63-ItemGroup:has([data-size='xs']) {
22
+ gap: var(--a63-space-2);
23
+ }
24
+
25
+ .a63-ItemSeparator {
26
+ margin-block: var(--a63-space-2);
27
+ }
28
+
29
+ /* ── Item container ─────────────────────────────────────────────────────── */
30
+ .a63-Item {
31
+ display: flex;
32
+ width: 100%;
33
+ flex-wrap: wrap;
34
+ align-items: center;
35
+ border: var(--a63-control-border-width) solid transparent;
36
+ border-radius: var(--radius-lg);
37
+ color: inherit;
38
+ font-family: var(--a63-control-font-family);
39
+ font-size: var(--a63-control-font-size-sm);
40
+ text-decoration: none;
41
+ outline: none;
42
+ transition: background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
43
+ }
44
+ .a63-Item:focus-visible {
45
+ border-color: var(--a63-focus-ring);
46
+ box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
47
+ color-mix(in oklch, var(--a63-focus-ring) 50%, transparent);
48
+ }
49
+ /* Interaction belongs to the rendered semantic element, never to a static row. */
50
+ :where(a, button, [role='button'], [role='link']).a63-Item {
51
+ min-height: max(
52
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
53
+ var(--a63-control-min-size)
54
+ );
55
+ cursor: pointer;
56
+ }
57
+ /* Each size sits on its own rung — they all read `sm` before, so `default` and
58
+ `xs` rows were floored by the wrong one. */
59
+ :where(a, button, [role='button'], [role='link']).a63-Item[data-size='default'] {
60
+ min-height: max(
61
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
62
+ var(--a63-control-min-size)
63
+ );
64
+ }
65
+ :where(a, button, [role='button'], [role='link']).a63-Item[data-size='xs'] {
66
+ min-height: max(
67
+ calc(var(--a63-control-height-xs) * var(--a63-density-scale, 1)),
68
+ var(--a63-control-min-size)
69
+ );
70
+ }
71
+ :where(a, button, [role='button'], [role='link']).a63-Item:hover {
72
+ background-color: var(--a63-surface-muted);
73
+ }
74
+
75
+ /* Variants (border/fill only) */
76
+ .a63-Item[data-variant='default'] {
77
+ border-color: transparent;
78
+ }
79
+ .a63-Item[data-variant='outline'] {
80
+ border-color: var(--a63-border-subtle);
81
+ }
82
+ .a63-Item[data-variant='muted'] {
83
+ border-color: transparent;
84
+ background-color: color-mix(in oklch, var(--a63-surface-muted) 50%, transparent);
85
+ }
86
+
87
+ /* Sizes (gap + padding). Block padding comes from the row contract so the
88
+ design-language axis can retune row density; inline padding stays local. */
89
+ .a63-Item[data-size='default'] {
90
+ gap: var(--a63-space-4);
91
+ padding: var(--a63-row-padding-block-md) var(--a63-space-4);
92
+ }
93
+ .a63-Item[data-size='sm'] {
94
+ gap: 0.625rem;
95
+ padding: var(--a63-row-padding-block-sm) var(--a63-space-4);
96
+ }
97
+ .a63-Item[data-size='xs'] {
98
+ gap: var(--a63-space-2);
99
+ padding-inline: 0.625rem;
100
+ padding-block: var(--a63-row-padding-block-xs);
101
+ }
102
+ /* xs rows nested in a menu content shed their padding. */
103
+ [data-slot='dropdown-menu-content'] .a63-Item[data-size='xs'] {
104
+ padding: 0;
105
+ }
106
+
107
+ /* ── Media lockup ───────────────────────────────────────────────────────── */
108
+ .a63-ItemMedia {
109
+ display: flex;
110
+ flex-shrink: 0;
111
+ align-items: center;
112
+ justify-content: center;
113
+ gap: var(--a63-space-2);
114
+ }
115
+ .a63-ItemMedia svg {
116
+ pointer-events: none;
117
+ }
118
+ /* When paired with a description the media aligns to the top, nudged down. */
119
+ .a63-Item:has([data-slot='item-description']) .a63-ItemMedia {
120
+ align-self: flex-start;
121
+ transform: translateY(0.125rem);
122
+ }
123
+
124
+ .a63-ItemMedia[data-variant='default'] {
125
+ background: transparent;
126
+ }
127
+ .a63-ItemMedia[data-variant='icon'] svg:not([class*='size-']) {
128
+ width: 1rem;
129
+ height: 1rem;
130
+ }
131
+ .a63-ItemMedia[data-variant='image'] {
132
+ width: 2.5rem;
133
+ height: 2.5rem;
134
+ overflow: hidden;
135
+ border-radius: var(--radius-sm);
136
+ }
137
+ .a63-Item[data-size='sm'] .a63-ItemMedia[data-variant='image'] {
138
+ width: 2rem;
139
+ height: 2rem;
140
+ }
141
+ .a63-Item[data-size='xs'] .a63-ItemMedia[data-variant='image'] {
142
+ width: 1.5rem;
143
+ height: 1.5rem;
144
+ }
145
+ .a63-ItemMedia[data-variant='image'] img {
146
+ width: 100%;
147
+ height: 100%;
148
+ object-fit: cover;
149
+ }
150
+
151
+ /* ── Content / Title / Description ──────────────────────────────────────── */
152
+ .a63-ItemContent {
153
+ display: flex;
154
+ flex: 1;
155
+ flex-direction: column;
156
+ gap: var(--a63-space-unit);
157
+ }
158
+ .a63-Item[data-size='xs'] .a63-ItemContent {
159
+ gap: 0;
160
+ }
161
+ /* A second content column doesn't grow. */
162
+ .a63-ItemContent + .a63-ItemContent {
163
+ flex: none;
164
+ }
165
+
166
+ .a63-ItemTitle {
167
+ display: flex;
168
+ width: fit-content;
169
+ align-items: center;
170
+ gap: var(--a63-space-2);
171
+ font-size: var(--a63-control-font-size-sm);
172
+ font-weight: 500;
173
+ line-height: 1.375;
174
+ text-underline-offset: 4px;
175
+ -webkit-line-clamp: 1;
176
+ line-clamp: 1;
177
+ -webkit-box-orient: vertical;
178
+ overflow: hidden;
179
+ }
180
+
181
+ .a63-ItemDescription {
182
+ color: var(--a63-text-secondary);
183
+ font-size: var(--a63-control-font-size-sm);
184
+ font-weight: 400;
185
+ line-height: 1.5;
186
+ text-align: left;
187
+ -webkit-line-clamp: 2;
188
+ line-clamp: 2;
189
+ -webkit-box-orient: vertical;
190
+ overflow: hidden;
191
+ }
192
+ .a63-Item[data-size='xs'] .a63-ItemDescription {
193
+ font-size: var(--a63-control-font-size-xs);
194
+ }
195
+ .a63-ItemDescription a {
196
+ text-decoration: underline;
197
+ text-underline-offset: 4px;
198
+ }
199
+ .a63-ItemDescription a:hover {
200
+ color: var(--a63-action-primary);
201
+ }
202
+
203
+ /* ── Actions / Header / Footer ──────────────────────────────────────────── */
204
+ .a63-ItemActions {
205
+ display: flex;
206
+ align-items: center;
207
+ gap: var(--a63-space-2);
208
+ }
209
+ .a63-ItemHeader,
210
+ .a63-ItemFooter {
211
+ display: flex;
212
+ flex-basis: 100%;
213
+ align-items: center;
214
+ justify-content: space-between;
215
+ gap: var(--a63-space-2);
216
+ }