@atom63/ui-react 0.2.0-beta.1 → 0.2.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -50
  3. package/dist/{button-sktq-nvV.d.ts → button-CfLIHg-R.d.ts} +1 -1
  4. package/dist/calendar/index.d.ts +7 -0
  5. package/dist/calendar/index.js +116 -0
  6. package/dist/calendar/index.js.map +1 -0
  7. package/dist/chunk-GDUMA6FI.js +2678 -0
  8. package/dist/chunk-GDUMA6FI.js.map +1 -0
  9. package/dist/{chunk-STCXERLM.js → chunk-J77BAGTA.js} +8 -148
  10. package/dist/chunk-J77BAGTA.js.map +1 -0
  11. package/dist/chunk-NBHGMMQN.js +135 -0
  12. package/dist/chunk-NBHGMMQN.js.map +1 -0
  13. package/dist/{chunk-7VSPECOH.js → chunk-R67OZVA2.js} +4 -14
  14. package/dist/chunk-R67OZVA2.js.map +1 -0
  15. package/dist/chunk-UPPHQLZ2.js +18 -0
  16. package/dist/chunk-UPPHQLZ2.js.map +1 -0
  17. package/dist/{chunk-MXNO63TC.js → chunk-X5L5DEUZ.js} +597 -290
  18. package/dist/chunk-X5L5DEUZ.js.map +1 -0
  19. package/dist/{destination-link-C9NKeKLe.d.ts → destination-link-DMLeR-oF.d.ts} +1 -1
  20. package/dist/index-BDzW8upQ.d.ts +442 -0
  21. package/dist/index.d.ts +56 -458
  22. package/dist/index.js +344 -3038
  23. package/dist/index.js.map +1 -1
  24. package/dist/layout/index.d.ts +8 -6
  25. package/dist/layout/index.js +16 -14
  26. package/dist/layout/index.js.map +1 -1
  27. package/dist/media/index.d.ts +15 -4
  28. package/dist/media/index.js +213 -46
  29. package/dist/media/index.js.map +1 -1
  30. package/dist/media/media-lightbox/parts/index.d.ts +23 -15
  31. package/dist/media/media-lightbox/parts/index.js +3 -2
  32. package/dist/preview/index.d.ts +16 -0
  33. package/dist/preview/index.js +6 -0
  34. package/dist/preview/index.js.map +1 -0
  35. package/dist/theme/index.d.ts +2 -2
  36. package/dist/theme/index.js +82 -37
  37. package/dist/theme/index.js.map +1 -1
  38. package/package.json +36 -27
  39. package/src/components/accordion/accordion.css +2 -4
  40. package/src/components/alert-dialog/alert-dialog.css +1 -1
  41. package/src/components/autocomplete/autocomplete.css +3 -7
  42. package/src/components/badge/badge.css +48 -51
  43. package/src/components/breadcrumb/breadcrumb.css +1 -2
  44. package/src/components/button/button.css +8 -6
  45. package/src/components/button-group/button-group.css +17 -1
  46. package/src/components/calendar/calendar.css +6 -9
  47. package/src/components/card/card.css +2 -2
  48. package/src/components/carousel/carousel.css +4 -8
  49. package/src/components/checkbox/checkbox.css +1 -1
  50. package/src/components/command/command.css +8 -0
  51. package/src/components/connected-panel/connected-panel.css +3 -2
  52. package/src/components/dialog/dialog.css +1 -1
  53. package/src/components/drawer/drawer.css +1 -1
  54. package/src/components/empty/empty.css +2 -2
  55. package/src/components/feedback-state/feedback-state.css +1 -1
  56. package/src/components/field/field.css +4 -4
  57. package/src/components/form/form.css +2 -2
  58. package/src/components/input/input.css +2 -6
  59. package/src/components/input-otp/input-otp.css +4 -11
  60. package/src/components/item/item.css +3 -3
  61. package/src/components/menu/menu.css +5 -4
  62. package/src/components/menubar/menubar.css +4 -1
  63. package/src/components/navigation-menu/navigation-menu.css +5 -1
  64. package/src/components/panel-setting-button/panel-setting-button.css +1 -1
  65. package/src/components/radio/radio.css +1 -1
  66. package/src/components/resizable/resizable.css +1 -1
  67. package/src/components/scroll-area/scroll-area.css +1 -2
  68. package/src/components/scrollable-list/scrollable-list.css +4 -7
  69. package/src/components/segmented-control/segmented-control.css +8 -1
  70. package/src/components/select/select.css +2 -6
  71. package/src/components/sidebar/sidebar.css +12 -12
  72. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +8 -8
  73. package/src/components/slider/slider.css +6 -6
  74. package/src/components/switch/switch.css +3 -3
  75. package/src/components/table/table.css +7 -1
  76. package/src/components/tabs/tabs.css +15 -1
  77. package/src/components/textarea/textarea.css +2 -6
  78. package/src/components/toggle/toggle.css +5 -4
  79. package/src/components/toggle-group/toggle-group.css +4 -4
  80. package/src/media/media-lightbox/media-lightbox.css +15 -5
  81. package/src/styles/index.css +1 -0
  82. package/src/styles/utilities.css +2234 -0
  83. package/dist/chunk-7VSPECOH.js.map +0 -1
  84. package/dist/chunk-MXNO63TC.js.map +0 -1
  85. package/dist/chunk-STCXERLM.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,31 +1,24 @@
