@wow-two-beta/ui 0.0.62 → 0.0.64

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 (48) hide show
  1. package/dist/actions/index.js +2 -1
  2. package/dist/actions/toggleButton/ToggleButton.d.ts +1 -0
  3. package/dist/{chunk-INSI3NPU.js → chunk-5YT7XRTW.js} +41 -13
  4. package/dist/chunk-5YT7XRTW.js.map +1 -0
  5. package/dist/{chunk-BLU5JZAB.js → chunk-GTBNVI77.js} +51 -22
  6. package/dist/chunk-GTBNVI77.js.map +1 -0
  7. package/dist/{chunk-MYLSXVIS.js → chunk-H3WC7KRX.js} +115 -49
  8. package/dist/chunk-H3WC7KRX.js.map +1 -0
  9. package/dist/{chunk-H4P5MAGS.js → chunk-MZZKA3ZS.js} +33 -11
  10. package/dist/chunk-MZZKA3ZS.js.map +1 -0
  11. package/dist/{chunk-WIXKLDTN.js → chunk-NEH4ITXL.js} +205 -87
  12. package/dist/chunk-NEH4ITXL.js.map +1 -0
  13. package/dist/{chunk-3IVQNIHV.js → chunk-NIFL35PJ.js} +3 -3
  14. package/dist/{chunk-3IVQNIHV.js.map → chunk-NIFL35PJ.js.map} +1 -1
  15. package/dist/{chunk-EQNTG53H.js → chunk-NW7ULTYL.js} +8 -7
  16. package/dist/chunk-NW7ULTYL.js.map +1 -0
  17. package/dist/{chunk-DPB2K3BH.js → chunk-O4Y52ERR.js} +80 -37
  18. package/dist/chunk-O4Y52ERR.js.map +1 -0
  19. package/dist/{chunk-VQGGK4VP.js → chunk-RDRFXVNX.js} +67 -108
  20. package/dist/chunk-RDRFXVNX.js.map +1 -0
  21. package/dist/chunk-YQGEF43L.js +118 -0
  22. package/dist/chunk-YQGEF43L.js.map +1 -0
  23. package/dist/{chunk-5JYRZ5PA.js → chunk-ZC4H4PIN.js} +88 -56
  24. package/dist/chunk-ZC4H4PIN.js.map +1 -0
  25. package/dist/display/index.js +2 -1
  26. package/dist/feedback/index.js +2 -2
  27. package/dist/feedback/undoBar/UndoBar.d.ts +1 -1
  28. package/dist/forms/InputStyles.d.ts +100 -2
  29. package/dist/forms/combobox/Combobox.d.ts +1 -1
  30. package/dist/forms/index.js +5 -5
  31. package/dist/forms/select/Select.variants.d.ts +128 -2
  32. package/dist/index.css +38 -0
  33. package/dist/index.js +11 -10
  34. package/dist/layout/index.js +3 -3
  35. package/dist/nav/dropdownMenu/DropdownMenu.d.ts +1 -1
  36. package/dist/nav/index.js +3 -3
  37. package/dist/nav/menu/Menu.d.ts +1 -1
  38. package/dist/overlays/index.js +4 -4
  39. package/package.json +1 -1
  40. package/dist/chunk-5JYRZ5PA.js.map +0 -1
  41. package/dist/chunk-BLU5JZAB.js.map +0 -1
  42. package/dist/chunk-DPB2K3BH.js.map +0 -1
  43. package/dist/chunk-EQNTG53H.js.map +0 -1
  44. package/dist/chunk-H4P5MAGS.js.map +0 -1
  45. package/dist/chunk-INSI3NPU.js.map +0 -1
  46. package/dist/chunk-MYLSXVIS.js.map +0 -1
  47. package/dist/chunk-VQGGK4VP.js.map +0 -1
  48. package/dist/chunk-WIXKLDTN.js.map +0 -1
