@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.
- package/README.md +121 -0
- package/dist/button-sktq-nvV.d.ts +13 -0
- package/dist/chunk-7VSPECOH.js +73 -0
- package/dist/chunk-7VSPECOH.js.map +1 -0
- package/dist/chunk-AJLHJRK6.js +11 -0
- package/dist/chunk-AJLHJRK6.js.map +1 -0
- package/dist/chunk-MXNO63TC.js +2745 -0
- package/dist/chunk-MXNO63TC.js.map +1 -0
- package/dist/chunk-STCXERLM.js +354 -0
- package/dist/chunk-STCXERLM.js.map +1 -0
- package/dist/destination-link-C9NKeKLe.d.ts +34 -0
- package/dist/index.d.ts +1605 -0
- package/dist/index.js +7337 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/index.d.ts +196 -0
- package/dist/layout/index.js +500 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/media/index.d.ts +208 -0
- package/dist/media/index.js +1498 -0
- package/dist/media/index.js.map +1 -0
- package/dist/media/media-lightbox/parts/index.d.ts +284 -0
- package/dist/media/media-lightbox/parts/index.js +5 -0
- package/dist/media/media-lightbox/parts/index.js.map +1 -0
- package/dist/theme/index.d.ts +350 -0
- package/dist/theme/index.js +1173 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types-Dxe5IzjE.d.ts +145 -0
- package/package.json +188 -0
- package/src/components/accordion/accordion.css +196 -0
- package/src/components/alert/alert.css +189 -0
- package/src/components/alert-dialog/alert-dialog.css +205 -0
- package/src/components/autocomplete/autocomplete.css +240 -0
- package/src/components/avatar/avatar.css +147 -0
- package/src/components/badge/badge.css +223 -0
- package/src/components/breadcrumb/breadcrumb.css +99 -0
- package/src/components/button/button.css +594 -0
- package/src/components/button-group/button-group.css +412 -0
- package/src/components/calendar/calendar.css +271 -0
- package/src/components/card/card.css +421 -0
- package/src/components/carousel/carousel.css +163 -0
- package/src/components/checkbox/checkbox.css +113 -0
- package/src/components/collapsible/collapsible.css +59 -0
- package/src/components/command/command.css +226 -0
- package/src/components/connected-panel/connected-panel.css +437 -0
- package/src/components/copy-button/copy-button.css +57 -0
- package/src/components/dialog/dialog.css +221 -0
- package/src/components/drawer/drawer.css +265 -0
- package/src/components/empty/empty.css +145 -0
- package/src/components/feedback-state/feedback-state.css +141 -0
- package/src/components/field/field.css +260 -0
- package/src/components/form/form.css +32 -0
- package/src/components/frame/frame.css +115 -0
- package/src/components/hover-card/hover-card.css +80 -0
- package/src/components/input/input.css +291 -0
- package/src/components/input-otp/input-otp.css +145 -0
- package/src/components/item/item.css +216 -0
- package/src/components/kbd/kbd.css +72 -0
- package/src/components/label/label.css +37 -0
- package/src/components/load-more-trigger/load-more-trigger.css +109 -0
- package/src/components/marquee/marquee.css +79 -0
- package/src/components/menu/menu.css +216 -0
- package/src/components/menubar/menubar.css +67 -0
- package/src/components/navigation-menu/navigation-menu.css +275 -0
- package/src/components/pagination/pagination.css +86 -0
- package/src/components/panel-setting-button/panel-setting-button.css +76 -0
- package/src/components/popover/popover.css +89 -0
- package/src/components/preview-card/preview-card.css +69 -0
- package/src/components/progress/progress.css +70 -0
- package/src/components/radio/radio.css +115 -0
- package/src/components/resizable/resizable.css +99 -0
- package/src/components/scroll-area/scroll-area.css +130 -0
- package/src/components/scrollable-list/scrollable-list.css +144 -0
- package/src/components/segmented-control/segmented-control.css +235 -0
- package/src/components/select/select.css +261 -0
- package/src/components/separator/separator.css +43 -0
- package/src/components/sheet/sheet.css +209 -0
- package/src/components/sidebar/sidebar.css +728 -0
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +179 -0
- package/src/components/skeleton/skeleton.css +42 -0
- package/src/components/slider/slider.css +124 -0
- package/src/components/switch/switch.css +149 -0
- package/src/components/table/table.css +183 -0
- package/src/components/tabs/tabs.css +416 -0
- package/src/components/text-ticker/text-ticker.css +139 -0
- package/src/components/textarea/textarea.css +122 -0
- package/src/components/toggle/toggle.css +185 -0
- package/src/components/toggle-group/toggle-group.css +102 -0
- package/src/components/tooltip/tooltip.css +133 -0
- package/src/media/media-lightbox/media-lightbox.css +171 -0
- package/src/styles/index.css +3 -0
- package/src/styles/recipes.css +70 -0
- package/src/styles/reset.css +22 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Card recipe — the SURFACE archetype's rich consumer, ported from the site's
|
|
3
|
+
* base-card. Resting elevation reads the --a63-surface-shadow lever; bg/border/
|
|
4
|
+
* radius/text resolve from semantics at the use-site. Variants (default/ghost/
|
|
5
|
+
* interactive/overlay) + a padding scale + media/text/footer slots mirror
|
|
6
|
+
* base-card. Media radius stays concentric via calc(card-radius - card-pad) — the
|
|
7
|
+
* root publishes both custom props and children inherit them (no JS chrome ctx).
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.a63-Card {
|
|
11
|
+
--a63-card-radius: var(--radius-3xl);
|
|
12
|
+
--a63-card-pad: 0.375rem;
|
|
13
|
+
|
|
14
|
+
position: relative;
|
|
15
|
+
/* Establish a query container so content/footer padding can respond to the
|
|
16
|
+
card's own width (the { base, sm } responsive padding form). */
|
|
17
|
+
container: a63-card / inline-size;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
padding: var(--a63-card-pad);
|
|
22
|
+
border: var(--a63-surface-border-width) var(--a63-surface-border-style) var(--a63-border-subtle);
|
|
23
|
+
border-radius: var(--a63-surface-radius, var(--a63-card-radius));
|
|
24
|
+
background-color: var(--a63-surface-panel);
|
|
25
|
+
background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
|
|
26
|
+
background-blend-mode: normal, var(--a63-surface-texture-blend);
|
|
27
|
+
backdrop-filter: var(--a63-surface-backdrop);
|
|
28
|
+
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
|
|
29
|
+
color: var(--a63-text-primary);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* ── Padding scale (root chrome inset that drives concentric media) ─────── */
|
|
33
|
+
.a63-Card[data-padding='none'] {
|
|
34
|
+
--a63-card-pad: 0;
|
|
35
|
+
}
|
|
36
|
+
.a63-Card[data-padding='sm'] {
|
|
37
|
+
--a63-card-pad: 0.25rem;
|
|
38
|
+
}
|
|
39
|
+
.a63-Card[data-padding='md'] {
|
|
40
|
+
--a63-card-pad: 0.375rem;
|
|
41
|
+
}
|
|
42
|
+
.a63-Card[data-padding='lg'] {
|
|
43
|
+
--a63-card-pad: 0.75rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* ── Variants ──────────────────────────────────────────────────────────── */
|
|
47
|
+
.a63-Card[data-variant='overlay'] {
|
|
48
|
+
--a63-card-radius: var(--radius-2xl);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* interactive + overlay: lift on hover (z-boost so it paints above grid siblings) */
|
|
52
|
+
.a63-Card[data-variant='interactive'],
|
|
53
|
+
.a63-Card[data-variant='overlay'] {
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition:
|
|
56
|
+
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
57
|
+
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
58
|
+
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.a63-Card[data-variant='interactive']:hover,
|
|
62
|
+
.a63-Card[data-variant='overlay']:hover {
|
|
63
|
+
z-index: 10;
|
|
64
|
+
transform: translateY(-4px);
|
|
65
|
+
border-color: var(--a63-border-control);
|
|
66
|
+
box-shadow:
|
|
67
|
+
var(--a63-surface-shadow),
|
|
68
|
+
0 12px 24px -8px color-mix(in oklch, black 22%, transparent);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* ghost: no shell — a scaled pseudo hover wash instead */
|
|
72
|
+
.a63-Card[data-variant='ghost'] {
|
|
73
|
+
border-color: transparent;
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
box-shadow: none;
|
|
76
|
+
isolation: isolate;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.a63-Card[data-variant='ghost']::before {
|
|
80
|
+
content: '';
|
|
81
|
+
position: absolute;
|
|
82
|
+
inset: -0.25rem;
|
|
83
|
+
z-index: -1;
|
|
84
|
+
border-radius: var(--radius-2xl);
|
|
85
|
+
background-color: color-mix(in oklch, var(--a63-surface-muted) 50%, transparent);
|
|
86
|
+
opacity: 0;
|
|
87
|
+
transform: scale(0.9);
|
|
88
|
+
transition:
|
|
89
|
+
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
90
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.a63-Card[data-variant='ghost']:hover::before {
|
|
95
|
+
opacity: 1;
|
|
96
|
+
transform: scale(1);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.a63-Card[data-variant='ghost']:active::before {
|
|
100
|
+
transform: scale(0.97);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* ── Header ────────────────────────────────────────────────────────────── */
|
|
104
|
+
.a63-Card-header {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
gap: var(--a63-space-1);
|
|
109
|
+
padding: var(--a63-space-4);
|
|
110
|
+
}
|
|
111
|
+
.a63-Card-header[data-padding='none'] {
|
|
112
|
+
padding: 0;
|
|
113
|
+
}
|
|
114
|
+
.a63-Card-header[data-padding='sm'] {
|
|
115
|
+
padding: var(--a63-space-3);
|
|
116
|
+
}
|
|
117
|
+
.a63-Card-header[data-padding='md'] {
|
|
118
|
+
padding: var(--a63-space-4);
|
|
119
|
+
}
|
|
120
|
+
.a63-Card-header[data-padding='lg'] {
|
|
121
|
+
padding: var(--a63-space-5);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.a63-Card-label {
|
|
125
|
+
color: var(--a63-text-primary);
|
|
126
|
+
font-size: 0.875rem;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* ── Media frame (concentric radius) ───────────────────────────────────── */
|
|
130
|
+
.a63-Card-media {
|
|
131
|
+
width: 100%;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
border-radius: calc(var(--a63-card-radius) - var(--a63-card-pad));
|
|
134
|
+
background-color: color-mix(in oklch, var(--a63-surface-muted) 50%, transparent);
|
|
135
|
+
}
|
|
136
|
+
.a63-Card-media > img,
|
|
137
|
+
.a63-Card-media > video {
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 100%;
|
|
140
|
+
object-fit: cover;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ── Media overlay family ──────────────────────────────────────────────── */
|
|
144
|
+
.a63-Card-media-overlay {
|
|
145
|
+
position: relative;
|
|
146
|
+
width: 100%;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
border-radius: inherit;
|
|
150
|
+
}
|
|
151
|
+
.a63-Card-media-overlay:not([data-aspect]) {
|
|
152
|
+
flex: 1;
|
|
153
|
+
height: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.a63-Card-media-overlay-image {
|
|
157
|
+
position: absolute;
|
|
158
|
+
inset: 0;
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
}
|
|
161
|
+
.a63-Card-media-overlay-image > img,
|
|
162
|
+
.a63-Card-media-overlay-image > video {
|
|
163
|
+
width: 100%;
|
|
164
|
+
height: 100%;
|
|
165
|
+
object-fit: cover;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.a63-Card-media-overlay-scrim {
|
|
169
|
+
position: absolute;
|
|
170
|
+
inset: 0;
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
background: linear-gradient(
|
|
173
|
+
to top,
|
|
174
|
+
color-mix(in oklch, black 75%, transparent),
|
|
175
|
+
color-mix(in oklch, black 25%, transparent) 50%,
|
|
176
|
+
transparent
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.a63-Card-media-overlay-top-right {
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: 0.75rem;
|
|
183
|
+
right: 0.75rem;
|
|
184
|
+
z-index: 10;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.a63-Card-media-overlay-bottom {
|
|
188
|
+
position: absolute;
|
|
189
|
+
inset-inline: 0;
|
|
190
|
+
bottom: 0;
|
|
191
|
+
z-index: 10;
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: flex-end;
|
|
194
|
+
justify-content: space-between;
|
|
195
|
+
gap: var(--a63-space-3);
|
|
196
|
+
padding: var(--a63-space-4);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.a63-Card-media-overlay-icon-button {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
width: 2rem;
|
|
204
|
+
height: 2rem;
|
|
205
|
+
border-radius: var(--radius-full);
|
|
206
|
+
background-color: color-mix(in oklch, white 10%, transparent);
|
|
207
|
+
color: white;
|
|
208
|
+
backdrop-filter: blur(4px);
|
|
209
|
+
}
|
|
210
|
+
.a63-Card-media-overlay-icon-button svg {
|
|
211
|
+
width: 1rem;
|
|
212
|
+
height: 1rem;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* ── Content / text ────────────────────────────────────────────────────── */
|
|
216
|
+
.a63-Card-content {
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
gap: var(--a63-space-3);
|
|
220
|
+
padding: var(--a63-space-4);
|
|
221
|
+
}
|
|
222
|
+
.a63-Card-content[data-padding='none'] {
|
|
223
|
+
gap: var(--a63-space-3);
|
|
224
|
+
padding: 0;
|
|
225
|
+
}
|
|
226
|
+
.a63-Card-content[data-padding='xs'] {
|
|
227
|
+
gap: var(--a63-space-1);
|
|
228
|
+
padding: var(--a63-space-2);
|
|
229
|
+
}
|
|
230
|
+
.a63-Card-content[data-padding='sm'] {
|
|
231
|
+
gap: var(--a63-space-1);
|
|
232
|
+
padding: var(--a63-space-3);
|
|
233
|
+
}
|
|
234
|
+
.a63-Card-content[data-padding='md'] {
|
|
235
|
+
gap: var(--a63-space-2);
|
|
236
|
+
padding: var(--a63-space-4);
|
|
237
|
+
}
|
|
238
|
+
.a63-Card-content[data-padding='lg'] {
|
|
239
|
+
gap: 0.875rem;
|
|
240
|
+
padding: var(--a63-space-5);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.a63-Card-title {
|
|
244
|
+
color: var(--a63-text-primary);
|
|
245
|
+
font-size: 1.125rem;
|
|
246
|
+
font-weight: 700;
|
|
247
|
+
line-height: 1.2;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.a63-Card-description {
|
|
251
|
+
color: var(--a63-text-secondary);
|
|
252
|
+
font-size: 0.875rem;
|
|
253
|
+
line-height: 1.4;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.a63-Card-title[data-line-clamp],
|
|
257
|
+
.a63-Card-description[data-line-clamp] {
|
|
258
|
+
display: -webkit-box;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
-webkit-box-orient: vertical;
|
|
261
|
+
}
|
|
262
|
+
.a63-Card-title[data-line-clamp='1'],
|
|
263
|
+
.a63-Card-description[data-line-clamp='1'] {
|
|
264
|
+
-webkit-line-clamp: 1;
|
|
265
|
+
}
|
|
266
|
+
.a63-Card-title[data-line-clamp='2'],
|
|
267
|
+
.a63-Card-description[data-line-clamp='2'] {
|
|
268
|
+
-webkit-line-clamp: 2;
|
|
269
|
+
}
|
|
270
|
+
.a63-Card-title[data-line-clamp='3'],
|
|
271
|
+
.a63-Card-description[data-line-clamp='3'] {
|
|
272
|
+
-webkit-line-clamp: 3;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.a63-Card-tags {
|
|
276
|
+
display: flex;
|
|
277
|
+
flex-wrap: wrap;
|
|
278
|
+
align-items: center;
|
|
279
|
+
gap: 0.375rem;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* ── Footer / action ───────────────────────────────────────────────────── */
|
|
283
|
+
.a63-Card-footer {
|
|
284
|
+
display: flex;
|
|
285
|
+
align-items: center;
|
|
286
|
+
gap: var(--a63-space-2);
|
|
287
|
+
margin-top: auto;
|
|
288
|
+
padding: var(--a63-space-4);
|
|
289
|
+
padding-top: 0;
|
|
290
|
+
}
|
|
291
|
+
.a63-Card-footer[data-padding='none'] {
|
|
292
|
+
padding: 0;
|
|
293
|
+
}
|
|
294
|
+
.a63-Card-footer[data-padding='xs'] {
|
|
295
|
+
padding: var(--a63-space-2);
|
|
296
|
+
padding-top: 0;
|
|
297
|
+
}
|
|
298
|
+
.a63-Card-footer[data-padding='sm'] {
|
|
299
|
+
padding: var(--a63-space-3);
|
|
300
|
+
padding-top: 0;
|
|
301
|
+
}
|
|
302
|
+
.a63-Card-footer[data-padding='md'] {
|
|
303
|
+
padding: var(--a63-space-4);
|
|
304
|
+
padding-top: 0;
|
|
305
|
+
}
|
|
306
|
+
.a63-Card-footer[data-padding='lg'] {
|
|
307
|
+
padding: var(--a63-space-5);
|
|
308
|
+
padding-top: 0;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.a63-Card-action {
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
gap: var(--a63-space-2);
|
|
315
|
+
margin-left: auto;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* ── Link wrapper (unclipped so interactive lift isn't cut off) ────────── */
|
|
319
|
+
.a63-CardLink {
|
|
320
|
+
display: block;
|
|
321
|
+
height: 100%;
|
|
322
|
+
border-radius: var(--radius-3xl);
|
|
323
|
+
color: var(--a63-text-primary);
|
|
324
|
+
text-decoration: none;
|
|
325
|
+
outline: none;
|
|
326
|
+
}
|
|
327
|
+
.a63-CardLink:focus-visible {
|
|
328
|
+
box-shadow: 0 0 0 2px var(--a63-focus-ring);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* Responsive padding: once the CARD is wide enough, the `sm` step wins
|
|
332
|
+
(padding={{ base, sm }}). Container-driven, so a card in a narrow grid
|
|
333
|
+
cell keeps its base padding regardless of viewport. */
|
|
334
|
+
@container a63-card (min-width: 24rem) {
|
|
335
|
+
.a63-Card-content[data-padding-sm='none'] {
|
|
336
|
+
gap: var(--a63-space-3);
|
|
337
|
+
padding: 0;
|
|
338
|
+
}
|
|
339
|
+
.a63-Card-content[data-padding-sm='xs'] {
|
|
340
|
+
gap: var(--a63-space-1);
|
|
341
|
+
padding: var(--a63-space-2);
|
|
342
|
+
}
|
|
343
|
+
.a63-Card-content[data-padding-sm='sm'] {
|
|
344
|
+
gap: var(--a63-space-1);
|
|
345
|
+
padding: var(--a63-space-3);
|
|
346
|
+
}
|
|
347
|
+
.a63-Card-content[data-padding-sm='md'] {
|
|
348
|
+
gap: var(--a63-space-2);
|
|
349
|
+
padding: var(--a63-space-4);
|
|
350
|
+
}
|
|
351
|
+
.a63-Card-content[data-padding-sm='lg'] {
|
|
352
|
+
gap: 0.875rem;
|
|
353
|
+
padding: var(--a63-space-5);
|
|
354
|
+
}
|
|
355
|
+
.a63-Card-footer[data-padding-sm='none'] {
|
|
356
|
+
padding: 0;
|
|
357
|
+
}
|
|
358
|
+
.a63-Card-footer[data-padding-sm='xs'] {
|
|
359
|
+
padding: var(--a63-space-2);
|
|
360
|
+
padding-top: 0;
|
|
361
|
+
}
|
|
362
|
+
.a63-Card-footer[data-padding-sm='sm'] {
|
|
363
|
+
padding: var(--a63-space-3);
|
|
364
|
+
padding-top: 0;
|
|
365
|
+
}
|
|
366
|
+
.a63-Card-footer[data-padding-sm='md'] {
|
|
367
|
+
padding: var(--a63-space-4);
|
|
368
|
+
padding-top: 0;
|
|
369
|
+
}
|
|
370
|
+
.a63-Card-footer[data-padding-sm='lg'] {
|
|
371
|
+
padding: var(--a63-space-5);
|
|
372
|
+
padding-top: 0;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* ── Media hover-scale (CardMedia hoverScale) ──────────────────────────── */
|
|
377
|
+
.a63-Card-media[data-hover-scale] > * {
|
|
378
|
+
transition: transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
379
|
+
}
|
|
380
|
+
.a63-Card:hover .a63-Card-media[data-hover-scale] > * {
|
|
381
|
+
transform: scale(1.03);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* ── Cursor label (pointer-following pill) ─────────────────────────────── */
|
|
385
|
+
/* Position from the --a63-card-cursor-x/y custom props the `useCardCursor` hook
|
|
386
|
+
writes; visible only while the card is [data-cursor-active]. System cursor
|
|
387
|
+
hidden so the pill reads as the cursor. */
|
|
388
|
+
.a63-Card[data-cursor-active] {
|
|
389
|
+
cursor: none;
|
|
390
|
+
}
|
|
391
|
+
.a63-Card-cursor-label {
|
|
392
|
+
position: absolute;
|
|
393
|
+
left: var(--a63-card-cursor-x, 50%);
|
|
394
|
+
top: var(--a63-card-cursor-y, 50%);
|
|
395
|
+
z-index: 50;
|
|
396
|
+
display: inline-flex;
|
|
397
|
+
align-items: center;
|
|
398
|
+
gap: var(--a63-space-1);
|
|
399
|
+
padding: var(--a63-space-1) var(--a63-space-2);
|
|
400
|
+
border-radius: var(--radius-full);
|
|
401
|
+
background-color: var(--a63-text-primary);
|
|
402
|
+
color: var(--a63-surface-page);
|
|
403
|
+
font-size: 0.75rem;
|
|
404
|
+
font-weight: 500;
|
|
405
|
+
white-space: nowrap;
|
|
406
|
+
pointer-events: none;
|
|
407
|
+
translate: -50% -50%;
|
|
408
|
+
}
|
|
409
|
+
.a63-Card-cursor-label svg {
|
|
410
|
+
width: 0.75rem;
|
|
411
|
+
height: 0.75rem;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
@media (prefers-reduced-motion: reduce) {
|
|
415
|
+
.a63-Card[data-variant='interactive'],
|
|
416
|
+
.a63-Card[data-variant='overlay'],
|
|
417
|
+
.a63-Card[data-variant='ghost']::before,
|
|
418
|
+
.a63-Card-media[data-hover-scale] > * {
|
|
419
|
+
transition: none;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Carousel recipe — an embla-backed slider. Faithful port of prod @atom63/ui
|
|
3
|
+
* carousel.tsx: the track shifts a negative gutter that each item pads back
|
|
4
|
+
* (prod -ml-4 / pl-4 for horizontal, -mt-4 / pt-4 for vertical). The nav buttons
|
|
5
|
+
* are round OVERLAY-surface controls (--a63-surface-overlay + --a63-overlay-shadow
|
|
6
|
+
* + --a63-border-subtle) absolutely centered on the leading/trailing edge, keyed
|
|
7
|
+
* off data-orientation. The optional cursorIndicator overlay (.a63-Carousel-cursor)
|
|
8
|
+
* reuses the same overlay-surface pill. Local --carousel-* vars only; no new tokens.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.a63-Carousel {
|
|
12
|
+
--carousel-gutter: 1rem;
|
|
13
|
+
--carousel-nav-size: max(2.5rem, var(--a63-control-min-target));
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.a63-Carousel-viewport {
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.a63-Carousel-track {
|
|
23
|
+
display: flex;
|
|
24
|
+
}
|
|
25
|
+
.a63-Carousel-track[data-orientation='horizontal'] {
|
|
26
|
+
margin-left: calc(var(--carousel-gutter) * -1);
|
|
27
|
+
}
|
|
28
|
+
.a63-Carousel-track[data-orientation='vertical'] {
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
margin-top: calc(var(--carousel-gutter) * -1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.a63-Carousel-item {
|
|
34
|
+
min-width: 0;
|
|
35
|
+
flex: 0 0 100%;
|
|
36
|
+
}
|
|
37
|
+
.a63-Carousel-item[data-orientation='horizontal'] {
|
|
38
|
+
padding-left: var(--carousel-gutter);
|
|
39
|
+
}
|
|
40
|
+
.a63-Carousel-item[data-orientation='vertical'] {
|
|
41
|
+
padding-top: var(--carousel-gutter);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ── Nav buttons (overlay-surface pills) ───────────────────────────────── */
|
|
45
|
+
.a63-Carousel-nav {
|
|
46
|
+
position: absolute;
|
|
47
|
+
z-index: var(--z-layer-base, 1);
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: var(--carousel-nav-size);
|
|
52
|
+
height: var(--carousel-nav-size);
|
|
53
|
+
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
54
|
+
border-radius: var(--a63-overlay-radius, var(--radius-full, 9999px));
|
|
55
|
+
background-color: var(--a63-surface-overlay);
|
|
56
|
+
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
57
|
+
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
58
|
+
backdrop-filter: var(--a63-overlay-backdrop);
|
|
59
|
+
box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
|
|
60
|
+
color: var(--a63-text-primary);
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
appearance: none;
|
|
63
|
+
outline: none;
|
|
64
|
+
transition:
|
|
65
|
+
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
66
|
+
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
67
|
+
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
68
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.a63-Carousel-nav:hover:not(:disabled) {
|
|
72
|
+
background: var(--a63-surface-control-hover);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.a63-Carousel-nav:focus-visible {
|
|
76
|
+
box-shadow:
|
|
77
|
+
var(--a63-overlay-inner-shadow, none),
|
|
78
|
+
var(--a63-overlay-shadow),
|
|
79
|
+
0 0 0 var(--a63-control-focus-ring-width)
|
|
80
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.a63-Carousel-nav:disabled {
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
opacity: 0.5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Placement — leading/trailing edge per orientation (prod insets). */
|
|
89
|
+
.a63-Carousel-nav[data-orientation='horizontal'][data-direction='prev'] {
|
|
90
|
+
top: 50%;
|
|
91
|
+
left: 0.75rem;
|
|
92
|
+
transform: translateY(-50%);
|
|
93
|
+
}
|
|
94
|
+
.a63-Carousel-nav[data-orientation='horizontal'][data-direction='next'] {
|
|
95
|
+
top: 50%;
|
|
96
|
+
right: 0.75rem;
|
|
97
|
+
transform: translateY(-50%);
|
|
98
|
+
}
|
|
99
|
+
.a63-Carousel-nav[data-orientation='vertical'][data-direction='prev'] {
|
|
100
|
+
top: 0.75rem;
|
|
101
|
+
left: 50%;
|
|
102
|
+
transform: translateX(-50%) rotate(90deg);
|
|
103
|
+
}
|
|
104
|
+
.a63-Carousel-nav[data-orientation='vertical'][data-direction='next'] {
|
|
105
|
+
bottom: 0.75rem;
|
|
106
|
+
left: 50%;
|
|
107
|
+
transform: translateX(-50%) rotate(90deg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* ── Cursor indicator (pointer-following prev/next affordance) ─────────────
|
|
111
|
+
* Faithful port of prod's motion overlay: a round OVERLAY-surface pill that
|
|
112
|
+
* tracks the pointer inside the viewport. The system cursor is hidden while the
|
|
113
|
+
* indicator is active; the pill dims (data-disabled) when it can't navigate.
|
|
114
|
+
*/
|
|
115
|
+
.a63-Carousel--cursor-indicator {
|
|
116
|
+
position: relative;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.a63-Carousel--cursor-hidden {
|
|
120
|
+
cursor: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.a63-Carousel-cursor {
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
position: absolute;
|
|
126
|
+
z-index: var(--z-layer-header, 50);
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
width: var(--carousel-nav-size);
|
|
131
|
+
height: var(--carousel-nav-size);
|
|
132
|
+
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
133
|
+
border-radius: var(--a63-overlay-radius, var(--radius-full, 9999px));
|
|
134
|
+
background-color: var(--a63-surface-overlay);
|
|
135
|
+
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
136
|
+
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
137
|
+
backdrop-filter: var(--a63-overlay-backdrop);
|
|
138
|
+
box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
|
|
139
|
+
color: var(--a63-text-primary);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.a63-Carousel-cursor-icon {
|
|
143
|
+
width: 1.25rem;
|
|
144
|
+
height: 1.25rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.a63-Carousel-sr-only {
|
|
148
|
+
position: absolute;
|
|
149
|
+
width: 1px;
|
|
150
|
+
height: 1px;
|
|
151
|
+
padding: 0;
|
|
152
|
+
margin: -1px;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
clip: rect(0, 0, 0, 0);
|
|
155
|
+
white-space: nowrap;
|
|
156
|
+
border: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (prefers-reduced-motion: reduce) {
|
|
160
|
+
.a63-Carousel-nav {
|
|
161
|
+
transition: none;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Checkbox recipe — the SELECTION archetype's 2nd consumer (after Switch).
|
|
3
|
+
* `.a63-Checkbox` is the box; `.a63-Checkbox-indicator` is the accent fill + icon
|
|
4
|
+
* overlay. Checked/indeterminate fill with the shared --a63-selection-accent
|
|
5
|
+
* (= --a63-action-primary at the use-site → follows brand + theme). Axis-dependent
|
|
6
|
+
* selection tokens resolve here via var(--a63-selection-X, <semantic>).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-Checkbox {
|
|
10
|
+
--checkbox-size: 1.125rem;
|
|
11
|
+
--checkbox-accent: var(--a63-selection-accent, var(--a63-action-primary));
|
|
12
|
+
--checkbox-border: var(--a63-selection-border, var(--a63-border-control));
|
|
13
|
+
--checkbox-focus-ring: var(--a63-selection-focus-ring, var(--a63-focus-ring));
|
|
14
|
+
--checkbox-shadow: var(--a63-choice-box-shadow, none);
|
|
15
|
+
--checkbox-shadow-checked: var(--a63-choice-box-shadow-checked, var(--checkbox-shadow));
|
|
16
|
+
--checkbox-indicator-gloss: var(--a63-choice-indicator-gloss, none);
|
|
17
|
+
|
|
18
|
+
position: relative;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
flex: none;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
width: var(--checkbox-size);
|
|
25
|
+
height: var(--checkbox-size);
|
|
26
|
+
margin: max(0px, calc((var(--a63-control-min-target) - var(--checkbox-size)) / 2));
|
|
27
|
+
border: var(--a63-control-border-width) solid var(--checkbox-border);
|
|
28
|
+
border-radius: var(--radius-sm);
|
|
29
|
+
background-color: var(--a63-surface-control);
|
|
30
|
+
box-shadow: var(--checkbox-shadow);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
outline: none;
|
|
33
|
+
transition:
|
|
34
|
+
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
35
|
+
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
36
|
+
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.a63-Checkbox::after {
|
|
40
|
+
content: '';
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: 50%;
|
|
43
|
+
min-width: var(--a63-control-min-target);
|
|
44
|
+
min-height: var(--a63-control-min-target);
|
|
45
|
+
translate: -50% -50%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.a63-Checkbox-indicator {
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset: -1px;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
border-radius: inherit;
|
|
55
|
+
color: var(--a63-action-primary-foreground);
|
|
56
|
+
}
|
|
57
|
+
.a63-Checkbox-indicator[data-unchecked] {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
.a63-Checkbox-indicator svg {
|
|
61
|
+
width: 0.875rem;
|
|
62
|
+
height: 0.875rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* ── States ────────────────────────────────────────────────────────────── */
|
|
66
|
+
/* Prod fills the box (accent bg + accent border + white icon) ONLY when
|
|
67
|
+
* checked. Indeterminate stays an outlined neutral box with a foreground-
|
|
68
|
+
* colored dash (transparent indicator, no accent border). */
|
|
69
|
+
.a63-Checkbox[data-checked] {
|
|
70
|
+
border-color: var(--checkbox-accent);
|
|
71
|
+
box-shadow: var(--checkbox-shadow-checked);
|
|
72
|
+
}
|
|
73
|
+
.a63-Checkbox[data-checked] .a63-Checkbox-indicator {
|
|
74
|
+
background-color: var(--checkbox-accent);
|
|
75
|
+
background-image: var(--checkbox-indicator-gloss);
|
|
76
|
+
}
|
|
77
|
+
.a63-Checkbox[data-indeterminate] .a63-Checkbox-indicator {
|
|
78
|
+
color: var(--a63-text-primary);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (hover: hover) {
|
|
82
|
+
.a63-Checkbox:hover:not([data-disabled]):not([data-checked]):not([data-indeterminate]) {
|
|
83
|
+
border-color: color-mix(in oklch, var(--checkbox-border), var(--a63-text-primary) 20%);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.a63-Checkbox:focus-visible {
|
|
88
|
+
box-shadow: 0 0 0 var(--a63-control-focus-ring-width) var(--checkbox-focus-ring);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.a63-Checkbox[data-disabled] {
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
opacity: 0.56;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.a63-Checkbox[aria-invalid='true'] {
|
|
97
|
+
border-color: color-mix(in oklch, var(--a63-action-danger) 62%, transparent);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ── Sizes (md is the base rule above) ─────────────────────────────────── */
|
|
101
|
+
.a63-Checkbox[data-size='sm'] {
|
|
102
|
+
--checkbox-size: 1rem;
|
|
103
|
+
}
|
|
104
|
+
.a63-Checkbox[data-size='sm'] .a63-Checkbox-indicator svg {
|
|
105
|
+
width: 0.75rem;
|
|
106
|
+
height: 0.75rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (prefers-reduced-motion: reduce) {
|
|
110
|
+
.a63-Checkbox {
|
|
111
|
+
transition: none;
|
|
112
|
+
}
|
|
113
|
+
}
|