1
- import { Button, ScrollArea } from './chunk-STCXERLM.js';
2
- 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, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, ScrollArea, ScrollBar, SegmentedControl, Slider, SliderValue } from './chunk-STCXERLM.js';
3
- import { usePortalContainer } from './chunk-7VSPECOH.js';
4
- export { DestinationIndicator, DestinationLink, PortalContainerProvider, usePortalContainer } from './chunk-7VSPECOH.js';
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 { inputContract, getCrossRendererContract, loadMoreTriggerContract, tabsContract, toggleContract, toggleGroupContract, defaultUIEnvironment, alertContract, avatarContract, badgeContract, separatorContract, buttonGroupContract, cardContract, checkboxContract, connectedPanelContract, emptyContract, feedbackStateContract, textareaContract, itemContract, kbdContract, marqueeContract, paginationContract, radioContract, searchFieldContract, selectContract, sheetContract, sidebarContract, switchContract, toasterContract } from '@atom63/ui-foundation';
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, WifiOff, SearchX, Inbox, FileSearch, Clock, AlertTriangle, Minus, Check, ChevronLeft, ChevronsUpDown, ChevronUp, X, PanelLeft, TriangleAlertIcon, CircleCheckIcon, Loader2Icon, InfoIcon, OctagonXIcon } from 'lucide-react';
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';
22
- import { DayPicker } from 'react-day-picker';
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';
23
18
  import useEmblaCarousel from 'embla-carousel-react';
24
19
  import { useReducedMotion, AnimatePresence, motion } from 'motion/react';
25
20
  import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
26
21
  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
22
  import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
30
23
  import { Toaster as Toaster$1, toast } from 'sonner';
31
24
  export { toast } from 'sonner';
@@ -33,26 +26,20 @@ import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
33
26
  import { Menu } from '@base-ui/react/menu';
34
27
  import { FormProvider, Controller, useFormContext, useFormState } from 'react-hook-form';
35
28
  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
29
  import { OTPInput, OTPInputContext } from 'input-otp';
39
30
  import { Menubar as Menubar$1 } from '@base-ui/react/menubar';
40
- import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
41
31
  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
32
  import { Radio as Radio$1 } from '@base-ui/react/radio';
45
33
  import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
46
34
  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
35
  import { Switch as Switch$1 } from '@base-ui/react/switch';
51
36
  import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
52
37
  import { createPortal } from 'react-dom';
53
38
  import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
54
39
  import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
55
40
 
