@atom63/ui-react 0.2.0-beta.0 → 0.2.0-beta.10
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/LICENSE +21 -0
- package/README.md +54 -50
- package/dist/{button-sktq-nvV.d.ts → button-CfLIHg-R.d.ts} +1 -1
- package/dist/chunk-GDUMA6FI.js +2678 -0
- package/dist/chunk-GDUMA6FI.js.map +1 -0
- package/dist/{chunk-STCXERLM.js → chunk-J77BAGTA.js} +8 -148
- package/dist/chunk-J77BAGTA.js.map +1 -0
- package/dist/chunk-NBHGMMQN.js +135 -0
- package/dist/chunk-NBHGMMQN.js.map +1 -0
- package/dist/{chunk-7VSPECOH.js → chunk-R67OZVA2.js} +4 -14
- package/dist/chunk-R67OZVA2.js.map +1 -0
- package/dist/chunk-UPPHQLZ2.js +18 -0
- package/dist/chunk-UPPHQLZ2.js.map +1 -0
- package/dist/{chunk-MXNO63TC.js → chunk-X5L5DEUZ.js} +597 -290
- package/dist/chunk-X5L5DEUZ.js.map +1 -0
- package/dist/{destination-link-C9NKeKLe.d.ts → destination-link-DMLeR-oF.d.ts} +1 -1
- package/dist/index-BDzW8upQ.d.ts +442 -0
- package/dist/index.d.ts +56 -454
- package/dist/index.js +402 -2987
- package/dist/index.js.map +1 -1
- package/dist/layout/index.js +4 -4
- package/dist/layout/index.js.map +1 -1
- package/dist/media/index.d.ts +15 -4
- package/dist/media/index.js +213 -46
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-lightbox/parts/index.d.ts +23 -15
- package/dist/media/media-lightbox/parts/index.js +3 -2
- package/dist/preview/index.d.ts +16 -0
- package/dist/preview/index.js +6 -0
- package/dist/preview/index.js.map +1 -0
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +81 -36
- package/dist/theme/index.js.map +1 -1
- package/package.json +47 -43
- package/src/components/accordion/accordion.css +2 -4
- package/src/components/alert-dialog/alert-dialog.css +1 -1
- package/src/components/autocomplete/autocomplete.css +3 -7
- package/src/components/badge/badge.css +5 -8
- package/src/components/breadcrumb/breadcrumb.css +1 -2
- package/src/components/button/button.css +8 -6
- package/src/components/button-group/button-group.css +17 -1
- package/src/components/calendar/calendar.css +5 -8
- package/src/components/card/card.css +2 -2
- package/src/components/carousel/carousel.css +4 -8
- package/src/components/checkbox/checkbox.css +1 -1
- package/src/components/command/command.css +8 -0
- package/src/components/connected-panel/connected-panel.css +3 -2
- package/src/components/dialog/dialog.css +1 -1
- package/src/components/drawer/drawer.css +1 -1
- package/src/components/empty/empty.css +2 -2
- package/src/components/feedback-state/feedback-state.css +1 -1
- package/src/components/field/field.css +4 -4
- package/src/components/form/form.css +2 -2
- package/src/components/input/input.css +2 -6
- package/src/components/input-otp/input-otp.css +4 -11
- package/src/components/item/item.css +3 -3
- package/src/components/menu/menu.css +5 -4
- package/src/components/menubar/menubar.css +4 -1
- package/src/components/navigation-menu/navigation-menu.css +5 -1
- package/src/components/panel-setting-button/panel-setting-button.css +1 -1
- package/src/components/radio/radio.css +1 -1
- package/src/components/resizable/resizable.css +1 -1
- package/src/components/scroll-area/scroll-area.css +1 -2
- package/src/components/segmented-control/segmented-control.css +8 -1
- package/src/components/select/select.css +2 -6
- package/src/components/sidebar/sidebar.css +12 -12
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +8 -8
- package/src/components/slider/slider.css +6 -6
- package/src/components/switch/switch.css +3 -3
- package/src/components/table/table.css +7 -1
- package/src/components/tabs/tabs.css +15 -1
- package/src/components/textarea/textarea.css +2 -6
- package/src/components/toggle/toggle.css +5 -4
- package/src/components/toggle-group/toggle-group.css +4 -4
- package/src/media/media-lightbox/media-lightbox.css +15 -5
- package/src/styles/index.css +1 -0
- package/src/styles/utilities.css +2253 -0
- package/dist/chunk-7VSPECOH.js.map +0 -1
- package/dist/chunk-MXNO63TC.js.map +0 -1
- package/dist/chunk-STCXERLM.js.map +0 -1
|
@@ -0,0 +1,2678 @@
|
|
|
1
|
+
import { Button, ScrollArea } from './chunk-NBHGMMQN.js';
|
|
2
|
+
import { usePortalContainer } from './chunk-UPPHQLZ2.js';
|
|
3
|
+
import { cn } from './chunk-AJLHJRK6.js';
|
|
4
|
+
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
5
|
+
export { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
6
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
+
import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
|
|
8
|
+
export { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
|
|
9
|
+
import { inputContract, avatarContract, separatorContract, buttonGroupContract, cardContract, textareaContract, selectContract, sheetContract } from '@atom63/ui-foundation';
|
|
10
|
+
import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
|
|
11
|
+
export { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
12
|
+
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
13
|
+
export { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
14
|
+
import * as React3 from 'react';
|
|
15
|
+
import { useRef, useState, useCallback, useEffect } from 'react';
|
|
16
|
+
import { mergeProps } from '@base-ui/react/merge-props';
|
|
17
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
18
|
+
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
19
|
+
export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
20
|
+
import { Input as Input$1 } from '@base-ui/react/input';
|
|
21
|
+
export { Input as InputPrimitive } from '@base-ui/react/input';
|
|
22
|
+
import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
|
|
23
|
+
import { ChevronDown, ChevronLeft, ChevronRight, ChevronsUpDown, ChevronUp, Check, X } from 'lucide-react';
|
|
24
|
+
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
25
|
+
export { Progress as ProgressPrimitive } from '@base-ui/react/progress';
|
|
26
|
+
import { Select as Select$1 } from '@base-ui/react/select';
|
|
27
|
+
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
28
|
+
export { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
29
|
+
|
|
30
|
+
var AlertDialogCreateHandle = AlertDialog$1.createHandle;
|
|
31
|
+
var AlertDialog = AlertDialog$1.Root;
|
|
32
|
+
function AlertDialogPortal(props) {
|
|
33
|
+
return /* @__PURE__ */ jsx(AlertDialog$1.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
34
|
+
}
|
|
35
|
+
function AlertDialogTrigger({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
|
+
AlertDialog$1.Trigger,
|
|
41
|
+
{
|
|
42
|
+
className: cn("a63-AlertDialog-trigger", className),
|
|
43
|
+
"data-slot": "alert-dialog-trigger",
|
|
44
|
+
...props
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function AlertDialogBackdrop({
|
|
49
|
+
className,
|
|
50
|
+
...props
|
|
51
|
+
}) {
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
AlertDialog$1.Backdrop,
|
|
54
|
+
{
|
|
55
|
+
className: cn("a63-AlertDialog-backdrop", className),
|
|
56
|
+
"data-slot": "alert-dialog-backdrop",
|
|
57
|
+
...props
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
function AlertDialogViewport({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}) {
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
AlertDialog$1.Viewport,
|
|
67
|
+
{
|
|
68
|
+
className: cn("a63-AlertDialog-viewport", className),
|
|
69
|
+
"data-slot": "alert-dialog-viewport",
|
|
70
|
+
...props
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
function AlertDialogPopup({
|
|
75
|
+
className,
|
|
76
|
+
bottomStickOnMobile = true,
|
|
77
|
+
portalProps,
|
|
78
|
+
size = "default",
|
|
79
|
+
variant = "default",
|
|
80
|
+
...props
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ jsxs(AlertDialogPortal, { ...portalProps, children: [
|
|
83
|
+
/* @__PURE__ */ jsx(AlertDialogBackdrop, {}),
|
|
84
|
+
/* @__PURE__ */ jsx(AlertDialogViewport, { "data-stick-bottom": bottomStickOnMobile ? "" : void 0, children: /* @__PURE__ */ jsx(
|
|
85
|
+
AlertDialog$1.Popup,
|
|
86
|
+
{
|
|
87
|
+
"aria-modal": true,
|
|
88
|
+
className: cn("a63-AlertDialog-popup", className),
|
|
89
|
+
"data-size": size,
|
|
90
|
+
"data-slot": "alert-dialog-popup",
|
|
91
|
+
"data-stick-bottom": bottomStickOnMobile ? "" : void 0,
|
|
92
|
+
"data-variant": variant,
|
|
93
|
+
...props
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
] });
|
|
97
|
+
}
|
|
98
|
+
function AlertDialogHeader({
|
|
99
|
+
className,
|
|
100
|
+
...props
|
|
101
|
+
}) {
|
|
102
|
+
return /* @__PURE__ */ jsx(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
className: cn("a63-AlertDialog-header", className),
|
|
106
|
+
"data-slot": "alert-dialog-header",
|
|
107
|
+
...props
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function AlertDialogFooter({
|
|
112
|
+
className,
|
|
113
|
+
variant = "default",
|
|
114
|
+
...props
|
|
115
|
+
}) {
|
|
116
|
+
return /* @__PURE__ */ jsx(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
className: cn("a63-AlertDialog-footer", className),
|
|
120
|
+
"data-slot": "alert-dialog-footer",
|
|
121
|
+
"data-variant": variant,
|
|
122
|
+
...props
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
function AlertDialogMedia({
|
|
127
|
+
className,
|
|
128
|
+
...props
|
|
129
|
+
}) {
|
|
130
|
+
return /* @__PURE__ */ jsx(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
className: cn("a63-AlertDialog-media", className),
|
|
134
|
+
"data-slot": "alert-dialog-media",
|
|
135
|
+
...props
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
function AlertDialogTitle({
|
|
140
|
+
className,
|
|
141
|
+
...props
|
|
142
|
+
}) {
|
|
143
|
+
return /* @__PURE__ */ jsx(
|
|
144
|
+
AlertDialog$1.Title,
|
|
145
|
+
{
|
|
146
|
+
className: cn("a63-AlertDialog-title", className),
|
|
147
|
+
"data-slot": "alert-dialog-title",
|
|
148
|
+
...props
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function AlertDialogDescription({
|
|
153
|
+
className,
|
|
154
|
+
...props
|
|
155
|
+
}) {
|
|
156
|
+
return /* @__PURE__ */ jsx(
|
|
157
|
+
AlertDialog$1.Description,
|
|
158
|
+
{
|
|
159
|
+
className: cn("a63-AlertDialog-description", className),
|
|
160
|
+
"data-slot": "alert-dialog-description",
|
|
161
|
+
...props
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
function AlertDialogClose(props) {
|
|
166
|
+
return /* @__PURE__ */ jsx(AlertDialog$1.Close, { "data-slot": "alert-dialog-close", ...props });
|
|
167
|
+
}
|
|
168
|
+
function AlertDialogAction({
|
|
169
|
+
className,
|
|
170
|
+
variant = "default",
|
|
171
|
+
size = "md",
|
|
172
|
+
...props
|
|
173
|
+
}) {
|
|
174
|
+
return /* @__PURE__ */ jsx(
|
|
175
|
+
AlertDialog$1.Close,
|
|
176
|
+
{
|
|
177
|
+
className: cn(className),
|
|
178
|
+
"data-slot": "alert-dialog-action",
|
|
179
|
+
render: /* @__PURE__ */ jsx(Button, { size, variant }),
|
|
180
|
+
...props
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
function AlertDialogCancel({
|
|
185
|
+
className,
|
|
186
|
+
variant = "ghost",
|
|
187
|
+
size = "md",
|
|
188
|
+
...props
|
|
189
|
+
}) {
|
|
190
|
+
return /* @__PURE__ */ jsx(
|
|
191
|
+
AlertDialog$1.Close,
|
|
192
|
+
{
|
|
193
|
+
className: cn(className),
|
|
194
|
+
"data-slot": "alert-dialog-cancel",
|
|
195
|
+
render: /* @__PURE__ */ jsx(Button, { size, variant }),
|
|
196
|
+
...props
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
var Autocomplete = Autocomplete$1.Root;
|
|
201
|
+
function ChevronsUpDownIcon() {
|
|
202
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
203
|
+
"path",
|
|
204
|
+
{
|
|
205
|
+
d: "M5 6.5 8 3.5 11 6.5M5 9.5l3 3 3-3",
|
|
206
|
+
stroke: "currentColor",
|
|
207
|
+
strokeLinecap: "round",
|
|
208
|
+
strokeLinejoin: "round",
|
|
209
|
+
strokeWidth: "1.5"
|
|
210
|
+
}
|
|
211
|
+
) });
|
|
212
|
+
}
|
|
213
|
+
function CloseIcon() {
|
|
214
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
215
|
+
"path",
|
|
216
|
+
{
|
|
217
|
+
d: "m4 4 8 8M12 4l-8 8",
|
|
218
|
+
stroke: "currentColor",
|
|
219
|
+
strokeLinecap: "round",
|
|
220
|
+
strokeLinejoin: "round",
|
|
221
|
+
strokeWidth: "1.5"
|
|
222
|
+
}
|
|
223
|
+
) });
|
|
224
|
+
}
|
|
225
|
+
function AutocompleteInput({
|
|
226
|
+
className,
|
|
227
|
+
clearProps,
|
|
228
|
+
showClear = false,
|
|
229
|
+
showTrigger = false,
|
|
230
|
+
size,
|
|
231
|
+
startAddon,
|
|
232
|
+
triggerProps,
|
|
233
|
+
...props
|
|
234
|
+
}) {
|
|
235
|
+
const sizeValue = size ?? "default";
|
|
236
|
+
const dataSize = typeof sizeValue === "number" ? void 0 : sizeValue;
|
|
237
|
+
const nativeSize = typeof sizeValue === "number" ? sizeValue : void 0;
|
|
238
|
+
return /* @__PURE__ */ jsxs(
|
|
239
|
+
Autocomplete$1.InputGroup,
|
|
240
|
+
{
|
|
241
|
+
className: "a63-Autocomplete-input-group",
|
|
242
|
+
"data-size": dataSize,
|
|
243
|
+
"data-slot": "autocomplete-input-group",
|
|
244
|
+
children: [
|
|
245
|
+
startAddon ? /* @__PURE__ */ jsx(
|
|
246
|
+
"div",
|
|
247
|
+
{
|
|
248
|
+
"aria-hidden": "true",
|
|
249
|
+
className: "a63-Autocomplete-start-addon",
|
|
250
|
+
"data-slot": "autocomplete-start-addon",
|
|
251
|
+
children: startAddon
|
|
252
|
+
}
|
|
253
|
+
) : null,
|
|
254
|
+
/* @__PURE__ */ jsx(
|
|
255
|
+
Autocomplete$1.Input,
|
|
256
|
+
{
|
|
257
|
+
className: cn("a63-Autocomplete-input", className),
|
|
258
|
+
"data-has-start-addon": startAddon ? "" : void 0,
|
|
259
|
+
"data-slot": "autocomplete-input",
|
|
260
|
+
size: nativeSize,
|
|
261
|
+
...props
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
showTrigger ? /* @__PURE__ */ jsx(
|
|
265
|
+
AutocompleteTrigger,
|
|
266
|
+
{
|
|
267
|
+
"aria-label": "Show suggestions",
|
|
268
|
+
className: cn("a63-Autocomplete-adornment", triggerProps?.className),
|
|
269
|
+
...triggerProps,
|
|
270
|
+
children: /* @__PURE__ */ jsx(Autocomplete$1.Icon, { "data-slot": "autocomplete-icon", children: /* @__PURE__ */ jsx(ChevronsUpDownIcon, {}) })
|
|
271
|
+
}
|
|
272
|
+
) : null,
|
|
273
|
+
showClear ? /* @__PURE__ */ jsx(
|
|
274
|
+
AutocompleteClear,
|
|
275
|
+
{
|
|
276
|
+
"aria-label": "Clear",
|
|
277
|
+
className: cn("a63-Autocomplete-adornment", clearProps?.className),
|
|
278
|
+
...clearProps,
|
|
279
|
+
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
280
|
+
}
|
|
281
|
+
) : null
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
function AutocompletePopup({
|
|
287
|
+
align = "start",
|
|
288
|
+
alignOffset,
|
|
289
|
+
anchor,
|
|
290
|
+
children,
|
|
291
|
+
className,
|
|
292
|
+
portalProps,
|
|
293
|
+
side = "bottom",
|
|
294
|
+
sideOffset = 4,
|
|
295
|
+
...props
|
|
296
|
+
}) {
|
|
297
|
+
return /* @__PURE__ */ jsx(Autocomplete$1.Portal, { ...portalProps, children: /* @__PURE__ */ jsx(
|
|
298
|
+
Autocomplete$1.Positioner,
|
|
299
|
+
{
|
|
300
|
+
align,
|
|
301
|
+
alignOffset,
|
|
302
|
+
anchor,
|
|
303
|
+
className: "a63-Autocomplete-positioner",
|
|
304
|
+
"data-slot": "autocomplete-positioner",
|
|
305
|
+
side,
|
|
306
|
+
sideOffset,
|
|
307
|
+
children: /* @__PURE__ */ jsx("span", { className: "a63-Autocomplete-surface a63-Menu-popup", children: /* @__PURE__ */ jsx(
|
|
308
|
+
Autocomplete$1.Popup,
|
|
309
|
+
{
|
|
310
|
+
className: cn("a63-Autocomplete-popup", className),
|
|
311
|
+
"data-slot": "autocomplete-popup",
|
|
312
|
+
...props,
|
|
313
|
+
children
|
|
314
|
+
}
|
|
315
|
+
) })
|
|
316
|
+
}
|
|
317
|
+
) });
|
|
318
|
+
}
|
|
319
|
+
function AutocompleteItem({
|
|
320
|
+
children,
|
|
321
|
+
className,
|
|
322
|
+
...props
|
|
323
|
+
}) {
|
|
324
|
+
return /* @__PURE__ */ jsx(
|
|
325
|
+
Autocomplete$1.Item,
|
|
326
|
+
{
|
|
327
|
+
className: cn("a63-Menu-item", "a63-Autocomplete-item", className),
|
|
328
|
+
"data-slot": "autocomplete-item",
|
|
329
|
+
...props,
|
|
330
|
+
children
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
function AutocompleteSeparator({
|
|
335
|
+
className,
|
|
336
|
+
...props
|
|
337
|
+
}) {
|
|
338
|
+
return /* @__PURE__ */ jsx(
|
|
339
|
+
Autocomplete$1.Separator,
|
|
340
|
+
{
|
|
341
|
+
className: cn("a63-Menu-separator", "a63-Autocomplete-separator", className),
|
|
342
|
+
"data-slot": "autocomplete-separator",
|
|
343
|
+
...props
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
function AutocompleteGroup({
|
|
348
|
+
className,
|
|
349
|
+
...props
|
|
350
|
+
}) {
|
|
351
|
+
return /* @__PURE__ */ jsx(
|
|
352
|
+
Autocomplete$1.Group,
|
|
353
|
+
{
|
|
354
|
+
className: cn("a63-Autocomplete-group", className),
|
|
355
|
+
"data-slot": "autocomplete-group",
|
|
356
|
+
...props
|
|
357
|
+
}
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
function AutocompleteGroupLabel({
|
|
361
|
+
className,
|
|
362
|
+
...props
|
|
363
|
+
}) {
|
|
364
|
+
return /* @__PURE__ */ jsx(
|
|
365
|
+
Autocomplete$1.GroupLabel,
|
|
366
|
+
{
|
|
367
|
+
className: cn("a63-Menu-label", "a63-Autocomplete-group-label", className),
|
|
368
|
+
"data-slot": "autocomplete-group-label",
|
|
369
|
+
...props
|
|
370
|
+
}
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
function AutocompleteEmpty({
|
|
374
|
+
className,
|
|
375
|
+
...props
|
|
376
|
+
}) {
|
|
377
|
+
return /* @__PURE__ */ jsx(
|
|
378
|
+
Autocomplete$1.Empty,
|
|
379
|
+
{
|
|
380
|
+
className: cn("a63-Autocomplete-empty", className),
|
|
381
|
+
"data-slot": "autocomplete-empty",
|
|
382
|
+
...props
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
function AutocompleteRow({
|
|
387
|
+
className,
|
|
388
|
+
...props
|
|
389
|
+
}) {
|
|
390
|
+
return /* @__PURE__ */ jsx(
|
|
391
|
+
Autocomplete$1.Row,
|
|
392
|
+
{
|
|
393
|
+
className: cn("a63-Autocomplete-row", className),
|
|
394
|
+
"data-slot": "autocomplete-row",
|
|
395
|
+
...props
|
|
396
|
+
}
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
function AutocompleteValue({
|
|
400
|
+
...props
|
|
401
|
+
}) {
|
|
402
|
+
return /* @__PURE__ */ jsx(Autocomplete$1.Value, { "data-slot": "autocomplete-value", ...props });
|
|
403
|
+
}
|
|
404
|
+
function AutocompleteList({
|
|
405
|
+
className,
|
|
406
|
+
...props
|
|
407
|
+
}) {
|
|
408
|
+
return /* @__PURE__ */ jsx(ScrollArea, { scrollFade: true, scrollbarGutter: true, children: /* @__PURE__ */ jsx(
|
|
409
|
+
Autocomplete$1.List,
|
|
410
|
+
{
|
|
411
|
+
className: cn("a63-Autocomplete-list", className),
|
|
412
|
+
"data-slot": "autocomplete-list",
|
|
413
|
+
...props
|
|
414
|
+
}
|
|
415
|
+
) });
|
|
416
|
+
}
|
|
417
|
+
function AutocompleteClear({
|
|
418
|
+
children,
|
|
419
|
+
className,
|
|
420
|
+
...props
|
|
421
|
+
}) {
|
|
422
|
+
return /* @__PURE__ */ jsx(
|
|
423
|
+
Autocomplete$1.Clear,
|
|
424
|
+
{
|
|
425
|
+
className: cn("a63-Autocomplete-adornment", className),
|
|
426
|
+
"data-slot": "autocomplete-clear",
|
|
427
|
+
...props,
|
|
428
|
+
children: children ?? /* @__PURE__ */ jsx(CloseIcon, {})
|
|
429
|
+
}
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
function AutocompleteStatus({
|
|
433
|
+
className,
|
|
434
|
+
...props
|
|
435
|
+
}) {
|
|
436
|
+
return /* @__PURE__ */ jsx(
|
|
437
|
+
Autocomplete$1.Status,
|
|
438
|
+
{
|
|
439
|
+
className: cn("a63-Autocomplete-status", className),
|
|
440
|
+
"data-slot": "autocomplete-status",
|
|
441
|
+
...props
|
|
442
|
+
}
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
function AutocompleteCollection({
|
|
446
|
+
...props
|
|
447
|
+
}) {
|
|
448
|
+
return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "autocomplete-collection", ...props });
|
|
449
|
+
}
|
|
450
|
+
function AutocompleteTrigger({
|
|
451
|
+
children,
|
|
452
|
+
className,
|
|
453
|
+
...props
|
|
454
|
+
}) {
|
|
455
|
+
return /* @__PURE__ */ jsx(
|
|
456
|
+
Autocomplete$1.Trigger,
|
|
457
|
+
{
|
|
458
|
+
className,
|
|
459
|
+
"data-slot": "autocomplete-trigger",
|
|
460
|
+
...props,
|
|
461
|
+
children
|
|
462
|
+
}
|
|
463
|
+
);
|
|
464
|
+
}
|
|
465
|
+
var useAutocompleteFilter = Autocomplete$1.useFilter;
|
|
466
|
+
function Avatar({
|
|
467
|
+
className,
|
|
468
|
+
size = avatarContract.defaultSize,
|
|
469
|
+
...props
|
|
470
|
+
}) {
|
|
471
|
+
return /* @__PURE__ */ jsx(
|
|
472
|
+
Avatar$1.Root,
|
|
473
|
+
{
|
|
474
|
+
className: cn("a63-Avatar", className),
|
|
475
|
+
"data-size": size,
|
|
476
|
+
"data-slot": "avatar",
|
|
477
|
+
...props
|
|
478
|
+
}
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
function AvatarImage({
|
|
482
|
+
className,
|
|
483
|
+
...props
|
|
484
|
+
}) {
|
|
485
|
+
return /* @__PURE__ */ jsx(
|
|
486
|
+
Avatar$1.Image,
|
|
487
|
+
{
|
|
488
|
+
className: cn("a63-Avatar-image", className),
|
|
489
|
+
"data-slot": "avatar-image",
|
|
490
|
+
...props
|
|
491
|
+
}
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
function AvatarFallback({
|
|
495
|
+
className,
|
|
496
|
+
...props
|
|
497
|
+
}) {
|
|
498
|
+
return /* @__PURE__ */ jsx(
|
|
499
|
+
Avatar$1.Fallback,
|
|
500
|
+
{
|
|
501
|
+
className: cn("a63-Avatar-fallback", className),
|
|
502
|
+
"data-slot": "avatar-fallback",
|
|
503
|
+
...props
|
|
504
|
+
}
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
function AvatarBadge({
|
|
508
|
+
className,
|
|
509
|
+
...props
|
|
510
|
+
}) {
|
|
511
|
+
return /* @__PURE__ */ jsx("span", { className: cn("a63-Avatar-badge", className), "data-slot": "avatar-badge", ...props });
|
|
512
|
+
}
|
|
513
|
+
function AvatarGroup({
|
|
514
|
+
className,
|
|
515
|
+
...props
|
|
516
|
+
}) {
|
|
517
|
+
return /* @__PURE__ */ jsx("div", { className: cn("a63-Avatar-group", className), "data-slot": "avatar-group", ...props });
|
|
518
|
+
}
|
|
519
|
+
function AvatarGroupCount({
|
|
520
|
+
className,
|
|
521
|
+
...props
|
|
522
|
+
}) {
|
|
523
|
+
return /* @__PURE__ */ jsx(
|
|
524
|
+
"div",
|
|
525
|
+
{
|
|
526
|
+
className: cn("a63-Avatar-group-count", className),
|
|
527
|
+
"data-slot": "avatar-group-count",
|
|
528
|
+
...props
|
|
529
|
+
}
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
function Separator({
|
|
533
|
+
className,
|
|
534
|
+
decorative = false,
|
|
535
|
+
orientation = separatorContract.defaultOrientation,
|
|
536
|
+
variant = separatorContract.defaultVariant,
|
|
537
|
+
...props
|
|
538
|
+
}) {
|
|
539
|
+
return /* @__PURE__ */ jsx(
|
|
540
|
+
Separator$1,
|
|
541
|
+
{
|
|
542
|
+
...decorative ? { "aria-hidden": true, role: "presentation" } : {},
|
|
543
|
+
className: cn("a63-Separator", className),
|
|
544
|
+
"data-slot": "separator",
|
|
545
|
+
"data-variant": variant,
|
|
546
|
+
orientation,
|
|
547
|
+
...props
|
|
548
|
+
}
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
var ButtonGroupContext = React3.createContext(false);
|
|
552
|
+
function ButtonGroupProvider({
|
|
553
|
+
children
|
|
554
|
+
}) {
|
|
555
|
+
return /* @__PURE__ */ jsx(ButtonGroupContext.Provider, { value: true, children });
|
|
556
|
+
}
|
|
557
|
+
function useButtonGroupContext() {
|
|
558
|
+
return React3.useContext(ButtonGroupContext);
|
|
559
|
+
}
|
|
560
|
+
function ButtonGroup({
|
|
561
|
+
className,
|
|
562
|
+
orientation = buttonGroupContract.defaultOrientation,
|
|
563
|
+
size = buttonGroupContract.defaultSize,
|
|
564
|
+
...props
|
|
565
|
+
}) {
|
|
566
|
+
return /* @__PURE__ */ jsx(ButtonGroupProvider, { children: /* @__PURE__ */ jsx(
|
|
567
|
+
"div",
|
|
568
|
+
{
|
|
569
|
+
className: cn("a63-ButtonGroup", className),
|
|
570
|
+
"data-orientation": orientation,
|
|
571
|
+
"data-size": size,
|
|
572
|
+
"data-slot": "button-group",
|
|
573
|
+
role: "group",
|
|
574
|
+
...props
|
|
575
|
+
}
|
|
576
|
+
) });
|
|
577
|
+
}
|
|
578
|
+
function ButtonGroupText({
|
|
579
|
+
className,
|
|
580
|
+
render,
|
|
581
|
+
...props
|
|
582
|
+
}) {
|
|
583
|
+
return useRender({
|
|
584
|
+
defaultTagName: "div",
|
|
585
|
+
props: mergeProps({ className: cn("a63-ButtonGroup-text", className) }, props, {
|
|
586
|
+
"data-slot": "button-group-text"
|
|
587
|
+
}),
|
|
588
|
+
render,
|
|
589
|
+
state: {
|
|
590
|
+
slot: "button-group-text"
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
function ButtonGroupSeparator({
|
|
595
|
+
className,
|
|
596
|
+
orientation = "vertical",
|
|
597
|
+
...props
|
|
598
|
+
}) {
|
|
599
|
+
return /* @__PURE__ */ jsx(
|
|
600
|
+
Separator,
|
|
601
|
+
{
|
|
602
|
+
className: cn("a63-ButtonGroup-separator", className),
|
|
603
|
+
"data-slot": "button-group-separator",
|
|
604
|
+
orientation,
|
|
605
|
+
...props
|
|
606
|
+
}
|
|
607
|
+
);
|
|
608
|
+
}
|
|
609
|
+
function paddingAttrs(padding, fallback) {
|
|
610
|
+
if (typeof padding === "object") {
|
|
611
|
+
return {
|
|
612
|
+
"data-padding": padding.base ?? fallback,
|
|
613
|
+
...padding.sm ? { "data-padding-sm": padding.sm } : {}
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
return { "data-padding": padding };
|
|
617
|
+
}
|
|
618
|
+
function Card({
|
|
619
|
+
className,
|
|
620
|
+
render,
|
|
621
|
+
variant = cardContract.defaultVariant,
|
|
622
|
+
padding,
|
|
623
|
+
...props
|
|
624
|
+
}) {
|
|
625
|
+
const resolvedPadding = padding ?? (variant === "overlay" ? "none" : "md");
|
|
626
|
+
const defaultProps = {
|
|
627
|
+
className: cn("a63-Card", className),
|
|
628
|
+
"data-slot": "card",
|
|
629
|
+
"data-variant": variant,
|
|
630
|
+
"data-padding": resolvedPadding
|
|
631
|
+
};
|
|
632
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
633
|
+
}
|
|
634
|
+
function CardHeader({
|
|
635
|
+
className,
|
|
636
|
+
render,
|
|
637
|
+
padding = "md",
|
|
638
|
+
...props
|
|
639
|
+
}) {
|
|
640
|
+
const defaultProps = {
|
|
641
|
+
className: cn("a63-Card-header", className),
|
|
642
|
+
"data-slot": "card-header",
|
|
643
|
+
"data-padding": padding
|
|
644
|
+
};
|
|
645
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
646
|
+
}
|
|
647
|
+
function CardLabel({
|
|
648
|
+
className,
|
|
649
|
+
render,
|
|
650
|
+
...props
|
|
651
|
+
}) {
|
|
652
|
+
const defaultProps = { className: cn("a63-Card-label", className), "data-slot": "card-label" };
|
|
653
|
+
return useRender({
|
|
654
|
+
defaultTagName: "span",
|
|
655
|
+
props: mergeProps(defaultProps, props),
|
|
656
|
+
render
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
function CardMedia({
|
|
660
|
+
className,
|
|
661
|
+
render,
|
|
662
|
+
aspectRatio,
|
|
663
|
+
hoverScale = true,
|
|
664
|
+
style,
|
|
665
|
+
...props
|
|
666
|
+
}) {
|
|
667
|
+
const defaultProps = {
|
|
668
|
+
className: cn("a63-Card-media", className),
|
|
669
|
+
"data-slot": "card-media",
|
|
670
|
+
...hoverScale ? { "data-hover-scale": "" } : {},
|
|
671
|
+
style: aspectRatio ? { aspectRatio, ...style } : style
|
|
672
|
+
};
|
|
673
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
674
|
+
}
|
|
675
|
+
function CardMediaOverlay({
|
|
676
|
+
className,
|
|
677
|
+
render,
|
|
678
|
+
aspectRatio,
|
|
679
|
+
style,
|
|
680
|
+
...props
|
|
681
|
+
}) {
|
|
682
|
+
const defaultProps = {
|
|
683
|
+
className: cn("a63-Card-media-overlay", className),
|
|
684
|
+
"data-slot": "card-media-overlay",
|
|
685
|
+
...aspectRatio ? { "data-aspect": "" } : {},
|
|
686
|
+
style: aspectRatio ? { aspectRatio, ...style } : style
|
|
687
|
+
};
|
|
688
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
689
|
+
}
|
|
690
|
+
function CardMediaOverlayImage({
|
|
691
|
+
className,
|
|
692
|
+
render,
|
|
693
|
+
...props
|
|
694
|
+
}) {
|
|
695
|
+
const defaultProps = {
|
|
696
|
+
className: cn("a63-Card-media-overlay-image", className),
|
|
697
|
+
"data-slot": "card-media-overlay-image"
|
|
698
|
+
};
|
|
699
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
700
|
+
}
|
|
701
|
+
function CardMediaOverlayScrim({
|
|
702
|
+
className,
|
|
703
|
+
render,
|
|
704
|
+
...props
|
|
705
|
+
}) {
|
|
706
|
+
const defaultProps = {
|
|
707
|
+
className: cn("a63-Card-media-overlay-scrim", className),
|
|
708
|
+
"data-slot": "card-media-overlay-scrim"
|
|
709
|
+
};
|
|
710
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
711
|
+
}
|
|
712
|
+
function CardMediaOverlayTopRight({
|
|
713
|
+
className,
|
|
714
|
+
render,
|
|
715
|
+
...props
|
|
716
|
+
}) {
|
|
717
|
+
const defaultProps = {
|
|
718
|
+
className: cn("a63-Card-media-overlay-top-right", className),
|
|
719
|
+
"data-slot": "card-media-overlay-top-right"
|
|
720
|
+
};
|
|
721
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
722
|
+
}
|
|
723
|
+
function CardMediaOverlayBottom({
|
|
724
|
+
className,
|
|
725
|
+
render,
|
|
726
|
+
...props
|
|
727
|
+
}) {
|
|
728
|
+
const defaultProps = {
|
|
729
|
+
className: cn("a63-Card-media-overlay-bottom", className),
|
|
730
|
+
"data-slot": "card-media-overlay-bottom"
|
|
731
|
+
};
|
|
732
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
733
|
+
}
|
|
734
|
+
function CardMediaOverlayIconButton({
|
|
735
|
+
className,
|
|
736
|
+
render,
|
|
737
|
+
...props
|
|
738
|
+
}) {
|
|
739
|
+
const defaultProps = {
|
|
740
|
+
className: cn("a63-Card-media-overlay-icon-button", className),
|
|
741
|
+
"data-slot": "card-media-overlay-icon-button"
|
|
742
|
+
};
|
|
743
|
+
return useRender({
|
|
744
|
+
defaultTagName: "span",
|
|
745
|
+
props: mergeProps(defaultProps, props),
|
|
746
|
+
render
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
function CardContent({
|
|
750
|
+
className,
|
|
751
|
+
render,
|
|
752
|
+
padding = "md",
|
|
753
|
+
...props
|
|
754
|
+
}) {
|
|
755
|
+
const defaultProps = {
|
|
756
|
+
className: cn("a63-Card-content", className),
|
|
757
|
+
"data-slot": "card-content",
|
|
758
|
+
...paddingAttrs(padding, "md")
|
|
759
|
+
};
|
|
760
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
761
|
+
}
|
|
762
|
+
function CardTitle({
|
|
763
|
+
className,
|
|
764
|
+
render,
|
|
765
|
+
lineClamp = 2,
|
|
766
|
+
...props
|
|
767
|
+
}) {
|
|
768
|
+
const defaultProps = {
|
|
769
|
+
className: cn("a63-Card-title", className),
|
|
770
|
+
"data-slot": "card-title",
|
|
771
|
+
...lineClamp ? { "data-line-clamp": String(lineClamp) } : {}
|
|
772
|
+
};
|
|
773
|
+
return useRender({
|
|
774
|
+
defaultTagName: "span",
|
|
775
|
+
props: mergeProps(defaultProps, props),
|
|
776
|
+
render
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
function CardDescription({
|
|
780
|
+
className,
|
|
781
|
+
render,
|
|
782
|
+
lineClamp = 3,
|
|
783
|
+
...props
|
|
784
|
+
}) {
|
|
785
|
+
const defaultProps = {
|
|
786
|
+
className: cn("a63-Card-description", className),
|
|
787
|
+
"data-slot": "card-description",
|
|
788
|
+
...lineClamp ? { "data-line-clamp": String(lineClamp) } : {}
|
|
789
|
+
};
|
|
790
|
+
return useRender({
|
|
791
|
+
defaultTagName: "span",
|
|
792
|
+
props: mergeProps(defaultProps, props),
|
|
793
|
+
render
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
function CardTags({
|
|
797
|
+
className,
|
|
798
|
+
render,
|
|
799
|
+
...props
|
|
800
|
+
}) {
|
|
801
|
+
const defaultProps = { className: cn("a63-Card-tags", className), "data-slot": "card-tags" };
|
|
802
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
803
|
+
}
|
|
804
|
+
function CardFooter({
|
|
805
|
+
className,
|
|
806
|
+
render,
|
|
807
|
+
padding = "md",
|
|
808
|
+
...props
|
|
809
|
+
}) {
|
|
810
|
+
const defaultProps = {
|
|
811
|
+
className: cn("a63-Card-footer", className),
|
|
812
|
+
"data-slot": "card-footer",
|
|
813
|
+
...paddingAttrs(padding, "md")
|
|
814
|
+
};
|
|
815
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
816
|
+
}
|
|
817
|
+
function CardAction({
|
|
818
|
+
className,
|
|
819
|
+
render,
|
|
820
|
+
...props
|
|
821
|
+
}) {
|
|
822
|
+
const defaultProps = { className: cn("a63-Card-action", className), "data-slot": "card-action" };
|
|
823
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
824
|
+
}
|
|
825
|
+
function CardCursorLabel({
|
|
826
|
+
className,
|
|
827
|
+
render,
|
|
828
|
+
...props
|
|
829
|
+
}) {
|
|
830
|
+
const defaultProps = {
|
|
831
|
+
className: cn("a63-Card-cursor-label", className),
|
|
832
|
+
"data-slot": "card-cursor-label"
|
|
833
|
+
};
|
|
834
|
+
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
835
|
+
}
|
|
836
|
+
var cardLinkClassName = "a63-CardLink";
|
|
837
|
+
function useCardCursor(options = {}) {
|
|
838
|
+
const { onMove } = options;
|
|
839
|
+
const ref = useRef(null);
|
|
840
|
+
const rectRef = useRef(null);
|
|
841
|
+
const [active, setActive] = useState(false);
|
|
842
|
+
const apply = useCallback(
|
|
843
|
+
(clientX, clientY) => {
|
|
844
|
+
const rect = rectRef.current;
|
|
845
|
+
if (!rect) {
|
|
846
|
+
return;
|
|
847
|
+
}
|
|
848
|
+
const x = clientX - rect.left;
|
|
849
|
+
const y = clientY - rect.top;
|
|
850
|
+
if (onMove) {
|
|
851
|
+
onMove({ x, y });
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
const el = ref.current;
|
|
855
|
+
if (el) {
|
|
856
|
+
el.style.setProperty("--a63-card-cursor-x", `${x}px`);
|
|
857
|
+
el.style.setProperty("--a63-card-cursor-y", `${y}px`);
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
[onMove]
|
|
861
|
+
);
|
|
862
|
+
const onPointerEnter = useCallback(
|
|
863
|
+
(event) => {
|
|
864
|
+
if (!ref.current) {
|
|
865
|
+
return;
|
|
866
|
+
}
|
|
867
|
+
rectRef.current = ref.current.getBoundingClientRect();
|
|
868
|
+
apply(event.clientX, event.clientY);
|
|
869
|
+
setActive(true);
|
|
870
|
+
},
|
|
871
|
+
[apply]
|
|
872
|
+
);
|
|
873
|
+
const onPointerMove = useCallback(
|
|
874
|
+
(event) => apply(event.clientX, event.clientY),
|
|
875
|
+
[apply]
|
|
876
|
+
);
|
|
877
|
+
const onPointerLeave = useCallback(() => {
|
|
878
|
+
rectRef.current = null;
|
|
879
|
+
setActive(false);
|
|
880
|
+
}, []);
|
|
881
|
+
return { ref, active, onPointerEnter, onPointerMove, onPointerLeave };
|
|
882
|
+
}
|
|
883
|
+
var CommandDialog = Dialog$1.Root;
|
|
884
|
+
var CommandDialogPortal = Dialog$1.Portal;
|
|
885
|
+
var CommandCreateHandle = Dialog$1.createHandle;
|
|
886
|
+
function CommandDialogTrigger(props) {
|
|
887
|
+
return /* @__PURE__ */ jsx(Dialog$1.Trigger, { "data-slot": "command-dialog-trigger", ...props });
|
|
888
|
+
}
|
|
889
|
+
function CommandDialogBackdrop({
|
|
890
|
+
className,
|
|
891
|
+
...props
|
|
892
|
+
}) {
|
|
893
|
+
return /* @__PURE__ */ jsx(
|
|
894
|
+
Dialog$1.Backdrop,
|
|
895
|
+
{
|
|
896
|
+
className: cn("a63-Command-backdrop", className),
|
|
897
|
+
"data-slot": "command-dialog-backdrop",
|
|
898
|
+
...props
|
|
899
|
+
}
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
function CommandDialogViewport({
|
|
903
|
+
className,
|
|
904
|
+
...props
|
|
905
|
+
}) {
|
|
906
|
+
return /* @__PURE__ */ jsx(
|
|
907
|
+
Dialog$1.Viewport,
|
|
908
|
+
{
|
|
909
|
+
className: cn("a63-Command-viewport", className),
|
|
910
|
+
"data-slot": "command-dialog-viewport",
|
|
911
|
+
...props
|
|
912
|
+
}
|
|
913
|
+
);
|
|
914
|
+
}
|
|
915
|
+
function CommandDialogPopup({
|
|
916
|
+
className,
|
|
917
|
+
children,
|
|
918
|
+
...props
|
|
919
|
+
}) {
|
|
920
|
+
return /* @__PURE__ */ jsxs(CommandDialogPortal, { children: [
|
|
921
|
+
/* @__PURE__ */ jsx(CommandDialogBackdrop, {}),
|
|
922
|
+
/* @__PURE__ */ jsx(CommandDialogViewport, { children: /* @__PURE__ */ jsx(
|
|
923
|
+
Dialog$1.Popup,
|
|
924
|
+
{
|
|
925
|
+
className: cn("a63-Command-popup", className),
|
|
926
|
+
"data-slot": "command-dialog-popup",
|
|
927
|
+
...props,
|
|
928
|
+
children
|
|
929
|
+
}
|
|
930
|
+
) })
|
|
931
|
+
] });
|
|
932
|
+
}
|
|
933
|
+
function Command({
|
|
934
|
+
autoHighlight = "always",
|
|
935
|
+
keepHighlight = true,
|
|
936
|
+
...props
|
|
937
|
+
}) {
|
|
938
|
+
return /* @__PURE__ */ jsx(
|
|
939
|
+
Autocomplete$1.Root,
|
|
940
|
+
{
|
|
941
|
+
autoHighlight,
|
|
942
|
+
"data-slot": "command",
|
|
943
|
+
inline: true,
|
|
944
|
+
keepHighlight,
|
|
945
|
+
open: true,
|
|
946
|
+
...props
|
|
947
|
+
}
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
function SearchIcon() {
|
|
951
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "18", viewBox: "0 0 24 24", width: "18", children: /* @__PURE__ */ jsx(
|
|
952
|
+
"path",
|
|
953
|
+
{
|
|
954
|
+
d: "M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5",
|
|
955
|
+
stroke: "currentColor",
|
|
956
|
+
strokeLinecap: "round",
|
|
957
|
+
strokeLinejoin: "round",
|
|
958
|
+
strokeWidth: "1.75"
|
|
959
|
+
}
|
|
960
|
+
) });
|
|
961
|
+
}
|
|
962
|
+
function CommandInput({
|
|
963
|
+
className,
|
|
964
|
+
placeholder,
|
|
965
|
+
...props
|
|
966
|
+
}) {
|
|
967
|
+
return /* @__PURE__ */ jsxs("div", { className: "a63-Command-input-wrapper", "data-slot": "command-input-wrapper", children: [
|
|
968
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "a63-Command-input-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
|
|
969
|
+
/* @__PURE__ */ jsx(
|
|
970
|
+
Autocomplete$1.Input,
|
|
971
|
+
{
|
|
972
|
+
"aria-expanded": true,
|
|
973
|
+
autoFocus: true,
|
|
974
|
+
className: cn("a63-Command-input", className),
|
|
975
|
+
"data-slot": "command-input",
|
|
976
|
+
placeholder,
|
|
977
|
+
...props
|
|
978
|
+
}
|
|
979
|
+
)
|
|
980
|
+
] });
|
|
981
|
+
}
|
|
982
|
+
function CommandPanel({
|
|
983
|
+
className,
|
|
984
|
+
children,
|
|
985
|
+
...props
|
|
986
|
+
}) {
|
|
987
|
+
return /* @__PURE__ */ jsx(
|
|
988
|
+
ScrollArea,
|
|
989
|
+
{
|
|
990
|
+
className: cn("a63-Command-panel", className),
|
|
991
|
+
"data-slot": "command-panel",
|
|
992
|
+
scrollFade: true,
|
|
993
|
+
showScrollbarOnHover: true,
|
|
994
|
+
...props,
|
|
995
|
+
children
|
|
996
|
+
}
|
|
997
|
+
);
|
|
998
|
+
}
|
|
999
|
+
function CommandList({
|
|
1000
|
+
className,
|
|
1001
|
+
...props
|
|
1002
|
+
}) {
|
|
1003
|
+
return /* @__PURE__ */ jsx(
|
|
1004
|
+
Autocomplete$1.List,
|
|
1005
|
+
{
|
|
1006
|
+
className: cn("a63-Command-list", className),
|
|
1007
|
+
"data-slot": "command-list",
|
|
1008
|
+
...props
|
|
1009
|
+
}
|
|
1010
|
+
);
|
|
1011
|
+
}
|
|
1012
|
+
function CommandEmpty({
|
|
1013
|
+
className,
|
|
1014
|
+
...props
|
|
1015
|
+
}) {
|
|
1016
|
+
return /* @__PURE__ */ jsx(
|
|
1017
|
+
Autocomplete$1.Empty,
|
|
1018
|
+
{
|
|
1019
|
+
className: cn("a63-Command-empty", className),
|
|
1020
|
+
"data-slot": "command-empty",
|
|
1021
|
+
...props
|
|
1022
|
+
}
|
|
1023
|
+
);
|
|
1024
|
+
}
|
|
1025
|
+
function CommandGroup({
|
|
1026
|
+
className,
|
|
1027
|
+
...props
|
|
1028
|
+
}) {
|
|
1029
|
+
return /* @__PURE__ */ jsx(
|
|
1030
|
+
Autocomplete$1.Group,
|
|
1031
|
+
{
|
|
1032
|
+
className: cn("a63-Command-group", className),
|
|
1033
|
+
"data-slot": "command-group",
|
|
1034
|
+
...props
|
|
1035
|
+
}
|
|
1036
|
+
);
|
|
1037
|
+
}
|
|
1038
|
+
function CommandGroupLabel({
|
|
1039
|
+
className,
|
|
1040
|
+
...props
|
|
1041
|
+
}) {
|
|
1042
|
+
return /* @__PURE__ */ jsx(
|
|
1043
|
+
Autocomplete$1.GroupLabel,
|
|
1044
|
+
{
|
|
1045
|
+
className: cn("a63-Command-group-label", className),
|
|
1046
|
+
"data-slot": "command-group-label",
|
|
1047
|
+
...props
|
|
1048
|
+
}
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
function CommandCollection({
|
|
1052
|
+
...props
|
|
1053
|
+
}) {
|
|
1054
|
+
return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "command-collection", ...props });
|
|
1055
|
+
}
|
|
1056
|
+
function CommandItem({
|
|
1057
|
+
className,
|
|
1058
|
+
...props
|
|
1059
|
+
}) {
|
|
1060
|
+
return /* @__PURE__ */ jsx(
|
|
1061
|
+
Autocomplete$1.Item,
|
|
1062
|
+
{
|
|
1063
|
+
className: cn("a63-Command-item", className),
|
|
1064
|
+
"data-slot": "command-item",
|
|
1065
|
+
...props
|
|
1066
|
+
}
|
|
1067
|
+
);
|
|
1068
|
+
}
|
|
1069
|
+
function CommandSeparator({
|
|
1070
|
+
className,
|
|
1071
|
+
...props
|
|
1072
|
+
}) {
|
|
1073
|
+
return /* @__PURE__ */ jsx(
|
|
1074
|
+
Autocomplete$1.Separator,
|
|
1075
|
+
{
|
|
1076
|
+
className: cn("a63-Command-separator", className),
|
|
1077
|
+
"data-slot": "command-separator",
|
|
1078
|
+
"aria-orientation": void 0,
|
|
1079
|
+
role: "presentation",
|
|
1080
|
+
...props
|
|
1081
|
+
}
|
|
1082
|
+
);
|
|
1083
|
+
}
|
|
1084
|
+
function CommandShortcut({
|
|
1085
|
+
className,
|
|
1086
|
+
...props
|
|
1087
|
+
}) {
|
|
1088
|
+
return /* @__PURE__ */ jsx(
|
|
1089
|
+
"kbd",
|
|
1090
|
+
{
|
|
1091
|
+
className: cn("a63-Command-shortcut", className),
|
|
1092
|
+
"data-slot": "command-shortcut",
|
|
1093
|
+
...props
|
|
1094
|
+
}
|
|
1095
|
+
);
|
|
1096
|
+
}
|
|
1097
|
+
function CommandFooter({
|
|
1098
|
+
className,
|
|
1099
|
+
...props
|
|
1100
|
+
}) {
|
|
1101
|
+
return /* @__PURE__ */ jsx("div", { className: cn("a63-Command-footer", className), "data-slot": "command-footer", ...props });
|
|
1102
|
+
}
|
|
1103
|
+
var DialogCreateHandle = Dialog$1.createHandle;
|
|
1104
|
+
var DialogModalContext = React3.createContext(true);
|
|
1105
|
+
function Dialog(props) {
|
|
1106
|
+
return /* @__PURE__ */ jsx(DialogModalContext.Provider, { value: props.modal ?? true, children: /* @__PURE__ */ jsx(Dialog$1.Root, { ...props }) });
|
|
1107
|
+
}
|
|
1108
|
+
function DialogPortal(props) {
|
|
1109
|
+
return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "dialog-portal", ...props });
|
|
1110
|
+
}
|
|
1111
|
+
function DialogTrigger({
|
|
1112
|
+
className,
|
|
1113
|
+
...props
|
|
1114
|
+
}) {
|
|
1115
|
+
return /* @__PURE__ */ jsx(
|
|
1116
|
+
Dialog$1.Trigger,
|
|
1117
|
+
{
|
|
1118
|
+
className: cn("a63-Dialog-trigger", className),
|
|
1119
|
+
"data-slot": "dialog-trigger",
|
|
1120
|
+
...props
|
|
1121
|
+
}
|
|
1122
|
+
);
|
|
1123
|
+
}
|
|
1124
|
+
function DialogClose(props) {
|
|
1125
|
+
return /* @__PURE__ */ jsx(Dialog$1.Close, { "data-slot": "dialog-close", ...props });
|
|
1126
|
+
}
|
|
1127
|
+
function DialogBackdrop({
|
|
1128
|
+
className,
|
|
1129
|
+
...props
|
|
1130
|
+
}) {
|
|
1131
|
+
return /* @__PURE__ */ jsx(
|
|
1132
|
+
Dialog$1.Backdrop,
|
|
1133
|
+
{
|
|
1134
|
+
className: cn("a63-Dialog-backdrop", className),
|
|
1135
|
+
"data-slot": "dialog-backdrop",
|
|
1136
|
+
...props
|
|
1137
|
+
}
|
|
1138
|
+
);
|
|
1139
|
+
}
|
|
1140
|
+
function DialogViewport({
|
|
1141
|
+
className,
|
|
1142
|
+
...props
|
|
1143
|
+
}) {
|
|
1144
|
+
return /* @__PURE__ */ jsx(
|
|
1145
|
+
Dialog$1.Viewport,
|
|
1146
|
+
{
|
|
1147
|
+
className: cn("a63-Dialog-viewport", className),
|
|
1148
|
+
"data-slot": "dialog-viewport",
|
|
1149
|
+
...props
|
|
1150
|
+
}
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
function CloseIcon2() {
|
|
1154
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
1155
|
+
"path",
|
|
1156
|
+
{
|
|
1157
|
+
d: "m4 4 8 8M12 4l-8 8",
|
|
1158
|
+
stroke: "currentColor",
|
|
1159
|
+
strokeLinecap: "round",
|
|
1160
|
+
strokeLinejoin: "round",
|
|
1161
|
+
strokeWidth: "1.5"
|
|
1162
|
+
}
|
|
1163
|
+
) });
|
|
1164
|
+
}
|
|
1165
|
+
function DialogPopup({
|
|
1166
|
+
className,
|
|
1167
|
+
children,
|
|
1168
|
+
showCloseButton = true,
|
|
1169
|
+
bottomStickOnMobile = true,
|
|
1170
|
+
mobilePlacement,
|
|
1171
|
+
size = "default",
|
|
1172
|
+
closeProps,
|
|
1173
|
+
portalProps,
|
|
1174
|
+
...props
|
|
1175
|
+
}) {
|
|
1176
|
+
const modal = React3.useContext(DialogModalContext);
|
|
1177
|
+
const resolvedMobilePlacement = mobilePlacement ?? (bottomStickOnMobile ? "bottom" : "center");
|
|
1178
|
+
const stickToBottomOnMobile = resolvedMobilePlacement === "bottom";
|
|
1179
|
+
return /* @__PURE__ */ jsxs(DialogPortal, { ...portalProps, children: [
|
|
1180
|
+
/* @__PURE__ */ jsx(DialogBackdrop, {}),
|
|
1181
|
+
/* @__PURE__ */ jsx(DialogViewport, { "data-mobile-placement": resolvedMobilePlacement, children: /* @__PURE__ */ jsxs(
|
|
1182
|
+
Dialog$1.Popup,
|
|
1183
|
+
{
|
|
1184
|
+
"aria-modal": modal === false ? void 0 : true,
|
|
1185
|
+
className: cn("a63-Dialog-popup", className),
|
|
1186
|
+
"data-mobile-placement": resolvedMobilePlacement,
|
|
1187
|
+
"data-size": size,
|
|
1188
|
+
"data-slot": "dialog-popup",
|
|
1189
|
+
"data-stick-bottom": stickToBottomOnMobile ? "" : void 0,
|
|
1190
|
+
...props,
|
|
1191
|
+
children: [
|
|
1192
|
+
children,
|
|
1193
|
+
showCloseButton && /* @__PURE__ */ jsx(
|
|
1194
|
+
Dialog$1.Close,
|
|
1195
|
+
{
|
|
1196
|
+
"aria-label": "Close",
|
|
1197
|
+
className: "a63-Dialog-close-button",
|
|
1198
|
+
"data-slot": "dialog-close-button",
|
|
1199
|
+
...closeProps,
|
|
1200
|
+
children: /* @__PURE__ */ jsx(CloseIcon2, {})
|
|
1201
|
+
}
|
|
1202
|
+
)
|
|
1203
|
+
]
|
|
1204
|
+
}
|
|
1205
|
+
) })
|
|
1206
|
+
] });
|
|
1207
|
+
}
|
|
1208
|
+
function DialogHeader({
|
|
1209
|
+
className,
|
|
1210
|
+
render,
|
|
1211
|
+
...props
|
|
1212
|
+
}) {
|
|
1213
|
+
const defaultProps = {
|
|
1214
|
+
className: cn("a63-Dialog-header", className),
|
|
1215
|
+
"data-slot": "dialog-header"
|
|
1216
|
+
};
|
|
1217
|
+
return useRender({
|
|
1218
|
+
defaultTagName: "div",
|
|
1219
|
+
props: mergeProps(defaultProps, props),
|
|
1220
|
+
render
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
function DialogFooter({
|
|
1224
|
+
className,
|
|
1225
|
+
variant = "default",
|
|
1226
|
+
render,
|
|
1227
|
+
...props
|
|
1228
|
+
}) {
|
|
1229
|
+
const defaultProps = {
|
|
1230
|
+
className: cn("a63-Dialog-footer", className),
|
|
1231
|
+
"data-slot": "dialog-footer",
|
|
1232
|
+
"data-variant": variant
|
|
1233
|
+
};
|
|
1234
|
+
return useRender({
|
|
1235
|
+
defaultTagName: "div",
|
|
1236
|
+
props: mergeProps(defaultProps, props),
|
|
1237
|
+
render
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
function DialogTitle({
|
|
1241
|
+
className,
|
|
1242
|
+
...props
|
|
1243
|
+
}) {
|
|
1244
|
+
return /* @__PURE__ */ jsx(
|
|
1245
|
+
Dialog$1.Title,
|
|
1246
|
+
{
|
|
1247
|
+
className: cn("a63-Dialog-title", className),
|
|
1248
|
+
"data-slot": "dialog-title",
|
|
1249
|
+
...props
|
|
1250
|
+
}
|
|
1251
|
+
);
|
|
1252
|
+
}
|
|
1253
|
+
function DialogDescription({
|
|
1254
|
+
className,
|
|
1255
|
+
...props
|
|
1256
|
+
}) {
|
|
1257
|
+
return /* @__PURE__ */ jsx(
|
|
1258
|
+
Dialog$1.Description,
|
|
1259
|
+
{
|
|
1260
|
+
className: cn("a63-Dialog-description", className),
|
|
1261
|
+
"data-slot": "dialog-description",
|
|
1262
|
+
...props
|
|
1263
|
+
}
|
|
1264
|
+
);
|
|
1265
|
+
}
|
|
1266
|
+
function DialogPanel({
|
|
1267
|
+
className,
|
|
1268
|
+
scrollFade = true,
|
|
1269
|
+
render,
|
|
1270
|
+
...props
|
|
1271
|
+
}) {
|
|
1272
|
+
const defaultProps = {
|
|
1273
|
+
className: cn("a63-Dialog-panel", className),
|
|
1274
|
+
"data-scroll-fade": scrollFade ? "" : void 0,
|
|
1275
|
+
"data-slot": "dialog-panel"
|
|
1276
|
+
};
|
|
1277
|
+
return useRender({
|
|
1278
|
+
defaultTagName: "div",
|
|
1279
|
+
props: mergeProps(defaultProps, props),
|
|
1280
|
+
render
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
function isAriaInvalid(value) {
|
|
1284
|
+
return value === true || value === "true";
|
|
1285
|
+
}
|
|
1286
|
+
function Input({
|
|
1287
|
+
"aria-invalid": ariaInvalid,
|
|
1288
|
+
className,
|
|
1289
|
+
disabled,
|
|
1290
|
+
inputClassName,
|
|
1291
|
+
invalid = false,
|
|
1292
|
+
nativeInput = false,
|
|
1293
|
+
shadow = true,
|
|
1294
|
+
size = inputContract.defaultSize,
|
|
1295
|
+
unstyled = false,
|
|
1296
|
+
...props
|
|
1297
|
+
}) {
|
|
1298
|
+
const isInvalid = invalid || isAriaInvalid(ariaInvalid);
|
|
1299
|
+
const isNumericSize = typeof size === "number";
|
|
1300
|
+
const dataSize = isNumericSize ? inputContract.defaultSize : size;
|
|
1301
|
+
const fieldProps = {
|
|
1302
|
+
className: cn("a63-Input-field", inputClassName),
|
|
1303
|
+
"data-slot": "input",
|
|
1304
|
+
disabled,
|
|
1305
|
+
size: isNumericSize ? size : void 0,
|
|
1306
|
+
"aria-invalid": isInvalid ? true : ariaInvalid
|
|
1307
|
+
};
|
|
1308
|
+
return /* @__PURE__ */ jsx(
|
|
1309
|
+
"span",
|
|
1310
|
+
{
|
|
1311
|
+
className: cn("a63-Input", className),
|
|
1312
|
+
"data-disabled": disabled ? "" : void 0,
|
|
1313
|
+
"data-invalid": isInvalid ? "" : void 0,
|
|
1314
|
+
"data-shadow": shadow ? void 0 : "false",
|
|
1315
|
+
"data-size": dataSize,
|
|
1316
|
+
"data-slot": "input-control",
|
|
1317
|
+
"data-unstyled": unstyled ? "" : void 0,
|
|
1318
|
+
children: nativeInput ? /* @__PURE__ */ jsx("input", { ...fieldProps, ...props }) : /* @__PURE__ */ jsx(Input$1, { ...fieldProps, ...props })
|
|
1319
|
+
}
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
function Textarea({
|
|
1323
|
+
"aria-invalid": ariaInvalid,
|
|
1324
|
+
className,
|
|
1325
|
+
disabled,
|
|
1326
|
+
invalid = false,
|
|
1327
|
+
shadow = true,
|
|
1328
|
+
size = textareaContract.defaultSize,
|
|
1329
|
+
textareaClassName,
|
|
1330
|
+
unstyled = false,
|
|
1331
|
+
...props
|
|
1332
|
+
}) {
|
|
1333
|
+
const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
|
|
1334
|
+
return /* @__PURE__ */ jsx(
|
|
1335
|
+
"span",
|
|
1336
|
+
{
|
|
1337
|
+
className: cn("a63-Textarea", className),
|
|
1338
|
+
"data-disabled": disabled ? "" : void 0,
|
|
1339
|
+
"data-invalid": isInvalid ? "" : void 0,
|
|
1340
|
+
"data-shadow": shadow ? void 0 : "false",
|
|
1341
|
+
"data-size": size,
|
|
1342
|
+
"data-slot": "textarea-control",
|
|
1343
|
+
"data-unstyled": unstyled ? "" : void 0,
|
|
1344
|
+
children: /* @__PURE__ */ jsx(
|
|
1345
|
+
"textarea",
|
|
1346
|
+
{
|
|
1347
|
+
"aria-invalid": isInvalid ? true : ariaInvalid,
|
|
1348
|
+
className: cn("a63-Textarea-field", textareaClassName),
|
|
1349
|
+
"data-slot": "textarea",
|
|
1350
|
+
disabled,
|
|
1351
|
+
...props
|
|
1352
|
+
}
|
|
1353
|
+
)
|
|
1354
|
+
}
|
|
1355
|
+
);
|
|
1356
|
+
}
|
|
1357
|
+
var InputGroupContext = React3.createContext({
|
|
1358
|
+
disabled: false,
|
|
1359
|
+
invalid: false,
|
|
1360
|
+
size: inputContract.defaultSize
|
|
1361
|
+
});
|
|
1362
|
+
var ADDON_INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role='button'], [role='combobox'], [role='listbox'], [data-slot='select-trigger']";
|
|
1363
|
+
function InputGroup({
|
|
1364
|
+
children,
|
|
1365
|
+
className,
|
|
1366
|
+
disabled = false,
|
|
1367
|
+
invalid = false,
|
|
1368
|
+
shadow = true,
|
|
1369
|
+
size = inputContract.defaultSize,
|
|
1370
|
+
...props
|
|
1371
|
+
}) {
|
|
1372
|
+
const context = React3.useMemo(() => ({ disabled, invalid, size }), [disabled, invalid, size]);
|
|
1373
|
+
return /* @__PURE__ */ jsx(InputGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
|
|
1374
|
+
"div",
|
|
1375
|
+
{
|
|
1376
|
+
className: cn("a63-InputGroup", className),
|
|
1377
|
+
"data-disabled": disabled ? "" : void 0,
|
|
1378
|
+
"data-invalid": invalid ? "" : void 0,
|
|
1379
|
+
"data-shadow": shadow ? void 0 : "false",
|
|
1380
|
+
"data-size": size,
|
|
1381
|
+
"data-slot": "input-group",
|
|
1382
|
+
role: "group",
|
|
1383
|
+
...props,
|
|
1384
|
+
children
|
|
1385
|
+
}
|
|
1386
|
+
) });
|
|
1387
|
+
}
|
|
1388
|
+
function InputGroupAddon({
|
|
1389
|
+
align = "inline-start",
|
|
1390
|
+
children,
|
|
1391
|
+
className,
|
|
1392
|
+
onMouseDown,
|
|
1393
|
+
...props
|
|
1394
|
+
}) {
|
|
1395
|
+
return (
|
|
1396
|
+
// mousedown only delegates focus to the field (the real control); the addon is a decorative slot
|
|
1397
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions -- the input remains the sole interactive control
|
|
1398
|
+
/* @__PURE__ */ jsx(
|
|
1399
|
+
"div",
|
|
1400
|
+
{
|
|
1401
|
+
className: cn("a63-InputGroup-addon", className),
|
|
1402
|
+
"data-align": align,
|
|
1403
|
+
"data-slot": "input-group-addon",
|
|
1404
|
+
onMouseDown: (event) => {
|
|
1405
|
+
onMouseDown?.(event);
|
|
1406
|
+
if (event.defaultPrevented) {
|
|
1407
|
+
return;
|
|
1408
|
+
}
|
|
1409
|
+
const target = event.target;
|
|
1410
|
+
if (target.closest(ADDON_INTERACTIVE_SELECTOR)) {
|
|
1411
|
+
return;
|
|
1412
|
+
}
|
|
1413
|
+
event.preventDefault();
|
|
1414
|
+
const parent = event.currentTarget.parentElement;
|
|
1415
|
+
const field = parent?.querySelector(
|
|
1416
|
+
"input, textarea"
|
|
1417
|
+
);
|
|
1418
|
+
if (field && !parent?.querySelector("input:focus, textarea:focus")) {
|
|
1419
|
+
field.focus();
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
...props,
|
|
1423
|
+
children
|
|
1424
|
+
}
|
|
1425
|
+
)
|
|
1426
|
+
);
|
|
1427
|
+
}
|
|
1428
|
+
function InputGroupInput({
|
|
1429
|
+
disabled,
|
|
1430
|
+
invalid,
|
|
1431
|
+
size,
|
|
1432
|
+
...props
|
|
1433
|
+
}) {
|
|
1434
|
+
const {
|
|
1435
|
+
disabled: groupDisabled,
|
|
1436
|
+
invalid: groupInvalid,
|
|
1437
|
+
size: groupSize
|
|
1438
|
+
} = React3.useContext(InputGroupContext);
|
|
1439
|
+
return /* @__PURE__ */ jsx(
|
|
1440
|
+
Input,
|
|
1441
|
+
{
|
|
1442
|
+
disabled: disabled ?? groupDisabled,
|
|
1443
|
+
invalid: invalid ?? groupInvalid,
|
|
1444
|
+
size: size ?? groupSize,
|
|
1445
|
+
unstyled: true,
|
|
1446
|
+
...props
|
|
1447
|
+
}
|
|
1448
|
+
);
|
|
1449
|
+
}
|
|
1450
|
+
function InputGroupTextarea({
|
|
1451
|
+
disabled,
|
|
1452
|
+
...props
|
|
1453
|
+
}) {
|
|
1454
|
+
const { disabled: groupDisabled, invalid: groupInvalid } = React3.useContext(InputGroupContext);
|
|
1455
|
+
return /* @__PURE__ */ jsx(
|
|
1456
|
+
Textarea,
|
|
1457
|
+
{
|
|
1458
|
+
"aria-invalid": props["aria-invalid"] ?? (groupInvalid || void 0),
|
|
1459
|
+
disabled: disabled ?? groupDisabled,
|
|
1460
|
+
unstyled: true,
|
|
1461
|
+
...props
|
|
1462
|
+
}
|
|
1463
|
+
);
|
|
1464
|
+
}
|
|
1465
|
+
function InputGroupButton({
|
|
1466
|
+
size = "xs",
|
|
1467
|
+
variant = "ghost",
|
|
1468
|
+
...props
|
|
1469
|
+
}) {
|
|
1470
|
+
return /* @__PURE__ */ jsx(Button, { "data-slot": "input-group-button", size, variant, ...props });
|
|
1471
|
+
}
|
|
1472
|
+
function InputGroupText({
|
|
1473
|
+
children,
|
|
1474
|
+
className,
|
|
1475
|
+
...props
|
|
1476
|
+
}) {
|
|
1477
|
+
return /* @__PURE__ */ jsx("span", { className: cn("a63-InputGroup-text", className), "data-slot": "input-group-text", ...props, children });
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
// src/conformance/renderer-conformance.ts
|
|
1481
|
+
var reactRendererConformance = [
|
|
1482
|
+
{
|
|
1483
|
+
contractId: "button",
|
|
1484
|
+
implementedStates: ["rest", "pressed", "disabled", "loading"],
|
|
1485
|
+
verifiedSharedOutcomes: [
|
|
1486
|
+
"action-fires-once",
|
|
1487
|
+
"loading-blocks-repeat-activation",
|
|
1488
|
+
"disabled-prevents-activation"
|
|
1489
|
+
],
|
|
1490
|
+
verifiedAccessibilityOutcomes: ["exposes-label", "announces-loading", "disabled-while-loading"],
|
|
1491
|
+
verifiesMotionRecipe: true
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
contractId: "alert",
|
|
1495
|
+
implementedStates: ["info", "success", "warning", "error"],
|
|
1496
|
+
verifiedSharedOutcomes: [
|
|
1497
|
+
"tone-is-not-conveyed-by-color-alone",
|
|
1498
|
+
"message-remains-readable",
|
|
1499
|
+
"action-does-not-obscure-status"
|
|
1500
|
+
],
|
|
1501
|
+
verifiedAccessibilityOutcomes: ["announces-semantic-tone", "text-does-not-rely-on-color"],
|
|
1502
|
+
verifiesMotionRecipe: false
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
contractId: "dialog",
|
|
1506
|
+
implementedStates: ["closed", "open", "focus-visible"],
|
|
1507
|
+
verifiedSharedOutcomes: [
|
|
1508
|
+
"opening-presents-a-modal-context",
|
|
1509
|
+
"background-interaction-is-blocked-while-open",
|
|
1510
|
+
"dismissal-returns-to-the-originating-context"
|
|
1511
|
+
],
|
|
1512
|
+
verifiedAccessibilityOutcomes: [
|
|
1513
|
+
"exposes-modal-title",
|
|
1514
|
+
"keeps-assistive-focus-in-the-modal-context",
|
|
1515
|
+
"restores-access-to-the-originating-control"
|
|
1516
|
+
],
|
|
1517
|
+
verifiesMotionRecipe: false
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
contractId: "alert-dialog",
|
|
1521
|
+
implementedStates: ["closed", "open"],
|
|
1522
|
+
verifiedSharedOutcomes: [
|
|
1523
|
+
"consequential-action-requires-explicit-confirmation",
|
|
1524
|
+
"cancel-dismisses-without-performing-the-action",
|
|
1525
|
+
"confirmation-performs-the-action-once-and-dismisses"
|
|
1526
|
+
],
|
|
1527
|
+
verifiedAccessibilityOutcomes: [
|
|
1528
|
+
"exposes-alert-dialog-title",
|
|
1529
|
+
"exposes-consequence-description",
|
|
1530
|
+
"identifies-cancel-and-confirm-actions"
|
|
1531
|
+
],
|
|
1532
|
+
verifiesMotionRecipe: false
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
contractId: "field",
|
|
1536
|
+
implementedStates: ["default", "invalid", "disabled"],
|
|
1537
|
+
verifiedSharedOutcomes: [
|
|
1538
|
+
"label-identifies-control",
|
|
1539
|
+
"description-explains-input",
|
|
1540
|
+
"invalid-state-exposes-error"
|
|
1541
|
+
],
|
|
1542
|
+
verifiedAccessibilityOutcomes: [
|
|
1543
|
+
"associates-label",
|
|
1544
|
+
"associates-description",
|
|
1545
|
+
"announces-error"
|
|
1546
|
+
],
|
|
1547
|
+
verifiesMotionRecipe: false
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
contractId: "destination-link",
|
|
1551
|
+
implementedStates: ["rest", "focus-visible"],
|
|
1552
|
+
verifiedSharedOutcomes: [
|
|
1553
|
+
"internal-destination-preserves-application-navigation",
|
|
1554
|
+
"external-destination-uses-platform-external-navigation",
|
|
1555
|
+
"destination-kind-remains-distinguishable"
|
|
1556
|
+
],
|
|
1557
|
+
verifiedAccessibilityOutcomes: [
|
|
1558
|
+
"exposes-link-label",
|
|
1559
|
+
"announces-external-destination-behavior",
|
|
1560
|
+
"preserves-native-link-semantics"
|
|
1561
|
+
],
|
|
1562
|
+
verifiesMotionRecipe: false
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
contractId: "input",
|
|
1566
|
+
implementedStates: ["rest", "focus", "disabled", "invalid"],
|
|
1567
|
+
verifiedSharedOutcomes: [
|
|
1568
|
+
"value-remains-editable-when-enabled",
|
|
1569
|
+
"focus-is-visible",
|
|
1570
|
+
"invalid-state-is-announced"
|
|
1571
|
+
],
|
|
1572
|
+
verifiedAccessibilityOutcomes: ["exposes-label", "exposes-value", "announces-invalid"],
|
|
1573
|
+
verifiesMotionRecipe: false
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
contractId: "textarea",
|
|
1577
|
+
implementedStates: ["rest", "focus", "disabled", "invalid"],
|
|
1578
|
+
verifiedSharedOutcomes: [
|
|
1579
|
+
"multi-line-value-remains-editable",
|
|
1580
|
+
"focus-is-visible",
|
|
1581
|
+
"invalid-state-is-announced"
|
|
1582
|
+
],
|
|
1583
|
+
verifiedAccessibilityOutcomes: ["exposes-label", "exposes-value", "announces-invalid"],
|
|
1584
|
+
verifiesMotionRecipe: false
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
contractId: "switch",
|
|
1588
|
+
implementedStates: ["off", "on", "disabled"],
|
|
1589
|
+
verifiedSharedOutcomes: [
|
|
1590
|
+
"value-is-boolean",
|
|
1591
|
+
"activation-toggles-value",
|
|
1592
|
+
"disabled-prevents-change"
|
|
1593
|
+
],
|
|
1594
|
+
verifiedAccessibilityOutcomes: [
|
|
1595
|
+
"exposes-label",
|
|
1596
|
+
"exposes-boolean-value",
|
|
1597
|
+
"preserves-native-control-role"
|
|
1598
|
+
],
|
|
1599
|
+
verifiesMotionRecipe: false
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
contractId: "select",
|
|
1603
|
+
implementedStates: ["closed", "open", "disabled", "selected-item", "disabled-item"],
|
|
1604
|
+
verifiedSharedOutcomes: [
|
|
1605
|
+
"current-selection-remains-visible",
|
|
1606
|
+
"activation-reveals-available-options",
|
|
1607
|
+
"choosing-an-option-updates-the-value-once",
|
|
1608
|
+
"disabled-controls-and-options-prevent-selection"
|
|
1609
|
+
],
|
|
1610
|
+
verifiedAccessibilityOutcomes: [
|
|
1611
|
+
"exposes-label",
|
|
1612
|
+
"exposes-selected-value",
|
|
1613
|
+
"preserves-single-selection-semantics"
|
|
1614
|
+
],
|
|
1615
|
+
verifiesMotionRecipe: false
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
contractId: "segmented-control",
|
|
1619
|
+
implementedStates: ["rest", "selected", "disabled"],
|
|
1620
|
+
verifiedSharedOutcomes: [
|
|
1621
|
+
"one-segment-is-selected-at-a-time",
|
|
1622
|
+
"activation-updates-the-selection-once",
|
|
1623
|
+
"disabled-segment-prevents-selection"
|
|
1624
|
+
],
|
|
1625
|
+
verifiedAccessibilityOutcomes: [
|
|
1626
|
+
"exposes-each-segment-label",
|
|
1627
|
+
"exposes-selected-state",
|
|
1628
|
+
"preserves-single-selection-semantics"
|
|
1629
|
+
],
|
|
1630
|
+
verifiesMotionRecipe: false
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
contractId: "radio",
|
|
1634
|
+
implementedStates: ["unchecked", "checked", "disabled"],
|
|
1635
|
+
verifiedSharedOutcomes: [
|
|
1636
|
+
"exactly-one-option-may-be-selected",
|
|
1637
|
+
"activation-moves-selection-to-the-chosen-option",
|
|
1638
|
+
"disabled-option-prevents-selection"
|
|
1639
|
+
],
|
|
1640
|
+
verifiedAccessibilityOutcomes: [
|
|
1641
|
+
"exposes-group-label",
|
|
1642
|
+
"exposes-option-labels-and-selected-state",
|
|
1643
|
+
"preserves-single-selection-semantics"
|
|
1644
|
+
],
|
|
1645
|
+
verifiesMotionRecipe: false
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
contractId: "slider",
|
|
1649
|
+
implementedStates: ["rest", "dragging", "disabled"],
|
|
1650
|
+
verifiedSharedOutcomes: [
|
|
1651
|
+
"value-remains-within-the-declared-range",
|
|
1652
|
+
"interaction-updates-value-using-the-declared-step",
|
|
1653
|
+
"disabled-control-prevents-value-change"
|
|
1654
|
+
],
|
|
1655
|
+
verifiedAccessibilityOutcomes: [
|
|
1656
|
+
"exposes-label",
|
|
1657
|
+
"exposes-current-value-and-range",
|
|
1658
|
+
"supports-adjustable-actions"
|
|
1659
|
+
],
|
|
1660
|
+
verifiesMotionRecipe: false
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
contractId: "dropdown-menu",
|
|
1664
|
+
implementedStates: ["closed", "open", "disabled", "checked", "destructive"],
|
|
1665
|
+
verifiedSharedOutcomes: [
|
|
1666
|
+
"enabled-action-executes-once-and-dismisses-the-menu",
|
|
1667
|
+
"disabled-action-does-not-execute",
|
|
1668
|
+
"checked-choice-exposes-its-current-state",
|
|
1669
|
+
"destructive-action-retains-destructive-intent"
|
|
1670
|
+
],
|
|
1671
|
+
verifiedAccessibilityOutcomes: [
|
|
1672
|
+
"trigger-exposes-menu-availability",
|
|
1673
|
+
"items-expose-label-role-and-disabled-state",
|
|
1674
|
+
"checked-items-expose-selected-or-checked-state"
|
|
1675
|
+
],
|
|
1676
|
+
verifiesMotionRecipe: false
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
contractId: "accordion",
|
|
1680
|
+
implementedStates: ["closed", "open", "disabled"],
|
|
1681
|
+
verifiedSharedOutcomes: [
|
|
1682
|
+
"activation-toggles-associated-content-visibility",
|
|
1683
|
+
"expanded-state-matches-content-visibility",
|
|
1684
|
+
"disabled-trigger-prevents-disclosure-change"
|
|
1685
|
+
],
|
|
1686
|
+
verifiedAccessibilityOutcomes: [
|
|
1687
|
+
"trigger-exposes-expanded-state",
|
|
1688
|
+
"trigger-is-associated-with-disclosed-content",
|
|
1689
|
+
"disabled-trigger-exposes-disabled-state"
|
|
1690
|
+
],
|
|
1691
|
+
verifiesMotionRecipe: false
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
contractId: "calendar",
|
|
1695
|
+
implementedStates: ["rest", "selected", "disabled"],
|
|
1696
|
+
verifiedSharedOutcomes: [
|
|
1697
|
+
"selection-updates-to-an-allowed-date",
|
|
1698
|
+
"disabled-date-prevents-selection",
|
|
1699
|
+
"selected-date-remains-visible"
|
|
1700
|
+
],
|
|
1701
|
+
verifiedAccessibilityOutcomes: [
|
|
1702
|
+
"exposes-control-label",
|
|
1703
|
+
"dates-expose-complete-date-names",
|
|
1704
|
+
"selected-date-exposes-selected-state"
|
|
1705
|
+
],
|
|
1706
|
+
verifiesMotionRecipe: false
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
contractId: "search-field",
|
|
1710
|
+
implementedStates: ["empty", "query", "focus", "disabled"],
|
|
1711
|
+
verifiedSharedOutcomes: [
|
|
1712
|
+
"editing-updates-the-query",
|
|
1713
|
+
"clear-empties-the-query-and-preserves-input-context",
|
|
1714
|
+
"submit-commits-the-current-query-once",
|
|
1715
|
+
"disabled-search-prevents-editing-and-clear"
|
|
1716
|
+
],
|
|
1717
|
+
verifiedAccessibilityOutcomes: [
|
|
1718
|
+
"exposes-search-input-role-and-label",
|
|
1719
|
+
"clear-action-has-an-accessible-label",
|
|
1720
|
+
"disabled-state-is-exposed"
|
|
1721
|
+
],
|
|
1722
|
+
verifiesMotionRecipe: false
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
contractId: "tabs",
|
|
1726
|
+
implementedStates: ["rest", "selected"],
|
|
1727
|
+
verifiedSharedOutcomes: [
|
|
1728
|
+
"one-tab-is-selected-at-a-time",
|
|
1729
|
+
"selection-reveals-the-associated-content",
|
|
1730
|
+
"selected-tab-remains-visually-distinguishable"
|
|
1731
|
+
],
|
|
1732
|
+
verifiedAccessibilityOutcomes: [
|
|
1733
|
+
"exposes-tab-labels",
|
|
1734
|
+
"exposes-selected-state",
|
|
1735
|
+
"associates-selection-with-visible-content"
|
|
1736
|
+
],
|
|
1737
|
+
verifiesMotionRecipe: false
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
contractId: "load-more-trigger",
|
|
1741
|
+
implementedStates: ["idle", "loading", "failed", "exhausted"],
|
|
1742
|
+
verifiedSharedOutcomes: [
|
|
1743
|
+
"loading-is-announced",
|
|
1744
|
+
"failure-provides-retry",
|
|
1745
|
+
"exhaustion-is-announced",
|
|
1746
|
+
"existing-items-remain-stable-while-appending"
|
|
1747
|
+
],
|
|
1748
|
+
verifiedAccessibilityOutcomes: [
|
|
1749
|
+
"announces-loading",
|
|
1750
|
+
"exposes-retry-action",
|
|
1751
|
+
"announces-exhausted"
|
|
1752
|
+
],
|
|
1753
|
+
verifiesMotionRecipe: false
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
contractId: "skeleton",
|
|
1757
|
+
implementedStates: ["loading", "reduced-motion"],
|
|
1758
|
+
verifiedSharedOutcomes: [
|
|
1759
|
+
"placeholder-is-hidden-from-assistive-technology",
|
|
1760
|
+
"interaction-is-blocked-while-loading",
|
|
1761
|
+
"reduced-motion-result-is-static"
|
|
1762
|
+
],
|
|
1763
|
+
verifiedAccessibilityOutcomes: [
|
|
1764
|
+
"hidden-from-accessibility-tree",
|
|
1765
|
+
"blocks-interaction-while-active"
|
|
1766
|
+
],
|
|
1767
|
+
verifiesMotionRecipe: true
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
contractId: "toggle",
|
|
1771
|
+
implementedStates: ["off", "on", "disabled"],
|
|
1772
|
+
verifiedSharedOutcomes: [
|
|
1773
|
+
"selected-state-is-visible",
|
|
1774
|
+
"activation-toggles-selection",
|
|
1775
|
+
"disabled-prevents-change"
|
|
1776
|
+
],
|
|
1777
|
+
verifiedAccessibilityOutcomes: [
|
|
1778
|
+
"exposes-label",
|
|
1779
|
+
"announces-selected-state",
|
|
1780
|
+
"preserves-button-role"
|
|
1781
|
+
],
|
|
1782
|
+
verifiesMotionRecipe: false
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
contractId: "card",
|
|
1786
|
+
implementedStates: ["rest", "interactive", "focus-visible"],
|
|
1787
|
+
verifiedSharedOutcomes: [
|
|
1788
|
+
"content-order-is-preserved",
|
|
1789
|
+
"static-card-does-not-imply-action",
|
|
1790
|
+
"interactive-card-has-one-primary-action"
|
|
1791
|
+
],
|
|
1792
|
+
verifiedAccessibilityOutcomes: ["preserves-content-order", "does-not-imply-action-when-static"],
|
|
1793
|
+
verifiesMotionRecipe: false
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
contractId: "badge",
|
|
1797
|
+
implementedStates: ["neutral", "accent", "success", "warning", "error"],
|
|
1798
|
+
verifiedSharedOutcomes: [
|
|
1799
|
+
"label-remains-readable-without-color",
|
|
1800
|
+
"semantic-tone-retains-meaning"
|
|
1801
|
+
],
|
|
1802
|
+
verifiedAccessibilityOutcomes: ["text-does-not-rely-on-color"],
|
|
1803
|
+
verifiesMotionRecipe: false
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
contractId: "avatar",
|
|
1807
|
+
implementedStates: ["loading", "loaded", "fallback"],
|
|
1808
|
+
verifiedSharedOutcomes: [
|
|
1809
|
+
"accessible-name-is-preserved",
|
|
1810
|
+
"fallback-preserves-identity",
|
|
1811
|
+
"loading-does-not-expose-empty-image"
|
|
1812
|
+
],
|
|
1813
|
+
verifiedAccessibilityOutcomes: ["exposes-accessible-name", "fallback-preserves-identity"],
|
|
1814
|
+
verifiesMotionRecipe: false
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
contractId: "empty",
|
|
1818
|
+
implementedStates: ["empty", "error"],
|
|
1819
|
+
verifiedSharedOutcomes: [
|
|
1820
|
+
"heading-explains-state",
|
|
1821
|
+
"supporting-copy-provides-context",
|
|
1822
|
+
"recovery-action-remains-available"
|
|
1823
|
+
],
|
|
1824
|
+
verifiedAccessibilityOutcomes: [
|
|
1825
|
+
"exposes-heading",
|
|
1826
|
+
"exposes-recovery-action",
|
|
1827
|
+
"preserves-reading-order"
|
|
1828
|
+
],
|
|
1829
|
+
verifiesMotionRecipe: false
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
contractId: "progress",
|
|
1833
|
+
implementedStates: ["indeterminate", "progressing", "complete"],
|
|
1834
|
+
verifiedSharedOutcomes: [
|
|
1835
|
+
"label-identifies-operation",
|
|
1836
|
+
"determinate-value-is-exposed",
|
|
1837
|
+
"completion-is-distinguishable"
|
|
1838
|
+
],
|
|
1839
|
+
verifiedAccessibilityOutcomes: ["exposes-label", "announces-progress-value"],
|
|
1840
|
+
verifiesMotionRecipe: false
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
contractId: "toaster",
|
|
1844
|
+
implementedStates: ["visible", "dismissing", "reduced-motion"],
|
|
1845
|
+
verifiedSharedOutcomes: [
|
|
1846
|
+
"message-is-announced",
|
|
1847
|
+
"focus-is-not-trapped",
|
|
1848
|
+
"dismissal-respects-motion-preference"
|
|
1849
|
+
],
|
|
1850
|
+
verifiedAccessibilityOutcomes: ["announces-message", "does-not-trap-focus"],
|
|
1851
|
+
verifiesMotionRecipe: true
|
|
1852
|
+
}
|
|
1853
|
+
];
|
|
1854
|
+
function getReactRendererConformance(contractId) {
|
|
1855
|
+
return reactRendererConformance.find((evidence) => evidence.contractId === contractId);
|
|
1856
|
+
}
|
|
1857
|
+
function NavigationMenu({
|
|
1858
|
+
align = "start",
|
|
1859
|
+
children,
|
|
1860
|
+
className,
|
|
1861
|
+
portalContainer,
|
|
1862
|
+
...props
|
|
1863
|
+
}) {
|
|
1864
|
+
return /* @__PURE__ */ jsxs(
|
|
1865
|
+
NavigationMenu$1.Root,
|
|
1866
|
+
{
|
|
1867
|
+
className: cn("a63-NavigationMenu", className),
|
|
1868
|
+
"data-slot": "navigation-menu",
|
|
1869
|
+
...props,
|
|
1870
|
+
children: [
|
|
1871
|
+
children,
|
|
1872
|
+
/* @__PURE__ */ jsx(NavigationMenuPositioner, { align, portalContainer })
|
|
1873
|
+
]
|
|
1874
|
+
}
|
|
1875
|
+
);
|
|
1876
|
+
}
|
|
1877
|
+
function NavigationMenuList({
|
|
1878
|
+
className,
|
|
1879
|
+
...props
|
|
1880
|
+
}) {
|
|
1881
|
+
return /* @__PURE__ */ jsx(
|
|
1882
|
+
NavigationMenu$1.List,
|
|
1883
|
+
{
|
|
1884
|
+
className: cn("a63-NavigationMenu-list", className),
|
|
1885
|
+
"data-slot": "navigation-menu-list",
|
|
1886
|
+
...props
|
|
1887
|
+
}
|
|
1888
|
+
);
|
|
1889
|
+
}
|
|
1890
|
+
function NavigationMenuItem({
|
|
1891
|
+
className,
|
|
1892
|
+
...props
|
|
1893
|
+
}) {
|
|
1894
|
+
return /* @__PURE__ */ jsx(
|
|
1895
|
+
NavigationMenu$1.Item,
|
|
1896
|
+
{
|
|
1897
|
+
className: cn("a63-NavigationMenu-item", className),
|
|
1898
|
+
"data-slot": "navigation-menu-item",
|
|
1899
|
+
...props
|
|
1900
|
+
}
|
|
1901
|
+
);
|
|
1902
|
+
}
|
|
1903
|
+
function navigationMenuTriggerStyle() {
|
|
1904
|
+
return "a63-NavigationMenu-trigger";
|
|
1905
|
+
}
|
|
1906
|
+
function NavigationMenuTrigger({
|
|
1907
|
+
children,
|
|
1908
|
+
className,
|
|
1909
|
+
...props
|
|
1910
|
+
}) {
|
|
1911
|
+
return /* @__PURE__ */ jsxs(
|
|
1912
|
+
NavigationMenu$1.Trigger,
|
|
1913
|
+
{
|
|
1914
|
+
className: cn("a63-NavigationMenu-trigger", className),
|
|
1915
|
+
"data-slot": "navigation-menu-trigger",
|
|
1916
|
+
...props,
|
|
1917
|
+
children: [
|
|
1918
|
+
children,
|
|
1919
|
+
/* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true, className: "a63-NavigationMenu-trigger-icon" })
|
|
1920
|
+
]
|
|
1921
|
+
}
|
|
1922
|
+
);
|
|
1923
|
+
}
|
|
1924
|
+
function NavigationMenuContent({
|
|
1925
|
+
className,
|
|
1926
|
+
...props
|
|
1927
|
+
}) {
|
|
1928
|
+
return /* @__PURE__ */ jsx(
|
|
1929
|
+
NavigationMenu$1.Content,
|
|
1930
|
+
{
|
|
1931
|
+
className: cn("a63-NavigationMenu-content", className),
|
|
1932
|
+
"data-slot": "navigation-menu-content",
|
|
1933
|
+
...props
|
|
1934
|
+
}
|
|
1935
|
+
);
|
|
1936
|
+
}
|
|
1937
|
+
function NavigationMenuPositioner({
|
|
1938
|
+
align = "start",
|
|
1939
|
+
alignOffset = 0,
|
|
1940
|
+
className,
|
|
1941
|
+
portalContainer,
|
|
1942
|
+
side = "bottom",
|
|
1943
|
+
sideOffset = 8,
|
|
1944
|
+
...props
|
|
1945
|
+
}) {
|
|
1946
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Portal, { container: portalContainer, "data-slot": "navigation-menu-portal", children: /* @__PURE__ */ jsx(
|
|
1947
|
+
NavigationMenu$1.Positioner,
|
|
1948
|
+
{
|
|
1949
|
+
align,
|
|
1950
|
+
alignOffset,
|
|
1951
|
+
className: cn("a63-NavigationMenu-positioner", className),
|
|
1952
|
+
"data-slot": "navigation-menu-positioner",
|
|
1953
|
+
side,
|
|
1954
|
+
sideOffset,
|
|
1955
|
+
...props,
|
|
1956
|
+
children: /* @__PURE__ */ jsx(
|
|
1957
|
+
NavigationMenu$1.Popup,
|
|
1958
|
+
{
|
|
1959
|
+
className: "a63-NavigationMenu-popup",
|
|
1960
|
+
"data-slot": "navigation-menu-popup",
|
|
1961
|
+
children: /* @__PURE__ */ jsx(NavigationMenuViewport, {})
|
|
1962
|
+
}
|
|
1963
|
+
)
|
|
1964
|
+
}
|
|
1965
|
+
) });
|
|
1966
|
+
}
|
|
1967
|
+
function NavigationMenuLink({
|
|
1968
|
+
className,
|
|
1969
|
+
...props
|
|
1970
|
+
}) {
|
|
1971
|
+
return /* @__PURE__ */ jsx(
|
|
1972
|
+
NavigationMenu$1.Link,
|
|
1973
|
+
{
|
|
1974
|
+
className: cn("a63-NavigationMenu-link", className),
|
|
1975
|
+
"data-slot": "navigation-menu-link",
|
|
1976
|
+
...props
|
|
1977
|
+
}
|
|
1978
|
+
);
|
|
1979
|
+
}
|
|
1980
|
+
function NavigationMenuIndicator({
|
|
1981
|
+
className,
|
|
1982
|
+
...props
|
|
1983
|
+
}) {
|
|
1984
|
+
return /* @__PURE__ */ jsx(
|
|
1985
|
+
"div",
|
|
1986
|
+
{
|
|
1987
|
+
className: cn("a63-NavigationMenu-indicator", className),
|
|
1988
|
+
"data-slot": "navigation-menu-indicator",
|
|
1989
|
+
...props,
|
|
1990
|
+
children: /* @__PURE__ */ jsx("div", { className: "a63-NavigationMenu-indicator-arrow" })
|
|
1991
|
+
}
|
|
1992
|
+
);
|
|
1993
|
+
}
|
|
1994
|
+
function NavigationMenuViewport({
|
|
1995
|
+
className,
|
|
1996
|
+
...props
|
|
1997
|
+
}) {
|
|
1998
|
+
return /* @__PURE__ */ jsx(
|
|
1999
|
+
NavigationMenu$1.Viewport,
|
|
2000
|
+
{
|
|
2001
|
+
className: cn("a63-NavigationMenu-viewport", className),
|
|
2002
|
+
"data-slot": "navigation-menu-viewport",
|
|
2003
|
+
...props
|
|
2004
|
+
}
|
|
2005
|
+
);
|
|
2006
|
+
}
|
|
2007
|
+
function Progress({
|
|
2008
|
+
className,
|
|
2009
|
+
children,
|
|
2010
|
+
...props
|
|
2011
|
+
}) {
|
|
2012
|
+
return /* @__PURE__ */ jsx(
|
|
2013
|
+
Progress$1.Root,
|
|
2014
|
+
{
|
|
2015
|
+
className: cn("a63-Progress", className),
|
|
2016
|
+
"data-slot": "progress",
|
|
2017
|
+
...props,
|
|
2018
|
+
children: children ?? /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })
|
|
2019
|
+
}
|
|
2020
|
+
);
|
|
2021
|
+
}
|
|
2022
|
+
function ProgressLabel({
|
|
2023
|
+
className,
|
|
2024
|
+
...props
|
|
2025
|
+
}) {
|
|
2026
|
+
return /* @__PURE__ */ jsx(
|
|
2027
|
+
Progress$1.Label,
|
|
2028
|
+
{
|
|
2029
|
+
className: cn("a63-Progress-label", className),
|
|
2030
|
+
"data-slot": "progress-label",
|
|
2031
|
+
...props
|
|
2032
|
+
}
|
|
2033
|
+
);
|
|
2034
|
+
}
|
|
2035
|
+
function ProgressTrack({
|
|
2036
|
+
className,
|
|
2037
|
+
...props
|
|
2038
|
+
}) {
|
|
2039
|
+
return /* @__PURE__ */ jsx(
|
|
2040
|
+
Progress$1.Track,
|
|
2041
|
+
{
|
|
2042
|
+
className: cn("a63-Progress-track", className),
|
|
2043
|
+
"data-slot": "progress-track",
|
|
2044
|
+
...props
|
|
2045
|
+
}
|
|
2046
|
+
);
|
|
2047
|
+
}
|
|
2048
|
+
function ProgressIndicator({
|
|
2049
|
+
className,
|
|
2050
|
+
...props
|
|
2051
|
+
}) {
|
|
2052
|
+
return /* @__PURE__ */ jsx(
|
|
2053
|
+
Progress$1.Indicator,
|
|
2054
|
+
{
|
|
2055
|
+
className: cn("a63-Progress-indicator", className),
|
|
2056
|
+
"data-slot": "progress-indicator",
|
|
2057
|
+
...props
|
|
2058
|
+
}
|
|
2059
|
+
);
|
|
2060
|
+
}
|
|
2061
|
+
function ProgressValue({
|
|
2062
|
+
className,
|
|
2063
|
+
...props
|
|
2064
|
+
}) {
|
|
2065
|
+
return /* @__PURE__ */ jsx(
|
|
2066
|
+
Progress$1.Value,
|
|
2067
|
+
{
|
|
2068
|
+
className: cn("a63-Progress-value", className),
|
|
2069
|
+
"data-slot": "progress-value",
|
|
2070
|
+
...props
|
|
2071
|
+
}
|
|
2072
|
+
);
|
|
2073
|
+
}
|
|
2074
|
+
var scrollableListControlClassNames = {
|
|
2075
|
+
button: "a63-ScrollableList-controlButton",
|
|
2076
|
+
icon: "a63-ScrollableList-controlIcon"
|
|
2077
|
+
};
|
|
2078
|
+
function ScrollableList({
|
|
2079
|
+
children,
|
|
2080
|
+
className,
|
|
2081
|
+
contentPad,
|
|
2082
|
+
controlInset,
|
|
2083
|
+
showChevrons = true,
|
|
2084
|
+
disabled = false,
|
|
2085
|
+
draggable = false,
|
|
2086
|
+
mask = true,
|
|
2087
|
+
wrapLayoutBreakpoint
|
|
2088
|
+
}) {
|
|
2089
|
+
const [canScrollLeft, setCanScrollLeft] = useState(false);
|
|
2090
|
+
const [canScrollRight, setCanScrollRight] = useState(false);
|
|
2091
|
+
const [useWrapLayout, setUseWrapLayout] = useState(false);
|
|
2092
|
+
const containerRef = useRef(null);
|
|
2093
|
+
const scrollAreaRef = useRef(null);
|
|
2094
|
+
const getViewport = useCallback(() => {
|
|
2095
|
+
return scrollAreaRef.current?.querySelector('[data-slot="scroll-area-viewport"]');
|
|
2096
|
+
}, []);
|
|
2097
|
+
const checkScrollPosition = useCallback(() => {
|
|
2098
|
+
const viewport = getViewport();
|
|
2099
|
+
if (!viewport) return;
|
|
2100
|
+
const { scrollLeft, scrollWidth, clientWidth } = viewport;
|
|
2101
|
+
setCanScrollLeft(scrollLeft > 1);
|
|
2102
|
+
setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 1);
|
|
2103
|
+
}, [getViewport]);
|
|
2104
|
+
const scrollContent = useCallback(
|
|
2105
|
+
(direction) => {
|
|
2106
|
+
const viewport = getViewport();
|
|
2107
|
+
if (!viewport) return;
|
|
2108
|
+
const scrollAmount = viewport.clientWidth * 0.8;
|
|
2109
|
+
const targetScroll = viewport.scrollLeft + (direction === "right" ? scrollAmount : -scrollAmount);
|
|
2110
|
+
viewport.scrollTo({
|
|
2111
|
+
left: targetScroll,
|
|
2112
|
+
behavior: window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
|
|
2113
|
+
});
|
|
2114
|
+
},
|
|
2115
|
+
[getViewport]
|
|
2116
|
+
);
|
|
2117
|
+
useEffect(() => {
|
|
2118
|
+
if (!wrapLayoutBreakpoint) return;
|
|
2119
|
+
const container = containerRef.current;
|
|
2120
|
+
if (!container) return;
|
|
2121
|
+
const checkWidth = () => {
|
|
2122
|
+
const width = container.getBoundingClientRect().width;
|
|
2123
|
+
setUseWrapLayout(width >= wrapLayoutBreakpoint);
|
|
2124
|
+
};
|
|
2125
|
+
checkWidth();
|
|
2126
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
2127
|
+
requestAnimationFrame(checkWidth);
|
|
2128
|
+
});
|
|
2129
|
+
resizeObserver.observe(container);
|
|
2130
|
+
return () => resizeObserver.disconnect();
|
|
2131
|
+
}, [wrapLayoutBreakpoint]);
|
|
2132
|
+
useEffect(() => {
|
|
2133
|
+
if (useWrapLayout) return;
|
|
2134
|
+
const immediateCheck = window.setTimeout(checkScrollPosition, 10);
|
|
2135
|
+
const delayedCheck = window.setTimeout(checkScrollPosition, 100);
|
|
2136
|
+
return () => {
|
|
2137
|
+
clearTimeout(immediateCheck);
|
|
2138
|
+
clearTimeout(delayedCheck);
|
|
2139
|
+
};
|
|
2140
|
+
}, [checkScrollPosition, useWrapLayout, children]);
|
|
2141
|
+
useEffect(() => {
|
|
2142
|
+
if (!draggable || disabled || useWrapLayout) {
|
|
2143
|
+
return;
|
|
2144
|
+
}
|
|
2145
|
+
const viewport = getViewport();
|
|
2146
|
+
if (!viewport) {
|
|
2147
|
+
return;
|
|
2148
|
+
}
|
|
2149
|
+
let isDown = false;
|
|
2150
|
+
let startX = 0;
|
|
2151
|
+
let startScroll = 0;
|
|
2152
|
+
let moved = false;
|
|
2153
|
+
const onPointerDown = (event) => {
|
|
2154
|
+
isDown = true;
|
|
2155
|
+
moved = false;
|
|
2156
|
+
startX = event.clientX;
|
|
2157
|
+
startScroll = viewport.scrollLeft;
|
|
2158
|
+
viewport.setPointerCapture?.(event.pointerId);
|
|
2159
|
+
viewport.dataset.dragging = "true";
|
|
2160
|
+
};
|
|
2161
|
+
const onPointerMove = (event) => {
|
|
2162
|
+
if (!isDown) {
|
|
2163
|
+
return;
|
|
2164
|
+
}
|
|
2165
|
+
const dx = event.clientX - startX;
|
|
2166
|
+
if (Math.abs(dx) > 3) {
|
|
2167
|
+
moved = true;
|
|
2168
|
+
}
|
|
2169
|
+
viewport.scrollLeft = startScroll - dx;
|
|
2170
|
+
};
|
|
2171
|
+
const endDrag = (event) => {
|
|
2172
|
+
if (!isDown) {
|
|
2173
|
+
return;
|
|
2174
|
+
}
|
|
2175
|
+
isDown = false;
|
|
2176
|
+
viewport.dataset.dragging = "";
|
|
2177
|
+
viewport.releasePointerCapture?.(event.pointerId);
|
|
2178
|
+
};
|
|
2179
|
+
const onClickCapture = (event) => {
|
|
2180
|
+
if (moved) {
|
|
2181
|
+
event.stopPropagation();
|
|
2182
|
+
event.preventDefault();
|
|
2183
|
+
moved = false;
|
|
2184
|
+
}
|
|
2185
|
+
};
|
|
2186
|
+
viewport.addEventListener("pointerdown", onPointerDown);
|
|
2187
|
+
viewport.addEventListener("pointermove", onPointerMove);
|
|
2188
|
+
viewport.addEventListener("pointerup", endDrag);
|
|
2189
|
+
viewport.addEventListener("pointercancel", endDrag);
|
|
2190
|
+
viewport.addEventListener("click", onClickCapture, true);
|
|
2191
|
+
return () => {
|
|
2192
|
+
viewport.removeEventListener("pointerdown", onPointerDown);
|
|
2193
|
+
viewport.removeEventListener("pointermove", onPointerMove);
|
|
2194
|
+
viewport.removeEventListener("pointerup", endDrag);
|
|
2195
|
+
viewport.removeEventListener("pointercancel", endDrag);
|
|
2196
|
+
viewport.removeEventListener("click", onClickCapture, true);
|
|
2197
|
+
};
|
|
2198
|
+
}, [disabled, draggable, useWrapLayout, getViewport]);
|
|
2199
|
+
useEffect(() => {
|
|
2200
|
+
if (useWrapLayout) return;
|
|
2201
|
+
const viewport = getViewport();
|
|
2202
|
+
if (!viewport) return;
|
|
2203
|
+
checkScrollPosition();
|
|
2204
|
+
viewport.addEventListener("scroll", checkScrollPosition);
|
|
2205
|
+
const resizeObserver = new ResizeObserver(checkScrollPosition);
|
|
2206
|
+
resizeObserver.observe(viewport);
|
|
2207
|
+
const contentContainer = viewport.querySelector(":scope > *");
|
|
2208
|
+
if (contentContainer) {
|
|
2209
|
+
resizeObserver.observe(contentContainer);
|
|
2210
|
+
}
|
|
2211
|
+
return () => {
|
|
2212
|
+
viewport.removeEventListener("scroll", checkScrollPosition);
|
|
2213
|
+
resizeObserver.disconnect();
|
|
2214
|
+
};
|
|
2215
|
+
}, [checkScrollPosition, getViewport, useWrapLayout]);
|
|
2216
|
+
const bleedStyle = contentPad || controlInset ? {
|
|
2217
|
+
...contentPad ? { "--scrollable-list-content-pad": contentPad } : null,
|
|
2218
|
+
...controlInset ? { "--scrollable-list-control-inset": controlInset } : null
|
|
2219
|
+
} : void 0;
|
|
2220
|
+
if (wrapLayoutBreakpoint && useWrapLayout) {
|
|
2221
|
+
return /* @__PURE__ */ jsx(
|
|
2222
|
+
"div",
|
|
2223
|
+
{
|
|
2224
|
+
className: cn("a63-ScrollableList", className),
|
|
2225
|
+
"data-disabled": disabled || void 0,
|
|
2226
|
+
"data-slot": "scrollable-list",
|
|
2227
|
+
ref: containerRef,
|
|
2228
|
+
style: bleedStyle,
|
|
2229
|
+
children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
|
|
2230
|
+
}
|
|
2231
|
+
);
|
|
2232
|
+
}
|
|
2233
|
+
return /* @__PURE__ */ jsx(
|
|
2234
|
+
"div",
|
|
2235
|
+
{
|
|
2236
|
+
className: cn("a63-ScrollableList", className),
|
|
2237
|
+
"data-disabled": disabled || void 0,
|
|
2238
|
+
"data-draggable": draggable || void 0,
|
|
2239
|
+
"data-slot": "scrollable-list",
|
|
2240
|
+
ref: containerRef,
|
|
2241
|
+
style: bleedStyle,
|
|
2242
|
+
children: /* @__PURE__ */ jsxs("div", { className: "a63-ScrollableList-frame", "data-slot": "scrollable-list-frame", children: [
|
|
2243
|
+
/* @__PURE__ */ jsx(
|
|
2244
|
+
ScrollArea,
|
|
2245
|
+
{
|
|
2246
|
+
className: "[&_[data-slot=scroll-area-scrollbar][data-orientation=vertical]]:hidden",
|
|
2247
|
+
ref: scrollAreaRef,
|
|
2248
|
+
scrollFade: mask,
|
|
2249
|
+
viewportClassName: "overflow-y-hidden",
|
|
2250
|
+
children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
|
|
2251
|
+
}
|
|
2252
|
+
),
|
|
2253
|
+
showChevrons && canScrollLeft && !disabled && /* @__PURE__ */ jsx(
|
|
2254
|
+
"div",
|
|
2255
|
+
{
|
|
2256
|
+
className: "a63-ScrollableList-control",
|
|
2257
|
+
"data-side": "left",
|
|
2258
|
+
"data-slot": "scrollable-list-control",
|
|
2259
|
+
"data-visible": true,
|
|
2260
|
+
children: /* @__PURE__ */ jsx(
|
|
2261
|
+
Button,
|
|
2262
|
+
{
|
|
2263
|
+
"aria-label": "Scroll left",
|
|
2264
|
+
className: scrollableListControlClassNames.button,
|
|
2265
|
+
onClick: () => scrollContent("left"),
|
|
2266
|
+
size: "icon-lg",
|
|
2267
|
+
type: "button",
|
|
2268
|
+
variant: "secondary",
|
|
2269
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: scrollableListControlClassNames.icon })
|
|
2270
|
+
}
|
|
2271
|
+
)
|
|
2272
|
+
}
|
|
2273
|
+
),
|
|
2274
|
+
showChevrons && canScrollRight && !disabled && /* @__PURE__ */ jsx(
|
|
2275
|
+
"div",
|
|
2276
|
+
{
|
|
2277
|
+
className: "a63-ScrollableList-control",
|
|
2278
|
+
"data-side": "right",
|
|
2279
|
+
"data-slot": "scrollable-list-control",
|
|
2280
|
+
"data-visible": true,
|
|
2281
|
+
children: /* @__PURE__ */ jsx(
|
|
2282
|
+
Button,
|
|
2283
|
+
{
|
|
2284
|
+
"aria-label": "Scroll right",
|
|
2285
|
+
className: scrollableListControlClassNames.button,
|
|
2286
|
+
onClick: () => scrollContent("right"),
|
|
2287
|
+
size: "icon-lg",
|
|
2288
|
+
type: "button",
|
|
2289
|
+
variant: "secondary",
|
|
2290
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: scrollableListControlClassNames.icon })
|
|
2291
|
+
}
|
|
2292
|
+
)
|
|
2293
|
+
}
|
|
2294
|
+
)
|
|
2295
|
+
] })
|
|
2296
|
+
}
|
|
2297
|
+
);
|
|
2298
|
+
}
|
|
2299
|
+
var Select = Select$1.Root;
|
|
2300
|
+
var selectTriggerDefaultClassName = "a63-Select-trigger";
|
|
2301
|
+
function SelectTrigger({
|
|
2302
|
+
children,
|
|
2303
|
+
className,
|
|
2304
|
+
size = selectContract.defaultSize,
|
|
2305
|
+
...props
|
|
2306
|
+
}) {
|
|
2307
|
+
return /* @__PURE__ */ jsxs(
|
|
2308
|
+
Select$1.Trigger,
|
|
2309
|
+
{
|
|
2310
|
+
className: cn(selectTriggerDefaultClassName, className),
|
|
2311
|
+
"data-size": size,
|
|
2312
|
+
"data-slot": "select-trigger",
|
|
2313
|
+
...props,
|
|
2314
|
+
children: [
|
|
2315
|
+
children,
|
|
2316
|
+
/* @__PURE__ */ jsx(Select$1.Icon, { className: "a63-Select-icon", "data-slot": "select-icon", children: /* @__PURE__ */ jsx(ChevronsUpDown, { "aria-hidden": "true" }) })
|
|
2317
|
+
]
|
|
2318
|
+
}
|
|
2319
|
+
);
|
|
2320
|
+
}
|
|
2321
|
+
function SelectValue({
|
|
2322
|
+
className,
|
|
2323
|
+
...props
|
|
2324
|
+
}) {
|
|
2325
|
+
return /* @__PURE__ */ jsx(
|
|
2326
|
+
Select$1.Value,
|
|
2327
|
+
{
|
|
2328
|
+
className: cn("a63-Select-value", className),
|
|
2329
|
+
"data-slot": "select-value",
|
|
2330
|
+
...props
|
|
2331
|
+
}
|
|
2332
|
+
);
|
|
2333
|
+
}
|
|
2334
|
+
function SelectPopup({
|
|
2335
|
+
children,
|
|
2336
|
+
className,
|
|
2337
|
+
listClassName,
|
|
2338
|
+
portalContainer,
|
|
2339
|
+
sideOffset = 4,
|
|
2340
|
+
alignItemWithTrigger = true,
|
|
2341
|
+
...props
|
|
2342
|
+
}) {
|
|
2343
|
+
const contextPortalContainer = usePortalContainer();
|
|
2344
|
+
const container = portalContainer ?? contextPortalContainer;
|
|
2345
|
+
return /* @__PURE__ */ jsx(Select$1.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
2346
|
+
Select$1.Positioner,
|
|
2347
|
+
{
|
|
2348
|
+
alignItemWithTrigger,
|
|
2349
|
+
className: "a63-Select-positioner",
|
|
2350
|
+
"data-slot": "select-positioner",
|
|
2351
|
+
sideOffset,
|
|
2352
|
+
children: /* @__PURE__ */ jsxs(
|
|
2353
|
+
Select$1.Popup,
|
|
2354
|
+
{
|
|
2355
|
+
className: cn("a63-Select-popup", className),
|
|
2356
|
+
"data-slot": "select-popup",
|
|
2357
|
+
...props,
|
|
2358
|
+
children: [
|
|
2359
|
+
/* @__PURE__ */ jsx(
|
|
2360
|
+
Select$1.ScrollUpArrow,
|
|
2361
|
+
{
|
|
2362
|
+
className: "a63-Select-scroll-arrow",
|
|
2363
|
+
"data-slot": "select-scroll-up-arrow",
|
|
2364
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { "aria-hidden": "true" })
|
|
2365
|
+
}
|
|
2366
|
+
),
|
|
2367
|
+
/* @__PURE__ */ jsx("div", { className: "a63-Select-surface a63-Menu-popup", "data-slot": "select-surface", children: /* @__PURE__ */ jsx(
|
|
2368
|
+
Select$1.List,
|
|
2369
|
+
{
|
|
2370
|
+
className: cn("a63-Select-list", listClassName),
|
|
2371
|
+
"data-slot": "select-list",
|
|
2372
|
+
children
|
|
2373
|
+
}
|
|
2374
|
+
) }),
|
|
2375
|
+
/* @__PURE__ */ jsx(
|
|
2376
|
+
Select$1.ScrollDownArrow,
|
|
2377
|
+
{
|
|
2378
|
+
className: "a63-Select-scroll-arrow",
|
|
2379
|
+
"data-slot": "select-scroll-down-arrow",
|
|
2380
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true" })
|
|
2381
|
+
}
|
|
2382
|
+
)
|
|
2383
|
+
]
|
|
2384
|
+
}
|
|
2385
|
+
)
|
|
2386
|
+
}
|
|
2387
|
+
) });
|
|
2388
|
+
}
|
|
2389
|
+
function SelectItem({
|
|
2390
|
+
children,
|
|
2391
|
+
className,
|
|
2392
|
+
...props
|
|
2393
|
+
}) {
|
|
2394
|
+
return /* @__PURE__ */ jsxs(
|
|
2395
|
+
Select$1.Item,
|
|
2396
|
+
{
|
|
2397
|
+
className: cn("a63-Menu-item", "a63-Select-item", className),
|
|
2398
|
+
"data-slot": "select-item",
|
|
2399
|
+
...props,
|
|
2400
|
+
children: [
|
|
2401
|
+
/* @__PURE__ */ jsx(
|
|
2402
|
+
Select$1.ItemIndicator,
|
|
2403
|
+
{
|
|
2404
|
+
className: "a63-Select-item-indicator",
|
|
2405
|
+
"data-slot": "select-item-indicator",
|
|
2406
|
+
children: /* @__PURE__ */ jsx(Check, { "aria-hidden": "true" })
|
|
2407
|
+
}
|
|
2408
|
+
),
|
|
2409
|
+
/* @__PURE__ */ jsx(Select$1.ItemText, { className: "a63-Select-item-text", "data-slot": "select-item-text", children })
|
|
2410
|
+
]
|
|
2411
|
+
}
|
|
2412
|
+
);
|
|
2413
|
+
}
|
|
2414
|
+
function SelectSeparator({
|
|
2415
|
+
className,
|
|
2416
|
+
...props
|
|
2417
|
+
}) {
|
|
2418
|
+
return /* @__PURE__ */ jsx(
|
|
2419
|
+
Select$1.Separator,
|
|
2420
|
+
{
|
|
2421
|
+
className: cn("a63-Menu-separator", "a63-Select-separator", className),
|
|
2422
|
+
"data-slot": "select-separator",
|
|
2423
|
+
...props
|
|
2424
|
+
}
|
|
2425
|
+
);
|
|
2426
|
+
}
|
|
2427
|
+
function SelectGroup(props) {
|
|
2428
|
+
return /* @__PURE__ */ jsx(Select$1.Group, { "data-slot": "select-group", ...props });
|
|
2429
|
+
}
|
|
2430
|
+
function SelectGroupLabel({
|
|
2431
|
+
className,
|
|
2432
|
+
...props
|
|
2433
|
+
}) {
|
|
2434
|
+
return /* @__PURE__ */ jsx(
|
|
2435
|
+
Select$1.GroupLabel,
|
|
2436
|
+
{
|
|
2437
|
+
className: cn("a63-Menu-label", "a63-Select-group-label", className),
|
|
2438
|
+
"data-slot": "select-group-label",
|
|
2439
|
+
...props
|
|
2440
|
+
}
|
|
2441
|
+
);
|
|
2442
|
+
}
|
|
2443
|
+
var SelectContent = SelectPopup;
|
|
2444
|
+
var openSheetCount = 0;
|
|
2445
|
+
function setSheetBodyState(open) {
|
|
2446
|
+
openSheetCount = Math.max(0, openSheetCount + (open ? 1 : -1));
|
|
2447
|
+
document.body.toggleAttribute("data-sheet-open", openSheetCount > 0);
|
|
2448
|
+
}
|
|
2449
|
+
function Sheet({ onOpenChange, open, defaultOpen, ...props }) {
|
|
2450
|
+
const isControlled = open !== void 0;
|
|
2451
|
+
const bodyStateRef = React3.useRef(false);
|
|
2452
|
+
const syncBodyState = React3.useCallback((nextOpen) => {
|
|
2453
|
+
if (bodyStateRef.current === nextOpen) return;
|
|
2454
|
+
bodyStateRef.current = nextOpen;
|
|
2455
|
+
setSheetBodyState(nextOpen);
|
|
2456
|
+
}, []);
|
|
2457
|
+
React3.useEffect(() => {
|
|
2458
|
+
if (isControlled) syncBodyState(open);
|
|
2459
|
+
}, [isControlled, open, syncBodyState]);
|
|
2460
|
+
React3.useEffect(() => {
|
|
2461
|
+
if (!isControlled && defaultOpen) syncBodyState(true);
|
|
2462
|
+
return () => syncBodyState(false);
|
|
2463
|
+
}, [defaultOpen, isControlled, syncBodyState]);
|
|
2464
|
+
const handleOpenChange = (open2, eventDetails) => {
|
|
2465
|
+
if (!isControlled) syncBodyState(open2);
|
|
2466
|
+
onOpenChange?.(open2, eventDetails);
|
|
2467
|
+
};
|
|
2468
|
+
return /* @__PURE__ */ jsx(
|
|
2469
|
+
Dialog$1.Root,
|
|
2470
|
+
{
|
|
2471
|
+
"data-slot": "sheet",
|
|
2472
|
+
defaultOpen,
|
|
2473
|
+
onOpenChange: handleOpenChange,
|
|
2474
|
+
open,
|
|
2475
|
+
...props
|
|
2476
|
+
}
|
|
2477
|
+
);
|
|
2478
|
+
}
|
|
2479
|
+
function SheetPortal(props) {
|
|
2480
|
+
return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2481
|
+
}
|
|
2482
|
+
function SheetTrigger({
|
|
2483
|
+
className,
|
|
2484
|
+
...props
|
|
2485
|
+
}) {
|
|
2486
|
+
return /* @__PURE__ */ jsx(Dialog$1.Trigger, { className, "data-slot": "sheet-trigger", ...props });
|
|
2487
|
+
}
|
|
2488
|
+
function SheetClose({
|
|
2489
|
+
className,
|
|
2490
|
+
...props
|
|
2491
|
+
}) {
|
|
2492
|
+
return /* @__PURE__ */ jsx(Dialog$1.Close, { className, "data-slot": "sheet-close", ...props });
|
|
2493
|
+
}
|
|
2494
|
+
function SheetBackdrop({
|
|
2495
|
+
className,
|
|
2496
|
+
...props
|
|
2497
|
+
}) {
|
|
2498
|
+
return /* @__PURE__ */ jsx(
|
|
2499
|
+
Dialog$1.Backdrop,
|
|
2500
|
+
{
|
|
2501
|
+
className: cn("a63-Sheet-backdrop", className),
|
|
2502
|
+
"data-slot": "sheet-backdrop",
|
|
2503
|
+
...props
|
|
2504
|
+
}
|
|
2505
|
+
);
|
|
2506
|
+
}
|
|
2507
|
+
function SheetViewport({
|
|
2508
|
+
className,
|
|
2509
|
+
side = sheetContract.defaultSide,
|
|
2510
|
+
variant = sheetContract.defaultVariant,
|
|
2511
|
+
...props
|
|
2512
|
+
}) {
|
|
2513
|
+
return /* @__PURE__ */ jsx(
|
|
2514
|
+
Dialog$1.Viewport,
|
|
2515
|
+
{
|
|
2516
|
+
className: cn("a63-Sheet-viewport", className),
|
|
2517
|
+
"data-side": side,
|
|
2518
|
+
"data-slot": "sheet-viewport",
|
|
2519
|
+
"data-variant": variant,
|
|
2520
|
+
...props
|
|
2521
|
+
}
|
|
2522
|
+
);
|
|
2523
|
+
}
|
|
2524
|
+
function SheetPopup({
|
|
2525
|
+
className,
|
|
2526
|
+
children,
|
|
2527
|
+
showCloseButton = true,
|
|
2528
|
+
side = sheetContract.defaultSide,
|
|
2529
|
+
variant = sheetContract.defaultVariant,
|
|
2530
|
+
closeProps,
|
|
2531
|
+
portalProps,
|
|
2532
|
+
...props
|
|
2533
|
+
}) {
|
|
2534
|
+
return /* @__PURE__ */ jsxs(SheetPortal, { ...portalProps, children: [
|
|
2535
|
+
/* @__PURE__ */ jsx(SheetBackdrop, {}),
|
|
2536
|
+
/* @__PURE__ */ jsx(SheetViewport, { side, variant, children: /* @__PURE__ */ jsxs(
|
|
2537
|
+
Dialog$1.Popup,
|
|
2538
|
+
{
|
|
2539
|
+
className: cn("a63-Sheet-popup", className),
|
|
2540
|
+
"data-side": side,
|
|
2541
|
+
"data-slot": "sheet-popup",
|
|
2542
|
+
"data-variant": variant,
|
|
2543
|
+
...props,
|
|
2544
|
+
children: [
|
|
2545
|
+
children,
|
|
2546
|
+
showCloseButton && /* @__PURE__ */ jsx(
|
|
2547
|
+
Dialog$1.Close,
|
|
2548
|
+
{
|
|
2549
|
+
"aria-label": "Close",
|
|
2550
|
+
className: "a63-Sheet-close-button",
|
|
2551
|
+
"data-slot": "sheet-close-button",
|
|
2552
|
+
render: /* @__PURE__ */ jsx(Button, { size: "icon", variant: "ghost" }),
|
|
2553
|
+
...closeProps,
|
|
2554
|
+
children: /* @__PURE__ */ jsx(X, { "aria-hidden": "true" })
|
|
2555
|
+
}
|
|
2556
|
+
)
|
|
2557
|
+
]
|
|
2558
|
+
}
|
|
2559
|
+
) })
|
|
2560
|
+
] });
|
|
2561
|
+
}
|
|
2562
|
+
function SheetHeader({
|
|
2563
|
+
className,
|
|
2564
|
+
render,
|
|
2565
|
+
...props
|
|
2566
|
+
}) {
|
|
2567
|
+
const defaultProps = {
|
|
2568
|
+
className: cn("a63-Sheet-header", className),
|
|
2569
|
+
"data-slot": "sheet-header"
|
|
2570
|
+
};
|
|
2571
|
+
return useRender({
|
|
2572
|
+
defaultTagName: "div",
|
|
2573
|
+
props: mergeProps(defaultProps, props),
|
|
2574
|
+
render
|
|
2575
|
+
});
|
|
2576
|
+
}
|
|
2577
|
+
function SheetFooter({
|
|
2578
|
+
className,
|
|
2579
|
+
variant = sheetContract.defaultFooterVariant,
|
|
2580
|
+
render,
|
|
2581
|
+
...props
|
|
2582
|
+
}) {
|
|
2583
|
+
const defaultProps = {
|
|
2584
|
+
className: cn("a63-Sheet-footer", className),
|
|
2585
|
+
"data-slot": "sheet-footer",
|
|
2586
|
+
"data-variant": variant
|
|
2587
|
+
};
|
|
2588
|
+
return useRender({
|
|
2589
|
+
defaultTagName: "div",
|
|
2590
|
+
props: mergeProps(defaultProps, props),
|
|
2591
|
+
render
|
|
2592
|
+
});
|
|
2593
|
+
}
|
|
2594
|
+
function SheetTitle({
|
|
2595
|
+
className,
|
|
2596
|
+
...props
|
|
2597
|
+
}) {
|
|
2598
|
+
return /* @__PURE__ */ jsx(
|
|
2599
|
+
Dialog$1.Title,
|
|
2600
|
+
{
|
|
2601
|
+
className: cn("a63-Sheet-title", className),
|
|
2602
|
+
"data-slot": "sheet-title",
|
|
2603
|
+
...props
|
|
2604
|
+
}
|
|
2605
|
+
);
|
|
2606
|
+
}
|
|
2607
|
+
function SheetDescription({
|
|
2608
|
+
className,
|
|
2609
|
+
...props
|
|
2610
|
+
}) {
|
|
2611
|
+
return /* @__PURE__ */ jsx(
|
|
2612
|
+
Dialog$1.Description,
|
|
2613
|
+
{
|
|
2614
|
+
className: cn("a63-Sheet-description", className),
|
|
2615
|
+
"data-slot": "sheet-description",
|
|
2616
|
+
...props
|
|
2617
|
+
}
|
|
2618
|
+
);
|
|
2619
|
+
}
|
|
2620
|
+
function SheetPanel({
|
|
2621
|
+
className,
|
|
2622
|
+
scrollFade = true,
|
|
2623
|
+
render,
|
|
2624
|
+
...props
|
|
2625
|
+
}) {
|
|
2626
|
+
const defaultProps = {
|
|
2627
|
+
className: cn("a63-Sheet-panel", className),
|
|
2628
|
+
"data-slot": "sheet-panel"
|
|
2629
|
+
};
|
|
2630
|
+
return /* @__PURE__ */ jsx(ScrollArea, { scrollFade, children: useRender({
|
|
2631
|
+
defaultTagName: "div",
|
|
2632
|
+
props: mergeProps(defaultProps, props),
|
|
2633
|
+
render
|
|
2634
|
+
}) });
|
|
2635
|
+
}
|
|
2636
|
+
var TooltipCreateHandle = Tooltip$1.createHandle;
|
|
2637
|
+
var TooltipProvider = Tooltip$1.Provider;
|
|
2638
|
+
var Tooltip = Tooltip$1.Root;
|
|
2639
|
+
function TooltipTrigger(props) {
|
|
2640
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
2641
|
+
}
|
|
2642
|
+
function TooltipPopup({
|
|
2643
|
+
align = "center",
|
|
2644
|
+
anchor,
|
|
2645
|
+
children,
|
|
2646
|
+
className,
|
|
2647
|
+
portalProps,
|
|
2648
|
+
side = "top",
|
|
2649
|
+
sideOffset = 4,
|
|
2650
|
+
...props
|
|
2651
|
+
}) {
|
|
2652
|
+
const contextPortalContainer = usePortalContainer();
|
|
2653
|
+
const container = portalProps?.container ?? contextPortalContainer;
|
|
2654
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { ...portalProps, container, children: /* @__PURE__ */ jsx(
|
|
2655
|
+
Tooltip$1.Positioner,
|
|
2656
|
+
{
|
|
2657
|
+
align,
|
|
2658
|
+
anchor,
|
|
2659
|
+
className: "a63-Tooltip-positioner",
|
|
2660
|
+
"data-slot": "tooltip-positioner",
|
|
2661
|
+
side,
|
|
2662
|
+
sideOffset,
|
|
2663
|
+
children: /* @__PURE__ */ jsx(
|
|
2664
|
+
Tooltip$1.Popup,
|
|
2665
|
+
{
|
|
2666
|
+
className: cn("a63-Tooltip-popup", className),
|
|
2667
|
+
"data-slot": "tooltip-popup",
|
|
2668
|
+
...props,
|
|
2669
|
+
children: /* @__PURE__ */ jsx(Tooltip$1.Viewport, { className: "a63-Tooltip-viewport", "data-slot": "tooltip-viewport", children })
|
|
2670
|
+
}
|
|
2671
|
+
)
|
|
2672
|
+
}
|
|
2673
|
+
) });
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
export { AlertDialog, AlertDialogAction, AlertDialogBackdrop, AlertDialogCancel, AlertDialogClose, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogPopup, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, ButtonGroup, ButtonGroupProvider, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardCursorLabel, CardDescription, CardFooter, CardHeader, CardLabel, CardMedia, CardMediaOverlay, CardMediaOverlayBottom, CardMediaOverlayIconButton, CardMediaOverlayImage, CardMediaOverlayScrim, CardMediaOverlayTopRight, CardTags, CardTitle, Command, CommandCollection, CommandCreateHandle, CommandDialog, CommandDialogBackdrop, CommandDialogPopup, CommandDialogPortal, CommandDialogTrigger, CommandDialogViewport, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, Dialog, DialogBackdrop, DialogClose, DialogCreateHandle, DialogDescription, DialogFooter, DialogHeader, DialogPanel, DialogPopup, DialogPortal, DialogTitle, DialogTrigger, DialogViewport, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ScrollableList, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport, Textarea, Tooltip, TooltipCreateHandle, TooltipPopup, TooltipProvider, TooltipTrigger, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useAutocompleteFilter, useButtonGroupContext, useCardCursor };
|
|
2677
|
+
//# sourceMappingURL=chunk-GDUMA6FI.js.map
|
|
2678
|
+
//# sourceMappingURL=chunk-GDUMA6FI.js.map
|