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

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 (96) hide show
  1. package/README.md +12 -0
  2. package/dist/button-DMnQeAEL.d.ts +22 -0
  3. package/dist/calendar/index.d.ts +2 -1
  4. package/dist/calendar/index.js +16 -1
  5. package/dist/calendar/index.js.map +1 -1
  6. package/dist/{chunk-J77BAGTA.js → chunk-IFBF2IA3.js} +17 -6
  7. package/dist/chunk-IFBF2IA3.js.map +1 -0
  8. package/dist/{chunk-NBHGMMQN.js → chunk-R7IQ3IL5.js} +26 -4
  9. package/dist/chunk-R7IQ3IL5.js.map +1 -0
  10. package/dist/{chunk-GDUMA6FI.js → chunk-RLF45GBS.js} +443 -275
  11. package/dist/chunk-RLF45GBS.js.map +1 -0
  12. package/dist/{chunk-R67OZVA2.js → chunk-WL27K6MO.js} +3 -2
  13. package/dist/chunk-WL27K6MO.js.map +1 -0
  14. package/dist/{chunk-X5L5DEUZ.js → chunk-ZEY2VU4O.js} +3 -3
  15. package/dist/{chunk-X5L5DEUZ.js.map → chunk-ZEY2VU4O.js.map} +1 -1
  16. package/dist/{destination-link-DMLeR-oF.d.ts → destination-link-BHVQyWry.d.ts} +2 -1
  17. package/dist/{index-BDzW8upQ.d.ts → index-CbgpSG4j.d.ts} +47 -8
  18. package/dist/index.d.ts +513 -141
  19. package/dist/index.js +1126 -235
  20. package/dist/index.js.map +1 -1
  21. package/dist/layout/index.d.ts +73 -1
  22. package/dist/layout/index.js +78 -2
  23. package/dist/layout/index.js.map +1 -1
  24. package/dist/media/index.d.ts +5 -4
  25. package/dist/media/index.js +35 -7
  26. package/dist/media/index.js.map +1 -1
  27. package/dist/media/media-lightbox/parts/index.d.ts +5 -4
  28. package/dist/media/media-lightbox/parts/index.js +2 -2
  29. package/dist/preview/index.d.ts +2 -3
  30. package/dist/preview/index.js +2 -2
  31. package/dist/theme/index.d.ts +3 -2
  32. package/dist/theme/index.js +2 -2
  33. package/dist/{types-Dxe5IzjE.d.ts → types-KQLxlHQZ.d.ts} +21 -0
  34. package/package.json +36 -26
  35. package/src/components/alert/alert.css +21 -18
  36. package/src/components/amount/amount.css +60 -0
  37. package/src/components/app-view/app-view.css +232 -0
  38. package/src/components/autocomplete/autocomplete.css +21 -5
  39. package/src/components/avatar/avatar.css +64 -8
  40. package/src/components/badge/badge.css +65 -0
  41. package/src/components/button/button.css +160 -31
  42. package/src/components/calendar/calendar.css +7 -3
  43. package/src/components/card/card.css +26 -10
  44. package/src/components/carousel/carousel.css +90 -5
  45. package/src/components/chat-composer/chat-composer.css +69 -0
  46. package/src/components/chat-message/chat-message.css +93 -0
  47. package/src/components/chat-steps/chat-steps.css +132 -0
  48. package/src/components/chat-typing-indicator/chat-typing-indicator.css +83 -0
  49. package/src/components/checkbox/checkbox.css +14 -1
  50. package/src/components/command/command.css +35 -5
  51. package/src/components/connected-panel/connected-panel.css +4 -19
  52. package/src/components/destination-link/destination-link.css +28 -0
  53. package/src/components/dialog/dialog.css +2 -2
  54. package/src/components/drawer/drawer.css +15 -2
  55. package/src/components/empty/empty.css +2 -4
  56. package/src/components/field/field.css +14 -9
  57. package/src/components/form/form.css +1 -1
  58. package/src/components/frame/frame.css +1 -1
  59. package/src/components/input/input.css +72 -4
  60. package/src/components/input-otp/input-otp.css +2 -2
  61. package/src/components/item/item.css +72 -2
  62. package/src/components/load-more-trigger/load-more-trigger.css +17 -0
  63. package/src/components/marquee/marquee.css +25 -3
  64. package/src/components/menu/menu.css +36 -1
  65. package/src/components/message/message.css +170 -0
  66. package/src/components/navigation-menu/navigation-menu.css +22 -4
  67. package/src/components/panel-setting-button/panel-setting-button.css +14 -0
  68. package/src/components/progress/progress.css +31 -1
  69. package/src/components/radio/radio.css +32 -5
  70. package/src/components/rating/rating.css +120 -0
  71. package/src/components/resizable/resizable.css +1 -1
  72. package/src/components/scroll-area/scroll-area.css +1 -1
  73. package/src/components/scrollable-list/scrollable-list.css +10 -5
  74. package/src/components/segmented-control/segmented-control.css +14 -0
  75. package/src/components/select/select.css +11 -3
  76. package/src/components/separator/separator.css +3 -1
  77. package/src/components/sheet/sheet.css +8 -4
  78. package/src/components/sidebar/sidebar.css +54 -24
  79. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +38 -5
  80. package/src/components/slider/slider.css +11 -6
  81. package/src/components/switch/switch.css +30 -11
  82. package/src/components/table/table.css +118 -10
  83. package/src/components/tabs/tabs.css +10 -0
  84. package/src/components/textarea/textarea.css +3 -3
  85. package/src/components/toaster/toaster.css +32 -0
  86. package/src/components/toggle/toggle.css +20 -8
  87. package/src/components/toggle-group/toggle-group.css +79 -1
  88. package/src/media/media-lightbox/media-lightbox.css +32 -2
  89. package/src/styles/recipes.css +10 -0
  90. package/src/styles/reset.css +13 -2
  91. package/src/styles/utilities.css +41 -28
  92. package/dist/button-CfLIHg-R.d.ts +0 -13
  93. package/dist/chunk-GDUMA6FI.js.map +0 -1
  94. package/dist/chunk-J77BAGTA.js.map +0 -1
  95. package/dist/chunk-NBHGMMQN.js.map +0 -1
  96. package/dist/chunk-R67OZVA2.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
- import { Separator, InputGroup, InputGroupAddon, InputGroupInput, InputGroupButton, Sheet, SheetPopup, SheetHeader, SheetTitle, SheetDescription, Input, Tooltip, TooltipTrigger, TooltipPopup } from './chunk-GDUMA6FI.js';
2
- export { AlertDialog, AlertDialogAction, AlertDialogBackdrop, AlertDialogCancel, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogPopup, AlertDialogPortal, AlertDialogPrimitive, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompletePrimitive, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, AvatarPrimitive, ButtonGroup, ButtonGroupProvider, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardCursorLabel, CardDescription, CardFooter, CardHeader, CardLabel, CardMedia, CardMediaOverlay, CardMediaOverlayBottom, CardMediaOverlayIconButton, CardMediaOverlayImage, CardMediaOverlayScrim, CardMediaOverlayTopRight, CardTags, CardTitle, Command, CommandCollection, CommandCreateHandle, CommandDialog, CommandDialogBackdrop, CommandDialogPopup, CommandDialogPortal, CommandDialogTrigger, CommandDialogViewport, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogCreateHandle, DialogDescription, DialogFooter, DialogHeader, DialogBackdrop as DialogOverlay, DialogPanel, DialogPopup, DialogPortal, DialogPrimitive, DialogTitle, DialogTrigger, DialogViewport, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputPrimitive, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationMenuViewport, Progress, ProgressIndicator, ProgressLabel, ProgressPrimitive, ProgressTrack, ProgressValue, ScrollableList, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorPrimitive, Sheet, SheetBackdrop, SheetClose, SheetPopup as SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetBackdrop as SheetOverlay, SheetPanel, SheetPopup, SheetPortal, SheetPrimitive, SheetTitle, SheetTrigger, SheetViewport, Textarea, Tooltip, TooltipPopup as TooltipContent, TooltipCreateHandle, TooltipPopup, TooltipPrimitive, TooltipProvider, TooltipTrigger, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useAutocompleteFilter, useButtonGroupContext, useCardCursor } from './chunk-GDUMA6FI.js';
3
- export { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, SegmentedControl, Slider, SliderValue } from './chunk-J77BAGTA.js';
4
- import { Button } from './chunk-NBHGMMQN.js';
5
- export { ATOM63_FLYOUT_TRANSITION, ATOM63_FLYOUT_TRANSITION_CSS, ATOM63_MOTION_EASE, ATOM63_MOTION_EASE_CSS, ATOM63_OVERLAY_MOTION_DURATION_CSS, ATOM63_OVERLAY_MOTION_DURATION_MS, ATOM63_OVERLAY_MOTION_EASE, ATOM63_OVERLAY_MOTION_EASE_CSS, Button, ScrollArea, ScrollBar } from './chunk-NBHGMMQN.js';
6
- export { DestinationIndicator, DestinationLink } from './chunk-R67OZVA2.js';
1
+ import { InputGroup, InputGroupTextarea, InputGroupAddon, mergeRefs, Separator, InputGroupInput, InputGroupButton, Sheet, SheetPopup, SheetHeader, SheetTitle, SheetDescription, Input, Tooltip, TooltipTrigger, TooltipPopup } from './chunk-RLF45GBS.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-RLF45GBS.js';
3
+ export { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, SegmentedControl, Slider, SliderValue } from './chunk-IFBF2IA3.js';
4
+ import { Button } from './chunk-R7IQ3IL5.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-R7IQ3IL5.js';
6
+ export { DestinationIndicator, DestinationLink } from './chunk-WL27K6MO.js';
7
7
  import { usePortalContainer } from './chunk-UPPHQLZ2.js';
8
8
  export { PortalContainerProvider, usePortalContainer } from './chunk-UPPHQLZ2.js';
9
9
  import { cn } from './chunk-AJLHJRK6.js';
10
10
  import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
11
11
  import * as React3 from 'react';
12
- import { forwardRef, createContext, useState, useId, useMemo, useContext, useRef, useCallback, useEffect, isValidElement, cloneElement } from 'react';
12
+ import { forwardRef, createContext, useState, useRef, useEffect, useId, useContext, useCallback, isValidElement, cloneElement } from 'react';
13
13
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
14
- import { getCrossRendererContract, loadMoreTriggerContract, tabsContract, toggleContract, toggleGroupContract, defaultUIEnvironment, alertContract, badgeContract, checkboxContract, connectedPanelContract, emptyContract, feedbackStateContract, itemContract, kbdContract, marqueeContract, paginationContract, radioContract, searchFieldContract, sidebarContract, switchContract, toasterContract } from '@atom63/ui-foundation';
14
+ import { getCrossRendererContract, loadMoreTriggerContract, tabsContract, toggleContract, toggleGroupContract, defaultUIEnvironment, alertContract, amountContract, animatedCheckContract, badgeContract, carouselContract, chatComposerContract, chatMessageContract, checkboxContract, connectedPanelContract, emptyContract, feedbackStateContract, itemContract, kbdContract, marqueeContract, messageContract, paginationContract, progressiveBlurContract, radioContract, ratingContract, searchFieldContract, sidebarContract, textTickerContract, sidebarNavTreeContract, switchContract, tableContract, toasterContract } from '@atom63/ui-foundation';
15
15
  import { mergeProps } from '@base-ui/react/merge-props';
16
16
  import { useRender } from '@base-ui/react/use-render';
17
- import { LoaderCircle, AlertCircle, CheckCircle, ChevronRight, Ellipsis, ArrowLeft, ArrowRight, ChevronDown, Copy, Minus, Check, ChevronLeft, PanelLeft, TriangleAlertIcon, CircleCheckIcon, Loader2Icon, InfoIcon, OctagonXIcon, WifiOff, SearchX, RefreshCw, Inbox, FileSearch, Clock, AlertTriangle } from 'lucide-react';
17
+ import { LoaderCircle, AlertCircle, CheckCircle, ChevronRight, Ellipsis, ArrowLeft, ArrowRight, Square, AudioLines, ArrowUp, ChevronDown, Copy, Minus, Play, Pause, Check, CheckCheck, Clock, ChevronLeft, PanelLeft, TriangleAlertIcon, CircleCheckIcon, Loader2Icon, InfoIcon, OctagonXIcon, Star, CircleDashed, CircleX, CircleCheck, WifiOff, SearchX, RefreshCw, Inbox, FileSearch, AlertTriangle } from 'lucide-react';
18
18
  import useEmblaCarousel from 'embla-carousel-react';
19
19
  import { useReducedMotion, AnimatePresence, motion } from 'motion/react';
20
- import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
21
20
  import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
21
+ import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
22
22
  import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
23
23
  import { Toaster as Toaster$1, toast } from 'sonner';
24
24
  export { toast } from 'sonner';
@@ -37,6 +37,7 @@ import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
37
37
  import { createPortal } from 'react-dom';
38
38
  import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
39
39
  import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
40
+ import { DirectionProvider } from '@base-ui/react/direction-provider';
40
41
 
41
42
  var AccordionRootContext = React3.createContext({ hiddenUntilFound: false, keepMounted: false });
42
43
  var AccordionItemContext = React3.createContext(null);
@@ -194,6 +195,13 @@ function AccordionContent({
194
195
  }
195
196
  );
196
197
  }
