@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,437 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ConnectedPanel recipe — an expand/collapse surface whose collapsed pill morphs
|
|
3
|
+
* (width + corner radius, animated in JS via motion) into an expanded panel. The
|
|
4
|
+
* panel is in flow, so its frame consumes the SURFACE contract rather than the
|
|
5
|
+
* OVERLAY contract. Internal dividers read --a63-border-subtle/70. The radius
|
|
6
|
+
* morph uses local --connected-panel-* vars set inline by the component.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-ConnectedPanel {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
border: var(--a63-surface-border-width) var(--a63-surface-border-style) var(--a63-border-subtle);
|
|
17
|
+
border-radius: var(--connected-panel-collapsed-radius, var(--radius-lg));
|
|
18
|
+
background-color: var(--a63-surface-panel);
|
|
19
|
+
background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
|
|
20
|
+
background-blend-mode: normal, var(--a63-surface-texture-blend);
|
|
21
|
+
backdrop-filter: var(--a63-surface-backdrop);
|
|
22
|
+
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
|
|
23
|
+
color: var(--a63-text-primary);
|
|
24
|
+
transition:
|
|
25
|
+
border-color var(--connected-panel-transition-duration, 320ms)
|
|
26
|
+
var(--connected-panel-transition-ease, ease),
|
|
27
|
+
box-shadow var(--connected-panel-transition-duration, 320ms)
|
|
28
|
+
var(--connected-panel-transition-ease, ease);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.a63-ConnectedPanel-anchor {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.a63-ConnectedPanel-anchor[data-align='center'] {
|
|
37
|
+
justify-content: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.a63-ConnectedPanel-anchor[data-align='end'] {
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* A split trigger row keeps ButtonGroup's segmented interaction model while the
|
|
45
|
+
outer ConnectedPanel remains the single morphing surface. */
|
|
46
|
+
.a63-ConnectedPanel[data-variant='button-group'] {
|
|
47
|
+
--connected-panel-inner-radius: max(
|
|
48
|
+
0px,
|
|
49
|
+
calc(
|
|
50
|
+
var(--connected-panel-collapsed-radius, var(--radius-lg)) - var(--a63-surface-border-width)
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.a63-ConnectedPanel[data-variant='button-group']:not([data-open]) {
|
|
56
|
+
border-color: var(--a63-border-control);
|
|
57
|
+
background-color: var(--a63-surface-panel);
|
|
58
|
+
background-image: none;
|
|
59
|
+
box-shadow: var(--a63-control-shadow-flat, none);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.a63-ConnectedPanel[data-variant='button-group'][data-open] {
|
|
63
|
+
--connected-panel-inner-radius: max(
|
|
64
|
+
0px,
|
|
65
|
+
calc(
|
|
66
|
+
var(--connected-panel-expanded-radius, var(--radius-md)) - var(--a63-space-1) -
|
|
67
|
+
var(--a63-surface-border-width)
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
border-color: color-mix(in oklch, var(--a63-border-subtle) 55%, transparent);
|
|
72
|
+
background-color: var(--a63-surface-muted);
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.a63-ConnectedPanel[data-variant='button-group'] > .a63-ButtonGroup {
|
|
77
|
+
--button-group-radius: var(--connected-panel-inner-radius);
|
|
78
|
+
|
|
79
|
+
width: 100%;
|
|
80
|
+
max-width: none;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
overflow: visible;
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.a63-ConnectedPanel[data-variant='button-group'] > .a63-ButtonGroup > .a63-ConnectedPanel-trigger {
|
|
87
|
+
flex: 1;
|
|
88
|
+
width: auto;
|
|
89
|
+
border-inline-end: var(--a63-control-border-width) solid
|
|
90
|
+
color-mix(in oklch, var(--a63-segment-seam, var(--a63-border-subtle)) 45%, transparent);
|
|
91
|
+
transition:
|
|
92
|
+
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
93
|
+
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
94
|
+
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
95
|
+
color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
96
|
+
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.a63-ConnectedPanel[data-variant='button-group']:not([data-open])
|
|
100
|
+
> .a63-ButtonGroup
|
|
101
|
+
> [data-button] {
|
|
102
|
+
--button-background: var(--a63-surface-panel);
|
|
103
|
+
--button-border-color: var(--a63-border-control);
|
|
104
|
+
--button-foreground: var(--a63-text-primary);
|
|
105
|
+
--button-state-hover-background: color-mix(
|
|
106
|
+
in oklch,
|
|
107
|
+
var(--a63-surface-control-hover) 50%,
|
|
108
|
+
transparent
|
|
109
|
+
);
|
|
110
|
+
--button-state-hover-border-color: var(--a63-border-subtle);
|
|
111
|
+
--button-state-active-background: var(--button-state-hover-background);
|
|
112
|
+
--button-state-active-border-color: var(--button-state-hover-border-color);
|
|
113
|
+
|
|
114
|
+
background-color: var(--button-background);
|
|
115
|
+
background-image: none;
|
|
116
|
+
color: var(--button-foreground);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.a63-ConnectedPanel[data-variant='button-group']:not([data-open])
|
|
120
|
+
> .a63-ButtonGroup
|
|
121
|
+
> .a63-ConnectedPanel-trigger {
|
|
122
|
+
border-inline-end-color: color-mix(in oklch, var(--a63-border-control) 65%, transparent);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:is(.dark, [data-a63-mode='dark'])
|
|
126
|
+
.a63-ConnectedPanel[data-variant='button-group']:not([data-open])
|
|
127
|
+
> .a63-ButtonGroup
|
|
128
|
+
> [data-button] {
|
|
129
|
+
--button-background: color-mix(in oklch, var(--a63-border-control) 32%, transparent);
|
|
130
|
+
--button-state-hover-background: color-mix(in oklch, var(--a63-border-control) 64%, transparent);
|
|
131
|
+
--button-state-hover-border-color: var(--a63-border-control);
|
|
132
|
+
--button-state-active-background: var(--button-state-hover-background);
|
|
133
|
+
--button-state-active-border-color: var(--button-state-hover-border-color);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.a63-ConnectedPanel[data-variant='button-group']:not([data-open])
|
|
137
|
+
> .a63-ButtonGroup
|
|
138
|
+
> [data-button]:is(:hover, :active, [data-popup-open]):not(:disabled):not([data-disabled]) {
|
|
139
|
+
background-color: var(--button-state-hover-background);
|
|
140
|
+
background-image: none;
|
|
141
|
+
box-shadow: none;
|
|
142
|
+
color: var(--a63-text-primary);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.a63-ConnectedPanel[data-variant='button-group'] > .a63-ButtonGroup > [data-button] {
|
|
146
|
+
border-block-width: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.a63-ConnectedPanel[data-variant='button-group'] > .a63-ButtonGroup > [data-button]:first-child {
|
|
150
|
+
border-inline-start-width: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.a63-ConnectedPanel[data-variant='button-group'] > .a63-ButtonGroup > [data-button]:last-child {
|
|
154
|
+
border-inline-end-width: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ── Trigger ───────────────────────────────────────────────────────────────
|
|
158
|
+
* The Trigger IS a DS Button (variant="ghost"); this recipe flattens its chrome
|
|
159
|
+
* into the connected surface — square (radius 0), edge-to-edge (full width,
|
|
160
|
+
* justify-start), no gloss/shadow, compact control row — mirroring prod's inline
|
|
161
|
+
* className overrides on the Button while preserving endpoint minimum targets.
|
|
162
|
+
* The Button wraps its children in an inner
|
|
163
|
+
* .a63-Button-label span (data-slot="button-label"); the icon/text/chevron flex
|
|
164
|
+
* layout therefore lives on that wrapper, not the button root. */
|
|
165
|
+
|
|
166
|
+
.a63-ConnectedPanel-trigger {
|
|
167
|
+
--button-radius: 0px;
|
|
168
|
+
--button-shadow: 0 0 #0000;
|
|
169
|
+
--button-shadow-active: 0 0 #0000;
|
|
170
|
+
--button-tint-drop: 0 0 #0000;
|
|
171
|
+
--button-gloss: none;
|
|
172
|
+
--button-highlight: none;
|
|
173
|
+
/* A full-width panel row, not a compact control: the whole row is the target,
|
|
174
|
+
and the panel's `overflow: hidden` (for its rounded corners) clips the
|
|
175
|
+
button recipe's hit-area pseudo-element, so the row's own height has to
|
|
176
|
+
reach the floor. --a63-row-min-size is 44px on touch and equal to
|
|
177
|
+
--a63-control-min-size on fine pointers, so desktop is unchanged. */
|
|
178
|
+
--button-height: max(
|
|
179
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
180
|
+
var(--a63-row-min-size, var(--a63-control-min-size)),
|
|
181
|
+
var(--button-content-floor)
|
|
182
|
+
);
|
|
183
|
+
/* Matches `sm`, and must be restated: this rule REPLACES the button recipe's
|
|
184
|
+
own `--button-height`, so without carrying the content floor through, a
|
|
185
|
+
Button inside a ConnectedPanel would be the one place in the system that
|
|
186
|
+
can still end up shorter than its own label. */
|
|
187
|
+
--button-content-lh: var(--typography-xs-line-height);
|
|
188
|
+
--button-icon-size: var(--a63-control-icon-size-sm);
|
|
189
|
+
--button-padding-inline: 0;
|
|
190
|
+
/* prod's withMotion={false}: the trigger stays flat (no press dip). */
|
|
191
|
+
--button-motion-press: none;
|
|
192
|
+
|
|
193
|
+
position: relative;
|
|
194
|
+
justify-content: flex-start;
|
|
195
|
+
width: 100%;
|
|
196
|
+
min-width: 0;
|
|
197
|
+
padding-inline: var(--a63-space-3);
|
|
198
|
+
border: 0;
|
|
199
|
+
border-radius: 0;
|
|
200
|
+
background: transparent;
|
|
201
|
+
box-shadow: none;
|
|
202
|
+
color: var(--a63-text-primary);
|
|
203
|
+
font-size: var(--a63-control-font-size-sm);
|
|
204
|
+
text-align: start;
|
|
205
|
+
transition: background var(--connected-panel-transition-duration, 320ms)
|
|
206
|
+
var(--connected-panel-transition-ease, ease);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* The DS Button paints its gloss/reflection on ::after; suppress it so the ghost
|
|
210
|
+
trigger reads flat against the panel surface. ::before is NOT included: since
|
|
211
|
+
the button recipe moved its 44px interaction floor onto that pseudo-element,
|
|
212
|
+
hiding it would silently drop this trigger below the touch target. It paints
|
|
213
|
+
nothing, so there is nothing to suppress. */
|
|
214
|
+
.a63-ConnectedPanel-trigger::after {
|
|
215
|
+
display: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.a63-ConnectedPanel:not([data-variant='button-group']) > .a63-ConnectedPanel-trigger:hover {
|
|
219
|
+
background: color-mix(in oklch, var(--a63-surface-control-hover) 70%, transparent);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.a63-ConnectedPanel[data-variant='button-group'][data-open] > .a63-ButtonGroup > [data-button] {
|
|
223
|
+
--button-state-hover-background: color-mix(
|
|
224
|
+
in oklch,
|
|
225
|
+
var(--a63-surface-control-hover) 60%,
|
|
226
|
+
transparent
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
background-color: transparent;
|
|
230
|
+
background-image: none;
|
|
231
|
+
box-shadow: none;
|
|
232
|
+
color: var(--a63-text-secondary);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.a63-ConnectedPanel[data-variant='button-group'][data-open]
|
|
236
|
+
> .a63-ButtonGroup
|
|
237
|
+
> [data-button]:hover:not(:disabled):not([data-disabled]) {
|
|
238
|
+
background-color: color-mix(in oklch, var(--a63-surface-control-hover) 60%, transparent);
|
|
239
|
+
background-image: none;
|
|
240
|
+
box-shadow: none;
|
|
241
|
+
color: var(--a63-text-primary);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.a63-ConnectedPanel[data-variant='button-group'][data-open] > .a63-ButtonGroup > [data-popup-open] {
|
|
245
|
+
background-color: transparent;
|
|
246
|
+
background-image: none;
|
|
247
|
+
box-shadow: none;
|
|
248
|
+
color: var(--a63-text-secondary);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.a63-ConnectedPanel[data-variant='button-group']
|
|
252
|
+
> .a63-ButtonGroup
|
|
253
|
+
> [data-button]:active:not(:disabled):not([data-disabled]) {
|
|
254
|
+
background-color: var(--button-state-hover-background);
|
|
255
|
+
background-image: none;
|
|
256
|
+
box-shadow: none;
|
|
257
|
+
color: var(--a63-text-primary);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.a63-ConnectedPanel-trigger:focus-visible {
|
|
261
|
+
box-shadow: inset 0 0 0 var(--a63-control-focus-ring-width)
|
|
262
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* Icon / text / chevron row lives inside the Button's label wrapper. */
|
|
266
|
+
.a63-ConnectedPanel-trigger [data-slot='button-label'] {
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
justify-content: flex-start;
|
|
270
|
+
gap: var(--a63-space-2);
|
|
271
|
+
width: 100%;
|
|
272
|
+
min-width: 0;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.a63-ConnectedPanel-trigger-icon {
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
flex-shrink: 0;
|
|
278
|
+
color: var(--a63-text-secondary);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.a63-ConnectedPanel[data-variant='button-group']
|
|
282
|
+
.a63-ConnectedPanel-trigger
|
|
283
|
+
:is(.a63-ConnectedPanel-trigger-icon, .a63-ConnectedPanel-trigger-label) {
|
|
284
|
+
color: inherit;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.a63-ConnectedPanel-trigger-icon svg,
|
|
288
|
+
.a63-ConnectedPanel-trigger-chevron svg {
|
|
289
|
+
width: var(--button-icon-size);
|
|
290
|
+
height: var(--button-icon-size);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.a63-ConnectedPanel-trigger-text {
|
|
294
|
+
position: relative;
|
|
295
|
+
display: flex;
|
|
296
|
+
flex: 1;
|
|
297
|
+
align-items: center;
|
|
298
|
+
height: 1.25rem;
|
|
299
|
+
min-width: 0;
|
|
300
|
+
overflow: hidden;
|
|
301
|
+
text-align: start;
|
|
302
|
+
white-space: nowrap;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.a63-ConnectedPanel-trigger-text-inner {
|
|
306
|
+
position: absolute;
|
|
307
|
+
inset-inline: 0;
|
|
308
|
+
display: block;
|
|
309
|
+
min-width: 0;
|
|
310
|
+
overflow: hidden;
|
|
311
|
+
text-overflow: ellipsis;
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.a63-ConnectedPanel-trigger-label {
|
|
316
|
+
color: var(--a63-text-secondary);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.a63-ConnectedPanel-trigger-sep {
|
|
320
|
+
padding-inline: 0.375rem;
|
|
321
|
+
color: var(--a63-text-secondary);
|
|
322
|
+
opacity: 0.6;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.a63-ConnectedPanel-trigger-chevron {
|
|
326
|
+
display: inline-flex;
|
|
327
|
+
flex-shrink: 0;
|
|
328
|
+
color: var(--a63-text-secondary);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* ── Content ───────────────────────────────────────────────────────────── */
|
|
332
|
+
|
|
333
|
+
.a63-ConnectedPanel-content {
|
|
334
|
+
min-width: 0;
|
|
335
|
+
flex-shrink: 0;
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
border-top: 1px solid var(--a63-border-subtle);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.a63-ConnectedPanel-content[data-state='closed'] {
|
|
341
|
+
border-top-width: 0;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.a63-ConnectedPanel[data-variant='button-group'] > .a63-ConnectedPanel-content {
|
|
345
|
+
border-top-width: 0;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.a63-ConnectedPanel-content-clip {
|
|
349
|
+
box-sizing: border-box;
|
|
350
|
+
min-width: 0;
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.a63-ConnectedPanel-content-inner {
|
|
355
|
+
box-sizing: border-box;
|
|
356
|
+
min-width: 0;
|
|
357
|
+
overflow: hidden;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.a63-ConnectedPanel-content-inner[data-align='start'] {
|
|
361
|
+
transform-origin: top left;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.a63-ConnectedPanel-content-inner[data-align='center'] {
|
|
365
|
+
transform-origin: top;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.a63-ConnectedPanel-content-inner[data-align='end'] {
|
|
369
|
+
transform-origin: top right;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.a63-ConnectedPanel[data-variant='button-group']
|
|
373
|
+
> .a63-ConnectedPanel-content
|
|
374
|
+
> .a63-ConnectedPanel-content-clip
|
|
375
|
+
> .a63-ConnectedPanel-content-inner {
|
|
376
|
+
padding-block-start: var(--a63-space-1);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.a63-ConnectedPanel[data-variant='button-group']
|
|
380
|
+
> .a63-ConnectedPanel-content
|
|
381
|
+
> .a63-ConnectedPanel-content-clip
|
|
382
|
+
> .a63-ConnectedPanel-content-inner
|
|
383
|
+
> .a63-ConnectedPanel-body {
|
|
384
|
+
border-radius: var(--connected-panel-inner-radius);
|
|
385
|
+
background-color: var(--a63-surface-page);
|
|
386
|
+
box-shadow: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* ── Header / Title / Description ──────────────────────────────────────── */
|
|
390
|
+
|
|
391
|
+
.a63-ConnectedPanel-header {
|
|
392
|
+
display: flex;
|
|
393
|
+
flex-direction: column;
|
|
394
|
+
gap: var(--a63-space-1);
|
|
395
|
+
min-width: 0;
|
|
396
|
+
padding: var(--a63-space-3) var(--a63-space-4);
|
|
397
|
+
overflow: hidden;
|
|
398
|
+
border-bottom: 1px solid color-mix(in oklch, var(--a63-border-subtle) 70%, transparent);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.a63-ConnectedPanel-title {
|
|
402
|
+
min-width: 0;
|
|
403
|
+
overflow: hidden;
|
|
404
|
+
color: var(--a63-text-primary);
|
|
405
|
+
font-weight: 500;
|
|
406
|
+
font-size: var(--a63-control-font-size-sm);
|
|
407
|
+
text-overflow: ellipsis;
|
|
408
|
+
white-space: nowrap;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.a63-ConnectedPanel-description {
|
|
412
|
+
min-width: 0;
|
|
413
|
+
overflow: hidden;
|
|
414
|
+
color: var(--a63-text-secondary);
|
|
415
|
+
font-size: var(--a63-control-font-size-sm);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* ── Body / Footer ─────────────────────────────────────────────────────── */
|
|
419
|
+
|
|
420
|
+
.a63-ConnectedPanel-body {
|
|
421
|
+
min-width: 0;
|
|
422
|
+
flex-shrink: 0;
|
|
423
|
+
padding: var(--a63-space-3);
|
|
424
|
+
overflow: hidden;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.a63-ConnectedPanel-footer {
|
|
428
|
+
display: flex;
|
|
429
|
+
flex-shrink: 0;
|
|
430
|
+
align-items: center;
|
|
431
|
+
justify-content: flex-end;
|
|
432
|
+
gap: var(--a63-space-2);
|
|
433
|
+
min-width: 0;
|
|
434
|
+
padding: var(--a63-space-2) var(--a63-space-3);
|
|
435
|
+
overflow: hidden;
|
|
436
|
+
border-top: 1px solid color-mix(in oklch, var(--a63-border-subtle) 70%, transparent);
|
|
437
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CopyButton recipe — a DS Button whose copy/check states share one grid cell,
|
|
3
|
+
* scaling the glyph on hover/press of the whole button. Ported from prod
|
|
4
|
+
* @atom63/ui (Tailwind `group/copy` + `grid place-items-center` + the
|
|
5
|
+
* hover/active scale) onto a token-driven recipe. The Button chrome,
|
|
6
|
+
* dimensions, text size, gap, and icon size all come from `.a63-Button`.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* Keep both states in one cell so the wider label reserves the intrinsic width. */
|
|
10
|
+
.a63-CopyButton-swap {
|
|
11
|
+
display: grid;
|
|
12
|
+
place-items: center;
|
|
13
|
+
}
|
|
14
|
+
.a63-CopyButton-swap > * {
|
|
15
|
+
grid-area: 1 / 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
19
|
+
.a63-CopyButton-icon,
|
|
20
|
+
.a63-CopyButton-check {
|
|
21
|
+
transition: scale 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.a63-CopyButton:active :is(.a63-CopyButton-icon, .a63-CopyButton-check) {
|
|
25
|
+
scale: 0.98;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
|
|
30
|
+
.a63-CopyButton:hover :is(.a63-CopyButton-icon, .a63-CopyButton-check) {
|
|
31
|
+
scale: 1.02;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.a63-CopyButton-item {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
gap: var(--button-gap);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.a63-CopyButton-icon,
|
|
43
|
+
.a63-CopyButton-check {
|
|
44
|
+
display: block;
|
|
45
|
+
width: var(--button-icon-size);
|
|
46
|
+
height: var(--button-icon-size);
|
|
47
|
+
transform-origin: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Prod tinted the drawn check green-600; use the DS success semantic. */
|
|
51
|
+
.a63-CopyButton-check {
|
|
52
|
+
color: var(--a63-status-success);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.a63-CopyButton-check[data-animate='true'] .a63-AnimatedCheck-path {
|
|
56
|
+
animation-delay: 120ms;
|
|
57
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Dialog recipe — the OVERLAY archetype in its centered modal form. Faithful
|
|
3
|
+
* port of prod @atom63/ui dialog.tsx. Base UI sets data-open/data-closed +
|
|
4
|
+
* data-starting-style/data-ending-style on the Backdrop/Popup; the recipe keys
|
|
5
|
+
* its entrance/exit off those. Chrome reads a63 tokens: the popup is a raised
|
|
6
|
+
* overlay surface (--a63-surface-overlay + --a63-overlay-shadow +
|
|
7
|
+
* --a63-border-subtle), the backdrop scrim + stacking read the
|
|
8
|
+
* --z-layer-scrim / --z-layer-modal foundation. No new --a63-* tokens.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.a63-Dialog-backdrop {
|
|
12
|
+
position: fixed;
|
|
13
|
+
inset: 0;
|
|
14
|
+
z-index: var(--z-layer-scrim, 500);
|
|
15
|
+
background-color: var(--a63-scrim);
|
|
16
|
+
backdrop-filter: blur(4px);
|
|
17
|
+
transition:
|
|
18
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
19
|
+
backdrop-filter var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
20
|
+
}
|
|
21
|
+
.a63-Dialog-backdrop[data-starting-style],
|
|
22
|
+
.a63-Dialog-backdrop[data-ending-style] {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.a63-Dialog-viewport {
|
|
27
|
+
position: fixed;
|
|
28
|
+
inset: 0;
|
|
29
|
+
z-index: var(--z-layer-modal, 600);
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-rows: 1fr auto 3fr;
|
|
32
|
+
justify-items: center;
|
|
33
|
+
block-size: var(--a63-viewport-height, 100vh);
|
|
34
|
+
max-block-size: var(--a63-viewport-height, 100vh);
|
|
35
|
+
padding-block: max(var(--a63-space-4), var(--a63-safe-area-top, 0px))
|
|
36
|
+
max(var(--a63-space-4), var(--a63-safe-area-bottom, 0px));
|
|
37
|
+
padding-inline: max(var(--a63-space-4), var(--a63-safe-area-left, 0px))
|
|
38
|
+
max(var(--a63-space-4), var(--a63-safe-area-right, 0px));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.a63-Dialog-popup {
|
|
42
|
+
--dialog-close-size: max(
|
|
43
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
44
|
+
var(--a63-control-min-size)
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
position: relative;
|
|
48
|
+
grid-row-start: 2;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
width: 100%;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
max-width: 32rem;
|
|
54
|
+
max-height: 100%;
|
|
55
|
+
min-height: 0;
|
|
56
|
+
transform-origin: center;
|
|
57
|
+
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
58
|
+
border-radius: var(--a63-overlay-radius, var(--radius-2xl));
|
|
59
|
+
background-color: var(--a63-surface-overlay);
|
|
60
|
+
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
61
|
+
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
62
|
+
backdrop-filter: var(--a63-overlay-backdrop);
|
|
63
|
+
box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
|
|
64
|
+
color: var(--a63-text-primary);
|
|
65
|
+
outline: none;
|
|
66
|
+
transition:
|
|
67
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
68
|
+
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
69
|
+
}
|
|
70
|
+
.a63-Dialog-popup[data-size='sm'] {
|
|
71
|
+
max-width: 24rem;
|
|
72
|
+
}
|
|
73
|
+
.a63-Dialog-popup[data-size='lg'] {
|
|
74
|
+
max-width: 40rem;
|
|
75
|
+
}
|
|
76
|
+
.a63-Dialog-popup[data-starting-style],
|
|
77
|
+
.a63-Dialog-popup[data-ending-style] {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
transform: scale(0.98);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ── Mobile: stick the sheet to the bottom edge (prod bottomStickOnMobile) ── */
|
|
83
|
+
@media (max-width: 639px) {
|
|
84
|
+
.a63-Dialog-viewport[data-mobile-placement='bottom'] {
|
|
85
|
+
grid-template-rows: 1fr auto;
|
|
86
|
+
padding: max(3rem, var(--a63-safe-area-top, 0px)) 0 0;
|
|
87
|
+
}
|
|
88
|
+
.a63-Dialog-popup[data-stick-bottom] {
|
|
89
|
+
max-width: none;
|
|
90
|
+
transform-origin: bottom;
|
|
91
|
+
border-inline-width: 0;
|
|
92
|
+
border-block-end-width: 0;
|
|
93
|
+
border-radius: 0;
|
|
94
|
+
padding-bottom: var(--a63-safe-area-bottom, 0px);
|
|
95
|
+
}
|
|
96
|
+
.a63-Dialog-popup[data-stick-bottom][data-starting-style],
|
|
97
|
+
.a63-Dialog-popup[data-stick-bottom][data-ending-style] {
|
|
98
|
+
transform: translateY(1rem);
|
|
99
|
+
}
|
|
100
|
+
.a63-Dialog-footer > :where(button, [role='button']) {
|
|
101
|
+
width: 100%;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ── Close button ──────────────────────────────────────────────────────── */
|
|
106
|
+
.a63-Dialog-close-button {
|
|
107
|
+
position: absolute;
|
|
108
|
+
inset-inline-end: var(--a63-space-2);
|
|
109
|
+
top: var(--a63-space-2);
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
width: var(--dialog-close-size);
|
|
114
|
+
height: var(--dialog-close-size);
|
|
115
|
+
border: none;
|
|
116
|
+
border-radius: var(--a63-radius-control);
|
|
117
|
+
background: transparent;
|
|
118
|
+
color: var(--a63-text-secondary);
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
outline: none;
|
|
121
|
+
}
|
|
122
|
+
.a63-Dialog-close-button svg {
|
|
123
|
+
width: var(--a63-control-icon-size-sm);
|
|
124
|
+
height: var(--a63-control-icon-size-sm);
|
|
125
|
+
}
|
|
126
|
+
@media (hover: hover) {
|
|
127
|
+
.a63-Dialog-close-button:hover {
|
|
128
|
+
background: var(--a63-surface-control-hover);
|
|
129
|
+
color: var(--a63-text-primary);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
.a63-Dialog-close-button:focus-visible {
|
|
133
|
+
box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
|
|
134
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ── Header / footer / title / description / panel ─────────────────────── */
|
|
138
|
+
.a63-Dialog-header {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
gap: var(--a63-space-2);
|
|
142
|
+
padding: var(--a63-space-5);
|
|
143
|
+
}
|
|
144
|
+
.a63-Dialog-popup:has(.a63-Dialog-close-button) .a63-Dialog-header {
|
|
145
|
+
padding-inline-end: calc(var(--a63-space-4) + var(--dialog-close-size));
|
|
146
|
+
}
|
|
147
|
+
/* Collapse the header's bottom padding when a scrolling panel follows it
|
|
148
|
+
(prod in-[[data-slot=dialog-popup]:has([data-slot=dialog-panel])]:pb-3). */
|
|
149
|
+
.a63-Dialog-popup:has(.a63-Dialog-panel) .a63-Dialog-header {
|
|
150
|
+
padding-bottom: var(--a63-space-3);
|
|
151
|
+
}
|
|
152
|
+
@media (max-width: 639px) {
|
|
153
|
+
.a63-Dialog-header {
|
|
154
|
+
padding-bottom: var(--a63-space-4);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.a63-Dialog-footer {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column-reverse;
|
|
161
|
+
gap: var(--a63-space-2);
|
|
162
|
+
padding-inline: var(--a63-space-5);
|
|
163
|
+
}
|
|
164
|
+
.a63-Dialog-footer[data-variant='default'] {
|
|
165
|
+
padding-block: var(--a63-space-3);
|
|
166
|
+
border-top: var(--a63-control-border-width) solid var(--a63-border-subtle);
|
|
167
|
+
background: color-mix(in oklch, var(--a63-surface-muted) 72%, transparent);
|
|
168
|
+
}
|
|
169
|
+
.a63-Dialog-footer[data-variant='bare'] {
|
|
170
|
+
padding-top: var(--a63-space-3);
|
|
171
|
+
padding-bottom: var(--a63-space-5);
|
|
172
|
+
}
|
|
173
|
+
/* A bare footer sitting under a scrolling panel tightens its top padding
|
|
174
|
+
(prod bare-footer in-[…:has([data-slot=dialog-panel])]:pt-3). */
|
|
175
|
+
.a63-Dialog-popup:has(.a63-Dialog-panel) .a63-Dialog-footer[data-variant='bare'] {
|
|
176
|
+
padding-top: var(--a63-space-3);
|
|
177
|
+
}
|
|
178
|
+
@media (min-width: 640px) {
|
|
179
|
+
.a63-Dialog-footer {
|
|
180
|
+
flex-direction: row;
|
|
181
|
+
justify-content: flex-end;
|
|
182
|
+
border-end-start-radius: calc(var(--a63-overlay-radius, var(--radius-2xl)) - 1px);
|
|
183
|
+
border-end-end-radius: calc(var(--a63-overlay-radius, var(--radius-2xl)) - 1px);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.a63-Dialog-title {
|
|
188
|
+
font-weight: 600;
|
|
189
|
+
font-size: var(--typography-xl-font-size);
|
|
190
|
+
line-height: var(--typography-xl-line-height);
|
|
191
|
+
color: var(--a63-text-primary);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.a63-Dialog-description {
|
|
195
|
+
font-size: var(--a63-control-font-size-sm);
|
|
196
|
+
line-height: var(--typography-sm-line-height);
|
|
197
|
+
color: var(--a63-text-secondary);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.a63-Dialog-panel {
|
|
201
|
+
min-height: 0;
|
|
202
|
+
overflow-y: auto;
|
|
203
|
+
padding: var(--a63-space-5);
|
|
204
|
+
}
|
|
205
|
+
/* When the panel is composed with a header and/or a borderless (bare) footer,
|
|
206
|
+
collapse the abutting padding so sections don't double their gaps (prod
|
|
207
|
+
in-[…:has([data-slot=dialog-header])]:pt-1 /
|
|
208
|
+
in-[…:has([data-slot=dialog-footer]:not(.border-t))]:pb-1). */
|
|
209
|
+
.a63-Dialog-popup:has(.a63-Dialog-header) .a63-Dialog-panel {
|
|
210
|
+
padding-top: var(--a63-space-1);
|
|
211
|
+
}
|
|
212
|
+
.a63-Dialog-popup:has(.a63-Dialog-footer[data-variant='bare']) .a63-Dialog-panel {
|
|
213
|
+
padding-bottom: var(--a63-space-1);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
217
|
+
.a63-Dialog-backdrop,
|
|
218
|
+
.a63-Dialog-popup {
|
|
219
|
+
transition: none;
|
|
220
|
+
}
|
|
221
|
+
}
|