@@ -1,12 +1,11 @@
1
1
  import { Kbd, addDays, MONTHS_LONG, startOfDay, WEEKDAYS_SHORT, isToday, addMonths, isSameDay } from './chunk-3SWPYYRQ.js';
2
2
  import { Inline } from './chunk-4XWLEKH2.js';
3
- import { useClipboard, useControlled, useReducedMotion, useEscape } from './chunk-V267IMBH.js';
3
+ import { useClipboard, useControlled, useReducedMotion } from './chunk-V267IMBH.js';
4
4
  import { Icon } from './chunk-MVMDDGW7.js';
5
5
  import { tv, CssExtensions, surfaceVariants, dataAttr, composeEventHandlers, Tones } from './chunk-DX7FYAKY.js';
6
- import { Slot, RovingFocusGroup, useRovingFocusItem, Portal, AnchoredPositioner } from './chunk-XLYJF3HC.js';
7
- import { useId as useId$1 } from './chunk-LGTGZ3RW.js';
8
- import { cn, composeRefs } from './chunk-X2MYOHOB.js';
9
- import { forwardRef, useState, useEffect, Children, isValidElement, Fragment as Fragment$1, createContext, useId, useMemo, useCallback, useContext, useRef, useImperativeHandle, useLayoutEffect, cloneElement } from 'react';
6
+ import { Slot, Presence, RovingFocusGroup, useRovingFocusItem, Portal } from './chunk-XLYJF3HC.js';
7
+ import { cn } from './chunk-X2MYOHOB.js';
8
+ import { forwardRef, useState, useEffect, Children, isValidElement, Fragment as Fragment$1, createContext, useId, useMemo, useCallback, useContext, useRef, useImperativeHandle, useLayoutEffect } from 'react';
10
9
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
11
10
  import { TrendingUp, TrendingDown, Check, Copy, ChevronDown, ChevronLeft, ChevronRight, Plus, Minus, Maximize, Pause, Play, VolumeX, Volume2, Captions, CaptionsOff, PictureInPicture2, Minimize, ZoomOut, ZoomIn, Download, SmilePlus, X, AlertTriangle, CheckCheck, Clock, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';
12
11
 
@@ -459,90 +458,6 @@ var AvatarGroup = forwardRef(
459
458
  }
460
459
  );
461
460
  AvatarGroup.displayName = "AvatarGroup";