198
+ var alertRoles = {
199
+ default: "status",
200
+ error: "alert",
201
+ info: "status",
202
+ success: "status",
203
+ warning: "alert"
204
+ };
197
205
  function Alert({ className, variant, ...props }) {
198
206
  const alertVariant = variant ?? alertContract.defaultVariant;
199
207
  return /* @__PURE__ */ jsx(
@@ -202,7 +210,7 @@ function Alert({ className, variant, ...props }) {
202
210
  className: cn("a63-Alert", className),
203
211
  "data-slot": "alert",
204
212
  "data-variant": alertVariant,
205
- role: "alert",
213
+ role: alertRoles[alertVariant],
206
214
  ...props
207
215
  }
208
216
  );
@@ -238,6 +246,46 @@ function AlertAction({
238
246
  }) {
239
247
  return /* @__PURE__ */ jsx("div", { className: cn("a63-Alert-action", className), "data-slot": "alert-action", ...props });
240
248
  }
249
+ function amountRuns(parts) {
250
+ const runs = [];
251
+ for (const part of parts) {
252
+ const fraction = part.type === "decimal" || part.type === "fraction";
253
+ const last = runs[runs.length - 1];
254
+ if (last && last.fraction === fraction) last.text += part.value;
255
+ else runs.push({ fraction, text: part.value });
256
+ }
257
+ return runs;
258
+ }
259
+ function Amount({
260
+ className,
261
+ currency,
262
+ fraction = amountContract.defaultFraction,
263
+ locale,
264
+ size = amountContract.defaultSize,
265
+ strong = false,
266
+ value,
267
+ ...props
268
+ }) {
269
+ const parts = new Intl.NumberFormat(locale, { currency, style: "currency" }).formatToParts(value);
270
+ const label = parts.map((part) => part.value).join("");
271
+ return /* @__PURE__ */ jsxs(
272
+ "span",
273
+ {
274
+ className: cn("a63-Amount", className),
275
+ "data-fraction": fraction,
276
+ "data-size": size,
277
+ "data-slot": "amount",
278
+ "data-strong": strong ? "" : void 0,
279
+ ...props,
280
+ children: [
281
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: amountRuns(parts).map(
282
+ (run, index) => run.fraction ? /* @__PURE__ */ jsx("span", { className: "a63-AmountFraction", "data-slot": "amount-fraction", children: run.text }, index) : run.text
283
+ ) }),
284
+ /* @__PURE__ */ jsx("span", { className: "a63-Amount-label", children: label })
285
+ ]
286
+ }
287
+ );
288
+ }
241
289
  var ANIMATED_CHECK_STYLE = `
242
290
  .a63-AnimatedCheck {
243
291
  display: inline-block;
@@ -266,18 +314,21 @@ var ANIMATED_CHECK_STYLE = `
266
314
  }
