@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,260 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Field recipe — layout/label/description/error scaffolding for form controls.
|
|
3
|
+
* Faithful to prod @atom63/ui field.tsx (flex column stacks, orientation
|
|
4
|
+
* variants, invalid-state recolor, muted description, destructive error) but
|
|
5
|
+
* spaced/colored with --a63-* semantic tokens. No new tokens: muted text →
|
|
6
|
+
* --a63-text-secondary, destructive → --a63-action-danger, container-query
|
|
7
|
+
* responsive orientation keyed off .a63-FieldGroup as the @container.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/* ── FieldSet ──────────────────────────────────────────────────────────── */
|
|
11
|
+
.a63-FieldSet {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--a63-space-4, 1rem);
|
|
15
|
+
border: 0;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
min-inline-size: 0;
|
|
19
|
+
}
|
|
20
|
+
/* prod: tighter gap around grouped selection controls */
|
|
21
|
+
.a63-FieldSet:has(> [data-slot='checkbox-group']),
|
|
22
|
+
.a63-FieldSet:has(> [data-slot='radio-group']) {
|
|
23
|
+
gap: var(--a63-space-3, 0.75rem);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── FieldLegend ───────────────────────────────────────────────────────── */
|
|
27
|
+
.a63-FieldLegend {
|
|
28
|
+
margin-bottom: var(--a63-space-1_5, 0.375rem);
|
|
29
|
+
color: var(--a63-text-primary);
|
|
30
|
+
font-family: var(--a63-control-font-family);
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
line-height: 1.2;
|
|
33
|
+
}
|
|
34
|
+
.a63-FieldLegend[data-variant='legend'] {
|
|
35
|
+
font-size: var(--a63-control-font-size-md);
|
|
36
|
+
}
|
|
37
|
+
.a63-FieldLegend[data-variant='label'] {
|
|
38
|
+
font-size: var(--a63-control-font-size-sm);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ── FieldGroup ────────────────────────────────────────────────────────── */
|
|
42
|
+
.a63-FieldGroup {
|
|
43
|
+
container: field-group / inline-size;
|
|
44
|
+
display: flex;
|
|
45
|
+
inline-size: 100%;
|
|
46
|
+
/* Size containment for @container would otherwise report min-content as 0 and
|
|
47
|
+
let flex/grid parents collapse the group (narrow Storybook Themes rows). */
|
|
48
|
+
min-inline-size: 0;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
gap: var(--a63-space-5, 1.25rem);
|
|
51
|
+
}
|
|
52
|
+
.a63-FieldGroup[data-slot='checkbox-group'],
|
|
53
|
+
.a63-FieldGroup[data-slot='radio-group'] {
|
|
54
|
+
gap: var(--a63-space-3, 0.75rem);
|
|
55
|
+
}
|
|
56
|
+
.a63-FieldGroup > .a63-FieldGroup,
|
|
57
|
+
.a63-FieldGroup > [data-slot='field-group'] {
|
|
58
|
+
gap: var(--a63-space-4, 1rem);
|
|
59
|
+
}
|
|
60
|
+
.a63-FieldGroup[data-variant='outline'] .a63-FieldSeparator {
|
|
61
|
+
margin-bottom: calc(var(--a63-space-2, 0.5rem) * -1);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* ── Field ─────────────────────────────────────────────────────────────── */
|
|
65
|
+
.a63-Field {
|
|
66
|
+
display: flex;
|
|
67
|
+
/* Column is the default orientation — set it on the base rule so a missing
|
|
68
|
+
data-orientation never falls through to row (collapsed inputs + wrapped errors). */
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
inline-size: 100%;
|
|
71
|
+
min-inline-size: 0;
|
|
72
|
+
gap: var(--a63-space-2, 0.5rem);
|
|
73
|
+
color: var(--a63-text-primary);
|
|
74
|
+
}
|
|
75
|
+
.a63-Field[data-invalid='true'] {
|
|
76
|
+
color: var(--a63-action-danger);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* orientation: vertical (default) — stretch controls to the field width */
|
|
80
|
+
.a63-Field[data-orientation='vertical'] > *,
|
|
81
|
+
.a63-Field:not([data-orientation]) > * {
|
|
82
|
+
inline-size: 100%;
|
|
83
|
+
}
|
|
84
|
+
.a63-Field[data-orientation='vertical'] > .sr-only,
|
|
85
|
+
.a63-Field:not([data-orientation]) > .sr-only {
|
|
86
|
+
inline-size: auto;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* orientation: horizontal */
|
|
90
|
+
.a63-Field[data-orientation='horizontal'] {
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
.a63-Field[data-orientation='horizontal']:has(> [data-slot='field-content']) {
|
|
95
|
+
align-items: flex-start;
|
|
96
|
+
}
|
|
97
|
+
.a63-Field[data-orientation='horizontal'] > [data-slot='field-label'] {
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
}
|
|
100
|
+
/* prod: nudge checkbox/radio to the first text line when content stacks beside them */
|
|
101
|
+
.a63-Field[data-orientation='horizontal']:has(> [data-slot='field-content']) > [role='checkbox'],
|
|
102
|
+
.a63-Field[data-orientation='horizontal']:has(> [data-slot='field-content']) > [role='radio'] {
|
|
103
|
+
margin-top: 1px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* orientation: responsive — stacks below the field-group @container md break */
|
|
107
|
+
.a63-Field[data-orientation='responsive'] {
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
}
|
|
110
|
+
.a63-Field[data-orientation='responsive'] > * {
|
|
111
|
+
inline-size: 100%;
|
|
112
|
+
}
|
|
113
|
+
.a63-Field[data-orientation='responsive'] > .sr-only {
|
|
114
|
+
inline-size: auto;
|
|
115
|
+
}
|
|
116
|
+
@container field-group (min-width: 28rem) {
|
|
117
|
+
.a63-Field[data-orientation='responsive'] {
|
|
118
|
+
flex-direction: row;
|
|
119
|
+
align-items: center;
|
|
120
|
+
}
|
|
121
|
+
.a63-Field[data-orientation='responsive'] > * {
|
|
122
|
+
inline-size: auto;
|
|
123
|
+
}
|
|
124
|
+
.a63-Field[data-orientation='responsive']:has(> [data-slot='field-content']) {
|
|
125
|
+
align-items: flex-start;
|
|
126
|
+
}
|
|
127
|
+
.a63-Field[data-orientation='responsive'] > [data-slot='field-label'] {
|
|
128
|
+
flex: 1 1 auto;
|
|
129
|
+
}
|
|
130
|
+
.a63-Field[data-orientation='responsive']:has(> [data-slot='field-content']) > [role='checkbox'],
|
|
131
|
+
.a63-Field[data-orientation='responsive']:has(> [data-slot='field-content']) > [role='radio'] {
|
|
132
|
+
margin-top: 1px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* ── FieldContent ──────────────────────────────────────────────────────── */
|
|
137
|
+
.a63-FieldContent {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex: 1 1 0;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
gap: 0.125rem;
|
|
142
|
+
line-height: 1.35;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* ── FieldLabel ────────────────────────────────────────────────────────── */
|
|
146
|
+
.a63-FieldLabel {
|
|
147
|
+
display: flex;
|
|
148
|
+
inline-size: fit-content;
|
|
149
|
+
gap: var(--a63-space-2, 0.5rem);
|
|
150
|
+
line-height: 1.35;
|
|
151
|
+
}
|
|
152
|
+
/* dim inside a disabled field (prod group-data-[disabled=true]/field) */
|
|
153
|
+
.a63-Field[data-disabled='true'] .a63-FieldLabel {
|
|
154
|
+
opacity: 0.5;
|
|
155
|
+
}
|
|
156
|
+
/* selection-card label wrapping a nested field (prod checked-card treatment) */
|
|
157
|
+
.a63-FieldLabel:has(> [data-slot='field']) {
|
|
158
|
+
inline-size: 100%;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
border: var(--a63-control-border-width) solid transparent;
|
|
161
|
+
border-radius: var(--radius-lg);
|
|
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);
|
|
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);
|
|
172
|
+
}
|
|
173
|
+
.a63-FieldLabel [data-slot='field'] {
|
|
174
|
+
padding: 0.625rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* ── FieldTitle ────────────────────────────────────────────────────────── */
|
|
178
|
+
.a63-FieldTitle {
|
|
179
|
+
display: flex;
|
|
180
|
+
inline-size: fit-content;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: var(--a63-space-2, 0.5rem);
|
|
183
|
+
font-size: var(--a63-control-font-size-sm);
|
|
184
|
+
font-weight: 500;
|
|
185
|
+
}
|
|
186
|
+
.a63-Field[data-disabled='true'] .a63-FieldTitle {
|
|
187
|
+
opacity: 0.5;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* ── FieldDescription ──────────────────────────────────────────────────── */
|
|
191
|
+
.a63-FieldDescription {
|
|
192
|
+
margin: 0;
|
|
193
|
+
text-align: left;
|
|
194
|
+
color: var(--a63-text-secondary);
|
|
195
|
+
font-family: var(--a63-control-font-family);
|
|
196
|
+
font-size: var(--a63-control-font-size-sm);
|
|
197
|
+
font-weight: 400;
|
|
198
|
+
line-height: 1.5;
|
|
199
|
+
}
|
|
200
|
+
/* prod group-has-data-horizontal/field:text-balance — balance beside controls */
|
|
201
|
+
.a63-Field[data-orientation='horizontal'] .a63-FieldDescription,
|
|
202
|
+
.a63-Field[data-orientation='responsive'] .a63-FieldDescription {
|
|
203
|
+
text-wrap: balance;
|
|
204
|
+
}
|
|
205
|
+
/* nudge tight against a preceding legend (prod [[data-variant=legend]+&]) */
|
|
206
|
+
[data-variant='legend'] + .a63-FieldDescription {
|
|
207
|
+
margin-top: -0.375rem;
|
|
208
|
+
}
|
|
209
|
+
.a63-FieldDescription:last-child {
|
|
210
|
+
margin-top: 0;
|
|
211
|
+
}
|
|
212
|
+
/* prod nth-last-2:-mt-1 — tighten when description sits above a trailing control/error */
|
|
213
|
+
.a63-FieldDescription:nth-last-child(2) {
|
|
214
|
+
margin-top: -0.25rem;
|
|
215
|
+
}
|
|
216
|
+
.a63-FieldDescription a {
|
|
217
|
+
text-decoration: underline;
|
|
218
|
+
text-underline-offset: 4px;
|
|
219
|
+
}
|
|
220
|
+
.a63-FieldDescription a:hover {
|
|
221
|
+
color: var(--a63-action-primary);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* ── FieldSeparator ────────────────────────────────────────────────────── */
|
|
225
|
+
.a63-FieldSeparator {
|
|
226
|
+
position: relative;
|
|
227
|
+
margin-block: calc(var(--a63-space-2, 0.5rem) * -1);
|
|
228
|
+
block-size: 1.25rem;
|
|
229
|
+
font-size: var(--a63-control-font-size-sm);
|
|
230
|
+
}
|
|
231
|
+
.a63-FieldSeparator-line {
|
|
232
|
+
position: absolute;
|
|
233
|
+
inset: 0;
|
|
234
|
+
top: 50%;
|
|
235
|
+
}
|
|
236
|
+
.a63-FieldSeparator-content {
|
|
237
|
+
position: relative;
|
|
238
|
+
display: block;
|
|
239
|
+
inline-size: fit-content;
|
|
240
|
+
margin-inline: auto;
|
|
241
|
+
padding-inline: var(--a63-space-2, 0.5rem);
|
|
242
|
+
background-color: var(--a63-surface-page);
|
|
243
|
+
color: var(--a63-text-secondary);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* ── FieldError ────────────────────────────────────────────────────────── */
|
|
247
|
+
.a63-FieldError {
|
|
248
|
+
color: var(--a63-action-danger);
|
|
249
|
+
font-family: var(--a63-control-font-family);
|
|
250
|
+
font-size: var(--a63-control-font-size-sm);
|
|
251
|
+
font-weight: 400;
|
|
252
|
+
}
|
|
253
|
+
.a63-FieldError-list {
|
|
254
|
+
display: flex;
|
|
255
|
+
flex-direction: column;
|
|
256
|
+
gap: var(--a63-space-1);
|
|
257
|
+
margin: 0;
|
|
258
|
+
margin-inline-start: var(--a63-space-4);
|
|
259
|
+
list-style: disc;
|
|
260
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Form recipe — react-hook-form field wrappers. Faithful to prod @atom63/ui
|
|
3
|
+
* form.tsx (grid item stack, error-recolored label, muted description,
|
|
4
|
+
* destructive message) recolored/spaced with --a63-* semantic tokens. No new
|
|
5
|
+
* tokens: muted → --a63-text-secondary, destructive → --a63-action-danger.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.a63-FormItem {
|
|
9
|
+
display: grid;
|
|
10
|
+
gap: var(--a63-space-2, 0.5rem);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* FormLabel wraps Label (.a63-Label); flip to danger when the field errors. */
|
|
14
|
+
.a63-FormLabel[data-error='true'] {
|
|
15
|
+
color: var(--a63-action-danger);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.a63-FormDescription {
|
|
19
|
+
margin: 0;
|
|
20
|
+
color: var(--a63-text-secondary);
|
|
21
|
+
font-family: var(--a63-control-font-family);
|
|
22
|
+
font-size: var(--a63-control-font-size-sm);
|
|
23
|
+
line-height: var(--typography-sm-line-height);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.a63-FormMessage {
|
|
27
|
+
margin: 0;
|
|
28
|
+
color: var(--a63-action-danger);
|
|
29
|
+
font-family: var(--a63-control-font-family);
|
|
30
|
+
font-size: var(--a63-control-font-size-sm);
|
|
31
|
+
line-height: var(--typography-sm-line-height);
|
|
32
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Frame recipe — OS-style window/flyout chrome, the SURFACE archetype's
|
|
3
|
+
* container consumer. Faithful port of prod @atom63/ui frame.tsx: an outer tray
|
|
4
|
+
* wrapping inner panels, with a shared border weight. Prod's Tailwind surfaces
|
|
5
|
+
* map onto the a63 semantic surfaces:
|
|
6
|
+
* muted → --a63-surface-muted, card → --a63-surface-panel,
|
|
7
|
+
* background → --a63-surface-page
|
|
8
|
+
* The flush/lift/bevel treatment reads the --a63-surface-shadow lever; radius,
|
|
9
|
+
* border and text resolve from semantics at the use-site. No new tokens.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
.a63-Frame {
|
|
13
|
+
--a63-frame-radius: var(--radius-2xl);
|
|
14
|
+
--a63-frame-pad: 0.25rem;
|
|
15
|
+
|
|
16
|
+
position: relative;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
padding: var(--a63-frame-pad);
|
|
20
|
+
/* prod frame ring is a skin lever: a retro/terminal skin can restyle it
|
|
21
|
+
* (e.g. double/outset borders) via --a63-frame-border-style/-width; fall
|
|
22
|
+
* back to a plain control-width solid ring when unset. */
|
|
23
|
+
border-width: var(--a63-frame-border-width, var(--a63-control-border-width));
|
|
24
|
+
border-style: var(--a63-frame-border-style, solid);
|
|
25
|
+
border-color: transparent;
|
|
26
|
+
border-radius: var(--a63-surface-radius, var(--a63-frame-radius));
|
|
27
|
+
background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
|
|
28
|
+
background-blend-mode: normal, var(--a63-surface-texture-blend);
|
|
29
|
+
backdrop-filter: var(--a63-surface-backdrop);
|
|
30
|
+
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
|
|
31
|
+
color: var(--a63-text-primary);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Sibling panels get a gap between them (prod adjacent-panel margin). */
|
|
35
|
+
.a63-Frame > .a63-Frame-panel + .a63-Frame-panel {
|
|
36
|
+
margin-top: var(--a63-frame-pad);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ── Tray surfaces ─────────────────────────────────────────────────────── */
|
|
40
|
+
.a63-Frame[data-frame-tray='muted'] {
|
|
41
|
+
background-color: var(--a63-surface-muted);
|
|
42
|
+
}
|
|
43
|
+
.a63-Frame[data-frame-tray='card'] {
|
|
44
|
+
background-color: var(--a63-surface-panel);
|
|
45
|
+
}
|
|
46
|
+
.a63-Frame[data-frame-tray='background'] {
|
|
47
|
+
background-color: var(--a63-surface-page);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ── Inner panel ───────────────────────────────────────────────────────── */
|
|
51
|
+
/* Inner radius = outer − tray padding, for concentric corners (prod calc). */
|
|
52
|
+
.a63-Frame-panel {
|
|
53
|
+
position: relative;
|
|
54
|
+
padding: var(--a63-space-5);
|
|
55
|
+
/* Same skin lever as the tray ring (see .a63-Frame). */
|
|
56
|
+
border-width: var(--a63-frame-border-width, var(--a63-control-border-width));
|
|
57
|
+
border-style: var(--a63-frame-border-style, solid);
|
|
58
|
+
border-color: transparent;
|
|
59
|
+
border-radius: calc(var(--a63-surface-radius, var(--radius-2xl)) - var(--a63-frame-pad));
|
|
60
|
+
background-clip: padding-box;
|
|
61
|
+
background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
|
|
62
|
+
background-blend-mode: normal, var(--a63-surface-texture-blend);
|
|
63
|
+
backdrop-filter: var(--a63-surface-backdrop);
|
|
64
|
+
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
|
|
65
|
+
color: var(--a63-text-primary);
|
|
66
|
+
}
|
|
67
|
+
.a63-Frame-panel[data-frame-surface='background'] {
|
|
68
|
+
background-color: var(--a63-surface-page);
|
|
69
|
+
}
|
|
70
|
+
.a63-Frame-panel[data-frame-surface='card'] {
|
|
71
|
+
background-color: var(--a63-surface-panel);
|
|
72
|
+
}
|
|
73
|
+
.a63-Frame-panel[data-frame-surface='muted'] {
|
|
74
|
+
background-color: var(--a63-surface-muted);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* ── Border weight (Frame-level, inherited by panels) ──────────────────── */
|
|
78
|
+
/* off = no ring; subtle = faint hairline; strong = full control border.
|
|
79
|
+
* Only the ring COLOR varies by weight here — its style/width come from the
|
|
80
|
+
* --a63-frame-border-style/-width skin lever set on .a63-Frame / -panel. */
|
|
81
|
+
.a63-Frame[data-frame-border='off'],
|
|
82
|
+
.a63-Frame-panel[data-frame-border='off'] {
|
|
83
|
+
border-color: transparent;
|
|
84
|
+
}
|
|
85
|
+
.a63-Frame[data-frame-border='subtle'],
|
|
86
|
+
.a63-Frame-panel[data-frame-border='subtle'] {
|
|
87
|
+
/* prod: border-border/20 */
|
|
88
|
+
border-color: color-mix(in oklch, var(--a63-border-subtle) 20%, transparent);
|
|
89
|
+
}
|
|
90
|
+
.a63-Frame[data-frame-border='strong'],
|
|
91
|
+
.a63-Frame-panel[data-frame-border='strong'] {
|
|
92
|
+
border-color: var(--a63-border-subtle);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* ── Panel sub-parts (header / title / description / footer) ────────────── */
|
|
96
|
+
.a63-Frame-header {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: var(--a63-space-1);
|
|
100
|
+
padding: var(--a63-space-4) var(--a63-space-5);
|
|
101
|
+
}
|
|
102
|
+
.a63-Frame-title {
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
font-size: var(--a63-control-font-size-sm);
|
|
105
|
+
color: var(--a63-text-primary);
|
|
106
|
+
line-height: var(--typography-sm-line-height);
|
|
107
|
+
}
|
|
108
|
+
.a63-Frame-description {
|
|
109
|
+
font-size: var(--a63-control-font-size-sm);
|
|
110
|
+
color: var(--a63-text-secondary);
|
|
111
|
+
line-height: var(--typography-sm-line-height);
|
|
112
|
+
}
|
|
113
|
+
.a63-Frame-footer {
|
|
114
|
+
padding: var(--a63-space-4) var(--a63-space-5);
|
|
115
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* HoverCard recipe — the OVERLAY archetype (a hover-triggered preview popover),
|
|
3
|
+
* the overlay contract's consumer alongside the Select popup. Its elevation reads
|
|
4
|
+
* the --a63-overlay-shadow lever; bg (--a63-surface-overlay), border
|
|
5
|
+
* (--a63-border-subtle), radius (--radius-md to match prod @atom63/ui), stacking
|
|
6
|
+
* (--z-layer-popover) and entrance motion (--a63-control-feedback-*) resolve from
|
|
7
|
+
* semantics/foundation at the use-site.
|
|
8
|
+
*
|
|
9
|
+
* Open/close motion mirrors prod: fade + zoom (~0.95) with a short side-aware
|
|
10
|
+
* slide (slide-in-from-* equivalents).
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.a63-HoverCard-positioner {
|
|
14
|
+
z-index: var(--z-layer-popover, 999);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.a63-HoverCard-trigger {
|
|
18
|
+
touch-action: manipulation;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.a63-HoverCard-popup {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
width: 16rem;
|
|
24
|
+
max-width: min(
|
|
25
|
+
var(--available-width),
|
|
26
|
+
calc(
|
|
27
|
+
100dvw - var(--a63-safe-area-left, 0px) - var(--a63-safe-area-right, 0px) - 2 *
|
|
28
|
+
var(--a63-space-4)
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
max-height: min(var(--available-height), calc(var(--a63-viewport-height, 100vh) * 0.72));
|
|
32
|
+
overflow-y: auto;
|
|
33
|
+
overscroll-behavior: contain;
|
|
34
|
+
padding: var(--a63-space-4);
|
|
35
|
+
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
36
|
+
border-radius: var(--a63-overlay-radius, var(--radius-md));
|
|
37
|
+
background-color: var(--a63-surface-overlay);
|
|
38
|
+
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
39
|
+
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
40
|
+
backdrop-filter: var(--a63-overlay-backdrop);
|
|
41
|
+
box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
|
|
42
|
+
color: var(--a63-text-primary);
|
|
43
|
+
transform-origin: var(--transform-origin);
|
|
44
|
+
outline: none;
|
|
45
|
+
transition:
|
|
46
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
47
|
+
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.a63-HoverCard-popup[data-starting-style],
|
|
51
|
+
.a63-HoverCard-popup[data-ending-style] {
|
|
52
|
+
opacity: 0;
|
|
53
|
+
transform: scale(0.95);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.a63-HoverCard-popup[data-starting-style][data-side='bottom'],
|
|
57
|
+
.a63-HoverCard-popup[data-ending-style][data-side='bottom'] {
|
|
58
|
+
transform: translateY(-0.5rem) scale(0.95);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.a63-HoverCard-popup[data-starting-style][data-side='top'],
|
|
62
|
+
.a63-HoverCard-popup[data-ending-style][data-side='top'] {
|
|
63
|
+
transform: translateY(0.5rem) scale(0.95);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.a63-HoverCard-popup[data-starting-style][data-side='left'],
|
|
67
|
+
.a63-HoverCard-popup[data-ending-style][data-side='left'] {
|
|
68
|
+
transform: translateX(0.5rem) scale(0.95);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.a63-HoverCard-popup[data-starting-style][data-side='right'],
|
|
72
|
+
.a63-HoverCard-popup[data-ending-style][data-side='right'] {
|
|
73
|
+
transform: translateX(-0.5rem) scale(0.95);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
.a63-HoverCard-popup {
|
|
78
|
+
transition: none;
|
|
79
|
+
}
|
|
80
|
+
}
|