462
- function Tooltip({
463
- content,
464
- children,
465
- placement = "top",
466
- openDelay = 700,
467
- closeDelay = 0,
468
- open: openProp,
469
- defaultOpen = false,
470
- onOpenChange,
471
- isDisabled
472
- }) {
473
- const [open, setOpen] = useControlled({
474
- controlled: openProp,
475
- default: defaultOpen,
476
- onChange: onOpenChange
477
- });
478
- const [anchor, setAnchor] = useState(null);
479
- const tooltipId = useId$1("tooltip");
480
- const openTimer = useRef(null);
481
- const closeTimer = useRef(null);
482
- const clear = () => {
483
- if (openTimer.current) clearTimeout(openTimer.current);
484
- if (closeTimer.current) clearTimeout(closeTimer.current);
485
- openTimer.current = null;
486
- closeTimer.current = null;
487
- };
488
- const show = () => {
489
- clear();
490
- openTimer.current = setTimeout(() => setOpen(true), openDelay);
491
- };
492
- const hide = () => {
493
- clear();
494
- closeTimer.current = setTimeout(() => setOpen(false), closeDelay);
495
- };
496
- useEffect(
497
- () => () => {
498
- if (openTimer.current) clearTimeout(openTimer.current);
499
- if (closeTimer.current) clearTimeout(closeTimer.current);
500
- },
501
- []
502
- );
503
- useEscape(() => {
504
- clear();
505
- setOpen(false);
506
- }, open);
507
- const visible = !isDisabled && open && !!content;
508
- if (!isValidElement(children)) return children;
509
- const trigger = children;
510
- const cloned = cloneElement(trigger, {
511
- ref: composeRefs(setAnchor, trigger.ref),
512
- "aria-describedby": visible ? [trigger.props["aria-describedby"], tooltipId].filter(Boolean).join(" ") : trigger.props["aria-describedby"],
513
- onPointerEnter: (e) => {
514
- trigger.props.onPointerEnter?.(e);
515
- show();
516
- },
517
- onPointerLeave: (e) => {
518
- trigger.props.onPointerLeave?.(e);
519
- hide();
520
- },
521
- onFocus: (e) => {
522
- trigger.props.onFocus?.(e);
523
- show();
524
- },
525
- onBlur: (e) => {
526
- trigger.props.onBlur?.(e);
527
- hide();
528
- }
529
- });
530
- return /* @__PURE__ */ jsxs(Fragment, { children: [
531
- cloned,
532
- visible && /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(AnchoredPositioner, { anchor, placement, offset: 6, children: /* @__PURE__ */ jsx(
533
- "div",
534
- {
535
- id: tooltipId,
536
- role: "tooltip",
537
- className: cn(
538
- "z-tooltip rounded-md bg-inverse px-2.5 py-1.5 text-xs text-inverse-foreground shadow-md",
539
- "animate-in fade-in-0 zoom-in-95"
540
- ),
541
- children: content
542
- }
543
- ) }) })
544
- ] });
545
- }
546
461
  var SIZE = {
547
462
  sm: { wrap: "gap-2 py-6", iconBox: "h-10 w-10" },
548
463
  md: { wrap: "gap-3 py-10", iconBox: "h-14 w-14" },
@@ -999,10 +914,9 @@ var CollapsibleTrigger = forwardRef(
999
914
  );
1000
915
  }
1001
916
  );
