yems-ui 1.2.1 → 2.0.0
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/index.js +97 -224
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +95 -222
- package/dist/index.mjs.map +1 -1
- package/package.json +108 -107
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React11 = require('react');
|
|
4
4
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var clsx = require('clsx');
|
|
@@ -9,6 +9,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
9
9
|
var classVarianceAuthority = require('class-variance-authority');
|
|
10
10
|
var react = require('motion/react');
|
|
11
11
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
12
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
12
13
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
13
14
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
14
15
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
@@ -40,7 +41,7 @@ function _interopNamespace(e) {
|
|
|
40
41
|
return Object.freeze(n);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
var
|
|
44
|
+
var React11__namespace = /*#__PURE__*/_interopNamespace(React11);
|
|
44
45
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
45
46
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
46
47
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
@@ -109,7 +110,7 @@ function generateId() {
|
|
|
109
110
|
return Math.random().toString(36).substring(2, 11);
|
|
110
111
|
}
|
|
111
112
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
112
|
-
var AccordionItem =
|
|
113
|
+
var AccordionItem = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
113
114
|
AccordionPrimitive__namespace.Item,
|
|
114
115
|
{
|
|
115
116
|
ref,
|
|
@@ -118,7 +119,7 @@ var AccordionItem = React8__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
118
119
|
}
|
|
119
120
|
));
|
|
120
121
|
AccordionItem.displayName = "AccordionItem";
|
|
121
|
-
var AccordionTrigger =
|
|
122
|
+
var AccordionTrigger = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
122
123
|
AccordionPrimitive__namespace.Trigger,
|
|
123
124
|
{
|
|
124
125
|
ref,
|
|
@@ -136,7 +137,7 @@ var AccordionTrigger = React8__namespace.forwardRef(({ className, children, ...p
|
|
|
136
137
|
}
|
|
137
138
|
) }));
|
|
138
139
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
139
|
-
var AccordionContent =
|
|
140
|
+
var AccordionContent = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
140
141
|
AccordionPrimitive__namespace.Content,
|
|
141
142
|
{
|
|
142
143
|
ref,
|
|
@@ -167,9 +168,9 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
);
|
|
170
|
-
var Alert =
|
|
171
|
+
var Alert = React11__namespace.forwardRef(
|
|
171
172
|
({ className, variant, dismissible, onDismiss, children, ...props }, ref) => {
|
|
172
|
-
const [isVisible, setIsVisible] =
|
|
173
|
+
const [isVisible, setIsVisible] = React11__namespace.useState(true);
|
|
173
174
|
const handleDismiss = () => {
|
|
174
175
|
setIsVisible(false);
|
|
175
176
|
setTimeout(() => onDismiss?.(), 300);
|
|
@@ -200,7 +201,7 @@ var Alert = React8__namespace.forwardRef(
|
|
|
200
201
|
}
|
|
201
202
|
);
|
|
202
203
|
Alert.displayName = "Alert";
|
|
203
|
-
var AlertTitle =
|
|
204
|
+
var AlertTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
204
205
|
"h5",
|
|
205
206
|
{
|
|
206
207
|
ref,
|
|
@@ -209,7 +210,7 @@ var AlertTitle = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
209
210
|
}
|
|
210
211
|
));
|
|
211
212
|
AlertTitle.displayName = "AlertTitle";
|
|
212
|
-
var AlertDescription =
|
|
213
|
+
var AlertDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
213
214
|
"div",
|
|
214
215
|
{
|
|
215
216
|
ref,
|
|
@@ -218,7 +219,7 @@ var AlertDescription = React8__namespace.forwardRef(({ className, ...props }, re
|
|
|
218
219
|
}
|
|
219
220
|
));
|
|
220
221
|
AlertDescription.displayName = "AlertDescription";
|
|
221
|
-
var Avatar =
|
|
222
|
+
var Avatar = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
222
223
|
AvatarPrimitive__namespace.Root,
|
|
223
224
|
{
|
|
224
225
|
ref,
|
|
@@ -230,7 +231,7 @@ var Avatar = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
230
231
|
}
|
|
231
232
|
));
|
|
232
233
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
233
|
-
var AvatarImage =
|
|
234
|
+
var AvatarImage = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
234
235
|
AvatarPrimitive__namespace.Image,
|
|
235
236
|
{
|
|
236
237
|
ref,
|
|
@@ -239,7 +240,7 @@ var AvatarImage = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
239
240
|
}
|
|
240
241
|
));
|
|
241
242
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
242
|
-
var AvatarFallback =
|
|
243
|
+
var AvatarFallback = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
243
244
|
AvatarPrimitive__namespace.Fallback,
|
|
244
245
|
{
|
|
245
246
|
ref,
|
|
@@ -251,7 +252,7 @@ var AvatarFallback = React8__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
251
252
|
}
|
|
252
253
|
));
|
|
253
254
|
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
254
|
-
var AvatarGroup =
|
|
255
|
+
var AvatarGroup = React11__namespace.forwardRef(
|
|
255
256
|
({ className, avatars, max = 5, size = "md", spacing = "normal", ...props }, ref) => {
|
|
256
257
|
const visible = avatars.slice(0, max);
|
|
257
258
|
const overflow = avatars.length - max;
|
|
@@ -370,7 +371,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
);
|
|
373
|
-
var Badge =
|
|
374
|
+
var Badge = React11__namespace.forwardRef(
|
|
374
375
|
({ className, variant, size, dot, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
375
376
|
"div",
|
|
376
377
|
{
|
|
@@ -402,7 +403,7 @@ var StatusBadge = ({
|
|
|
402
403
|
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant, dot: true, className, children: children || label });
|
|
403
404
|
};
|
|
404
405
|
StatusBadge.displayName = "StatusBadge";
|
|
405
|
-
var Breadcrumbs =
|
|
406
|
+
var Breadcrumbs = React11__namespace.forwardRef(
|
|
406
407
|
({ className, items, separator, ...props }, ref) => {
|
|
407
408
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
408
409
|
"nav",
|
|
@@ -451,134 +452,6 @@ var Breadcrumbs = React8__namespace.forwardRef(
|
|
|
451
452
|
}
|
|
452
453
|
);
|
|
453
454
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
454
|
-
function setRef(ref, value) {
|
|
455
|
-
if (typeof ref === "function") {
|
|
456
|
-
return ref(value);
|
|
457
|
-
} else if (ref !== null && ref !== void 0) {
|
|
458
|
-
ref.current = value;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function composeRefs(...refs) {
|
|
462
|
-
return (node) => {
|
|
463
|
-
let hasCleanup = false;
|
|
464
|
-
const cleanups = refs.map((ref) => {
|
|
465
|
-
const cleanup = setRef(ref, node);
|
|
466
|
-
if (!hasCleanup && typeof cleanup == "function") {
|
|
467
|
-
hasCleanup = true;
|
|
468
|
-
}
|
|
469
|
-
return cleanup;
|
|
470
|
-
});
|
|
471
|
-
if (hasCleanup) {
|
|
472
|
-
return () => {
|
|
473
|
-
for (let i = 0; i < cleanups.length; i++) {
|
|
474
|
-
const cleanup = cleanups[i];
|
|
475
|
-
if (typeof cleanup == "function") {
|
|
476
|
-
cleanup();
|
|
477
|
-
} else {
|
|
478
|
-
setRef(refs[i], null);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
486
|
-
var use = React8__namespace[" use ".trim().toString()];
|
|
487
|
-
function isPromiseLike(value) {
|
|
488
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
489
|
-
}
|
|
490
|
-
function isLazyComponent(element) {
|
|
491
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
492
|
-
}
|
|
493
|
-
// @__NO_SIDE_EFFECTS__
|
|
494
|
-
function createSlot(ownerName) {
|
|
495
|
-
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
496
|
-
const Slot2 = React8__namespace.forwardRef((props, forwardedRef) => {
|
|
497
|
-
let { children, ...slotProps } = props;
|
|
498
|
-
if (isLazyComponent(children) && typeof use === "function") {
|
|
499
|
-
children = use(children._payload);
|
|
500
|
-
}
|
|
501
|
-
const childrenArray = React8__namespace.Children.toArray(children);
|
|
502
|
-
const slottable = childrenArray.find(isSlottable);
|
|
503
|
-
if (slottable) {
|
|
504
|
-
const newElement = slottable.props.children;
|
|
505
|
-
const newChildren = childrenArray.map((child) => {
|
|
506
|
-
if (child === slottable) {
|
|
507
|
-
if (React8__namespace.Children.count(newElement) > 1) return React8__namespace.Children.only(null);
|
|
508
|
-
return React8__namespace.isValidElement(newElement) ? newElement.props.children : null;
|
|
509
|
-
} else {
|
|
510
|
-
return child;
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React8__namespace.isValidElement(newElement) ? React8__namespace.cloneElement(newElement, void 0, newChildren) : null });
|
|
514
|
-
}
|
|
515
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
516
|
-
});
|
|
517
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
518
|
-
return Slot2;
|
|
519
|
-
}
|
|
520
|
-
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
521
|
-
// @__NO_SIDE_EFFECTS__
|
|
522
|
-
function createSlotClone(ownerName) {
|
|
523
|
-
const SlotClone = React8__namespace.forwardRef((props, forwardedRef) => {
|
|
524
|
-
let { children, ...slotProps } = props;
|
|
525
|
-
if (isLazyComponent(children) && typeof use === "function") {
|
|
526
|
-
children = use(children._payload);
|
|
527
|
-
}
|
|
528
|
-
if (React8__namespace.isValidElement(children)) {
|
|
529
|
-
const childrenRef = getElementRef(children);
|
|
530
|
-
const props2 = mergeProps(slotProps, children.props);
|
|
531
|
-
if (children.type !== React8__namespace.Fragment) {
|
|
532
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
533
|
-
}
|
|
534
|
-
return React8__namespace.cloneElement(children, props2);
|
|
535
|
-
}
|
|
536
|
-
return React8__namespace.Children.count(children) > 1 ? React8__namespace.Children.only(null) : null;
|
|
537
|
-
});
|
|
538
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
539
|
-
return SlotClone;
|
|
540
|
-
}
|
|
541
|
-
var SLOTTABLE_IDENTIFIER = /* @__PURE__ */ Symbol("radix.slottable");
|
|
542
|
-
function isSlottable(child) {
|
|
543
|
-
return React8__namespace.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
544
|
-
}
|
|
545
|
-
function mergeProps(slotProps, childProps) {
|
|
546
|
-
const overrideProps = { ...childProps };
|
|
547
|
-
for (const propName in childProps) {
|
|
548
|
-
const slotPropValue = slotProps[propName];
|
|
549
|
-
const childPropValue = childProps[propName];
|
|
550
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
551
|
-
if (isHandler) {
|
|
552
|
-
if (slotPropValue && childPropValue) {
|
|
553
|
-
overrideProps[propName] = (...args) => {
|
|
554
|
-
const result = childPropValue(...args);
|
|
555
|
-
slotPropValue(...args);
|
|
556
|
-
return result;
|
|
557
|
-
};
|
|
558
|
-
} else if (slotPropValue) {
|
|
559
|
-
overrideProps[propName] = slotPropValue;
|
|
560
|
-
}
|
|
561
|
-
} else if (propName === "style") {
|
|
562
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
563
|
-
} else if (propName === "className") {
|
|
564
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
return { ...slotProps, ...overrideProps };
|
|
568
|
-
}
|
|
569
|
-
function getElementRef(element) {
|
|
570
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
571
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
572
|
-
if (mayWarn) {
|
|
573
|
-
return element.ref;
|
|
574
|
-
}
|
|
575
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
576
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
577
|
-
if (mayWarn) {
|
|
578
|
-
return element.props.ref;
|
|
579
|
-
}
|
|
580
|
-
return element.props.ref || element.ref;
|
|
581
|
-
}
|
|
582
455
|
var buttonVariants = classVarianceAuthority.cva(
|
|
583
456
|
[
|
|
584
457
|
"inline-flex items-center justify-center gap-2",
|
|
@@ -682,7 +555,7 @@ var Ripple = ({ x, y }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
682
555
|
transition: { duration: 0.6, ease: "easeOut" }
|
|
683
556
|
}
|
|
684
557
|
);
|
|
685
|
-
var Button =
|
|
558
|
+
var Button = React11__namespace.forwardRef(
|
|
686
559
|
({
|
|
687
560
|
className,
|
|
688
561
|
variant,
|
|
@@ -696,7 +569,7 @@ var Button = React8__namespace.forwardRef(
|
|
|
696
569
|
onClick,
|
|
697
570
|
...props
|
|
698
571
|
}, ref) => {
|
|
699
|
-
const [ripples, setRipples] =
|
|
572
|
+
const [ripples, setRipples] = React11__namespace.useState([]);
|
|
700
573
|
const handleClick = (e) => {
|
|
701
574
|
const rect = e.currentTarget.getBoundingClientRect();
|
|
702
575
|
setRipples((prev) => [
|
|
@@ -706,7 +579,7 @@ var Button = React8__namespace.forwardRef(
|
|
|
706
579
|
setTimeout(() => setRipples((prev) => prev.slice(1)), 600);
|
|
707
580
|
onClick?.(e);
|
|
708
581
|
};
|
|
709
|
-
const Comp = asChild ? Slot : "button";
|
|
582
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
710
583
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
711
584
|
ripples.map((r) => /* @__PURE__ */ jsxRuntime.jsx(Ripple, { x: r.x, y: r.y }, r.id)),
|
|
712
585
|
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "animate-spin" }) : leftIcon ?? null,
|
|
@@ -742,7 +615,7 @@ var Button = React8__namespace.forwardRef(
|
|
|
742
615
|
}
|
|
743
616
|
);
|
|
744
617
|
Button.displayName = "Button";
|
|
745
|
-
var IconButton =
|
|
618
|
+
var IconButton = React11__namespace.forwardRef(
|
|
746
619
|
({ size = "icon", children, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
747
620
|
Button,
|
|
748
621
|
{
|
|
@@ -755,7 +628,7 @@ var IconButton = React8__namespace.forwardRef(
|
|
|
755
628
|
)
|
|
756
629
|
);
|
|
757
630
|
IconButton.displayName = "IconButton";
|
|
758
|
-
var Card =
|
|
631
|
+
var Card = React11__namespace.forwardRef(
|
|
759
632
|
({ className, hover = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
760
633
|
react.motion.div,
|
|
761
634
|
{
|
|
@@ -779,7 +652,7 @@ var Card = React8__namespace.forwardRef(
|
|
|
779
652
|
)
|
|
780
653
|
);
|
|
781
654
|
Card.displayName = "Card";
|
|
782
|
-
var CardHeader =
|
|
655
|
+
var CardHeader = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
783
656
|
"div",
|
|
784
657
|
{
|
|
785
658
|
ref,
|
|
@@ -788,7 +661,7 @@ var CardHeader = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
788
661
|
}
|
|
789
662
|
));
|
|
790
663
|
CardHeader.displayName = "CardHeader";
|
|
791
|
-
var CardTitle =
|
|
664
|
+
var CardTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
792
665
|
"h3",
|
|
793
666
|
{
|
|
794
667
|
ref,
|
|
@@ -801,7 +674,7 @@ var CardTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
801
674
|
}
|
|
802
675
|
));
|
|
803
676
|
CardTitle.displayName = "CardTitle";
|
|
804
|
-
var CardDescription =
|
|
677
|
+
var CardDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
805
678
|
"p",
|
|
806
679
|
{
|
|
807
680
|
ref,
|
|
@@ -810,9 +683,9 @@ var CardDescription = React8__namespace.forwardRef(({ className, ...props }, ref
|
|
|
810
683
|
}
|
|
811
684
|
));
|
|
812
685
|
CardDescription.displayName = "CardDescription";
|
|
813
|
-
var CardContent =
|
|
686
|
+
var CardContent = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
814
687
|
CardContent.displayName = "CardContent";
|
|
815
|
-
var CardFooter =
|
|
688
|
+
var CardFooter = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
816
689
|
"div",
|
|
817
690
|
{
|
|
818
691
|
ref,
|
|
@@ -903,7 +776,7 @@ var StatCard = ({
|
|
|
903
776
|
}
|
|
904
777
|
);
|
|
905
778
|
StatCard.displayName = "StatCard";
|
|
906
|
-
var Checkbox =
|
|
779
|
+
var Checkbox = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
907
780
|
CheckboxPrimitive__namespace.Root,
|
|
908
781
|
{
|
|
909
782
|
ref,
|
|
@@ -938,7 +811,7 @@ var Dialog = DialogPrimitive__namespace.Root;
|
|
|
938
811
|
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
939
812
|
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
940
813
|
var DialogClose = DialogPrimitive__namespace.Close;
|
|
941
|
-
var DialogOverlay =
|
|
814
|
+
var DialogOverlay = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
942
815
|
DialogPrimitive__namespace.Overlay,
|
|
943
816
|
{
|
|
944
817
|
ref,
|
|
@@ -951,7 +824,7 @@ var DialogOverlay = React8__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
951
824
|
}
|
|
952
825
|
));
|
|
953
826
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
954
|
-
var DialogContent =
|
|
827
|
+
var DialogContent = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
955
828
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
956
829
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
957
830
|
DialogPrimitive__namespace.Content,
|
|
@@ -1014,7 +887,7 @@ var DialogFooter = ({
|
|
|
1014
887
|
}
|
|
1015
888
|
);
|
|
1016
889
|
DialogFooter.displayName = "DialogFooter";
|
|
1017
|
-
var DialogTitle =
|
|
890
|
+
var DialogTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1018
891
|
DialogPrimitive__namespace.Title,
|
|
1019
892
|
{
|
|
1020
893
|
ref,
|
|
@@ -1026,7 +899,7 @@ var DialogTitle = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1026
899
|
}
|
|
1027
900
|
));
|
|
1028
901
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
1029
|
-
var DialogDescription =
|
|
902
|
+
var DialogDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1030
903
|
DialogPrimitive__namespace.Description,
|
|
1031
904
|
{
|
|
1032
905
|
ref,
|
|
@@ -1041,7 +914,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
1041
914
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1042
915
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1043
916
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1044
|
-
var DropdownMenuSubTrigger =
|
|
917
|
+
var DropdownMenuSubTrigger = React11__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1045
918
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1046
919
|
{
|
|
1047
920
|
ref,
|
|
@@ -1058,7 +931,7 @@ var DropdownMenuSubTrigger = React8__namespace.forwardRef(({ className, inset, c
|
|
|
1058
931
|
}
|
|
1059
932
|
));
|
|
1060
933
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1061
|
-
var DropdownMenuSubContent =
|
|
934
|
+
var DropdownMenuSubContent = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1062
935
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
1063
936
|
{
|
|
1064
937
|
ref,
|
|
@@ -1070,7 +943,7 @@ var DropdownMenuSubContent = React8__namespace.forwardRef(({ className, ...props
|
|
|
1070
943
|
}
|
|
1071
944
|
));
|
|
1072
945
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1073
|
-
var DropdownMenuContent =
|
|
946
|
+
var DropdownMenuContent = React11__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1074
947
|
DropdownMenuPrimitive__namespace.Content,
|
|
1075
948
|
{
|
|
1076
949
|
ref,
|
|
@@ -1083,7 +956,7 @@ var DropdownMenuContent = React8__namespace.forwardRef(({ className, sideOffset
|
|
|
1083
956
|
}
|
|
1084
957
|
) }));
|
|
1085
958
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1086
|
-
var DropdownMenuItem =
|
|
959
|
+
var DropdownMenuItem = React11__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1087
960
|
DropdownMenuPrimitive__namespace.Item,
|
|
1088
961
|
{
|
|
1089
962
|
ref,
|
|
@@ -1096,7 +969,7 @@ var DropdownMenuItem = React8__namespace.forwardRef(({ className, inset, ...prop
|
|
|
1096
969
|
}
|
|
1097
970
|
));
|
|
1098
971
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1099
|
-
var DropdownMenuCheckboxItem =
|
|
972
|
+
var DropdownMenuCheckboxItem = React11__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1100
973
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1101
974
|
{
|
|
1102
975
|
ref,
|
|
@@ -1113,7 +986,7 @@ var DropdownMenuCheckboxItem = React8__namespace.forwardRef(({ className, childr
|
|
|
1113
986
|
}
|
|
1114
987
|
));
|
|
1115
988
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1116
|
-
var DropdownMenuRadioItem =
|
|
989
|
+
var DropdownMenuRadioItem = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1117
990
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1118
991
|
{
|
|
1119
992
|
ref,
|
|
@@ -1129,7 +1002,7 @@ var DropdownMenuRadioItem = React8__namespace.forwardRef(({ className, children,
|
|
|
1129
1002
|
}
|
|
1130
1003
|
));
|
|
1131
1004
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1132
|
-
var DropdownMenuLabel =
|
|
1005
|
+
var DropdownMenuLabel = React11__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1133
1006
|
DropdownMenuPrimitive__namespace.Label,
|
|
1134
1007
|
{
|
|
1135
1008
|
ref,
|
|
@@ -1142,7 +1015,7 @@ var DropdownMenuLabel = React8__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1142
1015
|
}
|
|
1143
1016
|
));
|
|
1144
1017
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1145
|
-
var DropdownMenuSeparator =
|
|
1018
|
+
var DropdownMenuSeparator = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1146
1019
|
DropdownMenuPrimitive__namespace.Separator,
|
|
1147
1020
|
{
|
|
1148
1021
|
ref,
|
|
@@ -1164,7 +1037,7 @@ var DropdownMenuShortcut = ({
|
|
|
1164
1037
|
);
|
|
1165
1038
|
};
|
|
1166
1039
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1167
|
-
var EmptyState =
|
|
1040
|
+
var EmptyState = React11__namespace.forwardRef(
|
|
1168
1041
|
({ className, icon, title, description, action, ...props }, ref) => {
|
|
1169
1042
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1170
1043
|
react.motion.div,
|
|
@@ -1280,7 +1153,7 @@ var inputVariants = classVarianceAuthority.cva(
|
|
|
1280
1153
|
}
|
|
1281
1154
|
}
|
|
1282
1155
|
);
|
|
1283
|
-
var Input =
|
|
1156
|
+
var Input = React11__namespace.forwardRef(
|
|
1284
1157
|
({
|
|
1285
1158
|
className,
|
|
1286
1159
|
type = "text",
|
|
@@ -1296,7 +1169,7 @@ var Input = React8__namespace.forwardRef(
|
|
|
1296
1169
|
disabled,
|
|
1297
1170
|
...props
|
|
1298
1171
|
}, ref) => {
|
|
1299
|
-
const [isFocused, setIsFocused] =
|
|
1172
|
+
const [isFocused, setIsFocused] = React11__namespace.useState(false);
|
|
1300
1173
|
const hasError = !!error || state === "error";
|
|
1301
1174
|
const currentState = hasError ? "error" : state;
|
|
1302
1175
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
@@ -1382,7 +1255,7 @@ var Input = React8__namespace.forwardRef(
|
|
|
1382
1255
|
}
|
|
1383
1256
|
);
|
|
1384
1257
|
Input.displayName = "Input";
|
|
1385
|
-
var Label2 =
|
|
1258
|
+
var Label2 = React11__namespace.forwardRef(
|
|
1386
1259
|
({ className, required, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1387
1260
|
"label",
|
|
1388
1261
|
{
|
|
@@ -1436,9 +1309,9 @@ var FormField = ({
|
|
|
1436
1309
|
);
|
|
1437
1310
|
};
|
|
1438
1311
|
FormField.displayName = "FormField";
|
|
1439
|
-
var Textarea =
|
|
1312
|
+
var Textarea = React11__namespace.forwardRef(
|
|
1440
1313
|
({ className, variant, state, error, hint, ...props }, ref) => {
|
|
1441
|
-
const [isFocused, setIsFocused] =
|
|
1314
|
+
const [isFocused, setIsFocused] = React11__namespace.useState(false);
|
|
1442
1315
|
const hasError = !!error || state === "error";
|
|
1443
1316
|
const currentState = hasError ? "error" : state;
|
|
1444
1317
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
@@ -1472,7 +1345,7 @@ var Textarea = React8__namespace.forwardRef(
|
|
|
1472
1345
|
}
|
|
1473
1346
|
);
|
|
1474
1347
|
Textarea.displayName = "Textarea";
|
|
1475
|
-
var Kbd =
|
|
1348
|
+
var Kbd = React11__namespace.forwardRef(
|
|
1476
1349
|
({ className, size = "md", children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1477
1350
|
"kbd",
|
|
1478
1351
|
{
|
|
@@ -1500,12 +1373,12 @@ var Shortcut = ({
|
|
|
1500
1373
|
keys,
|
|
1501
1374
|
size = "md",
|
|
1502
1375
|
className
|
|
1503
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("inline-flex items-center gap-1", className), children: keys.map((key, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1376
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("inline-flex items-center gap-1", className), children: keys.map((key, i) => /* @__PURE__ */ jsxRuntime.jsxs(React11__namespace.Fragment, { children: [
|
|
1504
1377
|
/* @__PURE__ */ jsxRuntime.jsx(Kbd, { size, children: key }),
|
|
1505
1378
|
i < keys.length - 1 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs", children: "+" })
|
|
1506
1379
|
] }, key)) });
|
|
1507
1380
|
Shortcut.displayName = "Shortcut";
|
|
1508
|
-
var Container =
|
|
1381
|
+
var Container = React11__namespace.forwardRef(
|
|
1509
1382
|
({ className, size = "xl", padded = true, ...props }, ref) => {
|
|
1510
1383
|
const maxWidths = {
|
|
1511
1384
|
sm: "max-w-screen-sm",
|
|
@@ -1530,7 +1403,7 @@ var Container = React8__namespace.forwardRef(
|
|
|
1530
1403
|
}
|
|
1531
1404
|
);
|
|
1532
1405
|
Container.displayName = "Container";
|
|
1533
|
-
var Stack =
|
|
1406
|
+
var Stack = React11__namespace.forwardRef(
|
|
1534
1407
|
({
|
|
1535
1408
|
className,
|
|
1536
1409
|
direction = "col",
|
|
@@ -1585,7 +1458,7 @@ var Stack = React8__namespace.forwardRef(
|
|
|
1585
1458
|
}
|
|
1586
1459
|
);
|
|
1587
1460
|
Stack.displayName = "Stack";
|
|
1588
|
-
var Grid =
|
|
1461
|
+
var Grid = React11__namespace.forwardRef(
|
|
1589
1462
|
({ className, cols = 1, mdCols, lgCols, gap = 4, ...props }, ref) => {
|
|
1590
1463
|
const colClasses = {
|
|
1591
1464
|
1: "grid-cols-1",
|
|
@@ -1635,7 +1508,7 @@ var Grid = React8__namespace.forwardRef(
|
|
|
1635
1508
|
}
|
|
1636
1509
|
);
|
|
1637
1510
|
Grid.displayName = "Grid";
|
|
1638
|
-
var Divider =
|
|
1511
|
+
var Divider = React11__namespace.forwardRef(
|
|
1639
1512
|
({ className, label, orientation = "horizontal", ...props }, ref) => {
|
|
1640
1513
|
if (orientation === "vertical") {
|
|
1641
1514
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1677,7 +1550,7 @@ var Divider = React8__namespace.forwardRef(
|
|
|
1677
1550
|
}
|
|
1678
1551
|
);
|
|
1679
1552
|
Divider.displayName = "Divider";
|
|
1680
|
-
var NumberInput =
|
|
1553
|
+
var NumberInput = React11__namespace.forwardRef(
|
|
1681
1554
|
({
|
|
1682
1555
|
className,
|
|
1683
1556
|
value,
|
|
@@ -1691,7 +1564,7 @@ var NumberInput = React8__namespace.forwardRef(
|
|
|
1691
1564
|
hint,
|
|
1692
1565
|
...props
|
|
1693
1566
|
}, ref) => {
|
|
1694
|
-
const [internalValue, setInternalValue] =
|
|
1567
|
+
const [internalValue, setInternalValue] = React11__namespace.useState(
|
|
1695
1568
|
value ?? 0
|
|
1696
1569
|
);
|
|
1697
1570
|
const current = value !== void 0 ? value : internalValue;
|
|
@@ -1786,7 +1659,7 @@ var NumberInput = React8__namespace.forwardRef(
|
|
|
1786
1659
|
}
|
|
1787
1660
|
);
|
|
1788
1661
|
NumberInput.displayName = "NumberInput";
|
|
1789
|
-
var Pagination =
|
|
1662
|
+
var Pagination = React11__namespace.forwardRef(
|
|
1790
1663
|
({
|
|
1791
1664
|
className,
|
|
1792
1665
|
currentPage,
|
|
@@ -1799,7 +1672,7 @@ var Pagination = React8__namespace.forwardRef(
|
|
|
1799
1672
|
const length = end - start + 1;
|
|
1800
1673
|
return Array.from({ length }, (_, idx) => start + idx);
|
|
1801
1674
|
};
|
|
1802
|
-
const paginationRange =
|
|
1675
|
+
const paginationRange = React11__namespace.useMemo(() => {
|
|
1803
1676
|
const totalPageNumbers = siblingCount + 5;
|
|
1804
1677
|
if (totalPageNumbers >= totalPages) {
|
|
1805
1678
|
return range(1, totalPages);
|
|
@@ -1889,7 +1762,7 @@ var Pagination = React8__namespace.forwardRef(
|
|
|
1889
1762
|
Pagination.displayName = "Pagination";
|
|
1890
1763
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
1891
1764
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
1892
|
-
var PopoverContent =
|
|
1765
|
+
var PopoverContent = React11__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1893
1766
|
PopoverPrimitive__namespace.Content,
|
|
1894
1767
|
{
|
|
1895
1768
|
ref,
|
|
@@ -1910,7 +1783,7 @@ var PopoverContent = React8__namespace.forwardRef(({ className, align = "center"
|
|
|
1910
1783
|
}
|
|
1911
1784
|
) }));
|
|
1912
1785
|
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
1913
|
-
var Progress =
|
|
1786
|
+
var Progress = React11__namespace.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1914
1787
|
ProgressPrimitive__namespace.Root,
|
|
1915
1788
|
{
|
|
1916
1789
|
ref,
|
|
@@ -1929,7 +1802,7 @@ var Progress = React8__namespace.forwardRef(({ className, value, ...props }, ref
|
|
|
1929
1802
|
}
|
|
1930
1803
|
));
|
|
1931
1804
|
Progress.displayName = ProgressPrimitive__namespace.Root.displayName;
|
|
1932
|
-
var RadioGroup2 =
|
|
1805
|
+
var RadioGroup2 = React11__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1933
1806
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1934
1807
|
RadioGroupPrimitive__namespace.Root,
|
|
1935
1808
|
{
|
|
@@ -1940,9 +1813,9 @@ var RadioGroup2 = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1940
1813
|
);
|
|
1941
1814
|
});
|
|
1942
1815
|
RadioGroup2.displayName = RadioGroupPrimitive__namespace.Root.displayName;
|
|
1943
|
-
var RadioGroupItem =
|
|
1944
|
-
const [isChecked, setIsChecked] =
|
|
1945
|
-
const [showExplosion, setShowExplosion] =
|
|
1816
|
+
var RadioGroupItem = React11__namespace.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
1817
|
+
const [isChecked, setIsChecked] = React11__namespace.useState(false);
|
|
1818
|
+
const [showExplosion, setShowExplosion] = React11__namespace.useState(false);
|
|
1946
1819
|
const handleClick = (e) => {
|
|
1947
1820
|
setIsChecked(true);
|
|
1948
1821
|
setShowExplosion(true);
|
|
@@ -2038,7 +1911,7 @@ RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
|
|
|
2038
1911
|
var Select = SelectPrimitive__namespace.Root;
|
|
2039
1912
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
2040
1913
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
2041
|
-
var SelectTrigger =
|
|
1914
|
+
var SelectTrigger = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2042
1915
|
SelectPrimitive__namespace.Trigger,
|
|
2043
1916
|
{
|
|
2044
1917
|
ref,
|
|
@@ -2058,7 +1931,7 @@ var SelectTrigger = React8__namespace.forwardRef(({ className, children, ...prop
|
|
|
2058
1931
|
}
|
|
2059
1932
|
));
|
|
2060
1933
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
2061
|
-
var SelectScrollUpButton =
|
|
1934
|
+
var SelectScrollUpButton = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2062
1935
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
2063
1936
|
{
|
|
2064
1937
|
ref,
|
|
@@ -2071,7 +1944,7 @@ var SelectScrollUpButton = React8__namespace.forwardRef(({ className, ...props }
|
|
|
2071
1944
|
}
|
|
2072
1945
|
));
|
|
2073
1946
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
2074
|
-
var SelectScrollDownButton =
|
|
1947
|
+
var SelectScrollDownButton = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2075
1948
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
2076
1949
|
{
|
|
2077
1950
|
ref,
|
|
@@ -2084,7 +1957,7 @@ var SelectScrollDownButton = React8__namespace.forwardRef(({ className, ...props
|
|
|
2084
1957
|
}
|
|
2085
1958
|
));
|
|
2086
1959
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
2087
|
-
var SelectContent =
|
|
1960
|
+
var SelectContent = React11__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2088
1961
|
SelectPrimitive__namespace.Content,
|
|
2089
1962
|
{
|
|
2090
1963
|
ref,
|
|
@@ -2113,7 +1986,7 @@ var SelectContent = React8__namespace.forwardRef(({ className, children, positio
|
|
|
2113
1986
|
}
|
|
2114
1987
|
) }));
|
|
2115
1988
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
2116
|
-
var SelectLabel =
|
|
1989
|
+
var SelectLabel = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2117
1990
|
SelectPrimitive__namespace.Label,
|
|
2118
1991
|
{
|
|
2119
1992
|
ref,
|
|
@@ -2122,7 +1995,7 @@ var SelectLabel = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2122
1995
|
}
|
|
2123
1996
|
));
|
|
2124
1997
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
2125
|
-
var SelectItem =
|
|
1998
|
+
var SelectItem = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2126
1999
|
SelectPrimitive__namespace.Item,
|
|
2127
2000
|
{
|
|
2128
2001
|
ref,
|
|
@@ -2140,7 +2013,7 @@ var SelectItem = React8__namespace.forwardRef(({ className, children, ...props }
|
|
|
2140
2013
|
}
|
|
2141
2014
|
));
|
|
2142
2015
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
2143
|
-
var SelectSeparator =
|
|
2016
|
+
var SelectSeparator = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2144
2017
|
SelectPrimitive__namespace.Separator,
|
|
2145
2018
|
{
|
|
2146
2019
|
ref,
|
|
@@ -2149,7 +2022,7 @@ var SelectSeparator = React8__namespace.forwardRef(({ className, ...props }, ref
|
|
|
2149
2022
|
}
|
|
2150
2023
|
));
|
|
2151
2024
|
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
2152
|
-
var Separator3 =
|
|
2025
|
+
var Separator3 = React11__namespace.forwardRef(
|
|
2153
2026
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2154
2027
|
SeparatorPrimitive__namespace.Root,
|
|
2155
2028
|
{
|
|
@@ -2166,7 +2039,7 @@ var Separator3 = React8__namespace.forwardRef(
|
|
|
2166
2039
|
)
|
|
2167
2040
|
);
|
|
2168
2041
|
Separator3.displayName = SeparatorPrimitive__namespace.Root.displayName;
|
|
2169
|
-
var Skeleton =
|
|
2042
|
+
var Skeleton = React11__namespace.forwardRef(
|
|
2170
2043
|
({ className, variant = "rectangular", animation = "pulse", ...props }, ref) => {
|
|
2171
2044
|
const baseClasses = "glass-card bg-muted/50";
|
|
2172
2045
|
const variantClasses = {
|
|
@@ -2251,7 +2124,7 @@ var spinnerVariants = classVarianceAuthority.cva("", {
|
|
|
2251
2124
|
variant: "primary"
|
|
2252
2125
|
}
|
|
2253
2126
|
});
|
|
2254
|
-
var Spinner =
|
|
2127
|
+
var Spinner = React11__namespace.forwardRef(
|
|
2255
2128
|
({ className, size, variant, label = "Loading...", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2256
2129
|
"div",
|
|
2257
2130
|
{
|
|
@@ -2297,7 +2170,7 @@ var LoadingOverlay = ({
|
|
|
2297
2170
|
)
|
|
2298
2171
|
] });
|
|
2299
2172
|
LoadingOverlay.displayName = "LoadingOverlay";
|
|
2300
|
-
var Switch =
|
|
2173
|
+
var Switch = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2301
2174
|
SwitchPrimitives__namespace.Root,
|
|
2302
2175
|
{
|
|
2303
2176
|
className: cn(
|
|
@@ -2326,7 +2199,7 @@ var Switch = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2326
2199
|
}
|
|
2327
2200
|
));
|
|
2328
2201
|
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
2329
|
-
var Table =
|
|
2202
|
+
var Table = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2330
2203
|
"table",
|
|
2331
2204
|
{
|
|
2332
2205
|
ref,
|
|
@@ -2335,9 +2208,9 @@ var Table = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2335
2208
|
}
|
|
2336
2209
|
) }));
|
|
2337
2210
|
Table.displayName = "Table";
|
|
2338
|
-
var TableHeader =
|
|
2211
|
+
var TableHeader = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
2339
2212
|
TableHeader.displayName = "TableHeader";
|
|
2340
|
-
var TableBody =
|
|
2213
|
+
var TableBody = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2341
2214
|
"tbody",
|
|
2342
2215
|
{
|
|
2343
2216
|
ref,
|
|
@@ -2346,7 +2219,7 @@ var TableBody = React8__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
2346
2219
|
}
|
|
2347
2220
|
));
|
|
2348
2221
|
TableBody.displayName = "TableBody";
|
|
2349
|
-
var TableFooter =
|
|
2222
|
+
var TableFooter = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2350
2223
|
"tfoot",
|
|
2351
2224
|
{
|
|
2352
2225
|
ref,
|
|
@@ -2358,7 +2231,7 @@ var TableFooter = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2358
2231
|
}
|
|
2359
2232
|
));
|
|
2360
2233
|
TableFooter.displayName = "TableFooter";
|
|
2361
|
-
var TableRow =
|
|
2234
|
+
var TableRow = React11__namespace.forwardRef(({ className, hover = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2362
2235
|
"tr",
|
|
2363
2236
|
{
|
|
2364
2237
|
ref,
|
|
@@ -2372,7 +2245,7 @@ var TableRow = React8__namespace.forwardRef(({ className, hover = true, ...props
|
|
|
2372
2245
|
}
|
|
2373
2246
|
));
|
|
2374
2247
|
TableRow.displayName = "TableRow";
|
|
2375
|
-
var TableHead =
|
|
2248
|
+
var TableHead = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2376
2249
|
"th",
|
|
2377
2250
|
{
|
|
2378
2251
|
ref,
|
|
@@ -2384,7 +2257,7 @@ var TableHead = React8__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
2384
2257
|
}
|
|
2385
2258
|
));
|
|
2386
2259
|
TableHead.displayName = "TableHead";
|
|
2387
|
-
var TableCell =
|
|
2260
|
+
var TableCell = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2388
2261
|
"td",
|
|
2389
2262
|
{
|
|
2390
2263
|
ref,
|
|
@@ -2393,7 +2266,7 @@ var TableCell = React8__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
2393
2266
|
}
|
|
2394
2267
|
));
|
|
2395
2268
|
TableCell.displayName = "TableCell";
|
|
2396
|
-
var TableCaption =
|
|
2269
|
+
var TableCaption = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2397
2270
|
"caption",
|
|
2398
2271
|
{
|
|
2399
2272
|
ref,
|
|
@@ -2403,7 +2276,7 @@ var TableCaption = React8__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2403
2276
|
));
|
|
2404
2277
|
TableCaption.displayName = "TableCaption";
|
|
2405
2278
|
var Tabs = TabsPrimitive__namespace.Root;
|
|
2406
|
-
var TabsList =
|
|
2279
|
+
var TabsList = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2407
2280
|
TabsPrimitive__namespace.List,
|
|
2408
2281
|
{
|
|
2409
2282
|
ref,
|
|
@@ -2415,7 +2288,7 @@ var TabsList = React8__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2415
2288
|
}
|
|
2416
2289
|
));
|
|
2417
2290
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
2418
|
-
var TabsTrigger =
|
|
2291
|
+
var TabsTrigger = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2419
2292
|
TabsPrimitive__namespace.Trigger,
|
|
2420
2293
|
{
|
|
2421
2294
|
ref,
|
|
@@ -2441,7 +2314,7 @@ var TabsTrigger = React8__namespace.forwardRef(({ className, children, ...props
|
|
|
2441
2314
|
}
|
|
2442
2315
|
));
|
|
2443
2316
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
2444
|
-
var TabsContent =
|
|
2317
|
+
var TabsContent = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2445
2318
|
TabsPrimitive__namespace.Content,
|
|
2446
2319
|
{
|
|
2447
2320
|
ref,
|
|
@@ -2464,7 +2337,7 @@ var TabsContent = React8__namespace.forwardRef(({ className, children, ...props
|
|
|
2464
2337
|
));
|
|
2465
2338
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
2466
2339
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
2467
|
-
var ToastViewport =
|
|
2340
|
+
var ToastViewport = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2468
2341
|
ToastPrimitives__namespace.Viewport,
|
|
2469
2342
|
{
|
|
2470
2343
|
ref,
|
|
@@ -2490,7 +2363,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
2490
2363
|
}
|
|
2491
2364
|
}
|
|
2492
2365
|
);
|
|
2493
|
-
var Toast =
|
|
2366
|
+
var Toast = React11__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
2494
2367
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2495
2368
|
ToastPrimitives__namespace.Root,
|
|
2496
2369
|
{
|
|
@@ -2501,7 +2374,7 @@ var Toast = React8__namespace.forwardRef(({ className, variant, ...props }, ref)
|
|
|
2501
2374
|
);
|
|
2502
2375
|
});
|
|
2503
2376
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
2504
|
-
var ToastAction =
|
|
2377
|
+
var ToastAction = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2505
2378
|
ToastPrimitives__namespace.Action,
|
|
2506
2379
|
{
|
|
2507
2380
|
ref,
|
|
@@ -2513,7 +2386,7 @@ var ToastAction = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2513
2386
|
}
|
|
2514
2387
|
));
|
|
2515
2388
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
2516
|
-
var ToastClose =
|
|
2389
|
+
var ToastClose = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2517
2390
|
ToastPrimitives__namespace.Close,
|
|
2518
2391
|
{
|
|
2519
2392
|
ref,
|
|
@@ -2527,7 +2400,7 @@ var ToastClose = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2527
2400
|
}
|
|
2528
2401
|
));
|
|
2529
2402
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
2530
|
-
var ToastTitle =
|
|
2403
|
+
var ToastTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2531
2404
|
ToastPrimitives__namespace.Title,
|
|
2532
2405
|
{
|
|
2533
2406
|
ref,
|
|
@@ -2536,7 +2409,7 @@ var ToastTitle = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2536
2409
|
}
|
|
2537
2410
|
));
|
|
2538
2411
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
2539
|
-
var ToastDescription =
|
|
2412
|
+
var ToastDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2540
2413
|
ToastPrimitives__namespace.Description,
|
|
2541
2414
|
{
|
|
2542
2415
|
ref,
|
|
@@ -2645,8 +2518,8 @@ function toast({ ...props }) {
|
|
|
2645
2518
|
};
|
|
2646
2519
|
}
|
|
2647
2520
|
function useToast() {
|
|
2648
|
-
const [state, setState] =
|
|
2649
|
-
|
|
2521
|
+
const [state, setState] = React11__namespace.useState(memoryState);
|
|
2522
|
+
React11__namespace.useEffect(() => {
|
|
2650
2523
|
listeners.push(setState);
|
|
2651
2524
|
return () => {
|
|
2652
2525
|
const index = listeners.indexOf(setState);
|
|
@@ -2680,7 +2553,7 @@ function Toaster() {
|
|
|
2680
2553
|
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
2681
2554
|
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
2682
2555
|
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
2683
|
-
var TooltipContent =
|
|
2556
|
+
var TooltipContent = React11__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2684
2557
|
TooltipPrimitive__namespace.Content,
|
|
2685
2558
|
{
|
|
2686
2559
|
ref,
|
|
@@ -2730,7 +2603,7 @@ var headingVariants = classVarianceAuthority.cva("font-semibold tracking-tight t
|
|
|
2730
2603
|
gradient: "none"
|
|
2731
2604
|
}
|
|
2732
2605
|
});
|
|
2733
|
-
var Heading =
|
|
2606
|
+
var Heading = React11__namespace.forwardRef(
|
|
2734
2607
|
({ className, as: Tag = "h2", size, weight, align, gradient, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2735
2608
|
Tag,
|
|
2736
2609
|
{
|
|
@@ -2796,7 +2669,7 @@ var textVariants = classVarianceAuthority.cva("text-foreground", {
|
|
|
2796
2669
|
truncate: false
|
|
2797
2670
|
}
|
|
2798
2671
|
});
|
|
2799
|
-
var Text =
|
|
2672
|
+
var Text = React11__namespace.forwardRef(
|
|
2800
2673
|
({
|
|
2801
2674
|
className,
|
|
2802
2675
|
as: Tag = "p",
|
|
@@ -2820,7 +2693,7 @@ var Text = React8__namespace.forwardRef(
|
|
|
2820
2693
|
)
|
|
2821
2694
|
);
|
|
2822
2695
|
Text.displayName = "Text";
|
|
2823
|
-
var Code =
|
|
2696
|
+
var Code = React11__namespace.forwardRef(
|
|
2824
2697
|
({ className, block = false, children, ...props }, ref) => {
|
|
2825
2698
|
if (block) {
|
|
2826
2699
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2852,7 +2725,7 @@ var Code = React8__namespace.forwardRef(
|
|
|
2852
2725
|
}
|
|
2853
2726
|
);
|
|
2854
2727
|
Code.displayName = "Code";
|
|
2855
|
-
var Lead =
|
|
2728
|
+
var Lead = React11__namespace.forwardRef(
|
|
2856
2729
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2857
2730
|
"p",
|
|
2858
2731
|
{
|
|
@@ -2863,7 +2736,7 @@ var Lead = React8__namespace.forwardRef(
|
|
|
2863
2736
|
)
|
|
2864
2737
|
);
|
|
2865
2738
|
Lead.displayName = "Lead";
|
|
2866
|
-
var Blockquote =
|
|
2739
|
+
var Blockquote = React11__namespace.forwardRef(
|
|
2867
2740
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2868
2741
|
"blockquote",
|
|
2869
2742
|
{
|