@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,265 @@
1
+ /*
2
+ * Drawer recipe — a Base UI-backed drawer, the OVERLAY archetype in its
3
+ * full-bleed modal form. Base UI provides Root/Portal/Backdrop/Viewport/Popup/
4
+ * Content and swipe CSS variables; this recipe supplies Atom63 chrome, placement,
5
+ * and motion tokens.
6
+ */
7
+
8
+ .a63-Drawer-overlay {
9
+ position: fixed;
10
+ inset: 0;
11
+ z-index: var(--z-layer-scrim, 500);
12
+ background-color: var(--a63-scrim);
13
+ opacity: max(var(--drawer-overlay-min-opacity, 0), calc(1 - var(--drawer-swipe-progress, 0)));
14
+ backdrop-filter: blur(4px);
15
+ transition:
16
+ opacity var(--a63-motion-duration-overlay) var(--a63-motion-ease-scrim),
17
+ backdrop-filter var(--a63-motion-duration-overlay) var(--a63-motion-ease-scrim);
18
+ }
19
+
20
+ .a63-Drawer-overlay[data-starting-style],
21
+ .a63-Drawer-overlay[data-ending-style] {
22
+ opacity: 0;
23
+ }
24
+
25
+ .a63-Drawer-overlay[data-ending-style] {
26
+ pointer-events: none;
27
+ transition-duration: calc(
28
+ var(--drawer-swipe-strength, 1) * var(--a63-motion-duration-swipe-dismiss)
29
+ );
30
+ }
31
+
32
+ .a63-Drawer-overlay[data-swiping] {
33
+ transition-duration: 0ms;
34
+ }
35
+
36
+ .a63-Drawer-viewport {
37
+ /* Screen edge the sheet must never occupy, so a top/bottom drawer always
38
+ leaves the opposite edge visible. Reserved as viewport padding below, and
39
+ exposed as a variable so a host sizing its own sheet can subtract it
40
+ instead of guessing at it. */
41
+ --a63-drawer-viewport-gutter: 6rem;
42
+ position: fixed;
43
+ inset: 0;
44
+ z-index: var(--z-layer-modal, 600);
45
+ display: grid;
46
+ block-size: var(--a63-viewport-height, 100vh);
47
+ max-block-size: var(--a63-viewport-height, 100vh);
48
+ pointer-events: none;
49
+ }
50
+
51
+ .a63-Drawer-viewport[data-side='top'] {
52
+ grid-template-rows: auto 1fr;
53
+ padding-bottom: var(--a63-drawer-viewport-gutter);
54
+ }
55
+
56
+ .a63-Drawer-viewport[data-side='bottom'] {
57
+ grid-template-rows: 1fr auto;
58
+ padding-top: var(--a63-drawer-viewport-gutter);
59
+ }
60
+
61
+ .a63-Drawer-viewport[data-side='left'],
62
+ .a63-Drawer-viewport[data-side='right'] {
63
+ display: flex;
64
+ }
65
+
66
+ .a63-Drawer-viewport[data-side='left'] {
67
+ justify-content: flex-start;
68
+ }
69
+
70
+ .a63-Drawer-viewport[data-side='right'] {
71
+ justify-content: flex-end;
72
+ }
73
+
74
+ .a63-Drawer-content {
75
+ --a63-drawer-closed-transform: translate3d(0, calc(100% + 2px), 0);
76
+ --a63-drawer-translate-x: 0px;
77
+ --a63-drawer-translate-y: 0px;
78
+
79
+ position: relative;
80
+ box-sizing: border-box;
81
+ display: flex;
82
+ flex-direction: column;
83
+ width: 100%;
84
+ height: auto;
85
+ min-width: 0;
86
+ min-height: 0;
87
+ border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
88
+ background-color: var(--a63-surface-overlay);
89
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
90
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
91
+ backdrop-filter: var(--a63-overlay-backdrop);
92
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
93
+ color: var(--a63-text-primary);
94
+ outline: none;
95
+ pointer-events: auto;
96
+ transform: translate3d(var(--a63-drawer-translate-x), var(--a63-drawer-translate-y), 0);
97
+ transition:
98
+ transform var(--a63-motion-duration-overlay) var(--a63-motion-ease-overlay),
99
+ height var(--a63-motion-duration-overlay) var(--a63-motion-ease-overlay),
100
+ opacity var(--a63-motion-duration-overlay) var(--a63-motion-ease-overlay),
101
+ filter var(--a63-motion-duration-overlay) var(--a63-motion-ease-overlay);
102
+ will-change: transform;
103
+ }
104
+
105
+ .a63-Drawer-content:focus,
106
+ .a63-Drawer-content:focus-visible {
107
+ outline: none;
108
+ }
109
+
110
+ .a63-Drawer-contentInner {
111
+ display: flex;
112
+ min-height: 0;
113
+ flex: 1;
114
+ flex-direction: column;
115
+ }
116
+
117
+ /* Per-direction placement. */
118
+ .a63-Drawer-content[data-side='top'] {
119
+ grid-row-start: 1;
120
+ max-height: min(
121
+ 80dvh,
122
+ calc(var(--a63-viewport-height, 100vh) - var(--a63-safe-area-bottom, 0px))
123
+ );
124
+ padding-top: var(--a63-safe-area-top, 0px);
125
+ border-radius: 0 0 var(--a63-overlay-radius, var(--radius-2xl))
126
+ var(--a63-overlay-radius, var(--radius-2xl));
127
+ transform-origin: top;
128
+ --a63-drawer-closed-transform: translate3d(0, calc(-100% - 2px), 0);
129
+ --a63-drawer-translate-y: var(--drawer-swipe-movement-y, 0px);
130
+ }
131
+
132
+ .a63-Drawer-content[data-side='bottom'] {
133
+ grid-row-start: 2;
134
+ max-height: min(80dvh, calc(var(--a63-viewport-height, 100vh) - var(--a63-safe-area-top, 0px)));
135
+ padding-bottom: var(--a63-safe-area-bottom, 0px);
136
+ border-radius: var(--a63-overlay-radius, var(--radius-2xl))
137
+ var(--a63-overlay-radius, var(--radius-2xl)) 0 0;
138
+ transform-origin: bottom;
139
+ --a63-drawer-closed-transform: translate3d(0, calc(100% + 2px), 0);
140
+ --a63-drawer-translate-y: calc(
141
+ var(--drawer-snap-point-offset, 0px) + var(--drawer-swipe-movement-y, 0px)
142
+ );
143
+ }
144
+
145
+ .a63-Drawer-content[data-side='right'] {
146
+ width: min(calc(100% - 3rem), 24rem);
147
+ min-height: 100%;
148
+ padding-right: var(--a63-safe-area-right, 0px);
149
+ transform-origin: right;
150
+ --a63-drawer-closed-transform: translate3d(calc(100% + 2px), 0, 0);
151
+ --a63-drawer-translate-x: var(--drawer-swipe-movement-x, 0px);
152
+ }
153
+
154
+ .a63-Drawer-content[data-side='left'] {
155
+ width: min(calc(100% - 3rem), 24rem);
156
+ min-height: 100%;
157
+ padding-left: var(--a63-safe-area-left, 0px);
158
+ transform-origin: left;
159
+ --a63-drawer-closed-transform: translate3d(calc(-100% - 2px), 0, 0);
160
+ --a63-drawer-translate-x: var(--drawer-swipe-movement-x, 0px);
161
+ }
162
+
163
+ .a63-Drawer-content[data-starting-style] {
164
+ transform: var(--a63-drawer-closed-transform);
165
+ }
166
+
167
+ .a63-Drawer-content[data-ending-style] {
168
+ opacity: 0.9999;
169
+ transform: var(--a63-drawer-closed-transform);
170
+ transition-duration: calc(
171
+ var(--drawer-swipe-strength, 1) * var(--a63-motion-duration-swipe-dismiss)
172
+ );
173
+ }
174
+
175
+ .a63-Drawer-content[data-swiping] {
176
+ transition-duration: 0ms;
177
+ }
178
+
179
+ /* Grab handle — bottom drawer only. */
180
+ .a63-Drawer-handle {
181
+ display: none;
182
+ flex-shrink: 0;
183
+ width: 2.5rem;
184
+ height: 0.25rem;
185
+ margin: var(--a63-space-2) auto 0;
186
+ border-radius: var(--radius-full);
187
+ background-color: var(--a63-surface-control-hover);
188
+ }
189
+
190
+ .a63-Drawer-content[data-side='bottom'] .a63-Drawer-handle {
191
+ display: block;
192
+ }
193
+
194
+ /* Header / footer / title / description. */
195
+ .a63-Drawer-header {
196
+ display: flex;
197
+ flex-direction: column;
198
+ gap: var(--a63-space-2);
199
+ padding: var(--a63-space-5);
200
+ }
201
+
202
+ .a63-Drawer-content[data-side='bottom'] .a63-Drawer-header,
203
+ .a63-Drawer-content[data-side='top'] .a63-Drawer-header {
204
+ text-align: center;
205
+ }
206
+
207
+ @media (min-width: 768px) {
208
+ .a63-Drawer-header {
209
+ text-align: left;
210
+ }
211
+ }
212
+
213
+ .a63-Drawer-body {
214
+ flex: 1;
215
+ min-height: 0;
216
+ overflow-y: auto;
217
+ padding: 0 var(--a63-space-5) var(--a63-space-5);
218
+ }
219
+
220
+ .a63-Drawer-footer {
221
+ display: flex;
222
+ flex-direction: column;
223
+ gap: var(--a63-space-2);
224
+ margin-top: auto;
225
+ padding-inline: var(--a63-space-5);
226
+ }
227
+
228
+ .a63-Drawer-footer[data-variant='default'] {
229
+ padding-block: var(--a63-space-3);
230
+ border-top: var(--a63-control-border-width) solid var(--a63-border-subtle);
231
+ background: color-mix(in oklch, var(--a63-surface-muted) 72%, transparent);
232
+ }
233
+
234
+ .a63-Drawer-footer[data-variant='bare'] {
235
+ padding-top: var(--a63-space-3);
236
+ padding-bottom: var(--a63-space-5);
237
+ }
238
+
239
+ .a63-Drawer-title {
240
+ font-weight: 600;
241
+ font-size: var(--typography-xl-font-size);
242
+ line-height: var(--typography-xl-line-height);
243
+ color: var(--a63-text-primary);
244
+ }
245
+
246
+ .a63-Drawer-description {
247
+ font-size: var(--a63-control-font-size-sm);
248
+ line-height: var(--typography-sm-line-height);
249
+ color: var(--a63-text-secondary);
250
+ }
251
+
252
+ @media (prefers-reduced-motion: reduce) {
253
+ .a63-Drawer-overlay,
254
+ .a63-Drawer-content {
255
+ transition: none;
256
+ }
257
+
258
+ .a63-Drawer-overlay[data-starting-style],
259
+ .a63-Drawer-overlay[data-ending-style],
260
+ .a63-Drawer-content[data-starting-style],
261
+ .a63-Drawer-content[data-ending-style] {
262
+ opacity: 1;
263
+ transform: none;
264
+ }
265
+ }
@@ -0,0 +1,145 @@
1
+ /*
2
+ * Empty recipe — the empty/error-state layout parts (a centered, dashed,
3
+ * low-emphasis surface + header/media/title/description/content + a collapsible
4
+ * error detail with a CopyButton). Ported faithfully from prod @atom63/ui
5
+ * (Tailwind) onto --a63-* semantics; EmptyMedia's `default`/`icon` axis is a
6
+ * data-attr (no cva). No new tokens.
7
+ */
8
+
9
+ .a63-Empty {
10
+ display: flex;
11
+ width: 100%;
12
+ min-width: 0;
13
+ flex: 1;
14
+ flex-direction: column;
15
+ align-items: center;
16
+ justify-content: center;
17
+ gap: var(--a63-space-4);
18
+ padding: var(--a63-space-6);
19
+ border: var(--a63-surface-border-width) dashed var(--a63-border-subtle);
20
+ border-radius: var(--a63-surface-radius, var(--radius-xl));
21
+ background-color: color-mix(in oklch, var(--a63-surface-panel) 38%, transparent);
22
+ background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
23
+ background-blend-mode: normal, var(--a63-surface-texture-blend);
24
+ backdrop-filter: var(--a63-surface-backdrop);
25
+ box-shadow: var(--a63-surface-inner-shadow, none);
26
+ color: var(--a63-text-primary);
27
+ text-align: center;
28
+ text-wrap: balance;
29
+ }
30
+
31
+ /* ── Header (max-w-sm centered column, gap-2) ──────────────────────────── */
32
+ .a63-Empty-header {
33
+ display: flex;
34
+ max-width: 24rem;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ gap: var(--a63-space-2);
38
+ }
39
+
40
+ /* ── Media ─────────────────────────────────────────────────────────────── */
41
+ .a63-Empty-media {
42
+ display: flex;
43
+ margin-bottom: var(--a63-space-2);
44
+ flex-shrink: 0;
45
+ align-items: center;
46
+ justify-content: center;
47
+ }
48
+ .a63-Empty-media svg {
49
+ flex-shrink: 0;
50
+ pointer-events: none;
51
+ }
52
+
53
+ /* `icon` variant: a rounded muted chip (prod size-8 rounded-lg bg-muted). */
54
+ .a63-Empty-media[data-variant='icon'] {
55
+ width: 2rem;
56
+ height: 2rem;
57
+ border-radius: var(--radius-lg);
58
+ background-color: var(--a63-surface-muted);
59
+ color: var(--a63-text-primary);
60
+ }
61
+ /* Icons without an explicit size get 1rem (prod [&_svg:not([class*='size-'])]:size-4). */
62
+ .a63-Empty-media[data-variant='icon'] svg:not([class*='size-']) {
63
+ width: 1rem;
64
+ height: 1rem;
65
+ }
66
+
67
+ /* ── Title ─────────────────────────────────────────────────────────────── */
68
+ .a63-Empty-title {
69
+ /* Prod title is `font-heading` — render in the heading face, gracefully
70
+ falling back to the app font when no heading token is skinned. */
71
+ font-family: var(--a63-font-heading, var(--a63-font-app));
72
+ font-size: var(--typography-base-font-size);
73
+ font-weight: 600;
74
+ letter-spacing: 0;
75
+ line-height: var(--typography-base-line-height);
76
+ }
77
+
78
+ /* ── Description ───────────────────────────────────────────────────────── */
79
+ .a63-Empty-description {
80
+ color: var(--a63-text-secondary);
81
+ font-size: var(--typography-sm-font-size);
82
+ line-height: var(--typography-sm-line-height);
83
+ }
84
+ .a63-Empty-description a {
85
+ text-decoration: underline;
86
+ text-underline-offset: 4px;
87
+ }
88
+ .a63-Empty-description a:hover {
89
+ color: var(--a63-action-primary);
90
+ }
91
+
92
+ /* ── Content ───────────────────────────────────────────────────────────── */
93
+ .a63-Empty-content {
94
+ display: flex;
95
+ width: 100%;
96
+ max-width: 24rem;
97
+ min-width: 0;
98
+ flex-direction: column;
99
+ align-items: center;
100
+ gap: 0.625rem;
101
+ font-size: 0.875rem;
102
+ text-wrap: balance;
103
+ }
104
+
105
+ /* ── Error detail (collapsible, with a CopyButton) ─────────────────────── */
106
+ .a63-Empty-errorDetail {
107
+ display: flex;
108
+ width: 100%;
109
+ max-width: 24rem;
110
+ flex-direction: column;
111
+ align-items: center;
112
+ gap: 0.375rem;
113
+ }
114
+
115
+ .a63-Empty-errorToggle.a63-Button {
116
+ color: color-mix(in oklch, var(--a63-text-secondary) 60%, transparent);
117
+ font-size: var(--a63-control-font-size-xs);
118
+ }
119
+ .a63-Empty-errorToggle.a63-Button:hover {
120
+ color: var(--a63-text-secondary);
121
+ }
122
+
123
+ .a63-Empty-errorBox {
124
+ position: relative;
125
+ width: 100%;
126
+ padding: var(--a63-space-3) calc(var(--a63-space-5) + var(--a63-control-min-target))
127
+ var(--a63-space-3) var(--a63-space-3);
128
+ border-radius: var(--radius-md);
129
+ background-color: color-mix(in oklch, var(--a63-surface-muted) 50%, transparent);
130
+ text-align: left;
131
+ }
132
+
133
+ .a63-Empty-errorText {
134
+ overflow-x: auto;
135
+ color: var(--a63-text-secondary);
136
+ font-size: 0.75rem;
137
+ line-height: 1.625;
138
+ text-wrap: wrap;
139
+ }
140
+
141
+ .a63-Empty-errorCopy {
142
+ position: absolute;
143
+ top: 0.375rem;
144
+ right: 0.375rem;
145
+ }
@@ -0,0 +1,141 @@
1
+ /*
2
+ * FeedbackState recipe — the empty/error/loading/not-found/no-results pattern.
3
+ * Inlines prod's `Empty` layout (a dashed centered card) so the pattern stays
4
+ * self-contained (no CopyButton/sonner). bg/fg/border/radius all resolve from
5
+ * --a63-* semantics at the use-site; sizes only change gap + padding.
6
+ */
7
+
8
+ .a63-FeedbackState {
9
+ --feedback-accent: var(--a63-text-secondary);
10
+ --feedback-gap: var(--a63-space-3);
11
+ --feedback-padding: var(--a63-space-6);
12
+
13
+ display: flex;
14
+ width: 100%;
15
+ min-width: 0;
16
+ flex: 1;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ justify-content: center;
20
+ gap: var(--feedback-gap);
21
+ padding: var(--feedback-padding);
22
+ border-radius: var(--radius-xl);
23
+ color: var(--a63-text-primary);
24
+ text-align: center;
25
+ text-wrap: balance;
26
+ }
27
+ .a63-FeedbackState[data-state='error'] {
28
+ --feedback-accent: var(--a63-action-danger);
29
+ }
30
+ .a63-FeedbackState[data-state='loading'] {
31
+ --feedback-accent: var(--a63-action-primary);
32
+ }
33
+
34
+ /* ── Sizes (gap + padding only; mirror prod sizeClassName) ─────────────── */
35
+ .a63-FeedbackState[data-size='inline'] {
36
+ --feedback-gap: var(--a63-space-2);
37
+ --feedback-padding: var(--a63-space-3);
38
+ }
39
+ .a63-FeedbackState[data-size='panel'] {
40
+ --feedback-gap: var(--a63-space-3);
41
+ --feedback-padding: var(--a63-space-6);
42
+ }
43
+ .a63-FeedbackState[data-size='page'] {
44
+ --feedback-gap: var(--a63-space-3);
45
+ min-height: 100dvh;
46
+ padding: 4rem var(--a63-space-6);
47
+ }
48
+ .a63-FeedbackState[data-size='widget'] {
49
+ --feedback-gap: var(--a63-space-3);
50
+ --feedback-padding: var(--a63-space-4);
51
+ width: 100%;
52
+ height: 100%;
53
+ }
54
+
55
+ /* ── Header (icon + title + description) ───────────────────────────────── */
56
+ .a63-FeedbackState-header {
57
+ display: flex;
58
+ max-width: 24rem;
59
+ flex-direction: column;
60
+ align-items: center;
61
+ gap: var(--a63-space-2);
62
+ }
63
+
64
+ /* ── Media (the state icon) ────────────────────────────────────────────── */
65
+ .a63-FeedbackState-media {
66
+ display: flex;
67
+ margin-bottom: var(--a63-space-2);
68
+ flex-shrink: 0;
69
+ align-items: center;
70
+ justify-content: center;
71
+ width: 2.5rem;
72
+ height: 2.5rem;
73
+ border: var(--a63-control-border-width) solid
74
+ color-mix(in oklch, var(--feedback-accent) 24%, transparent);
75
+ border-radius: var(--a63-radius-control);
76
+ background-color: color-mix(in oklch, var(--feedback-accent) 8%, transparent);
77
+ color: var(--feedback-accent);
78
+ }
79
+ .a63-FeedbackState-media svg {
80
+ width: var(--a63-control-icon-size-lg);
81
+ height: var(--a63-control-icon-size-lg);
82
+ flex-shrink: 0;
83
+ color: currentColor;
84
+ pointer-events: none;
85
+ }
86
+
87
+ /* The loading kind uses the spinner icon — give it motion (the icon set has no
88
+ built-in spin). */
89
+ .a63-FeedbackState[data-state='loading'] .a63-FeedbackState-media svg {
90
+ animation: a63-feedback-spin 0.8s linear infinite;
91
+ }
92
+
93
+ @keyframes a63-feedback-spin {
94
+ to {
95
+ transform: rotate(360deg);
96
+ }
97
+ }
98
+
99
+ @media (prefers-reduced-motion: reduce) {
100
+ .a63-FeedbackState[data-state='loading'] .a63-FeedbackState-media svg {
101
+ animation: none;
102
+ }
103
+ }
104
+
105
+ /* ── Title ─────────────────────────────────────────────────────────────── */
106
+ .a63-FeedbackState-title {
107
+ color: var(--a63-text-primary);
108
+ font-size: var(--typography-base-font-size);
109
+ font-weight: 600;
110
+ letter-spacing: 0;
111
+ line-height: var(--typography-base-line-height);
112
+ }
113
+
114
+ /* ── Description ───────────────────────────────────────────────────────── */
115
+ .a63-FeedbackState-description {
116
+ color: var(--a63-text-secondary);
117
+ font-size: var(--typography-sm-font-size);
118
+ line-height: var(--typography-sm-line-height);
119
+ overflow-wrap: anywhere;
120
+ }
121
+ .a63-FeedbackState-description a {
122
+ text-decoration: underline;
123
+ text-underline-offset: 4px;
124
+ }
125
+ .a63-FeedbackState-description a:hover {
126
+ color: var(--a63-action-primary);
127
+ }
128
+
129
+ /* ── Content (action buttons) ──────────────────────────────────────────── */
130
+ .a63-FeedbackState-content {
131
+ display: flex;
132
+ width: 100%;
133
+ max-width: 24rem;
134
+ min-width: 0;
135
+ flex-flow: row wrap;
136
+ align-items: center;
137
+ justify-content: center;
138
+ gap: var(--a63-space-2);
139
+ font-size: 0.875rem;
140
+ text-wrap: balance;
141
+ }