@atom63/ui-react 0.2.0-beta.1 → 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 +31 -27
- 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
package/dist/index.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Separator, InputGroup, InputGroupAddon, InputGroupInput, InputGroupButton, Sheet, SheetPopup, SheetHeader, SheetTitle, SheetDescription, Input, Tooltip, TooltipTrigger, TooltipPopup } from './chunk-GDUMA6FI.js';
|
|
2
|
+
export { AlertDialog, AlertDialogAction, AlertDialogBackdrop, AlertDialogCancel, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogPopup, AlertDialogPortal, AlertDialogPrimitive, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompletePrimitive, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, AvatarPrimitive, 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, DialogPopup as DialogContent, DialogCreateHandle, DialogDescription, DialogFooter, DialogHeader, DialogBackdrop as DialogOverlay, DialogPanel, DialogPopup, DialogPortal, DialogPrimitive, DialogTitle, DialogTrigger, DialogViewport, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputPrimitive, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport, Progress, ProgressIndicator, ProgressLabel, ProgressPrimitive, ProgressTrack, ProgressValue, ScrollableList, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorPrimitive, Sheet, SheetBackdrop, SheetClose, SheetPopup as SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetBackdrop as SheetOverlay, SheetPanel, SheetPopup, SheetPortal, SheetPrimitive, SheetTitle, SheetTrigger, SheetViewport, Textarea, Tooltip, TooltipPopup as TooltipContent, TooltipCreateHandle, TooltipPopup, TooltipPrimitive, TooltipProvider, TooltipTrigger, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useAutocompleteFilter, useButtonGroupContext, useCardCursor } from './chunk-GDUMA6FI.js';
|
|
3
|
+
export { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, SegmentedControl, Slider, SliderValue } from './chunk-J77BAGTA.js';
|
|
4
|
+
import { Button } from './chunk-NBHGMMQN.js';
|
|
5
|
+
export { ATOM63_FLYOUT_TRANSITION, ATOM63_FLYOUT_TRANSITION_CSS, ATOM63_MOTION_EASE, ATOM63_MOTION_EASE_CSS, ATOM63_OVERLAY_MOTION_DURATION_CSS, ATOM63_OVERLAY_MOTION_DURATION_MS, ATOM63_OVERLAY_MOTION_EASE, ATOM63_OVERLAY_MOTION_EASE_CSS, Button, ScrollArea, ScrollBar } from './chunk-NBHGMMQN.js';
|
|
6
|
+
export { DestinationIndicator, DestinationLink } from './chunk-R67OZVA2.js';
|
|
7
|
+
import { usePortalContainer } from './chunk-UPPHQLZ2.js';
|
|
8
|
+
export { PortalContainerProvider, usePortalContainer } from './chunk-UPPHQLZ2.js';
|
|
5
9
|
import { cn } from './chunk-AJLHJRK6.js';
|
|
6
10
|
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
11
|
+
import * as React3 from 'react';
|
|
12
|
+
import { forwardRef, createContext, useState, useId, useMemo, useContext, useRef, useCallback, useEffect, isValidElement, cloneElement } from 'react';
|
|
7
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
import {
|
|
9
|
-
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
10
|
-
export { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
11
|
-
import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
|
|
12
|
-
export { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
|
|
13
|
-
import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
|
|
14
|
-
export { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
14
|
+
import { getCrossRendererContract, loadMoreTriggerContract, tabsContract, toggleContract, toggleGroupContract, defaultUIEnvironment, alertContract, badgeContract, checkboxContract, connectedPanelContract, emptyContract, feedbackStateContract, itemContract, kbdContract, marqueeContract, paginationContract, radioContract, searchFieldContract, sidebarContract, switchContract, toasterContract } from '@atom63/ui-foundation';
|
|
15
15
|
import { mergeProps } from '@base-ui/react/merge-props';
|
|
16
16
|
import { useRender } from '@base-ui/react/use-render';
|
|
17
|
-
import { LoaderCircle, AlertCircle, CheckCircle, ChevronRight, Ellipsis, ArrowLeft, ArrowRight, ChevronDown, Copy,
|
|
18
|
-
import * as React3 from 'react';
|
|
19
|
-
import { forwardRef, createContext, useRef, useState, useCallback, useId, useMemo, useContext, useEffect, isValidElement, cloneElement } from 'react';
|
|
20
|
-
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
21
|
-
export { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
17
|
+
import { LoaderCircle, AlertCircle, CheckCircle, ChevronRight, Ellipsis, ArrowLeft, ArrowRight, ChevronDown, Copy, Minus, Check, ChevronLeft, PanelLeft, TriangleAlertIcon, CircleCheckIcon, Loader2Icon, InfoIcon, OctagonXIcon, WifiOff, SearchX, RefreshCw, Inbox, FileSearch, Clock, AlertTriangle } from 'lucide-react';
|
|
22
18
|
import { DayPicker } from 'react-day-picker';
|
|
23
19
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
24
20
|
import { useReducedMotion, AnimatePresence, motion } from 'motion/react';
|
|
25
21
|
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
26
22
|
import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
|
|
27
|
-
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
28
|
-
export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
29
23
|
import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
|
|
30
24
|
import { Toaster as Toaster$1, toast } from 'sonner';
|
|
31
25
|
export { toast } from 'sonner';
|
|
@@ -33,26 +27,20 @@ import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
|
33
27
|
import { Menu } from '@base-ui/react/menu';
|
|
34
28
|
import { FormProvider, Controller, useFormContext, useFormState } from 'react-hook-form';
|
|
35
29
|
import { PreviewCard as PreviewCard$1 } from '@base-ui/react/preview-card';
|
|
36
|
-
import { Input as Input$1 } from '@base-ui/react/input';
|
|
37
|
-
export { Input as InputPrimitive } from '@base-ui/react/input';
|
|
38
30
|
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
39
31
|
import { Menubar as Menubar$1 } from '@base-ui/react/menubar';
|
|
40
|
-
import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
|
|
41
32
|
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
42
|
-
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
43
|
-
export { Progress as ProgressPrimitive } from '@base-ui/react/progress';
|
|
44
33
|
import { Radio as Radio$1 } from '@base-ui/react/radio';
|
|
45
34
|
import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
46
35
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
47
|
-
import { Select as Select$1 } from '@base-ui/react/select';
|
|
48
|
-
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
49
|
-
export { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
50
36
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
51
37
|
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
52
38
|
import { createPortal } from 'react-dom';
|
|
53
39
|
import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
|
|
54
40
|
import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
|
|
55
41
|
|
|
42
|
+
var AccordionRootContext = React3.createContext({ hiddenUntilFound: false, keepMounted: false });
|
|
43
|
+
var AccordionItemContext = React3.createContext(null);
|
|
56
44
|
var toValueArray = (value) => {
|
|
57
45
|
if (!value) {
|
|
58
46
|
return void 0;
|
|
@@ -99,36 +87,47 @@ function Accordion({
|
|
|
99
87
|
collapsible: _collapsible,
|
|
100
88
|
defaultValue,
|
|
101
89
|
onValueChange,
|
|
90
|
+
hiddenUntilFound = false,
|
|
91
|
+
keepMounted = true,
|
|
102
92
|
type = "single",
|
|
103
93
|
value,
|
|
104
94
|
...props
|
|
105
95
|
}) {
|
|
106
96
|
const multiple = type === "multiple";
|
|
107
|
-
|
|
97
|
+
const rootContext = React3.useMemo(
|
|
98
|
+
() => ({ hiddenUntilFound, keepMounted }),
|
|
99
|
+
[hiddenUntilFound, keepMounted]
|
|
100
|
+
);
|
|
101
|
+
return /* @__PURE__ */ jsx(AccordionRootContext.Provider, { value: rootContext, children: /* @__PURE__ */ jsx(
|
|
108
102
|
Accordion$1.Root,
|
|
109
103
|
{
|
|
110
104
|
className: cn("a63-Accordion"),
|
|
111
105
|
"data-slot": "accordion",
|
|
112
106
|
defaultValue: toValueArray(defaultValue),
|
|
107
|
+
hiddenUntilFound,
|
|
108
|
+
keepMounted,
|
|
113
109
|
multiple,
|
|
114
110
|
onValueChange: onValueChange ? (nextValue) => onValueChange(multiple ? nextValue : nextValue.at(0) ?? "") : void 0,
|
|
115
111
|
value: toValueArray(value),
|
|
116
112
|
...props
|
|
117
113
|
}
|
|
118
|
-
);
|
|
114
|
+
) });
|
|
119
115
|
}
|
|
120
116
|
function AccordionItem({
|
|
121
117
|
className,
|
|
122
118
|
...props
|
|
123
119
|
}) {
|
|
124
|
-
|
|
120
|
+
const panelId = `${React3.useId()}-panel`;
|
|
121
|
+
const [panel, setPanel] = React3.useState(null);
|
|
122
|
+
const itemContext = React3.useMemo(() => ({ panel, panelId, setPanel }), [panel, panelId]);
|
|
123
|
+
return /* @__PURE__ */ jsx(AccordionItemContext.Provider, { value: itemContext, children: /* @__PURE__ */ jsx(
|
|
125
124
|
Accordion$1.Item,
|
|
126
125
|
{
|
|
127
126
|
className: cn("a63-Accordion-item", className),
|
|
128
127
|
"data-slot": "accordion-item",
|
|
129
128
|
...props
|
|
130
129
|
}
|
|
131
|
-
);
|
|
130
|
+
) });
|
|
132
131
|
}
|
|
133
132
|
function AccordionTrigger({
|
|
134
133
|
children,
|
|
@@ -136,9 +135,13 @@ function AccordionTrigger({
|
|
|
136
135
|
icon = "chevron",
|
|
137
136
|
...props
|
|
138
137
|
}) {
|
|
138
|
+
const root = React3.useContext(AccordionRootContext);
|
|
139
|
+
const item = React3.useContext(AccordionItemContext);
|
|
140
|
+
const panel = item && (item.panel ?? { id: item.panelId, persistent: root.hiddenUntilFound || root.keepMounted });
|
|
139
141
|
return /* @__PURE__ */ jsx(Accordion$1.Header, { className: "a63-Accordion-header", children: /* @__PURE__ */ jsxs(
|
|
140
142
|
Accordion$1.Trigger,
|
|
141
143
|
{
|
|
144
|
+
...panel?.persistent ? { "aria-controls": panel.id } : {},
|
|
142
145
|
className: cn("a63-Accordion-trigger", className),
|
|
143
146
|
"data-icon": icon,
|
|
144
147
|
"data-slot": "accordion-trigger",
|
|
@@ -156,13 +159,30 @@ function AccordionTrigger({
|
|
|
156
159
|
function AccordionContent({
|
|
157
160
|
children,
|
|
158
161
|
className,
|
|
162
|
+
hiddenUntilFound: hiddenUntilFoundProp,
|
|
163
|
+
id: idProp,
|
|
164
|
+
keepMounted: keepMountedProp,
|
|
159
165
|
...props
|
|
160
166
|
}) {
|
|
167
|
+
const root = React3.useContext(AccordionRootContext);
|
|
168
|
+
const item = React3.useContext(AccordionItemContext);
|
|
169
|
+
const setPanel = item?.setPanel;
|
|
170
|
+
const id = idProp ?? item?.panelId;
|
|
171
|
+
const hiddenUntilFound = hiddenUntilFoundProp ?? root.hiddenUntilFound;
|
|
172
|
+
const persistent = hiddenUntilFound || (keepMountedProp ?? root.keepMounted);
|
|
173
|
+
React3.useLayoutEffect(() => {
|
|
174
|
+
if (!setPanel || !id) return void 0;
|
|
175
|
+
setPanel({ id, persistent });
|
|
176
|
+
return () => setPanel(null);
|
|
177
|
+
}, [id, persistent, setPanel]);
|
|
161
178
|
return /* @__PURE__ */ jsx(
|
|
162
179
|
Accordion$1.Panel,
|
|
163
180
|
{
|
|
164
181
|
className: "a63-Accordion-panel",
|
|
165
182
|
"data-slot": "accordion-content",
|
|
183
|
+
hiddenUntilFound: hiddenUntilFoundProp,
|
|
184
|
+
id,
|
|
185
|
+
keepMounted: keepMountedProp,
|
|
166
186
|
...props,
|
|
167
187
|
children: /* @__PURE__ */ jsx(
|
|
168
188
|
"div",
|
|
@@ -219,175 +239,6 @@ function AlertAction({
|
|
|
219
239
|
}) {
|
|
220
240
|
return /* @__PURE__ */ jsx("div", { className: cn("a63-Alert-action", className), "data-slot": "alert-action", ...props });
|
|
221
241
|
}
|
|
222
|
-
var AlertDialogCreateHandle = AlertDialog$1.createHandle;
|
|
223
|
-
var AlertDialog = AlertDialog$1.Root;
|
|
224
|
-
function AlertDialogPortal(props) {
|
|
225
|
-
return /* @__PURE__ */ jsx(AlertDialog$1.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
226
|
-
}
|
|
227
|
-
function AlertDialogTrigger({
|
|
228
|
-
className,
|
|
229
|
-
...props
|
|
230
|
-
}) {
|
|
231
|
-
return /* @__PURE__ */ jsx(
|
|
232
|
-
AlertDialog$1.Trigger,
|
|
233
|
-
{
|
|
234
|
-
className: cn("a63-AlertDialog-trigger", className),
|
|
235
|
-
"data-slot": "alert-dialog-trigger",
|
|
236
|
-
...props
|
|
237
|
-
}
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
function AlertDialogBackdrop({
|
|
241
|
-
className,
|
|
242
|
-
...props
|
|
243
|
-
}) {
|
|
244
|
-
return /* @__PURE__ */ jsx(
|
|
245
|
-
AlertDialog$1.Backdrop,
|
|
246
|
-
{
|
|
247
|
-
className: cn("a63-AlertDialog-backdrop", className),
|
|
248
|
-
"data-slot": "alert-dialog-backdrop",
|
|
249
|
-
...props
|
|
250
|
-
}
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
function AlertDialogViewport({
|
|
254
|
-
className,
|
|
255
|
-
...props
|
|
256
|
-
}) {
|
|
257
|
-
return /* @__PURE__ */ jsx(
|
|
258
|
-
AlertDialog$1.Viewport,
|
|
259
|
-
{
|
|
260
|
-
className: cn("a63-AlertDialog-viewport", className),
|
|
261
|
-
"data-slot": "alert-dialog-viewport",
|
|
262
|
-
...props
|
|
263
|
-
}
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
function AlertDialogPopup({
|
|
267
|
-
className,
|
|
268
|
-
bottomStickOnMobile = true,
|
|
269
|
-
portalProps,
|
|
270
|
-
size = "default",
|
|
271
|
-
variant = "default",
|
|
272
|
-
...props
|
|
273
|
-
}) {
|
|
274
|
-
return /* @__PURE__ */ jsxs(AlertDialogPortal, { ...portalProps, children: [
|
|
275
|
-
/* @__PURE__ */ jsx(AlertDialogBackdrop, {}),
|
|
276
|
-
/* @__PURE__ */ jsx(AlertDialogViewport, { "data-stick-bottom": bottomStickOnMobile ? "" : void 0, children: /* @__PURE__ */ jsx(
|
|
277
|
-
AlertDialog$1.Popup,
|
|
278
|
-
{
|
|
279
|
-
className: cn("a63-AlertDialog-popup", className),
|
|
280
|
-
"data-size": size,
|
|
281
|
-
"data-slot": "alert-dialog-popup",
|
|
282
|
-
"data-stick-bottom": bottomStickOnMobile ? "" : void 0,
|
|
283
|
-
"data-variant": variant,
|
|
284
|
-
...props
|
|
285
|
-
}
|
|
286
|
-
) })
|
|
287
|
-
] });
|
|
288
|
-
}
|
|
289
|
-
function AlertDialogHeader({
|
|
290
|
-
className,
|
|
291
|
-
...props
|
|
292
|
-
}) {
|
|
293
|
-
return /* @__PURE__ */ jsx(
|
|
294
|
-
"div",
|
|
295
|
-
{
|
|
296
|
-
className: cn("a63-AlertDialog-header", className),
|
|
297
|
-
"data-slot": "alert-dialog-header",
|
|
298
|
-
...props
|
|
299
|
-
}
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
function AlertDialogFooter({
|
|
303
|
-
className,
|
|
304
|
-
variant = "default",
|
|
305
|
-
...props
|
|
306
|
-
}) {
|
|
307
|
-
return /* @__PURE__ */ jsx(
|
|
308
|
-
"div",
|
|
309
|
-
{
|
|
310
|
-
className: cn("a63-AlertDialog-footer", className),
|
|
311
|
-
"data-slot": "alert-dialog-footer",
|
|
312
|
-
"data-variant": variant,
|
|
313
|
-
...props
|
|
314
|
-
}
|
|
315
|
-
);
|
|
316
|
-
}
|
|
317
|
-
function AlertDialogMedia({
|
|
318
|
-
className,
|
|
319
|
-
...props
|
|
320
|
-
}) {
|
|
321
|
-
return /* @__PURE__ */ jsx(
|
|
322
|
-
"div",
|
|
323
|
-
{
|
|
324
|
-
className: cn("a63-AlertDialog-media", className),
|
|
325
|
-
"data-slot": "alert-dialog-media",
|
|
326
|
-
...props
|
|
327
|
-
}
|
|
328
|
-
);
|
|
329
|
-
}
|
|
330
|
-
function AlertDialogTitle({
|
|
331
|
-
className,
|
|
332
|
-
...props
|
|
333
|
-
}) {
|
|
334
|
-
return /* @__PURE__ */ jsx(
|
|
335
|
-
AlertDialog$1.Title,
|
|
336
|
-
{
|
|
337
|
-
className: cn("a63-AlertDialog-title", className),
|
|
338
|
-
"data-slot": "alert-dialog-title",
|
|
339
|
-
...props
|
|
340
|
-
}
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
function AlertDialogDescription({
|
|
344
|
-
className,
|
|
345
|
-
...props
|
|
346
|
-
}) {
|
|
347
|
-
return /* @__PURE__ */ jsx(
|
|
348
|
-
AlertDialog$1.Description,
|
|
349
|
-
{
|
|
350
|
-
className: cn("a63-AlertDialog-description", className),
|
|
351
|
-
"data-slot": "alert-dialog-description",
|
|
352
|
-
...props
|
|
353
|
-
}
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
function AlertDialogClose(props) {
|
|
357
|
-
return /* @__PURE__ */ jsx(AlertDialog$1.Close, { "data-slot": "alert-dialog-close", ...props });
|
|
358
|
-
}
|
|
359
|
-
function AlertDialogAction({
|
|
360
|
-
className,
|
|
361
|
-
variant = "default",
|
|
362
|
-
size = "md",
|
|
363
|
-
...props
|
|
364
|
-
}) {
|
|
365
|
-
return /* @__PURE__ */ jsx(
|
|
366
|
-
AlertDialog$1.Close,
|
|
367
|
-
{
|
|
368
|
-
className: cn(className),
|
|
369
|
-
"data-slot": "alert-dialog-action",
|
|
370
|
-
render: /* @__PURE__ */ jsx(Button, { size, variant }),
|
|
371
|
-
...props
|
|
372
|
-
}
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
function AlertDialogCancel({
|
|
376
|
-
className,
|
|
377
|
-
variant = "ghost",
|
|
378
|
-
size = "md",
|
|
379
|
-
...props
|
|
380
|
-
}) {
|
|
381
|
-
return /* @__PURE__ */ jsx(
|
|
382
|
-
AlertDialog$1.Close,
|
|
383
|
-
{
|
|
384
|
-
className: cn(className),
|
|
385
|
-
"data-slot": "alert-dialog-cancel",
|
|
386
|
-
render: /* @__PURE__ */ jsx(Button, { size, variant }),
|
|
387
|
-
...props
|
|
388
|
-
}
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
242
|
var ANIMATED_CHECK_STYLE = `
|
|
392
243
|
.a63-AnimatedCheck {
|
|
393
244
|
display: inline-block;
|
|
@@ -449,438 +300,108 @@ function AnimatedCheck({
|
|
|
449
300
|
}
|
|
450
301
|
);
|
|
451
302
|
}
|
|
452
|
-
|
|
453
|
-
function ChevronsUpDownIcon() {
|
|
454
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
455
|
-
"path",
|
|
456
|
-
{
|
|
457
|
-
d: "M5 6.5 8 3.5 11 6.5M5 9.5l3 3 3-3",
|
|
458
|
-
stroke: "currentColor",
|
|
459
|
-
strokeLinecap: "round",
|
|
460
|
-
strokeLinejoin: "round",
|
|
461
|
-
strokeWidth: "1.5"
|
|
462
|
-
}
|
|
463
|
-
) });
|
|
464
|
-
}
|
|
465
|
-
function CloseIcon() {
|
|
466
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
467
|
-
"path",
|
|
468
|
-
{
|
|
469
|
-
d: "m4 4 8 8M12 4l-8 8",
|
|
470
|
-
stroke: "currentColor",
|
|
471
|
-
strokeLinecap: "round",
|
|
472
|
-
strokeLinejoin: "round",
|
|
473
|
-
strokeWidth: "1.5"
|
|
474
|
-
}
|
|
475
|
-
) });
|
|
476
|
-
}
|
|
477
|
-
function AutocompleteInput({
|
|
303
|
+
function Badge({
|
|
478
304
|
className,
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
size,
|
|
483
|
-
startAddon,
|
|
484
|
-
triggerProps,
|
|
305
|
+
render,
|
|
306
|
+
variant = badgeContract.defaultVariant,
|
|
307
|
+
size = badgeContract.defaultSize,
|
|
485
308
|
...props
|
|
486
309
|
}) {
|
|
487
|
-
const
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
"div",
|
|
499
|
-
{
|
|
500
|
-
"aria-hidden": "true",
|
|
501
|
-
className: "a63-Autocomplete-start-addon",
|
|
502
|
-
"data-slot": "autocomplete-start-addon",
|
|
503
|
-
children: startAddon
|
|
504
|
-
}
|
|
505
|
-
) : null,
|
|
506
|
-
/* @__PURE__ */ jsx(
|
|
507
|
-
Autocomplete$1.Input,
|
|
508
|
-
{
|
|
509
|
-
className: cn("a63-Autocomplete-input", className),
|
|
510
|
-
"data-has-start-addon": startAddon ? "" : void 0,
|
|
511
|
-
"data-slot": "autocomplete-input",
|
|
512
|
-
size: nativeSize,
|
|
513
|
-
...props
|
|
514
|
-
}
|
|
515
|
-
),
|
|
516
|
-
showTrigger ? /* @__PURE__ */ jsx(
|
|
517
|
-
AutocompleteTrigger,
|
|
518
|
-
{
|
|
519
|
-
className: cn("a63-Autocomplete-adornment", triggerProps?.className),
|
|
520
|
-
...triggerProps,
|
|
521
|
-
children: /* @__PURE__ */ jsx(Autocomplete$1.Icon, { "data-slot": "autocomplete-icon", children: /* @__PURE__ */ jsx(ChevronsUpDownIcon, {}) })
|
|
522
|
-
}
|
|
523
|
-
) : null,
|
|
524
|
-
showClear ? /* @__PURE__ */ jsx(
|
|
525
|
-
AutocompleteClear,
|
|
526
|
-
{
|
|
527
|
-
className: cn("a63-Autocomplete-adornment", clearProps?.className),
|
|
528
|
-
...clearProps,
|
|
529
|
-
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
530
|
-
}
|
|
531
|
-
) : null
|
|
532
|
-
]
|
|
533
|
-
}
|
|
534
|
-
);
|
|
310
|
+
const defaultProps = {
|
|
311
|
+
className: cn("a63-Badge", className),
|
|
312
|
+
"data-slot": "badge",
|
|
313
|
+
"data-variant": variant,
|
|
314
|
+
"data-size": size
|
|
315
|
+
};
|
|
316
|
+
return useRender({
|
|
317
|
+
defaultTagName: "span",
|
|
318
|
+
props: mergeProps(defaultProps, props),
|
|
319
|
+
render
|
|
320
|
+
});
|
|
535
321
|
}
|
|
536
|
-
function
|
|
537
|
-
align = "start",
|
|
538
|
-
alignOffset,
|
|
539
|
-
anchor,
|
|
540
|
-
children,
|
|
322
|
+
function Breadcrumb({
|
|
541
323
|
className,
|
|
542
|
-
portalProps,
|
|
543
|
-
side = "bottom",
|
|
544
|
-
sideOffset = 4,
|
|
545
324
|
...props
|
|
546
325
|
}) {
|
|
547
|
-
return /* @__PURE__ */ jsx(
|
|
548
|
-
|
|
326
|
+
return /* @__PURE__ */ jsx(
|
|
327
|
+
"nav",
|
|
549
328
|
{
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
"data-slot": "autocomplete-positioner",
|
|
555
|
-
side,
|
|
556
|
-
sideOffset,
|
|
557
|
-
children: /* @__PURE__ */ jsx("span", { className: "a63-Autocomplete-surface a63-Menu-popup", children: /* @__PURE__ */ jsx(
|
|
558
|
-
Autocomplete$1.Popup,
|
|
559
|
-
{
|
|
560
|
-
className: cn("a63-Autocomplete-popup", className),
|
|
561
|
-
"data-slot": "autocomplete-popup",
|
|
562
|
-
...props,
|
|
563
|
-
children
|
|
564
|
-
}
|
|
565
|
-
) })
|
|
329
|
+
"aria-label": "breadcrumb",
|
|
330
|
+
className: cn("a63-Breadcrumb", className),
|
|
331
|
+
"data-slot": "breadcrumb",
|
|
332
|
+
...props
|
|
566
333
|
}
|
|
567
|
-
)
|
|
334
|
+
);
|
|
568
335
|
}
|
|
569
|
-
function
|
|
570
|
-
children,
|
|
336
|
+
function BreadcrumbList({
|
|
571
337
|
className,
|
|
572
338
|
...props
|
|
573
339
|
}) {
|
|
574
|
-
return /* @__PURE__ */ jsx(
|
|
575
|
-
Autocomplete$1.Item,
|
|
576
|
-
{
|
|
577
|
-
className: cn("a63-Menu-item", "a63-Autocomplete-item", className),
|
|
578
|
-
"data-slot": "autocomplete-item",
|
|
579
|
-
...props,
|
|
580
|
-
children
|
|
581
|
-
}
|
|
582
|
-
);
|
|
340
|
+
return /* @__PURE__ */ jsx("ol", { className: cn("a63-Breadcrumb-list", className), "data-slot": "breadcrumb-list", ...props });
|
|
583
341
|
}
|
|
584
|
-
function
|
|
342
|
+
function BreadcrumbItem({
|
|
585
343
|
className,
|
|
586
344
|
...props
|
|
587
345
|
}) {
|
|
588
|
-
return /* @__PURE__ */ jsx(
|
|
589
|
-
Autocomplete$1.Separator,
|
|
590
|
-
{
|
|
591
|
-
className: cn("a63-Menu-separator", "a63-Autocomplete-separator", className),
|
|
592
|
-
"data-slot": "autocomplete-separator",
|
|
593
|
-
...props
|
|
594
|
-
}
|
|
595
|
-
);
|
|
346
|
+
return /* @__PURE__ */ jsx("li", { className: cn("a63-Breadcrumb-item", className), "data-slot": "breadcrumb-item", ...props });
|
|
596
347
|
}
|
|
597
|
-
function
|
|
348
|
+
function BreadcrumbLink({
|
|
598
349
|
className,
|
|
350
|
+
render,
|
|
351
|
+
asChild = false,
|
|
352
|
+
children,
|
|
599
353
|
...props
|
|
600
354
|
}) {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
355
|
+
const childrenAsRender = !render && asChild && React3.isValidElement(children);
|
|
356
|
+
const resolvedRender = render ?? (childrenAsRender ? children : void 0);
|
|
357
|
+
return useRender({
|
|
358
|
+
defaultTagName: "a",
|
|
359
|
+
props: mergeProps(
|
|
360
|
+
{
|
|
361
|
+
children: childrenAsRender ? void 0 : children,
|
|
362
|
+
className: cn("a63-Breadcrumb-link", className)
|
|
363
|
+
},
|
|
364
|
+
props,
|
|
365
|
+
{ "data-slot": "breadcrumb-link" }
|
|
366
|
+
),
|
|
367
|
+
render: resolvedRender,
|
|
368
|
+
state: {
|
|
369
|
+
slot: "breadcrumb-link"
|
|
607
370
|
}
|
|
608
|
-
);
|
|
371
|
+
});
|
|
609
372
|
}
|
|
610
|
-
function
|
|
373
|
+
function BreadcrumbPage({
|
|
611
374
|
className,
|
|
612
375
|
...props
|
|
613
376
|
}) {
|
|
614
377
|
return /* @__PURE__ */ jsx(
|
|
615
|
-
|
|
378
|
+
"span",
|
|
616
379
|
{
|
|
617
|
-
|
|
618
|
-
|
|
380
|
+
"aria-current": "page",
|
|
381
|
+
className: cn("a63-Breadcrumb-page", className),
|
|
382
|
+
"data-slot": "breadcrumb-page",
|
|
619
383
|
...props
|
|
620
384
|
}
|
|
621
385
|
);
|
|
622
386
|
}
|
|
623
|
-
function
|
|
387
|
+
function BreadcrumbSeparator({
|
|
388
|
+
children,
|
|
624
389
|
className,
|
|
625
390
|
...props
|
|
626
391
|
}) {
|
|
627
392
|
return /* @__PURE__ */ jsx(
|
|
628
|
-
|
|
393
|
+
"li",
|
|
629
394
|
{
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
395
|
+
"aria-hidden": "true",
|
|
396
|
+
className: cn("a63-Breadcrumb-separator", className),
|
|
397
|
+
"data-slot": "breadcrumb-separator",
|
|
398
|
+
role: "presentation",
|
|
399
|
+
...props,
|
|
400
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": true, className: "a63-Breadcrumb-separator-glyph" })
|
|
633
401
|
}
|
|
634
402
|
);
|
|
635
403
|
}
|
|
636
|
-
function
|
|
637
|
-
className,
|
|
638
|
-
...props
|
|
639
|
-
}) {
|
|
640
|
-
return /* @__PURE__ */ jsx(
|
|
641
|
-
Autocomplete$1.Row,
|
|
642
|
-
{
|
|
643
|
-
className: cn("a63-Autocomplete-row", className),
|
|
644
|
-
"data-slot": "autocomplete-row",
|
|
645
|
-
...props
|
|
646
|
-
}
|
|
647
|
-
);
|
|
648
|
-
}
|
|
649
|
-
function AutocompleteValue({
|
|
650
|
-
...props
|
|
651
|
-
}) {
|
|
652
|
-
return /* @__PURE__ */ jsx(Autocomplete$1.Value, { "data-slot": "autocomplete-value", ...props });
|
|
653
|
-
}
|
|
654
|
-
function AutocompleteList({
|
|
655
|
-
className,
|
|
656
|
-
...props
|
|
657
|
-
}) {
|
|
658
|
-
return /* @__PURE__ */ jsx(ScrollArea, { scrollFade: true, scrollbarGutter: true, children: /* @__PURE__ */ jsx(
|
|
659
|
-
Autocomplete$1.List,
|
|
660
|
-
{
|
|
661
|
-
className: cn("a63-Autocomplete-list", className),
|
|
662
|
-
"data-slot": "autocomplete-list",
|
|
663
|
-
...props
|
|
664
|
-
}
|
|
665
|
-
) });
|
|
666
|
-
}
|
|
667
|
-
function AutocompleteClear({
|
|
668
|
-
children,
|
|
669
|
-
className,
|
|
670
|
-
...props
|
|
671
|
-
}) {
|
|
672
|
-
return /* @__PURE__ */ jsx(
|
|
673
|
-
Autocomplete$1.Clear,
|
|
674
|
-
{
|
|
675
|
-
className: cn("a63-Autocomplete-adornment", className),
|
|
676
|
-
"data-slot": "autocomplete-clear",
|
|
677
|
-
...props,
|
|
678
|
-
children: children ?? /* @__PURE__ */ jsx(CloseIcon, {})
|
|
679
|
-
}
|
|
680
|
-
);
|
|
681
|
-
}
|
|
682
|
-
function AutocompleteStatus({
|
|
683
|
-
className,
|
|
684
|
-
...props
|
|
685
|
-
}) {
|
|
686
|
-
return /* @__PURE__ */ jsx(
|
|
687
|
-
Autocomplete$1.Status,
|
|
688
|
-
{
|
|
689
|
-
className: cn("a63-Autocomplete-status", className),
|
|
690
|
-
"data-slot": "autocomplete-status",
|
|
691
|
-
...props
|
|
692
|
-
}
|
|
693
|
-
);
|
|
694
|
-
}
|
|
695
|
-
function AutocompleteCollection({
|
|
696
|
-
...props
|
|
697
|
-
}) {
|
|
698
|
-
return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "autocomplete-collection", ...props });
|
|
699
|
-
}
|
|
700
|
-
function AutocompleteTrigger({
|
|
701
|
-
children,
|
|
702
|
-
className,
|
|
703
|
-
...props
|
|
704
|
-
}) {
|
|
705
|
-
return /* @__PURE__ */ jsx(
|
|
706
|
-
Autocomplete$1.Trigger,
|
|
707
|
-
{
|
|
708
|
-
className,
|
|
709
|
-
"data-slot": "autocomplete-trigger",
|
|
710
|
-
...props,
|
|
711
|
-
children
|
|
712
|
-
}
|
|
713
|
-
);
|
|
714
|
-
}
|
|
715
|
-
var useAutocompleteFilter = Autocomplete$1.useFilter;
|
|
716
|
-
function Avatar({
|
|
717
|
-
className,
|
|
718
|
-
size = avatarContract.defaultSize,
|
|
719
|
-
...props
|
|
720
|
-
}) {
|
|
721
|
-
return /* @__PURE__ */ jsx(
|
|
722
|
-
Avatar$1.Root,
|
|
723
|
-
{
|
|
724
|
-
className: cn("a63-Avatar", className),
|
|
725
|
-
"data-size": size,
|
|
726
|
-
"data-slot": "avatar",
|
|
727
|
-
...props
|
|
728
|
-
}
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
function AvatarImage({
|
|
732
|
-
className,
|
|
733
|
-
...props
|
|
734
|
-
}) {
|
|
735
|
-
return /* @__PURE__ */ jsx(
|
|
736
|
-
Avatar$1.Image,
|
|
737
|
-
{
|
|
738
|
-
className: cn("a63-Avatar-image", className),
|
|
739
|
-
"data-slot": "avatar-image",
|
|
740
|
-
...props
|
|
741
|
-
}
|
|
742
|
-
);
|
|
743
|
-
}
|
|
744
|
-
function AvatarFallback({
|
|
745
|
-
className,
|
|
746
|
-
...props
|
|
747
|
-
}) {
|
|
748
|
-
return /* @__PURE__ */ jsx(
|
|
749
|
-
Avatar$1.Fallback,
|
|
750
|
-
{
|
|
751
|
-
className: cn("a63-Avatar-fallback", className),
|
|
752
|
-
"data-slot": "avatar-fallback",
|
|
753
|
-
...props
|
|
754
|
-
}
|
|
755
|
-
);
|
|
756
|
-
}
|
|
757
|
-
function AvatarBadge({
|
|
758
|
-
className,
|
|
759
|
-
...props
|
|
760
|
-
}) {
|
|
761
|
-
return /* @__PURE__ */ jsx("span", { className: cn("a63-Avatar-badge", className), "data-slot": "avatar-badge", ...props });
|
|
762
|
-
}
|
|
763
|
-
function AvatarGroup({
|
|
764
|
-
className,
|
|
765
|
-
...props
|
|
766
|
-
}) {
|
|
767
|
-
return /* @__PURE__ */ jsx("div", { className: cn("a63-Avatar-group", className), "data-slot": "avatar-group", ...props });
|
|
768
|
-
}
|
|
769
|
-
function AvatarGroupCount({
|
|
770
|
-
className,
|
|
771
|
-
...props
|
|
772
|
-
}) {
|
|
773
|
-
return /* @__PURE__ */ jsx(
|
|
774
|
-
"div",
|
|
775
|
-
{
|
|
776
|
-
className: cn("a63-Avatar-group-count", className),
|
|
777
|
-
"data-slot": "avatar-group-count",
|
|
778
|
-
...props
|
|
779
|
-
}
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
function Badge({
|
|
783
|
-
className,
|
|
784
|
-
render,
|
|
785
|
-
variant = badgeContract.defaultVariant,
|
|
786
|
-
size = badgeContract.defaultSize,
|
|
787
|
-
...props
|
|
788
|
-
}) {
|
|
789
|
-
const defaultProps = {
|
|
790
|
-
className: cn("a63-Badge", className),
|
|
791
|
-
"data-slot": "badge",
|
|
792
|
-
"data-variant": variant,
|
|
793
|
-
"data-size": size
|
|
794
|
-
};
|
|
795
|
-
return useRender({
|
|
796
|
-
defaultTagName: "span",
|
|
797
|
-
props: mergeProps(defaultProps, props),
|
|
798
|
-
render
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
function Breadcrumb({
|
|
802
|
-
className,
|
|
803
|
-
...props
|
|
804
|
-
}) {
|
|
805
|
-
return /* @__PURE__ */ jsx(
|
|
806
|
-
"nav",
|
|
807
|
-
{
|
|
808
|
-
"aria-label": "breadcrumb",
|
|
809
|
-
className: cn("a63-Breadcrumb", className),
|
|
810
|
-
"data-slot": "breadcrumb",
|
|
811
|
-
...props
|
|
812
|
-
}
|
|
813
|
-
);
|
|
814
|
-
}
|
|
815
|
-
function BreadcrumbList({
|
|
816
|
-
className,
|
|
817
|
-
...props
|
|
818
|
-
}) {
|
|
819
|
-
return /* @__PURE__ */ jsx("ol", { className: cn("a63-Breadcrumb-list", className), "data-slot": "breadcrumb-list", ...props });
|
|
820
|
-
}
|
|
821
|
-
function BreadcrumbItem({
|
|
822
|
-
className,
|
|
823
|
-
...props
|
|
824
|
-
}) {
|
|
825
|
-
return /* @__PURE__ */ jsx("li", { className: cn("a63-Breadcrumb-item", className), "data-slot": "breadcrumb-item", ...props });
|
|
826
|
-
}
|
|
827
|
-
function BreadcrumbLink({
|
|
828
|
-
className,
|
|
829
|
-
render,
|
|
830
|
-
asChild = false,
|
|
831
|
-
children,
|
|
832
|
-
...props
|
|
833
|
-
}) {
|
|
834
|
-
const childrenAsRender = !render && asChild && React3.isValidElement(children);
|
|
835
|
-
const resolvedRender = render ?? (childrenAsRender ? children : void 0);
|
|
836
|
-
return useRender({
|
|
837
|
-
defaultTagName: "a",
|
|
838
|
-
props: mergeProps(
|
|
839
|
-
{
|
|
840
|
-
children: childrenAsRender ? void 0 : children,
|
|
841
|
-
className: cn("a63-Breadcrumb-link", className)
|
|
842
|
-
},
|
|
843
|
-
props,
|
|
844
|
-
{ "data-slot": "breadcrumb-link" }
|
|
845
|
-
),
|
|
846
|
-
render: resolvedRender,
|
|
847
|
-
state: {
|
|
848
|
-
slot: "breadcrumb-link"
|
|
849
|
-
}
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
function BreadcrumbPage({
|
|
853
|
-
className,
|
|
854
|
-
...props
|
|
855
|
-
}) {
|
|
856
|
-
return /* @__PURE__ */ jsx(
|
|
857
|
-
"span",
|
|
858
|
-
{
|
|
859
|
-
"aria-current": "page",
|
|
860
|
-
className: cn("a63-Breadcrumb-page", className),
|
|
861
|
-
"data-slot": "breadcrumb-page",
|
|
862
|
-
...props
|
|
863
|
-
}
|
|
864
|
-
);
|
|
865
|
-
}
|
|
866
|
-
function BreadcrumbSeparator({
|
|
867
|
-
children,
|
|
868
|
-
className,
|
|
869
|
-
...props
|
|
870
|
-
}) {
|
|
871
|
-
return /* @__PURE__ */ jsx(
|
|
872
|
-
"li",
|
|
873
|
-
{
|
|
874
|
-
"aria-hidden": "true",
|
|
875
|
-
className: cn("a63-Breadcrumb-separator", className),
|
|
876
|
-
"data-slot": "breadcrumb-separator",
|
|
877
|
-
role: "presentation",
|
|
878
|
-
...props,
|
|
879
|
-
children: children ?? /* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": true, className: "a63-Breadcrumb-separator-glyph" })
|
|
880
|
-
}
|
|
881
|
-
);
|
|
882
|
-
}
|
|
883
|
-
function BreadcrumbEllipsis({
|
|
404
|
+
function BreadcrumbEllipsis({
|
|
884
405
|
className,
|
|
885
406
|
...props
|
|
886
407
|
}) {
|
|
@@ -897,83 +418,6 @@ function BreadcrumbEllipsis({
|
|
|
897
418
|
}
|
|
898
419
|
);
|
|
899
420
|
}
|
|
900
|
-
function Separator({
|
|
901
|
-
className,
|
|
902
|
-
decorative = false,
|
|
903
|
-
orientation = separatorContract.defaultOrientation,
|
|
904
|
-
variant = separatorContract.defaultVariant,
|
|
905
|
-
...props
|
|
906
|
-
}) {
|
|
907
|
-
return /* @__PURE__ */ jsx(
|
|
908
|
-
Separator$1,
|
|
909
|
-
{
|
|
910
|
-
...decorative ? { "aria-hidden": true, role: "presentation" } : {},
|
|
911
|
-
className: cn("a63-Separator", className),
|
|
912
|
-
"data-slot": "separator",
|
|
913
|
-
"data-variant": variant,
|
|
914
|
-
orientation,
|
|
915
|
-
...props
|
|
916
|
-
}
|
|
917
|
-
);
|
|
918
|
-
}
|
|
919
|
-
var ButtonGroupContext = React3.createContext(false);
|
|
920
|
-
function ButtonGroupProvider({
|
|
921
|
-
children
|
|
922
|
-
}) {
|
|
923
|
-
return /* @__PURE__ */ jsx(ButtonGroupContext.Provider, { value: true, children });
|
|
924
|
-
}
|
|
925
|
-
function useButtonGroupContext() {
|
|
926
|
-
return React3.useContext(ButtonGroupContext);
|
|
927
|
-
}
|
|
928
|
-
function ButtonGroup({
|
|
929
|
-
className,
|
|
930
|
-
orientation = buttonGroupContract.defaultOrientation,
|
|
931
|
-
size = buttonGroupContract.defaultSize,
|
|
932
|
-
...props
|
|
933
|
-
}) {
|
|
934
|
-
return /* @__PURE__ */ jsx(ButtonGroupProvider, { children: /* @__PURE__ */ jsx(
|
|
935
|
-
"div",
|
|
936
|
-
{
|
|
937
|
-
className: cn("a63-ButtonGroup", className),
|
|
938
|
-
"data-orientation": orientation,
|
|
939
|
-
"data-size": size,
|
|
940
|
-
"data-slot": "button-group",
|
|
941
|
-
role: "group",
|
|
942
|
-
...props
|
|
943
|
-
}
|
|
944
|
-
) });
|
|
945
|
-
}
|
|
946
|
-
function ButtonGroupText({
|
|
947
|
-
className,
|
|
948
|
-
render,
|
|
949
|
-
...props
|
|
950
|
-
}) {
|
|
951
|
-
return useRender({
|
|
952
|
-
defaultTagName: "div",
|
|
953
|
-
props: mergeProps({ className: cn("a63-ButtonGroup-text", className) }, props, {
|
|
954
|
-
"data-slot": "button-group-text"
|
|
955
|
-
}),
|
|
956
|
-
render,
|
|
957
|
-
state: {
|
|
958
|
-
slot: "button-group-text"
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
function ButtonGroupSeparator({
|
|
963
|
-
className,
|
|
964
|
-
orientation = "vertical",
|
|
965
|
-
...props
|
|
966
|
-
}) {
|
|
967
|
-
return /* @__PURE__ */ jsx(
|
|
968
|
-
Separator,
|
|
969
|
-
{
|
|
970
|
-
className: cn("a63-ButtonGroup-separator", className),
|
|
971
|
-
"data-slot": "button-group-separator",
|
|
972
|
-
orientation,
|
|
973
|
-
...props
|
|
974
|
-
}
|
|
975
|
-
);
|
|
976
|
-
}
|
|
977
421
|
function ChevronLeftIcon({ className }) {
|
|
978
422
|
return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", className, fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
|
|
979
423
|
"path",
|
|
@@ -998,363 +442,89 @@ function ChevronRightIcon({ className }) {
|
|
|
998
442
|
}
|
|
999
443
|
) });
|
|
1000
444
|
}
|
|
1001
|
-
function
|
|
1002
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", className, fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
|
|
1003
|
-
"path",
|
|
1004
|
-
{
|
|
1005
|
-
d: "M5 6.5 8 3.5 11 6.5M5 9.5l3 3 3-3",
|
|
1006
|
-
stroke: "currentColor",
|
|
1007
|
-
strokeLinecap: "round",
|
|
1008
|
-
strokeLinejoin: "round",
|
|
1009
|
-
strokeWidth: "1.5"
|
|
1010
|
-
}
|
|
1011
|
-
) });
|
|
1012
|
-
}
|
|
1013
|
-
function Calendar({
|
|
1014
|
-
className,
|
|
1015
|
-
classNames,
|
|
1016
|
-
showOutsideDays = true,
|
|
1017
|
-
components: userComponents,
|
|
1018
|
-
mode = "single",
|
|
1019
|
-
...props
|
|
1020
|
-
}) {
|
|
1021
|
-
const defaultClassNames = {
|
|
1022
|
-
button_next: "a63-Calendar-nav-button",
|
|
1023
|
-
button_previous: "a63-Calendar-nav-button",
|
|
1024
|
-
caption_label: "a63-Calendar-caption-label",
|
|
1025
|
-
day: "a63-Calendar-day",
|
|
1026
|
-
day_button: "a63-Calendar-day-button",
|
|
1027
|
-
dropdown: "a63-Calendar-dropdown",
|
|
1028
|
-
dropdown_root: "a63-Calendar-dropdown-root",
|
|
1029
|
-
dropdowns: "a63-Calendar-dropdowns",
|
|
1030
|
-
hidden: "a63-Calendar-hidden",
|
|
1031
|
-
month: "a63-Calendar-month",
|
|
1032
|
-
month_caption: "a63-Calendar-month-caption",
|
|
1033
|
-
months: "a63-Calendar-months",
|
|
1034
|
-
nav: "a63-Calendar-nav",
|
|
1035
|
-
outside: "a63-Calendar-outside",
|
|
1036
|
-
range_end: "range-end",
|
|
1037
|
-
range_middle: "range-middle",
|
|
1038
|
-
range_start: "range-start",
|
|
1039
|
-
today: "a63-Calendar-today",
|
|
1040
|
-
week_number: "a63-Calendar-week-number",
|
|
1041
|
-
weekday: "a63-Calendar-weekday"
|
|
1042
|
-
};
|
|
1043
|
-
const mergedClassNames = { ...defaultClassNames };
|
|
1044
|
-
if (classNames) {
|
|
1045
|
-
for (const key of Object.keys(defaultClassNames)) {
|
|
1046
|
-
const userClass = classNames[key];
|
|
1047
|
-
if (userClass) {
|
|
1048
|
-
mergedClassNames[key] = cn(defaultClassNames[key], userClass);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
const defaultComponents = {
|
|
1053
|
-
Chevron: ({
|
|
1054
|
-
className: chevronClassName,
|
|
1055
|
-
orientation
|
|
1056
|
-
}) => {
|
|
1057
|
-
if (orientation === "left") {
|
|
1058
|
-
return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
|
|
1059
|
-
}
|
|
1060
|
-
if (orientation === "right") {
|
|
1061
|
-
return /* @__PURE__ */ jsx(ChevronRightIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
|
|
1062
|
-
}
|
|
1063
|
-
return /* @__PURE__ */ jsx(ChevronsUpDownIcon2, { className: cn("a63-Calendar-chevron", chevronClassName) });
|
|
1064
|
-
}
|
|
1065
|
-
};
|
|
1066
|
-
const mergedComponents = {
|
|
1067
|
-
...defaultComponents,
|
|
1068
|
-
...userComponents
|
|
1069
|
-
};
|
|
1070
|
-
const dayPickerProps = {
|
|
1071
|
-
className: cn("a63-Calendar", className),
|
|
1072
|
-
classNames: mergedClassNames,
|
|
1073
|
-
components: mergedComponents,
|
|
1074
|
-
"data-slot": "calendar",
|
|
1075
|
-
formatters: {
|
|
1076
|
-
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
1077
|
-
...props.formatters
|
|
1078
|
-
},
|
|
1079
|
-
mode,
|
|
1080
|
-
showOutsideDays,
|
|
1081
|
-
...props
|
|
1082
|
-
};
|
|
1083
|
-
return /* @__PURE__ */ jsx(DayPicker, { ...dayPickerProps });
|
|
1084
|
-
}
|
|
1085
|
-
function paddingAttrs(padding, fallback) {
|
|
1086
|
-
if (typeof padding === "object") {
|
|
1087
|
-
return {
|
|
1088
|
-
"data-padding": padding.base ?? fallback,
|
|
1089
|
-
...padding.sm ? { "data-padding-sm": padding.sm } : {}
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
return { "data-padding": padding };
|
|
1093
|
-
}
|
|
1094
|
-
function Card({
|
|
1095
|
-
className,
|
|
1096
|
-
render,
|
|
1097
|
-
variant = cardContract.defaultVariant,
|
|
1098
|
-
padding,
|
|
1099
|
-
...props
|
|
1100
|
-
}) {
|
|
1101
|
-
const resolvedPadding = padding ?? (variant === "overlay" ? "none" : "md");
|
|
1102
|
-
const defaultProps = {
|
|
1103
|
-
className: cn("a63-Card", className),
|
|
1104
|
-
"data-slot": "card",
|
|
1105
|
-
"data-variant": variant,
|
|
1106
|
-
"data-padding": resolvedPadding
|
|
1107
|
-
};
|
|
1108
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1109
|
-
}
|
|
1110
|
-
function CardHeader({
|
|
1111
|
-
className,
|
|
1112
|
-
render,
|
|
1113
|
-
padding = "md",
|
|
1114
|
-
...props
|
|
1115
|
-
}) {
|
|
1116
|
-
const defaultProps = {
|
|
1117
|
-
className: cn("a63-Card-header", className),
|
|
1118
|
-
"data-slot": "card-header",
|
|
1119
|
-
"data-padding": padding
|
|
1120
|
-
};
|
|
1121
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1122
|
-
}
|
|
1123
|
-
function CardLabel({
|
|
1124
|
-
className,
|
|
1125
|
-
render,
|
|
1126
|
-
...props
|
|
1127
|
-
}) {
|
|
1128
|
-
const defaultProps = { className: cn("a63-Card-label", className), "data-slot": "card-label" };
|
|
1129
|
-
return useRender({
|
|
1130
|
-
defaultTagName: "span",
|
|
1131
|
-
props: mergeProps(defaultProps, props),
|
|
1132
|
-
render
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
function CardMedia({
|
|
1136
|
-
className,
|
|
1137
|
-
render,
|
|
1138
|
-
aspectRatio,
|
|
1139
|
-
hoverScale = true,
|
|
1140
|
-
style,
|
|
1141
|
-
...props
|
|
1142
|
-
}) {
|
|
1143
|
-
const defaultProps = {
|
|
1144
|
-
className: cn("a63-Card-media", className),
|
|
1145
|
-
"data-slot": "card-media",
|
|
1146
|
-
...hoverScale ? { "data-hover-scale": "" } : {},
|
|
1147
|
-
style: aspectRatio ? { aspectRatio, ...style } : style
|
|
1148
|
-
};
|
|
1149
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1150
|
-
}
|
|
1151
|
-
function CardMediaOverlay({
|
|
1152
|
-
className,
|
|
1153
|
-
render,
|
|
1154
|
-
aspectRatio,
|
|
1155
|
-
style,
|
|
1156
|
-
...props
|
|
1157
|
-
}) {
|
|
1158
|
-
const defaultProps = {
|
|
1159
|
-
className: cn("a63-Card-media-overlay", className),
|
|
1160
|
-
"data-slot": "card-media-overlay",
|
|
1161
|
-
...aspectRatio ? { "data-aspect": "" } : {},
|
|
1162
|
-
style: aspectRatio ? { aspectRatio, ...style } : style
|
|
1163
|
-
};
|
|
1164
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1165
|
-
}
|
|
1166
|
-
function CardMediaOverlayImage({
|
|
1167
|
-
className,
|
|
1168
|
-
render,
|
|
1169
|
-
...props
|
|
1170
|
-
}) {
|
|
1171
|
-
const defaultProps = {
|
|
1172
|
-
className: cn("a63-Card-media-overlay-image", className),
|
|
1173
|
-
"data-slot": "card-media-overlay-image"
|
|
1174
|
-
};
|
|
1175
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1176
|
-
}
|
|
1177
|
-
function CardMediaOverlayScrim({
|
|
1178
|
-
className,
|
|
1179
|
-
render,
|
|
1180
|
-
...props
|
|
1181
|
-
}) {
|
|
1182
|
-
const defaultProps = {
|
|
1183
|
-
className: cn("a63-Card-media-overlay-scrim", className),
|
|
1184
|
-
"data-slot": "card-media-overlay-scrim"
|
|
1185
|
-
};
|
|
1186
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1187
|
-
}
|
|
1188
|
-
function CardMediaOverlayTopRight({
|
|
1189
|
-
className,
|
|
1190
|
-
render,
|
|
1191
|
-
...props
|
|
1192
|
-
}) {
|
|
1193
|
-
const defaultProps = {
|
|
1194
|
-
className: cn("a63-Card-media-overlay-top-right", className),
|
|
1195
|
-
"data-slot": "card-media-overlay-top-right"
|
|
1196
|
-
};
|
|
1197
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1198
|
-
}
|
|
1199
|
-
function CardMediaOverlayBottom({
|
|
1200
|
-
className,
|
|
1201
|
-
render,
|
|
1202
|
-
...props
|
|
1203
|
-
}) {
|
|
1204
|
-
const defaultProps = {
|
|
1205
|
-
className: cn("a63-Card-media-overlay-bottom", className),
|
|
1206
|
-
"data-slot": "card-media-overlay-bottom"
|
|
1207
|
-
};
|
|
1208
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1209
|
-
}
|
|
1210
|
-
function CardMediaOverlayIconButton({
|
|
1211
|
-
className,
|
|
1212
|
-
render,
|
|
1213
|
-
...props
|
|
1214
|
-
}) {
|
|
1215
|
-
const defaultProps = {
|
|
1216
|
-
className: cn("a63-Card-media-overlay-icon-button", className),
|
|
1217
|
-
"data-slot": "card-media-overlay-icon-button"
|
|
1218
|
-
};
|
|
1219
|
-
return useRender({
|
|
1220
|
-
defaultTagName: "span",
|
|
1221
|
-
props: mergeProps(defaultProps, props),
|
|
1222
|
-
render
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
function CardContent({
|
|
1226
|
-
className,
|
|
1227
|
-
render,
|
|
1228
|
-
padding = "md",
|
|
1229
|
-
...props
|
|
1230
|
-
}) {
|
|
1231
|
-
const defaultProps = {
|
|
1232
|
-
className: cn("a63-Card-content", className),
|
|
1233
|
-
"data-slot": "card-content",
|
|
1234
|
-
...paddingAttrs(padding, "md")
|
|
1235
|
-
};
|
|
1236
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1237
|
-
}
|
|
1238
|
-
function CardTitle({
|
|
1239
|
-
className,
|
|
1240
|
-
render,
|
|
1241
|
-
lineClamp = 2,
|
|
1242
|
-
...props
|
|
1243
|
-
}) {
|
|
1244
|
-
const defaultProps = {
|
|
1245
|
-
className: cn("a63-Card-title", className),
|
|
1246
|
-
"data-slot": "card-title",
|
|
1247
|
-
...lineClamp ? { "data-line-clamp": String(lineClamp) } : {}
|
|
1248
|
-
};
|
|
1249
|
-
return useRender({
|
|
1250
|
-
defaultTagName: "span",
|
|
1251
|
-
props: mergeProps(defaultProps, props),
|
|
1252
|
-
render
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
function CardDescription({
|
|
1256
|
-
className,
|
|
1257
|
-
render,
|
|
1258
|
-
lineClamp = 3,
|
|
1259
|
-
...props
|
|
1260
|
-
}) {
|
|
1261
|
-
const defaultProps = {
|
|
1262
|
-
className: cn("a63-Card-description", className),
|
|
1263
|
-
"data-slot": "card-description",
|
|
1264
|
-
...lineClamp ? { "data-line-clamp": String(lineClamp) } : {}
|
|
1265
|
-
};
|
|
1266
|
-
return useRender({
|
|
1267
|
-
defaultTagName: "span",
|
|
1268
|
-
props: mergeProps(defaultProps, props),
|
|
1269
|
-
render
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
function CardTags({
|
|
1273
|
-
className,
|
|
1274
|
-
render,
|
|
1275
|
-
...props
|
|
1276
|
-
}) {
|
|
1277
|
-
const defaultProps = { className: cn("a63-Card-tags", className), "data-slot": "card-tags" };
|
|
1278
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1279
|
-
}
|
|
1280
|
-
function CardFooter({
|
|
1281
|
-
className,
|
|
1282
|
-
render,
|
|
1283
|
-
padding = "md",
|
|
1284
|
-
...props
|
|
1285
|
-
}) {
|
|
1286
|
-
const defaultProps = {
|
|
1287
|
-
className: cn("a63-Card-footer", className),
|
|
1288
|
-
"data-slot": "card-footer",
|
|
1289
|
-
...paddingAttrs(padding, "md")
|
|
1290
|
-
};
|
|
1291
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
1292
|
-
}
|
|
1293
|
-
function CardAction({
|
|
1294
|
-
className,
|
|
1295
|
-
render,
|
|
1296
|
-
...props
|
|
1297
|
-
}) {
|
|
1298
|
-
const defaultProps = { className: cn("a63-Card-action", className), "data-slot": "card-action" };
|
|
1299
|
-
return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
|
|
445
|
+
function ChevronsUpDownIcon({ className }) {
|
|
446
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", className, fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
|
|
447
|
+
"path",
|
|
448
|
+
{
|
|
449
|
+
d: "M5 6.5 8 3.5 11 6.5M5 9.5l3 3 3-3",
|
|
450
|
+
stroke: "currentColor",
|
|
451
|
+
strokeLinecap: "round",
|
|
452
|
+
strokeLinejoin: "round",
|
|
453
|
+
strokeWidth: "1.5"
|
|
454
|
+
}
|
|
455
|
+
) });
|
|
1300
456
|
}
|
|
1301
|
-
function
|
|
457
|
+
function Calendar({
|
|
1302
458
|
className,
|
|
1303
|
-
|
|
459
|
+
classNames,
|
|
460
|
+
showOutsideDays = true,
|
|
461
|
+
components: userComponents,
|
|
462
|
+
mode = "single",
|
|
1304
463
|
...props
|
|
1305
464
|
}) {
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1308
|
-
|
|
465
|
+
const defaultClassNames = {
|
|
466
|
+
button_next: "a63-Calendar-nav-button",
|
|
467
|
+
button_previous: "a63-Calendar-nav-button",
|
|
468
|
+
caption_label: "a63-Calendar-caption-label",
|
|
469
|
+
day: "a63-Calendar-day",
|
|
470
|
+
day_button: "a63-Calendar-day-button",
|
|
471
|
+
dropdown: "a63-Calendar-dropdown",
|
|
472
|
+
dropdown_root: "a63-Calendar-dropdown-root",
|
|
473
|
+
dropdowns: "a63-Calendar-dropdowns",
|
|
474
|
+
hidden: "a63-Calendar-hidden",
|
|
475
|
+
month: "a63-Calendar-month",
|
|
476
|
+
month_caption: "a63-Calendar-month-caption",
|
|
477
|
+
months: "a63-Calendar-months",
|
|
478
|
+
nav: "a63-Calendar-nav",
|
|
479
|
+
outside: "a63-Calendar-outside",
|
|
480
|
+
range_end: "range-end",
|
|
481
|
+
range_middle: "range-middle",
|
|
482
|
+
range_start: "range-start",
|
|
483
|
+
today: "a63-Calendar-today",
|
|
484
|
+
week_number: "a63-Calendar-week-number",
|
|
485
|
+
weekday: "a63-Calendar-weekday"
|
|
1309
486
|
};
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
const rectRef = useRef(null);
|
|
1317
|
-
const [active, setActive] = useState(false);
|
|
1318
|
-
const apply = useCallback(
|
|
1319
|
-
(clientX, clientY) => {
|
|
1320
|
-
const rect = rectRef.current;
|
|
1321
|
-
if (!rect) {
|
|
1322
|
-
return;
|
|
1323
|
-
}
|
|
1324
|
-
const x = clientX - rect.left;
|
|
1325
|
-
const y = clientY - rect.top;
|
|
1326
|
-
if (onMove) {
|
|
1327
|
-
onMove({ x, y });
|
|
1328
|
-
return;
|
|
487
|
+
const mergedClassNames = { ...defaultClassNames };
|
|
488
|
+
if (classNames) {
|
|
489
|
+
for (const key of Object.keys(defaultClassNames)) {
|
|
490
|
+
const userClass = classNames[key];
|
|
491
|
+
if (userClass) {
|
|
492
|
+
mergedClassNames[key] = cn(defaultClassNames[key], userClass);
|
|
1329
493
|
}
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
const defaultComponents = {
|
|
497
|
+
Chevron: ({
|
|
498
|
+
className: chevronClassName,
|
|
499
|
+
orientation
|
|
500
|
+
}) => {
|
|
501
|
+
if (orientation === "left") {
|
|
502
|
+
return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
|
|
1334
503
|
}
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
);
|
|
1338
|
-
const onPointerEnter = useCallback(
|
|
1339
|
-
(event) => {
|
|
1340
|
-
if (!ref.current) {
|
|
1341
|
-
return;
|
|
504
|
+
if (orientation === "right") {
|
|
505
|
+
return /* @__PURE__ */ jsx(ChevronRightIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
|
|
1342
506
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
507
|
+
return /* @__PURE__ */ jsx(ChevronsUpDownIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
const mergedComponents = {
|
|
511
|
+
...defaultComponents,
|
|
512
|
+
...userComponents
|
|
513
|
+
};
|
|
514
|
+
const dayPickerProps = {
|
|
515
|
+
className: cn("a63-Calendar", className),
|
|
516
|
+
classNames: mergedClassNames,
|
|
517
|
+
components: mergedComponents,
|
|
518
|
+
"data-slot": "calendar",
|
|
519
|
+
formatters: {
|
|
520
|
+
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
521
|
+
...props.formatters
|
|
1346
522
|
},
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
);
|
|
1353
|
-
const onPointerLeave = useCallback(() => {
|
|
1354
|
-
rectRef.current = null;
|
|
1355
|
-
setActive(false);
|
|
1356
|
-
}, []);
|
|
1357
|
-
return { ref, active, onPointerEnter, onPointerMove, onPointerLeave };
|
|
523
|
+
mode,
|
|
524
|
+
showOutsideDays,
|
|
525
|
+
...props
|
|
526
|
+
};
|
|
527
|
+
return /* @__PURE__ */ jsx(DayPicker, { ...dayPickerProps });
|
|
1358
528
|
}
|
|
1359
529
|
var CarouselContext = React3.createContext(null);
|
|
1360
530
|
function useCarousel() {
|
|
@@ -1636,309 +806,92 @@ function CarouselNext({
|
|
|
1636
806
|
}
|
|
1637
807
|
);
|
|
1638
808
|
}
|
|
1639
|
-
var CheckIcon = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
|
|
1640
|
-
"path",
|
|
1641
|
-
{
|
|
1642
|
-
d: "M13 4.5 6.5 11 3 7.5",
|
|
1643
|
-
stroke: "currentColor",
|
|
1644
|
-
strokeLinecap: "round",
|
|
1645
|
-
strokeLinejoin: "round",
|
|
1646
|
-
strokeWidth: "2"
|
|
1647
|
-
}
|
|
1648
|
-
) });
|
|
1649
|
-
var MinusIcon2 = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx("path", { d: "M3.5 8h9", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2" }) });
|
|
1650
|
-
function Checkbox({
|
|
1651
|
-
className,
|
|
1652
|
-
size = checkboxContract.defaultSize,
|
|
1653
|
-
...props
|
|
1654
|
-
}) {
|
|
1655
|
-
return /* @__PURE__ */ jsx(
|
|
1656
|
-
Checkbox$1.Root,
|
|
1657
|
-
{
|
|
1658
|
-
className: cn("a63-Checkbox", className),
|
|
1659
|
-
"data-size": size,
|
|
1660
|
-
"data-slot": "checkbox",
|
|
1661
|
-
...props,
|
|
1662
|
-
children: /* @__PURE__ */ jsx(
|
|
1663
|
-
Checkbox$1.Indicator,
|
|
1664
|
-
{
|
|
1665
|
-
className: "a63-Checkbox-indicator",
|
|
1666
|
-
"data-slot": "checkbox-indicator",
|
|
1667
|
-
render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", { ...indicatorProps, children: state.indeterminate ? MinusIcon2 : CheckIcon })
|
|
1668
|
-
}
|
|
1669
|
-
)
|
|
1670
|
-
}
|
|
1671
|
-
);
|
|
1672
|
-
}
|
|
1673
|
-
function Collapsible({ className, ...props }) {
|
|
1674
|
-
return /* @__PURE__ */ jsx(
|
|
1675
|
-
Collapsible$1.Root,
|
|
1676
|
-
{
|
|
1677
|
-
className: cn("a63-Collapsible", className),
|
|
1678
|
-
"data-slot": "collapsible",
|
|
1679
|
-
...props
|
|
1680
|
-
}
|
|
1681
|
-
);
|
|
1682
|
-
}
|
|
1683
|
-
function CollapsibleTrigger({
|
|
1684
|
-
className,
|
|
1685
|
-
...props
|
|
1686
|
-
}) {
|
|
1687
|
-
return /* @__PURE__ */ jsx(
|
|
1688
|
-
Collapsible$1.Trigger,
|
|
1689
|
-
{
|
|
1690
|
-
className: cn("a63-Collapsible-trigger", className),
|
|
1691
|
-
"data-slot": "collapsible-trigger",
|
|
1692
|
-
...props
|
|
1693
|
-
}
|
|
1694
|
-
);
|
|
1695
|
-
}
|
|
1696
|
-
function CollapsibleIndicator({
|
|
1697
|
-
children,
|
|
1698
|
-
className,
|
|
1699
|
-
...props
|
|
1700
|
-
}) {
|
|
1701
|
-
return /* @__PURE__ */ jsx(
|
|
1702
|
-
"span",
|
|
1703
|
-
{
|
|
1704
|
-
...props,
|
|
1705
|
-
"aria-hidden": "true",
|
|
1706
|
-
className: cn("a63-Collapsible-indicator", className),
|
|
1707
|
-
"data-slot": "collapsible-indicator",
|
|
1708
|
-
children: children ?? /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true })
|
|
1709
|
-
}
|
|
1710
|
-
);
|
|
1711
|
-
}
|
|
1712
|
-
function CollapsibleContent({
|
|
1713
|
-
className,
|
|
1714
|
-
...props
|
|
1715
|
-
}) {
|
|
1716
|
-
return /* @__PURE__ */ jsx(
|
|
1717
|
-
Collapsible$1.Panel,
|
|
1718
|
-
{
|
|
1719
|
-
className: cn("a63-Collapsible-content", className),
|
|
1720
|
-
"data-slot": "collapsible-content",
|
|
1721
|
-
...props
|
|
1722
|
-
}
|
|
1723
|
-
);
|
|
1724
|
-
}
|
|
1725
|
-
var CommandDialog = Dialog$1.Root;
|
|
1726
|
-
var CommandDialogPortal = Dialog$1.Portal;
|
|
1727
|
-
var CommandCreateHandle = Dialog$1.createHandle;
|
|
1728
|
-
function CommandDialogTrigger(props) {
|
|
1729
|
-
return /* @__PURE__ */ jsx(Dialog$1.Trigger, { "data-slot": "command-dialog-trigger", ...props });
|
|
1730
|
-
}
|
|
1731
|
-
function CommandDialogBackdrop({
|
|
1732
|
-
className,
|
|
1733
|
-
...props
|
|
1734
|
-
}) {
|
|
1735
|
-
return /* @__PURE__ */ jsx(
|
|
1736
|
-
Dialog$1.Backdrop,
|
|
1737
|
-
{
|
|
1738
|
-
className: cn("a63-Command-backdrop", className),
|
|
1739
|
-
"data-slot": "command-dialog-backdrop",
|
|
1740
|
-
...props
|
|
1741
|
-
}
|
|
1742
|
-
);
|
|
1743
|
-
}
|
|
1744
|
-
function CommandDialogViewport({
|
|
1745
|
-
className,
|
|
1746
|
-
...props
|
|
1747
|
-
}) {
|
|
1748
|
-
return /* @__PURE__ */ jsx(
|
|
1749
|
-
Dialog$1.Viewport,
|
|
1750
|
-
{
|
|
1751
|
-
className: cn("a63-Command-viewport", className),
|
|
1752
|
-
"data-slot": "command-dialog-viewport",
|
|
1753
|
-
...props
|
|
1754
|
-
}
|
|
1755
|
-
);
|
|
1756
|
-
}
|
|
1757
|
-
function CommandDialogPopup({
|
|
1758
|
-
className,
|
|
1759
|
-
children,
|
|
1760
|
-
...props
|
|
1761
|
-
}) {
|
|
1762
|
-
return /* @__PURE__ */ jsxs(CommandDialogPortal, { children: [
|
|
1763
|
-
/* @__PURE__ */ jsx(CommandDialogBackdrop, {}),
|
|
1764
|
-
/* @__PURE__ */ jsx(CommandDialogViewport, { children: /* @__PURE__ */ jsx(
|
|
1765
|
-
Dialog$1.Popup,
|
|
1766
|
-
{
|
|
1767
|
-
className: cn("a63-Command-popup", className),
|
|
1768
|
-
"data-slot": "command-dialog-popup",
|
|
1769
|
-
...props,
|
|
1770
|
-
children
|
|
1771
|
-
}
|
|
1772
|
-
) })
|
|
1773
|
-
] });
|
|
1774
|
-
}
|
|
1775
|
-
function Command({
|
|
1776
|
-
autoHighlight = "always",
|
|
1777
|
-
keepHighlight = true,
|
|
1778
|
-
...props
|
|
1779
|
-
}) {
|
|
1780
|
-
return /* @__PURE__ */ jsx(
|
|
1781
|
-
Autocomplete$1.Root,
|
|
1782
|
-
{
|
|
1783
|
-
autoHighlight,
|
|
1784
|
-
"data-slot": "command",
|
|
1785
|
-
inline: true,
|
|
1786
|
-
keepHighlight,
|
|
1787
|
-
open: true,
|
|
1788
|
-
...props
|
|
1789
|
-
}
|
|
1790
|
-
);
|
|
1791
|
-
}
|
|
1792
|
-
function SearchIcon() {
|
|
1793
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "18", viewBox: "0 0 24 24", width: "18", children: /* @__PURE__ */ jsx(
|
|
1794
|
-
"path",
|
|
1795
|
-
{
|
|
1796
|
-
d: "M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5",
|
|
1797
|
-
stroke: "currentColor",
|
|
1798
|
-
strokeLinecap: "round",
|
|
1799
|
-
strokeLinejoin: "round",
|
|
1800
|
-
strokeWidth: "1.75"
|
|
1801
|
-
}
|
|
1802
|
-
) });
|
|
1803
|
-
}
|
|
1804
|
-
function CommandInput({
|
|
1805
|
-
className,
|
|
1806
|
-
placeholder,
|
|
1807
|
-
...props
|
|
1808
|
-
}) {
|
|
1809
|
-
return /* @__PURE__ */ jsxs("div", { className: "a63-Command-input-wrapper", "data-slot": "command-input-wrapper", children: [
|
|
1810
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "a63-Command-input-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
|
|
1811
|
-
/* @__PURE__ */ jsx(
|
|
1812
|
-
Autocomplete$1.Input,
|
|
1813
|
-
{
|
|
1814
|
-
autoFocus: true,
|
|
1815
|
-
className: cn("a63-Command-input", className),
|
|
1816
|
-
"data-slot": "command-input",
|
|
1817
|
-
placeholder,
|
|
1818
|
-
...props
|
|
1819
|
-
}
|
|
1820
|
-
)
|
|
1821
|
-
] });
|
|
1822
|
-
}
|
|
1823
|
-
function CommandPanel({
|
|
1824
|
-
className,
|
|
1825
|
-
children,
|
|
1826
|
-
...props
|
|
1827
|
-
}) {
|
|
1828
|
-
return /* @__PURE__ */ jsx(
|
|
1829
|
-
ScrollArea,
|
|
1830
|
-
{
|
|
1831
|
-
className: cn("a63-Command-panel", className),
|
|
1832
|
-
"data-slot": "command-panel",
|
|
1833
|
-
scrollFade: true,
|
|
1834
|
-
showScrollbarOnHover: true,
|
|
1835
|
-
...props,
|
|
1836
|
-
children
|
|
1837
|
-
}
|
|
1838
|
-
);
|
|
1839
|
-
}
|
|
1840
|
-
function CommandList({
|
|
1841
|
-
className,
|
|
1842
|
-
...props
|
|
1843
|
-
}) {
|
|
1844
|
-
return /* @__PURE__ */ jsx(
|
|
1845
|
-
Autocomplete$1.List,
|
|
1846
|
-
{
|
|
1847
|
-
className: cn("a63-Command-list", className),
|
|
1848
|
-
"data-slot": "command-list",
|
|
1849
|
-
...props
|
|
1850
|
-
}
|
|
1851
|
-
);
|
|
1852
|
-
}
|
|
1853
|
-
function CommandEmpty({
|
|
1854
|
-
className,
|
|
1855
|
-
...props
|
|
1856
|
-
}) {
|
|
1857
|
-
return /* @__PURE__ */ jsx(
|
|
1858
|
-
Autocomplete$1.Empty,
|
|
1859
|
-
{
|
|
1860
|
-
className: cn("a63-Command-empty", className),
|
|
1861
|
-
"data-slot": "command-empty",
|
|
1862
|
-
...props
|
|
1863
|
-
}
|
|
1864
|
-
);
|
|
1865
|
-
}
|
|
1866
|
-
function CommandGroup({
|
|
809
|
+
var CheckIcon = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
|
|
810
|
+
"path",
|
|
811
|
+
{
|
|
812
|
+
d: "M13 4.5 6.5 11 3 7.5",
|
|
813
|
+
stroke: "currentColor",
|
|
814
|
+
strokeLinecap: "round",
|
|
815
|
+
strokeLinejoin: "round",
|
|
816
|
+
strokeWidth: "2"
|
|
817
|
+
}
|
|
818
|
+
) });
|
|
819
|
+
var MinusIcon2 = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx("path", { d: "M3.5 8h9", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2" }) });
|
|
820
|
+
function Checkbox({
|
|
1867
821
|
className,
|
|
822
|
+
size = checkboxContract.defaultSize,
|
|
1868
823
|
...props
|
|
1869
824
|
}) {
|
|
1870
825
|
return /* @__PURE__ */ jsx(
|
|
1871
|
-
|
|
826
|
+
Checkbox$1.Root,
|
|
1872
827
|
{
|
|
1873
|
-
className: cn("a63-
|
|
1874
|
-
"data-
|
|
1875
|
-
|
|
828
|
+
className: cn("a63-Checkbox", className),
|
|
829
|
+
"data-size": size,
|
|
830
|
+
"data-slot": "checkbox",
|
|
831
|
+
...props,
|
|
832
|
+
children: /* @__PURE__ */ jsx(
|
|
833
|
+
Checkbox$1.Indicator,
|
|
834
|
+
{
|
|
835
|
+
className: "a63-Checkbox-indicator",
|
|
836
|
+
"data-slot": "checkbox-indicator",
|
|
837
|
+
render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", { ...indicatorProps, children: state.indeterminate ? MinusIcon2 : CheckIcon })
|
|
838
|
+
}
|
|
839
|
+
)
|
|
1876
840
|
}
|
|
1877
841
|
);
|
|
1878
842
|
}
|
|
1879
|
-
function
|
|
1880
|
-
className,
|
|
1881
|
-
...props
|
|
1882
|
-
}) {
|
|
843
|
+
function Collapsible({ className, ...props }) {
|
|
1883
844
|
return /* @__PURE__ */ jsx(
|
|
1884
|
-
|
|
845
|
+
Collapsible$1.Root,
|
|
1885
846
|
{
|
|
1886
|
-
className: cn("a63-
|
|
1887
|
-
"data-slot": "
|
|
847
|
+
className: cn("a63-Collapsible", className),
|
|
848
|
+
"data-slot": "collapsible",
|
|
1888
849
|
...props
|
|
1889
850
|
}
|
|
1890
851
|
);
|
|
1891
852
|
}
|
|
1892
|
-
function
|
|
1893
|
-
...props
|
|
1894
|
-
}) {
|
|
1895
|
-
return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "command-collection", ...props });
|
|
1896
|
-
}
|
|
1897
|
-
function CommandItem({
|
|
853
|
+
function CollapsibleTrigger({
|
|
1898
854
|
className,
|
|
1899
855
|
...props
|
|
1900
856
|
}) {
|
|
1901
857
|
return /* @__PURE__ */ jsx(
|
|
1902
|
-
|
|
858
|
+
Collapsible$1.Trigger,
|
|
1903
859
|
{
|
|
1904
|
-
className: cn("a63-
|
|
1905
|
-
"data-slot": "
|
|
860
|
+
className: cn("a63-Collapsible-trigger", className),
|
|
861
|
+
"data-slot": "collapsible-trigger",
|
|
1906
862
|
...props
|
|
1907
863
|
}
|
|
1908
864
|
);
|
|
1909
865
|
}
|
|
1910
|
-
function
|
|
866
|
+
function CollapsibleIndicator({
|
|
867
|
+
children,
|
|
1911
868
|
className,
|
|
1912
869
|
...props
|
|
1913
870
|
}) {
|
|
1914
871
|
return /* @__PURE__ */ jsx(
|
|
1915
|
-
|
|
872
|
+
"span",
|
|
1916
873
|
{
|
|
1917
|
-
|
|
1918
|
-
"
|
|
1919
|
-
|
|
874
|
+
...props,
|
|
875
|
+
"aria-hidden": "true",
|
|
876
|
+
className: cn("a63-Collapsible-indicator", className),
|
|
877
|
+
"data-slot": "collapsible-indicator",
|
|
878
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true })
|
|
1920
879
|
}
|
|
1921
880
|
);
|
|
1922
881
|
}
|
|
1923
|
-
function
|
|
882
|
+
function CollapsibleContent({
|
|
1924
883
|
className,
|
|
1925
884
|
...props
|
|
1926
885
|
}) {
|
|
1927
886
|
return /* @__PURE__ */ jsx(
|
|
1928
|
-
|
|
887
|
+
Collapsible$1.Panel,
|
|
1929
888
|
{
|
|
1930
|
-
className: cn("a63-
|
|
1931
|
-
"data-slot": "
|
|
889
|
+
className: cn("a63-Collapsible-content", className),
|
|
890
|
+
"data-slot": "collapsible-content",
|
|
1932
891
|
...props
|
|
1933
892
|
}
|
|
1934
893
|
);
|
|
1935
894
|
}
|
|
1936
|
-
function CommandFooter({
|
|
1937
|
-
className,
|
|
1938
|
-
...props
|
|
1939
|
-
}) {
|
|
1940
|
-
return /* @__PURE__ */ jsx("div", { className: cn("a63-Command-footer", className), "data-slot": "command-footer", ...props });
|
|
1941
|
-
}
|
|
1942
895
|
var ConnectedPanelContext = React3.createContext(null);
|
|
1943
896
|
function useConnectedPanelContext(component) {
|
|
1944
897
|
const context = React3.useContext(ConnectedPanelContext);
|
|
@@ -2475,294 +1428,119 @@ function ContextMenuSeparator({
|
|
|
2475
1428
|
...props
|
|
2476
1429
|
}) {
|
|
2477
1430
|
return /* @__PURE__ */ jsx(
|
|
2478
|
-
ContextMenu$1.Separator,
|
|
2479
|
-
{
|
|
2480
|
-
className: cn("a63-Menu-separator", className),
|
|
2481
|
-
"data-slot": "context-menu-separator",
|
|
2482
|
-
...props
|
|
2483
|
-
}
|
|
2484
|
-
);
|
|
2485
|
-
}
|
|
2486
|
-
function ContextMenuShortcut({
|
|
2487
|
-
className,
|
|
2488
|
-
...props
|
|
2489
|
-
}) {
|
|
2490
|
-
return /* @__PURE__ */ jsx(
|
|
2491
|
-
"span",
|
|
2492
|
-
{
|
|
2493
|
-
className: cn("a63-Menu-shortcut", className),
|
|
2494
|
-
"data-slot": "context-menu-shortcut",
|
|
2495
|
-
...props
|
|
2496
|
-
}
|
|
2497
|
-
);
|
|
2498
|
-
}
|
|
2499
|
-
var feedbackEnterTransition = {
|
|
2500
|
-
filter: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] },
|
|
2501
|
-
opacity: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] }
|
|
2502
|
-
};
|
|
2503
|
-
var feedbackExitTransition = {
|
|
2504
|
-
filter: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] },
|
|
2505
|
-
opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
|
|
2506
|
-
};
|
|
2507
|
-
var reducedMotionTransition = {
|
|
2508
|
-
opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
|
|
2509
|
-
};
|
|
2510
|
-
function CopyButton({
|
|
2511
|
-
"aria-hidden": ariaHidden,
|
|
2512
|
-
children,
|
|
2513
|
-
className,
|
|
2514
|
-
copiedLabel = "Copied to clipboard",
|
|
2515
|
-
label = "Copy",
|
|
2516
|
-
size,
|
|
2517
|
-
successMessage,
|
|
2518
|
-
tabIndex,
|
|
2519
|
-
value,
|
|
2520
|
-
variant = "ghost"
|
|
2521
|
-
}) {
|
|
2522
|
-
const [copied, setCopied] = useState(false);
|
|
2523
|
-
const resolvedSize = size ?? (children ? "sm" : "icon-sm");
|
|
2524
|
-
const handleCopy = async () => {
|
|
2525
|
-
try {
|
|
2526
|
-
await navigator.clipboard.writeText(value);
|
|
2527
|
-
setCopied(true);
|
|
2528
|
-
toast.success(successMessage ?? `${label} copied to clipboard`);
|
|
2529
|
-
setTimeout(() => setCopied(false), 2e3);
|
|
2530
|
-
} catch {
|
|
2531
|
-
toast.error("Failed to copy to clipboard");
|
|
2532
|
-
}
|
|
2533
|
-
};
|
|
2534
|
-
return /* @__PURE__ */ jsx(
|
|
2535
|
-
Button,
|
|
2536
|
-
{
|
|
2537
|
-
"aria-hidden": ariaHidden,
|
|
2538
|
-
"aria-label": children ? void 0 : copied ? copiedLabel : label,
|
|
2539
|
-
className: cn("a63-CopyButton", !children && "a63-CopyButton--icon-only", className),
|
|
2540
|
-
"data-copied": copied ? "" : void 0,
|
|
2541
|
-
onClick: () => {
|
|
2542
|
-
void handleCopy();
|
|
2543
|
-
},
|
|
2544
|
-
size: resolvedSize,
|
|
2545
|
-
tabIndex,
|
|
2546
|
-
title: `${label} ${value}`,
|
|
2547
|
-
variant,
|
|
2548
|
-
children: /* @__PURE__ */ jsx(CopyButtonFeedback, { copied, children })
|
|
2549
|
-
}
|
|
2550
|
-
);
|
|
2551
|
-
}
|
|
2552
|
-
function CopyButtonFeedback({
|
|
2553
|
-
children,
|
|
2554
|
-
copied
|
|
2555
|
-
}) {
|
|
2556
|
-
const reduceMotion = useReducedMotion();
|
|
2557
|
-
const swapFrom = reduceMotion ? { opacity: 0 } : { filter: "blur(2px)", opacity: 0 };
|
|
2558
|
-
const swapTo = reduceMotion ? { opacity: 1 } : { filter: "blur(0px)", opacity: 1 };
|
|
2559
|
-
return /* @__PURE__ */ jsxs("span", { className: "a63-CopyButton-swap", "data-slot": "copy-button-swap", children: [
|
|
2560
|
-
/* @__PURE__ */ jsxs(
|
|
2561
|
-
motion.span,
|
|
2562
|
-
{
|
|
2563
|
-
animate: copied ? swapFrom : swapTo,
|
|
2564
|
-
"aria-hidden": copied ? true : void 0,
|
|
2565
|
-
className: "a63-CopyButton-item",
|
|
2566
|
-
"data-slot": "copy-button-item",
|
|
2567
|
-
initial: false,
|
|
2568
|
-
transition: reduceMotion ? reducedMotionTransition : copied ? feedbackExitTransition : feedbackEnterTransition,
|
|
2569
|
-
children: [
|
|
2570
|
-
/* @__PURE__ */ jsx(Copy, { className: "a63-CopyButton-icon" }),
|
|
2571
|
-
children
|
|
2572
|
-
]
|
|
2573
|
-
}
|
|
2574
|
-
),
|
|
2575
|
-
/* @__PURE__ */ jsxs(
|
|
2576
|
-
motion.span,
|
|
2577
|
-
{
|
|
2578
|
-
animate: copied ? swapTo : swapFrom,
|
|
2579
|
-
"aria-hidden": copied ? void 0 : true,
|
|
2580
|
-
className: "a63-CopyButton-item",
|
|
2581
|
-
"data-slot": "copy-button-item",
|
|
2582
|
-
initial: false,
|
|
2583
|
-
transition: reduceMotion ? reducedMotionTransition : copied ? feedbackEnterTransition : feedbackExitTransition,
|
|
2584
|
-
children: [
|
|
2585
|
-
/* @__PURE__ */ jsx(AnimatedCheck, { animate: copied, className: "a63-CopyButton-check" }),
|
|
2586
|
-
children && /* @__PURE__ */ jsx("span", { children: "Copied!" })
|
|
2587
|
-
]
|
|
2588
|
-
}
|
|
2589
|
-
)
|
|
2590
|
-
] });
|
|
2591
|
-
}
|
|
2592
|
-
var DialogCreateHandle = Dialog$1.createHandle;
|
|
2593
|
-
var Dialog = Dialog$1.Root;
|
|
2594
|
-
function DialogPortal(props) {
|
|
2595
|
-
return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "dialog-portal", ...props });
|
|
2596
|
-
}
|
|
2597
|
-
function DialogTrigger({
|
|
2598
|
-
className,
|
|
2599
|
-
...props
|
|
2600
|
-
}) {
|
|
2601
|
-
return /* @__PURE__ */ jsx(
|
|
2602
|
-
Dialog$1.Trigger,
|
|
2603
|
-
{
|
|
2604
|
-
className: cn("a63-Dialog-trigger", className),
|
|
2605
|
-
"data-slot": "dialog-trigger",
|
|
2606
|
-
...props
|
|
2607
|
-
}
|
|
2608
|
-
);
|
|
2609
|
-
}
|
|
2610
|
-
function DialogClose(props) {
|
|
2611
|
-
return /* @__PURE__ */ jsx(Dialog$1.Close, { "data-slot": "dialog-close", ...props });
|
|
2612
|
-
}
|
|
2613
|
-
function DialogBackdrop({
|
|
2614
|
-
className,
|
|
2615
|
-
...props
|
|
2616
|
-
}) {
|
|
2617
|
-
return /* @__PURE__ */ jsx(
|
|
2618
|
-
Dialog$1.Backdrop,
|
|
2619
|
-
{
|
|
2620
|
-
className: cn("a63-Dialog-backdrop", className),
|
|
2621
|
-
"data-slot": "dialog-backdrop",
|
|
2622
|
-
...props
|
|
2623
|
-
}
|
|
2624
|
-
);
|
|
2625
|
-
}
|
|
2626
|
-
function DialogViewport({
|
|
2627
|
-
className,
|
|
2628
|
-
...props
|
|
2629
|
-
}) {
|
|
2630
|
-
return /* @__PURE__ */ jsx(
|
|
2631
|
-
Dialog$1.Viewport,
|
|
2632
|
-
{
|
|
2633
|
-
className: cn("a63-Dialog-viewport", className),
|
|
2634
|
-
"data-slot": "dialog-viewport",
|
|
2635
|
-
...props
|
|
2636
|
-
}
|
|
2637
|
-
);
|
|
2638
|
-
}
|
|
2639
|
-
function CloseIcon2() {
|
|
2640
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
|
|
2641
|
-
"path",
|
|
2642
|
-
{
|
|
2643
|
-
d: "m4 4 8 8M12 4l-8 8",
|
|
2644
|
-
stroke: "currentColor",
|
|
2645
|
-
strokeLinecap: "round",
|
|
2646
|
-
strokeLinejoin: "round",
|
|
2647
|
-
strokeWidth: "1.5"
|
|
2648
|
-
}
|
|
2649
|
-
) });
|
|
2650
|
-
}
|
|
2651
|
-
function DialogPopup({
|
|
2652
|
-
className,
|
|
2653
|
-
children,
|
|
2654
|
-
showCloseButton = true,
|
|
2655
|
-
bottomStickOnMobile = true,
|
|
2656
|
-
mobilePlacement,
|
|
2657
|
-
size = "default",
|
|
2658
|
-
closeProps,
|
|
2659
|
-
portalProps,
|
|
2660
|
-
...props
|
|
2661
|
-
}) {
|
|
2662
|
-
const resolvedMobilePlacement = mobilePlacement ?? (bottomStickOnMobile ? "bottom" : "center");
|
|
2663
|
-
const stickToBottomOnMobile = resolvedMobilePlacement === "bottom";
|
|
2664
|
-
return /* @__PURE__ */ jsxs(DialogPortal, { ...portalProps, children: [
|
|
2665
|
-
/* @__PURE__ */ jsx(DialogBackdrop, {}),
|
|
2666
|
-
/* @__PURE__ */ jsx(DialogViewport, { "data-mobile-placement": resolvedMobilePlacement, children: /* @__PURE__ */ jsxs(
|
|
2667
|
-
Dialog$1.Popup,
|
|
2668
|
-
{
|
|
2669
|
-
className: cn("a63-Dialog-popup", className),
|
|
2670
|
-
"data-mobile-placement": resolvedMobilePlacement,
|
|
2671
|
-
"data-size": size,
|
|
2672
|
-
"data-slot": "dialog-popup",
|
|
2673
|
-
"data-stick-bottom": stickToBottomOnMobile ? "" : void 0,
|
|
2674
|
-
...props,
|
|
2675
|
-
children: [
|
|
2676
|
-
children,
|
|
2677
|
-
showCloseButton && /* @__PURE__ */ jsx(
|
|
2678
|
-
Dialog$1.Close,
|
|
2679
|
-
{
|
|
2680
|
-
"aria-label": "Close",
|
|
2681
|
-
className: "a63-Dialog-close-button",
|
|
2682
|
-
"data-slot": "dialog-close-button",
|
|
2683
|
-
...closeProps,
|
|
2684
|
-
children: /* @__PURE__ */ jsx(CloseIcon2, {})
|
|
2685
|
-
}
|
|
2686
|
-
)
|
|
2687
|
-
]
|
|
2688
|
-
}
|
|
2689
|
-
) })
|
|
2690
|
-
] });
|
|
2691
|
-
}
|
|
2692
|
-
function DialogHeader({
|
|
2693
|
-
className,
|
|
2694
|
-
render,
|
|
2695
|
-
...props
|
|
2696
|
-
}) {
|
|
2697
|
-
const defaultProps = {
|
|
2698
|
-
className: cn("a63-Dialog-header", className),
|
|
2699
|
-
"data-slot": "dialog-header"
|
|
2700
|
-
};
|
|
2701
|
-
return useRender({
|
|
2702
|
-
defaultTagName: "div",
|
|
2703
|
-
props: mergeProps(defaultProps, props),
|
|
2704
|
-
render
|
|
2705
|
-
});
|
|
2706
|
-
}
|
|
2707
|
-
function DialogFooter({
|
|
2708
|
-
className,
|
|
2709
|
-
variant = "default",
|
|
2710
|
-
render,
|
|
2711
|
-
...props
|
|
2712
|
-
}) {
|
|
2713
|
-
const defaultProps = {
|
|
2714
|
-
className: cn("a63-Dialog-footer", className),
|
|
2715
|
-
"data-slot": "dialog-footer",
|
|
2716
|
-
"data-variant": variant
|
|
2717
|
-
};
|
|
2718
|
-
return useRender({
|
|
2719
|
-
defaultTagName: "div",
|
|
2720
|
-
props: mergeProps(defaultProps, props),
|
|
2721
|
-
render
|
|
2722
|
-
});
|
|
2723
|
-
}
|
|
2724
|
-
function DialogTitle({
|
|
2725
|
-
className,
|
|
2726
|
-
...props
|
|
2727
|
-
}) {
|
|
2728
|
-
return /* @__PURE__ */ jsx(
|
|
2729
|
-
Dialog$1.Title,
|
|
1431
|
+
ContextMenu$1.Separator,
|
|
2730
1432
|
{
|
|
2731
|
-
className: cn("a63-
|
|
2732
|
-
"data-slot": "
|
|
1433
|
+
className: cn("a63-Menu-separator", className),
|
|
1434
|
+
"data-slot": "context-menu-separator",
|
|
2733
1435
|
...props
|
|
2734
1436
|
}
|
|
2735
1437
|
);
|
|
2736
1438
|
}
|
|
2737
|
-
function
|
|
1439
|
+
function ContextMenuShortcut({
|
|
2738
1440
|
className,
|
|
2739
1441
|
...props
|
|
2740
1442
|
}) {
|
|
2741
1443
|
return /* @__PURE__ */ jsx(
|
|
2742
|
-
|
|
1444
|
+
"span",
|
|
2743
1445
|
{
|
|
2744
|
-
className: cn("a63-
|
|
2745
|
-
"data-slot": "
|
|
1446
|
+
className: cn("a63-Menu-shortcut", className),
|
|
1447
|
+
"data-slot": "context-menu-shortcut",
|
|
2746
1448
|
...props
|
|
2747
1449
|
}
|
|
2748
1450
|
);
|
|
2749
1451
|
}
|
|
2750
|
-
|
|
1452
|
+
var feedbackEnterTransition = {
|
|
1453
|
+
filter: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] },
|
|
1454
|
+
opacity: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] }
|
|
1455
|
+
};
|
|
1456
|
+
var feedbackExitTransition = {
|
|
1457
|
+
filter: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] },
|
|
1458
|
+
opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
|
|
1459
|
+
};
|
|
1460
|
+
var reducedMotionTransition = {
|
|
1461
|
+
opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
|
|
1462
|
+
};
|
|
1463
|
+
function CopyButton({
|
|
1464
|
+
"aria-hidden": ariaHidden,
|
|
1465
|
+
children,
|
|
2751
1466
|
className,
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
1467
|
+
copiedLabel = "Copied to clipboard",
|
|
1468
|
+
label = "Copy",
|
|
1469
|
+
size,
|
|
1470
|
+
successMessage,
|
|
1471
|
+
tabIndex,
|
|
1472
|
+
value,
|
|
1473
|
+
variant = "ghost"
|
|
2755
1474
|
}) {
|
|
2756
|
-
const
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
1475
|
+
const [copied, setCopied] = useState(false);
|
|
1476
|
+
const resolvedSize = size ?? (children ? "sm" : "icon-sm");
|
|
1477
|
+
const handleCopy = async () => {
|
|
1478
|
+
try {
|
|
1479
|
+
await navigator.clipboard.writeText(value);
|
|
1480
|
+
setCopied(true);
|
|
1481
|
+
toast.success(successMessage ?? `${label} copied to clipboard`);
|
|
1482
|
+
setTimeout(() => setCopied(false), 2e3);
|
|
1483
|
+
} catch {
|
|
1484
|
+
toast.error("Failed to copy to clipboard");
|
|
1485
|
+
}
|
|
2760
1486
|
};
|
|
2761
|
-
return
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
1487
|
+
return /* @__PURE__ */ jsx(
|
|
1488
|
+
Button,
|
|
1489
|
+
{
|
|
1490
|
+
"aria-hidden": ariaHidden,
|
|
1491
|
+
"aria-label": children ? void 0 : copied ? copiedLabel : label,
|
|
1492
|
+
className: cn("a63-CopyButton", !children && "a63-CopyButton--icon-only", className),
|
|
1493
|
+
"data-copied": copied ? "" : void 0,
|
|
1494
|
+
onClick: () => {
|
|
1495
|
+
void handleCopy();
|
|
1496
|
+
},
|
|
1497
|
+
size: resolvedSize,
|
|
1498
|
+
tabIndex,
|
|
1499
|
+
title: `${label} ${value}`,
|
|
1500
|
+
variant,
|
|
1501
|
+
children: /* @__PURE__ */ jsx(CopyButtonFeedback, { copied, children })
|
|
1502
|
+
}
|
|
1503
|
+
);
|
|
1504
|
+
}
|
|
1505
|
+
function CopyButtonFeedback({
|
|
1506
|
+
children,
|
|
1507
|
+
copied
|
|
1508
|
+
}) {
|
|
1509
|
+
const reduceMotion = useReducedMotion();
|
|
1510
|
+
const swapFrom = reduceMotion ? { opacity: 0 } : { filter: "blur(2px)", opacity: 0 };
|
|
1511
|
+
const swapTo = reduceMotion ? { opacity: 1 } : { filter: "blur(0px)", opacity: 1 };
|
|
1512
|
+
return /* @__PURE__ */ jsxs("span", { className: "a63-CopyButton-swap", "data-slot": "copy-button-swap", children: [
|
|
1513
|
+
/* @__PURE__ */ jsxs(
|
|
1514
|
+
motion.span,
|
|
1515
|
+
{
|
|
1516
|
+
animate: copied ? swapFrom : swapTo,
|
|
1517
|
+
"aria-hidden": copied ? true : void 0,
|
|
1518
|
+
className: "a63-CopyButton-item",
|
|
1519
|
+
"data-slot": "copy-button-item",
|
|
1520
|
+
initial: false,
|
|
1521
|
+
transition: reduceMotion ? reducedMotionTransition : copied ? feedbackExitTransition : feedbackEnterTransition,
|
|
1522
|
+
children: [
|
|
1523
|
+
/* @__PURE__ */ jsx(Copy, { className: "a63-CopyButton-icon" }),
|
|
1524
|
+
children
|
|
1525
|
+
]
|
|
1526
|
+
}
|
|
1527
|
+
),
|
|
1528
|
+
/* @__PURE__ */ jsxs(
|
|
1529
|
+
motion.span,
|
|
1530
|
+
{
|
|
1531
|
+
animate: copied ? swapTo : swapFrom,
|
|
1532
|
+
"aria-hidden": copied ? void 0 : true,
|
|
1533
|
+
className: "a63-CopyButton-item",
|
|
1534
|
+
"data-slot": "copy-button-item",
|
|
1535
|
+
initial: false,
|
|
1536
|
+
transition: reduceMotion ? reducedMotionTransition : copied ? feedbackEnterTransition : feedbackExitTransition,
|
|
1537
|
+
children: [
|
|
1538
|
+
/* @__PURE__ */ jsx(AnimatedCheck, { animate: copied, className: "a63-CopyButton-check" }),
|
|
1539
|
+
children && /* @__PURE__ */ jsx("span", { children: "Copied!" })
|
|
1540
|
+
]
|
|
1541
|
+
}
|
|
1542
|
+
)
|
|
1543
|
+
] });
|
|
2766
1544
|
}
|
|
2767
1545
|
var DrawerContext = React3.createContext({
|
|
2768
1546
|
direction: "bottom"
|
|
@@ -3329,10 +2107,17 @@ var feedbackIcons = {
|
|
|
3329
2107
|
clock: Clock,
|
|
3330
2108
|
fileSearch: FileSearch,
|
|
3331
2109
|
inbox: Inbox,
|
|
2110
|
+
refreshCw: RefreshCw,
|
|
3332
2111
|
searchX: SearchX,
|
|
3333
2112
|
spinner: Spinner,
|
|
3334
2113
|
wifiOff: WifiOff
|
|
3335
2114
|
};
|
|
2115
|
+
function renderFeedbackIcon(icon) {
|
|
2116
|
+
if (icon === void 0) return null;
|
|
2117
|
+
if (typeof icon !== "string") return icon;
|
|
2118
|
+
const IconComponent = feedbackIcons[icon];
|
|
2119
|
+
return IconComponent ? /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": true }) : null;
|
|
2120
|
+
}
|
|
3336
2121
|
var stateConfig = {
|
|
3337
2122
|
empty: {
|
|
3338
2123
|
icon: "inbox",
|
|
@@ -3388,9 +2173,8 @@ function getFeedbackDescription({
|
|
|
3388
2173
|
return stateConfig[state].defaultDescription;
|
|
3389
2174
|
}
|
|
3390
2175
|
function FeedbackStateActionButton({ action }) {
|
|
3391
|
-
const IconComponent = action.icon ? feedbackIcons[action.icon] : void 0;
|
|
3392
2176
|
const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3393
|
-
|
|
2177
|
+
renderFeedbackIcon(action.icon),
|
|
3394
2178
|
action.label
|
|
3395
2179
|
] });
|
|
3396
2180
|
if (action.href) {
|
|
@@ -3420,8 +2204,7 @@ function FeedbackState({
|
|
|
3420
2204
|
const config = stateConfig[state];
|
|
3421
2205
|
const finalDescription = getFeedbackDescription({ description, error, query, state });
|
|
3422
2206
|
const finalTitle = title || config.defaultTitle;
|
|
3423
|
-
const
|
|
3424
|
-
const IconComponent = feedbackIcons[iconName];
|
|
2207
|
+
const iconNode = renderFeedbackIcon(icon ?? config.icon);
|
|
3425
2208
|
return /* @__PURE__ */ jsxs(
|
|
3426
2209
|
"div",
|
|
3427
2210
|
{
|
|
@@ -3434,7 +2217,7 @@ function FeedbackState({
|
|
|
3434
2217
|
role: state === "error" ? "alert" : state === "loading" ? "status" : void 0,
|
|
3435
2218
|
children: [
|
|
3436
2219
|
/* @__PURE__ */ jsxs("div", { className: "a63-FeedbackState-header", "data-slot": "feedback-state-header", children: [
|
|
3437
|
-
showIcon &&
|
|
2220
|
+
showIcon && iconNode ? /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-media", "data-slot": "feedback-state-media", children: iconNode }) : null,
|
|
3438
2221
|
/* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-title", "data-slot": "feedback-state-title", children: finalTitle }),
|
|
3439
2222
|
/* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-description", "data-slot": "feedback-state-description", children: finalDescription })
|
|
3440
2223
|
] }),
|
|
@@ -3443,7 +2226,7 @@ function FeedbackState({
|
|
|
3443
2226
|
{
|
|
3444
2227
|
action
|
|
3445
2228
|
},
|
|
3446
|
-
`${action.label}-${action.href ??
|
|
2229
|
+
`${action.label}-${action.href ?? "button"}`
|
|
3447
2230
|
)) }) : null
|
|
3448
2231
|
]
|
|
3449
2232
|
}
|
|
@@ -3695,202 +2478,6 @@ function HoverCardContent({
|
|
|
3695
2478
|
}
|
|
3696
2479
|
) });
|
|
3697
2480
|
}
|
|
3698
|
-
function isAriaInvalid(value) {
|
|
3699
|
-
return value === true || value === "true";
|
|
3700
|
-
}
|
|
3701
|
-
function Input({
|
|
3702
|
-
"aria-invalid": ariaInvalid,
|
|
3703
|
-
className,
|
|
3704
|
-
disabled,
|
|
3705
|
-
inputClassName,
|
|
3706
|
-
invalid = false,
|
|
3707
|
-
nativeInput = false,
|
|
3708
|
-
shadow = true,
|
|
3709
|
-
size = inputContract.defaultSize,
|
|
3710
|
-
unstyled = false,
|
|
3711
|
-
...props
|
|
3712
|
-
}) {
|
|
3713
|
-
const isInvalid = invalid || isAriaInvalid(ariaInvalid);
|
|
3714
|
-
const isNumericSize = typeof size === "number";
|
|
3715
|
-
const dataSize = isNumericSize ? inputContract.defaultSize : size;
|
|
3716
|
-
const fieldProps = {
|
|
3717
|
-
className: cn("a63-Input-field", inputClassName),
|
|
3718
|
-
"data-slot": "input",
|
|
3719
|
-
disabled,
|
|
3720
|
-
size: isNumericSize ? size : void 0,
|
|
3721
|
-
"aria-invalid": isInvalid ? true : ariaInvalid
|
|
3722
|
-
};
|
|
3723
|
-
return /* @__PURE__ */ jsx(
|
|
3724
|
-
"span",
|
|
3725
|
-
{
|
|
3726
|
-
className: cn("a63-Input", className),
|
|
3727
|
-
"data-disabled": disabled ? "" : void 0,
|
|
3728
|
-
"data-invalid": isInvalid ? "" : void 0,
|
|
3729
|
-
"data-shadow": shadow ? void 0 : "false",
|
|
3730
|
-
"data-size": dataSize,
|
|
3731
|
-
"data-slot": "input-control",
|
|
3732
|
-
"data-unstyled": unstyled ? "" : void 0,
|
|
3733
|
-
children: nativeInput ? /* @__PURE__ */ jsx("input", { ...fieldProps, ...props }) : /* @__PURE__ */ jsx(Input$1, { ...fieldProps, ...props })
|
|
3734
|
-
}
|
|
3735
|
-
);
|
|
3736
|
-
}
|
|
3737
|
-
function Textarea({
|
|
3738
|
-
"aria-invalid": ariaInvalid,
|
|
3739
|
-
className,
|
|
3740
|
-
disabled,
|
|
3741
|
-
invalid = false,
|
|
3742
|
-
shadow = true,
|
|
3743
|
-
size = textareaContract.defaultSize,
|
|
3744
|
-
textareaClassName,
|
|
3745
|
-
unstyled = false,
|
|
3746
|
-
...props
|
|
3747
|
-
}) {
|
|
3748
|
-
const isInvalid = invalid || ariaInvalid === true || ariaInvalid === "true";
|
|
3749
|
-
return /* @__PURE__ */ jsx(
|
|
3750
|
-
"span",
|
|
3751
|
-
{
|
|
3752
|
-
className: cn("a63-Textarea", className),
|
|
3753
|
-
"data-disabled": disabled ? "" : void 0,
|
|
3754
|
-
"data-invalid": isInvalid ? "" : void 0,
|
|
3755
|
-
"data-shadow": shadow ? void 0 : "false",
|
|
3756
|
-
"data-size": size,
|
|
3757
|
-
"data-slot": "textarea-control",
|
|
3758
|
-
"data-unstyled": unstyled ? "" : void 0,
|
|
3759
|
-
children: /* @__PURE__ */ jsx(
|
|
3760
|
-
"textarea",
|
|
3761
|
-
{
|
|
3762
|
-
"aria-invalid": isInvalid ? true : ariaInvalid,
|
|
3763
|
-
className: cn("a63-Textarea-field", textareaClassName),
|
|
3764
|
-
"data-slot": "textarea",
|
|
3765
|
-
disabled,
|
|
3766
|
-
...props
|
|
3767
|
-
}
|
|
3768
|
-
)
|
|
3769
|
-
}
|
|
3770
|
-
);
|
|
3771
|
-
}
|
|
3772
|
-
var InputGroupContext = React3.createContext({
|
|
3773
|
-
disabled: false,
|
|
3774
|
-
invalid: false,
|
|
3775
|
-
size: inputContract.defaultSize
|
|
3776
|
-
});
|
|
3777
|
-
var ADDON_INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role='button'], [role='combobox'], [role='listbox'], [data-slot='select-trigger']";
|
|
3778
|
-
function InputGroup({
|
|
3779
|
-
children,
|
|
3780
|
-
className,
|
|
3781
|
-
disabled = false,
|
|
3782
|
-
invalid = false,
|
|
3783
|
-
shadow = true,
|
|
3784
|
-
size = inputContract.defaultSize,
|
|
3785
|
-
...props
|
|
3786
|
-
}) {
|
|
3787
|
-
const context = React3.useMemo(() => ({ disabled, invalid, size }), [disabled, invalid, size]);
|
|
3788
|
-
return /* @__PURE__ */ jsx(InputGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
|
|
3789
|
-
"div",
|
|
3790
|
-
{
|
|
3791
|
-
className: cn("a63-InputGroup", className),
|
|
3792
|
-
"data-disabled": disabled ? "" : void 0,
|
|
3793
|
-
"data-invalid": invalid ? "" : void 0,
|
|
3794
|
-
"data-shadow": shadow ? void 0 : "false",
|
|
3795
|
-
"data-size": size,
|
|
3796
|
-
"data-slot": "input-group",
|
|
3797
|
-
role: "group",
|
|
3798
|
-
...props,
|
|
3799
|
-
children
|
|
3800
|
-
}
|
|
3801
|
-
) });
|
|
3802
|
-
}
|
|
3803
|
-
function InputGroupAddon({
|
|
3804
|
-
align = "inline-start",
|
|
3805
|
-
children,
|
|
3806
|
-
className,
|
|
3807
|
-
onMouseDown,
|
|
3808
|
-
...props
|
|
3809
|
-
}) {
|
|
3810
|
-
return (
|
|
3811
|
-
// mousedown only delegates focus to the field (the real control); the addon is a decorative slot
|
|
3812
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions -- the input remains the sole interactive control
|
|
3813
|
-
/* @__PURE__ */ jsx(
|
|
3814
|
-
"div",
|
|
3815
|
-
{
|
|
3816
|
-
className: cn("a63-InputGroup-addon", className),
|
|
3817
|
-
"data-align": align,
|
|
3818
|
-
"data-slot": "input-group-addon",
|
|
3819
|
-
onMouseDown: (event) => {
|
|
3820
|
-
onMouseDown?.(event);
|
|
3821
|
-
if (event.defaultPrevented) {
|
|
3822
|
-
return;
|
|
3823
|
-
}
|
|
3824
|
-
const target = event.target;
|
|
3825
|
-
if (target.closest(ADDON_INTERACTIVE_SELECTOR)) {
|
|
3826
|
-
return;
|
|
3827
|
-
}
|
|
3828
|
-
event.preventDefault();
|
|
3829
|
-
const parent = event.currentTarget.parentElement;
|
|
3830
|
-
const field = parent?.querySelector(
|
|
3831
|
-
"input, textarea"
|
|
3832
|
-
);
|
|
3833
|
-
if (field && !parent?.querySelector("input:focus, textarea:focus")) {
|
|
3834
|
-
field.focus();
|
|
3835
|
-
}
|
|
3836
|
-
},
|
|
3837
|
-
...props,
|
|
3838
|
-
children
|
|
3839
|
-
}
|
|
3840
|
-
)
|
|
3841
|
-
);
|
|
3842
|
-
}
|
|
3843
|
-
function InputGroupInput({
|
|
3844
|
-
disabled,
|
|
3845
|
-
invalid,
|
|
3846
|
-
size,
|
|
3847
|
-
...props
|
|
3848
|
-
}) {
|
|
3849
|
-
const {
|
|
3850
|
-
disabled: groupDisabled,
|
|
3851
|
-
invalid: groupInvalid,
|
|
3852
|
-
size: groupSize
|
|
3853
|
-
} = React3.useContext(InputGroupContext);
|
|
3854
|
-
return /* @__PURE__ */ jsx(
|
|
3855
|
-
Input,
|
|
3856
|
-
{
|
|
3857
|
-
disabled: disabled ?? groupDisabled,
|
|
3858
|
-
invalid: invalid ?? groupInvalid,
|
|
3859
|
-
size: size ?? groupSize,
|
|
3860
|
-
unstyled: true,
|
|
3861
|
-
...props
|
|
3862
|
-
}
|
|
3863
|
-
);
|
|
3864
|
-
}
|
|
3865
|
-
function InputGroupTextarea({
|
|
3866
|
-
disabled,
|
|
3867
|
-
...props
|
|
3868
|
-
}) {
|
|
3869
|
-
const { disabled: groupDisabled, invalid: groupInvalid } = React3.useContext(InputGroupContext);
|
|
3870
|
-
return /* @__PURE__ */ jsx(
|
|
3871
|
-
Textarea,
|
|
3872
|
-
{
|
|
3873
|
-
"aria-invalid": props["aria-invalid"] ?? (groupInvalid || void 0),
|
|
3874
|
-
disabled: disabled ?? groupDisabled,
|
|
3875
|
-
unstyled: true,
|
|
3876
|
-
...props
|
|
3877
|
-
}
|
|
3878
|
-
);
|
|
3879
|
-
}
|
|
3880
|
-
function InputGroupButton({
|
|
3881
|
-
size = "xs",
|
|
3882
|
-
variant = "ghost",
|
|
3883
|
-
...props
|
|
3884
|
-
}) {
|
|
3885
|
-
return /* @__PURE__ */ jsx(Button, { "data-slot": "input-group-button", size, variant, ...props });
|
|
3886
|
-
}
|
|
3887
|
-
function InputGroupText({
|
|
3888
|
-
children,
|
|
3889
|
-
className,
|
|
3890
|
-
...props
|
|
3891
|
-
}) {
|
|
3892
|
-
return /* @__PURE__ */ jsx("span", { className: cn("a63-InputGroup-text", className), "data-slot": "input-group-text", ...props, children });
|
|
3893
|
-
}
|
|
3894
2481
|
function InputOTP({
|
|
3895
2482
|
className,
|
|
3896
2483
|
containerClassName,
|
|
@@ -4134,394 +2721,16 @@ var LoadMoreTrigger = forwardRef(
|
|
|
4134
2721
|
onClick: onRetry,
|
|
4135
2722
|
type: "button",
|
|
4136
2723
|
children: retryLabel
|
|
4137
|
-
}
|
|
4138
|
-
) : null
|
|
4139
|
-
]
|
|
4140
|
-
}
|
|
4141
|
-
)
|
|
4142
|
-
}
|
|
4143
|
-
);
|
|
4144
|
-
}
|
|
4145
|
-
);
|
|
4146
|
-
LoadMoreTrigger.displayName = "LoadMoreTrigger";
|
|
4147
|
-
|
|
4148
|
-
// src/conformance/renderer-conformance.ts
|
|
4149
|
-
var reactRendererConformance = [
|
|
4150
|
-
{
|
|
4151
|
-
contractId: "button",
|
|
4152
|
-
implementedStates: ["rest", "pressed", "disabled", "loading"],
|
|
4153
|
-
verifiedSharedOutcomes: [
|
|
4154
|
-
"action-fires-once",
|
|
4155
|
-
"loading-blocks-repeat-activation",
|
|
4156
|
-
"disabled-prevents-activation"
|
|
4157
|
-
],
|
|
4158
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "announces-loading", "disabled-while-loading"],
|
|
4159
|
-
verifiesMotionRecipe: true
|
|
4160
|
-
},
|
|
4161
|
-
{
|
|
4162
|
-
contractId: "alert",
|
|
4163
|
-
implementedStates: ["info", "success", "warning", "error"],
|
|
4164
|
-
verifiedSharedOutcomes: [
|
|
4165
|
-
"tone-is-not-conveyed-by-color-alone",
|
|
4166
|
-
"message-remains-readable",
|
|
4167
|
-
"action-does-not-obscure-status"
|
|
4168
|
-
],
|
|
4169
|
-
verifiedAccessibilityOutcomes: ["announces-semantic-tone", "text-does-not-rely-on-color"],
|
|
4170
|
-
verifiesMotionRecipe: false
|
|
4171
|
-
},
|
|
4172
|
-
{
|
|
4173
|
-
contractId: "dialog",
|
|
4174
|
-
implementedStates: ["closed", "open", "focus-visible"],
|
|
4175
|
-
verifiedSharedOutcomes: [
|
|
4176
|
-
"opening-presents-a-modal-context",
|
|
4177
|
-
"background-interaction-is-blocked-while-open",
|
|
4178
|
-
"dismissal-returns-to-the-originating-context"
|
|
4179
|
-
],
|
|
4180
|
-
verifiedAccessibilityOutcomes: [
|
|
4181
|
-
"exposes-modal-title",
|
|
4182
|
-
"keeps-assistive-focus-in-the-modal-context",
|
|
4183
|
-
"restores-access-to-the-originating-control"
|
|
4184
|
-
],
|
|
4185
|
-
verifiesMotionRecipe: false
|
|
4186
|
-
},
|
|
4187
|
-
{
|
|
4188
|
-
contractId: "alert-dialog",
|
|
4189
|
-
implementedStates: ["closed", "open"],
|
|
4190
|
-
verifiedSharedOutcomes: [
|
|
4191
|
-
"consequential-action-requires-explicit-confirmation",
|
|
4192
|
-
"cancel-dismisses-without-performing-the-action",
|
|
4193
|
-
"confirmation-performs-the-action-once-and-dismisses"
|
|
4194
|
-
],
|
|
4195
|
-
verifiedAccessibilityOutcomes: [
|
|
4196
|
-
"exposes-alert-dialog-title",
|
|
4197
|
-
"exposes-consequence-description",
|
|
4198
|
-
"identifies-cancel-and-confirm-actions"
|
|
4199
|
-
],
|
|
4200
|
-
verifiesMotionRecipe: false
|
|
4201
|
-
},
|
|
4202
|
-
{
|
|
4203
|
-
contractId: "field",
|
|
4204
|
-
implementedStates: ["default", "invalid", "disabled"],
|
|
4205
|
-
verifiedSharedOutcomes: [
|
|
4206
|
-
"label-identifies-control",
|
|
4207
|
-
"description-explains-input",
|
|
4208
|
-
"invalid-state-exposes-error"
|
|
4209
|
-
],
|
|
4210
|
-
verifiedAccessibilityOutcomes: [
|
|
4211
|
-
"associates-label",
|
|
4212
|
-
"associates-description",
|
|
4213
|
-
"announces-error"
|
|
4214
|
-
],
|
|
4215
|
-
verifiesMotionRecipe: false
|
|
4216
|
-
},
|
|
4217
|
-
{
|
|
4218
|
-
contractId: "destination-link",
|
|
4219
|
-
implementedStates: ["rest", "focus-visible"],
|
|
4220
|
-
verifiedSharedOutcomes: [
|
|
4221
|
-
"internal-destination-preserves-application-navigation",
|
|
4222
|
-
"external-destination-uses-platform-external-navigation",
|
|
4223
|
-
"destination-kind-remains-distinguishable"
|
|
4224
|
-
],
|
|
4225
|
-
verifiedAccessibilityOutcomes: [
|
|
4226
|
-
"exposes-link-label",
|
|
4227
|
-
"announces-external-destination-behavior",
|
|
4228
|
-
"preserves-native-link-semantics"
|
|
4229
|
-
],
|
|
4230
|
-
verifiesMotionRecipe: false
|
|
4231
|
-
},
|
|
4232
|
-
{
|
|
4233
|
-
contractId: "input",
|
|
4234
|
-
implementedStates: ["rest", "focus", "disabled", "invalid"],
|
|
4235
|
-
verifiedSharedOutcomes: [
|
|
4236
|
-
"value-remains-editable-when-enabled",
|
|
4237
|
-
"focus-is-visible",
|
|
4238
|
-
"invalid-state-is-announced"
|
|
4239
|
-
],
|
|
4240
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "exposes-value", "announces-invalid"],
|
|
4241
|
-
verifiesMotionRecipe: false
|
|
4242
|
-
},
|
|
4243
|
-
{
|
|
4244
|
-
contractId: "textarea",
|
|
4245
|
-
implementedStates: ["rest", "focus", "disabled", "invalid"],
|
|
4246
|
-
verifiedSharedOutcomes: [
|
|
4247
|
-
"multi-line-value-remains-editable",
|
|
4248
|
-
"focus-is-visible",
|
|
4249
|
-
"invalid-state-is-announced"
|
|
4250
|
-
],
|
|
4251
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "exposes-value", "announces-invalid"],
|
|
4252
|
-
verifiesMotionRecipe: false
|
|
4253
|
-
},
|
|
4254
|
-
{
|
|
4255
|
-
contractId: "switch",
|
|
4256
|
-
implementedStates: ["off", "on", "disabled"],
|
|
4257
|
-
verifiedSharedOutcomes: [
|
|
4258
|
-
"value-is-boolean",
|
|
4259
|
-
"activation-toggles-value",
|
|
4260
|
-
"disabled-prevents-change"
|
|
4261
|
-
],
|
|
4262
|
-
verifiedAccessibilityOutcomes: [
|
|
4263
|
-
"exposes-label",
|
|
4264
|
-
"exposes-boolean-value",
|
|
4265
|
-
"preserves-native-control-role"
|
|
4266
|
-
],
|
|
4267
|
-
verifiesMotionRecipe: false
|
|
4268
|
-
},
|
|
4269
|
-
{
|
|
4270
|
-
contractId: "select",
|
|
4271
|
-
implementedStates: ["closed", "open", "disabled", "selected-item", "disabled-item"],
|
|
4272
|
-
verifiedSharedOutcomes: [
|
|
4273
|
-
"current-selection-remains-visible",
|
|
4274
|
-
"activation-reveals-available-options",
|
|
4275
|
-
"choosing-an-option-updates-the-value-once",
|
|
4276
|
-
"disabled-controls-and-options-prevent-selection"
|
|
4277
|
-
],
|
|
4278
|
-
verifiedAccessibilityOutcomes: [
|
|
4279
|
-
"exposes-label",
|
|
4280
|
-
"exposes-selected-value",
|
|
4281
|
-
"preserves-single-selection-semantics"
|
|
4282
|
-
],
|
|
4283
|
-
verifiesMotionRecipe: false
|
|
4284
|
-
},
|
|
4285
|
-
{
|
|
4286
|
-
contractId: "segmented-control",
|
|
4287
|
-
implementedStates: ["rest", "selected", "disabled"],
|
|
4288
|
-
verifiedSharedOutcomes: [
|
|
4289
|
-
"one-segment-is-selected-at-a-time",
|
|
4290
|
-
"activation-updates-the-selection-once",
|
|
4291
|
-
"disabled-segment-prevents-selection"
|
|
4292
|
-
],
|
|
4293
|
-
verifiedAccessibilityOutcomes: [
|
|
4294
|
-
"exposes-each-segment-label",
|
|
4295
|
-
"exposes-selected-state",
|
|
4296
|
-
"preserves-single-selection-semantics"
|
|
4297
|
-
],
|
|
4298
|
-
verifiesMotionRecipe: false
|
|
4299
|
-
},
|
|
4300
|
-
{
|
|
4301
|
-
contractId: "radio",
|
|
4302
|
-
implementedStates: ["unchecked", "checked", "disabled"],
|
|
4303
|
-
verifiedSharedOutcomes: [
|
|
4304
|
-
"exactly-one-option-may-be-selected",
|
|
4305
|
-
"activation-moves-selection-to-the-chosen-option",
|
|
4306
|
-
"disabled-option-prevents-selection"
|
|
4307
|
-
],
|
|
4308
|
-
verifiedAccessibilityOutcomes: [
|
|
4309
|
-
"exposes-group-label",
|
|
4310
|
-
"exposes-option-labels-and-selected-state",
|
|
4311
|
-
"preserves-single-selection-semantics"
|
|
4312
|
-
],
|
|
4313
|
-
verifiesMotionRecipe: false
|
|
4314
|
-
},
|
|
4315
|
-
{
|
|
4316
|
-
contractId: "slider",
|
|
4317
|
-
implementedStates: ["rest", "dragging", "disabled"],
|
|
4318
|
-
verifiedSharedOutcomes: [
|
|
4319
|
-
"value-remains-within-the-declared-range",
|
|
4320
|
-
"interaction-updates-value-using-the-declared-step",
|
|
4321
|
-
"disabled-control-prevents-value-change"
|
|
4322
|
-
],
|
|
4323
|
-
verifiedAccessibilityOutcomes: [
|
|
4324
|
-
"exposes-label",
|
|
4325
|
-
"exposes-current-value-and-range",
|
|
4326
|
-
"supports-adjustable-actions"
|
|
4327
|
-
],
|
|
4328
|
-
verifiesMotionRecipe: false
|
|
4329
|
-
},
|
|
4330
|
-
{
|
|
4331
|
-
contractId: "dropdown-menu",
|
|
4332
|
-
implementedStates: ["closed", "open", "disabled", "checked", "destructive"],
|
|
4333
|
-
verifiedSharedOutcomes: [
|
|
4334
|
-
"enabled-action-executes-once-and-dismisses-the-menu",
|
|
4335
|
-
"disabled-action-does-not-execute",
|
|
4336
|
-
"checked-choice-exposes-its-current-state",
|
|
4337
|
-
"destructive-action-retains-destructive-intent"
|
|
4338
|
-
],
|
|
4339
|
-
verifiedAccessibilityOutcomes: [
|
|
4340
|
-
"trigger-exposes-menu-availability",
|
|
4341
|
-
"items-expose-label-role-and-disabled-state",
|
|
4342
|
-
"checked-items-expose-selected-or-checked-state"
|
|
4343
|
-
],
|
|
4344
|
-
verifiesMotionRecipe: false
|
|
4345
|
-
},
|
|
4346
|
-
{
|
|
4347
|
-
contractId: "accordion",
|
|
4348
|
-
implementedStates: ["closed", "open", "disabled"],
|
|
4349
|
-
verifiedSharedOutcomes: [
|
|
4350
|
-
"activation-toggles-associated-content-visibility",
|
|
4351
|
-
"expanded-state-matches-content-visibility",
|
|
4352
|
-
"disabled-trigger-prevents-disclosure-change"
|
|
4353
|
-
],
|
|
4354
|
-
verifiedAccessibilityOutcomes: [
|
|
4355
|
-
"trigger-exposes-expanded-state",
|
|
4356
|
-
"trigger-is-associated-with-disclosed-content",
|
|
4357
|
-
"disabled-trigger-exposes-disabled-state"
|
|
4358
|
-
],
|
|
4359
|
-
verifiesMotionRecipe: false
|
|
4360
|
-
},
|
|
4361
|
-
{
|
|
4362
|
-
contractId: "calendar",
|
|
4363
|
-
implementedStates: ["rest", "selected", "disabled"],
|
|
4364
|
-
verifiedSharedOutcomes: [
|
|
4365
|
-
"selection-updates-to-an-allowed-date",
|
|
4366
|
-
"disabled-date-prevents-selection",
|
|
4367
|
-
"selected-date-remains-visible"
|
|
4368
|
-
],
|
|
4369
|
-
verifiedAccessibilityOutcomes: [
|
|
4370
|
-
"exposes-control-label",
|
|
4371
|
-
"dates-expose-complete-date-names",
|
|
4372
|
-
"selected-date-exposes-selected-state"
|
|
4373
|
-
],
|
|
4374
|
-
verifiesMotionRecipe: false
|
|
4375
|
-
},
|
|
4376
|
-
{
|
|
4377
|
-
contractId: "search-field",
|
|
4378
|
-
implementedStates: ["empty", "query", "focus", "disabled"],
|
|
4379
|
-
verifiedSharedOutcomes: [
|
|
4380
|
-
"editing-updates-the-query",
|
|
4381
|
-
"clear-empties-the-query-and-preserves-input-context",
|
|
4382
|
-
"submit-commits-the-current-query-once",
|
|
4383
|
-
"disabled-search-prevents-editing-and-clear"
|
|
4384
|
-
],
|
|
4385
|
-
verifiedAccessibilityOutcomes: [
|
|
4386
|
-
"exposes-search-input-role-and-label",
|
|
4387
|
-
"clear-action-has-an-accessible-label",
|
|
4388
|
-
"disabled-state-is-exposed"
|
|
4389
|
-
],
|
|
4390
|
-
verifiesMotionRecipe: false
|
|
4391
|
-
},
|
|
4392
|
-
{
|
|
4393
|
-
contractId: "tabs",
|
|
4394
|
-
implementedStates: ["rest", "selected"],
|
|
4395
|
-
verifiedSharedOutcomes: [
|
|
4396
|
-
"one-tab-is-selected-at-a-time",
|
|
4397
|
-
"selection-reveals-the-associated-content",
|
|
4398
|
-
"selected-tab-remains-visually-distinguishable"
|
|
4399
|
-
],
|
|
4400
|
-
verifiedAccessibilityOutcomes: [
|
|
4401
|
-
"exposes-tab-labels",
|
|
4402
|
-
"exposes-selected-state",
|
|
4403
|
-
"associates-selection-with-visible-content"
|
|
4404
|
-
],
|
|
4405
|
-
verifiesMotionRecipe: false
|
|
4406
|
-
},
|
|
4407
|
-
{
|
|
4408
|
-
contractId: "load-more-trigger",
|
|
4409
|
-
implementedStates: ["idle", "loading", "failed", "exhausted"],
|
|
4410
|
-
verifiedSharedOutcomes: [
|
|
4411
|
-
"loading-is-announced",
|
|
4412
|
-
"failure-provides-retry",
|
|
4413
|
-
"exhaustion-is-announced",
|
|
4414
|
-
"existing-items-remain-stable-while-appending"
|
|
4415
|
-
],
|
|
4416
|
-
verifiedAccessibilityOutcomes: [
|
|
4417
|
-
"announces-loading",
|
|
4418
|
-
"exposes-retry-action",
|
|
4419
|
-
"announces-exhausted"
|
|
4420
|
-
],
|
|
4421
|
-
verifiesMotionRecipe: false
|
|
4422
|
-
},
|
|
4423
|
-
{
|
|
4424
|
-
contractId: "skeleton",
|
|
4425
|
-
implementedStates: ["loading", "reduced-motion"],
|
|
4426
|
-
verifiedSharedOutcomes: [
|
|
4427
|
-
"placeholder-is-hidden-from-assistive-technology",
|
|
4428
|
-
"interaction-is-blocked-while-loading",
|
|
4429
|
-
"reduced-motion-result-is-static"
|
|
4430
|
-
],
|
|
4431
|
-
verifiedAccessibilityOutcomes: [
|
|
4432
|
-
"hidden-from-accessibility-tree",
|
|
4433
|
-
"blocks-interaction-while-active"
|
|
4434
|
-
],
|
|
4435
|
-
verifiesMotionRecipe: true
|
|
4436
|
-
},
|
|
4437
|
-
{
|
|
4438
|
-
contractId: "toggle",
|
|
4439
|
-
implementedStates: ["off", "on", "disabled"],
|
|
4440
|
-
verifiedSharedOutcomes: [
|
|
4441
|
-
"selected-state-is-visible",
|
|
4442
|
-
"activation-toggles-selection",
|
|
4443
|
-
"disabled-prevents-change"
|
|
4444
|
-
],
|
|
4445
|
-
verifiedAccessibilityOutcomes: [
|
|
4446
|
-
"exposes-label",
|
|
4447
|
-
"announces-selected-state",
|
|
4448
|
-
"preserves-button-role"
|
|
4449
|
-
],
|
|
4450
|
-
verifiesMotionRecipe: false
|
|
4451
|
-
},
|
|
4452
|
-
{
|
|
4453
|
-
contractId: "card",
|
|
4454
|
-
implementedStates: ["rest", "interactive", "focus-visible"],
|
|
4455
|
-
verifiedSharedOutcomes: [
|
|
4456
|
-
"content-order-is-preserved",
|
|
4457
|
-
"static-card-does-not-imply-action",
|
|
4458
|
-
"interactive-card-has-one-primary-action"
|
|
4459
|
-
],
|
|
4460
|
-
verifiedAccessibilityOutcomes: ["preserves-content-order", "does-not-imply-action-when-static"],
|
|
4461
|
-
verifiesMotionRecipe: false
|
|
4462
|
-
},
|
|
4463
|
-
{
|
|
4464
|
-
contractId: "badge",
|
|
4465
|
-
implementedStates: ["neutral", "accent", "success", "warning", "error"],
|
|
4466
|
-
verifiedSharedOutcomes: [
|
|
4467
|
-
"label-remains-readable-without-color",
|
|
4468
|
-
"semantic-tone-retains-meaning"
|
|
4469
|
-
],
|
|
4470
|
-
verifiedAccessibilityOutcomes: ["text-does-not-rely-on-color"],
|
|
4471
|
-
verifiesMotionRecipe: false
|
|
4472
|
-
},
|
|
4473
|
-
{
|
|
4474
|
-
contractId: "avatar",
|
|
4475
|
-
implementedStates: ["loading", "loaded", "fallback"],
|
|
4476
|
-
verifiedSharedOutcomes: [
|
|
4477
|
-
"accessible-name-is-preserved",
|
|
4478
|
-
"fallback-preserves-identity",
|
|
4479
|
-
"loading-does-not-expose-empty-image"
|
|
4480
|
-
],
|
|
4481
|
-
verifiedAccessibilityOutcomes: ["exposes-accessible-name", "fallback-preserves-identity"],
|
|
4482
|
-
verifiesMotionRecipe: false
|
|
4483
|
-
},
|
|
4484
|
-
{
|
|
4485
|
-
contractId: "empty",
|
|
4486
|
-
implementedStates: ["empty", "error"],
|
|
4487
|
-
verifiedSharedOutcomes: [
|
|
4488
|
-
"heading-explains-state",
|
|
4489
|
-
"supporting-copy-provides-context",
|
|
4490
|
-
"recovery-action-remains-available"
|
|
4491
|
-
],
|
|
4492
|
-
verifiedAccessibilityOutcomes: [
|
|
4493
|
-
"exposes-heading",
|
|
4494
|
-
"exposes-recovery-action",
|
|
4495
|
-
"preserves-reading-order"
|
|
4496
|
-
],
|
|
4497
|
-
verifiesMotionRecipe: false
|
|
4498
|
-
},
|
|
4499
|
-
{
|
|
4500
|
-
contractId: "progress",
|
|
4501
|
-
implementedStates: ["indeterminate", "progressing", "complete"],
|
|
4502
|
-
verifiedSharedOutcomes: [
|
|
4503
|
-
"label-identifies-operation",
|
|
4504
|
-
"determinate-value-is-exposed",
|
|
4505
|
-
"completion-is-distinguishable"
|
|
4506
|
-
],
|
|
4507
|
-
verifiedAccessibilityOutcomes: ["exposes-label", "announces-progress-value"],
|
|
4508
|
-
verifiesMotionRecipe: false
|
|
4509
|
-
},
|
|
4510
|
-
{
|
|
4511
|
-
contractId: "toaster",
|
|
4512
|
-
implementedStates: ["visible", "dismissing", "reduced-motion"],
|
|
4513
|
-
verifiedSharedOutcomes: [
|
|
4514
|
-
"message-is-announced",
|
|
4515
|
-
"focus-is-not-trapped",
|
|
4516
|
-
"dismissal-respects-motion-preference"
|
|
4517
|
-
],
|
|
4518
|
-
verifiedAccessibilityOutcomes: ["announces-message", "does-not-trap-focus"],
|
|
4519
|
-
verifiesMotionRecipe: true
|
|
2724
|
+
}
|
|
2725
|
+
) : null
|
|
2726
|
+
]
|
|
2727
|
+
}
|
|
2728
|
+
)
|
|
2729
|
+
}
|
|
2730
|
+
);
|
|
4520
2731
|
}
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
return reactRendererConformance.find((evidence) => evidence.contractId === contractId);
|
|
4524
|
-
}
|
|
2732
|
+
);
|
|
2733
|
+
LoadMoreTrigger.displayName = "LoadMoreTrigger";
|
|
4525
2734
|
function Marquee({
|
|
4526
2735
|
className,
|
|
4527
2736
|
reverse = false,
|
|
@@ -4534,12 +2743,15 @@ function Marquee({
|
|
|
4534
2743
|
gap = marqueeContract.defaultGap,
|
|
4535
2744
|
...props
|
|
4536
2745
|
}) {
|
|
2746
|
+
const reducedMotion = Boolean(useReducedMotion());
|
|
2747
|
+
const scrollRegion = reducedMotion ? { "aria-label": "Scrolling content", role: "group", tabIndex: 0 } : void 0;
|
|
4537
2748
|
return /* @__PURE__ */ jsx(
|
|
4538
2749
|
"div",
|
|
4539
2750
|
{
|
|
4540
2751
|
className: cn("a63-Marquee", className),
|
|
4541
2752
|
"data-orientation": vertical ? "vertical" : "horizontal",
|
|
4542
2753
|
"data-slot": "marquee",
|
|
2754
|
+
...scrollRegion,
|
|
4543
2755
|
...props,
|
|
4544
2756
|
style: { "--gap": gap, ...style },
|
|
4545
2757
|
children: Array.from({ length: repeat }, (_, trackIndex) => /* @__PURE__ */ jsx(
|
|
@@ -4742,156 +2954,6 @@ function MenubarSubContent({
|
|
|
4742
2954
|
}
|
|
4743
2955
|
);
|
|
4744
2956
|
}
|
|
4745
|
-
function NavigationMenu({
|
|
4746
|
-
align = "start",
|
|
4747
|
-
children,
|
|
4748
|
-
className,
|
|
4749
|
-
portalContainer,
|
|
4750
|
-
...props
|
|
4751
|
-
}) {
|
|
4752
|
-
return /* @__PURE__ */ jsxs(
|
|
4753
|
-
NavigationMenu$1.Root,
|
|
4754
|
-
{
|
|
4755
|
-
className: cn("a63-NavigationMenu", className),
|
|
4756
|
-
"data-slot": "navigation-menu",
|
|
4757
|
-
...props,
|
|
4758
|
-
children: [
|
|
4759
|
-
children,
|
|
4760
|
-
/* @__PURE__ */ jsx(NavigationMenuPositioner, { align, portalContainer })
|
|
4761
|
-
]
|
|
4762
|
-
}
|
|
4763
|
-
);
|
|
4764
|
-
}
|
|
4765
|
-
function NavigationMenuList({
|
|
4766
|
-
className,
|
|
4767
|
-
...props
|
|
4768
|
-
}) {
|
|
4769
|
-
return /* @__PURE__ */ jsx(
|
|
4770
|
-
NavigationMenu$1.List,
|
|
4771
|
-
{
|
|
4772
|
-
className: cn("a63-NavigationMenu-list", className),
|
|
4773
|
-
"data-slot": "navigation-menu-list",
|
|
4774
|
-
...props
|
|
4775
|
-
}
|
|
4776
|
-
);
|
|
4777
|
-
}
|
|
4778
|
-
function NavigationMenuItem({
|
|
4779
|
-
className,
|
|
4780
|
-
...props
|
|
4781
|
-
}) {
|
|
4782
|
-
return /* @__PURE__ */ jsx(
|
|
4783
|
-
NavigationMenu$1.Item,
|
|
4784
|
-
{
|
|
4785
|
-
className: cn("a63-NavigationMenu-item", className),
|
|
4786
|
-
"data-slot": "navigation-menu-item",
|
|
4787
|
-
...props
|
|
4788
|
-
}
|
|
4789
|
-
);
|
|
4790
|
-
}
|
|
4791
|
-
function navigationMenuTriggerStyle() {
|
|
4792
|
-
return "a63-NavigationMenu-trigger";
|
|
4793
|
-
}
|
|
4794
|
-
function NavigationMenuTrigger({
|
|
4795
|
-
children,
|
|
4796
|
-
className,
|
|
4797
|
-
...props
|
|
4798
|
-
}) {
|
|
4799
|
-
return /* @__PURE__ */ jsxs(
|
|
4800
|
-
NavigationMenu$1.Trigger,
|
|
4801
|
-
{
|
|
4802
|
-
className: cn("a63-NavigationMenu-trigger", className),
|
|
4803
|
-
"data-slot": "navigation-menu-trigger",
|
|
4804
|
-
...props,
|
|
4805
|
-
children: [
|
|
4806
|
-
children,
|
|
4807
|
-
/* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true, className: "a63-NavigationMenu-trigger-icon" })
|
|
4808
|
-
]
|
|
4809
|
-
}
|
|
4810
|
-
);
|
|
4811
|
-
}
|
|
4812
|
-
function NavigationMenuContent({
|
|
4813
|
-
className,
|
|
4814
|
-
...props
|
|
4815
|
-
}) {
|
|
4816
|
-
return /* @__PURE__ */ jsx(
|
|
4817
|
-
NavigationMenu$1.Content,
|
|
4818
|
-
{
|
|
4819
|
-
className: cn("a63-NavigationMenu-content", className),
|
|
4820
|
-
"data-slot": "navigation-menu-content",
|
|
4821
|
-
...props
|
|
4822
|
-
}
|
|
4823
|
-
);
|
|
4824
|
-
}
|
|
4825
|
-
function NavigationMenuPositioner({
|
|
4826
|
-
align = "start",
|
|
4827
|
-
alignOffset = 0,
|
|
4828
|
-
className,
|
|
4829
|
-
portalContainer,
|
|
4830
|
-
side = "bottom",
|
|
4831
|
-
sideOffset = 8,
|
|
4832
|
-
...props
|
|
4833
|
-
}) {
|
|
4834
|
-
return /* @__PURE__ */ jsx(NavigationMenu$1.Portal, { container: portalContainer, "data-slot": "navigation-menu-portal", children: /* @__PURE__ */ jsx(
|
|
4835
|
-
NavigationMenu$1.Positioner,
|
|
4836
|
-
{
|
|
4837
|
-
align,
|
|
4838
|
-
alignOffset,
|
|
4839
|
-
className: cn("a63-NavigationMenu-positioner", className),
|
|
4840
|
-
"data-slot": "navigation-menu-positioner",
|
|
4841
|
-
side,
|
|
4842
|
-
sideOffset,
|
|
4843
|
-
...props,
|
|
4844
|
-
children: /* @__PURE__ */ jsx(
|
|
4845
|
-
NavigationMenu$1.Popup,
|
|
4846
|
-
{
|
|
4847
|
-
className: "a63-NavigationMenu-popup",
|
|
4848
|
-
"data-slot": "navigation-menu-popup",
|
|
4849
|
-
children: /* @__PURE__ */ jsx(NavigationMenuViewport, {})
|
|
4850
|
-
}
|
|
4851
|
-
)
|
|
4852
|
-
}
|
|
4853
|
-
) });
|
|
4854
|
-
}
|
|
4855
|
-
function NavigationMenuLink({
|
|
4856
|
-
className,
|
|
4857
|
-
...props
|
|
4858
|
-
}) {
|
|
4859
|
-
return /* @__PURE__ */ jsx(
|
|
4860
|
-
NavigationMenu$1.Link,
|
|
4861
|
-
{
|
|
4862
|
-
className: cn("a63-NavigationMenu-link", className),
|
|
4863
|
-
"data-slot": "navigation-menu-link",
|
|
4864
|
-
...props
|
|
4865
|
-
}
|
|
4866
|
-
);
|
|
4867
|
-
}
|
|
4868
|
-
function NavigationMenuIndicator({
|
|
4869
|
-
className,
|
|
4870
|
-
...props
|
|
4871
|
-
}) {
|
|
4872
|
-
return /* @__PURE__ */ jsx(
|
|
4873
|
-
"div",
|
|
4874
|
-
{
|
|
4875
|
-
className: cn("a63-NavigationMenu-indicator", className),
|
|
4876
|
-
"data-slot": "navigation-menu-indicator",
|
|
4877
|
-
...props,
|
|
4878
|
-
children: /* @__PURE__ */ jsx("div", { className: "a63-NavigationMenu-indicator-arrow" })
|
|
4879
|
-
}
|
|
4880
|
-
);
|
|
4881
|
-
}
|
|
4882
|
-
function NavigationMenuViewport({
|
|
4883
|
-
className,
|
|
4884
|
-
...props
|
|
4885
|
-
}) {
|
|
4886
|
-
return /* @__PURE__ */ jsx(
|
|
4887
|
-
NavigationMenu$1.Viewport,
|
|
4888
|
-
{
|
|
4889
|
-
className: cn("a63-NavigationMenu-viewport", className),
|
|
4890
|
-
"data-slot": "navigation-menu-viewport",
|
|
4891
|
-
...props
|
|
4892
|
-
}
|
|
4893
|
-
);
|
|
4894
|
-
}
|
|
4895
2957
|
function Pagination({ className, ...props }) {
|
|
4896
2958
|
return /* @__PURE__ */ jsx(
|
|
4897
2959
|
"nav",
|
|
@@ -5162,73 +3224,6 @@ function PreviewCardPopup({
|
|
|
5162
3224
|
}
|
|
5163
3225
|
) });
|
|
5164
3226
|
}
|
|
5165
|
-
function Progress({
|
|
5166
|
-
className,
|
|
5167
|
-
children,
|
|
5168
|
-
...props
|
|
5169
|
-
}) {
|
|
5170
|
-
return /* @__PURE__ */ jsx(
|
|
5171
|
-
Progress$1.Root,
|
|
5172
|
-
{
|
|
5173
|
-
className: cn("a63-Progress", className),
|
|
5174
|
-
"data-slot": "progress",
|
|
5175
|
-
...props,
|
|
5176
|
-
children: children ?? /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })
|
|
5177
|
-
}
|
|
5178
|
-
);
|
|
5179
|
-
}
|
|
5180
|
-
function ProgressLabel({
|
|
5181
|
-
className,
|
|
5182
|
-
...props
|
|
5183
|
-
}) {
|
|
5184
|
-
return /* @__PURE__ */ jsx(
|
|
5185
|
-
Progress$1.Label,
|
|
5186
|
-
{
|
|
5187
|
-
className: cn("a63-Progress-label", className),
|
|
5188
|
-
"data-slot": "progress-label",
|
|
5189
|
-
...props
|
|
5190
|
-
}
|
|
5191
|
-
);
|
|
5192
|
-
}
|
|
5193
|
-
function ProgressTrack({
|
|
5194
|
-
className,
|
|
5195
|
-
...props
|
|
5196
|
-
}) {
|
|
5197
|
-
return /* @__PURE__ */ jsx(
|
|
5198
|
-
Progress$1.Track,
|
|
5199
|
-
{
|
|
5200
|
-
className: cn("a63-Progress-track", className),
|
|
5201
|
-
"data-slot": "progress-track",
|
|
5202
|
-
...props
|
|
5203
|
-
}
|
|
5204
|
-
);
|
|
5205
|
-
}
|
|
5206
|
-
function ProgressIndicator({
|
|
5207
|
-
className,
|
|
5208
|
-
...props
|
|
5209
|
-
}) {
|
|
5210
|
-
return /* @__PURE__ */ jsx(
|
|
5211
|
-
Progress$1.Indicator,
|
|
5212
|
-
{
|
|
5213
|
-
className: cn("a63-Progress-indicator", className),
|
|
5214
|
-
"data-slot": "progress-indicator",
|
|
5215
|
-
...props
|
|
5216
|
-
}
|
|
5217
|
-
);
|
|
5218
|
-
}
|
|
5219
|
-
function ProgressValue({
|
|
5220
|
-
className,
|
|
5221
|
-
...props
|
|
5222
|
-
}) {
|
|
5223
|
-
return /* @__PURE__ */ jsx(
|
|
5224
|
-
Progress$1.Value,
|
|
5225
|
-
{
|
|
5226
|
-
className: cn("a63-Progress-value", className),
|
|
5227
|
-
"data-slot": "progress-value",
|
|
5228
|
-
...props
|
|
5229
|
-
}
|
|
5230
|
-
);
|
|
5231
|
-
}
|
|
5232
3227
|
var BOTH_GRADIENT = "linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)";
|
|
5233
3228
|
function buildMask(position, from, to) {
|
|
5234
3229
|
if (position === "both") return BOTH_GRADIENT;
|
|
@@ -5328,262 +3323,37 @@ function ResizableHandle({
|
|
|
5328
3323
|
"aria-label": ariaLabel = "Resize panels",
|
|
5329
3324
|
withHandle,
|
|
5330
3325
|
className,
|
|
5331
|
-
...props
|
|
5332
|
-
}) {
|
|
5333
|
-
const orientation = useContext(ResizableOrientationContext);
|
|
5334
|
-
return /* @__PURE__ */ jsx(
|
|
5335
|
-
ResizablePrimitive.Separator,
|
|
5336
|
-
{
|
|
5337
|
-
"aria-label": ariaLabel,
|
|
5338
|
-
className: cn("a63-Resizable-handle", className),
|
|
5339
|
-
"data-panel-group-direction": orientation,
|
|
5340
|
-
"data-slot": "resizable-handle",
|
|
5341
|
-
...props,
|
|
5342
|
-
children: withHandle && /* @__PURE__ */ jsx("div", { className: "a63-Resizable-handle-grip", "data-slot": "resizable-handle-grip", children: /* @__PURE__ */ jsxs(
|
|
5343
|
-
"svg",
|
|
5344
|
-
{
|
|
5345
|
-
"aria-hidden": "true",
|
|
5346
|
-
className: "a63-Resizable-handle-grip-icon",
|
|
5347
|
-
fill: "currentColor",
|
|
5348
|
-
height: "10",
|
|
5349
|
-
viewBox: "0 0 16 16",
|
|
5350
|
-
width: "10",
|
|
5351
|
-
children: [
|
|
5352
|
-
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "3.5", r: "1.1" }),
|
|
5353
|
-
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "1.1" }),
|
|
5354
|
-
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "12.5", r: "1.1" })
|
|
5355
|
-
]
|
|
5356
|
-
}
|
|
5357
|
-
) })
|
|
5358
|
-
}
|
|
5359
|
-
);
|
|
5360
|
-
}
|
|
5361
|
-
var scrollableListControlClassNames = {
|
|
5362
|
-
button: "a63-ScrollableList-controlButton",
|
|
5363
|
-
icon: "a63-ScrollableList-controlIcon"
|
|
5364
|
-
};
|
|
5365
|
-
function ScrollableList({
|
|
5366
|
-
children,
|
|
5367
|
-
className,
|
|
5368
|
-
contentPad,
|
|
5369
|
-
controlInset,
|
|
5370
|
-
showChevrons = true,
|
|
5371
|
-
disabled = false,
|
|
5372
|
-
draggable = false,
|
|
5373
|
-
mask = true,
|
|
5374
|
-
wrapLayoutBreakpoint
|
|
5375
|
-
}) {
|
|
5376
|
-
const [canScrollLeft, setCanScrollLeft] = useState(false);
|
|
5377
|
-
const [canScrollRight, setCanScrollRight] = useState(false);
|
|
5378
|
-
const [useWrapLayout, setUseWrapLayout] = useState(false);
|
|
5379
|
-
const containerRef = useRef(null);
|
|
5380
|
-
const scrollAreaRef = useRef(null);
|
|
5381
|
-
const getViewport = useCallback(() => {
|
|
5382
|
-
return scrollAreaRef.current?.querySelector('[data-slot="scroll-area-viewport"]');
|
|
5383
|
-
}, []);
|
|
5384
|
-
const checkScrollPosition = useCallback(() => {
|
|
5385
|
-
const viewport = getViewport();
|
|
5386
|
-
if (!viewport) return;
|
|
5387
|
-
const { scrollLeft, scrollWidth, clientWidth } = viewport;
|
|
5388
|
-
setCanScrollLeft(scrollLeft > 1);
|
|
5389
|
-
setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 1);
|
|
5390
|
-
}, [getViewport]);
|
|
5391
|
-
const scrollContent = useCallback(
|
|
5392
|
-
(direction) => {
|
|
5393
|
-
const viewport = getViewport();
|
|
5394
|
-
if (!viewport) return;
|
|
5395
|
-
const scrollAmount = viewport.clientWidth * 0.8;
|
|
5396
|
-
const targetScroll = viewport.scrollLeft + (direction === "right" ? scrollAmount : -scrollAmount);
|
|
5397
|
-
viewport.scrollTo({
|
|
5398
|
-
left: targetScroll,
|
|
5399
|
-
behavior: window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
|
|
5400
|
-
});
|
|
5401
|
-
},
|
|
5402
|
-
[getViewport]
|
|
5403
|
-
);
|
|
5404
|
-
useEffect(() => {
|
|
5405
|
-
if (!wrapLayoutBreakpoint) return;
|
|
5406
|
-
const container = containerRef.current;
|
|
5407
|
-
if (!container) return;
|
|
5408
|
-
const checkWidth = () => {
|
|
5409
|
-
const width = container.getBoundingClientRect().width;
|
|
5410
|
-
setUseWrapLayout(width >= wrapLayoutBreakpoint);
|
|
5411
|
-
};
|
|
5412
|
-
checkWidth();
|
|
5413
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
5414
|
-
requestAnimationFrame(checkWidth);
|
|
5415
|
-
});
|
|
5416
|
-
resizeObserver.observe(container);
|
|
5417
|
-
return () => resizeObserver.disconnect();
|
|
5418
|
-
}, [wrapLayoutBreakpoint]);
|
|
5419
|
-
useEffect(() => {
|
|
5420
|
-
if (useWrapLayout) return;
|
|
5421
|
-
const immediateCheck = window.setTimeout(checkScrollPosition, 10);
|
|
5422
|
-
const delayedCheck = window.setTimeout(checkScrollPosition, 100);
|
|
5423
|
-
return () => {
|
|
5424
|
-
clearTimeout(immediateCheck);
|
|
5425
|
-
clearTimeout(delayedCheck);
|
|
5426
|
-
};
|
|
5427
|
-
}, [checkScrollPosition, useWrapLayout, children]);
|
|
5428
|
-
useEffect(() => {
|
|
5429
|
-
if (!draggable || disabled || useWrapLayout) {
|
|
5430
|
-
return;
|
|
5431
|
-
}
|
|
5432
|
-
const viewport = getViewport();
|
|
5433
|
-
if (!viewport) {
|
|
5434
|
-
return;
|
|
5435
|
-
}
|
|
5436
|
-
let isDown = false;
|
|
5437
|
-
let startX = 0;
|
|
5438
|
-
let startScroll = 0;
|
|
5439
|
-
let moved = false;
|
|
5440
|
-
const onPointerDown = (event) => {
|
|
5441
|
-
isDown = true;
|
|
5442
|
-
moved = false;
|
|
5443
|
-
startX = event.clientX;
|
|
5444
|
-
startScroll = viewport.scrollLeft;
|
|
5445
|
-
viewport.setPointerCapture?.(event.pointerId);
|
|
5446
|
-
viewport.dataset.dragging = "true";
|
|
5447
|
-
};
|
|
5448
|
-
const onPointerMove = (event) => {
|
|
5449
|
-
if (!isDown) {
|
|
5450
|
-
return;
|
|
5451
|
-
}
|
|
5452
|
-
const dx = event.clientX - startX;
|
|
5453
|
-
if (Math.abs(dx) > 3) {
|
|
5454
|
-
moved = true;
|
|
5455
|
-
}
|
|
5456
|
-
viewport.scrollLeft = startScroll - dx;
|
|
5457
|
-
};
|
|
5458
|
-
const endDrag = (event) => {
|
|
5459
|
-
if (!isDown) {
|
|
5460
|
-
return;
|
|
5461
|
-
}
|
|
5462
|
-
isDown = false;
|
|
5463
|
-
viewport.dataset.dragging = "";
|
|
5464
|
-
viewport.releasePointerCapture?.(event.pointerId);
|
|
5465
|
-
};
|
|
5466
|
-
const onClickCapture = (event) => {
|
|
5467
|
-
if (moved) {
|
|
5468
|
-
event.stopPropagation();
|
|
5469
|
-
event.preventDefault();
|
|
5470
|
-
moved = false;
|
|
5471
|
-
}
|
|
5472
|
-
};
|
|
5473
|
-
viewport.addEventListener("pointerdown", onPointerDown);
|
|
5474
|
-
viewport.addEventListener("pointermove", onPointerMove);
|
|
5475
|
-
viewport.addEventListener("pointerup", endDrag);
|
|
5476
|
-
viewport.addEventListener("pointercancel", endDrag);
|
|
5477
|
-
viewport.addEventListener("click", onClickCapture, true);
|
|
5478
|
-
return () => {
|
|
5479
|
-
viewport.removeEventListener("pointerdown", onPointerDown);
|
|
5480
|
-
viewport.removeEventListener("pointermove", onPointerMove);
|
|
5481
|
-
viewport.removeEventListener("pointerup", endDrag);
|
|
5482
|
-
viewport.removeEventListener("pointercancel", endDrag);
|
|
5483
|
-
viewport.removeEventListener("click", onClickCapture, true);
|
|
5484
|
-
};
|
|
5485
|
-
}, [disabled, draggable, useWrapLayout, getViewport]);
|
|
5486
|
-
useEffect(() => {
|
|
5487
|
-
if (useWrapLayout) return;
|
|
5488
|
-
const viewport = getViewport();
|
|
5489
|
-
if (!viewport) return;
|
|
5490
|
-
checkScrollPosition();
|
|
5491
|
-
viewport.addEventListener("scroll", checkScrollPosition);
|
|
5492
|
-
const resizeObserver = new ResizeObserver(checkScrollPosition);
|
|
5493
|
-
resizeObserver.observe(viewport);
|
|
5494
|
-
const contentContainer = viewport.querySelector(":scope > *");
|
|
5495
|
-
if (contentContainer) {
|
|
5496
|
-
resizeObserver.observe(contentContainer);
|
|
5497
|
-
}
|
|
5498
|
-
return () => {
|
|
5499
|
-
viewport.removeEventListener("scroll", checkScrollPosition);
|
|
5500
|
-
resizeObserver.disconnect();
|
|
5501
|
-
};
|
|
5502
|
-
}, [checkScrollPosition, getViewport, useWrapLayout]);
|
|
5503
|
-
const bleedStyle = contentPad || controlInset ? {
|
|
5504
|
-
...contentPad ? { "--scrollable-list-content-pad": contentPad } : null,
|
|
5505
|
-
...controlInset ? { "--scrollable-list-control-inset": controlInset } : null
|
|
5506
|
-
} : void 0;
|
|
5507
|
-
if (wrapLayoutBreakpoint && useWrapLayout) {
|
|
5508
|
-
return /* @__PURE__ */ jsx(
|
|
5509
|
-
"div",
|
|
5510
|
-
{
|
|
5511
|
-
className: cn("a63-ScrollableList", className),
|
|
5512
|
-
"data-disabled": disabled || void 0,
|
|
5513
|
-
"data-slot": "scrollable-list",
|
|
5514
|
-
ref: containerRef,
|
|
5515
|
-
style: bleedStyle,
|
|
5516
|
-
children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
|
|
5517
|
-
}
|
|
5518
|
-
);
|
|
5519
|
-
}
|
|
5520
|
-
return /* @__PURE__ */ jsx(
|
|
5521
|
-
"div",
|
|
5522
|
-
{
|
|
5523
|
-
className: cn("a63-ScrollableList", className),
|
|
5524
|
-
"data-disabled": disabled || void 0,
|
|
5525
|
-
"data-draggable": draggable || void 0,
|
|
5526
|
-
"data-slot": "scrollable-list",
|
|
5527
|
-
ref: containerRef,
|
|
5528
|
-
style: bleedStyle,
|
|
5529
|
-
children: /* @__PURE__ */ jsxs("div", { className: "a63-ScrollableList-frame", "data-slot": "scrollable-list-frame", children: [
|
|
5530
|
-
/* @__PURE__ */ jsx(
|
|
5531
|
-
ScrollArea,
|
|
5532
|
-
{
|
|
5533
|
-
className: "[&_[data-slot=scroll-area-scrollbar][data-orientation=vertical]]:hidden",
|
|
5534
|
-
ref: scrollAreaRef,
|
|
5535
|
-
scrollFade: mask,
|
|
5536
|
-
viewportClassName: "overflow-y-hidden",
|
|
5537
|
-
children: /* @__PURE__ */ jsx("div", { className: "a63-ScrollableList-content", "data-slot": "scrollable-list-content", children })
|
|
5538
|
-
}
|
|
5539
|
-
),
|
|
5540
|
-
showChevrons && canScrollLeft && !disabled && /* @__PURE__ */ jsx(
|
|
5541
|
-
"div",
|
|
5542
|
-
{
|
|
5543
|
-
className: "a63-ScrollableList-control",
|
|
5544
|
-
"data-side": "left",
|
|
5545
|
-
"data-slot": "scrollable-list-control",
|
|
5546
|
-
"data-visible": true,
|
|
5547
|
-
children: /* @__PURE__ */ jsx(
|
|
5548
|
-
Button,
|
|
5549
|
-
{
|
|
5550
|
-
"aria-label": "Scroll left",
|
|
5551
|
-
className: scrollableListControlClassNames.button,
|
|
5552
|
-
onClick: () => scrollContent("left"),
|
|
5553
|
-
size: "icon-lg",
|
|
5554
|
-
type: "button",
|
|
5555
|
-
variant: "secondary",
|
|
5556
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: scrollableListControlClassNames.icon })
|
|
5557
|
-
}
|
|
5558
|
-
)
|
|
5559
|
-
}
|
|
5560
|
-
),
|
|
5561
|
-
showChevrons && canScrollRight && !disabled && /* @__PURE__ */ jsx(
|
|
5562
|
-
"div",
|
|
5563
|
-
{
|
|
5564
|
-
className: "a63-ScrollableList-control",
|
|
5565
|
-
"data-side": "right",
|
|
5566
|
-
"data-slot": "scrollable-list-control",
|
|
5567
|
-
"data-visible": true,
|
|
5568
|
-
children: /* @__PURE__ */ jsx(
|
|
5569
|
-
Button,
|
|
5570
|
-
{
|
|
5571
|
-
"aria-label": "Scroll right",
|
|
5572
|
-
className: scrollableListControlClassNames.button,
|
|
5573
|
-
onClick: () => scrollContent("right"),
|
|
5574
|
-
size: "icon-lg",
|
|
5575
|
-
type: "button",
|
|
5576
|
-
variant: "secondary",
|
|
5577
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: scrollableListControlClassNames.icon })
|
|
5578
|
-
}
|
|
5579
|
-
)
|
|
5580
|
-
}
|
|
5581
|
-
)
|
|
5582
|
-
] })
|
|
3326
|
+
...props
|
|
3327
|
+
}) {
|
|
3328
|
+
const orientation = useContext(ResizableOrientationContext);
|
|
3329
|
+
return /* @__PURE__ */ jsx(
|
|
3330
|
+
ResizablePrimitive.Separator,
|
|
3331
|
+
{
|
|
3332
|
+
"aria-label": ariaLabel,
|
|
3333
|
+
className: cn("a63-Resizable-handle", className),
|
|
3334
|
+
"data-panel-group-direction": orientation,
|
|
3335
|
+
"data-slot": "resizable-handle",
|
|
3336
|
+
...props,
|
|
3337
|
+
children: withHandle && /* @__PURE__ */ jsx("div", { className: "a63-Resizable-handle-grip", "data-slot": "resizable-handle-grip", children: /* @__PURE__ */ jsxs(
|
|
3338
|
+
"svg",
|
|
3339
|
+
{
|
|
3340
|
+
"aria-hidden": "true",
|
|
3341
|
+
className: "a63-Resizable-handle-grip-icon",
|
|
3342
|
+
fill: "currentColor",
|
|
3343
|
+
height: "10",
|
|
3344
|
+
viewBox: "0 0 16 16",
|
|
3345
|
+
width: "10",
|
|
3346
|
+
children: [
|
|
3347
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "3.5", r: "1.1" }),
|
|
3348
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "1.1" }),
|
|
3349
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "12.5", r: "1.1" })
|
|
3350
|
+
]
|
|
3351
|
+
}
|
|
3352
|
+
) })
|
|
5583
3353
|
}
|
|
5584
3354
|
);
|
|
5585
3355
|
}
|
|
5586
|
-
function
|
|
3356
|
+
function SearchIcon() {
|
|
5587
3357
|
return /* @__PURE__ */ jsxs("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: [
|
|
5588
3358
|
/* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.25", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
5589
3359
|
/* @__PURE__ */ jsx("path", { d: "m10.25 10.25 3 3", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5" })
|
|
@@ -5624,7 +3394,7 @@ function SearchField({
|
|
|
5624
3394
|
"data-slot": "search-field",
|
|
5625
3395
|
disabled,
|
|
5626
3396
|
children: [
|
|
5627
|
-
/* @__PURE__ */ jsx(InputGroupAddon, { "data-slot": "search-field-icon", children: /* @__PURE__ */ jsx(
|
|
3397
|
+
/* @__PURE__ */ jsx(InputGroupAddon, { "data-slot": "search-field-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
|
|
5628
3398
|
/* @__PURE__ */ jsx(
|
|
5629
3399
|
InputGroupInput,
|
|
5630
3400
|
{
|
|
@@ -5656,343 +3426,6 @@ function SearchField({
|
|
|
5656
3426
|
}
|
|
5657
3427
|
);
|
|
5658
3428
|
}
|
|
5659
|
-
var Select = Select$1.Root;
|
|
5660
|
-
var selectTriggerDefaultClassName = "a63-Select-trigger";
|
|
5661
|
-
function SelectTrigger({
|
|
5662
|
-
children,
|
|
5663
|
-
className,
|
|
5664
|
-
size = selectContract.defaultSize,
|
|
5665
|
-
...props
|
|
5666
|
-
}) {
|
|
5667
|
-
return /* @__PURE__ */ jsxs(
|
|
5668
|
-
Select$1.Trigger,
|
|
5669
|
-
{
|
|
5670
|
-
className: cn(selectTriggerDefaultClassName, className),
|
|
5671
|
-
"data-size": size,
|
|
5672
|
-
"data-slot": "select-trigger",
|
|
5673
|
-
...props,
|
|
5674
|
-
children: [
|
|
5675
|
-
children,
|
|
5676
|
-
/* @__PURE__ */ jsx(Select$1.Icon, { className: "a63-Select-icon", "data-slot": "select-icon", children: /* @__PURE__ */ jsx(ChevronsUpDown, { "aria-hidden": "true" }) })
|
|
5677
|
-
]
|
|
5678
|
-
}
|
|
5679
|
-
);
|
|
5680
|
-
}
|
|
5681
|
-
function SelectValue({
|
|
5682
|
-
className,
|
|
5683
|
-
...props
|
|
5684
|
-
}) {
|
|
5685
|
-
return /* @__PURE__ */ jsx(
|
|
5686
|
-
Select$1.Value,
|
|
5687
|
-
{
|
|
5688
|
-
className: cn("a63-Select-value", className),
|
|
5689
|
-
"data-slot": "select-value",
|
|
5690
|
-
...props
|
|
5691
|
-
}
|
|
5692
|
-
);
|
|
5693
|
-
}
|
|
5694
|
-
function SelectPopup({
|
|
5695
|
-
children,
|
|
5696
|
-
className,
|
|
5697
|
-
listClassName,
|
|
5698
|
-
portalContainer,
|
|
5699
|
-
sideOffset = 4,
|
|
5700
|
-
alignItemWithTrigger = true,
|
|
5701
|
-
...props
|
|
5702
|
-
}) {
|
|
5703
|
-
const contextPortalContainer = usePortalContainer();
|
|
5704
|
-
const container = portalContainer ?? contextPortalContainer;
|
|
5705
|
-
return /* @__PURE__ */ jsx(Select$1.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
5706
|
-
Select$1.Positioner,
|
|
5707
|
-
{
|
|
5708
|
-
alignItemWithTrigger,
|
|
5709
|
-
className: "a63-Select-positioner",
|
|
5710
|
-
"data-slot": "select-positioner",
|
|
5711
|
-
sideOffset,
|
|
5712
|
-
children: /* @__PURE__ */ jsxs(
|
|
5713
|
-
Select$1.Popup,
|
|
5714
|
-
{
|
|
5715
|
-
className: cn("a63-Select-popup", className),
|
|
5716
|
-
"data-slot": "select-popup",
|
|
5717
|
-
...props,
|
|
5718
|
-
children: [
|
|
5719
|
-
/* @__PURE__ */ jsx(
|
|
5720
|
-
Select$1.ScrollUpArrow,
|
|
5721
|
-
{
|
|
5722
|
-
className: "a63-Select-scroll-arrow",
|
|
5723
|
-
"data-slot": "select-scroll-up-arrow",
|
|
5724
|
-
children: /* @__PURE__ */ jsx(ChevronUp, { "aria-hidden": "true" })
|
|
5725
|
-
}
|
|
5726
|
-
),
|
|
5727
|
-
/* @__PURE__ */ jsx("div", { className: "a63-Select-surface a63-Menu-popup", "data-slot": "select-surface", children: /* @__PURE__ */ jsx(
|
|
5728
|
-
Select$1.List,
|
|
5729
|
-
{
|
|
5730
|
-
className: cn("a63-Select-list", listClassName),
|
|
5731
|
-
"data-slot": "select-list",
|
|
5732
|
-
children
|
|
5733
|
-
}
|
|
5734
|
-
) }),
|
|
5735
|
-
/* @__PURE__ */ jsx(
|
|
5736
|
-
Select$1.ScrollDownArrow,
|
|
5737
|
-
{
|
|
5738
|
-
className: "a63-Select-scroll-arrow",
|
|
5739
|
-
"data-slot": "select-scroll-down-arrow",
|
|
5740
|
-
children: /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true" })
|
|
5741
|
-
}
|
|
5742
|
-
)
|
|
5743
|
-
]
|
|
5744
|
-
}
|
|
5745
|
-
)
|
|
5746
|
-
}
|
|
5747
|
-
) });
|
|
5748
|
-
}
|
|
5749
|
-
function SelectItem({
|
|
5750
|
-
children,
|
|
5751
|
-
className,
|
|
5752
|
-
...props
|
|
5753
|
-
}) {
|
|
5754
|
-
return /* @__PURE__ */ jsxs(
|
|
5755
|
-
Select$1.Item,
|
|
5756
|
-
{
|
|
5757
|
-
className: cn("a63-Menu-item", "a63-Select-item", className),
|
|
5758
|
-
"data-slot": "select-item",
|
|
5759
|
-
...props,
|
|
5760
|
-
children: [
|
|
5761
|
-
/* @__PURE__ */ jsx(
|
|
5762
|
-
Select$1.ItemIndicator,
|
|
5763
|
-
{
|
|
5764
|
-
className: "a63-Select-item-indicator",
|
|
5765
|
-
"data-slot": "select-item-indicator",
|
|
5766
|
-
children: /* @__PURE__ */ jsx(Check, { "aria-hidden": "true" })
|
|
5767
|
-
}
|
|
5768
|
-
),
|
|
5769
|
-
/* @__PURE__ */ jsx(Select$1.ItemText, { className: "a63-Select-item-text", "data-slot": "select-item-text", children })
|
|
5770
|
-
]
|
|
5771
|
-
}
|
|
5772
|
-
);
|
|
5773
|
-
}
|
|
5774
|
-
function SelectSeparator({
|
|
5775
|
-
className,
|
|
5776
|
-
...props
|
|
5777
|
-
}) {
|
|
5778
|
-
return /* @__PURE__ */ jsx(
|
|
5779
|
-
Select$1.Separator,
|
|
5780
|
-
{
|
|
5781
|
-
className: cn("a63-Menu-separator", "a63-Select-separator", className),
|
|
5782
|
-
"data-slot": "select-separator",
|
|
5783
|
-
...props
|
|
5784
|
-
}
|
|
5785
|
-
);
|
|
5786
|
-
}
|
|
5787
|
-
function SelectGroup(props) {
|
|
5788
|
-
return /* @__PURE__ */ jsx(Select$1.Group, { "data-slot": "select-group", ...props });
|
|
5789
|
-
}
|
|
5790
|
-
function SelectGroupLabel({
|
|
5791
|
-
className,
|
|
5792
|
-
...props
|
|
5793
|
-
}) {
|
|
5794
|
-
return /* @__PURE__ */ jsx(
|
|
5795
|
-
Select$1.GroupLabel,
|
|
5796
|
-
{
|
|
5797
|
-
className: cn("a63-Menu-label", "a63-Select-group-label", className),
|
|
5798
|
-
"data-slot": "select-group-label",
|
|
5799
|
-
...props
|
|
5800
|
-
}
|
|
5801
|
-
);
|
|
5802
|
-
}
|
|
5803
|
-
var SelectContent = SelectPopup;
|
|
5804
|
-
var openSheetCount = 0;
|
|
5805
|
-
function setSheetBodyState(open) {
|
|
5806
|
-
openSheetCount = Math.max(0, openSheetCount + (open ? 1 : -1));
|
|
5807
|
-
document.body.toggleAttribute("data-sheet-open", openSheetCount > 0);
|
|
5808
|
-
}
|
|
5809
|
-
function Sheet({ onOpenChange, open, defaultOpen, ...props }) {
|
|
5810
|
-
const isControlled = open !== void 0;
|
|
5811
|
-
const bodyStateRef = React3.useRef(false);
|
|
5812
|
-
const syncBodyState = React3.useCallback((nextOpen) => {
|
|
5813
|
-
if (bodyStateRef.current === nextOpen) return;
|
|
5814
|
-
bodyStateRef.current = nextOpen;
|
|
5815
|
-
setSheetBodyState(nextOpen);
|
|
5816
|
-
}, []);
|
|
5817
|
-
React3.useEffect(() => {
|
|
5818
|
-
if (isControlled) syncBodyState(open);
|
|
5819
|
-
}, [isControlled, open, syncBodyState]);
|
|
5820
|
-
React3.useEffect(() => {
|
|
5821
|
-
if (!isControlled && defaultOpen) syncBodyState(true);
|
|
5822
|
-
return () => syncBodyState(false);
|
|
5823
|
-
}, [defaultOpen, isControlled, syncBodyState]);
|
|
5824
|
-
const handleOpenChange = (open2, eventDetails) => {
|
|
5825
|
-
if (!isControlled) syncBodyState(open2);
|
|
5826
|
-
onOpenChange?.(open2, eventDetails);
|
|
5827
|
-
};
|
|
5828
|
-
return /* @__PURE__ */ jsx(
|
|
5829
|
-
Dialog$1.Root,
|
|
5830
|
-
{
|
|
5831
|
-
"data-slot": "sheet",
|
|
5832
|
-
defaultOpen,
|
|
5833
|
-
onOpenChange: handleOpenChange,
|
|
5834
|
-
open,
|
|
5835
|
-
...props
|
|
5836
|
-
}
|
|
5837
|
-
);
|
|
5838
|
-
}
|
|
5839
|
-
function SheetPortal(props) {
|
|
5840
|
-
return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "sheet-portal", ...props });
|
|
5841
|
-
}
|
|
5842
|
-
function SheetTrigger({
|
|
5843
|
-
className,
|
|
5844
|
-
...props
|
|
5845
|
-
}) {
|
|
5846
|
-
return /* @__PURE__ */ jsx(Dialog$1.Trigger, { className, "data-slot": "sheet-trigger", ...props });
|
|
5847
|
-
}
|
|
5848
|
-
function SheetClose({
|
|
5849
|
-
className,
|
|
5850
|
-
...props
|
|
5851
|
-
}) {
|
|
5852
|
-
return /* @__PURE__ */ jsx(Dialog$1.Close, { className, "data-slot": "sheet-close", ...props });
|
|
5853
|
-
}
|
|
5854
|
-
function SheetBackdrop({
|
|
5855
|
-
className,
|
|
5856
|
-
...props
|
|
5857
|
-
}) {
|
|
5858
|
-
return /* @__PURE__ */ jsx(
|
|
5859
|
-
Dialog$1.Backdrop,
|
|
5860
|
-
{
|
|
5861
|
-
className: cn("a63-Sheet-backdrop", className),
|
|
5862
|
-
"data-slot": "sheet-backdrop",
|
|
5863
|
-
...props
|
|
5864
|
-
}
|
|
5865
|
-
);
|
|
5866
|
-
}
|
|
5867
|
-
function SheetViewport({
|
|
5868
|
-
className,
|
|
5869
|
-
side = sheetContract.defaultSide,
|
|
5870
|
-
variant = sheetContract.defaultVariant,
|
|
5871
|
-
...props
|
|
5872
|
-
}) {
|
|
5873
|
-
return /* @__PURE__ */ jsx(
|
|
5874
|
-
Dialog$1.Viewport,
|
|
5875
|
-
{
|
|
5876
|
-
className: cn("a63-Sheet-viewport", className),
|
|
5877
|
-
"data-side": side,
|
|
5878
|
-
"data-slot": "sheet-viewport",
|
|
5879
|
-
"data-variant": variant,
|
|
5880
|
-
...props
|
|
5881
|
-
}
|
|
5882
|
-
);
|
|
5883
|
-
}
|
|
5884
|
-
function SheetPopup({
|
|
5885
|
-
className,
|
|
5886
|
-
children,
|
|
5887
|
-
showCloseButton = true,
|
|
5888
|
-
side = sheetContract.defaultSide,
|
|
5889
|
-
variant = sheetContract.defaultVariant,
|
|
5890
|
-
closeProps,
|
|
5891
|
-
portalProps,
|
|
5892
|
-
...props
|
|
5893
|
-
}) {
|
|
5894
|
-
return /* @__PURE__ */ jsxs(SheetPortal, { ...portalProps, children: [
|
|
5895
|
-
/* @__PURE__ */ jsx(SheetBackdrop, {}),
|
|
5896
|
-
/* @__PURE__ */ jsx(SheetViewport, { side, variant, children: /* @__PURE__ */ jsxs(
|
|
5897
|
-
Dialog$1.Popup,
|
|
5898
|
-
{
|
|
5899
|
-
className: cn("a63-Sheet-popup", className),
|
|
5900
|
-
"data-side": side,
|
|
5901
|
-
"data-slot": "sheet-popup",
|
|
5902
|
-
"data-variant": variant,
|
|
5903
|
-
...props,
|
|
5904
|
-
children: [
|
|
5905
|
-
children,
|
|
5906
|
-
showCloseButton && /* @__PURE__ */ jsx(
|
|
5907
|
-
Dialog$1.Close,
|
|
5908
|
-
{
|
|
5909
|
-
"aria-label": "Close",
|
|
5910
|
-
className: "a63-Sheet-close-button",
|
|
5911
|
-
"data-slot": "sheet-close-button",
|
|
5912
|
-
render: /* @__PURE__ */ jsx(Button, { size: "icon", variant: "ghost" }),
|
|
5913
|
-
...closeProps,
|
|
5914
|
-
children: /* @__PURE__ */ jsx(X, { "aria-hidden": "true" })
|
|
5915
|
-
}
|
|
5916
|
-
)
|
|
5917
|
-
]
|
|
5918
|
-
}
|
|
5919
|
-
) })
|
|
5920
|
-
] });
|
|
5921
|
-
}
|
|
5922
|
-
function SheetHeader({
|
|
5923
|
-
className,
|
|
5924
|
-
render,
|
|
5925
|
-
...props
|
|
5926
|
-
}) {
|
|
5927
|
-
const defaultProps = {
|
|
5928
|
-
className: cn("a63-Sheet-header", className),
|
|
5929
|
-
"data-slot": "sheet-header"
|
|
5930
|
-
};
|
|
5931
|
-
return useRender({
|
|
5932
|
-
defaultTagName: "div",
|
|
5933
|
-
props: mergeProps(defaultProps, props),
|
|
5934
|
-
render
|
|
5935
|
-
});
|
|
5936
|
-
}
|
|
5937
|
-
function SheetFooter({
|
|
5938
|
-
className,
|
|
5939
|
-
variant = sheetContract.defaultFooterVariant,
|
|
5940
|
-
render,
|
|
5941
|
-
...props
|
|
5942
|
-
}) {
|
|
5943
|
-
const defaultProps = {
|
|
5944
|
-
className: cn("a63-Sheet-footer", className),
|
|
5945
|
-
"data-slot": "sheet-footer",
|
|
5946
|
-
"data-variant": variant
|
|
5947
|
-
};
|
|
5948
|
-
return useRender({
|
|
5949
|
-
defaultTagName: "div",
|
|
5950
|
-
props: mergeProps(defaultProps, props),
|
|
5951
|
-
render
|
|
5952
|
-
});
|
|
5953
|
-
}
|
|
5954
|
-
function SheetTitle({
|
|
5955
|
-
className,
|
|
5956
|
-
...props
|
|
5957
|
-
}) {
|
|
5958
|
-
return /* @__PURE__ */ jsx(
|
|
5959
|
-
Dialog$1.Title,
|
|
5960
|
-
{
|
|
5961
|
-
className: cn("a63-Sheet-title", className),
|
|
5962
|
-
"data-slot": "sheet-title",
|
|
5963
|
-
...props
|
|
5964
|
-
}
|
|
5965
|
-
);
|
|
5966
|
-
}
|
|
5967
|
-
function SheetDescription({
|
|
5968
|
-
className,
|
|
5969
|
-
...props
|
|
5970
|
-
}) {
|
|
5971
|
-
return /* @__PURE__ */ jsx(
|
|
5972
|
-
Dialog$1.Description,
|
|
5973
|
-
{
|
|
5974
|
-
className: cn("a63-Sheet-description", className),
|
|
5975
|
-
"data-slot": "sheet-description",
|
|
5976
|
-
...props
|
|
5977
|
-
}
|
|
5978
|
-
);
|
|
5979
|
-
}
|
|
5980
|
-
function SheetPanel({
|
|
5981
|
-
className,
|
|
5982
|
-
scrollFade = true,
|
|
5983
|
-
render,
|
|
5984
|
-
...props
|
|
5985
|
-
}) {
|
|
5986
|
-
const defaultProps = {
|
|
5987
|
-
className: cn("a63-Sheet-panel", className),
|
|
5988
|
-
"data-slot": "sheet-panel"
|
|
5989
|
-
};
|
|
5990
|
-
return /* @__PURE__ */ jsx(ScrollArea, { scrollFade, children: useRender({
|
|
5991
|
-
defaultTagName: "div",
|
|
5992
|
-
props: mergeProps(defaultProps, props),
|
|
5993
|
-
render
|
|
5994
|
-
}) });
|
|
5995
|
-
}
|
|
5996
3429
|
function Skeleton({ className, ...props }) {
|
|
5997
3430
|
return /* @__PURE__ */ jsx(
|
|
5998
3431
|
"div",
|
|
@@ -6004,45 +3437,6 @@ function Skeleton({ className, ...props }) {
|
|
|
6004
3437
|
}
|
|
6005
3438
|
);
|
|
6006
3439
|
}
|
|
6007
|
-
var TooltipCreateHandle = Tooltip$1.createHandle;
|
|
6008
|
-
var TooltipProvider = Tooltip$1.Provider;
|
|
6009
|
-
var Tooltip = Tooltip$1.Root;
|
|
6010
|
-
function TooltipTrigger(props) {
|
|
6011
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
6012
|
-
}
|
|
6013
|
-
function TooltipPopup({
|
|
6014
|
-
align = "center",
|
|
6015
|
-
anchor,
|
|
6016
|
-
children,
|
|
6017
|
-
className,
|
|
6018
|
-
portalProps,
|
|
6019
|
-
side = "top",
|
|
6020
|
-
sideOffset = 4,
|
|
6021
|
-
...props
|
|
6022
|
-
}) {
|
|
6023
|
-
const contextPortalContainer = usePortalContainer();
|
|
6024
|
-
const container = portalProps?.container ?? contextPortalContainer;
|
|
6025
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { ...portalProps, container, children: /* @__PURE__ */ jsx(
|
|
6026
|
-
Tooltip$1.Positioner,
|
|
6027
|
-
{
|
|
6028
|
-
align,
|
|
6029
|
-
anchor,
|
|
6030
|
-
className: "a63-Tooltip-positioner",
|
|
6031
|
-
"data-slot": "tooltip-positioner",
|
|
6032
|
-
side,
|
|
6033
|
-
sideOffset,
|
|
6034
|
-
children: /* @__PURE__ */ jsx(
|
|
6035
|
-
Tooltip$1.Popup,
|
|
6036
|
-
{
|
|
6037
|
-
className: cn("a63-Tooltip-popup", className),
|
|
6038
|
-
"data-slot": "tooltip-popup",
|
|
6039
|
-
...props,
|
|
6040
|
-
children: /* @__PURE__ */ jsx(Tooltip$1.Viewport, { className: "a63-Tooltip-viewport", "data-slot": "tooltip-viewport", children })
|
|
6041
|
-
}
|
|
6042
|
-
)
|
|
6043
|
-
}
|
|
6044
|
-
) });
|
|
6045
|
-
}
|
|
6046
3440
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
6047
3441
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
6048
3442
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -7331,7 +4725,28 @@ function UIProvider({
|
|
|
7331
4725
|
function useUIEnvironment() {
|
|
7332
4726
|
return React3.useContext(UIEnvironmentContext);
|
|
7333
4727
|
}
|
|
4728
|
+
function withoutModeClasses(className) {
|
|
4729
|
+
return className?.split(/\s+/).filter((name) => name && name !== "light" && name !== "dark").join(" ");
|
|
4730
|
+
}
|
|
4731
|
+
function Atom63Theme({
|
|
4732
|
+
className,
|
|
4733
|
+
mode = "light",
|
|
4734
|
+
render,
|
|
4735
|
+
theme = defaultUIEnvironment.theme,
|
|
4736
|
+
...props
|
|
4737
|
+
}) {
|
|
4738
|
+
const themeProps = {
|
|
4739
|
+
className: cn("a63-Atom63Theme", withoutModeClasses(className), mode),
|
|
4740
|
+
"data-a63-mode": mode,
|
|
4741
|
+
"data-a63-theme": theme
|
|
4742
|
+
};
|
|
4743
|
+
return useRender({
|
|
4744
|
+
defaultTagName: "div",
|
|
4745
|
+
props: mergeProps(props, themeProps),
|
|
4746
|
+
render
|
|
4747
|
+
});
|
|
4748
|
+
}
|
|
7334
4749
|
|
|
7335
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription,
|
|
4750
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle, AnimatedCheck, Atom63Theme, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleIndicator, CollapsibleTrigger, ConnectedPanel, ConnectedPanelBody, ConnectedPanelContent, ConnectedPanelDescription, ConnectedPanelFooter, ConnectedPanelHeader, ConnectedPanelTitle, ConnectedPanelTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CopyButtonFeedback, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyErrorDetail, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, LoadMoreTrigger, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelSettingButton, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, PreviewCard, PreviewCardPopup, PreviewCardTrigger, ProgressiveBlur, Radio, RadioGroup, Radio as RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, SearchField, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavCollapsibleItem, SidebarNavGroup, SidebarNavLinkItem, SidebarNavSubLinkItem, SidebarNavSubList, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, Switch, TINT_MAX_LUMINANCE, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTab, TabsTab as TabsTrigger, TextTicker, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupSeparator, UIProvider, capColorForContrast, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, loadAndExtractColor, useCarousel, useExtractColor, useFormField, useSidebar, useUIEnvironment };
|
|
7336
4751
|
//# sourceMappingURL=index.js.map
|
|
7337
4752
|
//# sourceMappingURL=index.js.map
|