@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,275 @@
1
+ /*
2
+ * NavigationMenu recipe — a horizontal navigation bar whose items reveal a
3
+ * shared, animated content panel (Base UI NavigationMenu), faithful to prod
4
+ * @atom63/ui. Triggers + links highlight with the muted fill (prod hover:bg-muted
5
+ * / focus:bg-muted / data-open|data-active → --a63-surface-muted); the shared popup is the OVERLAY archetype
6
+ * (--a63-surface-overlay + --a63-overlay-shadow + --a63-border-subtle, radius
7
+ * --radius-lg, stacking --z-layer-menu). The popup width/height morph between
8
+ * items via Base UI's --popup-width/--popup-height. All fills are
9
+ * theme-overridden semantics, so the 4 themes restyle it for free. No new
10
+ * --a63-* tokens.
11
+ */
12
+
13
+ .a63-NavigationMenu {
14
+ position: relative;
15
+ display: flex;
16
+ flex: 1;
17
+ align-items: center;
18
+ justify-content: center;
19
+ min-width: 0;
20
+ width: 100%;
21
+ max-width: max-content;
22
+ font-family: var(--a63-control-font-family);
23
+ }
24
+
25
+ .a63-NavigationMenu-list {
26
+ display: flex;
27
+ flex: 1;
28
+ align-items: center;
29
+ justify-content: center;
30
+ gap: 0;
31
+ max-width: 100%;
32
+ margin: 0;
33
+ padding: 0;
34
+ list-style: none;
35
+ overflow-x: auto;
36
+ overscroll-behavior-inline: contain;
37
+ scrollbar-width: none;
38
+ touch-action: pan-x;
39
+ }
40
+ .a63-NavigationMenu-list::-webkit-scrollbar {
41
+ display: none;
42
+ }
43
+
44
+ .a63-NavigationMenu-item {
45
+ position: relative;
46
+ }
47
+
48
+ /* ── Trigger ───────────────────────────────────────────────────────────── */
49
+
50
+ .a63-NavigationMenu-trigger {
51
+ display: inline-flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ gap: var(--a63-space-1);
55
+ width: max-content;
56
+ min-height: max(
57
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
58
+ var(--a63-control-min-size)
59
+ );
60
+ padding-inline: var(--a63-control-padding-inline-sm);
61
+ border: 0;
62
+ border-radius: var(--a63-control-radius);
63
+ background: transparent;
64
+ color: var(--a63-text-primary);
65
+ font-family: inherit;
66
+ font-size: var(--a63-control-font-size-sm);
67
+ font-weight: var(--a63-control-font-weight);
68
+ line-height: 1;
69
+ white-space: nowrap;
70
+ appearance: none;
71
+ cursor: pointer;
72
+ outline: none;
73
+ transition:
74
+ background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
75
+ color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
76
+ }
77
+
78
+ .a63-NavigationMenu-trigger:focus-visible,
79
+ .a63-NavigationMenu-trigger[data-popup-open] {
80
+ background: var(--a63-surface-muted);
81
+ }
82
+ @media (hover: hover) {
83
+ .a63-NavigationMenu-trigger:hover {
84
+ background: var(--a63-surface-muted);
85
+ }
86
+ }
87
+
88
+ .a63-NavigationMenu-trigger:focus-visible {
89
+ box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
90
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
91
+ }
92
+
93
+ .a63-NavigationMenu-trigger[data-disabled] {
94
+ pointer-events: none;
95
+ opacity: 0.5;
96
+ }
97
+
98
+ .a63-NavigationMenu-trigger-icon {
99
+ position: relative;
100
+ top: 1px;
101
+ flex-shrink: 0;
102
+ transition: rotate var(--duration-normal) var(--a63-motion-ease-emphasized, ease);
103
+ }
104
+ .a63-NavigationMenu-trigger[data-popup-open] .a63-NavigationMenu-trigger-icon {
105
+ rotate: 180deg;
106
+ }
107
+
108
+ /* ── Content (per-item slice inside the shared viewport) ───────────────── */
109
+
110
+ .a63-NavigationMenu-content {
111
+ width: auto;
112
+ height: 100%;
113
+ padding: var(--a63-space-1);
114
+ transition:
115
+ opacity var(--duration-normal) var(--a63-motion-ease-emphasized),
116
+ transform var(--duration-normal) var(--a63-motion-ease-emphasized);
117
+ }
118
+
119
+ .a63-NavigationMenu-content[data-starting-style],
120
+ .a63-NavigationMenu-content[data-ending-style] {
121
+ opacity: 0;
122
+ }
123
+ .a63-NavigationMenu-content[data-starting-style][data-activation-direction='left'] {
124
+ transform: translateX(-50%);
125
+ }
126
+ .a63-NavigationMenu-content[data-starting-style][data-activation-direction='right'] {
127
+ transform: translateX(50%);
128
+ }
129
+ .a63-NavigationMenu-content[data-ending-style][data-activation-direction='left'] {
130
+ transform: translateX(50%);
131
+ }
132
+ .a63-NavigationMenu-content[data-ending-style][data-activation-direction='right'] {
133
+ transform: translateX(-50%);
134
+ }
135
+
136
+ /* ── Positioner + shared popup ─────────────────────────────────────────── */
137
+
138
+ .a63-NavigationMenu-positioner {
139
+ isolation: isolate;
140
+ z-index: var(--z-layer-menu, var(--z-layer-popover, 999));
141
+ width: var(--positioner-width);
142
+ height: var(--positioner-height);
143
+ max-width: var(--available-width);
144
+ transition:
145
+ top var(--duration-normal) var(--a63-motion-ease-emphasized),
146
+ left var(--duration-normal) var(--a63-motion-ease-emphasized),
147
+ right var(--duration-normal) var(--a63-motion-ease-emphasized),
148
+ bottom var(--duration-normal) var(--a63-motion-ease-emphasized);
149
+ }
150
+ .a63-NavigationMenu-positioner[data-instant] {
151
+ transition: none;
152
+ }
153
+
154
+ .a63-NavigationMenu-popup {
155
+ position: relative;
156
+ width: var(--popup-width);
157
+ height: var(--popup-height);
158
+ max-width: calc(
159
+ 100dvw - var(--a63-safe-area-left, 0px) - var(--a63-safe-area-right, 0px) - 2 *
160
+ var(--a63-space-4)
161
+ );
162
+ max-height: min(var(--available-height), calc(var(--a63-viewport-height, 100vh) * 0.72));
163
+ border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
164
+ border-radius: var(--a63-overlay-radius, var(--radius-lg));
165
+ background-color: var(--a63-surface-overlay);
166
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
167
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
168
+ backdrop-filter: var(--a63-overlay-backdrop);
169
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
170
+ color: var(--a63-text-primary);
171
+ transform-origin: var(--transform-origin);
172
+ outline: none;
173
+ transition:
174
+ opacity var(--duration-normal) var(--a63-motion-ease-emphasized),
175
+ transform var(--duration-normal) var(--a63-motion-ease-emphasized),
176
+ width var(--duration-normal) var(--a63-motion-ease-emphasized),
177
+ height var(--duration-normal) var(--a63-motion-ease-emphasized);
178
+ }
179
+
180
+ .a63-NavigationMenu-popup[data-starting-style],
181
+ .a63-NavigationMenu-popup[data-ending-style] {
182
+ opacity: 0;
183
+ transform: scale(0.96);
184
+ }
185
+
186
+ .a63-NavigationMenu-viewport {
187
+ position: relative;
188
+ width: 100%;
189
+ height: 100%;
190
+ overflow: hidden;
191
+ }
192
+ @media (max-width: 40rem) {
193
+ .a63-NavigationMenu-viewport {
194
+ overflow: auto;
195
+ overscroll-behavior: contain;
196
+ }
197
+ }
198
+
199
+ /* ── Link ──────────────────────────────────────────────────────────────── */
200
+
201
+ .a63-NavigationMenu-link {
202
+ display: flex;
203
+ align-items: center;
204
+ gap: var(--a63-space-2);
205
+ min-height: max(
206
+ calc(var(--a63-control-height-sm) * var(--a63-density-scale, 1)),
207
+ var(--a63-control-min-size)
208
+ );
209
+ padding: var(--a63-space-2);
210
+ border-radius: var(--a63-control-radius);
211
+ color: var(--a63-text-primary);
212
+ font-size: var(--a63-control-font-size-sm);
213
+ text-decoration: none;
214
+ outline: none;
215
+ transition:
216
+ background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
217
+ color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
218
+ }
219
+
220
+ .a63-NavigationMenu-link:focus-visible,
221
+ .a63-NavigationMenu-link[data-active] {
222
+ background: var(--a63-surface-muted);
223
+ }
224
+ @media (hover: hover) {
225
+ .a63-NavigationMenu-link:hover {
226
+ background: var(--a63-surface-muted);
227
+ }
228
+ }
229
+
230
+ .a63-NavigationMenu-link svg {
231
+ flex-shrink: 0;
232
+ width: 1rem;
233
+ height: 1rem;
234
+ }
235
+
236
+ /* ── Indicator (arrow) ─────────────────────────────────────────────────── */
237
+
238
+ .a63-NavigationMenu-indicator {
239
+ top: 100%;
240
+ z-index: var(--z-layer-raised, 1);
241
+ display: flex;
242
+ align-items: flex-end;
243
+ justify-content: center;
244
+ height: 0.375rem;
245
+ overflow: hidden;
246
+ transition: opacity var(--duration-fast) var(--a63-control-feedback-ease);
247
+ }
248
+ .a63-NavigationMenu-indicator[data-state='hidden'] {
249
+ opacity: 0;
250
+ }
251
+ .a63-NavigationMenu-indicator[data-state='visible'] {
252
+ opacity: 1;
253
+ }
254
+
255
+ .a63-NavigationMenu-indicator-arrow {
256
+ position: relative;
257
+ top: 60%;
258
+ width: 0.5rem;
259
+ height: 0.5rem;
260
+ rotate: 45deg;
261
+ border-top-left-radius: var(--radius-xs);
262
+ background: var(--a63-border-subtle);
263
+ }
264
+
265
+ @media (prefers-reduced-motion: reduce) {
266
+ .a63-NavigationMenu-trigger,
267
+ .a63-NavigationMenu-trigger-icon,
268
+ .a63-NavigationMenu-content,
269
+ .a63-NavigationMenu-positioner,
270
+ .a63-NavigationMenu-popup,
271
+ .a63-NavigationMenu-link,
272
+ .a63-NavigationMenu-indicator {
273
+ transition: none;
274
+ }
275
+ }
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Pagination recipe — the page-navigation cluster. Layout-only chrome: the nav
3
+ * centers a horizontal list of items; interactive controls inherit their look
4
+ * from the DS Button (outline/ghost). The Prev/Next labels hide on narrow
5
+ * viewports (prod's `hidden sm:block`); the ellipsis is a fixed square.
6
+ */
7
+
8
+ .a63-Pagination {
9
+ display: flex;
10
+ justify-content: center;
11
+ width: 100%;
12
+ margin-inline: auto;
13
+ }
14
+
15
+ .a63-Pagination-content {
16
+ display: flex;
17
+ flex-direction: row;
18
+ align-items: center;
19
+ gap: var(--a63-space-1, 0.25rem);
20
+ max-width: 100%;
21
+ margin: 0;
22
+ padding: 0;
23
+ list-style: none;
24
+ overflow-x: auto;
25
+ overscroll-behavior-inline: contain;
26
+ scrollbar-width: none;
27
+ scroll-snap-type: inline proximity;
28
+ touch-action: pan-x;
29
+ }
30
+ .a63-Pagination-content::-webkit-scrollbar {
31
+ display: none;
32
+ }
33
+ .a63-Pagination-content > * {
34
+ flex: none;
35
+ scroll-snap-align: center;
36
+ }
37
+
38
+ /* Prev/Next: a little internal gap + roomier inline padding than an icon cell. */
39
+ .a63-Pagination-nav-link {
40
+ gap: var(--a63-space-1, 0.25rem);
41
+ padding-inline: var(--a63-control-padding-inline-md);
42
+ }
43
+
44
+ /* Labels appear from the `sm` breakpoint up (prod hidden sm:block). */
45
+ .a63-Pagination-nav-label {
46
+ display: none;
47
+ }
48
+ @media (min-width: 40rem) {
49
+ .a63-Pagination-nav-label {
50
+ display: block;
51
+ }
52
+ }
53
+
54
+ .a63-Pagination-ellipsis {
55
+ /* Content floor — see button.css. Square cell, so the floor has to drive BOTH
56
+ axes from one value: flooring height alone would quietly turn these into
57
+ rectangles. */
58
+ --pagination-size: max(
59
+ calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
60
+ var(--a63-control-min-size),
61
+ calc(var(--typography-sm-line-height) + 2 * var(--a63-space-0_5))
62
+ );
63
+
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: center;
67
+ width: var(--pagination-size);
68
+ height: var(--pagination-size);
69
+ }
70
+
71
+ .a63-Pagination-ellipsis-icon {
72
+ width: 1rem;
73
+ height: 1rem;
74
+ }
75
+
76
+ .a63-Pagination-sr-only {
77
+ position: absolute;
78
+ width: 1px;
79
+ height: 1px;
80
+ padding: 0;
81
+ margin: -1px;
82
+ overflow: hidden;
83
+ clip: rect(0, 0, 0, 0);
84
+ white-space: nowrap;
85
+ border-width: 0;
86
+ }
@@ -0,0 +1,76 @@
1
+ /*
2
+ * PanelSettingButton recipe — a square settings tile (icon over label). Restyle
3
+ * of prod @atom63/ui panel-setting-button.tsx's inline --theme-button-* overrides
4
+ * to --a63-* tokens. The base tile is a soft, translucent panel surface; the
5
+ * active tile is a primary-tinted surface with a primary foreground (mirroring
6
+ * prod's --primary 15/20% mixes). Layered onto the DS `outline` Button.
7
+ */
8
+
9
+ .a63-Button.a63-PanelSettingButton {
10
+ --button-background: color-mix(in oklch, var(--a63-surface-panel) 75%, transparent);
11
+ --button-border-color: color-mix(in oklch, var(--a63-border-subtle) 60%, transparent);
12
+ --button-foreground: var(--a63-text-primary);
13
+ --button-gloss: none;
14
+ --button-highlight: none;
15
+ --button-shadow: var(--a63-control-shadow);
16
+ --button-shadow-active: var(--a63-control-shadow-active);
17
+ --button-tint-drop: 0 0 0 transparent;
18
+ --button-state-hover-background: var(--a63-surface-panel);
19
+ --button-state-hover-border-color: var(--a63-border-subtle);
20
+ --button-state-active-background: var(--a63-surface-panel);
21
+ --button-state-active-border-color: var(--a63-border-subtle);
22
+
23
+ /* Tile shape: a tall, square-ish cell that stacks icon + label. */
24
+ display: flex;
25
+ height: auto;
26
+ min-height: 4.5rem;
27
+ flex-direction: column;
28
+ align-items: flex-start;
29
+ justify-content: space-between;
30
+ gap: var(--a63-space-2);
31
+ padding: var(--a63-space-3);
32
+ text-align: left;
33
+ }
34
+
35
+ .a63-PanelSettingButton > .a63-Button-label {
36
+ display: flex;
37
+ width: 100%;
38
+ height: 100%;
39
+ flex-direction: column;
40
+ align-items: flex-start;
41
+ justify-content: space-between;
42
+ gap: var(--a63-space-2);
43
+ }
44
+
45
+ /* Label sits under the icon; muted-but-legible foreground. */
46
+ .a63-PanelSettingButton-label {
47
+ color: var(--a63-text-primary);
48
+ font-size: var(--a63-control-font-size-xs);
49
+ }
50
+
51
+ /* The tile's icon (first child before the label). */
52
+ .a63-PanelSettingButton > .a63-Button-label > svg,
53
+ .a63-PanelSettingButton > .a63-Button-label > [data-slot='icon'] {
54
+ flex-shrink: 0;
55
+ }
56
+
57
+ /* ── Active tile ─────────────────────────────────────────────────────────── */
58
+ .a63-Button.a63-PanelSettingButton[data-active] {
59
+ --button-background: color-mix(in oklch, var(--a63-action-primary) 15%, transparent);
60
+ --button-border-color: color-mix(in oklch, var(--a63-action-primary) 40%, transparent);
61
+ --button-foreground: var(--a63-action-primary);
62
+ --button-state-hover-background: color-mix(in oklch, var(--a63-action-primary) 20%, transparent);
63
+ --button-state-hover-border-color: color-mix(
64
+ in oklch,
65
+ var(--a63-action-primary) 48%,
66
+ transparent
67
+ );
68
+ --button-state-active-background: color-mix(in oklch, var(--a63-action-primary) 24%, transparent);
69
+ --button-state-active-border-color: var(--button-state-hover-border-color);
70
+ }
71
+ /* The label span keeps its explicit foreground even when the tile is active
72
+ * (prod hard-codes `text-foreground` on the span, overriding the tile's
73
+ * --theme-button-foreground:var(--primary)). */
74
+ .a63-PanelSettingButton[data-active] .a63-PanelSettingButton-label {
75
+ color: var(--a63-text-primary);
76
+ }
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Popover recipe — the OVERLAY archetype as a click-activated content panel,
3
+ * a sibling of the Select popup + Tooltip. Its elevation reads the
4
+ * --a63-overlay-shadow lever; bg (--a63-surface-overlay), border
5
+ * (--a63-border-subtle), radius (--radius-lg), stacking (--z-layer-popover) and
6
+ * entrance motion (--a63-control-feedback-*) resolve from semantics/foundation
7
+ * at the use-site. No new --a63-* tokens.
8
+ *
9
+ * Open/close motion mirrors prod @atom63/ui: fade + zoom (~0.95) with a short
10
+ * side-aware slide (slide-in-from-* equivalents).
11
+ */
12
+
13
+ .a63-Popover-positioner {
14
+ z-index: var(--z-layer-popover, 999);
15
+ }
16
+
17
+ .a63-Popover-popup {
18
+ box-sizing: border-box;
19
+ display: flex;
20
+ flex-direction: column;
21
+ gap: var(--a63-space-2_5);
22
+ width: 18rem;
23
+ max-width: var(--available-width);
24
+ padding: var(--a63-space-2_5);
25
+ border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
26
+ border-radius: var(--a63-overlay-radius, var(--radius-lg));
27
+ background-color: var(--a63-surface-overlay);
28
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
29
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
30
+ backdrop-filter: var(--a63-overlay-backdrop);
31
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
32
+ color: var(--a63-text-primary);
33
+ font-family: var(--a63-control-font-family);
34
+ font-size: var(--a63-control-font-size-sm);
35
+ transform-origin: var(--transform-origin);
36
+ outline: none;
37
+ transition:
38
+ opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
39
+ transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
40
+ }
41
+
42
+ .a63-Popover-popup[data-starting-style],
43
+ .a63-Popover-popup[data-ending-style] {
44
+ opacity: 0;
45
+ transform: scale(0.95);
46
+ }
47
+
48
+ .a63-Popover-popup[data-starting-style][data-side='bottom'],
49
+ .a63-Popover-popup[data-ending-style][data-side='bottom'] {
50
+ transform: translateY(-0.5rem) scale(0.95);
51
+ }
52
+
53
+ .a63-Popover-popup[data-starting-style][data-side='top'],
54
+ .a63-Popover-popup[data-ending-style][data-side='top'] {
55
+ transform: translateY(0.5rem) scale(0.95);
56
+ }
57
+
58
+ .a63-Popover-popup[data-starting-style][data-side='left'],
59
+ .a63-Popover-popup[data-ending-style][data-side='left'] {
60
+ transform: translateX(0.5rem) scale(0.95);
61
+ }
62
+
63
+ .a63-Popover-popup[data-starting-style][data-side='right'],
64
+ .a63-Popover-popup[data-ending-style][data-side='right'] {
65
+ transform: translateX(-0.5rem) scale(0.95);
66
+ }
67
+
68
+ .a63-Popover-header {
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: var(--a63-space-0_5);
72
+ }
73
+
74
+ .a63-Popover-title {
75
+ color: var(--a63-text-primary);
76
+ font-weight: 500;
77
+ line-height: var(--typography-sm-line-height);
78
+ }
79
+
80
+ .a63-Popover-description {
81
+ color: var(--a63-text-secondary);
82
+ line-height: var(--typography-sm-line-height);
83
+ }
84
+
85
+ @media (prefers-reduced-motion: reduce) {
86
+ .a63-Popover-popup {
87
+ transition: none;
88
+ }
89
+ }
@@ -0,0 +1,69 @@
1
+ /*
2
+ * PreviewCard recipe — the OVERLAY archetype (a hover-triggered rich preview
3
+ * popover). Its elevation reads the --a63-overlay-shadow lever; bg
4
+ * (--a63-surface-overlay), border (--a63-border-subtle), radius (--radius-lg),
5
+ * stacking (--z-layer-popover) and entrance motion (--a63-control-feedback-*)
6
+ * resolve from semantics/foundation at the use-site. No new --a63-* tokens.
7
+ */
8
+
9
+ .a63-PreviewCard-positioner {
10
+ z-index: var(--z-layer-popover, 999);
11
+ }
12
+
13
+ .a63-PreviewCard-popup {
14
+ position: relative;
15
+ box-sizing: border-box;
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: var(--a63-space-2);
19
+ width: 16rem;
20
+ max-width: var(--available-width);
21
+ padding: var(--a63-space-4);
22
+ border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
23
+ border-radius: var(--a63-overlay-radius, var(--radius-lg));
24
+ background-color: var(--a63-surface-overlay);
25
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
26
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
27
+ backdrop-filter: var(--a63-overlay-backdrop);
28
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
29
+ color: var(--a63-text-primary);
30
+ font-family: var(--a63-control-font-family);
31
+ font-size: var(--a63-control-font-size-sm);
32
+ text-wrap: balance;
33
+ transform-origin: var(--transform-origin);
34
+ transition:
35
+ opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
36
+ transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
37
+ }
38
+
39
+ .a63-PreviewCard-popup[data-starting-style],
40
+ .a63-PreviewCard-popup[data-ending-style] {
41
+ opacity: 0;
42
+ transform: scale(0.95);
43
+ }
44
+
45
+ .a63-PreviewCard-popup[data-starting-style][data-side='bottom'],
46
+ .a63-PreviewCard-popup[data-ending-style][data-side='bottom'] {
47
+ transform: translateY(-0.5rem) scale(0.95);
48
+ }
49
+
50
+ .a63-PreviewCard-popup[data-starting-style][data-side='top'],
51
+ .a63-PreviewCard-popup[data-ending-style][data-side='top'] {
52
+ transform: translateY(0.5rem) scale(0.95);
53
+ }
54
+
55
+ .a63-PreviewCard-popup[data-starting-style][data-side='left'],
56
+ .a63-PreviewCard-popup[data-ending-style][data-side='left'] {
57
+ transform: translateX(0.5rem) scale(0.95);
58
+ }
59
+
60
+ .a63-PreviewCard-popup[data-starting-style][data-side='right'],
61
+ .a63-PreviewCard-popup[data-ending-style][data-side='right'] {
62
+ transform: translateX(-0.5rem) scale(0.95);
63
+ }
64
+
65
+ @media (prefers-reduced-motion: reduce) {
66
+ .a63-PreviewCard-popup {
67
+ transition: none;
68
+ }
69
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Progress recipe — a horizontal determinate/indeterminate bar. Faithful to
3
+ * prod @atom63/ui: a recessed track (the field/track inset shadow + a hairline
4
+ * border) with a filled primary indicator that animates its width, plus
5
+ * optional Label / Value rows. Track inset = --a63-track-shadow; indicator
6
+ * sheen = --a63-control-gloss (theme-driven, `none` on flat themes). No new
7
+ * tokens.
8
+ */
9
+
10
+ .a63-Progress {
11
+ display: flex;
12
+ width: 100%;
13
+ flex-direction: column;
14
+ gap: var(--a63-space-2);
15
+ }
16
+
17
+ .a63-Progress-label {
18
+ font-family: var(--a63-control-font-family);
19
+ font-size: var(--a63-control-font-size-sm);
20
+ font-weight: 500;
21
+ color: var(--a63-text-primary);
22
+ }
23
+
24
+ .a63-Progress-track {
25
+ display: block;
26
+ width: 100%;
27
+ height: 0.375rem;
28
+ overflow: hidden;
29
+ border: var(--a63-control-border-width) solid var(--a63-border-subtle);
30
+ border-radius: var(--radius-lg);
31
+ background-color: var(--a63-field-background, var(--a63-border-control));
32
+ box-shadow: var(--a63-track-shadow);
33
+ }
34
+
35
+ .a63-Progress-indicator {
36
+ height: 100%;
37
+ background-color: var(--a63-action-primary);
38
+ background-image: var(--a63-control-gloss, none);
39
+ transition:
40
+ transform var(--duration-slow) var(--a63-motion-ease-standard),
41
+ width var(--duration-slow) var(--a63-motion-ease-standard);
42
+ }
43
+
44
+ .a63-Progress-indicator[data-indeterminate] {
45
+ width: 40%;
46
+ animation: a63-progress-indeterminate var(--duration-slower) linear infinite;
47
+ }
48
+
49
+ .a63-Progress-value {
50
+ font-family: var(--a63-control-font-family);
51
+ font-size: var(--a63-control-font-size-sm);
52
+ font-variant-numeric: tabular-nums;
53
+ color: var(--a63-text-primary);
54
+ }
55
+
56
+ @keyframes a63-progress-indeterminate {
57
+ from {
58
+ transform: translateX(-100%);
59
+ }
60
+ to {
61
+ transform: translateX(250%);
62
+ }
63
+ }
64
+
65
+ @media (prefers-reduced-motion: reduce) {
66
+ .a63-Progress-indicator {
67
+ animation: none;
68
+ transition: none;
69
+ }
70
+ }