@atom63/ui-react 0.2.0-beta.2 → 0.2.0-beta.6

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 (35) hide show
  1. package/README.md +54 -50
  2. package/dist/{button-sktq-nvV.d.ts → button-CfLIHg-R.d.ts} +1 -1
  3. package/dist/{chunk-MXNO63TC.js → chunk-DSHR3IVC.js} +4 -3
  4. package/dist/chunk-DSHR3IVC.js.map +1 -0
  5. package/dist/{chunk-STCXERLM.js → chunk-FGM3BFIX.js} +6 -132
  6. package/dist/chunk-FGM3BFIX.js.map +1 -0
  7. package/dist/chunk-JREAUE3E.js +2667 -0
  8. package/dist/chunk-JREAUE3E.js.map +1 -0
  9. package/dist/chunk-NFEMEDV3.js +135 -0
  10. package/dist/chunk-NFEMEDV3.js.map +1 -0
  11. package/dist/{chunk-7VSPECOH.js → chunk-R67OZVA2.js} +4 -14
  12. package/dist/chunk-R67OZVA2.js.map +1 -0
  13. package/dist/chunk-UPPHQLZ2.js +18 -0
  14. package/dist/chunk-UPPHQLZ2.js.map +1 -0
  15. package/dist/{destination-link-C9NKeKLe.d.ts → destination-link-DMLeR-oF.d.ts} +1 -1
  16. package/dist/index-Be9vd-R4.d.ts +436 -0
  17. package/dist/index.d.ts +49 -447
  18. package/dist/index.js +436 -3058
  19. package/dist/index.js.map +1 -1
  20. package/dist/media/index.js +4 -3
  21. package/dist/media/index.js.map +1 -1
  22. package/dist/media/media-lightbox/parts/index.d.ts +1 -1
  23. package/dist/media/media-lightbox/parts/index.js +3 -2
  24. package/dist/preview/index.d.ts +16 -0
  25. package/dist/preview/index.js +6 -0
  26. package/dist/preview/index.js.map +1 -0
  27. package/dist/theme/index.d.ts +1 -1
  28. package/dist/theme/index.js +2 -1
  29. package/dist/theme/index.js.map +1 -1
  30. package/package.json +21 -17
  31. package/src/styles/index.css +1 -0
  32. package/src/styles/utilities.css +2243 -0
  33. package/dist/chunk-7VSPECOH.js.map +0 -1
  34. package/dist/chunk-MXNO63TC.js.map +0 -1
  35. package/dist/chunk-STCXERLM.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,31 +1,25 @@
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-JREAUE3E.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-JREAUE3E.js';
3
+ export { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, SegmentedControl, Slider, SliderValue } from './chunk-FGM3BFIX.js';
4
+ import { Button } from './chunk-NFEMEDV3.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-NFEMEDV3.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';
7
11
  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';
12
+ 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
13
  import { mergeProps } from '@base-ui/react/merge-props';
16
14
  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';
15
+ 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';
16
+ import * as React2 from 'react';
17
+ import { forwardRef, createContext, useState, useId, useMemo, useContext, useRef, useCallback, useEffect, isValidElement, cloneElement } from 'react';
22
18
  import { DayPicker } from 'react-day-picker';
23
19
  import useEmblaCarousel from 'embla-carousel-react';
24
20
  import { useReducedMotion, AnimatePresence, motion } from 'motion/react';
25
21
  import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
26
22
  import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
27
- import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
28
- export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/react/dialog';
29
23
  import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
30
24
  import { Toaster as Toaster$1, toast } from 'sonner';
31
25
  export { toast } from 'sonner';
@@ -33,20 +27,12 @@ import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
33
27
  import { Menu } from '@base-ui/react/menu';
34
28
  import { FormProvider, Controller, useFormContext, useFormState } from 'react-hook-form';
35
29
  import { PreviewCard as PreviewCard$1 } from '@base-ui/react/preview-card';
36
- import { Input as Input$1 } from '@base-ui/react/input';
37
- export { Input as InputPrimitive } from '@base-ui/react/input';
38
30
  import { OTPInput, OTPInputContext } from 'input-otp';
39
31
  import { Menubar as Menubar$1 } from '@base-ui/react/menubar';
40
- import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
41
32
  import { Popover as Popover$1 } from '@base-ui/react/popover';
42
- import { Progress as Progress$1 } from '@base-ui/react/progress';
43
- export { Progress as ProgressPrimitive } from '@base-ui/react/progress';
44
33
  import { Radio as Radio$1 } from '@base-ui/react/radio';
45
34
  import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
46
35
  import * as ResizablePrimitive from 'react-resizable-panels';