267
315
  `;
268
316
  function AnimatedCheck({
269
- animate = true,
317
+ variant,
318
+ animate,
270
319
  className,
271
320
  ...props
272
321
  }) {
322
+ const resolvedVariant = variant ?? (animate === false ? "static" : animatedCheckContract.defaultVariant);
273
323
  return /* @__PURE__ */ jsxs(
274
324
  "svg",
275
325
  {
276
326
  ...props,
277
327
  "aria-hidden": true,
278
328
  className: cn("a63-AnimatedCheck", className),
279
- "data-animate": animate ? "true" : void 0,
329
+ "data-animate": resolvedVariant === "animated" ? "true" : void 0,
280
330
  "data-slot": "animated-check",
331
+ "data-variant": resolvedVariant,
281
332
  fill: "none",
282
333
  stroke: "currentColor",
283
334
  strokeLinecap: "round",
@@ -304,13 +355,27 @@ function Badge({
304
355
  render,
305
356
  variant = badgeContract.defaultVariant,
306
357
  size = badgeContract.defaultSize,
358
+ dot,
359
+ children,
307
360
  ...props
308
361
  }) {
309
362
  const defaultProps = {
310
363
  className: cn("a63-Badge", className),
311
364
  "data-slot": "badge",
312
365
  "data-variant": variant,
313
- "data-size": size
366
+ "data-size": size,
367
+ children: dot ? /* @__PURE__ */ jsxs(Fragment, { children: [
368
+ /* @__PURE__ */ jsx(
369
+ "span",
370
+ {
371
+ "aria-hidden": true,
372
+ className: "a63-Badge-dot",
373
+ "data-color": dot === true ? void 0 : dot,
374
+ "data-slot": "badge-dot"
375
+ }
376
+ ),
377
+ children
378
+ ] }) : children
314
379
  };
315
380
  return useRender({
316
381
  defaultTagName: "span",
@@ -435,16 +500,24 @@ function Carousel({
435
500
  cursorIndicator = false,
436
501
  ...props
437
502
  }) {
503
+ const containerRef = React3.useRef(null);
504
+ const [readDirection, setReadDirection] = React3.useState("ltr");
505
+ const direction = opts?.direction ?? readDirection;
506
+ React3.useEffect(() => {
507
+ if (opts?.direction || !containerRef.current) return;
508
+ setReadDirection(getComputedStyle(containerRef.current).direction === "rtl" ? "rtl" : "ltr");
509
+ }, [opts?.direction]);
510
+ const mirrored = direction === "rtl" && orientation === "horizontal";
438
511
  const [carouselRef, api] = useEmblaCarousel(
439
512
  {
440
513
  ...opts,
441
- axis: orientation === "horizontal" ? "x" : "y"
514
+ axis: orientation === "horizontal" ? "x" : "y",
515
+ direction
442
516
  },
443
517
  plugins
444
518
  );
445
519
  const [canScrollPrev, setCanScrollPrev] = React3.useState(false);
446
520
  const [canScrollNext, setCanScrollNext] = React3.useState(false);
447
- const containerRef = React3.useRef(null);
448
521
  const pointerOriginRef = React3.useRef(null);
449
522
  const pointerMovedRef = React3.useRef(false);
450
523
  const [cursorActive, setCursorActive] = React3.useState(false);
@@ -466,13 +539,15 @@ function Carousel({
466
539
  (event) => {
467
540
  if (event.key === "ArrowLeft") {
468
541
  event.preventDefault();
469
- scrollPrev();
542
+ if (mirrored) scrollNext();
543
+ else scrollPrev();
470
544
  } else if (event.key === "ArrowRight") {
471
545
  event.preventDefault();
472
- scrollNext();
546
+ if (mirrored) scrollPrev();
547
+ else scrollNext();
473
548
  }
474
549
  },
475
- [scrollPrev, scrollNext]
550
+ [mirrored, scrollPrev, scrollNext]
476
551
  );
477
552
  React3.useEffect(() => {
478
553
  if (!(api && setApi)) return;
@@ -496,7 +571,7 @@ function Carousel({
496
571
  const y = e.clientY - rect.top;
497
572
  const centerX = rect.width / 2;
498
573
  setCursorPos({ x, y });
499
- setCursorSide(x < centerX ? "prev" : "next");
574
+ setCursorSide(x < centerX !== mirrored ? "prev" : "next");
500
575
  setCursorActive(true);
501
576
  const origin = pointerOriginRef.current;
502
577
  if (origin) {
@@ -507,7 +582,7 @@ function Carousel({
507
582
  }
508
583
  }
509
584
  },
510
- [cursorIndicator]
585
+ [cursorIndicator, mirrored]
511
586
  );
512
587
  const handlePointerDown = React3.useCallback(
513
588
  (e) => {
@@ -587,7 +662,7 @@ function Carousel({
587
662
  top: cursorPos.y - 20
588
663
  },
589
664
  transition: reducedMotion ? { duration: 0 } : { type: "spring", stiffness: 400, damping: 25 },
590
- children: cursorSide === "prev" ? /* @__PURE__ */ jsx(ArrowLeft, { "aria-hidden": true, className: "a63-Carousel-cursor-icon" }) : /* @__PURE__ */ jsx(ArrowRight, { "aria-hidden": true, className: "a63-Carousel-cursor-icon" })
665
+ children: cursorSide === "prev" !== mirrored ? /* @__PURE__ */ jsx(ArrowLeft, { "aria-hidden": true, className: "a63-Carousel-cursor-icon" }) : /* @__PURE__ */ jsx(ArrowRight, { "aria-hidden": true, className: "a63-Carousel-cursor-icon" })
591
666
  }
592
667
  ) })
593
668
  ]
@@ -697,37 +772,296 @@ function CarouselNext({
697
772
  }
698
773
  );
699
774
  }
700
- var CheckIcon = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
701
- "path",
702
- {
703
- d: "M13 4.5 6.5 11 3 7.5",
704
- stroke: "currentColor",
705
- strokeLinecap: "round",
706
- strokeLinejoin: "round",
707
- strokeWidth: "2"
708
- }
709
- ) });
710
- var MinusIcon2 = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx("path", { d: "M3.5 8h9", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2" }) });
711
- function Checkbox({
775
+ function CarouselDots({
712
776
  className,
713
- size = checkboxContract.defaultSize,
777
+ getLabel = (index, count) => `Slide ${index + 1} of ${count}`,
778
+ shape = carouselContract.defaultDotShape,
779
+ tone = carouselContract.defaultDotTone,
714
780
  ...props
715
781
  }) {
782
+ const { api, orientation } = useCarousel();
783
+ const [snaps, setSnaps] = React3.useState([]);
784
+ const [selected, setSelected] = React3.useState(0);
785
+ React3.useEffect(() => {
786
+ if (!api) return;
787
+ const update = () => {
788
+ setSnaps(api.scrollSnapList());
789
+ setSelected(api.selectedScrollSnap());
790
+ };
791
+ update();
792
+ api.on("select", update);
793
+ api.on("reInit", update);
794
+ return () => {
795
+ api.off("select", update);
796
+ api.off("reInit", update);
797
+ };
798
+ }, [api]);
716
799
  return /* @__PURE__ */ jsx(
717
- Checkbox$1.Root,
800
+ "div",
718
801
  {
719
- className: cn("a63-Checkbox", className),
720
- "data-size": size,
721
- "data-slot": "checkbox",
802
+ "aria-label": "Slides",
803
+ className: cn("a63-Carousel-dots", className),
804
+ "data-orientation": orientation,
805
+ "data-shape": shape,
806
+ "data-slot": "carousel-dots",
807
+ "data-tone": tone,
808
+ role: "group",
722
809
  ...props,
723
- children: /* @__PURE__ */ jsx(
724
- Checkbox$1.Indicator,
810
+ children: snaps.map((_, index) => /* @__PURE__ */ jsx(
811
+ "button",
725
812
  {
726
- className: "a63-Checkbox-indicator",
727
- "data-slot": "checkbox-indicator",
728
- render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", { ...indicatorProps, children: state.indeterminate ? MinusIcon2 : CheckIcon })
729
- }
730
- )
813
+ "aria-current": index === selected ? "true" : void 0,
814
+ "aria-label": getLabel(index, snaps.length),
815
+ className: "a63-Carousel-dot",
816
+ "data-slot": "carousel-dot",
817
+ onClick: () => api?.scrollTo(index),
818
+ type: "button"
819
+ },
820
+ index
821
+ ))
822
+ }
823
+ );
824
+ }
825
+ function wraps(field) {
826
+ const style = getComputedStyle(field);
827
+ const line = Number.parseFloat(style.lineHeight);
828
+ if (!Number.isFinite(line)) return false;
829
+ const padding = Number.parseFloat(style.paddingTop) + Number.parseFloat(style.paddingBottom);
830
+ return field.scrollHeight - (padding || 0) > line * 1.5;
831
+ }
832
+ function ChatComposer({
833
+ actions,
834
+ attach,
835
+ className,
836
+ defaultValue = "",
837
+ disabled = false,
838
+ footnote,
839
+ label = "Message",
840
+ layout = chatComposerContract.defaultLayout,
841
+ onStop,
842
+ onVoice,
843
+ onSubmit,
844
+ onValueChange,
845
+ placeholder,
846
+ sendIcon,
847
+ sendLabel = "Send message",
848
+ status = "idle",
849
+ stopIcon,
850
+ stopLabel = "Stop response",
851
+ textareaProps,
852
+ value: valueProp,
853
+ voiceIcon,
854
+ voiceLabel = "Start voice mode",
855
+ ...props
856
+ }) {
857
+ const [ownValue, setOwnValue] = React3.useState(defaultValue);
858
+ const controlled = valueProp !== void 0;
859
+ const value = controlled ? valueProp : ownValue;
860
+ const busy = status !== "idle";
861
+ const empty = value.trim() === "";
862
+ const canSend = !disabled && !busy && !empty;
863
+ const [wrappedAt, setWrappedAt] = React3.useState(null);
864
+ const multiline = layout === "inline" && (value.includes("\n") || wrappedAt !== null && value.length >= wrappedAt);
865
+ const setValue = (next) => {
866
+ if (!controlled) setOwnValue(next);
867
+ onValueChange?.(next);
868
+ };
869
+ const send = () => {
870
+ if (!canSend) return;
871
+ onSubmit?.(value);
872
+ if (!controlled) setOwnValue("");
873
+ };
874
+ const { onKeyDown, ...fieldProps } = textareaProps ?? {};
875
+ return /* @__PURE__ */ jsxs(
876
+ "form",
877
+ {
878
+ className: cn("a63-ChatComposer", className),
879
+ "data-disabled": disabled ? "" : void 0,
880
+ "data-layout": layout,
881
+ "data-multiline": multiline ? "" : void 0,
882
+ "data-slot": "chat-composer",
883
+ "data-status": status,
884
+ onSubmit: (event) => {
885
+ event.preventDefault();
886
+ send();
887
+ },
888
+ ...props,
889
+ children: [
890
+ /* @__PURE__ */ jsxs(InputGroup, { className: "a63-ChatComposer-group", disabled, children: [
891
+ /* @__PURE__ */ jsx(
892
+ InputGroupTextarea,
893
+ {
894
+ "aria-label": label,
895
+ "data-slot": "chat-composer-field",
896
+ rows: 1,
897
+ textareaClassName: "a63-ChatComposer-field",
898
+ ...fieldProps,
899
+ disabled,
900
+ onChange: (event) => {
901
+ const field = event.currentTarget;
902
+ if (layout === "inline") {
903
+ if (wrappedAt !== null && field.value.length < wrappedAt) setWrappedAt(null);
904
+ else if (wrappedAt === null && !multiline && wraps(field)) {
905
+ setWrappedAt(field.value.length);
906
+ }
907
+ }
908
+ setValue(field.value);
909
+ },
910
+ onKeyDown: (event) => {
911
+ onKeyDown?.(event);
912
+ if (event.defaultPrevented) return;
913
+ if (event.key !== "Enter" || event.shiftKey || event.nativeEvent.isComposing) return;
914
+ event.preventDefault();
915
+ send();
916
+ },
917
+ placeholder,
918
+ value
919
+ }
920
+ ),
921
+ attach ? /* @__PURE__ */ jsx(
922
+ InputGroupAddon,
923
+ {
924
+ align: "inline-start",
925
+ className: "a63-ChatComposer-attach",
926
+ "data-slot": "chat-composer-attach",
927
+ children: attach
928
+ }
929
+ ) : null,
930
+ /* @__PURE__ */ jsxs(
931
+ InputGroupAddon,
932
+ {
933
+ align: "inline-end",
934
+ className: "a63-ChatComposer-actions",
935
+ "data-slot": "chat-composer-actions",
936
+ children: [
937
+ actions,
938
+ busy ? /* @__PURE__ */ jsx(
939
+ Button,
940
+ {
941
+ "aria-label": stopLabel,
942
+ className: "a63-ChatComposer-submit",
943
+ "data-slot": "chat-composer-submit",
944
+ disabled,
945
+ onClick: onStop,
946
+ shape: "round",
947
+ size: "icon-sm",
948
+ variant: "default",
949
+ children: stopIcon ?? /* @__PURE__ */ jsx(Square, { "aria-hidden": true, fill: "currentColor" })
950
+ }
951
+ ) : onVoice && empty ? /* @__PURE__ */ jsx(
952
+ Button,
953
+ {
954
+ "aria-label": voiceLabel,
955
+ className: "a63-ChatComposer-submit",
956
+ "data-slot": "chat-composer-submit",
957
+ disabled,
958
+ onClick: onVoice,
959
+ shape: "round",
960
+ size: "icon-sm",
961
+ variant: "default",
962
+ children: voiceIcon ?? /* @__PURE__ */ jsx(AudioLines, { "aria-hidden": true })
963
+ }
964
+ ) : /* @__PURE__ */ jsx(
965
+ Button,
966
+ {
967
+ "aria-label": sendLabel,
968
+ className: "a63-ChatComposer-submit",
969
+ "data-slot": "chat-composer-submit",
970
+ disabled: !canSend,
971
+ shape: "round",
972
+ size: "icon-sm",
973
+ type: "submit",
974
+ variant: "default",
975
+ children: sendIcon ?? /* @__PURE__ */ jsx(ArrowUp, { "aria-hidden": true })
976
+ }
977
+ )
978
+ ]
979
+ }
980
+ )
981
+ ] }),
982
+ footnote ? /* @__PURE__ */ jsx("p", { className: "a63-ChatComposer-footnote", "data-slot": "chat-composer-footnote", children: footnote }) : null
983
+ ]
984
+ }
985
+ );
986
+ }
987
+ function ChatTypingIndicator({
988
+ className,
989
+ label = "Assistant is typing",
990
+ ...props
991
+ }) {
992
+ const [announced, setAnnounced] = React3.useState(false);
993
+ React3.useEffect(() => {
994
+ const timer = setTimeout(() => setAnnounced(true), 100);
995
+ return () => clearTimeout(timer);
996
+ }, []);
997
+ return /* @__PURE__ */ jsxs(
998
+ "span",
999
+ {
1000
+ className: cn("a63-ChatTypingIndicator", className),
1001
+ "data-slot": "chat-typing-indicator",
1002
+ role: "status",
1003
+ ...props,
1004
+ children: [
1005
+ /* @__PURE__ */ jsx("span", { className: "a63-ChatTypingIndicator-label", children: announced ? label : null }),
1006
+ [0, 1, 2].map((index) => /* @__PURE__ */ jsx(
1007
+ "span",
1008
+ {
1009
+ "aria-hidden": "true",
1010
+ className: "a63-ChatTypingIndicator-dot",
1011
+ "data-slot": "chat-typing-indicator-dot"
1012
+ },
1013
+ index
1014
+ ))
1015
+ ]
1016
+ }
1017
+ );
1018
+ }
1019
+ function ChatMessageList({ className, ...props }) {
1020
+ return /* @__PURE__ */ jsx(
1021
+ "div",
1022
+ {
1023
+ className: cn("a63-ChatMessageList", className),
1024
+ "data-slot": "chat-message-list",
1025
+ role: "log",
1026
+ ...props
1027
+ }
1028
+ );
1029
+ }
1030
+ function holdsTypingIndicator(children) {
1031
+ return React3.Children.toArray(children).some(
1032
+ (child) => React3.isValidElement(child) && child.type === ChatTypingIndicator
1033
+ );
1034
+ }
1035
+ var DEFAULT_LABELS = { assistant: "Assistant", user: "You" };
1036
+ function ChatMessage({
1037
+ actions,
1038
+ appearance = chatMessageContract.defaultAppearance,
1039
+ avatar,
1040
+ children,
1041
+ className,
1042
+ from,
1043
+ label,
1044
+ streaming = false,
1045
+ ...props
1046
+ }) {
1047
+ return /* @__PURE__ */ jsxs(
1048
+ "article",
1049
+ {
1050
+ "aria-busy": streaming && !holdsTypingIndicator(children) || void 0,
1051
+ "aria-label": label ?? DEFAULT_LABELS[from],
1052
+ className: cn("a63-ChatMessage", className),
1053
+ "data-appearance": from === "user" ? "bubble" : appearance,
1054
+ "data-role": from,
1055
+ "data-slot": "chat-message",
1056
+ "data-streaming": streaming ? "" : void 0,
1057
+ ...props,
1058
+ children: [
1059
+ avatar ? /* @__PURE__ */ jsx("div", { className: "a63-ChatMessage-avatar", "data-slot": "chat-message-avatar", children: avatar }) : null,
1060
+ /* @__PURE__ */ jsxs("div", { className: "a63-ChatMessage-body", "data-slot": "chat-message-body", children: [
1061
+ /* @__PURE__ */ jsx("div", { className: "a63-ChatMessage-content", "data-slot": "chat-message-content", children }),
1062
+ actions ? /* @__PURE__ */ jsx("div", { className: "a63-ChatMessage-actions", "data-slot": "chat-message-actions", children: actions }) : null
1063
+ ] })
1064
+ ]
731
1065
  }
732
1066
  );
733
1067
  }
@@ -783,6 +1117,148 @@ function CollapsibleContent({
783
1117
  }
784
1118
  );
785
1119
  }
1120
+ var SPINNER_STYLE = `
1121
+ @keyframes a63-animated-spinner-spin {
1122
+ to {
1123
+ transform: rotate(360deg);
1124
+ }
1125
+ }
1126
+
1127
+ .a63-Spinner {
1128
+ display: inline-block;
1129
+ flex-shrink: 0;
1130
+ width: 1rem;
1131
+ height: 1rem;
1132
+ animation: a63-animated-spinner-spin var(--duration-slower, 1s) linear infinite;
1133
+ }
1134
+
1135
+ @media (prefers-reduced-motion: reduce) {
1136
+ .a63-Spinner {
1137
+ animation: none;
1138
+ }
1139
+ }
1140
+ `;
1141
+ function Spinner({ className, ...props }) {
1142
+ return /* @__PURE__ */ jsxs(
1143
+ "svg",
1144
+ {
1145
+ "aria-label": "Loading",
1146
+ className: cn("a63-Spinner", className),
1147
+ "data-slot": "spinner",
1148
+ fill: "none",
1149
+ role: "status",
1150
+ viewBox: "0 0 24 24",
1151
+ xmlns: "http://www.w3.org/2000/svg",
1152
+ ...props,
1153
+ children: [
1154
+ /* @__PURE__ */ jsx("style", { children: SPINNER_STYLE }),
1155
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", opacity: "0.25", r: "10", stroke: "currentColor", strokeWidth: "2.5" }),
1156
+ /* @__PURE__ */ jsx(
1157
+ "path",
1158
+ {
1159
+ d: "M12 2a10 10 0 0 1 10 10",
1160
+ stroke: "currentColor",
1161
+ strokeLinecap: "round",
1162
+ strokeWidth: "2.5"
1163
+ }
1164
+ )
1165
+ ]
1166
+ }
1167
+ );
1168
+ }
1169
+ function ChatSteps({
1170
+ children,
1171
+ className,
1172
+ icon,
1173
+ label,
1174
+ ...props
1175
+ }) {
1176
+ return /* @__PURE__ */ jsxs(Collapsible, { className: cn("a63-ChatSteps", className), "data-slot": "chat-steps", ...props, children: [
1177
+ /* @__PURE__ */ jsxs(CollapsibleTrigger, { className: "a63-ChatSteps-trigger", "data-slot": "chat-steps-trigger", children: [
1178
+ icon ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "a63-ChatSteps-icon", children: icon }) : null,
1179
+ /* @__PURE__ */ jsx("span", { className: "a63-ChatSteps-label", children: label }),
1180
+ /* @__PURE__ */ jsx(CollapsibleIndicator, {})
1181
+ ] }),
1182
+ /* @__PURE__ */ jsx(CollapsibleContent, { className: "a63-ChatSteps-content", "data-slot": "chat-steps-content", children: /* @__PURE__ */ jsx("ol", { className: "a63-ChatSteps-list", children }) })
1183
+ ] });
1184
+ }
1185
+ var STATUS_LABELS = {
1186
+ complete: "Done",
1187
+ error: "Failed",
1188
+ pending: "Pending",
1189
+ running: "Running"
1190
+ };
1191
+ var STATUS_ICONS = {
1192
+ complete: /* @__PURE__ */ jsx(CircleCheck, { "aria-hidden": true }),
1193
+ error: /* @__PURE__ */ jsx(CircleX, { "aria-hidden": true }),
1194
+ pending: /* @__PURE__ */ jsx(CircleDashed, { "aria-hidden": true }),
1195
+ running: /* @__PURE__ */ jsx(Spinner, { "aria-hidden": true, "aria-label": void 0, role: void 0 })
1196
+ };
1197
+ function ChatStep({
1198
+ children,
1199
+ className,
1200
+ description,
1201
+ icon,
1202
+ status = "complete",
1203
+ statusLabel,
1204
+ ...props
1205
+ }) {
1206
+ return /* @__PURE__ */ jsxs(
1207
+ "li",
1208
+ {
1209
+ className: cn("a63-ChatStep", className),
1210
+ "data-slot": "chat-step",
1211
+ "data-status": status,
1212
+ ...props,
1213
+ children: [
1214
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "a63-ChatStep-icon", "data-slot": "chat-step-icon", children: icon ?? STATUS_ICONS[status] }),
1215
+ /* @__PURE__ */ jsxs("span", { className: "a63-ChatStep-body", children: [
1216
+ /* @__PURE__ */ jsxs("span", { className: "a63-ChatStep-title", children: [
1217
+ /* @__PURE__ */ jsx("span", { className: "a63-ChatStep-sr-only", children: `${statusLabel ?? STATUS_LABELS[status]}: ` }),
1218
+ children
1219
+ ] }),
1220
+ description ? /* @__PURE__ */ jsx("span", { className: "a63-ChatStep-description", "data-slot": "chat-step-description", children: description }) : null
1221
+ ] })
1222
+ ]
1223
+ }
1224
+ );
1225
+ }
1226
+ var CheckIcon = /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
1227
+ "path",
1228
+ {
1229
+ d: "M13 4.5 6.5 11 3 7.5",
1230
+ stroke: "currentColor",
1231
+ strokeLinecap: "round",
1232
+ strokeLinejoin: "round",
1233
+ strokeWidth: "2"
1234
+ }
1235
+ ) });
1236
+ 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" }) });
1237
+ function Checkbox({
1238
+ className,
1239
+ indicator = checkboxContract.defaultIndicator,
1240
+ size = checkboxContract.defaultSize,
1241
+ ...props
1242
+ }) {
1243
+ return /* @__PURE__ */ jsx(
1244
+ Checkbox$1.Root,
1245
+ {
1246
+ className: cn("a63-Checkbox", className),
1247
+ "data-indicator": indicator,
1248
+ "data-size": size,
1249
+ "data-slot": "checkbox",
1250
+ ...props,
1251
+ children: /* @__PURE__ */ jsx(
1252
+ Checkbox$1.Indicator,
1253
+ {
1254
+ className: "a63-Checkbox-indicator",
1255
+ "data-slot": "checkbox-indicator",
1256
+ render: (indicatorProps, state) => /* @__PURE__ */ jsx("span", { ...indicatorProps, children: state.indeterminate ? MinusIcon2 : CheckIcon })
1257
+ }
1258
+ )
1259
+ }
1260
+ );
1261
+ }
786
1262
  var ConnectedPanelContext = React3.createContext(null);
787
1263
  function useConnectedPanelContext(component) {
788
1264
  const context = React3.useContext(ConnectedPanelContext);
@@ -1166,7 +1642,16 @@ function ContextMenuGroup(props) {
1166
1642
  return /* @__PURE__ */ jsx(ContextMenu$1.Group, { "data-slot": "context-menu-group", ...props });
1167
1643
  }
1168
1644
  function ContextMenuPortal(props) {
1169
- return /* @__PURE__ */ jsx(ContextMenu$1.Portal, { "data-slot": "context-menu-portal", ...props });
1645
+ const { container, ...portalProps } = props;
1646
+ const contextPortalContainer = usePortalContainer();
1647
+ return /* @__PURE__ */ jsx(
1648
+ ContextMenu$1.Portal,
1649
+ {
1650
+ container: container ?? contextPortalContainer,
1651
+ "data-slot": "context-menu-portal",
1652
+ ...portalProps
1653
+ }
1654
+ );
1170
1655
  }
1171
1656
  function ContextMenuSub(props) {
1172
1657
  return /* @__PURE__ */ jsx(ContextMenu$1.SubmenuRoot, { "data-slot": "context-menu-sub", ...props });
@@ -1182,7 +1667,7 @@ function ContextMenuContent({
1182
1667
  sideOffset = 4,
1183
1668
  ...props
1184
1669
  }) {
1185
- return /* @__PURE__ */ jsx(ContextMenu$1.Portal, { ...portalProps, children: /* @__PURE__ */ jsx(
1670
+ return /* @__PURE__ */ jsx(ContextMenuPortal, { ...portalProps, children: /* @__PURE__ */ jsx(
1186
1671
  ContextMenu$1.Positioner,
1187
1672
  {
1188
1673
  className: "a63-Menu-positioner",
@@ -1244,7 +1729,7 @@ function ContextMenuSubContent({
1244
1729
  sideOffset = 6,
1245
1730
  ...props
1246
1731
  }) {
1247
- return /* @__PURE__ */ jsx(ContextMenu$1.Portal, { ...portalProps, children: /* @__PURE__ */ jsx(
1732
+ return /* @__PURE__ */ jsx(ContextMenuPortal, { ...portalProps, children: /* @__PURE__ */ jsx(
1248
1733
  ContextMenu$1.Positioner,
1249
1734
  {
1250
1735
  className: "a63-Menu-positioner",
@@ -1352,25 +1837,28 @@ var reducedMotionTransition = {
1352
1837
  opacity: { duration: 0.12, ease: [0.25, 0.46, 0.45, 0.94] }
1353
1838
  };
1354
1839
  function CopyButton({
1355
- "aria-hidden": ariaHidden,
1356
1840
  children,
1357
1841
  className,
1358
1842
  copiedLabel = "Copied to clipboard",
1359
1843
  label = "Copy",
1844
+ onClick,
1360
1845
  size,
1361
1846
  successMessage,
1362
- tabIndex,
1363
1847
  value,
1364
- variant = "ghost"
1848
+ variant = "ghost",
1849
+ ...props
1365
1850
  }) {
1366
1851
  const [copied, setCopied] = useState(false);
1852
+ const resetTimer = useRef(void 0);
1367
1853
  const resolvedSize = size ?? (children ? "sm" : "icon-sm");
1854
+ useEffect(() => () => clearTimeout(resetTimer.current), []);
1368
1855
  const handleCopy = async () => {
1369
1856
  try {
1370
1857
  await navigator.clipboard.writeText(value);
1371
1858
  setCopied(true);
1372
1859
  toast.success(successMessage ?? `${label} copied to clipboard`);
1373
- setTimeout(() => setCopied(false), 2e3);
1860
+ clearTimeout(resetTimer.current);
1861
+ resetTimer.current = setTimeout(() => setCopied(false), 2e3);
1374
1862
  } catch {
1375
1863
  toast.error("Failed to copy to clipboard");
1376
1864
  }
@@ -1378,16 +1866,16 @@ function CopyButton({
1378
1866
  return /* @__PURE__ */ jsx(
1379
1867
  Button,
1380
1868
  {
1381
- "aria-hidden": ariaHidden,
1869
+ ...props,
1382
1870
  "aria-label": children ? void 0 : copied ? copiedLabel : label,
1383
1871
  className: cn("a63-CopyButton", !children && "a63-CopyButton--icon-only", className),
1384
1872
  "data-copied": copied ? "" : void 0,
1385
- onClick: () => {
1873
+ onClick: (event) => {
1874
+ onClick?.(event);
1386
1875
  void handleCopy();
1387
1876
  },
1388
1877
  size: resolvedSize,
1389
- tabIndex,
1390
- title: `${label} ${value}`,
1878
+ title: label,
1391
1879
  variant,
1392
1880
  children: /* @__PURE__ */ jsx(CopyButtonFeedback, { copied, children })
1393
1881
  }
@@ -1426,7 +1914,7 @@ function CopyButtonFeedback({
1426
1914
  initial: false,
1427
1915
  transition: reduceMotion ? reducedMotionTransition : copied ? feedbackEnterTransition : feedbackExitTransition,
1428
1916
  children: [
1429
- /* @__PURE__ */ jsx(AnimatedCheck, { animate: copied, className: "a63-CopyButton-check" }),
1917
+ /* @__PURE__ */ jsx(AnimatedCheck, { className: "a63-CopyButton-check", variant: copied ? "animated" : "static" }),
1430
1918
  children && /* @__PURE__ */ jsx("span", { children: "Copied!" })
1431
1919
  ]
1432
1920
  }
@@ -1434,7 +1922,8 @@ function CopyButtonFeedback({
1434
1922
  ] });
1435
1923
  }
1436
1924
  var DrawerContext = React3.createContext({
1437
- direction: "bottom"
1925
+ direction: "bottom",
1926
+ modal: true
1438
1927
  });
1439
1928
  function composeDrawerSlot(render, children) {
1440
1929
  if (render && children && isValidElement(render)) {
@@ -1473,7 +1962,7 @@ function Drawer({
1473
1962
  children,
1474
1963
  ...props
1475
1964
  }) {
1476
- return /* @__PURE__ */ jsx(DrawerContext.Provider, { value: { direction }, children: /* @__PURE__ */ jsx(
1965
+ return /* @__PURE__ */ jsx(DrawerContext.Provider, { value: { direction, modal: props.modal !== false }, children: /* @__PURE__ */ jsx(
1477
1966
  Drawer$1.Root,
1478
1967
  {
1479
1968
  "data-slot": "drawer",
@@ -1493,7 +1982,16 @@ function DrawerTrigger({
1493
1982
  return /* @__PURE__ */ jsx(Drawer$1.Trigger, { "data-slot": "drawer-trigger", render: slot.render, ...props, children: slot.children });
1494
1983
  }
1495
1984
  function DrawerPortal(props) {
1496
- return /* @__PURE__ */ jsx(Drawer$1.Portal, { "data-slot": "drawer-portal", ...props });
1985
+ const { container, ...portalProps } = props;
1986
+ const contextPortalContainer = usePortalContainer();
1987
+ return /* @__PURE__ */ jsx(
1988
+ Drawer$1.Portal,
1989
+ {
1990
+ container: container ?? contextPortalContainer,
1991
+ "data-slot": "drawer-portal",
1992
+ ...portalProps
1993
+ }
1994
+ );
1497
1995
  }
1498
1996
  function DrawerClose({
1499
1997
  asChild,
@@ -1525,14 +2023,15 @@ function DrawerContent({
1525
2023
  viewportProps,
1526
2024
  ...props
1527
2025
  }) {
1528
- const { direction } = React3.useContext(DrawerContext);
2026
+ const { direction, modal } = React3.useContext(DrawerContext);
1529
2027
  return /* @__PURE__ */ jsxs(DrawerPortal, { ...portalProps, children: [
1530
- /* @__PURE__ */ jsx(DrawerOverlay, {}),
2028
+ modal ? /* @__PURE__ */ jsx(DrawerOverlay, {}) : null,
1531
2029
  /* @__PURE__ */ jsx(
1532
2030
  Drawer$1.Viewport,
1533
2031
  {
1534
2032
  ...viewportProps,
1535
2033
  className: cn("a63-Drawer-viewport", viewportProps?.className),
2034
+ "data-modal": modal ? void 0 : "false",
1536
2035
  "data-side": direction,
1537
2036
  "data-slot": "drawer-viewport",
1538
2037
  children: /* @__PURE__ */ jsx(
@@ -1903,92 +2402,44 @@ function EmptyDescription({
1903
2402
  }
1904
2403
  function EmptyContent({
1905
2404
  className,
1906
- ...props
1907
- }) {
1908
- return /* @__PURE__ */ jsx("div", { className: cn("a63-Empty-content", className), "data-slot": "empty-content", ...props });
1909
- }
1910
- function EmptyErrorDetail({
1911
- className,
1912
- error,
1913
- ...props
1914
- }) {
1915
- const [expanded, setExpanded] = useState(false);
1916
- const detailId = useId();
1917
- return /* @__PURE__ */ jsxs(
1918
- "div",
1919
- {
1920
- className: cn("a63-Empty-errorDetail", className),
1921
- "data-slot": "empty-error-detail",
1922
- "data-state": expanded ? "expanded" : "collapsed",
1923
- ...props,
1924
- children: [
1925
- /* @__PURE__ */ jsx(
1926
- Button,
1927
- {
1928
- "aria-controls": detailId,
1929
- "aria-expanded": expanded,
1930
- className: "a63-Empty-errorToggle",
1931
- "data-slot": "empty-error-toggle",
1932
- onClick: () => setExpanded((value) => !value),
1933
- size: "sm",
1934
- type: "button",
1935
- variant: "ghost",
1936
- children: expanded ? "Hide details" : "Show details"
1937
- }
1938
- ),
1939
- expanded && /* @__PURE__ */ jsxs("div", { className: "a63-Empty-errorBox", "data-slot": "empty-error-box", id: detailId, children: [
1940
- /* @__PURE__ */ jsx("pre", { className: "a63-Empty-errorText", "data-slot": "empty-error-text", children: error }),
1941
- /* @__PURE__ */ jsx("div", { className: "a63-Empty-errorCopy", "data-slot": "empty-error-copy", children: /* @__PURE__ */ jsx(CopyButton, { label: "Error", size: "icon-sm", value: error, variant: "ghost" }) })
1942
- ] })
1943
- ]
1944
- }
1945
- );
1946
- }
1947
- var SPINNER_STYLE = `
1948
- @keyframes a63-animated-spinner-spin {
1949
- to {
1950
- transform: rotate(360deg);
1951
- }
1952
- }
1953
-
1954
- .a63-Spinner {
1955
- display: inline-block;
1956
- flex-shrink: 0;
1957
- width: 1rem;
1958
- height: 1rem;
1959
- animation: a63-animated-spinner-spin var(--duration-slower, 1s) linear infinite;
1960
- }
1961
-
1962
- @media (prefers-reduced-motion: reduce) {
1963
- .a63-Spinner {
1964
- animation: none;
1965
- }
2405
+ ...props
2406
+ }) {
2407
+ return /* @__PURE__ */ jsx("div", { className: cn("a63-Empty-content", className), "data-slot": "empty-content", ...props });
1966
2408
  }