1002
- var CollapsibleContent = forwardRef(
1003
- function CollapsibleContent2({ isForceMounted, className, children, ...rest }, ref) {
917
+ var CollapsibleContentInner = forwardRef(
918
+ function CollapsibleContentInner2({ isForceMounted, className, children, ...props }, ref) {
1004
919
  const ctx = useCollapsibleContext();
1005
- if (!ctx.open && !isForceMounted) return null;
1006
920
  return /* @__PURE__ */ jsx(
1007
921
  "div",
1008
922
  {
@@ -1010,18 +924,40 @@ var CollapsibleContent = forwardRef(
1010
924
  id: ctx.contentId,
1011
925
  role: "region",
1012
926
  "aria-labelledby": ctx.triggerId,
1013
- "data-state": ctx.open ? "open" : "closed",
1014
- hidden: !ctx.open,
927
+ hidden: !ctx.open && !isForceMounted,
1015
928
  className: cn(
1016
- "overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
929
+ "grid grid-rows-[0fr] motion-safe:transition-[grid-template-rows]",
930
+ "motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out)",
931
+ "data-[state=open]:grid-rows-[1fr]",
1017
932
  className
1018
933
  ),
1019
- ...rest,
1020
- children
934
+ ...props,
935
+ children: /* @__PURE__ */ jsx(
936
+ "div",
937
+ {
938
+ className: cn(
939
+ "min-h-0 overflow-hidden",
940
+ "motion-safe:data-[state=open]:animate-(--animate-fade-in)",
941
+ "motion-safe:data-[state=closed]:animate-(--animate-fade-out)",
942
+ "motion-reduce:animate-none"
943
+ ),
944
+ "data-state": ctx.open ? "open" : "closed",
945
+ children
946
+ }
947
+ )
1021
948
  }
1022
949
  );
1023
950
  }
1024
951
  );
952
+ var CollapsibleContent = forwardRef(
953
+ function CollapsibleContent2(props, ref) {
954
+ const ctx = useCollapsibleContext();
955
+ if (props.isForceMounted) {
956
+ return /* @__PURE__ */ jsx(CollapsibleContentInner, { ref, "data-state": ctx.open ? "open" : "closed", ...props });
957
+ }
958
+ return /* @__PURE__ */ jsx(Presence, { isPresent: ctx.open, children: /* @__PURE__ */ jsx(CollapsibleContentInner, { ref, ...props }) });
959
+ }
960
+ );
1025
961
  Collapsible.Trigger = CollapsibleTrigger;
1026
962
  Collapsible.Content = CollapsibleContent;
1027
963
  var AccordionContext = createContext(null);
@@ -1165,20 +1101,23 @@ var AccordionTrigger = forwardRef(
1165
1101
  var AccordionContent = forwardRef(
1166
1102
  function AccordionContent2({ className, children, ...rest }, ref) {
1167
1103
  const item = useAccordionItemContext();
1168
- if (!item.open) return null;
1169
- return /* @__PURE__ */ jsx(
1104
+ return /* @__PURE__ */ jsx(Presence, { isPresent: item.open, children: /* @__PURE__ */ jsx(
1170
1105
  "div",
1171
1106
  {
1172
1107
  ref,
1173
1108
  id: item.contentId,
1174
1109
  role: "region",
1175
1110
  "aria-labelledby": item.triggerId,
1176
- "data-state": "open",
1177
- className: cn("overflow-hidden px-3 pb-3 text-sm text-foreground", className),
1111
+ className: cn(
1112
+ "grid text-sm text-foreground",
1113
+ "motion-safe:transition-[grid-template-rows] motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) motion-reduce:transition-none",
1114
+ "data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]",
1115
+ className
1116
+ ),
1178
1117
  ...rest,
1179
- children
1118
+ children: /* @__PURE__ */ jsx("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "px-3 pb-3", children }) })
1180
1119
  }
1181
- );
1120
+ ) });
1182
1121
  }
1183
1122
  );
1184
1123
  var Accordion2 = Object.assign(AccordionRoot, {
@@ -1311,11 +1250,13 @@ var TabsPanel = forwardRef(function TabsPanel2({ value, className, children, ...
1311
1250
  tabIndex: 0,
1312
1251
  className: cn(
1313
1252
  "flex-1 outline-none focus-visible:ring-2 focus-visible:ring-ring",
1253
+ "motion-safe:animate-(--animate-fade-in)",
1314
1254
  className
1315
1255
  ),
1316
1256
  ...rest,
1317
1257
  children
1318
- }
1258
+ },
1259
+ ctx.value
1319
1260
  );
1320
1261
  });
1321
1262
  Tabs.List = TabsList;
@@ -1597,11 +1538,29 @@ var TreeGroup = forwardRef(function TreeGroup2({ value, label, isDisabled = fals
1597
1538
  label
1598
1539
  }
1599
1540
  ),
1600
- expanded && /* @__PURE__ */ jsx(TreeLevelContext.Provider, { value: { level: level + 1 }, children: /* @__PURE__ */ jsx("ul", { role: "group", className: "flex flex-col", children }) })
1541
+ /* @__PURE__ */ jsx(Presence, { isPresent: expanded, children: /* @__PURE__ */ jsx(TreeGroupContent, { level: level + 1, children }) })
1601
1542
  ]
1602
1543
  }
1603
1544
  );
1604
1545
  });
1546
+ var TreeGroupContent = forwardRef(
1547
+ function TreeGroupContent2({ level, className, children, ...rest }, ref) {
1548
+ return /* @__PURE__ */ jsx(
1549
+ "div",
1550
+ {
1551
+ ref,
1552
+ className: cn(
1553
+ "grid",
1554
+ "motion-safe:transition-[grid-template-rows] motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) motion-reduce:transition-none",
1555
+ "data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]",
1556
+ className
1557
+ ),
1558
+ ...rest,
1559
+ children: /* @__PURE__ */ jsx("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ jsx(TreeLevelContext.Provider, { value: { level }, children: /* @__PURE__ */ jsx("ul", { role: "group", className: "flex flex-col", children }) }) })
1560
+ }
1561
+ );
1562
+ }
1563
+ );
1605
1564
  var TreeItem = forwardRef(function TreeItem2({ value, isDisabled = false, className, children, ...rest }, ref) {
1606
1565
  const ctx = useTreeContext();
1607
1566
  const level = useTreeLevel();
@@ -5971,6 +5930,6 @@ var Sortable = Object.assign(SortableRoot, {
5971
5930
  Handle: SortableHandle
5972
5931
  });
5973
5932
 
5974
- export { Accordion2 as Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityFeed, ActivityItem, AnimatedNumber, AnnotationMarker, AudioPlayer, AudioWaveform, Avatar, AvatarGroup, Badge, BadgeOverlay, Card, Carousel, CarouselDot, CarouselDots, CarouselNext, CarouselPrev, CarouselSlide, CarouselSlides, CarouselViewport, ChatBubble, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, Comment, CommentThread, Confetti, CountBadge, CountUp, DataGrid, DataTable, DaySeparator, DescriptionList, DiffViewer, EmptyState, EventCalendar, Eyebrow, FeatureCard, Gantt, GradientText, Heading, HeatmapCalendar, Highlight, Image, InfoRow, KeyboardShortcut, List, ListItem, Mark, Marquee, MessageList, MetaInline, MetricChip, NodeEditor, NotificationDot, PDFViewer, PricingCard, Quote, ReactionBar, ScheduleView, ScrollReveal, SectionHeader, Separator, Snippet, Sortable, Sparkline, Stat, Status, StepCard, SwipeActions, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeaderCell, TableRow, Tabs, TabsList, TabsPanel, TabsTab, Text, ThreadView, Tilt, Timeline, TimelineDescription, TimelineItem, TimelineTitle, Tooltip, Tree, TreeGroup, TreeItem, Typewriter, VideoPlayer, avatarVariants, badgeVariants, codeVariants, headingVariants, textVariants };
5975
- //# sourceMappingURL=chunk-VQGGK4VP.js.map
5976
- //# sourceMappingURL=chunk-VQGGK4VP.js.map
5933
+ export { Accordion2 as Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityFeed, ActivityItem, AnimatedNumber, AnnotationMarker, AudioPlayer, AudioWaveform, Avatar, AvatarGroup, Badge, BadgeOverlay, Card, Carousel, CarouselDot, CarouselDots, CarouselNext, CarouselPrev, CarouselSlide, CarouselSlides, CarouselViewport, ChatBubble, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, Comment, CommentThread, Confetti, CountBadge, CountUp, DataGrid, DataTable, DaySeparator, DescriptionList, DiffViewer, EmptyState, EventCalendar, Eyebrow, FeatureCard, Gantt, GradientText, Heading, HeatmapCalendar, Highlight, Image, InfoRow, KeyboardShortcut, List, ListItem, Mark, Marquee, MessageList, MetaInline, MetricChip, NodeEditor, NotificationDot, PDFViewer, PricingCard, Quote, ReactionBar, ScheduleView, ScrollReveal, SectionHeader, Separator, Snippet, Sortable, Sparkline, Stat, Status, StepCard, SwipeActions, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeaderCell, TableRow, Tabs, TabsList, TabsPanel, TabsTab, Text, ThreadView, Tilt, Timeline, TimelineDescription, TimelineItem, TimelineTitle, Tree, TreeGroup, TreeItem, Typewriter, VideoPlayer, avatarVariants, badgeVariants, codeVariants, headingVariants, textVariants };
5934
+ //# sourceMappingURL=chunk-RDRFXVNX.js.map
5935
+ //# sourceMappingURL=chunk-RDRFXVNX.js.map