47
- import { Select as Select$1 } from '@base-ui/react/select';
48
- import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
49
- export { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
50
36
  import { Switch as Switch$1 } from '@base-ui/react/switch';
51
37
  import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
52
38
  import { createPortal } from 'react-dom';
@@ -219,175 +205,6 @@ function AlertAction({
219
205
  }) {
220
206
  return /* @__PURE__ */ jsx("div", { className: cn("a63-Alert-action", className), "data-slot": "alert-action", ...props });
221
207
  }
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
208
  var ANIMATED_CHECK_STYLE = `
392
209
  .a63-AnimatedCheck {
393
210
  display: inline-block;
@@ -449,528 +266,121 @@ function AnimatedCheck({
449
266
  }
450
267
  );
451
268
  }
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({
269
+ function Badge({
478
270
  className,
479
- clearProps,
480
- showClear = false,
481
- showTrigger = false,
482
- size,
483
- startAddon,
484
- triggerProps,
271
+ render,
272
+ variant = badgeContract.defaultVariant,
273
+ size = badgeContract.defaultSize,
485
274
  ...props
486
275
  }) {
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
- );
276
+ const defaultProps = {
277
+ className: cn("a63-Badge", className),
278
+ "data-slot": "badge",
279
+ "data-variant": variant,
280
+ "data-size": size
281
+ };
282
+ return useRender({
283
+ defaultTagName: "span",
284
+ props: mergeProps(defaultProps, props),
285
+ render
286
+ });
535
287
  }
536
- function AutocompletePopup({
537
- align = "start",
538
- alignOffset,
539
- anchor,
540
- children,
288
+ function Breadcrumb({
541
289
  className,
542
- portalProps,
543
- side = "bottom",
544
- sideOffset = 4,
545
290
  ...props
546
291
  }) {
547
- return /* @__PURE__ */ jsx(Autocomplete$1.Portal, { ...portalProps, children: /* @__PURE__ */ jsx(
548
- Autocomplete$1.Positioner,
292
+ return /* @__PURE__ */ jsx(
293
+ "nav",
549
294
  {
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
- ) })
295
+ "aria-label": "breadcrumb",
296
+ className: cn("a63-Breadcrumb", className),
297
+ "data-slot": "breadcrumb",
298
+ ...props
566
299
  }
567
- ) });
300
+ );
568
301
  }
569
- function AutocompleteItem({
570
- children,
302
+ function BreadcrumbList({
571
303
  className,
572
304
  ...props
573
305
  }) {
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
- );
306
+ return /* @__PURE__ */ jsx("ol", { className: cn("a63-Breadcrumb-list", className), "data-slot": "breadcrumb-list", ...props });
583
307
  }
584
- function AutocompleteSeparator({
308
+ function BreadcrumbItem({
585
309
  className,
586
310
  ...props
587
311
  }) {
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
- );
312
+ return /* @__PURE__ */ jsx("li", { className: cn("a63-Breadcrumb-item", className), "data-slot": "breadcrumb-item", ...props });
596
313
  }
597
- function AutocompleteGroup({
314
+ function BreadcrumbLink({
598
315
  className,
316
+ render,
317
+ asChild = false,
318
+ children,
599
319
  ...props
600
320
  }) {
601
- return /* @__PURE__ */ jsx(
602
- Autocomplete$1.Group,
603
- {
604
- className: cn("a63-Autocomplete-group", className),
605
- "data-slot": "autocomplete-group",
606
- ...props
321
+ const childrenAsRender = !render && asChild && React2.isValidElement(children);
322
+ const resolvedRender = render ?? (childrenAsRender ? children : void 0);
323
+ return useRender({
324
+ defaultTagName: "a",
325
+ props: mergeProps(
326
+ {
327
+ children: childrenAsRender ? void 0 : children,
328
+ className: cn("a63-Breadcrumb-link", className)
329
+ },
330
+ props,
331
+ { "data-slot": "breadcrumb-link" }
332
+ ),
333
+ render: resolvedRender,
334
+ state: {
335
+ slot: "breadcrumb-link"
607
336
  }
608
- );
337
+ });
609
338
  }
610
- function AutocompleteGroupLabel({
339
+ function BreadcrumbPage({
611
340
  className,
612
341
  ...props
613
342
  }) {
614
343
  return /* @__PURE__ */ jsx(
615
- Autocomplete$1.GroupLabel,
344
+ "span",
616
345
  {
617
- className: cn("a63-Menu-label", "a63-Autocomplete-group-label", className),
618
- "data-slot": "autocomplete-group-label",
346
+ "aria-current": "page",
347
+ className: cn("a63-Breadcrumb-page", className),
348
+ "data-slot": "breadcrumb-page",
619
349
  ...props
620
350
  }
621
351
  );
622
352
  }
623
- function AutocompleteEmpty({
353
+ function BreadcrumbSeparator({
354
+ children,
624
355
  className,
625
356
  ...props
626
357
  }) {
627
358
  return /* @__PURE__ */ jsx(
628
- Autocomplete$1.Empty,
359
+ "li",
629
360
  {
630
- className: cn("a63-Autocomplete-empty", className),
631
- "data-slot": "autocomplete-empty",
632
- ...props
361
+ "aria-hidden": "true",
362
+ className: cn("a63-Breadcrumb-separator", className),
363
+ "data-slot": "breadcrumb-separator",
364
+ role: "presentation",
365
+ ...props,
366
+ children: children ?? /* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": true, className: "a63-Breadcrumb-separator-glyph" })
633
367
  }
634
368
  );
635
369
  }
636
- function AutocompleteRow({
370
+ function BreadcrumbEllipsis({
637
371
  className,
638
372
  ...props
639
373
  }) {
640
- return /* @__PURE__ */ jsx(
641
- Autocomplete$1.Row,
374
+ return /* @__PURE__ */ jsxs(
375
+ "span",
642
376
  {
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
377
+ className: cn("a63-Breadcrumb-ellipsis", className),
378
+ "data-slot": "breadcrumb-ellipsis",
379
+ ...props,
380
+ children: [
381
+ /* @__PURE__ */ jsx(Ellipsis, { "aria-hidden": true, className: "a63-Breadcrumb-ellipsis-glyph" }),
382
+ /* @__PURE__ */ jsx("span", { className: "a63-Breadcrumb-sr-only", children: "More" })
383
+ ]
974
384
  }
975
385
  );
976
386
  }
@@ -996,369 +406,95 @@ function ChevronRightIcon({ className }) {
996
406
  strokeLinejoin: "round",
997
407
  strokeWidth: "1.5"
998
408
  }
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 });
409
+ ) });
1292
410
  }
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 });
411
+ function ChevronsUpDownIcon({ className }) {
412
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", className, fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
413
+ "path",
414
+ {
415
+ d: "M5 6.5 8 3.5 11 6.5M5 9.5l3 3 3-3",
416
+ stroke: "currentColor",
417
+ strokeLinecap: "round",
418
+ strokeLinejoin: "round",
419
+ strokeWidth: "1.5"
420
+ }
421
+ ) });
1300
422
  }
1301
- function CardCursorLabel({
423
+ function Calendar({
1302
424
  className,
1303
- render,
425
+ classNames,
426
+ showOutsideDays = true,
427
+ components: userComponents,
428
+ mode = "single",
1304
429
  ...props
1305
430
  }) {
1306
- const defaultProps = {
1307
- className: cn("a63-Card-cursor-label", className),
1308
- "data-slot": "card-cursor-label"
431
+ const defaultClassNames = {
432
+ button_next: "a63-Calendar-nav-button",
433
+ button_previous: "a63-Calendar-nav-button",
434
+ caption_label: "a63-Calendar-caption-label",
435
+ day: "a63-Calendar-day",
436
+ day_button: "a63-Calendar-day-button",
437
+ dropdown: "a63-Calendar-dropdown",
438
+ dropdown_root: "a63-Calendar-dropdown-root",
439
+ dropdowns: "a63-Calendar-dropdowns",
440
+ hidden: "a63-Calendar-hidden",
441
+ month: "a63-Calendar-month",
442
+ month_caption: "a63-Calendar-month-caption",
443
+ months: "a63-Calendar-months",
444
+ nav: "a63-Calendar-nav",
445
+ outside: "a63-Calendar-outside",
446
+ range_end: "range-end",
447
+ range_middle: "range-middle",
448
+ range_start: "range-start",
449
+ today: "a63-Calendar-today",
450
+ week_number: "a63-Calendar-week-number",
451
+ weekday: "a63-Calendar-weekday"
1309
452
  };
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;
453
+ const mergedClassNames = { ...defaultClassNames };
454
+ if (classNames) {
455
+ for (const key of Object.keys(defaultClassNames)) {
456
+ const userClass = classNames[key];
457
+ if (userClass) {
458
+ mergedClassNames[key] = cn(defaultClassNames[key], userClass);
1329
459
  }
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`);
460
+ }
461
+ }
462
+ const defaultComponents = {
463
+ Chevron: ({
464
+ className: chevronClassName,
465
+ orientation
466
+ }) => {
467
+ if (orientation === "left") {
468
+ return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
1334
469
  }
1335
- },
1336
- [onMove]
1337
- );
1338
- const onPointerEnter = useCallback(
1339
- (event) => {
1340
- if (!ref.current) {
1341
- return;
470
+ if (orientation === "right") {
471
+ return /* @__PURE__ */ jsx(ChevronRightIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
1342
472
  }
1343
- rectRef.current = ref.current.getBoundingClientRect();
1344
- apply(event.clientX, event.clientY);
1345
- setActive(true);
473
+ return /* @__PURE__ */ jsx(ChevronsUpDownIcon, { className: cn("a63-Calendar-chevron", chevronClassName) });
474
+ }
475
+ };
476
+ const mergedComponents = {
477
+ ...defaultComponents,
478
+ ...userComponents
479
+ };
480
+ const dayPickerProps = {
481
+ className: cn("a63-Calendar", className),
482
+ classNames: mergedClassNames,
483
+ components: mergedComponents,
484
+ "data-slot": "calendar",
485
+ formatters: {
486
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
487
+ ...props.formatters
1346
488
  },
1347
- [apply]
1348
- );
1349
- const onPointerMove = useCallback(
1350
- (event) => apply(event.clientX, event.clientY),
1351
- [apply]
1352
- );
1353
- const onPointerLeave = useCallback(() => {
1354
- rectRef.current = null;
1355
- setActive(false);
1356
- }, []);
1357
- return { ref, active, onPointerEnter, onPointerMove, onPointerLeave };
489
+ mode,
490
+ showOutsideDays,
491
+ ...props
492
+ };
493
+ return /* @__PURE__ */ jsx(DayPicker, { ...dayPickerProps });
1358
494
  }
