@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,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Collapsible recipe — an expandable content section with an animated height
|
|
3
|
+
* reveal (Base UI Collapsible). Base UI measures the panel and exposes
|
|
4
|
+
* --collapsible-panel-height; the content animates that height (+ opacity) on
|
|
5
|
+
* open/close using the --a63-control-feedback-* motion levers. No new --a63-*
|
|
6
|
+
* tokens; visible chrome is left to the consumer.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.a63-Collapsible-trigger {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.a63-Collapsible-trigger[data-disabled] {
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.a63-Collapsible-indicator {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
flex: none;
|
|
20
|
+
width: var(--a63-control-icon-size-md);
|
|
21
|
+
height: var(--a63-control-icon-size-md);
|
|
22
|
+
transition: transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.a63-Collapsible-indicator > svg {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.a63-Collapsible-trigger[data-panel-open] .a63-Collapsible-indicator {
|
|
31
|
+
transform: rotate(180deg);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.a63-Collapsible-content {
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
transition:
|
|
37
|
+
height var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
38
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.a63-Collapsible-content[data-starting-style],
|
|
42
|
+
.a63-Collapsible-content[data-ending-style] {
|
|
43
|
+
height: 0;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.a63-Collapsible-content[data-open] {
|
|
48
|
+
height: var(--collapsible-panel-height);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@media (prefers-reduced-motion: reduce) {
|
|
52
|
+
.a63-Collapsible-content {
|
|
53
|
+
transition: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.a63-Collapsible-indicator {
|
|
57
|
+
transition: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Command recipe — a command palette, the OVERLAY archetype in its modal (⌘K)
|
|
3
|
+
* form. Faithful port of prod @atom63/ui command.tsx. The dialog scrim + centered
|
|
4
|
+
* viewport read the --z-layer-scrim / --z-layer-modal foundation; the popup + the
|
|
5
|
+
* inner panel are raised overlay/surface panels (--a63-surface-overlay +
|
|
6
|
+
* --a63-overlay-shadow + --a63-border-subtle + --radius-2xl). Items recolor their
|
|
7
|
+
* highlight from the shared MENU contract while keeping command-palette row scale.
|
|
8
|
+
* Local --command-* vars only; no new tokens.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* ── Dialog scrim + viewport ───────────────────────────────────────────── */
|
|
12
|
+
.a63-Command-backdrop {
|
|
13
|
+
position: fixed;
|
|
14
|
+
inset: 0;
|
|
15
|
+
z-index: var(--z-layer-scrim, 40);
|
|
16
|
+
background: var(--a63-scrim);
|
|
17
|
+
backdrop-filter: blur(2px);
|
|
18
|
+
transition: opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
19
|
+
}
|
|
20
|
+
.a63-Command-backdrop[data-starting-style],
|
|
21
|
+
.a63-Command-backdrop[data-ending-style] {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.a63-Command-viewport {
|
|
26
|
+
position: fixed;
|
|
27
|
+
inset: 0;
|
|
28
|
+
z-index: var(--z-layer-modal, 50);
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
align-items: center;
|
|
32
|
+
padding: max(1rem, 4vh) var(--a63-space-4);
|
|
33
|
+
}
|
|
34
|
+
@media (min-width: 640px) {
|
|
35
|
+
.a63-Command-viewport {
|
|
36
|
+
padding-block: 10vh;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* ── Popup shell ───────────────────────────────────────────────────────── */
|
|
41
|
+
.a63-Command-popup {
|
|
42
|
+
--command-text-font-size: var(--a63-command-text-font-size, var(--a63-control-font-size-lg));
|
|
43
|
+
--command-panel-background: var(--a63-command-panel-background, var(--a63-surface-muted));
|
|
44
|
+
|
|
45
|
+
position: relative;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
width: 100%;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
max-width: 36rem;
|
|
51
|
+
max-height: 26rem;
|
|
52
|
+
min-height: 0;
|
|
53
|
+
border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
|
|
54
|
+
border-radius: var(--a63-overlay-radius, var(--radius-2xl));
|
|
55
|
+
background-color: var(--a63-surface-overlay);
|
|
56
|
+
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
57
|
+
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
58
|
+
backdrop-filter: var(--a63-overlay-backdrop);
|
|
59
|
+
box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
|
|
60
|
+
color: var(--a63-text-primary);
|
|
61
|
+
outline: none;
|
|
62
|
+
transition:
|
|
63
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
64
|
+
transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
65
|
+
}
|
|
66
|
+
:is(.dark, [data-a63-mode='dark']) .a63-Command-popup {
|
|
67
|
+
--command-panel-background: var(--a63-command-panel-background, var(--a63-surface-page));
|
|
68
|
+
}
|
|
69
|
+
.a63-Command-popup[data-starting-style],
|
|
70
|
+
.a63-Command-popup[data-ending-style] {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
transform: scale(0.98);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ── Input ─────────────────────────────────────────────────────────────── */
|
|
76
|
+
.a63-Command-input-wrapper {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: var(--a63-space-2);
|
|
80
|
+
padding: 0.625rem 0.875rem;
|
|
81
|
+
}
|
|
82
|
+
.a63-Command-input-icon {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
flex: none;
|
|
85
|
+
color: var(--a63-text-secondary);
|
|
86
|
+
}
|
|
87
|
+
.a63-Command-input {
|
|
88
|
+
flex: 1;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
border: none;
|
|
91
|
+
background: transparent;
|
|
92
|
+
color: var(--a63-text-primary);
|
|
93
|
+
font-family: var(--a63-control-font-family);
|
|
94
|
+
font-size: max(var(--command-text-font-size), var(--a63-editable-font-size-min, 0px));
|
|
95
|
+
line-height: 1.5;
|
|
96
|
+
outline: none;
|
|
97
|
+
appearance: none;
|
|
98
|
+
}
|
|
99
|
+
.a63-Command-input::placeholder {
|
|
100
|
+
color: var(--a63-text-secondary);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* ── Panel (scroll region) ─────────────────────────────────────────────── */
|
|
104
|
+
/* Framed inner tray: retain the shared surface frame anatomy while allowing
|
|
105
|
+
Command to tune only the fill colour for dense result rows. */
|
|
106
|
+
.a63-Command-panel {
|
|
107
|
+
position: relative;
|
|
108
|
+
flex: 1 1 auto;
|
|
109
|
+
min-height: 0;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
margin: 0 var(--a63-space-2) var(--a63-space-2);
|
|
112
|
+
border: var(--a63-surface-border-width) var(--a63-surface-border-style)
|
|
113
|
+
color-mix(in oklch, var(--a63-border-subtle) 24%, transparent);
|
|
114
|
+
border-radius: var(--a63-surface-radius, calc(var(--radius-2xl) - 0.5rem));
|
|
115
|
+
background-color: var(--command-panel-background);
|
|
116
|
+
background-clip: padding-box;
|
|
117
|
+
background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
|
|
118
|
+
background-blend-mode: normal, var(--a63-surface-texture-blend);
|
|
119
|
+
backdrop-filter: var(--a63-surface-backdrop);
|
|
120
|
+
box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* The ScrollArea recipe hard-sets `width: 100%`; with the card's inline margin
|
|
124
|
+
that overflowed the popup by the margins. Compound selector (beats the single
|
|
125
|
+
`.a63-ScrollArea`) resets to auto so flex-stretch + margin inset it cleanly. */
|
|
126
|
+
.a63-Command-panel.a63-ScrollArea {
|
|
127
|
+
width: auto;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.a63-Command-list:not(:empty) {
|
|
131
|
+
padding: var(--a63-space-2);
|
|
132
|
+
scroll-padding-block: 0.5rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.a63-Command-empty:not(:empty) {
|
|
136
|
+
padding: var(--a63-space-6) var(--a63-space-2);
|
|
137
|
+
text-align: center;
|
|
138
|
+
color: var(--a63-menu-label-foreground, var(--a63-text-secondary));
|
|
139
|
+
font-size: var(--a63-control-font-size-sm);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* ── Group ─────────────────────────────────────────────────────────────── */
|
|
143
|
+
.a63-Command-group + .a63-Command-group,
|
|
144
|
+
[role='group'] + .a63-Command-group {
|
|
145
|
+
margin-top: 0.375rem;
|
|
146
|
+
}
|
|
147
|
+
.a63-Command-group-label {
|
|
148
|
+
padding: 0.375rem var(--a63-space-2);
|
|
149
|
+
color: var(--a63-menu-label-foreground, var(--a63-text-secondary));
|
|
150
|
+
font-family: var(--a63-control-font-family);
|
|
151
|
+
font-size: var(--a63-control-font-size-xs);
|
|
152
|
+
font-weight: 500;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* ── Item ──────────────────────────────────────────────────────────────── */
|
|
156
|
+
.a63-Command-item {
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: var(--a63-space-2);
|
|
160
|
+
/* Comfortable desktop row that floors to the 44px touch target on
|
|
161
|
+
[data-a63-input="touch"] — the palette stays tappable + readable on mobile. */
|
|
162
|
+
min-height: max(
|
|
163
|
+
calc(var(--a63-control-height-md) * var(--a63-density-scale, 1)),
|
|
164
|
+
var(--a63-control-min-size)
|
|
165
|
+
);
|
|
166
|
+
padding: var(--a63-space-2);
|
|
167
|
+
border-radius: var(--a63-menu-item-radius, var(--a63-radius-control));
|
|
168
|
+
background-image: none;
|
|
169
|
+
box-shadow: none;
|
|
170
|
+
color: var(--a63-menu-item-foreground, var(--a63-text-primary));
|
|
171
|
+
font-family: var(--a63-control-font-family);
|
|
172
|
+
font-size: var(--command-text-font-size);
|
|
173
|
+
cursor: default;
|
|
174
|
+
user-select: none;
|
|
175
|
+
outline: none;
|
|
176
|
+
}
|
|
177
|
+
.a63-Command-item[data-highlighted] {
|
|
178
|
+
background-color: var(--a63-menu-highlight-background, var(--a63-surface-control-hover));
|
|
179
|
+
background-image: var(--a63-menu-highlight-gloss, none);
|
|
180
|
+
box-shadow: var(--a63-menu-highlight-shadow, none);
|
|
181
|
+
color: var(--a63-menu-highlight-foreground, var(--a63-text-primary));
|
|
182
|
+
}
|
|
183
|
+
.a63-Command-item[data-disabled] {
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
opacity: var(--a63-menu-disabled-opacity, 0.56);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* ── Separator ─────────────────────────────────────────────────────────── */
|
|
189
|
+
.a63-Command-separator {
|
|
190
|
+
height: 1px;
|
|
191
|
+
margin: var(--a63-space-2) var(--a63-space-2);
|
|
192
|
+
background: var(--a63-menu-separator, var(--a63-border-subtle));
|
|
193
|
+
}
|
|
194
|
+
.a63-Command-separator:last-child {
|
|
195
|
+
display: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* ── Shortcut ──────────────────────────────────────────────────────────── */
|
|
199
|
+
.a63-Command-shortcut {
|
|
200
|
+
margin-inline-start: auto;
|
|
201
|
+
color: var(--a63-menu-shortcut-foreground, var(--a63-text-secondary));
|
|
202
|
+
font-family: var(--a63-control-font-family);
|
|
203
|
+
font-size: var(--a63-control-font-size-xs);
|
|
204
|
+
font-weight: 500;
|
|
205
|
+
letter-spacing: 0.1em;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* ── Footer ────────────────────────────────────────────────────────────── */
|
|
209
|
+
.a63-Command-footer {
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
justify-content: space-between;
|
|
213
|
+
gap: var(--a63-space-2);
|
|
214
|
+
/* No flush divider — the inset framed panel above already separates it. */
|
|
215
|
+
padding: var(--a63-space-2) var(--a63-space-5) var(--a63-space-3);
|
|
216
|
+
border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
|
|
217
|
+
color: var(--a63-text-secondary);
|
|
218
|
+
font-size: var(--a63-control-font-size-xs);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@media (prefers-reduced-motion: reduce) {
|
|
222
|
+
.a63-Command-backdrop,
|
|
223
|
+
.a63-Command-popup {
|
|
224
|
+
transition: none;
|
|
225
|
+
}
|
|
226
|
+
}
|