1967
- `;
1968
- function Spinner({ className, ...props }) {
2409
+ function EmptyErrorDetail({
2410
+ className,
2411
+ error,
2412
+ ...props
2413
+ }) {
2414
+ const [expanded, setExpanded] = useState(false);
2415
+ const detailId = useId();
1969
2416
  return /* @__PURE__ */ jsxs(
1970
- "svg",
2417
+ "div",
1971
2418
  {
1972
- "aria-label": "Loading",
1973
- className: cn("a63-Spinner", className),
1974
- "data-slot": "spinner",
1975
- fill: "none",
1976
- role: "status",
1977
- viewBox: "0 0 24 24",
1978
- xmlns: "http://www.w3.org/2000/svg",
2419
+ className: cn("a63-Empty-errorDetail", className),
2420
+ "data-slot": "empty-error-detail",
2421
+ "data-state": expanded ? "expanded" : "collapsed",
1979
2422
  ...props,
1980
2423
  children: [
1981
- /* @__PURE__ */ jsx("style", { children: SPINNER_STYLE }),
1982
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", opacity: "0.25", r: "10", stroke: "currentColor", strokeWidth: "2.5" }),
1983
2424
  /* @__PURE__ */ jsx(
1984
- "path",
2425
+ Button,
1985
2426
  {
1986
- d: "M12 2a10 10 0 0 1 10 10",
1987
- stroke: "currentColor",
1988
- strokeLinecap: "round",
1989
- strokeWidth: "2.5"
2427
+ "aria-controls": detailId,
2428
+ "aria-expanded": expanded,
2429
+ className: "a63-Empty-errorToggle",
2430
+ "data-slot": "empty-error-toggle",
2431
+ onClick: () => setExpanded((value) => !value),
2432
+ size: "sm",
2433
+ tone: "muted",
2434
+ type: "button",
2435
+ variant: "ghost",
2436
+ children: expanded ? "Hide details" : "Show details"
1990
2437
  }
1991
- )
2438
+ ),
2439
+ expanded && /* @__PURE__ */ jsxs("div", { className: "a63-Empty-errorBox", "data-slot": "empty-error-box", id: detailId, children: [
2440
+ /* @__PURE__ */ jsx("pre", { className: "a63-Empty-errorText", "data-slot": "empty-error-text", children: error }),
2441
+ /* @__PURE__ */ jsx("div", { className: "a63-Empty-errorCopy", "data-slot": "empty-error-copy", children: /* @__PURE__ */ jsx(CopyButton, { label: "Error", size: "icon-sm", value: error, variant: "ghost" }) })
2442
+ ] })
1992
2443
  ]
1993
2444
  }
1994
2445
  );
@@ -2086,6 +2537,7 @@ function FeedbackState({
2086
2537
  description,
2087
2538
  error,
2088
2539
  icon,
2540
+ level = 3,
2089
2541
  query,
2090
2542
  showIcon = true,
2091
2543
  size = feedbackStateContract.defaultSize,
@@ -2099,17 +2551,25 @@ function FeedbackState({
2099
2551
  return /* @__PURE__ */ jsxs(
2100
2552
  "div",
2101
2553
  {
2102
- "aria-busy": state === "loading" ? true : void 0,
2103
- "aria-live": state === "error" ? "assertive" : state === "loading" ? "polite" : void 0,
2554
+ "aria-live": state === "error" ? "assertive" : "polite",
2104
2555
  className: cn("a63-FeedbackState", className),
2105
2556
  "data-size": size,
2106
2557
  "data-slot": "feedback-state",
2107
2558
  "data-state": state,
2108
- role: state === "error" ? "alert" : state === "loading" ? "status" : void 0,
2559
+ role: state === "error" ? "alert" : "status",
2109
2560
  children: [
2110
2561
  /* @__PURE__ */ jsxs("div", { className: "a63-FeedbackState-header", "data-slot": "feedback-state-header", children: [
2111
2562
  showIcon && iconNode ? /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-media", "data-slot": "feedback-state-media", children: iconNode }) : null,
2112
- /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-title", "data-slot": "feedback-state-title", children: finalTitle }),
2563
+ /* @__PURE__ */ jsx(
2564
+ "div",
2565
+ {
2566
+ "aria-level": level,
2567
+ className: "a63-FeedbackState-title",
2568
+ "data-slot": "feedback-state-title",
2569
+ role: "heading",
2570
+ children: finalTitle
2571
+ }
2572
+ ),
2113
2573
  /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-description", "data-slot": "feedback-state-description", children: finalDescription })
2114
2574
  ] }),
2115
2575
  actions && actions.length > 0 ? /* @__PURE__ */ jsx("div", { className: "a63-FeedbackState-content", "data-slot": "feedback-state-content", children: actions.map((action) => /* @__PURE__ */ jsx(
@@ -2147,20 +2607,74 @@ function FieldLegend({
2147
2607
  function FieldGroup({ className, ...props }) {
2148
2608
  return /* @__PURE__ */ jsx("div", { className: cn("a63-FieldGroup", className), "data-slot": "field-group", ...props });
2149
2609
  }
2610
+ var FieldContext = React3.createContext(null);
2611
+ var CONTROL_SELECTOR = 'input:not([type="hidden"]), select, textarea, [role="combobox"], [role="checkbox"], [role="switch"], [role="radiogroup"], [role="slider"]';
2612
+ function findControl(root) {
2613
+ const label = root.querySelector("label[for]");
2614
+ const labelled = label ? root.ownerDocument.getElementById(label.htmlFor) : null;
2615
+ return labelled ?? root.querySelector(CONTROL_SELECTOR);
2616
+ }
2617
+ function useFieldPart(kind, idProp, active) {
2618
+ const generatedId = React3.useId();
2619
+ const id = idProp ?? generatedId;
2620
+ const field = React3.useContext(FieldContext);
2621
+ React3.useLayoutEffect(
2622
+ () => active ? field?.register(id, kind) : void 0,
2623
+ [active, field, id, kind]
2624
+ );
2625
+ return id;
2626
+ }
2150
2627
  function Field({
2151
2628
  className,
2152
2629
  orientation = "vertical",
2630
+ ref,
2153
2631
  ...props
2154
2632
  }) {
2155
- return /* @__PURE__ */ jsx(
2633
+ const rootRef = React3.useRef(null);
2634
+ const [parts, setParts] = React3.useState([]);
2635
+ const context = React3.useMemo(
2636
+ () => ({
2637
+ register: (id, kind) => {
2638
+ setParts((current) => [...current, { id, kind }]);
2639
+ return () => setParts((current) => current.filter((part) => part.id !== id));
2640
+ }
2641
+ }),
2642
+ []
2643
+ );
2644
+ React3.useLayoutEffect(() => {
2645
+ const control = rootRef.current ? findControl(rootRef.current) : null;
2646
+ if (!control || parts.length === 0) {
2647
+ return void 0;
2648
+ }
2649
+ const existing = (control.getAttribute("aria-describedby") ?? "").split(/\s+/).filter(Boolean);
2650
+ const added = parts.map((part) => part.id).filter((id) => !existing.includes(id));
2651
+ control.setAttribute("aria-describedby", [...existing, ...added].join(" "));
2652
+ const markInvalid = parts.some((part) => part.kind === "error") && !control.hasAttribute("aria-invalid");
2653
+ if (markInvalid) {
2654
+ control.setAttribute("aria-invalid", "true");
2655
+ }
2656
+ return () => {
2657
+ const remaining = (control.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((id) => id && !added.includes(id));
2658
+ if (remaining.length > 0) {
2659
+ control.setAttribute("aria-describedby", remaining.join(" "));
2660
+ } else {
2661
+ control.removeAttribute("aria-describedby");
2662
+ }
2663
+ if (markInvalid) {
2664
+ control.removeAttribute("aria-invalid");
2665
+ }
2666
+ };
2667
+ }, [parts]);
2668
+ return /* @__PURE__ */ jsx(FieldContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
2156
2669
  "div",
2157
2670
  {
2158
2671
  className: cn("a63-Field", className),
2159
2672
  "data-slot": "field",
2160
2673
  "data-orientation": orientation,
2674
+ ref: React3.useMemo(() => mergeRefs(rootRef, ref), [ref]),
2161
2675
  ...props
2162
2676
  }
2163
- );
2677
+ ) });
2164
2678
  }
2165
2679
  function FieldContent({ className, ...props }) {
2166
2680
  return /* @__PURE__ */ jsx("div", { className: cn("a63-FieldContent", className), "data-slot": "field-content", ...props });
@@ -2173,9 +2687,19 @@ function FieldTitle({ className, ...props }) {
2173
2687
  }
2174
2688
  function FieldDescription({
2175
2689
  className,
2690
+ id: idProp,
2176
2691
  ...props
2177
2692
  }) {
2178
- return /* @__PURE__ */ jsx("p", { className: cn("a63-FieldDescription", className), "data-slot": "field-description", ...props });
2693
+ const id = useFieldPart("description", idProp, true);
2694
+ return /* @__PURE__ */ jsx(
2695
+ "p",
2696
+ {
2697
+ className: cn("a63-FieldDescription", className),
2698
+ "data-slot": "field-description",
2699
+ id,
2700
+ ...props
2701
+ }
2702
+ );
2179
2703
  }
2180
2704
  function FieldSeparator({
2181
2705
  children,
@@ -2200,9 +2724,10 @@ function FieldError({
2200
2724
  className,
2201
2725
  children,
2202
2726
  errors,
2727
+ id: idProp,
2203
2728
  ...props
2204
2729
  }) {
2205
- const content = useMemo(() => {
2730
+ const content = React3.useMemo(() => {
2206
2731
  if (children) {
2207
2732
  return children;
2208
2733
  }
@@ -2215,6 +2740,7 @@ function FieldError({
2215
2740
  }
2216
2741
  return /* @__PURE__ */ jsx("ul", { className: "a63-FieldError-list", children: uniqueErrors.map((error) => error?.message && /* @__PURE__ */ jsx("li", { children: error.message }, error.message)) });
2217
2742
  }, [children, errors]);
2743
+ const id = useFieldPart("error", idProp, Boolean(content));
2218
2744
  if (!content) {
2219
2745
  return null;
2220
2746
  }
@@ -2224,6 +2750,7 @@ function FieldError({
2224
2750
  role: "alert",
2225
2751
  className: cn("a63-FieldError", className),
2226
2752
  "data-slot": "field-error",
2753
+ id,
2227
2754
  ...props,
2228
2755
  children: content
2229
2756
  }
@@ -2422,9 +2949,20 @@ function InputOTPSeparator({ className, ...props }) {
2422
2949
  }
2423
2950
  function ItemGroup({
2424
2951
  className,
2952
+ variant = itemContract.defaultGroupVariant,
2953
+ surface = itemContract.defaultGroupSurface,
2425
2954
  ...props
2426
2955
  }) {
2427
- return /* @__PURE__ */ jsx("div", { className: cn("a63-ItemGroup", className), "data-slot": "item-group", ...props });
2956
+ return /* @__PURE__ */ jsx(
2957
+ "div",
2958
+ {
2959
+ className: cn("a63-ItemGroup", className),
2960
+ "data-slot": "item-group",
2961
+ "data-surface": surface,
2962
+ "data-variant": variant,
2963
+ ...props
2964
+ }
2965
+ );
2428
2966
  }
2429
2967
  function ItemSeparator({ className, ...props }) {
2430
2968
  return /* @__PURE__ */ jsx(
@@ -2441,6 +2979,7 @@ function Item({
2441
2979
  className,
2442
2980
  variant = itemContract.defaultVariant,
2443
2981
  size = itemContract.defaultSize,
2982
+ tone = itemContract.defaultTone,
2444
2983
  render,
2445
2984
  ...props
2446
2985
  }) {
@@ -2451,6 +2990,7 @@ function Item({
2451
2990
  className: cn("a63-Item", className),
2452
2991
  "data-size": size,
2453
2992
  "data-slot": "item",
2993
+ "data-tone": tone,
2454
2994
  "data-variant": variant
2455
2995
  },
2456
2996
  props
@@ -2459,6 +2999,7 @@ function Item({
2459
2999
  state: {
2460
3000
  size,
2461
3001
  slot: "item",
3002
+ tone,
2462
3003
  variant
2463
3004
  }
2464
3005
  });
@@ -2541,10 +3082,8 @@ var LoadMoreTrigger = forwardRef(
2541
3082
  variant = loadMoreTriggerContract.defaultVariant
2542
3083
  }, ref) => {
2543
3084
  const resolvedState = state ?? (isLoading ? "loading" : hasMore ? "idle" : "hidden");
2544
- if (resolvedState === "hidden") {
2545
- return null;
2546
- }
2547
- if (children) {
3085
+ const isHidden = resolvedState === "hidden";
3086
+ if (children && !isHidden) {
2548
3087
  return /* @__PURE__ */ jsx(
2549
3088
  "div",
2550
3089
  {
@@ -2557,21 +3096,20 @@ var LoadMoreTrigger = forwardRef(
2557
3096
  }
2558
3097
  );
2559
3098
  }
2560
- const tone = stateTones[resolvedState] ?? "neutral";
2561
- const isStatus = resolvedState !== "idle";
3099
+ const tone = isHidden ? void 0 : stateTones[resolvedState] ?? "neutral";
2562
3100
  return /* @__PURE__ */ jsx(
2563
3101
  "div",
2564
3102
  {
2565
- "aria-live": isStatus ? "polite" : void 0,
3103
+ "aria-live": "polite",
2566
3104
  className: cn("a63-LoadMoreTrigger", className),
2567
- "data-has-message": "",
3105
+ "data-has-message": isHidden ? void 0 : "",
2568
3106
  "data-state": resolvedState,
2569
3107
  "data-slot": "load-more-trigger",
2570
3108
  "data-tone": tone,
2571
3109
  "data-variant": variant,
2572
- ref,
2573
- role: isStatus ? "status" : void 0,
2574
- children: /* @__PURE__ */ jsxs(
3110
+ ref: isHidden ? void 0 : ref,
3111
+ role: "status",
3112
+ children: isHidden ? null : /* @__PURE__ */ jsxs(
2575
3113
  "div",
2576
3114
  {
2577
3115
  className: "a63-LoadMoreTrigger-message",
@@ -2625,8 +3163,9 @@ LoadMoreTrigger.displayName = "LoadMoreTrigger";
2625
3163
  function Marquee({
2626
3164
  className,
2627
3165
  reverse = false,
2628
- pauseOnHover = false,
2629
- paused = false,
3166
+ pauseOnHover = true,
3167
+ paused,
3168
+ pauseLabel = "Pause",
2630
3169
  style,
2631
3170
  children,
2632
3171
  vertical = false,
@@ -2634,9 +3173,11 @@ function Marquee({
2634
3173
  gap = marqueeContract.defaultGap,
2635
3174
  ...props
2636
3175
  }) {
3176
+ const [userPaused, setUserPaused] = useState(false);
3177
+ const isPaused = paused ?? userPaused;
2637
3178
  const reducedMotion = Boolean(useReducedMotion());
2638
3179
  const scrollRegion = reducedMotion ? { "aria-label": "Scrolling content", role: "group", tabIndex: 0 } : void 0;
2639
- return /* @__PURE__ */ jsx(
3180
+ return /* @__PURE__ */ jsxs(
2640
3181
  "div",
2641
3182
  {
2642
3183
  className: cn("a63-Marquee", className),
@@ -2645,21 +3186,35 @@ function Marquee({
2645
3186
  ...scrollRegion,
2646
3187
  ...props,
2647
3188
  style: { "--gap": gap, ...style },
2648
- children: Array.from({ length: repeat }, (_, trackIndex) => /* @__PURE__ */ jsx(
2649
- "div",
2650
- {
2651
- "aria-hidden": trackIndex > 0 || void 0,
2652
- className: "a63-Marquee-track",
2653
- "data-orientation": vertical ? "vertical" : "horizontal",
2654
- "data-paused": paused ? "" : void 0,
2655
- "data-pause-on-hover": pauseOnHover ? "" : void 0,
2656
- "data-reverse": reverse ? "" : void 0,
2657
- "data-slot": "marquee-track",
2658
- inert: trackIndex > 0 ? true : void 0,
2659
- children
2660
- },
2661
- `marquee-track-${trackIndex}`
2662
- ))
3189
+ children: [
3190
+ Array.from({ length: repeat }, (_, trackIndex) => /* @__PURE__ */ jsx(
3191
+ "div",
3192
+ {
3193
+ "aria-hidden": trackIndex > 0 || void 0,
3194
+ className: "a63-Marquee-track",
3195
+ "data-orientation": vertical ? "vertical" : "horizontal",
3196
+ "data-paused": isPaused ? "" : void 0,
3197
+ "data-pause-on-hover": pauseOnHover ? "" : void 0,
3198
+ "data-reverse": reverse ? "" : void 0,
3199
+ "data-slot": "marquee-track",
3200
+ inert: trackIndex > 0 ? true : void 0,
3201
+ children
3202
+ },
3203
+ `marquee-track-${trackIndex}`
3204
+ )),
3205
+ paused === void 0 && !reducedMotion ? /* @__PURE__ */ jsx(
3206
+ Button,
3207
+ {
3208
+ "aria-label": pauseLabel,
3209
+ "aria-pressed": userPaused,
3210
+ className: "a63-Marquee-control",
3211
+ onClick: () => setUserPaused((value) => !value),
3212
+ size: "icon-sm",
3213
+ variant: "secondary",
3214
+ children: userPaused ? /* @__PURE__ */ jsx(Play, { "aria-hidden": true }) : /* @__PURE__ */ jsx(Pause, { "aria-hidden": true })
3215
+ }
3216
+ ) : null
3217
+ ]
2663
3218
  }
2664
3219
  );
2665
3220
  }
@@ -2845,6 +3400,86 @@ function MenubarSubContent({
2845
3400
  }
2846
3401
  );
2847
3402
  }
3403
+ function MessageList({ className, ...props }) {
3404
+ return /* @__PURE__ */ jsx(
3405
+ "div",
3406
+ {
3407
+ className: cn("a63-MessageList", className),
3408
+ "data-slot": "message-list",
3409
+ role: "log",
3410
+ ...props
3411
+ }
3412
+ );
3413
+ }
3414
+ var STATUS = {
3415
+ sending: { icon: Clock, label: "Sending" },
3416
+ sent: { icon: Check, label: "Sent" },
3417
+ delivered: { icon: CheckCheck, label: "Delivered" },
3418
+ read: { icon: CheckCheck, label: "Read" },
3419
+ failed: { icon: AlertCircle, label: "Not delivered" }
3420
+ };
3421
+ function Message({
3422
+ avatar,
3423
+ children,
3424
+ className,
3425
+ direction = messageContract.defaultDirection,
3426
+ label,
3427
+ media,
3428
+ position = messageContract.defaultPosition,
3429
+ status,
3430
+ statusLabels,
3431
+ time,
3432
+ ...props
3433
+ }) {
3434
+ const Status = status ? STATUS[status].icon : null;
3435
+ const statusLabel = status ? statusLabels?.[status] ?? STATUS[status].label : null;
3436
+ return /* @__PURE__ */ jsxs(
3437
+ "article",
3438
+ {
3439
+ "aria-label": label,
3440
+ className: cn("a63-Message", className),
3441
+ "data-direction": direction,
3442
+ "data-media": media ? "" : void 0,
3443
+ "data-position": position,
3444
+ "data-slot": "message",
3445
+ ...props,
3446
+ children: [
3447
+ avatar && direction === "incoming" ? /* @__PURE__ */ jsx("div", { className: "a63-Message-avatar", "data-slot": "message-avatar", children: avatar }) : null,
3448
+ /* @__PURE__ */ jsxs("div", { className: "a63-Message-bubble", "data-slot": "message-bubble", children: [
3449
+ media ? /* @__PURE__ */ jsx("div", { className: "a63-Message-media", "data-slot": "message-media", children: media }) : null,
3450
+ children || time || status ? /* @__PURE__ */ jsxs("div", { className: "a63-Message-content", "data-slot": "message-content", children: [
3451
+ children,
3452
+ time || status ? /* @__PURE__ */ jsxs("span", { className: "a63-Message-meta", "data-slot": "message-meta", children: [
3453
+ time,
3454
+ Status ? /* @__PURE__ */ jsx(
3455
+ "span",
3456
+ {
3457
+ className: "a63-Message-status",
3458
+ "data-slot": "message-status",
3459
+ "data-status": status,
3460
+ role: "img",
3461
+ "aria-label": statusLabel ?? void 0,
3462
+ children: /* @__PURE__ */ jsx(Status, { "aria-hidden": true })
3463
+ }
3464
+ ) : null
3465
+ ] }) : null
3466
+ ] }) : null
3467
+ ] })
3468
+ ]
3469
+ }
3470
+ );
3471
+ }
3472
+ function MessageEvent({
3473
+ children,
3474
+ className,
3475
+ icon,
3476
+ ...props
3477
+ }) {
3478
+ return /* @__PURE__ */ jsxs("div", { className: cn("a63-MessageEvent", className), "data-slot": "message-event", ...props, children: [
3479
+ icon ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "a63-MessageEvent-icon", children: icon }) : null,
3480
+ /* @__PURE__ */ jsx("span", { children })
3481
+ ] });
3482
+ }
2848
3483
  function Pagination({ className, ...props }) {
2849
3484
  return /* @__PURE__ */ jsx(
2850
3485
  "nav",
@@ -3123,8 +3758,8 @@ function buildMask(position, from, to) {
3123
3758
  }
3124
3759
  function ProgressiveBlur({
3125
3760
  className,
3126
- height = "30%",
3127
- position = "bottom",
3761
+ height = progressiveBlurContract.defaultHeight,
3762
+ position = progressiveBlurContract.defaultPosition,
3128
3763
  blurLevels = [0.5, 1, 2, 4, 8, 16, 32, 64]
3129
3764
  }) {
3130
3765
  const count = blurLevels.length;
@@ -3172,6 +3807,7 @@ function RadioGroup({ className, ...props }) {
3172
3807
  }
3173
3808
  function Radio({
3174
3809
  className,
3810
+ indicator = radioContract.defaultIndicator,
3175
3811
  size = radioContract.defaultSize,
3176
3812
  ...props
3177
3813
  }) {
@@ -3179,6 +3815,7 @@ function Radio({
3179
3815
  Radio$1.Root,
3180
3816
  {
3181
3817
  className: cn("a63-Radio", className),
3818
+ "data-indicator": indicator,
3182
3819
  "data-size": size,
3183
3820
  "data-slot": "radio",
3184
3821
  ...props,
@@ -3186,6 +3823,73 @@ function Radio({
3186
3823
  }
3187
3824
  );
3188
3825
  }
3826
+ function Rating({
3827
+ className,
3828
+ value,
3829
+ max = 5,
3830
+ onValueChange,
3831
+ label,
3832
+ disabled = false,
3833
+ icon,
3834
+ size = ratingContract.defaultSize,
3835
+ ...props
3836
+ }) {
3837
+ const glyph = icon ?? /* @__PURE__ */ jsx(Star, { "aria-hidden": true });
3838
+ const stars = Array.from({ length: max }, (_, index) => index + 1);
3839
+ const fill = (star) => Math.min(1, Math.max(0, value - (star - 1)));
3840
+ if (!onValueChange) {
3841
+ return /* @__PURE__ */ jsx(
3842
+ "div",
3843
+ {
3844
+ "aria-label": label ?? `${value} out of ${max}`,
3845
+ className: cn("a63-Rating", className),
3846
+ "data-read-only": "",
3847
+ "data-size": size,
3848
+ "data-slot": "rating",
3849
+ role: "img",
3850
+ ...props,
3851
+ children: stars.map((star) => /* @__PURE__ */ jsxs(
3852
+ "span",
3853
+ {
3854
+ className: "a63-Rating-item",
3855
+ "data-slot": "rating-item",
3856
+ style: { "--rating-fill": `${fill(star) * 100}%` },
3857
+ children: [
3858
+ /* @__PURE__ */ jsx("span", { className: "a63-Rating-icon", "data-slot": "rating-icon", children: glyph }),
3859
+ /* @__PURE__ */ jsx("span", { className: "a63-Rating-icon a63-Rating-icon--filled", "data-slot": "rating-icon", children: glyph })
3860
+ ]
3861
+ },
3862
+ star
3863
+ ))
3864
+ }
3865
+ );
3866
+ }
3867
+ return /* @__PURE__ */ jsx(
3868
+ RadioGroup,
3869
+ {
3870
+ "aria-label": label,
3871
+ className: cn("a63-Rating", className),
3872
+ "data-size": size,
3873
+ "data-slot": "rating",
3874
+ disabled,
3875
+ onValueChange: (next) => onValueChange(Number(next)),
3876
+ value: String(Math.round(value)),
3877
+ ...props,
3878
+ children: stars.map((star) => /* @__PURE__ */ jsx(
3879
+ Radio$1.Root,
3880
+ {
3881
+ "aria-label": star === 1 ? "1 star" : `${star} stars`,
3882
+ className: "a63-Rating-item",
3883
+ "data-on": star <= value ? "" : void 0,
3884
+ "data-slot": "rating-item",
3885
+ value: String(star),
3886
+ children: /* @__PURE__ */ jsx("span", { className: "a63-Rating-icon", "data-slot": "rating-icon", children: glyph })
3887
+ },
3888
+ star
3889
+ ))
3890
+ }
3891
+ );
3892
+ }
3189
3893
  var ResizableOrientationContext = createContext("horizontal");
3190
3894
  function ResizablePanelGroup({
3191
3895
  children,
@@ -3212,11 +3916,13 @@ function ResizablePanel({ ...props }) {
3212
3916
  }
3213
3917
  function ResizableHandle({
3214
3918
  "aria-label": ariaLabel = "Resize panels",
3919
+ variant,
3215
3920
  withHandle,
3216
3921
  className,
3217
3922
  ...props
3218
3923
  }) {
3219
3924
  const orientation = useContext(ResizableOrientationContext);
3925
+ const resolvedVariant = variant ?? (withHandle ? "grip" : "line");
3220
3926
  return /* @__PURE__ */ jsx(
3221
3927
  ResizablePrimitive.Separator,
3222
3928
  {
@@ -3224,8 +3930,9 @@ function ResizableHandle({
3224
3930
  className: cn("a63-Resizable-handle", className),
3225
3931
  "data-panel-group-direction": orientation,
3226
3932
  "data-slot": "resizable-handle",
3933
+ "data-variant": resolvedVariant,
3227
3934
  ...props,
3228
- children: withHandle && /* @__PURE__ */ jsx("div", { className: "a63-Resizable-handle-grip", "data-slot": "resizable-handle-grip", children: /* @__PURE__ */ jsxs(
3935
+ children: resolvedVariant === "grip" && /* @__PURE__ */ jsx("div", { className: "a63-Resizable-handle-grip", "data-slot": "resizable-handle-grip", children: /* @__PURE__ */ jsxs(
3229
3936
  "svg",
3230
3937
  {
3231
3938
  "aria-hidden": "true",
@@ -3259,14 +3966,30 @@ function SearchField({
3259
3966
  clearLabel = "Clear search",
3260
3967
  defaultValue = "",
3261
3968
  disabled,
3969
+ endAddon,
3262
3970
  inputClassName,
3971
+ invalid,
3263
3972
  onClear,
3264
3973
  onValueChange,
3974
+ ref,
3975
+ size,
3265
3976
  spellCheck = false,
3266
3977
  value,
3978
+ variant = searchFieldContract.defaultVariant,
3267
3979
  ...props
3268
3980
  }) {
3269
3981
  const inputRef = React3.useRef(null);
3982
+ const setInputRef = React3.useCallback(
3983
+ (node) => {
3984
+ inputRef.current = node;
3985
+ if (typeof ref === "function") {
3986
+ ref(node);
3987
+ } else if (ref) {
3988
+ ref.current = node;
3989
+ }
3990
+ },
3991
+ [ref]
3992
+ );
3270
3993
  const isControlled = value !== void 0;
3271
3994
  const [internalValue, setInternalValue] = React3.useState(defaultValue);
3272
3995
  const currentValue = isControlled ? value : internalValue;
@@ -3284,6 +4007,9 @@ function SearchField({
3284
4007
  "data-search-state": state,
3285
4008
  "data-slot": "search-field",
3286
4009
  disabled,
4010
+ invalid,
4011
+ size: typeof size === "number" ? void 0 : size,
4012
+ variant,
3287
4013
  children: [
3288
4014
  /* @__PURE__ */ jsx(InputGroupAddon, { "data-slot": "search-field-icon", children: /* @__PURE__ */ jsx(SearchIcon, {}) }),
3289
4015
  /* @__PURE__ */ jsx(
@@ -3293,7 +4019,8 @@ function SearchField({
3293
4019
  autoComplete,
3294
4020
  inputClassName,
3295
4021
  onChange: (event) => updateValue(event.currentTarget.value),
3296
- ref: inputRef,
4022
+ ref: setInputRef,
4023
+ size: typeof size === "number" ? size : void 0,
3297
4024
  spellCheck,
3298
4025
  type: "search",
3299
4026
  value: currentValue
@@ -3312,7 +4039,8 @@ function SearchField({
3312
4039
  type: "button",
3313
4040
  children: /* @__PURE__ */ jsx(ClearIcon, {})
3314
4041
  }
3315
- ) }) : null
4042
+ ) }) : null,
4043
+ endAddon ? /* @__PURE__ */ jsx(InputGroupAddon, { align: "inline-end", "data-slot": "search-field-end", children: endAddon }) : null
3316
4044
  ]
3317
4045
  }
3318
4046
  );
@@ -3348,6 +4076,10 @@ function useIsMobile() {
3348
4076
  }, []);
3349
4077
  return !!isMobile;
3350
4078
  }
4079
+ function isEditableTarget(target) {
4080
+ if (!(target instanceof HTMLElement)) return false;
4081
+ return target.isContentEditable || target.closest('input, textarea, select, [contenteditable]:not([contenteditable="false"])') !== null;
4082
+ }
3351
4083
  function resolveRender(asChild, render, children) {
3352
4084
  if (render) {
3353
4085
  return render;
@@ -3357,6 +4089,18 @@ function resolveRender(asChild, render, children) {
3357
4089
  }
3358
4090
  return void 0;
3359
4091
  }
4092
+ function renderChildren(asChild, render, children) {
4093
+ if (render) {
4094
+ if (React3.isValidElement(render)) {
4095
+ return render.props.children == null ? children : void 0;
4096
+ }
4097
+ return children;
4098
+ }
4099
+ if (asChild && React3.isValidElement(children)) {
4100
+ return void 0;
4101
+ }
4102
+ return children;
4103
+ }
3360
4104
  var SidebarContext = React3.createContext(null);
3361
4105
  function useSidebar() {
3362
4106
  const context = React3.useContext(SidebarContext);
@@ -3369,6 +4113,7 @@ function SidebarProvider({
3369
4113
  defaultOpen = true,
3370
4114
  open: openProp,
3371
4115
  onOpenChange: setOpenProp,
4116
+ keyboardShortcut = SIDEBAR_KEYBOARD_SHORTCUT,
3372
4117
  className,
3373
4118
  style,
3374
4119
  children,
@@ -3383,26 +4128,28 @@ function SidebarProvider({
3383
4128
  const openState = typeof value === "function" ? value(open) : value;
3384
4129
  if (setOpenProp) {
3385
4130
  setOpenProp(openState);
3386
- } else {
4131
+ }
4132
+ if (openProp === void 0) {
3387
4133
  _setOpen(openState);
4134
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
3388
4135
  }
3389
- document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
3390
4136
  },
3391
- [setOpenProp, open]
4137
+ [setOpenProp, openProp, open]
3392
4138
  );
3393
4139
  const toggleSidebar = React3.useCallback(() => {
3394
4140
  return isMobile ? setOpenMobile((o) => !o) : setOpen((o) => !o);
3395
4141
  }, [isMobile, setOpen]);
3396
4142
  React3.useEffect(() => {
4143
+ if (keyboardShortcut === false) return;
3397
4144
  const handleKeyDown = (event) => {
3398
- if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
3399
- event.preventDefault();
3400
- toggleSidebar();
3401
- }
4145
+ if (event.key !== keyboardShortcut || !(event.metaKey || event.ctrlKey)) return;
4146
+ if (isEditableTarget(event.target)) return;
4147
+ event.preventDefault();
4148
+ toggleSidebar();
3402
4149
  };
3403
4150
  window.addEventListener("keydown", handleKeyDown);
3404
4151
  return () => window.removeEventListener("keydown", handleKeyDown);
3405
- }, [toggleSidebar]);
4152
+ }, [keyboardShortcut, toggleSidebar]);
3406
4153
  const state = open ? "expanded" : "collapsed";
3407
4154
  const contextValue = React3.useMemo(
3408
4155
  () => ({
@@ -3497,6 +4244,7 @@ function Sidebar({
3497
4244
  className: cn("a63-Sidebar-container", className),
3498
4245
  "data-side": side,
3499
4246
  "data-slot": "sidebar-container",
4247
+ inert: state === "collapsed" && collapsible === "offcanvas",
3500
4248
  ...props,
3501
4249
  children: /* @__PURE__ */ jsx("div", { className: "a63-Sidebar-inner", "data-sidebar": "sidebar", "data-slot": "sidebar-inner", children })
3502
4250
  }
@@ -3638,7 +4386,7 @@ function SidebarGroupLabel({
3638
4386
  className: cn("a63-Sidebar-group-label", className),
3639
4387
  "data-sidebar": "group-label",
3640
4388
  "data-slot": "sidebar-group-label",
3641
- children: render ? void 0 : children
4389
+ children: renderChildren(asChild, renderProp, children)
3642
4390
  },
3643
4391
  props
3644
4392
  ),
@@ -3664,7 +4412,7 @@ function SidebarGroupAction({
3664
4412
  className: cn("a63-Sidebar-group-action", className),
3665
4413
  "data-sidebar": "group-action",
3666
4414
  "data-slot": "sidebar-group-action",
3667
- children: render ? void 0 : children,
4415
+ children: renderChildren(asChild, renderProp, children),
3668
4416
  type: "button"
3669
4417
  },
3670
4418
  props
@@ -3719,6 +4467,7 @@ function SidebarMenuButton({
3719
4467
  isActive = false,
3720
4468
  variant = sidebarContract.defaultMenuButtonVariant,
3721
4469
  size = sidebarContract.defaultMenuButtonSize,
4470
+ tone = sidebarContract.defaultMenuButtonTone,
3722
4471
  tooltip,
3723
4472
  className,
3724
4473
  ...props
@@ -3729,13 +4478,15 @@ function SidebarMenuButton({
3729
4478
  defaultTagName: "button",
3730
4479
  props: mergeProps(
3731
4480
  {
4481
+ "aria-current": isActive ? "page" : void 0,
3732
4482
  className: cn("a63-Sidebar-menu-button", className),
3733
4483
  "data-active": isActive,
3734
4484
  "data-sidebar": "menu-button",
3735
4485
  "data-size": size,
3736
4486
  "data-slot": "sidebar-menu-button",
4487
+ "data-tone": tone,
3737
4488
  "data-variant": variant,
3738
- children: resolvedRender ? void 0 : children,
4489
+ children: renderChildren(asChild, renderProp, children),
3739
4490
  type: "button"
3740
4491
  },
3741
4492
  props
@@ -3766,7 +4517,7 @@ function SidebarMenuButton({
3766
4517
  {
3767
4518
  align: "center",
3768
4519
  hidden: state !== "collapsed" || isMobile,
3769
- side: "right",
4520
+ side: "inline-end",
3770
4521
  ...tooltipProps
3771
4522
  }
3772
4523
  )
@@ -3792,7 +4543,7 @@ function SidebarMenuAction({
3792
4543
  ),
3793
4544
  "data-sidebar": "menu-action",
3794
4545
  "data-slot": "sidebar-menu-action",
3795
- children: render ? void 0 : children,
4546
+ children: renderChildren(asChild, renderProp, children),
3796
4547
  type: "button"
3797
4548
  },
3798
4549
  props
@@ -3882,6 +4633,7 @@ function SidebarMenuSubButton({
3882
4633
  children,
3883
4634
  size = sidebarContract.defaultMenuSubButtonSize,
3884
4635
  isActive = false,
4636
+ tone = sidebarContract.defaultMenuButtonTone,
3885
4637
  className,
3886
4638
  ...props
3887
4639
  }) {
@@ -3890,12 +4642,14 @@ function SidebarMenuSubButton({
3890
4642
  defaultTagName: "a",
3891
4643
  props: mergeProps(
3892
4644
  {
4645
+ "aria-current": isActive ? "page" : void 0,
3893
4646
  className: cn("a63-Sidebar-menu-sub-button", className),
3894
4647
  "data-active": isActive,
3895
4648
  "data-sidebar": "menu-sub-button",
3896
4649
  "data-size": size,
3897
4650
  "data-slot": "sidebar-menu-sub-button",
3898
- children: render ? void 0 : children
4651
+ "data-tone": tone,
4652
+ children: renderChildren(asChild, renderProp, children)
3899
4653
  },
3900
4654
  props
3901
4655
  ),
@@ -3911,6 +4665,7 @@ function SidebarMenuSubButton({
3911
4665
  function TextTicker({
3912
4666
  children,
3913
4667
  className,
4668
+ variant,
3914
4669
  animationType,
3915
4670
  autoPlay = false,
3916
4671
  marqueeDelay = 0,
@@ -3918,6 +4673,7 @@ function TextTicker({
3918
4673
  style,
3919
4674
  ...props
3920
4675
  }) {
4676
+ const marquee = (variant ?? animationType ?? textTickerContract.defaultVariant) === "marquee";
3921
4677
  const containerRef = useRef(null);
3922
4678
  const measureRef = useRef(null);
3923
4679
  const [isOverflowing, setIsOverflowing] = useState(false);
@@ -3931,7 +4687,7 @@ function TextTicker({
3931
4687
  setIsOverflowing((current) => current === nextIsOverflowing ? current : nextIsOverflowing);
3932
4688
  }, []);
3933
4689
  useEffect(() => {
3934
- if (animationType !== "marquee") {
4690
+ if (!marquee) {
3935
4691
  return;
3936
4692
  }
3937
4693
  measureOverflow();
@@ -3954,13 +4710,14 @@ function TextTicker({
3954
4710
  return () => {
3955
4711
  resizeObserver.disconnect();
3956
4712
  };
3957
- }, [animationType, measureOverflow]);
3958
- if (animationType !== "marquee") {
4713
+ }, [marquee, measureOverflow]);
4714
+ if (!marquee) {
3959
4715
  return /* @__PURE__ */ jsx(
3960
4716
  "span",
3961
4717
  {
3962
4718
  className: cn("a63-TextTicker", className),
3963
4719
  "data-slot": "text-ticker",
4720
+ "data-variant": "truncate",
3964
4721
  "data-static": "",
3965
4722
  style,
3966
4723
  ...props,
@@ -3977,6 +4734,7 @@ function TextTicker({
3977
4734
  "data-autoplay": isAutoPlaying ? "" : void 0,
3978
4735
  "data-overflowing": isOverflowing ? "" : void 0,
3979
4736
  "data-slot": "text-ticker",
4737
+ "data-variant": "marquee",
3980
4738
  ...props,
3981
4739
  style: {
3982
4740
  "--a63-text-ticker-gap": "1.5rem",
@@ -4002,7 +4760,7 @@ function withTickerLabel(element) {
4002
4760
  return React3.cloneElement(
4003
4761
  element,
4004
4762
  void 0,
4005
- /* @__PURE__ */ jsx(TextTicker, { animationType: "marquee", className: "a63-SidebarNavTree-ticker", children: label })
4763
+ /* @__PURE__ */ jsx(TextTicker, { variant: "marquee", className: "a63-SidebarNavTree-ticker", children: label })
4006
4764
  );
4007
4765
  }
4008
4766
  const children = React3.Children.toArray(label);
@@ -4017,24 +4775,80 @@ function withTickerLabel(element) {
4017
4775
  void 0,
4018
4776
  React3.cloneElement(firstChild, {
4019
4777
  className: cn(firstChildProps.className, "a63-SidebarNavTree-ticker"),
4020
- children: /* @__PURE__ */ jsx(TextTicker, { animationType: "marquee", className: "a63-SidebarNavTree-ticker-inner", children: firstChildProps.children })
4778
+ children: /* @__PURE__ */ jsx(TextTicker, { variant: "marquee", className: "a63-SidebarNavTree-ticker-inner", children: firstChildProps.children })
4021
4779
  }),
4022
4780
  ...restChildren
4023
4781
  );
4024
4782
  }
4025
4783
  return element;
4026
4784
  }
4027
- function SidebarNavGroup({ children, className, label }) {
4028
- return /* @__PURE__ */ jsxs(SidebarGroup, { className, children: [
4029
- /* @__PURE__ */ jsx(SidebarGroupLabel, { className: "a63-SidebarNavTree-group-label", children: label }),
4030
- /* @__PURE__ */ jsx(SidebarGroupContent, { className: "a63-SidebarNavTree-group-content", children: /* @__PURE__ */ jsx(SidebarMenu, { className: "a63-SidebarNavTree-list", children }) })
4031
- ] });
4785
+ function SidebarNavGroup({
4786
+ children,
4787
+ className,
4788
+ label,
4789
+ collapsible = false,
4790
+ defaultOpen = true,
4791
+ open,
4792
+ onOpenChange
4793
+ }) {
4794
+ const content = /* @__PURE__ */ jsx(SidebarGroupContent, { className: "a63-SidebarNavTree-group-content", children: /* @__PURE__ */ jsx(SidebarMenu, { className: "a63-SidebarNavTree-list", children }) });
4795
+ if (!collapsible) {
4796
+ return /* @__PURE__ */ jsxs(SidebarGroup, { className, children: [
4797
+ /* @__PURE__ */ jsx(SidebarGroupLabel, { className: "a63-SidebarNavTree-group-label", children: label }),
4798
+ content
4799
+ ] });
4800
+ }
4801
+ return /* @__PURE__ */ jsx(SidebarGroup, { className, children: /* @__PURE__ */ jsxs(
4802
+ Collapsible,
4803
+ {
4804
+ defaultOpen: open === void 0 ? defaultOpen : void 0,
4805
+ onOpenChange: onOpenChange ? (next) => onOpenChange(next) : void 0,
4806
+ open,
4807
+ children: [
4808
+ /* @__PURE__ */ jsxs(
4809
+ CollapsibleTrigger,
4810
+ {
4811
+ className: "a63-Sidebar-group-label a63-SidebarNavTree-group-label a63-SidebarNavTree-group-trigger",
4812
+ "data-sidebar": "group-label",
4813
+ "data-slot": "sidebar-group-label",
4814
+ type: "button",
4815
+ children: [
4816
+ label,
4817
+ /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: "a63-SidebarNavTree-chevron" })
4818
+ ]
4819
+ }
4820
+ ),
4821
+ /* @__PURE__ */ jsx(CollapsibleContent, { children: content })
4822
+ ]
4823
+ }
4824
+ ) });
4032
4825
  }
4033
4826
  function SidebarNavLinkItem({
4034
4827
  children,
4035
4828
  className,
4036
- isActive = false
4829
+ href,
4830
+ icon,
4831
+ isActive = false,
4832
+ render,
4833
+ tone = sidebarNavTreeContract.defaultTone
4037
4834
  }) {
4835
+ const label = typeof children === "string" ? /* @__PURE__ */ jsx(TextTicker, { variant: "marquee", className: "a63-SidebarNavTree-ticker", children }) : /* @__PURE__ */ jsx("span", { children });
4836
+ let link;
4837
+ if (render) {
4838
+ link = React3.cloneElement(
4839
+ render,
4840
+ href === void 0 ? void 0 : { href },
4841
+ icon,
4842
+ label
4843
+ );
4844
+ } else if (href !== void 0) {
4845
+ link = /* @__PURE__ */ jsxs("a", { href, children: [
4846
+ icon,
4847
+ label
4848
+ ] });
4849
+ } else {
4850
+ link = withTickerLabel(children);
4851
+ }
4038
4852
  return /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(
4039
4853
  SidebarMenuButton,
4040
4854
  {
@@ -4042,18 +4856,21 @@ function SidebarNavLinkItem({
4042
4856
  className: cn("a63-SidebarNavTree-item", className),
4043
4857
  isActive,
4044
4858
  size: "sm",
4045
- children: withTickerLabel(children)
4859
+ tone,
4860
+ children: link
4046
4861
  }
4047
4862
  ) });
4048
4863
  }
4049
4864
  function SidebarNavCollapsibleItem({
4050
4865
  children,
4051
4866
  className,
4867
+ icon,
4052
4868
  isActive = false,
4053
4869
  label,
4054
4870
  link,
4055
4871
  onOpenChange,
4056
- open
4872
+ open,
4873
+ tone = sidebarNavTreeContract.defaultTone
4057
4874
  }) {
4058
4875
  const chevron = /* @__PURE__ */ jsx(
4059
4876
  ChevronDown,
@@ -4071,6 +4888,7 @@ function SidebarNavCollapsibleItem({
4071
4888
  className: cn("a63-SidebarNavTree-item", "a63-SidebarNavTree-row-item"),
4072
4889
  isActive,
4073
4890
  size: "sm",
4891
+ tone,
4074
4892
  children: withTickerLabel(link)
4075
4893
  }
4076
4894
  ),
@@ -4089,14 +4907,17 @@ function SidebarNavCollapsibleItem({
4089
4907
  render: /* @__PURE__ */ jsx(
4090
4908
  SidebarMenuButton,
4091
4909
  {
4910
+ "aria-current": void 0,
4092
4911
  className: cn("a63-SidebarNavTree-item", "a63-SidebarNavTree-row-trigger"),
4093
4912
  isActive,
4094
- size: "sm"
4913
+ size: "sm",
4914
+ tone
4095
4915
  }
4096
4916
  ),
4097
4917
  type: "button",
4098
4918
  children: [
4099
- /* @__PURE__ */ jsx(TextTicker, { animationType: "marquee", className: "a63-SidebarNavTree-ticker", children: label }),
4919
+ icon,
4920
+ /* @__PURE__ */ jsx(TextTicker, { variant: "marquee", className: "a63-SidebarNavTree-ticker", children: label }),
4100
4921
  chevron
4101
4922
  ]
4102
4923
  }
@@ -4107,7 +4928,8 @@ function SidebarNavCollapsibleItem({
4107
4928
  function SidebarNavSubLinkItem({
4108
4929
  children,
4109
4930
  className,
4110
- isActive = false
4931
+ isActive = false,
4932
+ tone = sidebarNavTreeContract.defaultTone
4111
4933
  }) {
4112
4934
  return /* @__PURE__ */ jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsx(
4113
4935
  SidebarMenuSubButton,
@@ -4116,6 +4938,7 @@ function SidebarNavSubLinkItem({
4116
4938
  className: cn("a63-SidebarNavTree-item", className),
4117
4939
  isActive,
4118
4940
  size: "sm",
4941
+ tone,
4119
4942
  children: withTickerLabel(children)
4120
4943
  }
4121
4944
  ) });
@@ -4140,8 +4963,24 @@ function Switch({
4140
4963
  }
4141
4964
  );
4142
4965
  }
4143
- function Table({ className, ...props }) {
4144
- return /* @__PURE__ */ jsx("div", { className: "a63-Table-container", "data-slot": "table-container", children: /* @__PURE__ */ jsx("table", { className: cn("a63-Table", className), "data-slot": "table", ...props }) });
4966
+ function Table({
4967
+ className,
4968
+ size = tableContract.defaultSize,
4969
+ tone = tableContract.defaultTone,
4970
+ variant = tableContract.defaultVariant,
4971
+ ...props
4972
+ }) {
4973
+ return /* @__PURE__ */ jsx(
4974
+ "div",
4975
+ {
4976
+ className: "a63-Table-container",
4977
+ "data-size": size,
4978
+ "data-slot": "table-container",
4979
+ "data-tone": tone,
4980
+ "data-variant": variant,
4981
+ children: /* @__PURE__ */ jsx("table", { className: cn("a63-Table", className), "data-slot": "table", ...props })
4982
+ }
4983
+ );
4145
4984
  }
4146
4985
  function TableHeader({ className, ...props }) {
4147
4986
  return /* @__PURE__ */ jsx("thead", { className: cn("a63-Table-header", className), "data-slot": "table-header", ...props });
@@ -4155,11 +4994,27 @@ function TableFooter({ className, ...props }) {
4155
4994
  function TableRow({ className, ...props }) {
4156
4995
  return /* @__PURE__ */ jsx("tr", { className: cn("a63-Table-row", className), "data-slot": "table-row", ...props });
4157
4996
  }
4158
- function TableHead({ className, ...props }) {
4159
- return /* @__PURE__ */ jsx("th", { className: cn("a63-Table-head", className), "data-slot": "table-head", ...props });
4997
+ function TableHead({ className, sticky, ...props }) {
4998
+ return /* @__PURE__ */ jsx(
4999
+ "th",
5000
+ {
5001
+ className: cn("a63-Table-head", className),
5002
+ "data-slot": "table-head",
5003
+ "data-sticky": sticky,
5004
+ ...props
5005
+ }
5006
+ );
4160
5007
  }
4161
- function TableCell({ className, ...props }) {
4162
- return /* @__PURE__ */ jsx("td", { className: cn("a63-Table-cell", className), "data-slot": "table-cell", ...props });
5008
+ function TableCell({ className, sticky, ...props }) {
5009
+ return /* @__PURE__ */ jsx(
5010
+ "td",
5011
+ {
5012
+ className: cn("a63-Table-cell", className),
5013
+ "data-slot": "table-cell",
5014
+ "data-sticky": sticky,
5015
+ ...props
5016
+ }
5017
+ );
4163
5018
  }
4164
5019
  function TableCaption({ className, ...props }) {
4165
5020
  return /* @__PURE__ */ jsx("caption", { className: cn("a63-Table-caption", className), "data-slot": "table-caption", ...props });
@@ -4218,7 +5073,34 @@ function TabsPanel({
4218
5073
  }
4219
5074
  );
4220
5075
  }
4221
- function Toaster({ style, ...props }) {
5076
+ var variantStyles = {
5077
+ default: {
5078
+ "--border-radius": "var(--radius-lg)",
5079
+ "--normal-bg": "var(--a63-surface-overlay)",
5080
+ "--normal-border": "var(--a63-border-subtle)",
5081
+ "--normal-text": "var(--a63-text-primary)"
5082
+ },
5083
+ inverse: {
5084
+ "--border-radius": "var(--radius-pill)",
5085
+ "--normal-bg": "var(--a63-action-neutral)",
5086
+ "--normal-border": "transparent",
5087
+ "--normal-text": "var(--a63-action-neutral-foreground)"
5088
+ }
5089
+ };
5090
+ var inverseToastStyle = {
5091
+ fontSize: "var(--a63-type-subhead-font-size)",
5092
+ gap: "var(--a63-space-2)",
5093
+ paddingBlock: "var(--a63-space-2)",
5094
+ paddingInline: "var(--a63-space-4)"
5095
+ };
5096
+ function Toaster({
5097
+ style,
5098
+ toastOptions,
5099
+ variant = toasterContract.defaultVariant,
5100
+ ...props
5101
+ }) {
5102
+ const inverse = variant === "inverse";
5103
+ const portalContainer = usePortalContainer();
4222
5104
  const toaster = /* @__PURE__ */ jsx(
4223
5105
  Toaster$1,
4224
5106
  {
@@ -4232,26 +5114,30 @@ function Toaster({ style, ...props }) {
4232
5114
  warning: /* @__PURE__ */ jsx(TriangleAlertIcon, { className: "size-4" })
4233
5115
  },
4234
5116
  style: {
4235
- "--border-radius": "var(--radius)",
4236
- "--normal-bg": "var(--popover)",
4237
- "--normal-border": "var(--border)",
4238
- "--normal-text": "var(--popover-foreground)",
5117
+ ...variantStyles[variant],
5118
+ fontFamily: "var(--a63-font-app, var(--font-family-sans))",
4239
5119
  zIndex: "var(--z-layer-toast)",
4240
5120
  ...style
4241
5121
  },
5122
+ ...props,
4242
5123
  toastOptions: {
5124
+ ...toastOptions,
4243
5125
  classNames: {
4244
- icon: "mt-0.5",
4245
- toast: "!items-start"
4246
- }
4247
- },
4248
- ...props
5126
+ ...toastOptions?.classNames,
5127
+ icon: cn(inverse ? void 0 : "mt-0.5", toastOptions?.classNames?.icon),
5128
+ toast: cn(
5129
+ inverse ? "a63-Toast a63-Toast--inverse" : "!items-start",
5130
+ toastOptions?.classNames?.toast
5131
+ )
5132
+ },
5133
+ style: inverse ? { ...inverseToastStyle, ...toastOptions?.style } : toastOptions?.style
5134
+ }
4249
5135
  }
4250
5136
  );
4251
5137
  if (typeof document === "undefined") {
4252
5138
  return toaster;
4253
5139
  }
4254
- return createPortal(toaster, document.body);
5140
+ return createPortal(toaster, portalContainer ?? document.body);
4255
5141
  }
4256
5142
  function Toggle({
4257
5143
  children,
@@ -4283,6 +5169,7 @@ function ToggleGroup({
4283
5169
  orientation = toggleGroupContract.defaultOrientation,
4284
5170
  size = toggleContract.defaultSize,
4285
5171
  tone = toggleContract.defaultTone,
5172
+ variant = toggleGroupContract.defaultVariant,
4286
5173
  ...props
4287
5174
  }) {
4288
5175
  return /* @__PURE__ */ jsx(
@@ -4293,6 +5180,7 @@ function ToggleGroup({
4293
5180
  "data-size": size,
4294
5181
  "data-slot": "toggle-group",
4295
5182
  "data-tone": tone,
5183
+ "data-variant": variant,
4296
5184
  orientation,
4297
5185
  ...props,
4298
5186
  children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { orientation, size, tone }, children })
@@ -4576,6 +5464,7 @@ function UIProvider({
4576
5464
  className,
4577
5465
  density,
4578
5466
  designLanguage,
5467
+ dir,
4579
5468
  input,
4580
5469
  mode,
4581
5470
  render,
@@ -4605,13 +5494,15 @@ function UIProvider({
4605
5494
  ...input !== void 0 && { "data-a63-input": input },
4606
5495
  ...mode !== void 0 && { "data-a63-mode": resolvedMode },
4607
5496
  ...surface !== void 0 && { "data-a63-surface": surface },
4608
- ...theme !== void 0 && { "data-a63-theme": theme }
5497
+ ...theme !== void 0 && { "data-a63-theme": theme },
5498
+ ...dir !== void 0 && { dir }
4609
5499
  };
4610
- return /* @__PURE__ */ jsx(UIEnvironmentContext.Provider, { value: environment, children: useRender({
5500
+ const element = useRender({
4611
5501
  defaultTagName: "div",
4612
5502
  props: mergeProps(defaultProps, props),
4613
5503
  render
4614
- }) });
5504
+ });
5505
+ return /* @__PURE__ */ jsx(UIEnvironmentContext.Provider, { value: environment, children: dir === "ltr" || dir === "rtl" ? /* @__PURE__ */ jsx(DirectionProvider, { direction: dir, children: element }) : element });
4615
5506
  }
4616
5507
  function useUIEnvironment() {
4617
5508
  return React3.useContext(UIEnvironmentContext);
@@ -4638,6 +5529,6 @@ function Atom63Theme({
4638
5529
  });
4639
5530
  }
4640
5531
 
4641
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle, AnimatedCheck, Atom63Theme, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleIndicator, CollapsibleTrigger, ConnectedPanel, ConnectedPanelBody, ConnectedPanelContent, ConnectedPanelDescription, ConnectedPanelFooter, ConnectedPanelHeader, ConnectedPanelTitle, ConnectedPanelTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CopyButtonFeedback, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyErrorDetail, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, LoadMoreTrigger, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelSettingButton, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverTitle, PopoverTrigger, PreviewCard, PreviewCardPopup, PreviewCardTrigger, ProgressiveBlur, Radio, RadioGroup, Radio as RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, SearchField, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavCollapsibleItem, SidebarNavGroup, SidebarNavLinkItem, SidebarNavSubLinkItem, SidebarNavSubList, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, Switch, TINT_MAX_LUMINANCE, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTab, TabsTab as TabsTrigger, TextTicker, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupSeparator, UIProvider, capColorForContrast, colorCacheKey, extractColorFromImage, extractColorFromLoadedImage, getCachedColor, loadAndExtractColor, useCarousel, useExtractColor, useFormField, useSidebar, useUIEnvironment };
5532
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertIcon, AlertTitle, Amount, AnimatedCheck, Atom63Theme, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, ChatComposer, ChatMessage, ChatMessageList, ChatStep, ChatSteps, ChatTypingIndicator, 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, Message, MessageEvent, MessageList, 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, Rating, 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 };
4642
5533
  //# sourceMappingURL=index.js.map
4643
5534
  //# sourceMappingURL=index.js.map