@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.
Files changed (92) hide show
  1. package/README.md +121 -0
  2. package/dist/button-sktq-nvV.d.ts +13 -0
  3. package/dist/chunk-7VSPECOH.js +73 -0
  4. package/dist/chunk-7VSPECOH.js.map +1 -0
  5. package/dist/chunk-AJLHJRK6.js +11 -0
  6. package/dist/chunk-AJLHJRK6.js.map +1 -0
  7. package/dist/chunk-MXNO63TC.js +2745 -0
  8. package/dist/chunk-MXNO63TC.js.map +1 -0
  9. package/dist/chunk-STCXERLM.js +354 -0
  10. package/dist/chunk-STCXERLM.js.map +1 -0
  11. package/dist/destination-link-C9NKeKLe.d.ts +34 -0
  12. package/dist/index.d.ts +1605 -0
  13. package/dist/index.js +7337 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/layout/index.d.ts +196 -0
  16. package/dist/layout/index.js +500 -0
  17. package/dist/layout/index.js.map +1 -0
  18. package/dist/media/index.d.ts +208 -0
  19. package/dist/media/index.js +1498 -0
  20. package/dist/media/index.js.map +1 -0
  21. package/dist/media/media-lightbox/parts/index.d.ts +284 -0
  22. package/dist/media/media-lightbox/parts/index.js +5 -0
  23. package/dist/media/media-lightbox/parts/index.js.map +1 -0
  24. package/dist/theme/index.d.ts +350 -0
  25. package/dist/theme/index.js +1173 -0
  26. package/dist/theme/index.js.map +1 -0
  27. package/dist/types-Dxe5IzjE.d.ts +145 -0
  28. package/package.json +188 -0
  29. package/src/components/accordion/accordion.css +196 -0
  30. package/src/components/alert/alert.css +189 -0
  31. package/src/components/alert-dialog/alert-dialog.css +205 -0
  32. package/src/components/autocomplete/autocomplete.css +240 -0
  33. package/src/components/avatar/avatar.css +147 -0
  34. package/src/components/badge/badge.css +223 -0
  35. package/src/components/breadcrumb/breadcrumb.css +99 -0
  36. package/src/components/button/button.css +594 -0
  37. package/src/components/button-group/button-group.css +412 -0
  38. package/src/components/calendar/calendar.css +271 -0
  39. package/src/components/card/card.css +421 -0
  40. package/src/components/carousel/carousel.css +163 -0
  41. package/src/components/checkbox/checkbox.css +113 -0
  42. package/src/components/collapsible/collapsible.css +59 -0
  43. package/src/components/command/command.css +226 -0
  44. package/src/components/connected-panel/connected-panel.css +437 -0
  45. package/src/components/copy-button/copy-button.css +57 -0
  46. package/src/components/dialog/dialog.css +221 -0
  47. package/src/components/drawer/drawer.css +265 -0
  48. package/src/components/empty/empty.css +145 -0
  49. package/src/components/feedback-state/feedback-state.css +141 -0
  50. package/src/components/field/field.css +260 -0
  51. package/src/components/form/form.css +32 -0
  52. package/src/components/frame/frame.css +115 -0
  53. package/src/components/hover-card/hover-card.css +80 -0
  54. package/src/components/input/input.css +291 -0
  55. package/src/components/input-otp/input-otp.css +145 -0
  56. package/src/components/item/item.css +216 -0
  57. package/src/components/kbd/kbd.css +72 -0
  58. package/src/components/label/label.css +37 -0
  59. package/src/components/load-more-trigger/load-more-trigger.css +109 -0
  60. package/src/components/marquee/marquee.css +79 -0
  61. package/src/components/menu/menu.css +216 -0
  62. package/src/components/menubar/menubar.css +67 -0
  63. package/src/components/navigation-menu/navigation-menu.css +275 -0
  64. package/src/components/pagination/pagination.css +86 -0
  65. package/src/components/panel-setting-button/panel-setting-button.css +76 -0
  66. package/src/components/popover/popover.css +89 -0
  67. package/src/components/preview-card/preview-card.css +69 -0
  68. package/src/components/progress/progress.css +70 -0
  69. package/src/components/radio/radio.css +115 -0
  70. package/src/components/resizable/resizable.css +99 -0
  71. package/src/components/scroll-area/scroll-area.css +130 -0
  72. package/src/components/scrollable-list/scrollable-list.css +144 -0
  73. package/src/components/segmented-control/segmented-control.css +235 -0
  74. package/src/components/select/select.css +261 -0
  75. package/src/components/separator/separator.css +43 -0
  76. package/src/components/sheet/sheet.css +209 -0
  77. package/src/components/sidebar/sidebar.css +728 -0
  78. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +179 -0
  79. package/src/components/skeleton/skeleton.css +42 -0
  80. package/src/components/slider/slider.css +124 -0
  81. package/src/components/switch/switch.css +149 -0
  82. package/src/components/table/table.css +183 -0
  83. package/src/components/tabs/tabs.css +416 -0
  84. package/src/components/text-ticker/text-ticker.css +139 -0
  85. package/src/components/textarea/textarea.css +122 -0
  86. package/src/components/toggle/toggle.css +185 -0
  87. package/src/components/toggle-group/toggle-group.css +102 -0
  88. package/src/components/tooltip/tooltip.css +133 -0
  89. package/src/media/media-lightbox/media-lightbox.css +171 -0
  90. package/src/styles/index.css +3 -0
  91. package/src/styles/recipes.css +70 -0
  92. package/src/styles/reset.css +22 -0