1359
- var CarouselContext = React3.createContext(null);
495
+ var CarouselContext = React2.createContext(null);
1360
496
  function useCarousel() {
1361
- const context = React3.useContext(CarouselContext);
497
+ const context = React2.useContext(CarouselContext);
1362
498
  if (!context) {
1363
499
  throw new Error("useCarousel must be used within a <Carousel />");
1364
500
  }
@@ -1381,27 +517,27 @@ function Carousel({
1381
517
  },
1382
518
  plugins
1383
519
  );
1384
- const [canScrollPrev, setCanScrollPrev] = React3.useState(false);
1385
- const [canScrollNext, setCanScrollNext] = React3.useState(false);
1386
- const containerRef = React3.useRef(null);
1387
- const pointerOriginRef = React3.useRef(null);
1388
- const pointerMovedRef = React3.useRef(false);
1389
- const [cursorActive, setCursorActive] = React3.useState(false);
1390
- const [cursorPos, setCursorPos] = React3.useState({ x: 0, y: 0 });
1391
- const [cursorSide, setCursorSide] = React3.useState("next");
520
+ const [canScrollPrev, setCanScrollPrev] = React2.useState(false);
521
+ const [canScrollNext, setCanScrollNext] = React2.useState(false);
522
+ const containerRef = React2.useRef(null);
523
+ const pointerOriginRef = React2.useRef(null);
524
+ const pointerMovedRef = React2.useRef(false);
525
+ const [cursorActive, setCursorActive] = React2.useState(false);
526
+ const [cursorPos, setCursorPos] = React2.useState({ x: 0, y: 0 });
527
+ const [cursorSide, setCursorSide] = React2.useState("next");
1392
528
  const reducedMotion = Boolean(useReducedMotion());
1393
- const onSelect = React3.useCallback((api2) => {
529
+ const onSelect = React2.useCallback((api2) => {
1394
530
  if (!api2) return;
1395
531
  setCanScrollPrev(api2.canScrollPrev());
1396
532
  setCanScrollNext(api2.canScrollNext());
1397
533
  }, []);
1398
- const scrollPrev = React3.useCallback(() => {
534
+ const scrollPrev = React2.useCallback(() => {
1399
535
  api?.scrollPrev();
1400
536
  }, [api]);
1401
- const scrollNext = React3.useCallback(() => {
537
+ const scrollNext = React2.useCallback(() => {
1402
538
  api?.scrollNext();
1403
539
  }, [api]);
1404
- const handleKeyDown = React3.useCallback(
540
+ const handleKeyDown = React2.useCallback(
1405
541
  (event) => {
1406
542
  if (event.key === "ArrowLeft") {
1407
543
  event.preventDefault();
@@ -1413,11 +549,11 @@ function Carousel({
1413
549
  },
1414
550
  [scrollPrev, scrollNext]
1415
551
  );
1416
- React3.useEffect(() => {
552
+ React2.useEffect(() => {
1417
553
  if (!(api && setApi)) return;
1418
554
  setApi(api);
1419
555
  }, [api, setApi]);
1420
- React3.useEffect(() => {
556
+ React2.useEffect(() => {
1421
557
  if (!api) return;
1422
558
  onSelect(api);
1423
559
  api.on("reInit", onSelect);
@@ -1427,7 +563,7 @@ function Carousel({
1427
563
  api.off("select", onSelect);
1428
564
  };
1429
565
  }, [api, onSelect]);
1430
- const handlePointerMove = React3.useCallback(
566
+ const handlePointerMove = React2.useCallback(
1431
567
  (e) => {
1432
568
  if (!(cursorIndicator && containerRef.current)) return;
1433
569
  const rect = containerRef.current.getBoundingClientRect();
@@ -1448,7 +584,7 @@ function Carousel({
1448
584
  },
1449
585
  [cursorIndicator]
1450
586
  );
1451
- const handlePointerDown = React3.useCallback(
587
+ const handlePointerDown = React2.useCallback(
1452
588
  (e) => {
1453
589
  if (!cursorIndicator) return;
1454
590
  pointerOriginRef.current = { x: e.clientX, y: e.clientY };
@@ -1456,12 +592,12 @@ function Carousel({
1456
592
  },
1457
593
  [cursorIndicator]
1458
594
  );
1459
- const handlePointerLeave = React3.useCallback(() => {
595
+ const handlePointerLeave = React2.useCallback(() => {
1460
596
  if (!cursorIndicator) return;
1461
597
  setCursorActive(false);
1462
598
  pointerOriginRef.current = null;
1463
599
  }, [cursorIndicator]);
1464
- const handleCursorClick = React3.useCallback(() => {
600
+ const handleCursorClick = React2.useCallback(() => {
1465
601
  if (!cursorIndicator) return;
1466
602
  if (pointerMovedRef.current) {
1467
603
  pointerMovedRef.current = false;
@@ -1637,311 +773,94 @@ function CarouselNext({
1637
773
  );
1638
774
  }
1639
775
  var CheckIcon = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
1640
- "path",
1641
- {
1642
- d: "M13 4.5 6.5 11 3 7.5",
1643
- stroke: "currentColor",
1644
- strokeLinecap: "round",
1645
- strokeLinejoin: "round",
1646
- strokeWidth: "2"
1647
- }
1648
- ) });
1649
- var MinusIcon2 = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx("path", { d: "M3.5 8h9", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2" }) });
1650
- function Checkbox({
1651
- className,
1652
- size = checkboxContract.defaultSize,
1653
- ...props
1654
- }) {
1655
- return /* @__PURE__ */ jsx(
1656
- Checkbox$1.Root,
1657
- {
1658
- className: cn("a63-Checkbox", className),
1659
- "data-size": size,
1660
- "data-slot": "checkbox",
1661
- ...props,
1662
- children: /* @__PURE__ */ jsx(
1663
- Checkbox$1.Indicator,
1664
- {
1665
- className: "a63-Checkbox-indicator",
1666
- "data-slot": "checkbox-indicator",
1667
- render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", { ...indicatorProps, children: state.indeterminate ? MinusIcon2 : CheckIcon })
1668
- }
1669
- )
1670
- }
1671
- );
1672
- }
1673
- function Collapsible({ className, ...props }) {
1674
- return /* @__PURE__ */ jsx(
1675
- Collapsible$1.Root,
1676
- {
1677
- className: cn("a63-Collapsible", className),
1678
- "data-slot": "collapsible",
1679
- ...props
1680
- }
1681
- );
1682
- }
1683
- function CollapsibleTrigger({
1684
- className,
1685
- ...props
1686
- }) {
1687
- return /* @__PURE__ */ jsx(
1688
- Collapsible$1.Trigger,
1689
- {
1690
- className: cn("a63-Collapsible-trigger", className),
1691
- "data-slot": "collapsible-trigger",
1692
- ...props
1693
- }
1694
- );
1695
- }
1696
- function CollapsibleIndicator({
1697
- children,
1698
- className,
1699
- ...props
1700
- }) {
1701
- return /* @__PURE__ */ jsx(
1702
- "span",
1703
- {
1704
- ...props,
1705
- "aria-hidden": "true",
1706
- className: cn("a63-Collapsible-indicator", className),
1707
- "data-slot": "collapsible-indicator",
1708
- children: children ?? /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true })
1709
- }
1710
- );
1711
- }
1712
- function CollapsibleContent({
1713
- className,
1714
- ...props
1715
- }) {
1716
- return /* @__PURE__ */ jsx(
1717
- Collapsible$1.Panel,
1718
- {
1719
- className: cn("a63-Collapsible-content", className),
1720
- "data-slot": "collapsible-content",
1721
- ...props
1722
- }
1723
- );
1724
- }
1725
- var CommandDialog = Dialog$1.Root;
1726
- var CommandDialogPortal = Dialog$1.Portal;
1727
- var CommandCreateHandle = Dialog$1.createHandle;
1728
- function CommandDialogTrigger(props) {
1729
- return /* @__PURE__ */ jsx(Dialog$1.Trigger, { "data-slot": "command-dialog-trigger", ...props });
1730
- }
1731
- function CommandDialogBackdrop({
1732
- className,
1733
- ...props
1734
- }) {
1735
- return /* @__PURE__ */ jsx(
1736
- Dialog$1.Backdrop,
1737
- {
1738
- className: cn("a63-Command-backdrop", className),
1739
- "data-slot": "command-dialog-backdrop",
1740
- ...props
1741
- }
1742
- );
1743
- }
1744
- function CommandDialogViewport({
1745
- className,
1746
- ...props
1747
- }) {
1748
- return /* @__PURE__ */ jsx(
1749
- Dialog$1.Viewport,
1750
- {
1751
- className: cn("a63-Command-viewport", className),
1752
- "data-slot": "command-dialog-viewport",
1753
- ...props
1754
- }
1755
- );
1756
- }
1757
- function CommandDialogPopup({
1758
- className,
1759
- children,
1760
- ...props
1761
- }) {
1762
- return /* @__PURE__ */ jsxs(CommandDialogPortal, { children: [
1763
- /* @__PURE__ */ jsx(CommandDialogBackdrop, {}),
1764
- /* @__PURE__ */ jsx(CommandDialogViewport, { children: /* @__PURE__ */ jsx(
1765
- Dialog$1.Popup,
1766
- {
1767
- className: cn("a63-Command-popup", className),
1768
- "data-slot": "command-dialog-popup",
1769
- ...props,
1770
- children
1771
- }
1772
- ) })
1773
- ] });
1774
- }
1775
- function Command({
1776
- autoHighlight = "always",
1777
- keepHighlight = true,
1778
- ...props
1779
- }) {
1780
- return /* @__PURE__ */ jsx(
1781
- Autocomplete$1.Root,
1782
- {
1783
- autoHighlight,
1784
- "data-slot": "command",
1785
- inline: true,
1786
- keepHighlight,
1787
- open: true,
1788
- ...props
1789
- }
1790
- );
1791
- }
1792
- function SearchIcon() {
1793
- return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "18", viewBox: "0 0 24 24", width: "18", children: /* @__PURE__ */ jsx(
1794
- "path",
1795
- {
1796
- d: "M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5",
1797
- stroke: "currentColor",
1798
- strokeLinecap: "round",
1799
- strokeLinejoin: "round",
1800
- strokeWidth: "1.75"
1801
- }
1802
- ) });
1803
- }
1804
- function CommandInput({
1805
- className,
1806
- placeholder,
1807
- ...props
1808
- }) {
1809
- return /* @__PURE__ */ jsxs("div", { className: "a63-Command-input-wrapper", "data-slot": "command-input-wrapper", children: [
1810
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "a63-Command-input-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
1811
- /* @__PURE__ */ jsx(
1812
- Autocomplete$1.Input,
1813
- {
1814
- autoFocus: true,
1815
- className: cn("a63-Command-input", className),
1816
- "data-slot": "command-input",
1817
- placeholder,
1818
- ...props
1819
- }
1820
- )
1821
- ] });
1822
- }
1823
- function CommandPanel({
1824
- className,
1825
- children,
1826
- ...props
1827
- }) {
1828
- return /* @__PURE__ */ jsx(
1829
- ScrollArea,
1830
- {
1831
- className: cn("a63-Command-panel", className),
1832
- "data-slot": "command-panel",
1833
- scrollFade: true,
1834
- showScrollbarOnHover: true,
1835
- ...props,
1836
- children
1837
- }
1838
- );
1839
- }
1840
- function CommandList({
1841
- className,
1842
- ...props
1843
- }) {
1844
- return /* @__PURE__ */ jsx(
1845
- Autocomplete$1.List,
1846
- {
1847
- className: cn("a63-Command-list", className),
1848
- "data-slot": "command-list",
1849
- ...props
1850
- }
1851
- );
1852
- }
1853
- function CommandEmpty({
1854
- className,
1855
- ...props
1856
- }) {
1857
- return /* @__PURE__ */ jsx(
1858
- Autocomplete$1.Empty,
1859
- {
1860
- className: cn("a63-Command-empty", className),
1861
- "data-slot": "command-empty",
1862
- ...props
1863
- }
1864
- );
1865
- }
1866
- function CommandGroup({
776
+ "path",
777
+ {
778
+ d: "M13 4.5 6.5 11 3 7.5",
779
+ stroke: "currentColor",
780
+ strokeLinecap: "round",
781
+ strokeLinejoin: "round",
782
+ strokeWidth: "2"
783
+ }
784
+ ) });
785
+ 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" }) });
786
+ function Checkbox({
1867
787
  className,
788
+ size = checkboxContract.defaultSize,
1868
789
  ...props
1869
790
  }) {
1870
791
  return /* @__PURE__ */ jsx(
1871
- Autocomplete$1.Group,
792
+ Checkbox$1.Root,
1872
793
  {
1873
- className: cn("a63-Command-group", className),
1874
- "data-slot": "command-group",
1875
- ...props
794
+ className: cn("a63-Checkbox", className),
795
+ "data-size": size,
796
+ "data-slot": "checkbox",
797
+ ...props,
798
+ children: /* @__PURE__ */ jsx(
799
+ Checkbox$1.Indicator,
800
+ {
801
+ className: "a63-Checkbox-indicator",
802
+ "data-slot": "checkbox-indicator",
803
+ render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", { ...indicatorProps, children: state.indeterminate ? MinusIcon2 : CheckIcon })
804
+ }
805
+ )
1876
806
  }
1877
807
  );
1878
808
  }
1879
- function CommandGroupLabel({
1880
- className,
1881
- ...props
1882
- }) {
809
+ function Collapsible({ className, ...props }) {
1883
810
  return /* @__PURE__ */ jsx(
1884
- Autocomplete$1.GroupLabel,
811
+ Collapsible$1.Root,
1885
812
  {
1886
- className: cn("a63-Command-group-label", className),
1887
- "data-slot": "command-group-label",
813
+ className: cn("a63-Collapsible", className),
814
+ "data-slot": "collapsible",
1888
815
  ...props
1889
816
  }
1890
817
  );
1891
818
  }
1892
- function CommandCollection({
1893
- ...props
1894
- }) {
1895
- return /* @__PURE__ */ jsx(Autocomplete$1.Collection, { "data-slot": "command-collection", ...props });
1896
- }
1897
- function CommandItem({
819
+ function CollapsibleTrigger({
1898
820
  className,
1899
821
  ...props
1900
822
  }) {
1901
823
  return /* @__PURE__ */ jsx(
1902
- Autocomplete$1.Item,
824
+ Collapsible$1.Trigger,
1903
825
  {
1904
- className: cn("a63-Command-item", className),
1905
- "data-slot": "command-item",
826
+ className: cn("a63-Collapsible-trigger", className),
827
+ "data-slot": "collapsible-trigger",
1906
828
  ...props
1907
829
  }
1908
830
  );
1909
831
  }
1910
- function CommandSeparator({
832
+ function CollapsibleIndicator({
833
+ children,
1911
834
  className,
1912
835
  ...props
1913
836
  }) {
1914
837
  return /* @__PURE__ */ jsx(
1915
- Autocomplete$1.Separator,
838
+ "span",
1916
839
  {
1917
- className: cn("a63-Command-separator", className),
1918
- "data-slot": "command-separator",
1919
- ...props
840
+ ...props,
841
+ "aria-hidden": "true",
842
+ className: cn("a63-Collapsible-indicator", className),
843
+ "data-slot": "collapsible-indicator",
844
+ children: children ?? /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true })
1920
845
  }
1921
846
  );
1922
847
  }
1923
- function CommandShortcut({
848
+ function CollapsibleContent({
1924
849
  className,
1925
850
  ...props
1926
851
  }) {
1927
852
  return /* @__PURE__ */ jsx(
1928
- "kbd",
853
+ Collapsible$1.Panel,
1929
854
  {
1930
- className: cn("a63-Command-shortcut", className),
1931
- "data-slot": "command-shortcut",
855
+ className: cn("a63-Collapsible-content", className),
856
+ "data-slot": "collapsible-content",
1932
857
  ...props
1933
858
  }
1934
859
  );
1935
860
  }
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
- var ConnectedPanelContext = React3.createContext(null);
861
+ var ConnectedPanelContext = React2.createContext(null);
1943
862
  function useConnectedPanelContext(component) {
1944
- const context = React3.useContext(ConnectedPanelContext);
863
+ const context = React2.useContext(ConnectedPanelContext);
1945
864
  if (!context) {
1946
865
  throw new Error(`${component} must be used within ConnectedPanel`);
1947
866
  }
@@ -1960,7 +879,7 @@ function getMotionTextKey(...values) {
1960
879
  if (typeof value === "string" || typeof value === "number" || typeof value === "bigint") {
1961
880
  return String(value);
1962
881
  }
1963
- if (React3.isValidElement(value) && value.key !== null) {
882
+ if (React2.isValidElement(value) && value.key !== null) {
1964
883
  return String(value.key);
1965
884
  }
1966
885
  return `${index}:${typeof value}`;
@@ -1983,8 +902,8 @@ function ConnectedPanel({
1983
902
  wrapperClassName,
1984
903
  ...props
1985
904
  }) {
1986
- const [uncontrolledOpen, setUncontrolledOpen] = React3.useState(defaultOpen);
1987
- const contentId = React3.useId();
905
+ const [uncontrolledOpen, setUncontrolledOpen] = React2.useState(defaultOpen);
906
+ const contentId = React2.useId();
1988
907
  const reducedMotion = Boolean(useReducedMotion());
1989
908
  const open = controlledOpen ?? uncontrolledOpen;
1990
909
  const panelStyle = {
@@ -1994,7 +913,7 @@ function ConnectedPanel({
1994
913
  "--connected-panel-transition-ease": PANEL_SIZE_EASE_CSS,
1995
914
  ...style
1996
915
  };
1997
- const setOpen = React3.useCallback(
916
+ const setOpen = React2.useCallback(
1998
917
  (nextOpen) => {
1999
918
  if (controlledOpen === void 0) {
2000
919
  setUncontrolledOpen(nextOpen);
@@ -2003,7 +922,7 @@ function ConnectedPanel({
2003
922
  },
2004
923
  [controlledOpen, onOpenChange]
2005
924
  );
2006
- const value = React3.useMemo(
925
+ const value = React2.useMemo(
2007
926
  () => ({
2008
927
  align,
2009
928
  contentId,
@@ -2470,301 +1389,126 @@ function ContextMenuLabel({
2470
1389
  }
2471
1390
  );
2472
1391
  }
2473
- function ContextMenuSeparator({
2474
- className,
2475
- ...props
2476
- }) {
2477
- return /* @__PURE__ */ jsx(
2478
- ContextMenu$1.Separator,
2479
- {
2480
- className: cn("a63-Menu-separator", className),
2481
- "data-slot": "context-menu-separator",
2482
- ...props
2483
- }
2484
- );
2485
- }
2486
- function ContextMenuShortcut({
2487
- className,
2488
- ...props
2489
- }) {
2490
- return /* @__PURE__ */ jsx(
2491
- "span",
2492
- {
2493
- className: cn("a63-Menu-shortcut", className),
2494
- "data-slot": "context-menu-shortcut",
2495
- ...props
2496
- }
2497
- );
2498
- }
2499
- var feedbackEnterTransition = {
2500
- filter: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] },
2501
- opacity: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] }
2502
- };
2503
- var feedbackExitTransition = {
2504
- filter: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] },
2505
- opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
2506
- };
2507
- var reducedMotionTransition = {
2508
- opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
2509
- };
2510
- function CopyButton({
2511
- "aria-hidden": ariaHidden,
2512
- children,
2513
- className,
2514
- copiedLabel = "Copied to clipboard",
2515
- label = "Copy",
2516
- size,
2517
- successMessage,
2518
- tabIndex,
2519
- value,
2520
- variant = "ghost"
2521
- }) {
2522
- const [copied, setCopied] = useState(false);
2523
- const resolvedSize = size ?? (children ? "sm" : "icon-sm");
2524
- const handleCopy = async () => {
2525
- try {
2526
- await navigator.clipboard.writeText(value);
2527
- setCopied(true);
2528
- toast.success(successMessage ?? `${label} copied to clipboard`);
2529
- setTimeout(() => setCopied(false), 2e3);
2530
- } catch {
2531
- toast.error("Failed to copy to clipboard");
2532
- }
2533
- };
2534
- return /* @__PURE__ */ jsx(
2535
- Button,
2536
- {
2537
- "aria-hidden": ariaHidden,
2538
- "aria-label": children ? void 0 : copied ? copiedLabel : label,
2539
- className: cn("a63-CopyButton", !children && "a63-CopyButton--icon-only", className),
2540
- "data-copied": copied ? "" : void 0,
2541
- onClick: () => {
2542
- void handleCopy();
2543
- },
2544
- size: resolvedSize,
2545
- tabIndex,
2546
- title: `${label} ${value}`,
2547
- variant,
2548
- children: /* @__PURE__ */ jsx(CopyButtonFeedback, { copied, children })
2549
- }
2550
- );
2551
- }
2552
- function CopyButtonFeedback({
2553
- children,
2554
- copied
2555
- }) {
2556
- const reduceMotion = useReducedMotion();
2557
- const swapFrom = reduceMotion ? { opacity: 0 } : { filter: "blur(2px)", opacity: 0 };
2558
- const swapTo = reduceMotion ? { opacity: 1 } : { filter: "blur(0px)", opacity: 1 };
2559
- return /* @__PURE__ */ jsxs("span", { className: "a63-CopyButton-swap", "data-slot": "copy-button-swap", children: [
2560
- /* @__PURE__ */ jsxs(
2561
- motion.span,
2562
- {
2563
- animate: copied ? swapFrom : swapTo,
2564
- "aria-hidden": copied ? true : void 0,
2565
- className: "a63-CopyButton-item",
2566
- "data-slot": "copy-button-item",
2567
- initial: false,
2568
- transition: reduceMotion ? reducedMotionTransition : copied ? feedbackExitTransition : feedbackEnterTransition,
2569
- children: [
2570
- /* @__PURE__ */ jsx(Copy, { className: "a63-CopyButton-icon" }),
2571
- children
2572
- ]
2573
- }
2574
- ),
2575
- /* @__PURE__ */ jsxs(
2576
- motion.span,
2577
- {
2578
- animate: copied ? swapTo : swapFrom,
2579
- "aria-hidden": copied ? void 0 : true,
2580
- className: "a63-CopyButton-item",
2581
- "data-slot": "copy-button-item",
2582
- initial: false,
2583
- transition: reduceMotion ? reducedMotionTransition : copied ? feedbackEnterTransition : feedbackExitTransition,
2584
- children: [
2585
- /* @__PURE__ */ jsx(AnimatedCheck, { animate: copied, className: "a63-CopyButton-check" }),
2586
- children && /* @__PURE__ */ jsx("span", { children: "Copied!" })
2587
- ]
2588
- }
2589
- )
2590
- ] });
2591
- }
2592
- var DialogCreateHandle = Dialog$1.createHandle;
2593
- var Dialog = Dialog$1.Root;
2594
- function DialogPortal(props) {
2595
- return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "dialog-portal", ...props });
2596
- }
2597
- function DialogTrigger({
2598
- className,
2599
- ...props
2600
- }) {
2601
- return /* @__PURE__ */ jsx(
2602
- Dialog$1.Trigger,
2603
- {
2604
- className: cn("a63-Dialog-trigger", className),
2605
- "data-slot": "dialog-trigger",
2606
- ...props
2607
- }
2608
- );
2609
- }
2610
- function DialogClose(props) {
2611
- return /* @__PURE__ */ jsx(Dialog$1.Close, { "data-slot": "dialog-close", ...props });
2612
- }
2613
- function DialogBackdrop({
2614
- className,
2615
- ...props
2616
- }) {
2617
- return /* @__PURE__ */ jsx(
2618
- Dialog$1.Backdrop,
2619
- {
2620
- className: cn("a63-Dialog-backdrop", className),
2621
- "data-slot": "dialog-backdrop",
2622
- ...props
2623
- }
2624
- );
2625
- }
2626
- function DialogViewport({
2627
- className,
2628
- ...props
2629
- }) {
2630
- return /* @__PURE__ */ jsx(
2631
- Dialog$1.Viewport,
2632
- {
2633
- className: cn("a63-Dialog-viewport", className),
2634
- "data-slot": "dialog-viewport",
2635
- ...props
2636
- }
2637
- );
2638
- }
2639
- function CloseIcon2() {
2640
- return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: /* @__PURE__ */ jsx(
2641
- "path",
2642
- {
2643
- d: "m4 4 8 8M12 4l-8 8",
2644
- stroke: "currentColor",
2645
- strokeLinecap: "round",
2646
- strokeLinejoin: "round",
2647
- strokeWidth: "1.5"
2648
- }
2649
- ) });
2650
- }
2651
- function DialogPopup({
2652
- className,
2653
- children,
2654
- showCloseButton = true,
2655
- bottomStickOnMobile = true,
2656
- mobilePlacement,
2657
- size = "default",
2658
- closeProps,
2659
- portalProps,
2660
- ...props
2661
- }) {
2662
- const resolvedMobilePlacement = mobilePlacement ?? (bottomStickOnMobile ? "bottom" : "center");
2663
- const stickToBottomOnMobile = resolvedMobilePlacement === "bottom";
2664
- return /* @__PURE__ */ jsxs(DialogPortal, { ...portalProps, children: [
2665
- /* @__PURE__ */ jsx(DialogBackdrop, {}),
2666
- /* @__PURE__ */ jsx(DialogViewport, { "data-mobile-placement": resolvedMobilePlacement, children: /* @__PURE__ */ jsxs(
2667
- Dialog$1.Popup,
2668
- {
2669
- className: cn("a63-Dialog-popup", className),
2670
- "data-mobile-placement": resolvedMobilePlacement,
2671
- "data-size": size,
2672
- "data-slot": "dialog-popup",
2673
- "data-stick-bottom": stickToBottomOnMobile ? "" : void 0,
2674
- ...props,
2675
- children: [
2676
- children,
2677
- showCloseButton && /* @__PURE__ */ jsx(
2678
- Dialog$1.Close,
2679
- {
2680
- "aria-label": "Close",
2681
- className: "a63-Dialog-close-button",
2682
- "data-slot": "dialog-close-button",
2683
- ...closeProps,
2684
- children: /* @__PURE__ */ jsx(CloseIcon2, {})
2685
- }
2686
- )
2687
- ]
2688
- }
2689
- ) })
2690
- ] });
2691
- }
2692
- function DialogHeader({
2693
- className,
2694
- render,
2695
- ...props
2696
- }) {
2697
- const defaultProps = {
2698
- className: cn("a63-Dialog-header", className),
2699
- "data-slot": "dialog-header"
2700
- };
2701
- return useRender({
2702
- defaultTagName: "div",
2703
- props: mergeProps(defaultProps, props),
2704
- render
2705
- });
2706
- }
2707
- function DialogFooter({
2708
- className,
2709
- variant = "default",
2710
- render,
2711
- ...props
2712
- }) {
2713
- const defaultProps = {
2714
- className: cn("a63-Dialog-footer", className),
2715
- "data-slot": "dialog-footer",
2716
- "data-variant": variant
2717
- };
2718
- return useRender({
2719
- defaultTagName: "div",
2720
- props: mergeProps(defaultProps, props),
2721
- render
2722
- });
2723
- }
2724
- function DialogTitle({
1392
+ function ContextMenuSeparator({
2725
1393
  className,
2726
1394
  ...props
2727
1395
  }) {
2728
1396
  return /* @__PURE__ */ jsx(
2729
- Dialog$1.Title,
1397
+ ContextMenu$1.Separator,
2730
1398
  {
2731
- className: cn("a63-Dialog-title", className),
2732
- "data-slot": "dialog-title",
1399
+ className: cn("a63-Menu-separator", className),
1400
+ "data-slot": "context-menu-separator",
2733
1401
  ...props
2734
1402
  }
2735
1403
  );
2736
1404
  }
2737
- function DialogDescription({
1405
+ function ContextMenuShortcut({
2738
1406
  className,
2739
1407
  ...props
2740
1408
  }) {
2741
1409
  return /* @__PURE__ */ jsx(
2742
- Dialog$1.Description,
1410
+ "span",
2743
1411
  {
2744
- className: cn("a63-Dialog-description", className),
2745
- "data-slot": "dialog-description",
1412
+ className: cn("a63-Menu-shortcut", className),
1413
+ "data-slot": "context-menu-shortcut",
2746
1414
  ...props
2747
1415
  }
2748
1416
  );
2749
1417
  }
2750
- function DialogPanel({
1418
+ var feedbackEnterTransition = {
1419
+ filter: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] },
1420
+ opacity: { delay: 0.12, duration: 0.18, ease: [0.32, 0.72, 0, 1] }
1421
+ };
1422
+ var feedbackExitTransition = {
1423
+ filter: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] },
1424
+ opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
1425
+ };
1426
+ var reducedMotionTransition = {
1427
+ opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
1428
+ };
1429
+ function CopyButton({
1430
+ "aria-hidden": ariaHidden,
1431
+ children,
2751
1432
  className,
2752
- scrollFade = true,
2753
- render,
2754
- ...props
1433
+ copiedLabel = "Copied to clipboard",
1434
+ label = "Copy",
1435
+ size,
1436
+ successMessage,
1437
+ tabIndex,
1438
+ value,
1439
+ variant = "ghost"
2755
1440
  }) {
2756
- const defaultProps = {
2757
- className: cn("a63-Dialog-panel", className),
2758
- "data-scroll-fade": scrollFade ? "" : void 0,
2759
- "data-slot": "dialog-panel"
1441
+ const [copied, setCopied] = useState(false);
1442
+ const resolvedSize = size ?? (children ? "sm" : "icon-sm");
1443
+ const handleCopy = async () => {
1444
+ try {
1445
+ await navigator.clipboard.writeText(value);
1446
+ setCopied(true);
1447
+ toast.success(successMessage ?? `${label} copied to clipboard`);
1448
+ setTimeout(() => setCopied(false), 2e3);
1449
+ } catch {
1450
+ toast.error("Failed to copy to clipboard");
1451
+ }
2760
1452
  };
2761
- return useRender({
2762
- defaultTagName: "div",
2763
- props: mergeProps(defaultProps, props),
2764
- render
2765
- });
1453
+ return /* @__PURE__ */ jsx(
1454
+ Button,
1455
+ {
1456
+ "aria-hidden": ariaHidden,
1457
+ "aria-label": children ? void 0 : copied ? copiedLabel : label,
1458
+ className: cn("a63-CopyButton", !children && "a63-CopyButton--icon-only", className),
1459
+ "data-copied": copied ? "" : void 0,
1460
+ onClick: () => {
1461
+ void handleCopy();
1462
+ },
1463
+ size: resolvedSize,
1464
+ tabIndex,
1465
+ title: `${label} ${value}`,
1466
+ variant,
1467
+ children: /* @__PURE__ */ jsx(CopyButtonFeedback, { copied, children })
1468
+ }
1469
+ );
1470
+ }
1471
+ function CopyButtonFeedback({
1472
+ children,
1473
+ copied
1474
+ }) {
1475
+ const reduceMotion = useReducedMotion();
1476
+ const swapFrom = reduceMotion ? { opacity: 0 } : { filter: "blur(2px)", opacity: 0 };
1477
+ const swapTo = reduceMotion ? { opacity: 1 } : { filter: "blur(0px)", opacity: 1 };
1478
+ return /* @__PURE__ */ jsxs("span", { className: "a63-CopyButton-swap", "data-slot": "copy-button-swap", children: [
1479
+ /* @__PURE__ */ jsxs(
1480
+ motion.span,
1481
+ {
1482
+ animate: copied ? swapFrom : swapTo,
1483
+ "aria-hidden": copied ? true : void 0,
1484
+ className: "a63-CopyButton-item",
1485
+ "data-slot": "copy-button-item",
1486
+ initial: false,
1487
+ transition: reduceMotion ? reducedMotionTransition : copied ? feedbackExitTransition : feedbackEnterTransition,
1488
+ children: [
1489
+ /* @__PURE__ */ jsx(Copy, { className: "a63-CopyButton-icon" }),
1490
+ children
1491
+ ]
1492
+ }
1493
+ ),
1494
+ /* @__PURE__ */ jsxs(
1495
+ motion.span,
1496
+ {
1497
+ animate: copied ? swapTo : swapFrom,
1498
+ "aria-hidden": copied ? void 0 : true,
1499
+ className: "a63-CopyButton-item",
1500
+ "data-slot": "copy-button-item",
1501
+ initial: false,
1502
+ transition: reduceMotion ? reducedMotionTransition : copied ? feedbackEnterTransition : feedbackExitTransition,
1503
+ children: [
1504
+ /* @__PURE__ */ jsx(AnimatedCheck, { animate: copied, className: "a63-CopyButton-check" }),
1505
+ children && /* @__PURE__ */ jsx("span", { children: "Copied!" })
1506
+ ]
1507
+ }
1508
+ )
1509
+ ] });
2766
1510
  }
2767
- var DrawerContext = React3.createContext({
1511
+ var DrawerContext = React2.createContext({
2768
1512
  direction: "bottom"
2769
1513
  });
2770
1514
  function composeDrawerSlot(render, children) {
@@ -2856,7 +1600,7 @@ function DrawerContent({
2856
1600
  viewportProps,
2857
1601
  ...props
2858
1602
  }) {
2859
- const { direction } = React3.useContext(DrawerContext);
1603
+ const { direction } = React2.useContext(DrawerContext);
2860
1604
  return /* @__PURE__ */ jsxs(DrawerPortal, { ...portalProps, children: [
2861
1605
  /* @__PURE__ */ jsx(DrawerOverlay, {}),
2862
1606
  /* @__PURE__ */ jsx(
@@ -3329,10 +2073,17 @@ var feedbackIcons = {
3329
2073
  clock: Clock,
3330
2074
  fileSearch: FileSearch,
3331
2075
  inbox: Inbox,
2076
+ refreshCw: RefreshCw,
3332
2077
  searchX: SearchX,
3333
2078
  spinner: Spinner,
3334
2079
  wifiOff: WifiOff
3335
2080
  };
2081
+ function renderFeedbackIcon(icon) {
2082
+ if (icon === void 0) return null;
2083
+ if (typeof icon !== "string") return icon;
2084
+ const IconComponent = feedbackIcons[icon];
2085
+ return IconComponent ? /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": true }) : null;
2086
+ }
3336
2087
  var stateConfig = {
3337
2088
  empty: {
3338
2089
  icon: "inbox",
@@ -3388,9 +2139,8 @@ function getFeedbackDescription({
3388
2139
  return stateConfig[state].defaultDescription;
3389
2140
  }
3390
2141
  function FeedbackStateActionButton({ action }) {
3391
- const IconComponent = action.icon ? feedbackIcons[action.icon] : void 0;
3392
2142
  const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
3393
- IconComponent ? /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": true }) : null,
2143
+ renderFeedbackIcon(action.icon),
3394
2144
  action.label
3395
2145
  ] });
3396
2146
  if (action.href) {
@@ -3420,8 +2170,7 @@ function FeedbackState({
3420
2170
  const config = stateConfig[state];
3421
2171
  const finalDescription = getFeedbackDescription({ description, error, query, state });
3422
2172
  const finalTitle = title || config.defaultTitle;
3423
- const iconName = icon || config.icon;
3424
- const IconComponent = feedbackIcons[iconName];
2173
+ const iconNode = renderFeedbackIcon(icon ?? config.icon);
3425
2174
  return /* @__PURE__ */ jsxs(
3426
2175
  "div",
3427
2176
  {
@@ -3434,7 +2183,7 @@ function FeedbackState({
3434
2183
  role: state === "error" ? "alert" : state === "loading" ? "status" : void 0,
3435
2184
  children: [
3436
2185
  /* @__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,
2186
+ showIcon && iconNode ? /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-media", "data-slot": "feedback-state-media", children: iconNode }) : null,
3438
2187
  /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-title", "data-slot": "feedback-state-title", children: finalTitle }),
3439
2188
  /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-description", "data-slot": "feedback-state-description", children: finalDescription })
3440
2189
  ] }),
@@ -3443,7 +2192,7 @@ function FeedbackState({
3443
2192
  {
3444
2193
  action
3445
2194
  },
3446
- `${action.label}-${action.href ?? action.icon ?? "button"}`
2195
+ `${action.label}-${action.href ?? "button"}`
3447
2196
  )) }) : null
3448
2197
  ]
3449
2198
  }
@@ -3556,15 +2305,15 @@ function FieldError({
3556
2305
  );
3557
2306
  }
3558
2307
  var Form = FormProvider;
3559
- var FormFieldContext = React3.createContext(null);
2308
+ var FormFieldContext = React2.createContext(null);
3560
2309
  var FormField = ({
3561
2310
  ...props
3562
2311
  }) => {
3563
2312
  return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
3564
2313
  };
3565
2314
  var useFormField = () => {
3566
- const fieldContext = React3.useContext(FormFieldContext);
3567
- const itemContext = React3.useContext(FormItemContext);
2315
+ const fieldContext = React2.useContext(FormFieldContext);
2316
+ const itemContext = React2.useContext(FormItemContext);
3568
2317
  if (!fieldContext) {
3569
2318
  throw new Error("useFormField should be used within <FormField>");
3570
2319
  }
@@ -3584,9 +2333,9 @@ var useFormField = () => {
3584
2333
  ...fieldState
3585
2334
  };
3586
2335
  };
3587
- var FormItemContext = React3.createContext(null);
2336
+ var FormItemContext = React2.createContext(null);
3588
2337
  function FormItem({ className, ...props }) {
3589
- const id = React3.useId();
2338
+ const id = React2.useId();
3590
2339
  return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { className: cn("a63-FormItem", className), "data-slot": "form-item", ...props }) });
3591
2340
  }
3592
2341
  function FormLabel({ className, ...props }) {
@@ -3695,202 +2444,6 @@ function HoverCardContent({
3695
2444
  }
3696
2445
  ) });
3697
2446
  }
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
2447
  function InputOTP({
3895
2448
  className,
3896
2449
  containerClassName,
@@ -3914,7 +2467,7 @@ function InputOTPSlot({
3914
2467
  className,
3915
2468
  ...props
3916
2469
  }) {
3917
- const inputOTPContext = React3.useContext(OTPInputContext);
2470
+ const inputOTPContext = React2.useContext(OTPInputContext);
3918
2471
  const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
3919
2472
  return /* @__PURE__ */ jsxs(
3920
2473
  "div",
@@ -4135,393 +2688,15 @@ var LoadMoreTrigger = forwardRef(
4135
2688
  type: "button",
4136
2689
  children: retryLabel
4137
2690
  }
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
2691
+ ) : null
2692
+ ]
2693
+ }
2694
+ )
2695
+ }
2696
+ );
4520
2697
  }
4521
- ];
4522
- function getReactRendererConformance(contractId) {
4523
- return reactRendererConformance.find((evidence) => evidence.contractId === contractId);
4524
- }
2698
+ );
2699
+ LoadMoreTrigger.displayName = "LoadMoreTrigger";
4525
2700
  function Marquee({
4526
2701
  className,
4527
2702
  reverse = false,
@@ -4742,156 +2917,6 @@ function MenubarSubContent({
4742
2917
  }
4743
2918
  );
4744
2919
  }
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
2920
  function Pagination({ className, ...props }) {
4896
2921
  return /* @__PURE__ */ jsx(
4897
2922
  "nav",
@@ -5162,73 +3187,6 @@ function PreviewCardPopup({
5162
3187
  }
5163
3188
  ) });
5164
3189
  }
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
3190
  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
3191
  function buildMask(position, from, to) {
5234
3192
  if (position === "both") return BOTH_GRADIENT;
@@ -5326,264 +3284,39 @@ function ResizablePanel({ ...props }) {
5326
3284
  }
5327
3285
  function ResizableHandle({
5328
3286
  "aria-label": ariaLabel = "Resize panels",
5329
- withHandle,
5330
- 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
- ] })
3287
+ withHandle,
3288
+ className,
3289
+ ...props
3290
+ }) {
3291
+ const orientation = useContext(ResizableOrientationContext);
3292
+ return /* @__PURE__ */ jsx(
3293
+ ResizablePrimitive.Separator,
3294
+ {
3295
+ "aria-label": ariaLabel,
3296
+ className: cn("a63-Resizable-handle", className),
3297
+ "data-panel-group-direction": orientation,
3298
+ "data-slot": "resizable-handle",
3299
+ ...props,
3300
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "a63-Resizable-handle-grip", "data-slot": "resizable-handle-grip", children: /* @__PURE__ */ jsxs(
3301
+ "svg",
3302
+ {
3303
+ "aria-hidden": "true",
3304
+ className: "a63-Resizable-handle-grip-icon",
3305
+ fill: "currentColor",
3306
+ height: "10",
3307
+ viewBox: "0 0 16 16",
3308
+ width: "10",
3309
+ children: [
3310
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "3.5", r: "1.1" }),
3311
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "1.1" }),
3312
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "12.5", r: "1.1" })
3313
+ ]
3314
+ }
3315
+ ) })
5583
3316
  }
5584
3317
  );
5585
3318
  }
5586
- function SearchIcon2() {
3319
+ function SearchIcon() {
5587
3320
  return /* @__PURE__ */ jsxs("svg", { "aria-hidden": true, fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", children: [
5588
3321
  /* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.25", stroke: "currentColor", strokeWidth: "1.5" }),
5589
3322
  /* @__PURE__ */ jsx("path", { d: "m10.25 10.25 3 3", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "1.5" })
@@ -5605,9 +3338,9 @@ function SearchField({
5605
3338
  value,
5606
3339
  ...props
5607
3340
  }) {
5608
- const inputRef = React3.useRef(null);
3341
+ const inputRef = React2.useRef(null);
5609
3342
  const isControlled = value !== void 0;
5610
- const [internalValue, setInternalValue] = React3.useState(defaultValue);
3343
+ const [internalValue, setInternalValue] = React2.useState(defaultValue);
5611
3344
  const currentValue = isControlled ? value : internalValue;
5612
3345
  const state = disabled ? "disabled" : currentValue.length > 0 ? "query" : searchFieldContract.states[0];
5613
3346
  const updateValue = (nextValue) => {
@@ -5624,7 +3357,7 @@ function SearchField({
5624
3357
  "data-slot": "search-field",
5625
3358
  disabled,
5626
3359
  children: [
5627
- /* @__PURE__ */ jsx(InputGroupAddon, { "data-slot": "search-field-icon", children: /* @__PURE__ */ jsx(SearchIcon2, {}) }),
3360
+ /* @__PURE__ */ jsx(InputGroupAddon, { "data-slot": "search-field-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
5628
3361
  /* @__PURE__ */ jsx(
5629
3362
  InputGroupInput,
5630
3363
  {
@@ -5656,343 +3389,6 @@ function SearchField({
5656
3389
  }
5657
3390
  );
5658
3391
  }
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
3392
  function Skeleton({ className, ...props }) {
5997
3393
  return /* @__PURE__ */ jsx(
5998
3394
  "div",
@@ -6004,45 +3400,6 @@ function Skeleton({ className, ...props }) {
6004
3400
  }
6005
3401
  );
6006
3402
  }
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
3403
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
6047
3404
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
6048
3405
  var SIDEBAR_WIDTH = "16rem";
@@ -6051,8 +3408,8 @@ var SIDEBAR_WIDTH_ICON = "3rem";
6051
3408
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
6052
3409
  var MOBILE_BREAKPOINT = 768;
6053
3410
  function useIsMobile() {
6054
- const [isMobile, setIsMobile] = React3.useState(void 0);
6055
- React3.useEffect(() => {
3411
+ const [isMobile, setIsMobile] = React2.useState(void 0);
3412
+ React2.useEffect(() => {
6056
3413
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
6057
3414
  const onChange = () => {
6058
3415
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -6067,14 +3424,14 @@ function resolveRender(asChild, render, children) {
6067
3424
  if (render) {
6068
3425
  return render;
6069
3426
  }
6070
- if (asChild && React3.isValidElement(children)) {
3427
+ if (asChild && React2.isValidElement(children)) {
6071
3428
  return children;
6072
3429
  }
6073
3430
  return void 0;
6074
3431
  }
6075
- var SidebarContext = React3.createContext(null);
3432
+ var SidebarContext = React2.createContext(null);
6076
3433
  function useSidebar() {
6077
- const context = React3.useContext(SidebarContext);
3434
+ const context = React2.useContext(SidebarContext);
6078
3435
  if (!context) {
6079
3436
  throw new Error("useSidebar must be used within a SidebarProvider.");
6080
3437
  }
@@ -6090,10 +3447,10 @@ function SidebarProvider({
6090
3447
  ...props
6091
3448
  }) {
6092
3449
  const isMobile = useIsMobile();
6093
- const [openMobile, setOpenMobile] = React3.useState(false);
6094
- const [_open, _setOpen] = React3.useState(defaultOpen);
3450
+ const [openMobile, setOpenMobile] = React2.useState(false);
3451
+ const [_open, _setOpen] = React2.useState(defaultOpen);
6095
3452
  const open = openProp ?? _open;
6096
- const setOpen = React3.useCallback(
3453
+ const setOpen = React2.useCallback(
6097
3454
  (value) => {
6098
3455
  const openState = typeof value === "function" ? value(open) : value;
6099
3456
  if (setOpenProp) {
@@ -6105,10 +3462,10 @@ function SidebarProvider({
6105
3462
  },
6106
3463
  [setOpenProp, open]
6107
3464
  );
6108
- const toggleSidebar = React3.useCallback(() => {
3465
+ const toggleSidebar = React2.useCallback(() => {
6109
3466
  return isMobile ? setOpenMobile((o) => !o) : setOpen((o) => !o);
6110
3467
  }, [isMobile, setOpen]);
6111
- React3.useEffect(() => {
3468
+ React2.useEffect(() => {
6112
3469
  const handleKeyDown = (event) => {
6113
3470
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
6114
3471
  event.preventDefault();
@@ -6119,7 +3476,7 @@ function SidebarProvider({
6119
3476
  return () => window.removeEventListener("keydown", handleKeyDown);
6120
3477
  }, [toggleSidebar]);
6121
3478
  const state = open ? "expanded" : "collapsed";
6122
- const contextValue = React3.useMemo(
3479
+ const contextValue = React2.useMemo(
6123
3480
  () => ({
6124
3481
  state,
6125
3482
  open,
@@ -6538,8 +3895,8 @@ function SidebarMenuSkeleton({
6538
3895
  showIcon = false,
6539
3896
  ...props
6540
3897
  }) {
6541
- const id = React3.useId();
6542
- const width = React3.useMemo(() => {
3898
+ const id = React2.useId();
3899
+ const width = React2.useMemo(() => {
6543
3900
  const hash = Array.from(id).reduce((total, character) => total + character.charCodeAt(0), 0);
6544
3901
  return `${50 + hash % 40}%`;
6545
3902
  }, [id]);
@@ -6714,23 +4071,23 @@ function withTickerLabel(element) {
6714
4071
  const props = element.props;
6715
4072
  const label = props.children;
6716
4073
  if (typeof label === "string") {
6717
- return React3.cloneElement(
4074
+ return React2.cloneElement(
6718
4075
  element,
6719
4076
  void 0,
6720
4077
  /* @__PURE__ */ jsx(TextTicker, { animationType: "marquee", className: "a63-SidebarNavTree-ticker", children: label })
6721
4078
  );
6722
4079
  }
6723
- const children = React3.Children.toArray(label);
4080
+ const children = React2.Children.toArray(label);
6724
4081
  const [firstChild, ...restChildren] = children;
6725
- if (React3.isValidElement(firstChild)) {
4082
+ if (React2.isValidElement(firstChild)) {
6726
4083
  const firstChildProps = firstChild.props;
6727
4084
  if (typeof firstChildProps.children !== "string") {
6728
4085
  return element;
6729
4086
  }
6730
- return React3.cloneElement(
4087
+ return React2.cloneElement(
6731
4088
  element,
6732
4089
  void 0,
6733
- React3.cloneElement(firstChild, {
4090
+ React2.cloneElement(firstChild, {
6734
4091
  className: cn(firstChildProps.className, "a63-SidebarNavTree-ticker"),
6735
4092
  children: /* @__PURE__ */ jsx(TextTicker, { animationType: "marquee", className: "a63-SidebarNavTree-ticker-inner", children: firstChildProps.children })
6736
4093
  }),
@@ -6879,7 +4236,7 @@ function TableCell({ className, ...props }) {
6879
4236
  function TableCaption({ className, ...props }) {
6880
4237
  return /* @__PURE__ */ jsx("caption", { className: cn("a63-Table-caption", className), "data-slot": "table-caption", ...props });
6881
4238
  }
6882
- var TabsSizeContext = React3.createContext(tabsContract.defaultSize);
4239
+ var TabsSizeContext = React2.createContext(tabsContract.defaultSize);
6883
4240
  function Tabs({ className, ...props }) {
6884
4241
  return /* @__PURE__ */ jsx(Tabs$1.Root, { className: cn("a63-Tabs", className), "data-slot": "tabs", ...props });
6885
4242
  }
@@ -6906,7 +4263,7 @@ function TabsList({
6906
4263
  );
6907
4264
  }
6908
4265
  function TabsTab({ className, size, ...props }) {
6909
- const contextSize = React3.useContext(TabsSizeContext);
4266
+ const contextSize = React2.useContext(TabsSizeContext);
6910
4267
  const resolvedSize = size ?? contextSize;
6911
4268
  return /* @__PURE__ */ jsx(
6912
4269
  Tabs$1.Tab,
@@ -6987,7 +4344,7 @@ function Toggle({
6987
4344
  }
6988
4345
  );
6989
4346
  }
6990
- var ToggleGroupContext = React3.createContext({
4347
+ var ToggleGroupContext = React2.createContext({
6991
4348
  orientation: toggleGroupContract.defaultOrientation,
6992
4349
  size: toggleContract.defaultSize,
6993
4350
  tone: toggleContract.defaultTone
@@ -7019,7 +4376,7 @@ function ToggleGroupItem({
7019
4376
  tone,
7020
4377
  ...props
7021
4378
  }) {
7022
- const group = React3.useContext(ToggleGroupContext);
4379
+ const group = React2.useContext(ToggleGroupContext);
7023
4380
  return /* @__PURE__ */ jsx(
7024
4381
  Toggle,
7025
4382
  {
@@ -7035,7 +4392,7 @@ function ToggleGroupSeparator({
7035
4392
  orientation,
7036
4393
  ...props
7037
4394
  }) {
7038
- const group = React3.useContext(ToggleGroupContext);
4395
+ const group = React2.useContext(ToggleGroupContext);
7039
4396
  const resolvedOrientation = orientation ?? (group.orientation === "horizontal" ? "vertical" : "horizontal");
7040
4397
  return /* @__PURE__ */ jsx(
7041
4398
  "div",
@@ -7285,7 +4642,7 @@ function useExtractColor(imageUrl, options = {}) {
7285
4642
  }, [key, imageUrl, maxSize, sampleRegion, similarityThreshold, crossOrigin]);
7286
4643
  return state;
7287
4644
  }
7288
- var UIEnvironmentContext = React3.createContext(defaultUIEnvironment);
4645
+ var UIEnvironmentContext = React2.createContext(defaultUIEnvironment);
7289
4646
  function UIProvider({
7290
4647
  brand,
7291
4648
  className,
@@ -7298,8 +4655,8 @@ function UIProvider({
7298
4655
  theme,
7299
4656
  ...props
7300
4657
  }) {
7301
- const parent = React3.useContext(UIEnvironmentContext);
7302
- const environment = React3.useMemo(
4658
+ const parent = React2.useContext(UIEnvironmentContext);
4659
+ const environment = React2.useMemo(
7303
4660
  () => ({
7304
4661
  brand: brand ?? parent.brand,
7305
4662
  density: density ?? parent.density,
@@ -7329,9 +4686,30 @@ function UIProvider({
7329
4686
  }) });
7330
4687
  }
7331
4688
  function useUIEnvironment() {
7332
- return React3.useContext(UIEnvironmentContext);
4689
+ return React2.useContext(UIEnvironmentContext);
4690
+ }
4691
+ function withoutModeClasses(className) {
4692
+ return className?.split(/\s+/).filter((name) => name && name !== "light" && name !== "dark").join(" ");
4693
+ }
4694
+ function Atom63Theme({
4695
+ className,
4696
+ mode = "light",
4697
+ render,
4698
+ theme = defaultUIEnvironment.theme,
4699
+ ...props
4700
+ }) {
4701
+ const themeProps = {
4702
+ className: cn("a63-Atom63Theme", withoutModeClasses(className), mode),
4703
+ "data-a63-mode": mode,
4704
+ "data-a63-theme": theme
4705
+ };
4706
+ return useRender({
4707
+ defaultTagName: "div",
4708
+ props: mergeProps(props, themeProps),
4709
+ render
4710
+ });
7333
4711
  }
7334
4712
 
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 };
4713
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle, AnimatedCheck, Atom63Theme, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleIndicator, CollapsibleTrigger, ConnectedPanel, ConnectedPanelBody, ConnectedPanelContent, ConnectedPanelDescription, ConnectedPanelFooter, ConnectedPanelHeader, ConnectedPanelTitle, ConnectedPanelTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CopyButtonFeedback, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyErrorDetail, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, LoadMoreTrigger, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelSettingButton, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, PreviewCard, PreviewCardPopup, PreviewCardTrigger, ProgressiveBlur, Radio, RadioGroup, Radio as RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, SearchField, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavCollapsibleItem, SidebarNavGroup, SidebarNavLinkItem, SidebarNavSubLinkItem, SidebarNavSubList, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, Switch, TINT_MAX_LUMINANCE, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTab, TabsTab as TabsTrigger, TextTicker, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupSeparator, UIProvider, capColorForContrast, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, loadAndExtractColor, useCarousel, useExtractColor, useFormField, useSidebar, useUIEnvironment };
7336
4714
  //# sourceMappingURL=index.js.map
7337
4715
  //# sourceMappingURL=index.js.map