@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,240 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Autocomplete recipe — field input + menu-backed suggestion popup.
|
|
3
|
+
*
|
|
4
|
+
* Popup chrome is the shared MENU recipe (`.a63-Menu-popup` on the surface;
|
|
5
|
+
* `.a63-Menu-item` / label / separator on rows). Autocomplete keeps only
|
|
6
|
+
* structural deltas: field input, ScrollArea list, empty/status copy.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-Autocomplete-input-group {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
width: 100%;
|
|
13
|
+
color: var(--a63-text-primary);
|
|
14
|
+
font-family: var(--a63-control-font-family);
|
|
15
|
+
}
|
|
16
|
+
.a63-Autocomplete-input-group:has(:disabled) {
|
|
17
|
+
opacity: 0.64;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* ── Input (field) ─────────────────────────────────────────────────────── */
|
|
21
|
+
|
|
22
|
+
.a63-Autocomplete-input {
|
|
23
|
+
/* Content floor — see button.css. */
|
|
24
|
+
--autocomplete-content-lh: var(--typography-sm-line-height);
|
|
25
|
+
--autocomplete-content-floor: calc(var(--autocomplete-content-lh) + 2 * var(--a63-space-0_5));
|
|
26
|
+
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: max(
|
|
30
|
+
calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
|
|
31
|
+
var(--a63-control-min-size),
|
|
32
|
+
var(--autocomplete-content-floor)
|
|
33
|
+
);
|
|
34
|
+
padding-inline: var(--a63-control-padding-inline-md);
|
|
35
|
+
border: var(--a63-control-border-width) solid var(--a63-border-control);
|
|
36
|
+
border-radius: var(--a63-control-radius);
|
|
37
|
+
background: var(--a63-surface-control);
|
|
38
|
+
box-shadow: var(--a63-field-shadow);
|
|
39
|
+
color: inherit;
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
font-size: max(var(--a63-control-font-size-md), var(--a63-editable-font-size-min, 0px));
|
|
42
|
+
line-height: 1;
|
|
43
|
+
appearance: none;
|
|
44
|
+
outline: none;
|
|
45
|
+
transition:
|
|
46
|
+
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
47
|
+
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.a63-Autocomplete-input::placeholder {
|
|
51
|
+
color: var(--a63-text-secondary);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.a63-Autocomplete-input:focus-visible {
|
|
55
|
+
border-color: var(--a63-action-primary);
|
|
56
|
+
box-shadow:
|
|
57
|
+
var(--a63-field-shadow),
|
|
58
|
+
0 0 0 var(--a63-control-focus-ring-width)
|
|
59
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.a63-Autocomplete-input[data-has-start-addon] {
|
|
63
|
+
padding-inline-start: 2.25rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* trailing adornment reserves room */
|
|
67
|
+
.a63-Autocomplete-input-group:has(.a63-Autocomplete-adornment) .a63-Autocomplete-input {
|
|
68
|
+
padding-inline-end: 2rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.a63-Autocomplete-input-group[data-size='sm'] .a63-Autocomplete-input {
|
|
72
|
+
--autocomplete-content-lh: var(--typography-xs-line-height);
|
|
73
|
+
height: max(
|
|
74
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
75
|
+
var(--a63-control-min-size),
|
|
76
|
+
var(--autocomplete-content-floor)
|
|
77
|
+
);
|
|
78
|
+
padding-inline: var(--a63-control-padding-inline-sm);
|
|
79
|
+
font-size: max(var(--a63-control-font-size-sm), var(--a63-editable-font-size-min, 0px));
|
|
80
|
+
}
|
|
81
|
+
.a63-Autocomplete-input-group[data-size='lg'] .a63-Autocomplete-input {
|
|
82
|
+
--autocomplete-content-lh: var(--typography-base-line-height);
|
|
83
|
+
height: max(
|
|
84
|
+
calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
|
|
85
|
+
var(--a63-control-min-size-lg, var(--a63-control-min-size)),
|
|
86
|
+
var(--autocomplete-content-floor)
|
|
87
|
+
);
|
|
88
|
+
padding-inline: var(--a63-control-padding-inline-lg);
|
|
89
|
+
font-size: max(var(--a63-control-font-size-lg), var(--a63-editable-font-size-min, 0px));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* ── Addons (start icon, trigger, clear) ───────────────────────────────── */
|
|
93
|
+
|
|
94
|
+
.a63-Autocomplete-start-addon {
|
|
95
|
+
position: absolute;
|
|
96
|
+
inset-block: 0;
|
|
97
|
+
inset-inline-start: 0.625rem;
|
|
98
|
+
z-index: var(--z-layer-base, 1);
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
color: var(--a63-text-secondary);
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
.a63-Autocomplete-start-addon svg {
|
|
105
|
+
width: 1.125rem;
|
|
106
|
+
height: 1.125rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.a63-Autocomplete-adornment {
|
|
110
|
+
position: absolute;
|
|
111
|
+
inset-inline-end: 0.125rem;
|
|
112
|
+
top: 50%;
|
|
113
|
+
translate: 0 -50%;
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
width: max(
|
|
119
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
120
|
+
var(--a63-control-min-size)
|
|
121
|
+
);
|
|
122
|
+
height: max(
|
|
123
|
+
calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
|
|
124
|
+
var(--a63-control-min-size)
|
|
125
|
+
);
|
|
126
|
+
border: 1px solid transparent;
|
|
127
|
+
border-radius: var(--radius-md);
|
|
128
|
+
background: transparent;
|
|
129
|
+
color: var(--a63-text-secondary);
|
|
130
|
+
opacity: 0.8;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
outline: none;
|
|
133
|
+
transition:
|
|
134
|
+
color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
135
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
136
|
+
}
|
|
137
|
+
.a63-Autocomplete-adornment:hover {
|
|
138
|
+
opacity: 1;
|
|
139
|
+
}
|
|
140
|
+
.a63-Autocomplete-adornment svg {
|
|
141
|
+
width: 1rem;
|
|
142
|
+
height: 1rem;
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
flex-shrink: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* ── Positioner + popup ────────────────────────────────────────────────── */
|
|
148
|
+
|
|
149
|
+
.a63-Autocomplete-positioner {
|
|
150
|
+
z-index: var(--z-layer-menu, var(--z-layer-popover, 999));
|
|
151
|
+
user-select: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/*
|
|
155
|
+
* Surface hosts `.a63-Menu-popup` for shared menu chrome. Keep Menu padding /
|
|
156
|
+
* gap / paint; only override scroll (ScrollArea owns it) and max width.
|
|
157
|
+
*/
|
|
158
|
+
.a63-Autocomplete-surface.a63-Menu-popup {
|
|
159
|
+
position: relative;
|
|
160
|
+
display: flex;
|
|
161
|
+
max-height: 100%;
|
|
162
|
+
min-width: var(--anchor-width);
|
|
163
|
+
max-width: var(--available-width);
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.a63-Autocomplete-popup {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex: 1;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
max-height: min(var(--available-height), 23rem);
|
|
172
|
+
min-width: 0;
|
|
173
|
+
/* Surface owns Menu padding — don't double-inset. */
|
|
174
|
+
padding: 0;
|
|
175
|
+
gap: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.a63-Autocomplete-popup[data-starting-style],
|
|
179
|
+
.a63-Autocomplete-popup[data-ending-style] {
|
|
180
|
+
opacity: 0;
|
|
181
|
+
scale: 0.98;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.a63-Autocomplete-popup .a63-ScrollArea {
|
|
185
|
+
--scroll-area-gutter: var(--a63-menu-popup-padding, 0.25rem);
|
|
186
|
+
|
|
187
|
+
flex: 1 1 auto;
|
|
188
|
+
min-height: 0;
|
|
189
|
+
/* Surface already insets; ScrollArea only scrolls + scrollbar gutter. */
|
|
190
|
+
padding: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* ── List + items ──────────────────────────────────────────────────────── */
|
|
194
|
+
|
|
195
|
+
.a63-Autocomplete-list:not(:empty) {
|
|
196
|
+
display: grid;
|
|
197
|
+
gap: var(--a63-menu-gap, 0.125rem);
|
|
198
|
+
padding: 0;
|
|
199
|
+
scroll-padding-block: var(--a63-menu-popup-padding, 0.25rem);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Chrome from `.a63-Menu-item`; Autocomplete only needs the slot class today. */
|
|
203
|
+
|
|
204
|
+
.a63-Autocomplete-group {
|
|
205
|
+
display: grid;
|
|
206
|
+
gap: var(--a63-menu-gap, 0.125rem);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* ── Empty / Status (Autocomplete-only copy slots) ─────────────────────── */
|
|
210
|
+
|
|
211
|
+
.a63-Autocomplete-empty:not(:empty) {
|
|
212
|
+
padding: calc(var(--a63-menu-item-padding-block, 0.375rem) * 1.5)
|
|
213
|
+
var(--a63-menu-item-padding-inline, 0.5rem);
|
|
214
|
+
color: var(--a63-menu-label-foreground, var(--a63-text-secondary));
|
|
215
|
+
font-size: var(--a63-menu-item-font-size, var(--a63-control-font-size-sm));
|
|
216
|
+
text-align: center;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.a63-Autocomplete-status {
|
|
220
|
+
padding: var(--a63-menu-item-padding-block, 0.375rem) var(--a63-menu-item-padding-inline, 0.5rem);
|
|
221
|
+
color: var(--a63-menu-label-foreground, var(--a63-text-secondary));
|
|
222
|
+
font-size: var(--a63-control-font-size-xs);
|
|
223
|
+
font-weight: 500;
|
|
224
|
+
}
|
|
225
|
+
.a63-Autocomplete-status:empty {
|
|
226
|
+
margin: 0;
|
|
227
|
+
padding: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.a63-Autocomplete-separator:last-child {
|
|
231
|
+
display: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@media (prefers-reduced-motion: reduce) {
|
|
235
|
+
.a63-Autocomplete-input,
|
|
236
|
+
.a63-Autocomplete-adornment,
|
|
237
|
+
.a63-Autocomplete-surface {
|
|
238
|
+
transition: none;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Avatar recipe — a round user/entity image with a graceful fallback. Faithful
|
|
3
|
+
* to prod @atom63/ui: a circular frame with an inner hairline ring (an ::after
|
|
4
|
+
* blended border), three sizes, an optional status Badge pinned to the corner,
|
|
5
|
+
* and a group stack that overlaps + rings each face against the page. Geometry
|
|
6
|
+
* and colors resolve from the shared spacing, radius, and semantic token scales.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-Avatar {
|
|
10
|
+
--avatar-size: calc(var(--a63-space-unit) * 8);
|
|
11
|
+
|
|
12
|
+
position: relative;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
width: var(--avatar-size);
|
|
16
|
+
height: var(--avatar-size);
|
|
17
|
+
border-radius: var(--a63-avatar-radius, var(--radius-full));
|
|
18
|
+
user-select: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.a63-Avatar::after {
|
|
22
|
+
content: '';
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
border: var(--a63-control-border-width) solid var(--a63-border-subtle);
|
|
26
|
+
border-radius: var(--a63-avatar-radius, var(--radius-full));
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.a63-Avatar[data-size='sm'] {
|
|
31
|
+
--avatar-size: calc(var(--a63-space-unit) * 6);
|
|
32
|
+
}
|
|
33
|
+
.a63-Avatar[data-size='lg'] {
|
|
34
|
+
--avatar-size: calc(var(--a63-space-unit) * 10);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.a63-Avatar-image {
|
|
38
|
+
aspect-ratio: 1 / 1;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
border-radius: var(--a63-avatar-radius, var(--radius-full));
|
|
42
|
+
object-fit: cover;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.a63-Avatar-fallback {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
border-radius: var(--a63-avatar-radius, var(--radius-full));
|
|
52
|
+
background-color: var(--a63-surface-muted);
|
|
53
|
+
color: var(--a63-text-secondary);
|
|
54
|
+
font-size: var(--a63-control-font-size-sm);
|
|
55
|
+
}
|
|
56
|
+
.a63-Avatar[data-size='sm'] .a63-Avatar-fallback {
|
|
57
|
+
font-size: var(--a63-control-font-size-xs);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* ── Status badge (pinned to the bottom-right, ringed against the page) ──── */
|
|
61
|
+
.a63-Avatar-badge {
|
|
62
|
+
position: absolute;
|
|
63
|
+
right: 0;
|
|
64
|
+
bottom: 0;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
border-radius: var(--a63-avatar-radius, var(--radius-full));
|
|
70
|
+
background-color: var(--a63-action-primary);
|
|
71
|
+
color: var(--a63-action-primary-foreground);
|
|
72
|
+
box-shadow: 0 0 0 calc(var(--a63-control-border-width) * 2)
|
|
73
|
+
var(--a63-avatar-badge-ring, var(--a63-surface-page));
|
|
74
|
+
user-select: none;
|
|
75
|
+
}
|
|
76
|
+
.a63-Avatar[data-size='sm'] .a63-Avatar-badge {
|
|
77
|
+
width: var(--a63-space-2);
|
|
78
|
+
height: var(--a63-space-2);
|
|
79
|
+
}
|
|
80
|
+
.a63-Avatar[data-size='sm'] .a63-Avatar-badge > svg {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
.a63-Avatar[data-size='default'] .a63-Avatar-badge {
|
|
84
|
+
width: var(--a63-space-2_5);
|
|
85
|
+
height: var(--a63-space-2_5);
|
|
86
|
+
}
|
|
87
|
+
.a63-Avatar[data-size='default'] .a63-Avatar-badge > svg {
|
|
88
|
+
width: var(--a63-space-2);
|
|
89
|
+
height: var(--a63-space-2);
|
|
90
|
+
}
|
|
91
|
+
.a63-Avatar[data-size='lg'] .a63-Avatar-badge {
|
|
92
|
+
width: var(--a63-space-3);
|
|
93
|
+
height: var(--a63-space-3);
|
|
94
|
+
}
|
|
95
|
+
.a63-Avatar[data-size='lg'] .a63-Avatar-badge > svg {
|
|
96
|
+
width: var(--a63-space-2);
|
|
97
|
+
height: var(--a63-space-2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ── Group stack ────────────────────────────────────────────────────────── */
|
|
101
|
+
.a63-Avatar-group {
|
|
102
|
+
display: flex;
|
|
103
|
+
}
|
|
104
|
+
.a63-Avatar-group > * + * {
|
|
105
|
+
margin-inline-start: calc(-1 * var(--a63-space-2));
|
|
106
|
+
}
|
|
107
|
+
.a63-Avatar-group > [data-slot='avatar'] {
|
|
108
|
+
box-shadow: 0 0 0 calc(var(--a63-control-border-width) * 2)
|
|
109
|
+
var(--a63-avatar-group-ring, var(--a63-surface-page));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.a63-Avatar-group-count {
|
|
113
|
+
position: relative;
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
width: calc(var(--a63-space-unit) * 8);
|
|
119
|
+
height: calc(var(--a63-space-unit) * 8);
|
|
120
|
+
border-radius: var(--a63-avatar-radius, var(--radius-full));
|
|
121
|
+
background-color: var(--a63-surface-muted);
|
|
122
|
+
box-shadow: 0 0 0 calc(var(--a63-control-border-width) * 2)
|
|
123
|
+
var(--a63-avatar-group-ring, var(--a63-surface-page));
|
|
124
|
+
color: var(--a63-text-secondary);
|
|
125
|
+
font-size: var(--a63-control-font-size-sm);
|
|
126
|
+
}
|
|
127
|
+
.a63-Avatar-group-count > svg {
|
|
128
|
+
width: var(--a63-space-4);
|
|
129
|
+
height: var(--a63-space-4);
|
|
130
|
+
}
|
|
131
|
+
/* Group count follows the group's stated size (sibling avatars carry data-size). */
|
|
132
|
+
.a63-Avatar-group:has([data-size='sm']) .a63-Avatar-group-count {
|
|
133
|
+
width: calc(var(--a63-space-unit) * 6);
|
|
134
|
+
height: calc(var(--a63-space-unit) * 6);
|
|
135
|
+
}
|
|
136
|
+
.a63-Avatar-group:has([data-size='sm']) .a63-Avatar-group-count > svg {
|
|
137
|
+
width: var(--a63-space-3);
|
|
138
|
+
height: var(--a63-space-3);
|
|
139
|
+
}
|
|
140
|
+
.a63-Avatar-group:has([data-size='lg']) .a63-Avatar-group-count {
|
|
141
|
+
width: calc(var(--a63-space-unit) * 10);
|
|
142
|
+
height: calc(var(--a63-space-unit) * 10);
|
|
143
|
+
}
|
|
144
|
+
.a63-Avatar-group:has([data-size='lg']) .a63-Avatar-group-count > svg {
|
|
145
|
+
width: var(--a63-space-5);
|
|
146
|
+
height: var(--a63-space-5);
|
|
147
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Badge recipe — a small labeled chip, the MARKER archetype's second consumer
|
|
3
|
+
* (after Kbd). The chip shape + keycap bevel come from the --a63-marker-shadow
|
|
4
|
+
* lever + --a63-control-radius + --a63-control-font-family; each variant only
|
|
5
|
+
* recolors bg/fg from semantics at the use-site (reusing Button's vocabulary).
|
|
6
|
+
* No new tokens.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-Badge {
|
|
10
|
+
--badge-height: 1.25rem;
|
|
11
|
+
--badge-padding-inline: 0.4375rem;
|
|
12
|
+
--badge-font-size: var(--a63-control-font-size-xs);
|
|
13
|
+
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
gap: var(--a63-space-1);
|
|
19
|
+
height: var(--badge-height);
|
|
20
|
+
min-width: var(--badge-height);
|
|
21
|
+
padding-inline: var(--badge-padding-inline);
|
|
22
|
+
border: var(--a63-control-border-width) solid transparent;
|
|
23
|
+
border-radius: var(--a63-control-radius);
|
|
24
|
+
background-color: var(--badge-bg, var(--a63-action-neutral));
|
|
25
|
+
box-shadow: var(--a63-marker-shadow);
|
|
26
|
+
color: var(--badge-fg, var(--a63-action-neutral-foreground));
|
|
27
|
+
font-family: var(--a63-control-font-family);
|
|
28
|
+
font-size: var(--badge-font-size);
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
line-height: 1;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.a63-Badge svg {
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
width: 0.875em;
|
|
38
|
+
height: 0.875em;
|
|
39
|
+
opacity: 0.8;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
42
|
+
.a63-Badge [data-slot='spinner'] {
|
|
43
|
+
width: 0.875em;
|
|
44
|
+
height: 0.875em;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.a63-Badge:disabled,
|
|
48
|
+
.a63-Badge[aria-disabled='true'] {
|
|
49
|
+
opacity: 0.64;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* ── Sizes ─────────────────────────────────────────────────────────────── */
|
|
54
|
+
.a63-Badge[data-size='sm'] {
|
|
55
|
+
--badge-height: 1rem;
|
|
56
|
+
--badge-padding-inline: 0.3125rem;
|
|
57
|
+
--badge-font-size: calc(var(--a63-control-font-size-xs) - 1px);
|
|
58
|
+
}
|
|
59
|
+
.a63-Badge[data-size='lg'] {
|
|
60
|
+
--badge-height: 1.5rem;
|
|
61
|
+
--badge-padding-inline: 0.5rem;
|
|
62
|
+
/* +1px keeps the ramp monotonic even where -xs and -sm resolve equal. */
|
|
63
|
+
--badge-font-size: calc(var(--a63-control-font-size-xs) + 1px);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* ── Variants (bg/fg only — shape/bevel is the marker archetype) ───────── */
|
|
67
|
+
.a63-Badge[data-variant='primary'] {
|
|
68
|
+
--badge-bg: var(--a63-action-primary);
|
|
69
|
+
--badge-fg: var(--a63-action-primary-foreground);
|
|
70
|
+
}
|
|
71
|
+
.a63-Badge[data-variant='secondary'] {
|
|
72
|
+
--badge-bg: var(--a63-surface-control);
|
|
73
|
+
--badge-fg: var(--a63-text-primary);
|
|
74
|
+
}
|
|
75
|
+
.a63-Badge[data-variant='outline'] {
|
|
76
|
+
--badge-bg: transparent;
|
|
77
|
+
--badge-fg: var(--a63-text-primary);
|
|
78
|
+
border-color: var(--a63-border-control);
|
|
79
|
+
}
|
|
80
|
+
/* glass = translucent surface with a visible hairline (prod border-border/50 bg-secondary). */
|
|
81
|
+
.a63-Badge[data-variant='glass'] {
|
|
82
|
+
--badge-bg: color-mix(in oklch, var(--a63-surface-control) 70%, transparent);
|
|
83
|
+
--badge-fg: var(--a63-text-primary);
|
|
84
|
+
border-color: var(--a63-border-subtle);
|
|
85
|
+
}
|
|
86
|
+
.a63-Badge[data-variant='muted'] {
|
|
87
|
+
--badge-bg: var(--a63-surface-muted);
|
|
88
|
+
--badge-fg: var(--a63-text-secondary);
|
|
89
|
+
}
|
|
90
|
+
.a63-Badge[data-variant='accent'] {
|
|
91
|
+
--badge-bg: var(--a63-surface-control-hover);
|
|
92
|
+
--badge-fg: var(--a63-text-primary);
|
|
93
|
+
}
|
|
94
|
+
.a63-Badge[data-variant='destructive'] {
|
|
95
|
+
--badge-bg: var(--a63-action-danger);
|
|
96
|
+
--badge-fg: var(--a63-action-danger-foreground);
|
|
97
|
+
}
|
|
98
|
+
.a63-Badge[data-variant='error'] {
|
|
99
|
+
--badge-bg: color-mix(in oklch, var(--a63-action-danger) 12%, transparent);
|
|
100
|
+
--badge-fg: var(--a63-action-danger);
|
|
101
|
+
}
|
|
102
|
+
.a63-Badge[data-variant='info'] {
|
|
103
|
+
--badge-bg: color-mix(in oklch, var(--a63-status-info) 14%, transparent);
|
|
104
|
+
--badge-fg: var(--a63-status-info);
|
|
105
|
+
}
|
|
106
|
+
.a63-Badge[data-variant='success'] {
|
|
107
|
+
--badge-bg: color-mix(in oklch, var(--a63-status-success) 14%, transparent);
|
|
108
|
+
--badge-fg: var(--a63-status-success);
|
|
109
|
+
}
|
|
110
|
+
.a63-Badge[data-variant='warning'] {
|
|
111
|
+
--badge-bg: color-mix(in oklch, var(--a63-status-warning) 14%, transparent);
|
|
112
|
+
--badge-fg: var(--a63-status-warning);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ── Palette variants (category hues via --a63-badge-* contract) ───────── */
|
|
116
|
+
/* Tonal chip: low-alpha accent + mode-aware foreground from styles contract. */
|
|
117
|
+
.a63-Badge[data-variant='red'] {
|
|
118
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-red-accent) 15%, transparent);
|
|
119
|
+
--badge-fg: var(--a63-badge-red-foreground);
|
|
120
|
+
}
|
|
121
|
+
.a63-Badge[data-variant='orange'] {
|
|
122
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-orange-accent) 15%, transparent);
|
|
123
|
+
--badge-fg: var(--a63-badge-orange-foreground);
|
|
124
|
+
}
|
|
125
|
+
.a63-Badge[data-variant='amber'] {
|
|
126
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-amber-accent) 15%, transparent);
|
|
127
|
+
--badge-fg: var(--a63-badge-amber-foreground);
|
|
128
|
+
}
|
|
129
|
+
.a63-Badge[data-variant='yellow'] {
|
|
130
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-yellow-accent) 15%, transparent);
|
|
131
|
+
--badge-fg: var(--a63-badge-yellow-foreground);
|
|
132
|
+
}
|
|
133
|
+
.a63-Badge[data-variant='lime'] {
|
|
134
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-lime-accent) 15%, transparent);
|
|
135
|
+
--badge-fg: var(--a63-badge-lime-foreground);
|
|
136
|
+
}
|
|
137
|
+
.a63-Badge[data-variant='green'] {
|
|
138
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-green-accent) 15%, transparent);
|
|
139
|
+
--badge-fg: var(--a63-badge-green-foreground);
|
|
140
|
+
}
|
|
141
|
+
.a63-Badge[data-variant='emerald'] {
|
|
142
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-emerald-accent) 15%, transparent);
|
|
143
|
+
--badge-fg: var(--a63-badge-emerald-foreground);
|
|
144
|
+
}
|
|
145
|
+
.a63-Badge[data-variant='teal'] {
|
|
146
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-teal-accent) 15%, transparent);
|
|
147
|
+
--badge-fg: var(--a63-badge-teal-foreground);
|
|
148
|
+
}
|
|
149
|
+
.a63-Badge[data-variant='cyan'] {
|
|
150
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-cyan-accent) 15%, transparent);
|
|
151
|
+
--badge-fg: var(--a63-badge-cyan-foreground);
|
|
152
|
+
}
|
|
153
|
+
.a63-Badge[data-variant='sky'] {
|
|
154
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-sky-accent) 15%, transparent);
|
|
155
|
+
--badge-fg: var(--a63-badge-sky-foreground);
|
|
156
|
+
}
|
|
157
|
+
.a63-Badge[data-variant='blue'] {
|
|
158
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-blue-accent) 15%, transparent);
|
|
159
|
+
--badge-fg: var(--a63-badge-blue-foreground);
|
|
160
|
+
}
|
|
161
|
+
.a63-Badge[data-variant='indigo'] {
|
|
162
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-indigo-accent) 15%, transparent);
|
|
163
|
+
--badge-fg: var(--a63-badge-indigo-foreground);
|
|
164
|
+
}
|
|
165
|
+
.a63-Badge[data-variant='violet'] {
|
|
166
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-violet-accent) 15%, transparent);
|
|
167
|
+
--badge-fg: var(--a63-badge-violet-foreground);
|
|
168
|
+
}
|
|
169
|
+
.a63-Badge[data-variant='purple'] {
|
|
170
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-purple-accent) 15%, transparent);
|
|
171
|
+
--badge-fg: var(--a63-badge-purple-foreground);
|
|
172
|
+
}
|
|
173
|
+
.a63-Badge[data-variant='fuchsia'] {
|
|
174
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-fuchsia-accent) 15%, transparent);
|
|
175
|
+
--badge-fg: var(--a63-badge-fuchsia-foreground);
|
|
176
|
+
}
|
|
177
|
+
.a63-Badge[data-variant='pink'] {
|
|
178
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-pink-accent) 15%, transparent);
|
|
179
|
+
--badge-fg: var(--a63-badge-pink-foreground);
|
|
180
|
+
}
|
|
181
|
+
.a63-Badge[data-variant='rose'] {
|
|
182
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-rose-accent) 15%, transparent);
|
|
183
|
+
--badge-fg: var(--a63-badge-rose-foreground);
|
|
184
|
+
}
|
|
185
|
+
.a63-Badge[data-variant='neutral'] {
|
|
186
|
+
--badge-bg: color-mix(in oklch, var(--a63-badge-neutral-accent) 15%, transparent);
|
|
187
|
+
--badge-fg: var(--a63-badge-neutral-foreground);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Interactive badges (rendered as button/a) get a pointer + hover feedback. */
|
|
191
|
+
.a63-Badge:is(button, a) {
|
|
192
|
+
margin: max(0px, calc((var(--a63-control-min-target) - var(--badge-height)) / 2));
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
text-decoration: none;
|
|
195
|
+
transition: background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
196
|
+
}
|
|
197
|
+
@media (hover: hover) {
|
|
198
|
+
.a63-Badge:is(button, a):hover {
|
|
199
|
+
background-color: color-mix(
|
|
200
|
+
in oklch,
|
|
201
|
+
var(--badge-bg, var(--a63-action-neutral)) 88%,
|
|
202
|
+
transparent
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Expand the hit target to the active input minimum without growing the chip. */
|
|
208
|
+
.a63-Badge:is(button, a)::after {
|
|
209
|
+
content: '';
|
|
210
|
+
position: absolute;
|
|
211
|
+
inset: 50%;
|
|
212
|
+
min-width: var(--a63-control-min-target);
|
|
213
|
+
min-height: var(--a63-control-min-target);
|
|
214
|
+
translate: -50% -50%;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.a63-Badge:focus-visible {
|
|
218
|
+
outline: none;
|
|
219
|
+
box-shadow:
|
|
220
|
+
var(--a63-marker-shadow),
|
|
221
|
+
0 0 0 var(--a63-control-focus-ring-width)
|
|
222
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
223
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Breadcrumb recipe — a hierarchical nav trail. Faithful to prod @atom63/ui:
|
|
3
|
+
* a muted <ol> of items, links that darken to the primary text on hover, a
|
|
4
|
+
* non-interactive current page, small chevron separators, and a collapsed
|
|
5
|
+
* ellipsis. Colors from --a63-* semantics; sizing tracks the control font.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.a63-Breadcrumb-list {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
align-items: center;
|
|
12
|
+
column-gap: var(--a63-space-1_5);
|
|
13
|
+
row-gap: var(--a63-space-1);
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
list-style: none;
|
|
17
|
+
color: var(--a63-text-secondary);
|
|
18
|
+
font-family: var(--a63-control-font-family);
|
|
19
|
+
font-size: var(--a63-control-font-size-sm);
|
|
20
|
+
word-break: break-word;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.a63-Breadcrumb-item {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: var(--a63-space-1);
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.a63-Breadcrumb-link {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
min-height: var(--a63-control-min-target);
|
|
35
|
+
color: inherit;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
transition: color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
38
|
+
}
|
|
39
|
+
@media (hover: hover) {
|
|
40
|
+
.a63-Breadcrumb-link:hover {
|
|
41
|
+
color: var(--a63-text-primary);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.a63-Breadcrumb-link:focus-visible {
|
|
45
|
+
outline: none;
|
|
46
|
+
border-radius: var(--radius-sm, 0.25rem);
|
|
47
|
+
box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
|
|
48
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.a63-Breadcrumb-page {
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
color: var(--a63-text-primary);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.a63-Breadcrumb-separator {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
.a63-Breadcrumb-separator-glyph {
|
|
61
|
+
width: var(--a63-control-icon-size-sm);
|
|
62
|
+
height: var(--a63-control-icon-size-sm);
|
|
63
|
+
}
|
|
64
|
+
/* Mirror the default chevron separator under dir="rtl" so the trail points the
|
|
65
|
+
correct way, matching prod's `cn-rtl-flip` affordance on the separator glyph.
|
|
66
|
+
Scoped to the default glyph so a custom separator (children) isn't flipped. */
|
|
67
|
+
:where([dir='rtl']) .a63-Breadcrumb-separator-glyph {
|
|
68
|
+
transform: scaleX(-1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.a63-Breadcrumb-ellipsis {
|
|
72
|
+
display: flex;
|
|
73
|
+
width: var(--a63-space-5);
|
|
74
|
+
height: var(--a63-space-5);
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
}
|
|
78
|
+
.a63-Breadcrumb-ellipsis-glyph {
|
|
79
|
+
width: var(--a63-control-icon-size-md);
|
|
80
|
+
height: var(--a63-control-icon-size-md);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.a63-Breadcrumb-sr-only {
|
|
84
|
+
position: absolute;
|
|
85
|
+
width: 1px;
|
|
86
|
+
height: 1px;
|
|
87
|
+
padding: 0;
|
|
88
|
+
margin: -1px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
clip: rect(0, 0, 0, 0);
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
border-width: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.a63-Breadcrumb-link {
|
|
97
|
+
transition: none;
|
|
98
|
+
}
|
|
99
|
+
}
|