@@ -0,0 +1,728 @@
1
+ /*
2
+ * Sidebar recipe — a collapsible app-shell navigation panel. Faithful restyle of
3
+ * prod @atom63/ui sidebar.tsx's Tailwind/shadcn utilities to --a63-* tokens.
4
+ *
5
+ * The prod theme exposed dedicated `--sidebar*` CSS vars. Per the canonical
6
+ * shadcn.css bridge, shadcn's sidebar intentionally DIVERGES from the panel
7
+ * surface: it sits on the muted surface in light mode and collapses onto the
8
+ * page surface in dark mode. The other sidebar vars alias-back onto canonical
9
+ * semantics. Local aliases keep the recipe reading one vocabulary:
10
+ * sidebar bg → --a63-surface-muted (light) / --a63-surface-page (dark)
11
+ * sidebar foreground → --a63-text-primary
12
+ * sidebar accent → --a63-surface-control-hover
13
+ * sidebar accent fg → --a63-text-primary
14
+ * sidebar border → --a63-border-subtle
15
+ * sidebar ring → --a63-focus-ring
16
+ * background (inset/input) → --a63-surface-page
17
+ */
18
+
19
+ .a63-Sidebar-wrapper {
20
+ --sidebar-bg: var(--a63-surface-muted);
21
+ --sidebar-fg: var(--a63-text-primary);
22
+ --sidebar-accent: var(--a63-surface-control-hover);
23
+ --sidebar-accent-fg: var(--a63-text-primary);
24
+ --sidebar-border: var(--a63-border-subtle);
25
+ --sidebar-ring: var(--a63-focus-ring);
26
+
27
+ display: flex;
28
+ min-height: 100svh;
29
+ width: 100%;
30
+ }
31
+ /* shadcn's dark sidebar collapses onto the page surface (mirrors shadcn.css). */
32
+ .a63-Sidebar-wrapper:is(.dark, [data-a63-mode='dark']),
33
+ :is(.dark, [data-a63-mode='dark']) .a63-Sidebar-wrapper {
34
+ --sidebar-bg: var(--a63-surface-page);
35
+ }
36
+ .a63-Sidebar-wrapper:has([data-variant='inset']) {
37
+ background-color: var(--sidebar-bg);
38
+ }
39
+
40
+ /* collapsible="none" — a plain, non-collapsible fixed-width column. */
41
+ .a63-Sidebar--static {
42
+ display: flex;
43
+ height: 100%;
44
+ width: var(--sidebar-width);
45
+ flex-direction: column;
46
+ background-color: var(--sidebar-bg);
47
+ color: var(--sidebar-fg);
48
+ }
49
+ .a63-Sidebar--static[data-variant='floating'] {
50
+ margin: var(--a63-space-2);
51
+ border: var(--a63-surface-border-width) var(--a63-surface-border-style) var(--sidebar-border);
52
+ border-radius: var(--a63-surface-radius, var(--radius-sm));
53
+ background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
54
+ background-blend-mode: normal, var(--a63-surface-texture-blend);
55
+ box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
56
+ }
57
+ .a63-Sidebar--static[data-variant='inset'] {
58
+ margin-block: var(--a63-space-2);
59
+ }
60
+
61
+ /*
62
+ * Mobile drawer body (rendered inside Sheet).
63
+ *
64
+ * The Sheet portals to <body>, so the drawer is NOT a descendant of
65
+ * .a63-Sidebar-wrapper and inherits none of the --sidebar-* aliases declared
66
+ * there. They must be redeclared locally, or every declaration below resolves
67
+ * to an invalid value: the drawer paints transparent over the page and nav
68
+ * items lose their hover/active material, borders, and focus rings.
69
+ */
70
+ .a63-Sidebar-mobile {
71
+ --sidebar-bg: var(--a63-surface-muted);
72
+ --sidebar-fg: var(--a63-text-primary);
73
+ --sidebar-accent: var(--a63-surface-control-hover);
74
+ --sidebar-accent-fg: var(--a63-text-primary);
75
+ --sidebar-border: var(--a63-border-subtle);
76
+ --sidebar-ring: var(--a63-focus-ring);
77
+
78
+ width: var(--sidebar-width);
79
+ padding: 0;
80
+ background-color: var(--sidebar-bg);
81
+ color: var(--sidebar-fg);
82
+ }
83
+ /* Mirrors the wrapper's dark override; the portal sits outside it. */
84
+ .a63-Sidebar-mobile:is(.dark, [data-a63-mode='dark']),
85
+ :is(.dark, [data-a63-mode='dark']) .a63-Sidebar-mobile {
86
+ --sidebar-bg: var(--a63-surface-page);
87
+ }
88
+ /* Must out-specify .a63-Sheet-popup[data-side='…'], which sets its own width. */
89
+ .a63-Sidebar-mobile[data-mobile='true'] {
90
+ width: var(--sidebar-width);
91
+ max-width: var(--sidebar-width);
92
+ }
93
+ .a63-Sidebar-mobile > button {
94
+ display: none;
95
+ }
96
+ .a63-Sidebar-mobile-inner {
97
+ display: flex;
98
+ height: 100%;
99
+ width: 100%;
100
+ flex-direction: column;
101
+ }
102
+
103
+ /* Visually-hidden helper (was Tailwind sr-only). */
104
+ .a63-Sidebar-sr-only {
105
+ position: absolute;
106
+ width: 1px;
107
+ height: 1px;
108
+ padding: 0;
109
+ margin: -1px;
110
+ overflow: hidden;
111
+ clip: rect(0, 0, 0, 0);
112
+ white-space: nowrap;
113
+ border-width: 0;
114
+ }
115
+
116
+ /* ── Desktop shell (the `group peer` wrapper) ────────────────────────────── */
117
+ .a63-Sidebar-root {
118
+ display: none;
119
+ color: var(--sidebar-fg);
120
+ }
121
+ @media (min-width: 768px) {
122
+ .a63-Sidebar-root {
123
+ display: block;
124
+ }
125
+ }
126
+
127
+ /* The width-reserving gap element. */
128
+ .a63-Sidebar-gap {
129
+ position: relative;
130
+ width: var(--sidebar-width);
131
+ background-color: transparent;
132
+ transition: width 200ms linear;
133
+ }
134
+ .a63-Sidebar-root[data-collapsible='offcanvas'] .a63-Sidebar-gap {
135
+ width: 0;
136
+ }
137
+ .a63-Sidebar-root[data-side='right'] .a63-Sidebar-gap {
138
+ rotate: 180deg;
139
+ }
140
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-gap {
141
+ width: var(--sidebar-width-icon);
142
+ }
143
+ .a63-Sidebar-root[data-variant='floating'][data-collapsible='icon'] .a63-Sidebar-gap,
144
+ .a63-Sidebar-root[data-variant='inset'][data-collapsible='icon'] .a63-Sidebar-gap {
145
+ width: calc(var(--sidebar-width-icon) + var(--a63-space-4));
146
+ }
147
+
148
+ /* The fixed, positioned container. */
149
+ .a63-Sidebar-container {
150
+ position: fixed;
151
+ inset-block: 0;
152
+ z-index: var(--z-layer-base);
153
+ display: none;
154
+ height: 100svh;
155
+ width: var(--sidebar-width);
156
+ transition:
157
+ left 200ms linear,
158
+ right 200ms linear,
159
+ width 200ms linear;
160
+ }
161
+ @media (min-width: 768px) {
162
+ .a63-Sidebar-container {
163
+ display: flex;
164
+ }
165
+ }
166
+ .a63-Sidebar-root[data-side='left'] .a63-Sidebar-container {
167
+ left: 0;
168
+ }
169
+ .a63-Sidebar-root[data-side='left'][data-collapsible='offcanvas'] .a63-Sidebar-container {
170
+ left: calc(var(--sidebar-width) * -1);
171
+ }
172
+ .a63-Sidebar-root[data-side='right'] .a63-Sidebar-container {
173
+ right: 0;
174
+ }
175
+ .a63-Sidebar-root[data-side='right'][data-collapsible='offcanvas'] .a63-Sidebar-container {
176
+ right: calc(var(--sidebar-width) * -1);
177
+ }
178
+ /* variant=sidebar collapses to the icon width + a divider on the inner edge. */
179
+ .a63-Sidebar-root[data-variant='sidebar'][data-collapsible='icon'] .a63-Sidebar-container {
180
+ width: var(--sidebar-width-icon);
181
+ }
182
+ .a63-Sidebar-root[data-variant='sidebar'][data-side='left'] .a63-Sidebar-container {
183
+ border-right: 1px solid var(--sidebar-border);
184
+ }
185
+ .a63-Sidebar-root[data-variant='sidebar'][data-side='right'] .a63-Sidebar-container {
186
+ border-left: 1px solid var(--sidebar-border);
187
+ }
188
+ /* floating + inset variants get inner padding + a slightly wider icon rail. */
189
+ .a63-Sidebar-root[data-variant='floating'] .a63-Sidebar-container,
190
+ .a63-Sidebar-root[data-variant='inset'] .a63-Sidebar-container {
191
+ padding: var(--a63-space-2);
192
+ }
193
+ .a63-Sidebar-root[data-variant='floating'][data-collapsible='icon'] .a63-Sidebar-container,
194
+ .a63-Sidebar-root[data-variant='inset'][data-collapsible='icon'] .a63-Sidebar-container {
195
+ width: calc(var(--sidebar-width-icon) + var(--a63-space-4) + 2px);
196
+ }
197
+
198
+ /* The inner chrome surface. */
199
+ .a63-Sidebar-inner {
200
+ display: flex;
201
+ height: 100%;
202
+ width: 100%;
203
+ flex-direction: column;
204
+ background-color: var(--sidebar-bg);
205
+ }
206
+ .a63-Sidebar-root[data-variant='floating'] .a63-Sidebar-inner {
207
+ border: var(--a63-surface-border-width) var(--a63-surface-border-style) var(--sidebar-border);
208
+ border-radius: var(--a63-surface-radius, var(--radius-sm));
209
+ background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
210
+ background-blend-mode: normal, var(--a63-surface-texture-blend);
211
+ backdrop-filter: var(--a63-surface-backdrop);
212
+ box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
213
+ }
214
+
215
+ /* ── Rail ────────────────────────────────────────────────────────────────── */
216
+ .a63-Sidebar-rail {
217
+ position: absolute;
218
+ inset-block: 0;
219
+ z-index: var(--z-layer-sticky);
220
+ display: none;
221
+ width: 1rem;
222
+ translate: -50%;
223
+ transition: all 200ms linear;
224
+ }
225
+ @media (min-width: 640px) {
226
+ .a63-Sidebar-rail {
227
+ display: flex;
228
+ }
229
+ }
230
+ .a63-Sidebar-rail::after {
231
+ content: '';
232
+ position: absolute;
233
+ inset-block: 0;
234
+ left: 50%;
235
+ width: 2px;
236
+ }
237
+ .a63-Sidebar-rail:hover::after {
238
+ background-color: var(--sidebar-border);
239
+ }
240
+ .a63-Sidebar-root[data-side='left'] .a63-Sidebar-rail {
241
+ right: -1rem;
242
+ cursor: w-resize;
243
+ }
244
+ .a63-Sidebar-root[data-side='right'] .a63-Sidebar-rail {
245
+ left: 0;
246
+ cursor: e-resize;
247
+ }
248
+ .a63-Sidebar-root[data-side='left'][data-state='collapsed'] .a63-Sidebar-rail {
249
+ cursor: e-resize;
250
+ }
251
+ .a63-Sidebar-root[data-side='right'][data-state='collapsed'] .a63-Sidebar-rail {
252
+ cursor: w-resize;
253
+ }
254
+ .a63-Sidebar-root[data-collapsible='offcanvas'] .a63-Sidebar-rail {
255
+ translate: 0;
256
+ }
257
+ .a63-Sidebar-root[data-collapsible='offcanvas'] .a63-Sidebar-rail:hover {
258
+ background-color: var(--sidebar-bg);
259
+ }
260
+ .a63-Sidebar-root[data-collapsible='offcanvas'] .a63-Sidebar-rail::after {
261
+ left: 100%;
262
+ }
263
+ .a63-Sidebar-root[data-side='left'][data-collapsible='offcanvas'] .a63-Sidebar-rail {
264
+ right: -0.5rem;
265
+ }
266
+ .a63-Sidebar-root[data-side='right'][data-collapsible='offcanvas'] .a63-Sidebar-rail {
267
+ left: -0.5rem;
268
+ }
269
+
270
+ /* ── Inset (the main content area beside the sidebar) ─────────────────────── */
271
+ .a63-Sidebar-inset {
272
+ position: relative;
273
+ display: flex;
274
+ width: 100%;
275
+ min-width: 0;
276
+ flex: 1;
277
+ flex-direction: column;
278
+ overflow-x: hidden;
279
+ background-color: var(--a63-surface-page);
280
+ }
281
+ @media (min-width: 768px) {
282
+ .a63-Sidebar-wrapper:has([data-variant='inset']) .a63-Sidebar-inset {
283
+ margin: var(--a63-space-2);
284
+ margin-left: 0;
285
+ border-radius: var(--a63-surface-radius, var(--radius-xl));
286
+ background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
287
+ background-blend-mode: normal, var(--a63-surface-texture-blend);
288
+ backdrop-filter: var(--a63-surface-backdrop);
289
+ box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
290
+ }
291
+ .a63-Sidebar-wrapper:has([data-variant='inset'][data-state='collapsed']) .a63-Sidebar-inset {
292
+ margin-left: var(--a63-space-2);
293
+ }
294
+ }
295
+
296
+ /* ── Input ───────────────────────────────────────────────────────────────── */
297
+ .a63-Sidebar-input {
298
+ height: max(
299
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
300
+ var(--a63-control-min-size)
301
+ );
302
+ width: 100%;
303
+ background-color: var(--a63-surface-page);
304
+ box-shadow: none;
305
+ }
306
+
307
+ /* ── Header / Footer ─────────────────────────────────────────────────────── */
308
+ .a63-Sidebar-header,
309
+ .a63-Sidebar-footer {
310
+ display: flex;
311
+ flex-direction: column;
312
+ gap: var(--a63-space-2);
313
+ padding: var(--a63-space-2);
314
+ }
315
+
316
+ /* ── Separator ───────────────────────────────────────────────────────────── */
317
+ .a63-Sidebar-separator {
318
+ width: auto;
319
+ margin-inline: var(--a63-space-2);
320
+ background-color: var(--sidebar-border);
321
+ }
322
+
323
+ /* ── Content ─────────────────────────────────────────────────────────────── */
324
+ .a63-Sidebar-content {
325
+ display: flex;
326
+ min-height: 0;
327
+ flex: 1;
328
+ flex-direction: column;
329
+ gap: 0;
330
+ overflow: auto;
331
+ scrollbar-width: none;
332
+ }
333
+ .a63-Sidebar-content::-webkit-scrollbar {
334
+ display: none;
335
+ }
336
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-content {
337
+ overflow: hidden;
338
+ }
339
+
340
+ /* ── Group ───────────────────────────────────────────────────────────────── */
341
+ .a63-Sidebar-group {
342
+ position: relative;
343
+ display: flex;
344
+ width: 100%;
345
+ min-width: 0;
346
+ flex-direction: column;
347
+ padding: var(--a63-space-2);
348
+ }
349
+
350
+ .a63-Sidebar-group-label {
351
+ display: flex;
352
+ height: 2rem;
353
+ flex-shrink: 0;
354
+ align-items: center;
355
+ border-radius: var(--radius-md);
356
+ padding-inline: var(--a63-space-2);
357
+ color: color-mix(in oklch, var(--sidebar-fg) 70%, transparent);
358
+ font-weight: 500;
359
+ font-size: var(--a63-control-font-size-xs);
360
+ outline: none;
361
+ transition:
362
+ margin 200ms linear,
363
+ opacity 200ms linear;
364
+ }
365
+ .a63-Sidebar-group-label:focus-visible {
366
+ box-shadow: 0 0 0 2px var(--sidebar-ring);
367
+ }
368
+ .a63-Sidebar-group-label > svg {
369
+ width: 1rem;
370
+ height: 1rem;
371
+ flex-shrink: 0;
372
+ }
373
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-group-label {
374
+ margin-top: -2rem;
375
+ opacity: 0;
376
+ }
377
+
378
+ .a63-Sidebar-group-action {
379
+ position: absolute;
380
+ top: 50%;
381
+ right: 0;
382
+ display: flex;
383
+ aspect-ratio: 1 / 1;
384
+ width: var(--a63-control-min-target);
385
+ align-items: center;
386
+ justify-content: center;
387
+ padding: 0;
388
+ border-radius: var(--radius-md);
389
+ color: var(--sidebar-fg);
390
+ outline: none;
391
+ translate: 0 -50%;
392
+ transition: transform 150ms;
393
+ }
394
+ @media (hover: hover) {
395
+ .a63-Sidebar-group-action:hover {
396
+ background-color: var(--sidebar-accent);
397
+ color: var(--sidebar-accent-fg);
398
+ }
399
+ }
400
+ .a63-Sidebar-group-action:focus-visible {
401
+ box-shadow: 0 0 0 2px var(--sidebar-ring);
402
+ }
403
+ .a63-Sidebar-group-action > svg {
404
+ width: 1rem;
405
+ height: 1rem;
406
+ flex-shrink: 0;
407
+ }
408
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-group-action {
409
+ display: none;
410
+ }
411
+
412
+ .a63-Sidebar-group-content {
413
+ width: 100%;
414
+ font-size: var(--a63-control-font-size-sm);
415
+ }
416
+
417
+ /* ── Menu ────────────────────────────────────────────────────────────────── */
418
+ .a63-Sidebar-menu {
419
+ display: flex;
420
+ width: 100%;
421
+ min-width: 0;
422
+ flex-direction: column;
423
+ gap: var(--a63-space-1);
424
+ }
425
+
426
+ .a63-Sidebar-menu-item {
427
+ position: relative;
428
+ }
429
+
430
+ /* ── Menu button ─────────────────────────────────────────────────────────── */
431
+ .a63-Sidebar-menu-button {
432
+ display: flex;
433
+ width: 100%;
434
+ align-items: center;
435
+ gap: var(--a63-space-2);
436
+ overflow: hidden;
437
+ border-radius: var(--radius-md);
438
+ padding: var(--a63-space-2);
439
+ text-align: left;
440
+ font-size: var(--a63-control-font-size-sm);
441
+ outline: none;
442
+ transition:
443
+ width 150ms,
444
+ height 150ms,
445
+ padding 150ms;
446
+ height: max(
447
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
448
+ var(--a63-control-min-size)
449
+ );
450
+ }
451
+ .a63-Sidebar-menu-button:hover,
452
+ .a63-Sidebar-menu-button:active,
453
+ .a63-Sidebar-menu-button[data-open] {
454
+ background-color: var(--sidebar-accent);
455
+ color: var(--sidebar-accent-fg);
456
+ }
457
+ .a63-Sidebar-menu-button:focus-visible {
458
+ box-shadow: 0 0 0 2px var(--sidebar-ring);
459
+ }
460
+ .a63-Sidebar-menu-button:disabled,
461
+ .a63-Sidebar-menu-button[aria-disabled='true'] {
462
+ pointer-events: none;
463
+ opacity: 0.5;
464
+ }
465
+ .a63-Sidebar-menu-button[data-active='true'] {
466
+ background-color: var(--sidebar-accent);
467
+ color: var(--sidebar-accent-fg);
468
+ font-weight: 500;
469
+ }
470
+ .a63-Sidebar-menu-button > span:last-child {
471
+ overflow: hidden;
472
+ text-overflow: ellipsis;
473
+ }
474
+ .a63-Sidebar-menu-button > svg {
475
+ width: 1rem;
476
+ height: 1rem;
477
+ flex-shrink: 0;
478
+ }
479
+ /* reserve room for a menu-action */
480
+ .a63-Sidebar-menu-item:has([data-sidebar='menu-action']) .a63-Sidebar-menu-button {
481
+ padding-right: calc(var(--a63-control-min-target) + var(--a63-space-1));
482
+ }
483
+ /* size ramp */
484
+ .a63-Sidebar-menu-button[data-size='default'] {
485
+ height: max(
486
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
487
+ var(--a63-control-min-size)
488
+ );
489
+ font-size: var(--a63-control-font-size-sm);
490
+ }
491
+ .a63-Sidebar-menu-button[data-size='sm'] {
492
+ height: max(
493
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
494
+ var(--a63-control-min-size)
495
+ );
496
+ font-size: var(--a63-control-font-size-xs);
497
+ }
498
+ .a63-Sidebar-menu-button[data-size='lg'] {
499
+ height: max(
500
+ calc(var(--a63-control-height-lg) * var(--a63-density-scale, 1)),
501
+ var(--a63-control-min-size-lg, var(--a63-control-min-size))
502
+ );
503
+ font-size: var(--a63-control-font-size-sm);
504
+ }
505
+ /* variant=outline */
506
+ .a63-Sidebar-menu-button[data-variant='outline'] {
507
+ background-color: var(--a63-surface-page);
508
+ box-shadow: 0 0 0 1px var(--sidebar-border);
509
+ }
510
+ .a63-Sidebar-menu-button[data-variant='outline']:hover {
511
+ background-color: var(--sidebar-accent);
512
+ color: var(--sidebar-accent-fg);
513
+ box-shadow: 0 0 0 1px var(--sidebar-accent);
514
+ }
515
+ /* collapsed icon rail: square the button + hide labels */
516
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-menu-button {
517
+ margin-inline: auto;
518
+ width: max(
519
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
520
+ var(--a63-control-min-size)
521
+ );
522
+ height: max(
523
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
524
+ var(--a63-control-min-size)
525
+ );
526
+ justify-content: center;
527
+ gap: 0;
528
+ padding: var(--a63-space-2);
529
+ }
530
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-menu-button[data-size='lg'] {
531
+ padding: 0;
532
+ }
533
+ .a63-Sidebar-root[data-collapsible='icon']
534
+ .a63-Sidebar-menu-button
535
+ > span:not(.a63-Sidebar-sr-only) {
536
+ display: none;
537
+ }
538
+
539
+ /* ── Menu action ─────────────────────────────────────────────────────────── */
540
+ .a63-Sidebar-menu-action {
541
+ position: absolute;
542
+ top: 50%;
543
+ right: 0;
544
+ display: flex;
545
+ aspect-ratio: 1 / 1;
546
+ width: var(--a63-control-min-target);
547
+ align-items: center;
548
+ justify-content: center;
549
+ padding: 0;
550
+ border-radius: var(--radius-md);
551
+ color: var(--sidebar-fg);
552
+ outline: none;
553
+ translate: 0 -50%;
554
+ transition: transform 150ms;
555
+ }
556
+ @media (hover: hover) {
557
+ .a63-Sidebar-menu-action:hover {
558
+ background-color: var(--sidebar-accent);
559
+ color: var(--sidebar-accent-fg);
560
+ }
561
+ }
562
+ .a63-Sidebar-menu-action:focus-visible {
563
+ box-shadow: 0 0 0 2px var(--sidebar-ring);
564
+ }
565
+ .a63-Sidebar-menu-action > svg {
566
+ width: 1rem;
567
+ height: 1rem;
568
+ flex-shrink: 0;
569
+ }
570
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-menu-action {
571
+ display: none;
572
+ }
573
+ /* showOnHover variant: hidden until the item is hovered/focused. */
574
+ @media (min-width: 768px) and (hover: hover) {
575
+ .a63-Sidebar-menu-action--hover {
576
+ opacity: 0;
577
+ }
578
+ }
579
+ .a63-Sidebar-menu-item:focus-within .a63-Sidebar-menu-action--hover,
580
+ .a63-Sidebar-menu-action--hover[data-open] {
581
+ opacity: 1;
582
+ }
583
+ @media (hover: hover) {
584
+ .a63-Sidebar-menu-item:hover .a63-Sidebar-menu-action--hover {
585
+ opacity: 1;
586
+ }
587
+ }
588
+
589
+ /* ── Menu badge ──────────────────────────────────────────────────────────── */
590
+ .a63-Sidebar-menu-badge {
591
+ pointer-events: none;
592
+ position: absolute;
593
+ right: 0.25rem;
594
+ display: flex;
595
+ height: 1.25rem;
596
+ min-width: 1.25rem;
597
+ user-select: none;
598
+ align-items: center;
599
+ justify-content: center;
600
+ border-radius: var(--radius-md);
601
+ padding-inline: var(--a63-space-1);
602
+ color: var(--sidebar-fg);
603
+ font-weight: 500;
604
+ font-size: var(--a63-control-font-size-xs);
605
+ font-variant-numeric: tabular-nums;
606
+ }
607
+ .a63-Sidebar-menu-button[data-active='true'] ~ .a63-Sidebar-menu-badge,
608
+ .a63-Sidebar-menu-button:hover ~ .a63-Sidebar-menu-badge {
609
+ color: var(--sidebar-accent-fg);
610
+ }
611
+ .a63-Sidebar-menu-button[data-size='sm'] ~ .a63-Sidebar-menu-badge {
612
+ top: 0.25rem;
613
+ }
614
+ .a63-Sidebar-menu-button[data-size='default'] ~ .a63-Sidebar-menu-badge {
615
+ top: 0.375rem;
616
+ }
617
+ .a63-Sidebar-menu-button[data-size='lg'] ~ .a63-Sidebar-menu-badge {
618
+ top: 0.625rem;
619
+ }
620
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-menu-badge {
621
+ display: none;
622
+ }
623
+
624
+ /* ── Menu skeleton ───────────────────────────────────────────────────────── */
625
+ .a63-Sidebar-menu-skeleton {
626
+ display: flex;
627
+ height: 2rem;
628
+ align-items: center;
629
+ gap: var(--a63-space-2);
630
+ border-radius: var(--radius-md);
631
+ padding-inline: var(--a63-space-2);
632
+ }
633
+ .a63-Sidebar-menu-skeleton-icon {
634
+ width: 1rem;
635
+ height: 1rem;
636
+ border-radius: var(--radius-md);
637
+ }
638
+ .a63-Sidebar-menu-skeleton-text {
639
+ height: 1rem;
640
+ max-width: var(--skeleton-width);
641
+ flex: 1;
642
+ }
643
+
644
+ /* ── Menu sub ────────────────────────────────────────────────────────────── */
645
+ .a63-Sidebar-menu-sub {
646
+ display: flex;
647
+ min-width: 0;
648
+ flex-direction: column;
649
+ gap: var(--a63-space-1);
650
+ margin-inline: 0.875rem;
651
+ translate: 1px;
652
+ border-left: 1px solid var(--sidebar-border);
653
+ padding-inline: 0.625rem;
654
+ padding-block: 0.125rem;
655
+ }
656
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-menu-sub {
657
+ display: none;
658
+ }
659
+
660
+ .a63-Sidebar-menu-sub-item {
661
+ position: relative;
662
+ }
663
+
664
+ .a63-Sidebar-menu-sub-button {
665
+ display: flex;
666
+ height: max(
667
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
668
+ var(--a63-control-min-size)
669
+ );
670
+ min-width: 0;
671
+ translate: -1px;
672
+ align-items: center;
673
+ gap: var(--a63-space-2);
674
+ overflow: hidden;
675
+ border-radius: var(--radius-md);
676
+ padding-inline: var(--a63-space-2);
677
+ color: var(--sidebar-fg);
678
+ outline: none;
679
+ text-decoration: none;
680
+ }
681
+ .a63-Sidebar-menu-sub-button:hover,
682
+ .a63-Sidebar-menu-sub-button:active {
683
+ background-color: var(--sidebar-accent);
684
+ color: var(--sidebar-accent-fg);
685
+ }
686
+ .a63-Sidebar-menu-sub-button:focus-visible {
687
+ box-shadow: 0 0 0 2px var(--sidebar-ring);
688
+ }
689
+ .a63-Sidebar-menu-sub-button:disabled,
690
+ .a63-Sidebar-menu-sub-button[aria-disabled='true'] {
691
+ pointer-events: none;
692
+ opacity: 0.5;
693
+ }
694
+ .a63-Sidebar-menu-sub-button[data-active='true'] {
695
+ background-color: var(--sidebar-accent);
696
+ color: var(--sidebar-accent-fg);
697
+ }
698
+ .a63-Sidebar-menu-sub-button > span:last-child {
699
+ overflow: hidden;
700
+ text-overflow: ellipsis;
701
+ }
702
+ .a63-Sidebar-menu-sub-button > svg {
703
+ width: 1rem;
704
+ height: 1rem;
705
+ flex-shrink: 0;
706
+ color: var(--sidebar-accent-fg);
707
+ }
708
+ .a63-Sidebar-menu-sub-button[data-size='sm'] {
709
+ font-size: var(--a63-control-font-size-xs);
710
+ }
711
+ .a63-Sidebar-menu-sub-button[data-size='md'] {
712
+ font-size: var(--a63-control-font-size-sm);
713
+ }
714
+ .a63-Sidebar-root[data-collapsible='icon'] .a63-Sidebar-menu-sub-button {
715
+ display: none;
716
+ }
717
+
718
+ @media (prefers-reduced-motion: reduce) {
719
+ .a63-Sidebar-gap,
720
+ .a63-Sidebar-container,
721
+ .a63-Sidebar-rail,
722
+ .a63-Sidebar-group-label,
723
+ .a63-Sidebar-group-action,
724
+ .a63-Sidebar-menu-button,
725
+ .a63-Sidebar-menu-action {
726
+ transition: none;
727
+ }
728
+ }