@wow-two-beta/ui 0.0.61 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +3 -2
- package/dist/actions/toggleButton/ToggleButton.d.ts +1 -0
- package/dist/{chunk-BMSE2X2G.js → chunk-3IVQNIHV.js} +4 -4
- package/dist/{chunk-BMSE2X2G.js.map → chunk-3IVQNIHV.js.map} +1 -1
- package/dist/chunk-4QQLJOGP.js +95 -0
- package/dist/chunk-4QQLJOGP.js.map +1 -0
- package/dist/{chunk-QDECMXNB.js → chunk-5JYRZ5PA.js} +5 -5
- package/dist/{chunk-QDECMXNB.js.map → chunk-5JYRZ5PA.js.map} +1 -1
- package/dist/{chunk-5LFMQORR.js → chunk-BLU5JZAB.js} +7 -7
- package/dist/{chunk-5LFMQORR.js.map → chunk-BLU5JZAB.js.map} +1 -1
- package/dist/{chunk-DJJOQWOG.js → chunk-EQNTG53H.js} +3 -3
- package/dist/{chunk-DJJOQWOG.js.map → chunk-EQNTG53H.js.map} +1 -1
- package/dist/{chunk-VQF4QTBD.js → chunk-H4P5MAGS.js} +5 -5
- package/dist/{chunk-VQF4QTBD.js.map → chunk-H4P5MAGS.js.map} +1 -1
- package/dist/{chunk-FHMZM3CE.js → chunk-MYLSXVIS.js} +4 -4
- package/dist/{chunk-FHMZM3CE.js.map → chunk-MYLSXVIS.js.map} +1 -1
- package/dist/{chunk-FNSC4LAL.js → chunk-NOOKDXIZ.js} +3 -3
- package/dist/{chunk-FNSC4LAL.js.map → chunk-NOOKDXIZ.js.map} +1 -1
- package/dist/{chunk-QGHQDFQN.js → chunk-WIXKLDTN.js} +4 -4
- package/dist/{chunk-QGHQDFQN.js.map → chunk-WIXKLDTN.js.map} +1 -1
- package/dist/{chunk-DUWEP5T3.js → chunk-XB4TU643.js} +29 -9
- package/dist/chunk-XB4TU643.js.map +1 -0
- package/dist/{chunk-TTSJZEL7.js → chunk-XLYJF3HC.js} +41 -3
- package/dist/chunk-XLYJF3HC.js.map +1 -0
- package/dist/{chunk-XN5B3B6Z.js → chunk-XPUKDLD3.js} +7 -4
- package/dist/chunk-XPUKDLD3.js.map +1 -0
- package/dist/{chunk-GDJMPYPU.js → chunk-YNC2CIJR.js} +7 -92
- package/dist/chunk-YNC2CIJR.js.map +1 -0
- package/dist/display/index.js +3 -2
- package/dist/feedback/index.js +3 -3
- package/dist/forms/InputStyles.d.ts +100 -2
- package/dist/forms/index.js +7 -7
- package/dist/forms/select/Select.variants.d.ts +128 -2
- package/dist/index.js +13 -12
- package/dist/layout/index.js +5 -5
- package/dist/nav/index.js +5 -5
- package/dist/overlays/index.js +6 -6
- package/dist/primitives/colorModeProvider/ColorModeProvider.d.ts +22 -0
- package/dist/primitives/colorModeProvider/index.d.ts +1 -0
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DUWEP5T3.js.map +0 -1
- package/dist/chunk-GDJMPYPU.js.map +0 -1
- package/dist/chunk-TTSJZEL7.js.map +0 -1
- package/dist/chunk-XN5B3B6Z.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
|
|
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
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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, 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" },
|
|
@@ -5971,6 +5886,6 @@ var Sortable = Object.assign(SortableRoot, {
|
|
|
5971
5886
|
Handle: SortableHandle
|
|
5972
5887
|
});
|
|
5973
5888
|
|
|
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,
|
|
5975
|
-
//# sourceMappingURL=chunk-
|
|
5976
|
-
//# sourceMappingURL=chunk-
|
|
5889
|
+
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 };
|
|
5890
|
+
//# sourceMappingURL=chunk-YNC2CIJR.js.map
|
|
5891
|
+
//# sourceMappingURL=chunk-YNC2CIJR.js.map
|