@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,209 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Sheet recipe — a Base UI Dialog rendered as a slide-in panel, the OVERLAY
|
|
3
|
+
* archetype in its edge-anchored modal form. Faithful port of prod @atom63/ui
|
|
4
|
+
* sheet.tsx (whose chrome was Tailwind). Base UI sets data-open/data-closed +
|
|
5
|
+
* data-starting-style/data-ending-style on Backdrop/Popup; the recipe keys the
|
|
6
|
+
* per-side insets/translates off the SheetPopup's `data-side`. Chrome reads a63
|
|
7
|
+
* tokens (mirrors Drawer): raised overlay surface (--a63-surface-overlay +
|
|
8
|
+
* --a63-overlay-shadow), scrim + stacking read --z-layer-* / --a63-scrim.
|
|
9
|
+
* No new tokens.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* ── Backdrop / scrim ──────────────────────────────────────────────────── */
|
|
13
|
+
.a63-Sheet-backdrop {
|
|
14
|
+
position: fixed;
|
|
15
|
+
inset: 0;
|
|
16
|
+
z-index: var(--z-layer-scrim, 40);
|
|
17
|
+
background-color: var(--a63-scrim);
|
|
18
|
+
backdrop-filter: blur(2px);
|
|
19
|
+
transition:
|
|
20
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
21
|
+
backdrop-filter var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
22
|
+
}
|
|
23
|
+
.a63-Sheet-backdrop[data-starting-style],
|
|
24
|
+
.a63-Sheet-backdrop[data-ending-style] {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ── Viewport — positions the popup at the requested edge ──────────────── */
|
|
29
|
+
.a63-Sheet-viewport {
|
|
30
|
+
position: fixed;
|
|
31
|
+
inset: 0;
|
|
32
|
+
z-index: var(--z-layer-modal, 50);
|
|
33
|
+
display: grid;
|
|
34
|
+
block-size: var(--a63-viewport-height, 100vh);
|
|
35
|
+
max-block-size: var(--a63-viewport-height, 100vh);
|
|
36
|
+
}
|
|
37
|
+
.a63-Sheet-viewport[data-side='bottom'] {
|
|
38
|
+
grid-template-rows: 1fr auto;
|
|
39
|
+
padding-top: max(3rem, var(--a63-safe-area-top, 0px));
|
|
40
|
+
}
|
|
41
|
+
.a63-Sheet-viewport[data-side='top'] {
|
|
42
|
+
grid-template-rows: auto 1fr;
|
|
43
|
+
padding-bottom: max(3rem, var(--a63-safe-area-bottom, 0px));
|
|
44
|
+
}
|
|
45
|
+
.a63-Sheet-viewport[data-side='left'] {
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
}
|
|
49
|
+
.a63-Sheet-viewport[data-side='right'] {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: flex-end;
|
|
52
|
+
}
|
|
53
|
+
@media (min-width: 640px) {
|
|
54
|
+
.a63-Sheet-viewport[data-variant='inset'] {
|
|
55
|
+
padding: var(--a63-space-4);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ── Popup — the raised overlay surface ────────────────────────────────── */
|
|
60
|
+
.a63-Sheet-popup {
|
|
61
|
+
position: relative;
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
min-height: 0;
|
|
66
|
+
max-height: 100%;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
width: 100%;
|
|
69
|
+
border: 0 solid var(--a63-border-subtle);
|
|
70
|
+
background-color: var(--a63-surface-overlay);
|
|
71
|
+
background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
|
|
72
|
+
background-blend-mode: normal, var(--a63-overlay-texture-blend);
|
|
73
|
+
backdrop-filter: var(--a63-overlay-backdrop);
|
|
74
|
+
box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
|
|
75
|
+
color: var(--a63-text-primary);
|
|
76
|
+
transition:
|
|
77
|
+
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
78
|
+
translate var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
79
|
+
will-change: transform;
|
|
80
|
+
}
|
|
81
|
+
.a63-Sheet-popup[data-starting-style],
|
|
82
|
+
.a63-Sheet-popup[data-ending-style] {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* ── Per-side anchoring + entrance/exit translate ──────────────────────── */
|
|
87
|
+
.a63-Sheet-popup[data-side='bottom'] {
|
|
88
|
+
grid-row-start: 2;
|
|
89
|
+
padding-bottom: var(--a63-safe-area-bottom, 0px);
|
|
90
|
+
border-top-width: var(--a63-control-border-width);
|
|
91
|
+
}
|
|
92
|
+
.a63-Sheet-popup[data-side='bottom'][data-starting-style],
|
|
93
|
+
.a63-Sheet-popup[data-side='bottom'][data-ending-style] {
|
|
94
|
+
translate: 0 2rem;
|
|
95
|
+
}
|
|
96
|
+
.a63-Sheet-popup[data-side='top'] {
|
|
97
|
+
padding-top: var(--a63-safe-area-top, 0px);
|
|
98
|
+
border-bottom-width: var(--a63-control-border-width);
|
|
99
|
+
}
|
|
100
|
+
.a63-Sheet-popup[data-side='top'][data-starting-style],
|
|
101
|
+
.a63-Sheet-popup[data-side='top'][data-ending-style] {
|
|
102
|
+
translate: 0 -2rem;
|
|
103
|
+
}
|
|
104
|
+
.a63-Sheet-popup[data-side='left'] {
|
|
105
|
+
width: calc(100% - 3rem);
|
|
106
|
+
max-width: 28rem;
|
|
107
|
+
padding-left: var(--a63-safe-area-left, 0px);
|
|
108
|
+
border-inline-end-width: var(--a63-control-border-width);
|
|
109
|
+
}
|
|
110
|
+
.a63-Sheet-popup[data-side='left'][data-starting-style],
|
|
111
|
+
.a63-Sheet-popup[data-side='left'][data-ending-style] {
|
|
112
|
+
translate: -2rem 0;
|
|
113
|
+
}
|
|
114
|
+
.a63-Sheet-popup[data-side='right'] {
|
|
115
|
+
grid-column-start: 2;
|
|
116
|
+
width: calc(100% - 3rem);
|
|
117
|
+
max-width: 28rem;
|
|
118
|
+
padding-right: var(--a63-safe-area-right, 0px);
|
|
119
|
+
border-inline-start-width: var(--a63-control-border-width);
|
|
120
|
+
}
|
|
121
|
+
.a63-Sheet-popup[data-side='right'][data-starting-style],
|
|
122
|
+
.a63-Sheet-popup[data-side='right'][data-ending-style] {
|
|
123
|
+
translate: 2rem 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Inset variant — a floating rounded card away from the edges (>=640px). */
|
|
127
|
+
@media (min-width: 640px) {
|
|
128
|
+
.a63-Sheet-popup[data-variant='inset'] {
|
|
129
|
+
border-width: var(--a63-control-border-width);
|
|
130
|
+
border-radius: var(--radius-2xl);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ── Close button ──────────────────────────────────────────────────────── */
|
|
135
|
+
.a63-Sheet-close-button {
|
|
136
|
+
position: absolute;
|
|
137
|
+
inset-inline-end: var(--a63-space-2);
|
|
138
|
+
top: var(--a63-space-2);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* ── Header / footer / title / description / panel ─────────────────────── */
|
|
142
|
+
.a63-Sheet-header {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
gap: var(--a63-space-2);
|
|
146
|
+
padding: var(--a63-space-6);
|
|
147
|
+
}
|
|
148
|
+
/* Tighten the header's bottom padding when a panel follows it. */
|
|
149
|
+
[data-slot='sheet-popup']:has([data-slot='sheet-panel']) .a63-Sheet-header {
|
|
150
|
+
padding-bottom: var(--a63-space-3);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.a63-Sheet-footer {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column-reverse;
|
|
156
|
+
gap: var(--a63-space-2);
|
|
157
|
+
padding-inline: var(--a63-space-6);
|
|
158
|
+
}
|
|
159
|
+
.a63-Sheet-footer[data-variant='default'] {
|
|
160
|
+
margin-top: auto;
|
|
161
|
+
border-top: var(--a63-control-border-width) solid var(--a63-border-subtle);
|
|
162
|
+
background-color: color-mix(in oklch, var(--a63-surface-muted) 72%, transparent);
|
|
163
|
+
padding-block: var(--a63-space-4);
|
|
164
|
+
}
|
|
165
|
+
.a63-Sheet-popup[data-variant='inset'] > .a63-Sheet-footer[data-variant='default'] {
|
|
166
|
+
border-end-start-radius: calc(var(--radius-2xl) - var(--a63-control-border-width));
|
|
167
|
+
border-end-end-radius: calc(var(--radius-2xl) - var(--a63-control-border-width));
|
|
168
|
+
background-clip: padding-box;
|
|
169
|
+
}
|
|
170
|
+
.a63-Sheet-footer[data-variant='bare'] {
|
|
171
|
+
padding-top: var(--a63-space-4);
|
|
172
|
+
padding-bottom: var(--a63-space-6);
|
|
173
|
+
}
|
|
174
|
+
@media (min-width: 640px) {
|
|
175
|
+
.a63-Sheet-footer {
|
|
176
|
+
flex-direction: row;
|
|
177
|
+
justify-content: flex-end;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.a63-Sheet-title {
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
font-size: var(--typography-lg-font-size, 1.25rem);
|
|
184
|
+
line-height: var(--typography-lg-line-height);
|
|
185
|
+
color: var(--a63-text-primary);
|
|
186
|
+
}
|
|
187
|
+
.a63-Sheet-description {
|
|
188
|
+
font-size: var(--typography-base-font-size);
|
|
189
|
+
line-height: var(--typography-base-line-height);
|
|
190
|
+
color: var(--a63-text-secondary);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.a63-Sheet-panel {
|
|
194
|
+
padding: var(--a63-space-6);
|
|
195
|
+
}
|
|
196
|
+
.a63-Sheet-popup > .a63-ScrollArea {
|
|
197
|
+
flex: 1 1 auto;
|
|
198
|
+
min-height: 0;
|
|
199
|
+
}
|
|
200
|
+
[data-slot='sheet-popup']:has([data-slot='sheet-header']) .a63-Sheet-panel {
|
|
201
|
+
padding-top: var(--a63-space-1);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@media (prefers-reduced-motion: reduce) {
|
|
205
|
+
.a63-Sheet-backdrop,
|
|
206
|
+
.a63-Sheet-popup {
|
|
207
|
+
transition: none;
|
|
208
|
+
}
|
|
209
|
+
}
|