@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,416 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tabs recipe — a single-select tab set with a sliding active indicator
|
|
3
|
+
* (Base UI Tabs), faithful to prod @atom63/ui. Three variants:
|
|
4
|
+
* default — a recessed pill TRACK (--a63-surface-control + --a63-track-shadow)
|
|
5
|
+
* with a raised sliding pill (--a63-surface-overlay + control shadow),
|
|
6
|
+
* reusing the SegmentedControl/track vocabulary.
|
|
7
|
+
* underline— a flat row with a brand-accent underline bar as the indicator.
|
|
8
|
+
* attached — folder tabs (bordered pills on a muted surface, no indicator); the
|
|
9
|
+
* active tab rises onto the panel surface and merges into the body.
|
|
10
|
+
* Geometry reuses the --a63-control-* ramp; all fills are theme-overridden
|
|
11
|
+
* semantics, so the 4 themes restyle it for free. No new --a63-* tokens.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
.a63-Tabs {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: var(--a63-space-3);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.a63-Tabs[data-orientation='vertical'] {
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
gap: var(--a63-space-4);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── List (shell) ──────────────────────────────────────────────────────── */
|
|
27
|
+
|
|
28
|
+
.a63-Tabs-list {
|
|
29
|
+
/* Content floor — see button.css for the full rationale. The list is a SHELL
|
|
30
|
+
whose items sit inside `--tabs-inset`, but its floor uses the SAME pad as
|
|
31
|
+
every other control rather than the inset: keying it to the inset made the
|
|
32
|
+
list 4.5px taller than a Button or SegmentedControl beside it at
|
|
33
|
+
`large` x `compact` (35.59 vs 31.09), which is exactly the cross-component
|
|
34
|
+
misalignment the floor exists to prevent. SegmentedControl is the same
|
|
35
|
+
shape and uses the same formula. */
|
|
36
|
+
--tabs-content-lh: var(--typography-sm-line-height);
|
|
37
|
+
--tabs-content-floor: calc(var(--tabs-content-lh) + 2 * var(--a63-space-0_5));
|
|
38
|
+
--tabs-shell-floor: var(--tabs-content-floor);
|
|
39
|
+
--tabs-height: max(
|
|
40
|
+
calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
|
|
41
|
+
var(--a63-control-min-size),
|
|
42
|
+
var(--tabs-shell-floor)
|
|
43
|
+
);
|
|
44
|
+
--tabs-inset: var(--a63-space-0_5);
|
|
45
|
+
--tabs-radius: var(--a63-control-radius);
|
|
46
|
+
--tabs-active-radius: max(0px, calc(var(--tabs-radius) - var(--tabs-inset)));
|
|
47
|
+
--tabs-item-padding: var(--a63-control-padding-inline-md);
|
|
48
|
+
--tabs-font-size: var(--a63-control-font-size-md);
|
|
49
|
+
|
|
50
|
+
position: relative;
|
|
51
|
+
isolation: isolate;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
width: fit-content;
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
overflow-x: auto;
|
|
58
|
+
overscroll-behavior-inline: contain;
|
|
59
|
+
scrollbar-width: none;
|
|
60
|
+
scroll-snap-type: inline proximity;
|
|
61
|
+
touch-action: pan-x;
|
|
62
|
+
}
|
|
63
|
+
.a63-Tabs-list::-webkit-scrollbar {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.a63-Tabs-list[data-orientation='vertical'] {
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
align-items: stretch;
|
|
70
|
+
max-width: none;
|
|
71
|
+
overflow: visible;
|
|
72
|
+
scroll-snap-type: none;
|
|
73
|
+
touch-action: auto;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* default: quiet filled track with a raised active plate */
|
|
77
|
+
.a63-Tabs-list[data-variant='default'] {
|
|
78
|
+
gap: var(--a63-space-0_5);
|
|
79
|
+
height: var(--tabs-height);
|
|
80
|
+
padding: var(--tabs-inset);
|
|
81
|
+
border: 0;
|
|
82
|
+
border-radius: var(--tabs-radius);
|
|
83
|
+
background-color: var(--a63-surface-muted);
|
|
84
|
+
box-shadow: var(--a63-track-shadow);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* underline: a flat row with a bottom hairline */
|
|
88
|
+
.a63-Tabs-list[data-variant='underline'] {
|
|
89
|
+
gap: 0;
|
|
90
|
+
border-bottom: 1px solid var(--a63-border-subtle);
|
|
91
|
+
}
|
|
92
|
+
.a63-Tabs-list[data-variant='underline'][data-orientation='vertical'] {
|
|
93
|
+
border-bottom: 0;
|
|
94
|
+
border-inline-end: 1px solid var(--a63-border-subtle);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* attached: folder tabs that sit flush on a connected card panel below (ports
|
|
98
|
+
the legacy --theme-tabs-attached-* contract). The list touches the panel
|
|
99
|
+
(container gap 0) so the active tab can merge into it. */
|
|
100
|
+
.a63-Tabs-list[data-variant='attached'] {
|
|
101
|
+
gap: 0.125rem;
|
|
102
|
+
width: 100%;
|
|
103
|
+
justify-content: flex-start;
|
|
104
|
+
/* The tab strip sits directly above the panel. */
|
|
105
|
+
position: relative;
|
|
106
|
+
z-index: 1;
|
|
107
|
+
margin-bottom: 0;
|
|
108
|
+
}
|
|
109
|
+
.a63-Tabs:has(> .a63-Tabs-list[data-variant='attached']) {
|
|
110
|
+
gap: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* ── Tab (item) ────────────────────────────────────────────────────────── */
|
|
114
|
+
|
|
115
|
+
.a63-Tabs-tab {
|
|
116
|
+
/* Re-declared here, not just on the list: a `calc()` in a custom property
|
|
117
|
+
resolves on the element it is DECLARED on and then inherits as a resolved
|
|
118
|
+
value, so a `--tabs-content-lh` override on a standalone tab would never
|
|
119
|
+
reach a floor computed up on the list. Same rule as brand-derived tokens in
|
|
120
|
+
docs/design-system/personalization-axes.md — declare derived tokens on the
|
|
121
|
+
scope that changes them. */
|
|
122
|
+
--tabs-content-lh: var(--typography-sm-line-height);
|
|
123
|
+
--tabs-content-floor: calc(var(--tabs-content-lh) + 2 * var(--a63-space-0_5));
|
|
124
|
+
|
|
125
|
+
position: relative;
|
|
126
|
+
z-index: 1;
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
gap: var(--a63-control-gap);
|
|
133
|
+
min-width: var(--a63-control-min-target);
|
|
134
|
+
height: var(--tabs-height, 2.25rem);
|
|
135
|
+
padding-inline: var(--tabs-item-padding, var(--a63-control-padding-inline-md));
|
|
136
|
+
border: var(--a63-control-border-width) solid transparent;
|
|
137
|
+
border-radius: var(--tabs-active-radius, var(--a63-control-radius));
|
|
138
|
+
background: transparent;
|
|
139
|
+
color: var(--a63-text-secondary);
|
|
140
|
+
font-family: var(--a63-control-font-family);
|
|
141
|
+
font-size: var(--tabs-font-size, var(--a63-control-font-size-md));
|
|
142
|
+
font-weight: var(--a63-control-font-weight);
|
|
143
|
+
line-height: 1;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
appearance: none;
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
user-select: none;
|
|
148
|
+
outline: none;
|
|
149
|
+
transition:
|
|
150
|
+
color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
151
|
+
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
152
|
+
scroll-snap-align: start;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.a63-Tabs-list[data-variant='default'] .a63-Tabs-tab::after {
|
|
156
|
+
content: '';
|
|
157
|
+
position: absolute;
|
|
158
|
+
inset-block: calc(var(--tabs-inset) * -1);
|
|
159
|
+
inset-inline: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.a63-Tabs-list[data-orientation='vertical'] .a63-Tabs-tab {
|
|
163
|
+
justify-content: flex-start;
|
|
164
|
+
width: 100%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.a63-Tabs-tab svg {
|
|
168
|
+
flex-shrink: 0;
|
|
169
|
+
width: 1.05em;
|
|
170
|
+
height: 1.05em;
|
|
171
|
+
opacity: 0.7;
|
|
172
|
+
pointer-events: none;
|
|
173
|
+
}
|
|
174
|
+
.a63-Tabs-tab[data-active] svg {
|
|
175
|
+
opacity: 1;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Resting tabs lift their text on hover without introducing another plate. */
|
|
179
|
+
@media (hover: hover) {
|
|
180
|
+
.a63-Tabs-tab:hover:not([data-disabled]):not([data-active]) {
|
|
181
|
+
color: var(--a63-text-primary);
|
|
182
|
+
}
|
|
183
|
+
.a63-Tabs-list[data-variant='attached']
|
|
184
|
+
.a63-Tabs-tab:hover:not([data-disabled]):not([data-active]) {
|
|
185
|
+
background: color-mix(in oklch, var(--a63-surface-panel) 60%, var(--a63-surface-muted));
|
|
186
|
+
color: var(--a63-text-primary);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.a63-Tabs-tab[data-active] {
|
|
191
|
+
color: var(--a63-text-primary);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.a63-Tabs-tab:focus-visible {
|
|
195
|
+
box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
|
|
196
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.a63-Tabs-tab[data-disabled] {
|
|
200
|
+
cursor: not-allowed;
|
|
201
|
+
opacity: 0.56;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* default: pill items must fit INSIDE the padded track (height − 2×inset) so
|
|
205
|
+
the raised sliding indicator insets evenly on all four sides. Without this
|
|
206
|
+
the tab takes the full track height and overflows the top/bottom inset. */
|
|
207
|
+
.a63-Tabs-list[data-variant='default'] .a63-Tabs-tab {
|
|
208
|
+
height: calc(var(--tabs-height) - 2 * var(--tabs-inset));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* underline: transparent items, active reads primary text */
|
|
212
|
+
.a63-Tabs-list[data-variant='underline'] .a63-Tabs-tab {
|
|
213
|
+
height: auto;
|
|
214
|
+
min-height: var(--tabs-height);
|
|
215
|
+
padding: var(--a63-space-2) var(--tabs-item-padding);
|
|
216
|
+
border-radius: 0;
|
|
217
|
+
}
|
|
218
|
+
@media (hover: hover) {
|
|
219
|
+
.a63-Tabs-list[data-variant='underline'] .a63-Tabs-tab:hover:not([data-disabled]) {
|
|
220
|
+
color: var(--a63-text-primary);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
.a63-Tabs-list[data-variant='underline'] .a63-Tabs-tab[data-active] {
|
|
224
|
+
color: var(--a63-text-primary);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* every attached tab is a folder pill: top-rounded, bordered, on a muted
|
|
228
|
+
surface (legacy --theme-tabs-attached-inactive-*). */
|
|
229
|
+
.a63-Tabs-list[data-variant='attached'] .a63-Tabs-tab {
|
|
230
|
+
min-height: var(--tabs-height);
|
|
231
|
+
border-radius: var(--radius-md) var(--radius-md) 0 0;
|
|
232
|
+
border-color: var(--a63-border-subtle);
|
|
233
|
+
background: var(--a63-surface-muted);
|
|
234
|
+
}
|
|
235
|
+
/* The active tab uses the primary gel treatment and connects to the accent edge
|
|
236
|
+
of the panel below. */
|
|
237
|
+
.a63-Tabs-list[data-variant='attached'] .a63-Tabs-tab[data-active] {
|
|
238
|
+
border-color: var(--a63-action-primary);
|
|
239
|
+
background-color: var(--a63-action-primary);
|
|
240
|
+
background-image: var(--a63-control-gloss);
|
|
241
|
+
box-shadow: var(--a63-control-shadow);
|
|
242
|
+
color: var(--a63-action-primary-foreground);
|
|
243
|
+
font-weight: 600;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* ── Sliding indicator ─────────────────────────────────────────────────── */
|
|
247
|
+
|
|
248
|
+
.a63-Tabs-indicator {
|
|
249
|
+
position: absolute;
|
|
250
|
+
z-index: 0;
|
|
251
|
+
box-sizing: border-box;
|
|
252
|
+
pointer-events: none;
|
|
253
|
+
transition:
|
|
254
|
+
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
255
|
+
width var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
256
|
+
height var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* default: raised pill sliding under the active tab */
|
|
260
|
+
.a63-Tabs-list[data-variant='default'] .a63-Tabs-indicator {
|
|
261
|
+
top: 50%;
|
|
262
|
+
left: 0;
|
|
263
|
+
width: var(--active-tab-width);
|
|
264
|
+
height: var(--active-tab-height);
|
|
265
|
+
border-radius: var(--tabs-active-radius);
|
|
266
|
+
background: var(--a63-surface-overlay);
|
|
267
|
+
box-shadow: var(--a63-control-shadow);
|
|
268
|
+
transform: translateX(var(--active-tab-left)) translateY(-50%);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* underline: a brand-accent bar pinned to the bottom edge */
|
|
272
|
+
.a63-Tabs-list[data-variant='underline'] .a63-Tabs-indicator {
|
|
273
|
+
bottom: -1px;
|
|
274
|
+
left: 0;
|
|
275
|
+
width: var(--active-tab-width);
|
|
276
|
+
height: 2px;
|
|
277
|
+
border-radius: var(--radius-full);
|
|
278
|
+
background: var(--a63-action-primary);
|
|
279
|
+
transform: translateX(var(--active-tab-left));
|
|
280
|
+
}
|
|
281
|
+
.a63-Tabs-list[data-variant='underline'][data-orientation='vertical'] .a63-Tabs-indicator {
|
|
282
|
+
inset-inline-end: -1px;
|
|
283
|
+
bottom: auto;
|
|
284
|
+
top: 0;
|
|
285
|
+
width: 2px;
|
|
286
|
+
height: var(--active-tab-height);
|
|
287
|
+
transform: translateY(var(--active-tab-top));
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* ── Panel ─────────────────────────────────────────────────────────────── */
|
|
291
|
+
|
|
292
|
+
.a63-Tabs-panel {
|
|
293
|
+
flex: 1;
|
|
294
|
+
outline: none;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* attached: the panel is the folder BODY — a card surface bordered on all sides
|
|
298
|
+
with rounded bottom corners; its flat top edge meets the tab row above, and
|
|
299
|
+
the active tab merges into it. (Legacy --theme-tabs-attached-panel-* contract.)
|
|
300
|
+
Matched via :has() so it reaches the panel through ANY nesting (scroll areas,
|
|
301
|
+
wrappers) — Base UI keeps the panels as siblings of the list, so a sibling
|
|
302
|
+
selector can't. No consumer opt-in, no component change. */
|
|
303
|
+
.a63-Tabs:has(.a63-Tabs-list[data-variant='attached']) .a63-Tabs-panel {
|
|
304
|
+
padding: var(--a63-space-4);
|
|
305
|
+
border: var(--a63-surface-border-width) var(--a63-surface-border-style) var(--a63-border-subtle);
|
|
306
|
+
/* Accent seam bar: the panel's top edge is the brand-accent connector the tab
|
|
307
|
+
strip sits on — the active primary tab flows into it, inactive tabs sit above
|
|
308
|
+
it, and it shows through the tab gaps as one continuous line. No tab overlap,
|
|
309
|
+
so it stays a clean line between the tabs and the content (not crossing them). */
|
|
310
|
+
border-top: 2px solid var(--a63-action-primary);
|
|
311
|
+
border-radius: var(--a63-surface-radius, 0 0 var(--radius-md) var(--radius-md));
|
|
312
|
+
background-color: var(--a63-surface-panel);
|
|
313
|
+
background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
|
|
314
|
+
background-blend-mode: normal, var(--a63-surface-texture-blend);
|
|
315
|
+
backdrop-filter: var(--a63-surface-backdrop);
|
|
316
|
+
/* Read the surface contract's flush/lift/bevel lever so the folder body gets
|
|
317
|
+
each theme's static-surface treatment (like Card/Frame), not a flat box. */
|
|
318
|
+
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.a63-Tabs-panel[data-animated] {
|
|
322
|
+
animation: a63-tabs-panel-in var(--duration-normal) var(--a63-control-feedback-ease);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@keyframes a63-tabs-panel-in {
|
|
326
|
+
from {
|
|
327
|
+
opacity: 0;
|
|
328
|
+
transform: translateY(0.25rem);
|
|
329
|
+
}
|
|
330
|
+
to {
|
|
331
|
+
opacity: 1;
|
|
332
|
+
transform: translateY(0);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* ── Sizes (reuse the control ramp) ────────────────────────────────────── */
|
|
337
|
+
|
|
338
|
+
.a63-Tabs-list[data-size='xs'] {
|
|
339
|
+
--tabs-content-lh: var(--typography-xs-line-height);
|
|
340
|
+
--tabs-height: max(
|
|
341
|
+
calc(var(--a63-control-height-xs) * var(--a63-density-scale, 1)),
|
|
342
|
+
var(--a63-control-min-size),
|
|
343
|
+
var(--tabs-shell-floor)
|
|
344
|
+
);
|
|
345
|
+
--tabs-inset: 2px;
|
|
346
|
+
--tabs-item-padding: var(--a63-control-padding-inline-sm);
|
|
347
|
+
--tabs-font-size: var(--a63-control-font-size-xs);
|
|
348
|
+
}
|
|
349
|
+
.a63-Tabs-tab[data-size='xs'] {
|
|
350
|
+
--tabs-content-lh: var(--typography-xs-line-height);
|
|
351
|
+
--tabs-height: max(
|
|
352
|
+
calc(var(--a63-control-height-xs) * var(--a63-density-scale, 1)),
|
|
353
|
+
var(--a63-control-min-size),
|
|
354
|
+
var(--tabs-content-floor)
|
|
355
|
+
);
|
|
356
|
+
--tabs-item-padding: var(--a63-control-padding-inline-sm);
|
|
357
|
+
--tabs-font-size: var(--a63-control-font-size-xs);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.a63-Tabs-list[data-size='sm'] {
|
|
361
|
+
--tabs-content-lh: var(--typography-xs-line-height);
|
|
362
|
+
--tabs-height: max(
|
|
363
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
364
|
+
var(--a63-control-min-size),
|
|
365
|
+
var(--tabs-shell-floor)
|
|
366
|
+
);
|
|
367
|
+
--tabs-inset: 2px;
|
|
368
|
+
--tabs-item-padding: var(--a63-control-padding-inline-sm);
|
|
369
|
+
--tabs-font-size: var(--a63-control-font-size-sm);
|
|
370
|
+
}
|
|
371
|
+
.a63-Tabs-tab[data-size='sm'] {
|
|
372
|
+
--tabs-content-lh: var(--typography-xs-line-height);
|
|
373
|
+
--tabs-height: max(
|
|
374
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
375
|
+
var(--a63-control-min-size),
|
|
376
|
+
var(--tabs-content-floor)
|
|
377
|
+
);
|
|
378
|
+
--tabs-item-padding: var(--a63-control-padding-inline-sm);
|
|
379
|
+
--tabs-font-size: var(--a63-control-font-size-sm);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.a63-Tabs-list[data-size='lg'] {
|
|
383
|
+
--tabs-content-lh: var(--typography-base-line-height);
|
|
384
|
+
--tabs-height: max(
|
|
385
|
+
calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
|
|
386
|
+
var(--a63-control-min-size-lg, var(--a63-control-min-size)),
|
|
387
|
+
var(--tabs-shell-floor)
|
|
388
|
+
);
|
|
389
|
+
--tabs-inset: 4px;
|
|
390
|
+
--tabs-item-padding: var(--a63-control-padding-inline-lg);
|
|
391
|
+
--tabs-font-size: var(--a63-control-font-size-lg);
|
|
392
|
+
}
|
|
393
|
+
.a63-Tabs-list[data-size='lg'] .a63-Tabs-tab {
|
|
394
|
+
min-width: var(--a63-control-min-target-lg, var(--a63-control-min-target));
|
|
395
|
+
}
|
|
396
|
+
.a63-Tabs-tab[data-size='lg'] {
|
|
397
|
+
--tabs-content-lh: var(--typography-base-line-height);
|
|
398
|
+
--tabs-height: max(
|
|
399
|
+
calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
|
|
400
|
+
var(--a63-control-min-size-lg, var(--a63-control-min-size)),
|
|
401
|
+
var(--tabs-content-floor)
|
|
402
|
+
);
|
|
403
|
+
--tabs-item-padding: var(--a63-control-padding-inline-lg);
|
|
404
|
+
--tabs-font-size: var(--a63-control-font-size-lg);
|
|
405
|
+
min-width: var(--a63-control-min-target-lg, var(--a63-control-min-target));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@media (prefers-reduced-motion: reduce) {
|
|
409
|
+
.a63-Tabs-tab,
|
|
410
|
+
.a63-Tabs-indicator {
|
|
411
|
+
transition: none;
|
|
412
|
+
}
|
|
413
|
+
.a63-Tabs-panel[data-animated] {
|
|
414
|
+
animation: none;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* TextTicker recipe — an overflow-aware, optionally-marquee text line. A faithful
|
|
3
|
+
* port of the production text-ticker: the container clips + fades its edges only
|
|
4
|
+
* while active, a static truncated copy sits under a scrolling marquee layer that
|
|
5
|
+
* cross-fades in on hover/focus (or always, when [data-autoplay]). The gap +
|
|
6
|
+
* timing come from per-instance custom props set on the element. No new tokens.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-TextTicker {
|
|
10
|
+
display: block;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.a63-TextTicker--marquee {
|
|
19
|
+
--a63-text-ticker-gap: 1.5rem;
|
|
20
|
+
--a63-text-ticker-mask-size: 1rem;
|
|
21
|
+
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Edge fade — only while the marquee is active (overflowing + hover/focus/auto). */
|
|
26
|
+
.a63-TextTicker--marquee[data-overflowing][data-autoplay],
|
|
27
|
+
.a63-TextTicker--marquee[data-overflowing]:hover,
|
|
28
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-visible,
|
|
29
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-within {
|
|
30
|
+
mask-image: linear-gradient(
|
|
31
|
+
to right,
|
|
32
|
+
transparent,
|
|
33
|
+
black var(--a63-text-ticker-mask-size),
|
|
34
|
+
black calc(100% - var(--a63-text-ticker-mask-size)),
|
|
35
|
+
transparent
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Hidden probe used to measure the natural content width against the container. */
|
|
40
|
+
.a63-TextTicker-measure {
|
|
41
|
+
position: absolute;
|
|
42
|
+
height: 0;
|
|
43
|
+
max-width: none;
|
|
44
|
+
overflow: visible;
|
|
45
|
+
visibility: hidden;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Static truncated copy — the resting state. */
|
|
51
|
+
.a63-TextTicker-content {
|
|
52
|
+
display: block;
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
transition: opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.a63-TextTicker--marquee[data-overflowing]:hover .a63-TextTicker-content,
|
|
62
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-within .a63-TextTicker-content,
|
|
63
|
+
.a63-TextTicker--marquee[data-overflowing][data-autoplay] .a63-TextTicker-content {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Scrolling layer — cross-fades in over the static copy. */
|
|
68
|
+
.a63-TextTicker-marqueeLayer {
|
|
69
|
+
position: absolute;
|
|
70
|
+
inset: 0;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
opacity: 0;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
transition: opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.a63-TextTicker--marquee[data-overflowing]:hover .a63-TextTicker-marqueeLayer,
|
|
79
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-within .a63-TextTicker-marqueeLayer,
|
|
80
|
+
.a63-TextTicker--marquee[data-overflowing][data-autoplay] .a63-TextTicker-marqueeLayer {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.a63-TextTicker-marqueeTrack {
|
|
85
|
+
display: flex;
|
|
86
|
+
width: max-content;
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
align-items: center;
|
|
89
|
+
transform: translateX(0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.a63-TextTicker-marqueeCopy {
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.a63-TextTicker-marqueeCopy + .a63-TextTicker-marqueeCopy {
|
|
97
|
+
margin-inline-start: var(--a63-text-ticker-gap);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Animate the track only while active — same activation selectors as the fade. */
|
|
101
|
+
.a63-TextTicker--marquee[data-overflowing][data-autoplay] .a63-TextTicker-marqueeTrack,
|
|
102
|
+
.a63-TextTicker--marquee[data-overflowing]:hover .a63-TextTicker-marqueeTrack,
|
|
103
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-visible .a63-TextTicker-marqueeTrack,
|
|
104
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-within .a63-TextTicker-marqueeTrack {
|
|
105
|
+
animation: a63-text-ticker-marquee var(--a63-text-ticker-duration, 24s) linear
|
|
106
|
+
var(--a63-text-ticker-delay, 0ms) infinite;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes a63-text-ticker-marquee {
|
|
110
|
+
0% {
|
|
111
|
+
transform: translateX(0);
|
|
112
|
+
}
|
|
113
|
+
100% {
|
|
114
|
+
transform: translateX(calc(-50% - var(--a63-text-ticker-gap) / 2));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion: reduce) {
|
|
119
|
+
/* Match the activation selectors' specificity so this wins without !important. */
|
|
120
|
+
.a63-TextTicker--marquee[data-overflowing][data-autoplay] .a63-TextTicker-marqueeTrack,
|
|
121
|
+
.a63-TextTicker--marquee[data-overflowing]:hover .a63-TextTicker-marqueeTrack,
|
|
122
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-visible .a63-TextTicker-marqueeTrack,
|
|
123
|
+
.a63-TextTicker--marquee[data-overflowing]:focus-within .a63-TextTicker-marqueeTrack {
|
|
124
|
+
animation: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* With motion off, keep the static copy legible and hide the marquee layer. */
|
|
128
|
+
.a63-TextTicker--marquee[data-overflowing][data-autoplay] .a63-TextTicker-content {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}
|
|
131
|
+
.a63-TextTicker--marquee[data-overflowing][data-autoplay] .a63-TextTicker-marqueeLayer {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.a63-TextTicker-content,
|
|
136
|
+
.a63-TextTicker-marqueeLayer {
|
|
137
|
+
transition: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Textarea recipe — the multiline RECESSED control, the inset counterpart to the
|
|
3
|
+
* raised Button and the block sibling of Input. Faithful to prod @atom63/ui
|
|
4
|
+
* textarea.tsx (two-part anatomy, field-sizing:content auto-grow, min-height),
|
|
5
|
+
* but the chrome resolves from --a63-* field tokens at the use-site (so mode /
|
|
6
|
+
* theme / brand reshape it) exactly like .a63-Input.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-Textarea:not([data-unstyled]) {
|
|
10
|
+
/* Resolve the axis-dependent tokens HERE (the use-site), not at :root, so their
|
|
11
|
+
var()s pick up the field's own mode/theme/brand (the resolve-at-declaration
|
|
12
|
+
trap). Mirrors .a63-Input. */
|
|
13
|
+
--field-background: var(--a63-field-background, var(--a63-surface-control));
|
|
14
|
+
--field-border: var(--a63-field-border, var(--a63-border-control));
|
|
15
|
+
--field-radius: var(--a63-field-radius, var(--a63-control-radius));
|
|
16
|
+
--field-shadow: var(--a63-field-shadow);
|
|
17
|
+
--field-focus-ring: var(--a63-field-focus-ring, var(--a63-focus-ring));
|
|
18
|
+
--field-focus-border: var(
|
|
19
|
+
--a63-field-focus-border,
|
|
20
|
+
color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-control))
|
|
21
|
+
);
|
|
22
|
+
--field-padding-inline: var(--a63-control-padding-inline-md);
|
|
23
|
+
--field-padding-block: var(--a63-space-2, 0.5rem);
|
|
24
|
+
--field-font-size: var(--a63-control-font-size-md);
|
|
25
|
+
--field-min-height: calc(var(--a63-control-height-md) + var(--a63-space-6, 1.5rem));
|
|
26
|
+
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
width: 100%;
|
|
30
|
+
padding: var(--field-padding-block) var(--field-padding-inline);
|
|
31
|
+
border: var(--a63-control-border-width) solid var(--field-border);
|
|
32
|
+
border-radius: var(--field-radius);
|
|
33
|
+
background-color: var(--field-background);
|
|
34
|
+
box-shadow: var(--field-shadow);
|
|
35
|
+
color: var(--a63-text-primary);
|
|
36
|
+
font-family: var(--a63-control-font-family);
|
|
37
|
+
font-size: max(var(--field-font-size), var(--a63-editable-font-size-min, 0px));
|
|
38
|
+
cursor: text;
|
|
39
|
+
transition:
|
|
40
|
+
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
41
|
+
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Chrome-less field for nesting: the wrapper collapses so the inner <textarea>
|
|
45
|
+
participates directly in the parent's layout. */
|
|
46
|
+
.a63-Textarea[data-unstyled] {
|
|
47
|
+
display: contents;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.a63-Textarea-field {
|
|
51
|
+
flex: 1 1 auto;
|
|
52
|
+
field-sizing: content;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
min-height: var(--field-min-height);
|
|
55
|
+
width: 100%;
|
|
56
|
+
padding: 0;
|
|
57
|
+
border: none;
|
|
58
|
+
background: transparent;
|
|
59
|
+
color: inherit;
|
|
60
|
+
font: inherit;
|
|
61
|
+
letter-spacing: inherit;
|
|
62
|
+
line-height: 1.4;
|
|
63
|
+
resize: vertical;
|
|
64
|
+
outline: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.a63-Textarea-field::placeholder {
|
|
68
|
+
color: var(--a63-text-secondary);
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ── States ────────────────────────────────────────────────────────────── */
|
|
73
|
+
|
|
74
|
+
.a63-Textarea:not([data-unstyled]):hover {
|
|
75
|
+
border-color: color-mix(in oklch, var(--field-border), var(--a63-text-primary) 18%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.a63-Textarea:not([data-unstyled]):focus-within {
|
|
79
|
+
border-color: var(--field-focus-border);
|
|
80
|
+
box-shadow:
|
|
81
|
+
var(--field-shadow),
|
|
82
|
+
0 0 0 var(--a63-control-focus-ring-width) var(--field-focus-ring);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.a63-Textarea[data-invalid] {
|
|
86
|
+
--field-border: color-mix(in oklch, var(--a63-action-danger) 62%, transparent);
|
|
87
|
+
--field-focus-border: var(--a63-action-danger);
|
|
88
|
+
--field-focus-ring: color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.a63-Textarea[data-shadow='false'] {
|
|
92
|
+
--field-shadow: 0 0 #0000;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.a63-Textarea[data-disabled] {
|
|
96
|
+
cursor: not-allowed;
|
|
97
|
+
opacity: 0.56;
|
|
98
|
+
}
|
|
99
|
+
.a63-Textarea[data-disabled] .a63-Textarea-field {
|
|
100
|
+
cursor: not-allowed;
|
|
101
|
+
resize: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.a63-Textarea[data-size='sm']:not([data-unstyled]) {
|
|
105
|
+
--field-padding-inline: var(--a63-control-padding-inline-sm);
|
|
106
|
+
--field-padding-block: var(--a63-space-1_5, 0.375rem);
|
|
107
|
+
--field-font-size: var(--a63-control-font-size-sm);
|
|
108
|
+
--field-min-height: calc(var(--a63-control-height-sm) + var(--a63-space-5, 1.25rem));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.a63-Textarea[data-size='lg']:not([data-unstyled]) {
|
|
112
|
+
--field-padding-inline: var(--a63-control-padding-inline-lg);
|
|
113
|
+
--field-padding-block: var(--a63-space-2_5, 0.625rem);
|
|
114
|
+
--field-font-size: var(--a63-control-font-size-lg);
|
|
115
|
+
--field-min-height: calc(var(--a63-control-height-lg) + var(--a63-space-6, 1.5rem));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion: reduce) {
|
|
119
|
+
.a63-Textarea:not([data-unstyled]) {
|
|
120
|
+
transition: none;
|
|
121
|
+
}
|
|
122
|
+
}
|