41
+ var AccordionRootContext = React3.createContext({ hiddenUntilFound: false, keepMounted: false });
42
+ var AccordionItemContext = React3.createContext(null);
56
43
  var toValueArray = (value) => {
57
44
  if (!value) {
58
45
  return void 0;
@@ -99,36 +86,47 @@ function Accordion({
99
86
  collapsible: _collapsible,
100
87
  defaultValue,
101
88
  onValueChange,
89
+ hiddenUntilFound = false,
90
+ keepMounted = true,
102
91
  type = "single",
103
92
  value,
104
93
  ...props
105
94
  }) {
106
95
  const multiple = type === "multiple";
107
- return /* @__PURE__ */ jsx(
96
+ const rootContext = React3.useMemo(
97
+ () => ({ hiddenUntilFound, keepMounted }),
98
+ [hiddenUntilFound, keepMounted]
99
+ );
100
+ return /* @__PURE__ */ jsx(AccordionRootContext.Provider, { value: rootContext, children: /* @__PURE__ */ jsx(
108
101
  Accordion$1.Root,
109
102
  {
110
103
  className: cn("a63-Accordion"),
111
104
  "data-slot": "accordion",
112
105
  defaultValue: toValueArray(defaultValue),
106
+ hiddenUntilFound,
107
+ keepMounted,
113
108
  multiple,
114
109
  onValueChange: onValueChange ? (nextValue) => onValueChange(multiple ? nextValue : nextValue.at(0) ?? "") : void 0,
115
110
  value: toValueArray(value),
116
111
  ...props
117
112
  }
118
- );
113
+ ) });
119
114
  }
120
115
  function AccordionItem({
121
116
  className,
122
117
  ...props
123
118
  }) {
124
- return /* @__PURE__ */ jsx(
119
+ const panelId = `${React3.useId()}-panel`;
120
+ const [panel, setPanel] = React3.useState(null);
121
+ const itemContext = React3.useMemo(() => ({ panel, panelId, setPanel }), [panel, panelId]);
122
+ return /* @__PURE__ */ jsx(AccordionItemContext.Provider, { value: itemContext, children: /* @__PURE__ */ jsx(
125
123
  Accordion$1.Item,
126
124
  {
127
125
  className: cn("a63-Accordion-item", className),
128
126
  "data-slot": "accordion-item",
129
127
  ...props
130
128
  }
131
- );
129
+ ) });
132
130
  }
133
131
  function AccordionTrigger({
134
132
  children,
@@ -136,9 +134,13 @@ function AccordionTrigger({
136
134
  icon = "chevron",
137
135
  ...props
138
136
  }) {
137
+ const root = React3.useContext(AccordionRootContext);
138
+ const item = React3.useContext(AccordionItemContext);
139
+ const panel = item && (item.panel ?? { id: item.panelId, persistent: root.hiddenUntilFound || root.keepMounted });
139
140
  return /* @__PURE__ */ jsx(Accordion$1.Header, { className: "a63-Accordion-header", children: /* @__PURE__ */ jsxs(
140
141
  Accordion$1.Trigger,
141
142
  {
143
+ ...panel?.persistent ? { "aria-controls": panel.id } : {},
142
144
  className: cn("a63-Accordion-trigger", className),
143
145
  "data-icon": icon,
144
146
  "data-slot": "accordion-trigger",
@@ -156,13 +158,30 @@ function AccordionTrigger({
156
158
  function AccordionContent({
157
159
  children,
158
160
  className,
161
+ hiddenUntilFound: hiddenUntilFoundProp,
162
+ id: idProp,
163
+ keepMounted: keepMountedProp,
159
164
  ...props
160
165
  }) {
166
+ const root = React3.useContext(AccordionRootContext);
167
+ const item = React3.useContext(AccordionItemContext);
168
+ const setPanel = item?.setPanel;
169
+ const id = idProp ?? item?.panelId;
170
+ const hiddenUntilFound = hiddenUntilFoundProp ?? root.hiddenUntilFound;
171
+ const persistent = hiddenUntilFound || (keepMountedProp ?? root.keepMounted);
172
+ React3.useLayoutEffect(() => {
173
+ if (!setPanel || !id) return void 0;
174
+ setPanel({ id, persistent });
175
+ return () => setPanel(null);
176
+ }, [id, persistent, setPanel]);
161
177
  return /* @__PURE__ */ jsx(
162
178
  Accordion$1.Panel,
163
179
  {
164
180
  className: "a63-Accordion-panel",
165
181
  "data-slot": "accordion-content",
182
+ hiddenUntilFound: hiddenUntilFoundProp,
183
+ id,
184
+ keepMounted: keepMountedProp,
166
185
  ...props,
167
186
  children: /* @__PURE__ */ jsx(
168
187
  "div",
@@ -219,175 +238,6 @@ function AlertAction({
219
238
  }) {
220
239
  return /* @__PURE__ */ jsx("div", { className: cn("a63-Alert-action", className), "data-slot": "alert-action", ...props });
221
240
  }
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
241
  var ANIMATED_CHECK_STYLE = `
392
242
  .a63-AnimatedCheck {
393
243
  display: inline-block;
@@ -449,912 +299,123 @@ function AnimatedCheck({
449
299
  }
450
300
  );
451
301
  }
452
- var Autocomplete = Autocomplete$1.Root;
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({
302
+ function Badge({
478
303
  className,
479
- clearProps,
480
- showClear = false,
481
- showTrigger = false,
482
- size,
483
- startAddon,
484
- triggerProps,
304
+ render,
305
+ variant = badgeContract.defaultVariant,
306
+ size = badgeContract.defaultSize,
485
307
  ...props
486
308
  }) {
487
- const sizeValue = size ?? "default";
488
- const dataSize = typeof sizeValue === "number" ? void 0 : sizeValue;
489
- const nativeSize = typeof sizeValue === "number" ? sizeValue : void 0;
490
- return /* @__PURE__ */ jsxs(
491
- Autocomplete$1.InputGroup,
492
- {
493
- className: "a63-Autocomplete-input-group",
494
- "data-size": dataSize,
495
- "data-slot": "autocomplete-input-group",
496
- children: [
497
- startAddon ? /* @__PURE__ */ jsx(
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
- );
309
+ const defaultProps = {
310
+ className: cn("a63-Badge", className),
311
+ "data-slot": "badge",
312
+ "data-variant": variant,
313
+ "data-size": size
314
+ };
315
+ return useRender({
316
+ defaultTagName: "span",
317
+ props: mergeProps(defaultProps, props),
318
+ render
319
+ });
535
320
  }
536
- function AutocompletePopup({
537
- align = "start",
538
- alignOffset,
539
- anchor,
540
- children,
321
+ function Breadcrumb({
541
322
  className,
542
- portalProps,
543
- side = "bottom",
544
- sideOffset = 4,
545
323
  ...props
546
324
  }) {
547
- return /* @__PURE__ */ jsx(Autocomplete$1.Portal, { ...portalProps, children: /* @__PURE__ */ jsx(
548
- Autocomplete$1.Positioner,
325
+ return /* @__PURE__ */ jsx(
326
+ "nav",
549
327
  {
550
- align,
551
- alignOffset,
552
- anchor,
553
- className: "a63-Autocomplete-positioner",
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
- ) })
328
+ "aria-label": "breadcrumb",
329
+ className: cn("a63-Breadcrumb", className),
330
+ "data-slot": "breadcrumb",
331
+ ...props
566
332
  }
567
- ) });
333
+ );
568
334
  }
569
- function AutocompleteItem({
570
- children,
335
+ function BreadcrumbList({
571
336
  className,
572
337
  ...props
573
338
  }) {
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
- );
339
+ return /* @__PURE__ */ jsx("ol", { className: cn("a63-Breadcrumb-list", className), "data-slot": "breadcrumb-list", ...props });
583
340
  }
584
- function AutocompleteSeparator({
341
+ function BreadcrumbItem({
585
342
  className,
586
343
  ...props
587
344
  }) {
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
- );
345
+ return /* @__PURE__ */ jsx("li", { className: cn("a63-Breadcrumb-item", className), "data-slot": "breadcrumb-item", ...props });
596
346
  }
597
- function AutocompleteGroup({
347
+ function BreadcrumbLink({
598
348
  className,
349
+ render,
350
+ asChild = false,
351
+ children,
599
352
  ...props
600
353
  }) {
601
- return /* @__PURE__ */ jsx(
602
- Autocomplete$1.Group,
603
- {
604
- className: cn("a63-Autocomplete-group", className),
605
- "data-slot": "autocomplete-group",
606
- ...props
354
+ const childrenAsRender = !render && asChild && React3.isValidElement(children);
355
+ const resolvedRender = render ?? (childrenAsRender ? children : void 0);
356
+ return useRender({
357
+ defaultTagName: "a",
358
+ props: mergeProps(
359
+ {
360
+ children: childrenAsRender ? void 0 : children,
361
+ className: cn("a63-Breadcrumb-link", className)
362
+ },
363
+ props,
364
+ { "data-slot": "breadcrumb-link" }
365
+ ),
366
+ render: resolvedRender,
367
+ state: {
368
+ slot: "breadcrumb-link"
607
369
  }
608
- );
370
+ });
609
371
  }
610
- function AutocompleteGroupLabel({
372
+ function BreadcrumbPage({
611
373
  className,
612
374
  ...props
613
375
  }) {
614
376
  return /* @__PURE__ */ jsx(
615
- Autocomplete$1.GroupLabel,
377
+ "span",
616
378
  {
617
- className: cn("a63-Menu-label", "a63-Autocomplete-group-label", className),
618
- "data-slot": "autocomplete-group-label",
379
+ "aria-current": "page",
380
+ className: cn("a63-Breadcrumb-page", className),
381
+ "data-slot": "breadcrumb-page",
619
382
  ...props
620
383
  }
621
384
  );
622
385
  }
623
- function AutocompleteEmpty({
386
+ function BreadcrumbSeparator({
387
+ children,
624
388
  className,
625
389
  ...props
626
390
  }) {
627
391
  return /* @__PURE__ */ jsx(
628
- Autocomplete$1.Empty,
392
+ "li",
629
393
  {
630
- className: cn("a63-Autocomplete-empty", className),
631
- "data-slot": "autocomplete-empty",
632
- ...props
394
+ "aria-hidden": "true",
395
+ className: cn("a63-Breadcrumb-separator", className),
396
+ "data-slot": "breadcrumb-separator",
397
+ role: "presentation",
398
+ ...props,
399
+ children: children ?? /* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": true, className: "a63-Breadcrumb-separator-glyph" })
633
400
  }
634
401
  );
635
402
  }
636
- function AutocompleteRow({
403
+ function BreadcrumbEllipsis({
637
404
  className,
638
405
  ...props
639
406
  }) {
640
- return /* @__PURE__ */ jsx(
641
- Autocomplete$1.Row,
407
+ return /* @__PURE__ */ jsxs(
408
+ "span",
642
409
  {
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({
884
- className,
885
- ...props
886
- }) {
887
- return /* @__PURE__ */ jsxs(
888
- "span",
889
- {
890
- className: cn("a63-Breadcrumb-ellipsis", className),
891
- "data-slot": "breadcrumb-ellipsis",
892
- ...props,
893
- children: [
894
- /* @__PURE__ */ jsx(Ellipsis, { "aria-hidden": true, className: "a63-Breadcrumb-ellipsis-glyph" }),
895
- /* @__PURE__ */ jsx("span", { className: "a63-Breadcrumb-sr-only", children: "More" })
896
- ]
897
- }
898
- );
899
- }
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
- function ChevronLeftIcon({ className }) {
978
- return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", className, fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
979
- "path",
980
- {
981
- d: "M10 3.5 5.5 8l4.5 4.5",
982
- stroke: "currentColor",
983
- strokeLinecap: "round",
984
- strokeLinejoin: "round",
985
- strokeWidth: "1.5"
986
- }
987
- ) });
988
- }
989
- function ChevronRightIcon({ className }) {
990
- return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", className, fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
991
- "path",
992
- {
993
- d: "M6 3.5 10.5 8 6 12.5",
994
- stroke: "currentColor",
995
- strokeLinecap: "round",
996
- strokeLinejoin: "round",
997
- strokeWidth: "1.5"
998
- }
999
- ) });
1000
- }
1001
- function ChevronsUpDownIcon2({ className }) {
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 });
1300
- }
1301
- function CardCursorLabel({
1302
- className,
1303
- render,
1304
- ...props
1305
- }) {
1306
- const defaultProps = {
1307
- className: cn("a63-Card-cursor-label", className),
1308
- "data-slot": "card-cursor-label"
1309
- };
1310
- return useRender({ defaultTagName: "div", props: mergeProps(defaultProps, props), render });
1311
- }
1312
- var cardLinkClassName = "a63-CardLink";
1313
- function useCardCursor(options = {}) {
1314
- const { onMove } = options;
1315
- const ref = useRef(null);
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;
1329
- }
1330
- const el = ref.current;
1331
- if (el) {
1332
- el.style.setProperty("--a63-card-cursor-x", `${x}px`);
1333
- el.style.setProperty("--a63-card-cursor-y", `${y}px`);
1334
- }
1335
- },
1336
- [onMove]
1337
- );
1338
- const onPointerEnter = useCallback(
1339
- (event) => {
1340
- if (!ref.current) {
1341
- return;
1342
- }
1343
- rectRef.current = ref.current.getBoundingClientRect();
1344
- apply(event.clientX, event.clientY);
1345
- setActive(true);
1346
- },
1347
- [apply]
1348
- );
1349
- const onPointerMove = useCallback(
1350
- (event) => apply(event.clientX, event.clientY),
1351
- [apply]
410
+ className: cn("a63-Breadcrumb-ellipsis", className),
411
+ "data-slot": "breadcrumb-ellipsis",
412
+ ...props,
413
+ children: [
414
+ /* @__PURE__ */ jsx(Ellipsis, { "aria-hidden": true, className: "a63-Breadcrumb-ellipsis-glyph" }),
415
+ /* @__PURE__ */ jsx("span", { className: "a63-Breadcrumb-sr-only", children: "More" })
416
+ ]
417
+ }
1352
418
  );
1353
- const onPointerLeave = useCallback(() => {
1354
- rectRef.current = null;
1355
- setActive(false);
1356
- }, []);
1357
- return { ref, active, onPointerEnter, onPointerMove, onPointerLeave };
1358
419
  }
1359
420
  var CarouselContext = React3.createContext(null);
1360
421
  function useCarousel() {
@@ -1625,320 +686,103 @@ function CarouselNext({
1625
686
  "data-direction": "next",
1626
687
  "data-orientation": orientation,
1627
688
  "data-slot": "carousel-next",
1628
- disabled: !canScrollNext,
1629
- onClick: scrollNext,
1630
- type: "button",
1631
- ...props,
1632
- children: [
1633
- /* @__PURE__ */ jsx(ArrowRightIcon, {}),
1634
- /* @__PURE__ */ jsx("span", { className: "a63-Carousel-sr-only", children: "Next slide" })
1635
- ]
1636
- }
1637
- );
1638
- }
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
689
+ disabled: !canScrollNext,
690
+ onClick: scrollNext,
691
+ type: "button",
692
+ ...props,
693
+ children: [
694
+ /* @__PURE__ */ jsx(ArrowRightIcon, {}),
695
+ /* @__PURE__ */ jsx("span", { className: "a63-Carousel-sr-only", children: "Next slide" })
696
+ ]
1863
697
  }
1864
698
  );
1865
699
  }
1866
- function CommandGroup({
700
+ var CheckIcon = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
701
+ "path",
702
+ {
703
+ d: "M13 4.5 6.5 11 3 7.5",
704
+ stroke: "currentColor",
705
+ strokeLinecap: "round",
706
+ strokeLinejoin: "round",
707
+ strokeWidth: "2"
708
+ }
709
+ ) });
710
+ 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" }) });
711
+ function Checkbox({
1867
712
  className,
713
+ size = checkboxContract.defaultSize,
1868
714
  ...props
1869
715
  }) {
1870
716
  return /* @__PURE__ */ jsx(
1871
- Autocomplete$1.Group,
717
+ Checkbox$1.Root,
1872
718
  {
1873
- className: cn("a63-Command-group", className),
1874
- "data-slot": "command-group",
1875
- ...props
719
+ className: cn("a63-Checkbox", className),
720
+ "data-size": size,
721
+ "data-slot": "checkbox",
722
+ ...props,
723
+ children: /* @__PURE__ */ jsx(
724
+ Checkbox$1.Indicator,
725
+ {
726
+ className: "a63-Checkbox-indicator",
727
+ "data-slot": "checkbox-indicator",
728
+ render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", { ...indicatorProps, children: state.indeterminate ? MinusIcon2 : CheckIcon })
729
+ }
730
+ )
1876
731
  }
1877
732
  );
1878
733
  }
1879
- function CommandGroupLabel({
1880
- className,
1881
- ...props
1882
- }) {
734
+ function Collapsible({ className, ...props }) {
1883
735
  return /* @__PURE__ */ jsx(
1884
- Autocomplete$1.GroupLabel,
736
+ Collapsible$1.Root,
1885
737
  {
1886
- className: cn("a63-Command-group-label", className),
1887
- "data-slot": "command-group-label",
738
+ className: cn("a63-Collapsible", className),
739
+ "data-slot": "collapsible",
1888
740
  ...props
1889
741
  }
1890
742
  );
1891
743
  }
1892
- function CommandCollection({
1893
- ...props
1894
- }) {
1895
- return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "command-collection", ...props });
1896
- }
1897
- function CommandItem({
744
+ function CollapsibleTrigger({
1898
745
  className,
1899
746
  ...props
1900
747
  }) {
1901
748
  return /* @__PURE__ */ jsx(
1902
- Autocomplete$1.Item,
749
+ Collapsible$1.Trigger,
1903
750
  {
1904
- className: cn("a63-Command-item", className),
1905
- "data-slot": "command-item",
751
+ className: cn("a63-Collapsible-trigger", className),
752
+ "data-slot": "collapsible-trigger",
1906
753
  ...props
1907
754
  }
1908
755
  );
1909
756
  }
1910
- function CommandSeparator({
757
+ function CollapsibleIndicator({
758
+ children,
1911
759
  className,
1912
760
  ...props
1913
761
  }) {
1914
762
  return /* @__PURE__ */ jsx(
1915
- Autocomplete$1.Separator,
763
+ "span",
1916
764
  {
1917
- className: cn("a63-Command-separator", className),
1918
- "data-slot": "command-separator",
1919
- ...props
765
+ ...props,
766
+ "aria-hidden": "true",
767
+ className: cn("a63-Collapsible-indicator", className),
768
+ "data-slot": "collapsible-indicator",
769
+ children: children ?? /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true })
1920
770
  }
1921
771
  );
1922
772
  }
1923
- function CommandShortcut({
773
+ function CollapsibleContent({
1924
774
  className,
1925
775
  ...props
1926
776
  }) {
1927
777
  return /* @__PURE__ */ jsx(
1928
- "kbd",
778
+ Collapsible$1.Panel,
1929
779
  {
1930
- className: cn("a63-Command-shortcut", className),
1931
- "data-slot": "command-shortcut",
780
+ className: cn("a63-Collapsible-content", className),
781
+ "data-slot": "collapsible-content",
1932
782
  ...props
1933
783
  }
1934
784
  );
1935
785
  }
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
786
  var ConnectedPanelContext = React3.createContext(null);
1943
787
  function useConnectedPanelContext(component) {
1944
788
  const context = React3.useContext(ConnectedPanelContext);
@@ -2293,7 +1137,7 @@ function CheckIcon2() {
2293
1137
  }
2294
1138
  ) });
2295
1139
  }
2296
- function ChevronRightIcon2() {
1140
+ function ChevronRightIcon() {
2297
1141
  return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "14", viewBox: "0 0 16 16", width: "14", children: /* @__PURE__ */ jsx(
2298
1142
  "path",
2299
1143
  {
@@ -2389,7 +1233,7 @@ function ContextMenuSubTrigger({
2389
1233
  ...props,
2390
1234
  children: [
2391
1235
  children,
2392
- /* @__PURE__ */ jsx("span", { className: "a63-Menu-sub-icon", "aria-hidden": true, children: /* @__PURE__ */ jsx(ChevronRightIcon2, {}) })
1236
+ /* @__PURE__ */ jsx("span", { className: "a63-Menu-sub-icon", "aria-hidden": true, children: /* @__PURE__ */ jsx(ChevronRightIcon, {}) })
2393
1237
  ]
2394
1238
  }
2395
1239
  );
@@ -2480,289 +1324,114 @@ function ContextMenuSeparator({
2480
1324
  className: cn("a63-Menu-separator", className),
2481
1325
  "data-slot": "context-menu-separator",
2482
1326
  ...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
- });
1327
+ }
1328
+ );
2723
1329
  }
2724
- function DialogTitle({
1330
+ function ContextMenuShortcut({
2725
1331
  className,
2726
1332
  ...props
2727
1333
  }) {
2728
1334
  return /* @__PURE__ */ jsx(
2729
- Dialog$1.Title,
1335
+ "span",
2730
1336
  {
2731
- className: cn("a63-Dialog-title", className),
2732
- "data-slot": "dialog-title",
1337
+ className: cn("a63-Menu-shortcut", className),
1338
+ "data-slot": "context-menu-shortcut",
2733
1339
  ...props
2734
1340
  }
2735
1341
  );
2736
1342
  }
2737
- function DialogDescription({
1343
+ var feedbackEnterTransition = {
1344
+ filter: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] },
1345
+ opacity: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] }
1346
+ };
1347
+ var feedbackExitTransition = {
1348
+ filter: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] },
1349
+ opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
1350
+ };
1351
+ var reducedMotionTransition = {
1352
+ opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
1353
+ };
1354
+ function CopyButton({
1355
+ "aria-hidden": ariaHidden,
1356
+ children,
2738
1357
  className,
2739
- ...props
1358
+ copiedLabel = "Copied to clipboard",
1359
+ label = "Copy",
1360
+ size,
1361
+ successMessage,
1362
+ tabIndex,
1363
+ value,
1364
+ variant = "ghost"
2740
1365
  }) {
1366
+ const [copied, setCopied] = useState(false);
1367
+ const resolvedSize = size ?? (children ? "sm" : "icon-sm");
1368
+ const handleCopy = async () => {
1369
+ try {
1370
+ await navigator.clipboard.writeText(value);
1371
+ setCopied(true);
1372
+ toast.success(successMessage ?? `${label} copied to clipboard`);
1373
+ setTimeout(() => setCopied(false), 2e3);
1374
+ } catch {
1375
+ toast.error("Failed to copy to clipboard");
1376
+ }
1377
+ };
2741
1378
  return /* @__PURE__ */ jsx(
2742
- Dialog$1.Description,
1379
+ Button,
2743
1380
  {
2744
- className: cn("a63-Dialog-description", className),
2745
- "data-slot": "dialog-description",
2746
- ...props
1381
+ "aria-hidden": ariaHidden,
1382
+ "aria-label": children ? void 0 : copied ? copiedLabel : label,
1383
+ className: cn("a63-CopyButton", !children && "a63-CopyButton--icon-only", className),
1384
+ "data-copied": copied ? "" : void 0,
1385
+ onClick: () => {
1386
+ void handleCopy();
1387
+ },
1388
+ size: resolvedSize,
1389
+ tabIndex,
1390
+ title: `${label} ${value}`,
1391
+ variant,
1392
+ children: /* @__PURE__ */ jsx(CopyButtonFeedback, { copied, children })
2747
1393
  }
2748
1394
  );
2749
1395
  }
2750
- function DialogPanel({
2751
- className,
2752
- scrollFade = true,
2753
- render,
2754
- ...props
1396
+ function CopyButtonFeedback({
1397
+ children,
1398
+ copied
2755
1399
  }) {
2756
- const defaultProps = {
2757
- className: cn("a63-Dialog-panel", className),
2758
- "data-scroll-fade": scrollFade ? "" : void 0,
2759
- "data-slot": "dialog-panel"
2760
- };
2761
- return useRender({
2762
- defaultTagName: "div",
2763
- props: mergeProps(defaultProps, props),
2764
- render
2765
- });
1400
+ const reduceMotion = useReducedMotion();
1401
+ const swapFrom = reduceMotion ? { opacity: 0 } : { filter: "blur(2px)", opacity: 0 };
1402
+ const swapTo = reduceMotion ? { opacity: 1 } : { filter: "blur(0px)", opacity: 1 };
1403
+ return /* @__PURE__ */ jsxs("span", { className: "a63-CopyButton-swap", "data-slot": "copy-button-swap", children: [
1404
+ /* @__PURE__ */ jsxs(
1405
+ motion.span,
1406
+ {
1407
+ animate: copied ? swapFrom : swapTo,
1408
+ "aria-hidden": copied ? true : void 0,
1409
+ className: "a63-CopyButton-item",
1410
+ "data-slot": "copy-button-item",
1411
+ initial: false,
1412
+ transition: reduceMotion ? reducedMotionTransition : copied ? feedbackExitTransition : feedbackEnterTransition,
1413
+ children: [
1414
+ /* @__PURE__ */ jsx(Copy, { className: "a63-CopyButton-icon" }),
1415
+ children
1416
+ ]
1417
+ }
1418
+ ),
1419
+ /* @__PURE__ */ jsxs(
1420
+ motion.span,
1421
+ {
1422
+ animate: copied ? swapTo : swapFrom,
1423
+ "aria-hidden": copied ? void 0 : true,
1424
+ className: "a63-CopyButton-item",
1425
+ "data-slot": "copy-button-item",
1426
+ initial: false,
1427
+ transition: reduceMotion ? reducedMotionTransition : copied ? feedbackEnterTransition : feedbackExitTransition,
1428
+ children: [
1429
+ /* @__PURE__ */ jsx(AnimatedCheck, { animate: copied, className: "a63-CopyButton-check" }),
1430
+ children && /* @__PURE__ */ jsx("span", { children: "Copied!" })
1431
+ ]
1432
+ }
1433
+ )
1434
+ ] });
2766
1435
  }
2767
1436
  var DrawerContext = React3.createContext({
2768
1437
  direction: "bottom"
@@ -2974,7 +1643,7 @@ function CheckIcon3() {
2974
1643
  }
2975
1644
  ) });
2976
1645
  }
2977
- function ChevronRightIcon3() {
1646
+ function ChevronRightIcon2() {
2978
1647
  return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "14", viewBox: "0 0 16 16", width: "14", children: /* @__PURE__ */ jsx(
2979
1648
  "path",
2980
1649
  {
@@ -3147,7 +1816,7 @@ function DropdownMenuSubTrigger({
3147
1816
  ...props,
3148
1817
  children: [
3149
1818
  children,
3150
- /* @__PURE__ */ jsx("span", { className: "a63-Menu-sub-icon", "aria-hidden": true, children: /* @__PURE__ */ jsx(ChevronRightIcon3, {}) })
1819
+ /* @__PURE__ */ jsx("span", { className: "a63-Menu-sub-icon", "aria-hidden": true, children: /* @__PURE__ */ jsx(ChevronRightIcon2, {}) })
3151
1820
  ]
3152
1821
  }
3153
1822
  );
@@ -3329,10 +1998,17 @@ var feedbackIcons = {
3329
1998
  clock: Clock,
3330
1999
  fileSearch: FileSearch,
3331
2000
  inbox: Inbox,
2001
+ refreshCw: RefreshCw,
3332
2002
  searchX: SearchX,
3333
2003
  spinner: Spinner,
3334
2004
  wifiOff: WifiOff
3335
2005
  };
2006
+ function renderFeedbackIcon(icon) {
2007
+ if (icon === void 0) return null;
2008
+ if (typeof icon !== "string") return icon;
2009
+ const IconComponent = feedbackIcons[icon];
2010
+ return IconComponent ? /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": true }) : null;
2011
+ }
3336
2012
  var stateConfig = {
3337
2013
  empty: {
3338
2014
  icon: "inbox",
@@ -3388,9 +2064,8 @@ function getFeedbackDescription({
3388
2064
  return stateConfig[state].defaultDescription;
3389
2065
  }
3390
2066
  function FeedbackStateActionButton({ action }) {
3391
- const IconComponent = action.icon ? feedbackIcons[action.icon] : void 0;
3392
2067
  const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
3393
- IconComponent ? /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": true }) : null,
2068
+ renderFeedbackIcon(action.icon),
3394
2069
  action.label
3395
2070
  ] });
3396
2071
  if (action.href) {
@@ -3420,8 +2095,7 @@ function FeedbackState({
3420
2095
  const config = stateConfig[state];
3421
2096
  const finalDescription = getFeedbackDescription({ description, error, query, state });
3422
2097
  const finalTitle = title || config.defaultTitle;
3423
- const iconName = icon || config.icon;
3424
- const IconComponent = feedbackIcons[iconName];
2098
+ const iconNode = renderFeedbackIcon(icon ?? config.icon);
3425
2099
  return /* @__PURE__ */ jsxs(
3426
2100
  "div",
3427
2101
  {
@@ -3434,7 +2108,7 @@ function FeedbackState({
3434
2108
  role: state === "error" ? "alert" : state === "loading" ? "status" : void 0,
3435
2109
  children: [
3436
2110
  /* @__PURE__ */ jsxs("div", { className: "a63-FeedbackState-header", "data-slot": "feedback-state-header", children: [
3437
- showIcon && IconComponent ? /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-media", "data-slot": "feedback-state-media", children: /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": true }) }) : null,
2111
+ showIcon && iconNode ? /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-media", "data-slot": "feedback-state-media", children: iconNode }) : null,
3438
2112
  /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-title", "data-slot": "feedback-state-title", children: finalTitle }),
3439
2113
  /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-description", "data-slot": "feedback-state-description", children: finalDescription })
3440
2114
  ] }),
@@ -3443,7 +2117,7 @@ function FeedbackState({
3443
2117
  {
3444
2118
  action
3445
2119
  },
3446
- `${action.label}-${action.href ?? action.icon ?? "button"}`
2120
+ `${action.label}-${action.href ?? "button"}`
3447
2121
  )) }) : null
3448
2122
  ]
3449
2123
  }
@@ -3695,202 +2369,6 @@ function HoverCardContent({
3695
2369
  }
3696
2370
  ) });
3697
2371
  }
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
2372
  function InputOTP({
3895
2373
  className,
3896
2374
  containerClassName,
@@ -4134,394 +2612,16 @@ var LoadMoreTrigger = forwardRef(
4134
2612
  onClick: onRetry,
4135
2613
  type: "button",
4136
2614
  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
2615
+ }
2616
+ ) : null
2617
+ ]
2618
+ }
2619
+ )
2620
+ }
2621
+ );
4520
2622
  }
4521
- ];
4522
- function getReactRendererConformance(contractId) {
4523
- return reactRendererConformance.find((evidence) => evidence.contractId === contractId);
4524
- }
2623
+ );
2624
+ LoadMoreTrigger.displayName = "LoadMoreTrigger";
4525
2625
  function Marquee({
4526
2626
  className,
4527
2627
  reverse = false,
@@ -4534,12 +2634,15 @@ function Marquee({
4534
2634
  gap = marqueeContract.defaultGap,
4535
2635
  ...props
4536
2636
  }) {
2637
+ const reducedMotion = Boolean(useReducedMotion());
2638
+ const scrollRegion = reducedMotion ? { "aria-label": "Scrolling content", role: "group", tabIndex: 0 } : void 0;
4537
2639
  return /* @__PURE__ */ jsx(
4538
2640
  "div",
4539
2641
  {
4540
2642
  className: cn("a63-Marquee", className),
4541
2643
  "data-orientation": vertical ? "vertical" : "horizontal",
4542
2644
  "data-slot": "marquee",
2645
+ ...scrollRegion,
4543
2646
  ...props,
4544
2647
  style: { "--gap": gap, ...style },
4545
2648
  children: Array.from({ length: repeat }, (_, trackIndex) => /* @__PURE__ */ jsx(
@@ -4742,156 +2845,6 @@ function MenubarSubContent({
4742
2845
  }
4743
2846
  );
4744
2847
  }
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
2848
  function Pagination({ className, ...props }) {
4896
2849
  return /* @__PURE__ */ jsx(
4897
2850
  "nav",
@@ -5162,73 +3115,6 @@ function PreviewCardPopup({
5162
3115
  }
5163
3116
  ) });
5164
3117
  }
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
3118
  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
3119
  function buildMask(position, from, to) {
5234
3120
  if (position === "both") return BOTH_GRADIENT;
@@ -5328,262 +3214,37 @@ function ResizableHandle({
5328
3214
  "aria-label": ariaLabel = "Resize panels",
5329
3215
  withHandle,
5330
3216
  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
- ] })
3217
+ ...props
3218
+ }) {
3219
+ const orientation = useContext(ResizableOrientationContext);
3220
+ return /* @__PURE__ */ jsx(
3221
+ ResizablePrimitive.Separator,
3222
+ {
3223
+ "aria-label": ariaLabel,
3224
+ className: cn("a63-Resizable-handle", className),
3225
+ "data-panel-group-direction": orientation,
3226
+ "data-slot": "resizable-handle",
3227
+ ...props,
3228
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "a63-Resizable-handle-grip", "data-slot": "resizable-handle-grip", children: /* @__PURE__ */ jsxs(
3229
+ "svg",
3230
+ {
3231
+ "aria-hidden": "true",
3232
+ className: "a63-Resizable-handle-grip-icon",
3233
+ fill: "currentColor",
3234
+ height: "10",
3235
+ viewBox: "0 0 16 16",
3236
+ width: "10",
3237
+ children: [
3238
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "3.5", r: "1.1" }),
3239
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "1.1" }),
3240
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "12.5", r: "1.1" })
3241
+ ]
3242
+ }
3243
+ ) })
5583
3244
  }
5584
3245
  );
5585
3246
  }
5586
- function SearchIcon2() {
3247
+ function SearchIcon() {
5587
3248
  return /* @__PURE__ */ jsxs("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: [
5588
3249
  /* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.25", stroke: "currentColor", strokeWidth: "1.5" }),
5589
3250
  /* @__PURE__ */ jsx("path", { d: "m10.25 10.25 3 3", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5" })
@@ -5624,7 +3285,7 @@ function SearchField({
5624
3285
  "data-slot": "search-field",
5625
3286
  disabled,
5626
3287
  children: [
5627
- /* @__PURE__ */ jsx(InputGroupAddon, { "data-slot": "search-field-icon", children: /* @__PURE__ */ jsx(SearchIcon2, {}) }),
3288
+ /* @__PURE__ */ jsx(InputGroupAddon, { "data-slot": "search-field-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
5628
3289
  /* @__PURE__ */ jsx(
5629
3290
  InputGroupInput,
5630
3291
  {
@@ -5656,343 +3317,6 @@ function SearchField({
5656
3317
  }
5657
3318
  );
5658
3319
  }
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
3320
  function Skeleton({ className, ...props }) {
5997
3321
  return /* @__PURE__ */ jsx(
5998
3322
  "div",
@@ -6004,45 +3328,6 @@ function Skeleton({ className, ...props }) {
6004
3328
  }
6005
3329
  );
6006
3330
  }
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
3331
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
6047
3332
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
6048
3333
  var SIDEBAR_WIDTH = "16rem";
@@ -7331,7 +4616,28 @@ function UIProvider({
7331
4616
  function useUIEnvironment() {
7332
4617
  return React3.useContext(UIEnvironmentContext);
7333
4618
  }
4619
+ function withoutModeClasses(className) {
4620
+ return className?.split(/\s+/).filter((name) => name && name !== "light" && name !== "dark").join(" ");
4621
+ }
4622
+ function Atom63Theme({
4623
+ className,
4624
+ mode = "light",
4625
+ render,
4626
+ theme = defaultUIEnvironment.theme,
4627
+ ...props
4628
+ }) {
4629
+ const themeProps = {
4630
+ className: cn("a63-Atom63Theme", withoutModeClasses(className), mode),
4631
+ "data-a63-mode": mode,
4632
+ "data-a63-theme": theme
4633
+ };
4634
+ return useRender({
4635
+ defaultTagName: "div",
4636
+ props: mergeProps(props, themeProps),
4637
+ render
4638
+ });
4639
+ }
7334
4640
 
7335
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogBackdrop, AlertDialogCancel, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogPopup, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, AlertIcon, AlertTitle, AnimatedCheck, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonGroup, ButtonGroupProvider, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardAction, CardContent, CardCursorLabel, CardDescription, CardFooter, CardHeader, CardLabel, CardMedia, CardMediaOverlay, CardMediaOverlayBottom, CardMediaOverlayIconButton, CardMediaOverlayImage, CardMediaOverlayScrim, CardMediaOverlayTopRight, CardTags, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleIndicator, CollapsibleTrigger, Command, CommandCollection, CommandCreateHandle, CommandDialog, CommandDialogBackdrop, CommandDialogPopup, CommandDialogPortal, CommandDialogTrigger, CommandDialogViewport, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, 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, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogCreateHandle, DialogDescription, DialogFooter, DialogHeader, DialogBackdrop as DialogOverlay, DialogPanel, DialogPopup, DialogPortal, DialogTitle, DialogTrigger, DialogViewport, 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, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, 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, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelSettingButton, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, PreviewCard, PreviewCardPopup, PreviewCardTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, ProgressiveBlur, Radio, RadioGroup, Radio as RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollableList, SearchField, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetClose, SheetPopup as SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetBackdrop as SheetOverlay, SheetPanel, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport, 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, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupSeparator, Tooltip, TooltipPopup as TooltipContent, TooltipCreateHandle, TooltipPopup, TooltipProvider, TooltipTrigger, UIProvider, capColorForContrast, cardLinkClassName, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, getReactRendererConformance, loadAndExtractColor, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useAutocompleteFilter, useButtonGroupContext, useCardCursor, useCarousel, useExtractColor, useFormField, useSidebar, useUIEnvironment };
4641
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle, AnimatedCheck, Atom63Theme, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, 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
4642
  //# sourceMappingURL=index.js.map
7337
4643
  //# sourceMappingURL=index.js.map