@maxsteinwender/sort-ui 1.2.0 → 1.4.1
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/README.md +4 -4
- package/dist/index.d.mts +118 -29
- package/dist/index.d.ts +118 -29
- package/dist/index.js +1102 -433
- package/dist/index.mjs +1091 -434
- package/dist/styles.css +1237 -303
- package/dist/tailwind-preset.js +4 -4
- package/dist/tailwind-preset.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var React80 = require('react');
|
|
5
5
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
7
|
var clsx = require('clsx');
|
|
@@ -52,7 +52,7 @@ function _interopNamespace(e) {
|
|
|
52
52
|
return Object.freeze(n);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var React80__namespace = /*#__PURE__*/_interopNamespace(React80);
|
|
56
56
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
57
57
|
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
|
58
58
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
@@ -161,7 +161,7 @@ var accordionItemVariants = classVarianceAuthority.cva(
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
|
-
var AccordionItem =
|
|
164
|
+
var AccordionItem = React80__namespace.forwardRef((_a, ref) => {
|
|
165
165
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
166
166
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
167
|
AccordionPrimitive__namespace.Item,
|
|
@@ -172,7 +172,7 @@ var AccordionItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
172
172
|
);
|
|
173
173
|
});
|
|
174
174
|
AccordionItem.displayName = "AccordionItem";
|
|
175
|
-
var AccordionTrigger =
|
|
175
|
+
var AccordionTrigger = React80__namespace.forwardRef((_a, ref) => {
|
|
176
176
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
177
177
|
return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
178
178
|
AccordionPrimitive__namespace.Trigger,
|
|
@@ -194,7 +194,7 @@ var AccordionTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
194
194
|
) });
|
|
195
195
|
});
|
|
196
196
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
197
|
-
var AccordionContent =
|
|
197
|
+
var AccordionContent = React80__namespace.forwardRef((_a, ref) => {
|
|
198
198
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
199
199
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
200
200
|
AccordionPrimitive__namespace.Content,
|
|
@@ -239,7 +239,7 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
|
-
var Alert =
|
|
242
|
+
var Alert = React80__namespace.forwardRef((_a, ref) => {
|
|
243
243
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
244
244
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
245
245
|
"div",
|
|
@@ -251,7 +251,7 @@ var Alert = React78__namespace.forwardRef((_a, ref) => {
|
|
|
251
251
|
);
|
|
252
252
|
});
|
|
253
253
|
Alert.displayName = "Alert";
|
|
254
|
-
var AlertTitle =
|
|
254
|
+
var AlertTitle = React80__namespace.forwardRef((_a, ref) => {
|
|
255
255
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
256
256
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
257
257
|
"h5",
|
|
@@ -262,7 +262,7 @@ var AlertTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
262
262
|
);
|
|
263
263
|
});
|
|
264
264
|
AlertTitle.displayName = "AlertTitle";
|
|
265
|
-
var AlertDescription =
|
|
265
|
+
var AlertDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
266
266
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
267
267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
268
|
"div",
|
|
@@ -274,8 +274,8 @@ var AlertDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
|
274
274
|
});
|
|
275
275
|
AlertDescription.displayName = "AlertDescription";
|
|
276
276
|
function useDevWarnIconOnlyAriaLabel(isIconOnly, ariaLabel, ariaLabelledBy, componentName) {
|
|
277
|
-
const warnedRef =
|
|
278
|
-
|
|
277
|
+
const warnedRef = React80__namespace.useRef(false);
|
|
278
|
+
React80__namespace.useEffect(() => {
|
|
279
279
|
if (process.env.NODE_ENV === "production") return;
|
|
280
280
|
if (warnedRef.current) return;
|
|
281
281
|
if (!isIconOnly) return;
|
|
@@ -293,8 +293,9 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
293
293
|
{
|
|
294
294
|
variants: {
|
|
295
295
|
variant: {
|
|
296
|
-
// Primary — Sort UI: bg/state/primary, text/
|
|
297
|
-
|
|
296
|
+
// Primary — Sort UI: bg/state/primary, text/on-primary, icon/on-primary
|
|
297
|
+
// (on-primary is theme-aware: white everywhere except Neutral Violet Dark, where the button inverts to near-white and needs dark text)
|
|
298
|
+
default: "bg-sui-bg-state-primary text-sui-text-on-primary [text-shadow:var(--shadow-text)] [&_i]:text-icon-on-primary [&_i]:[text-shadow:none] [&_svg]:text-icon-on-primary [&_svg]:[text-shadow:none] shadow-button-default active:shadow-button-press [@media(hover:hover)]:hover:bg-sui-bg-state-primary-hover active:bg-sui-bg-state-primary-press disabled:bg-sui-bg-state-disabled disabled:[text-shadow:none]",
|
|
298
299
|
// Soft — Sort UI: bg/state/soft, text/subtle, icon/default-muted
|
|
299
300
|
secondary: "bg-sui-bg-state-soft text-sui-text-subtle [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted [@media(hover:hover)]:hover:bg-sui-bg-state-soft-hover active:bg-sui-bg-state-soft-press disabled:bg-sui-bg-state-disabled",
|
|
300
301
|
// Secondary — Sort UI: bg/state/secondary, border/darker, text/default, icon/default-muted
|
|
@@ -349,6 +350,10 @@ var buttonBadgeVariants = classVarianceAuthority.cva(
|
|
|
349
350
|
variants: {
|
|
350
351
|
color: {
|
|
351
352
|
inverse: "bg-[rgba(255,255,255,0.1)] border-[rgba(255,255,255,0.2)] text-sui-text-white-default group-disabled:bg-transparent group-disabled:border-transparent group-disabled:text-sui-text-hint",
|
|
353
|
+
// Same visual treatment as `inverse`, but theme-aware — used on the Primary
|
|
354
|
+
// (default) button only, since that's the one that inverts in Neutral Violet Dark.
|
|
355
|
+
// Destructive keeps `inverse` because its red background never inverts.
|
|
356
|
+
"on-primary": "bg-[var(--overlay-on-primary)] border-[var(--overlay-on-primary-border)] text-sui-text-on-primary group-disabled:bg-transparent group-disabled:border-transparent group-disabled:text-sui-text-hint",
|
|
352
357
|
neutral: "bg-transparent border-sui-border-default text-sui-text-muted group-disabled:text-sui-text-hint"
|
|
353
358
|
},
|
|
354
359
|
badgeSize: {
|
|
@@ -363,7 +368,7 @@ var buttonBadgeVariants = classVarianceAuthority.cva(
|
|
|
363
368
|
}
|
|
364
369
|
);
|
|
365
370
|
var badgeColorMap = {
|
|
366
|
-
default: "
|
|
371
|
+
default: "on-primary",
|
|
367
372
|
destructive: "inverse",
|
|
368
373
|
secondary: "neutral",
|
|
369
374
|
outline: "neutral",
|
|
@@ -389,7 +394,7 @@ var loadingBgMap = {
|
|
|
389
394
|
"ghost-muted": "bg-sui-bg-state-ghost-loading"
|
|
390
395
|
};
|
|
391
396
|
var loadingSpinnerColorMap = {
|
|
392
|
-
default: "text-icon-
|
|
397
|
+
default: "text-icon-on-primary",
|
|
393
398
|
destructive: "text-icon-white-default",
|
|
394
399
|
outline: "text-icon-default-muted",
|
|
395
400
|
secondary: "text-icon-default-muted",
|
|
@@ -397,7 +402,7 @@ var loadingSpinnerColorMap = {
|
|
|
397
402
|
"ghost-muted": "text-icon-default-muted"
|
|
398
403
|
};
|
|
399
404
|
var loadingTextColorMap = {
|
|
400
|
-
default: "text-sui-text-
|
|
405
|
+
default: "text-sui-text-on-primary",
|
|
401
406
|
destructive: "text-sui-text-white-default",
|
|
402
407
|
outline: "text-sui-text-muted",
|
|
403
408
|
secondary: "text-sui-text-muted",
|
|
@@ -405,7 +410,7 @@ var loadingTextColorMap = {
|
|
|
405
410
|
"ghost-muted": "text-sui-text-muted"
|
|
406
411
|
};
|
|
407
412
|
var loadingShadowVariants = /* @__PURE__ */ new Set(["default", "outline", "destructive"]);
|
|
408
|
-
var Button =
|
|
413
|
+
var Button = React80__namespace.forwardRef(
|
|
409
414
|
(_a, ref) => {
|
|
410
415
|
var _b = _a, { className, variant, size, shape, iconOnly, loading, leadIcon: _leadIcon, tailIcon: _tailIcon, badgeLeft: _badgeLeft, badgeRight: _badgeRight, asChild = false, children, showSeparator: _showSeparator } = _b, props = __objRest(_b, ["className", "variant", "size", "shape", "iconOnly", "loading", "leadIcon", "tailIcon", "badgeLeft", "badgeRight", "asChild", "children", "showSeparator"]);
|
|
411
416
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
@@ -476,7 +481,7 @@ Button.displayName = "Button";
|
|
|
476
481
|
var AlertDialog = AlertDialogPrimitive__namespace.Root;
|
|
477
482
|
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
|
478
483
|
var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
479
|
-
var AlertDialogOverlay =
|
|
484
|
+
var AlertDialogOverlay = React80__namespace.forwardRef((_a, ref) => {
|
|
480
485
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
481
486
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
482
487
|
AlertDialogPrimitive__namespace.Overlay,
|
|
@@ -491,7 +496,7 @@ var AlertDialogOverlay = React78__namespace.forwardRef((_a, ref) => {
|
|
|
491
496
|
);
|
|
492
497
|
});
|
|
493
498
|
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
494
|
-
var AlertDialogContent =
|
|
499
|
+
var AlertDialogContent = React80__namespace.forwardRef((_a, ref) => {
|
|
495
500
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
496
501
|
return /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
497
502
|
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
@@ -542,7 +547,7 @@ var AlertDialogFooter = (_a) => {
|
|
|
542
547
|
);
|
|
543
548
|
};
|
|
544
549
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
545
|
-
var AlertDialogTitle =
|
|
550
|
+
var AlertDialogTitle = React80__namespace.forwardRef((_a, ref) => {
|
|
546
551
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
547
552
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
548
553
|
AlertDialogPrimitive__namespace.Title,
|
|
@@ -553,7 +558,7 @@ var AlertDialogTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
553
558
|
);
|
|
554
559
|
});
|
|
555
560
|
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
556
|
-
var AlertDialogDescription =
|
|
561
|
+
var AlertDialogDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
557
562
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
558
563
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
559
564
|
AlertDialogPrimitive__namespace.Description,
|
|
@@ -564,7 +569,7 @@ var AlertDialogDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
|
564
569
|
);
|
|
565
570
|
});
|
|
566
571
|
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
567
|
-
var AlertDialogAction =
|
|
572
|
+
var AlertDialogAction = React80__namespace.forwardRef((_a, ref) => {
|
|
568
573
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
569
574
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
570
575
|
AlertDialogPrimitive__namespace.Action,
|
|
@@ -575,7 +580,7 @@ var AlertDialogAction = React78__namespace.forwardRef((_a, ref) => {
|
|
|
575
580
|
);
|
|
576
581
|
});
|
|
577
582
|
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
578
|
-
var AlertDialogCancel =
|
|
583
|
+
var AlertDialogCancel = React80__namespace.forwardRef((_a, ref) => {
|
|
579
584
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
580
585
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
581
586
|
AlertDialogPrimitive__namespace.Cancel,
|
|
@@ -590,6 +595,228 @@ var AlertDialogCancel = React78__namespace.forwardRef((_a, ref) => {
|
|
|
590
595
|
);
|
|
591
596
|
});
|
|
592
597
|
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
598
|
+
var attachmentVariants = classVarianceAuthority.cva(
|
|
599
|
+
"relative flex overflow-hidden border rounded-lg bg-sui-bg-card shadow-card",
|
|
600
|
+
{
|
|
601
|
+
variants: {
|
|
602
|
+
size: {
|
|
603
|
+
default: "gap-3 p-3",
|
|
604
|
+
sm: "gap-2 p-2.5",
|
|
605
|
+
xs: "gap-1.5 p-2"
|
|
606
|
+
},
|
|
607
|
+
orientation: {
|
|
608
|
+
horizontal: "flex-row items-center",
|
|
609
|
+
vertical: "flex-col"
|
|
610
|
+
},
|
|
611
|
+
state: {
|
|
612
|
+
idle: "border-sui-border-default",
|
|
613
|
+
uploading: "border-sui-border-default",
|
|
614
|
+
processing: "border-sui-border-default",
|
|
615
|
+
error: "border-sui-border-destructive",
|
|
616
|
+
done: "border-sui-border-default"
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
defaultVariants: {
|
|
620
|
+
size: "default",
|
|
621
|
+
orientation: "horizontal",
|
|
622
|
+
state: "done"
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
);
|
|
626
|
+
var AttachmentContext = React80__namespace.createContext({
|
|
627
|
+
size: "default",
|
|
628
|
+
state: "done"
|
|
629
|
+
});
|
|
630
|
+
var Attachment = React80__namespace.forwardRef(
|
|
631
|
+
(_a, ref) => {
|
|
632
|
+
var _b = _a, {
|
|
633
|
+
className,
|
|
634
|
+
size = "default",
|
|
635
|
+
orientation = "horizontal",
|
|
636
|
+
state = "done"
|
|
637
|
+
} = _b, props = __objRest(_b, [
|
|
638
|
+
"className",
|
|
639
|
+
"size",
|
|
640
|
+
"orientation",
|
|
641
|
+
"state"
|
|
642
|
+
]);
|
|
643
|
+
const resolvedSize = size != null ? size : "default";
|
|
644
|
+
const resolvedState = state != null ? state : "done";
|
|
645
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AttachmentContext.Provider, { value: { size: resolvedSize, state: resolvedState }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
646
|
+
"div",
|
|
647
|
+
__spreadValues({
|
|
648
|
+
ref,
|
|
649
|
+
className: cn(attachmentVariants({ size, orientation, state }), className)
|
|
650
|
+
}, props)
|
|
651
|
+
) });
|
|
652
|
+
}
|
|
653
|
+
);
|
|
654
|
+
Attachment.displayName = "Attachment";
|
|
655
|
+
var mediaContainerSize = {
|
|
656
|
+
default: "size-10",
|
|
657
|
+
sm: "size-8",
|
|
658
|
+
xs: "size-6"
|
|
659
|
+
};
|
|
660
|
+
var mediaIconSize = {
|
|
661
|
+
default: "[&_i]:text-xl [&_svg]:size-5",
|
|
662
|
+
sm: "[&_i]:text-lg [&_svg]:size-4",
|
|
663
|
+
xs: "[&_i]:text-sm [&_svg]:size-3.5"
|
|
664
|
+
};
|
|
665
|
+
var AttachmentMedia = React80__namespace.forwardRef(
|
|
666
|
+
(_a, ref) => {
|
|
667
|
+
var _b = _a, { className, variant = "icon", children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
|
|
668
|
+
const { size } = React80__namespace.useContext(AttachmentContext);
|
|
669
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
670
|
+
"div",
|
|
671
|
+
__spreadProps(__spreadValues({
|
|
672
|
+
ref,
|
|
673
|
+
className: cn(
|
|
674
|
+
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-sm",
|
|
675
|
+
mediaContainerSize[size],
|
|
676
|
+
variant === "icon" && [
|
|
677
|
+
"bg-sui-bg-subtle border-[0.5px] border-sui-border-darker",
|
|
678
|
+
"[&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted",
|
|
679
|
+
mediaIconSize[size]
|
|
680
|
+
],
|
|
681
|
+
variant === "image" && "[&_img]:size-full [&_img]:object-cover",
|
|
682
|
+
className
|
|
683
|
+
)
|
|
684
|
+
}, props), {
|
|
685
|
+
children
|
|
686
|
+
})
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
);
|
|
690
|
+
AttachmentMedia.displayName = "AttachmentMedia";
|
|
691
|
+
var AttachmentContent = React80__namespace.forwardRef((_a, ref) => {
|
|
692
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
693
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
694
|
+
"div",
|
|
695
|
+
__spreadValues({
|
|
696
|
+
ref,
|
|
697
|
+
className: cn("relative flex flex-1 flex-col gap-0.5 justify-center min-w-0", className)
|
|
698
|
+
}, props)
|
|
699
|
+
);
|
|
700
|
+
});
|
|
701
|
+
AttachmentContent.displayName = "AttachmentContent";
|
|
702
|
+
var titleTextSize = {
|
|
703
|
+
default: "text-sm",
|
|
704
|
+
sm: "text-sm",
|
|
705
|
+
xs: "text-xs"
|
|
706
|
+
};
|
|
707
|
+
var AttachmentTitle = React80__namespace.forwardRef((_a, ref) => {
|
|
708
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
709
|
+
const { size, state } = React80__namespace.useContext(AttachmentContext);
|
|
710
|
+
const isShimmering = state === "uploading" || state === "processing";
|
|
711
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
712
|
+
"p",
|
|
713
|
+
__spreadValues({
|
|
714
|
+
ref,
|
|
715
|
+
className: cn(
|
|
716
|
+
"font-medium leading-5 text-sui-text-default truncate",
|
|
717
|
+
titleTextSize[size],
|
|
718
|
+
isShimmering && "animate-pulse",
|
|
719
|
+
className
|
|
720
|
+
)
|
|
721
|
+
}, props)
|
|
722
|
+
);
|
|
723
|
+
});
|
|
724
|
+
AttachmentTitle.displayName = "AttachmentTitle";
|
|
725
|
+
var stateIcon = {
|
|
726
|
+
uploading: "ri-loader-4-line animate-spin text-icon-informative",
|
|
727
|
+
processing: "ri-loader-4-line animate-spin text-icon-informative",
|
|
728
|
+
error: "ri-error-warning-line text-icon-destructive",
|
|
729
|
+
done: "ri-check-line text-icon-success"
|
|
730
|
+
};
|
|
731
|
+
var AttachmentDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
732
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
733
|
+
const { state } = React80__namespace.useContext(AttachmentContext);
|
|
734
|
+
const icon = stateIcon[state];
|
|
735
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
736
|
+
"div",
|
|
737
|
+
__spreadProps(__spreadValues({
|
|
738
|
+
ref,
|
|
739
|
+
className: cn(
|
|
740
|
+
"flex items-center gap-1 text-xs leading-4 whitespace-nowrap",
|
|
741
|
+
state === "error" ? "text-sui-text-destructive" : "text-sui-text-muted",
|
|
742
|
+
className
|
|
743
|
+
)
|
|
744
|
+
}, props), {
|
|
745
|
+
children: [
|
|
746
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx("i", { className: cn(icon, "leading-none"), "aria-hidden": "true" }),
|
|
747
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children })
|
|
748
|
+
]
|
|
749
|
+
})
|
|
750
|
+
);
|
|
751
|
+
});
|
|
752
|
+
AttachmentDescription.displayName = "AttachmentDescription";
|
|
753
|
+
var AttachmentActions = React80__namespace.forwardRef((_a, ref) => {
|
|
754
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
755
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
756
|
+
"div",
|
|
757
|
+
__spreadValues({
|
|
758
|
+
ref,
|
|
759
|
+
className: cn("relative flex items-center gap-1 shrink-0", className)
|
|
760
|
+
}, props)
|
|
761
|
+
);
|
|
762
|
+
});
|
|
763
|
+
AttachmentActions.displayName = "AttachmentActions";
|
|
764
|
+
var AttachmentAction = React80__namespace.forwardRef(
|
|
765
|
+
(_a, ref) => {
|
|
766
|
+
var _b = _a, { className, size = "2xs", onClick } = _b, props = __objRest(_b, ["className", "size", "onClick"]);
|
|
767
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
768
|
+
Button,
|
|
769
|
+
__spreadValues({
|
|
770
|
+
ref,
|
|
771
|
+
type: "button",
|
|
772
|
+
variant: "ghost",
|
|
773
|
+
size,
|
|
774
|
+
iconOnly: true,
|
|
775
|
+
onClick: (event) => {
|
|
776
|
+
event.stopPropagation();
|
|
777
|
+
onClick == null ? void 0 : onClick(event);
|
|
778
|
+
},
|
|
779
|
+
className
|
|
780
|
+
}, props)
|
|
781
|
+
);
|
|
782
|
+
}
|
|
783
|
+
);
|
|
784
|
+
AttachmentAction.displayName = "AttachmentAction";
|
|
785
|
+
var AttachmentTrigger = React80__namespace.forwardRef(
|
|
786
|
+
(_a, ref) => {
|
|
787
|
+
var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
|
|
788
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
789
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
790
|
+
Comp,
|
|
791
|
+
__spreadValues({
|
|
792
|
+
ref,
|
|
793
|
+
type: asChild ? void 0 : "button",
|
|
794
|
+
className: cn(
|
|
795
|
+
"absolute inset-0 z-0 rounded-[inherit]",
|
|
796
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default",
|
|
797
|
+
className
|
|
798
|
+
)
|
|
799
|
+
}, props)
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
);
|
|
803
|
+
AttachmentTrigger.displayName = "AttachmentTrigger";
|
|
804
|
+
var AttachmentGroup = React80__namespace.forwardRef((_a, ref) => {
|
|
805
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
806
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
807
|
+
"div",
|
|
808
|
+
__spreadValues({
|
|
809
|
+
ref,
|
|
810
|
+
className: cn(
|
|
811
|
+
"flex gap-2 overflow-x-auto snap-x snap-mandatory",
|
|
812
|
+
"scroll-fade-x [--scroll-fade-size:16px]",
|
|
813
|
+
"[&>*]:snap-start",
|
|
814
|
+
className
|
|
815
|
+
)
|
|
816
|
+
}, props)
|
|
817
|
+
);
|
|
818
|
+
});
|
|
819
|
+
AttachmentGroup.displayName = "AttachmentGroup";
|
|
593
820
|
var containerSize = {
|
|
594
821
|
"2xs": "size-sui-8",
|
|
595
822
|
"xs": "size-sui-10",
|
|
@@ -614,11 +841,11 @@ var awayIconSize = {
|
|
|
614
841
|
"lg": "14px",
|
|
615
842
|
"default": "16px"
|
|
616
843
|
};
|
|
617
|
-
var StatusBadge =
|
|
844
|
+
var StatusBadge = React80__namespace.forwardRef(
|
|
618
845
|
(_a, ref) => {
|
|
619
846
|
var _b = _a, { variant, size = "default", src, className } = _b, props = __objRest(_b, ["variant", "size", "src", "className"]);
|
|
620
|
-
const [imgError, setImgError] =
|
|
621
|
-
|
|
847
|
+
const [imgError, setImgError] = React80__namespace.useState(false);
|
|
848
|
+
React80__namespace.useEffect(() => {
|
|
622
849
|
setImgError(false);
|
|
623
850
|
}, [src]);
|
|
624
851
|
const sizeClass = containerSize[size];
|
|
@@ -831,12 +1058,12 @@ function extractInitials(value) {
|
|
|
831
1058
|
}
|
|
832
1059
|
return trimmed.slice(0, 2).toUpperCase();
|
|
833
1060
|
}
|
|
834
|
-
var AvatarContext =
|
|
1061
|
+
var AvatarContext = React80__namespace.createContext({
|
|
835
1062
|
size: "md",
|
|
836
1063
|
shape: "circular",
|
|
837
1064
|
color: "gray"
|
|
838
1065
|
});
|
|
839
|
-
var Avatar =
|
|
1066
|
+
var Avatar = React80__namespace.forwardRef((_a, ref) => {
|
|
840
1067
|
var _b = _a, {
|
|
841
1068
|
className,
|
|
842
1069
|
size = "md",
|
|
@@ -990,7 +1217,7 @@ var Avatar = React78__namespace.forwardRef((_a, ref) => {
|
|
|
990
1217
|
) });
|
|
991
1218
|
});
|
|
992
1219
|
Avatar.displayName = "Avatar";
|
|
993
|
-
var AvatarImage =
|
|
1220
|
+
var AvatarImage = React80__namespace.forwardRef((_a, ref) => {
|
|
994
1221
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
995
1222
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
996
1223
|
AvatarPrimitive__namespace.Image,
|
|
@@ -1001,10 +1228,10 @@ var AvatarImage = React78__namespace.forwardRef((_a, ref) => {
|
|
|
1001
1228
|
);
|
|
1002
1229
|
});
|
|
1003
1230
|
AvatarImage.displayName = "AvatarImage";
|
|
1004
|
-
var AvatarFallback =
|
|
1231
|
+
var AvatarFallback = React80__namespace.forwardRef((_a, ref) => {
|
|
1005
1232
|
var _b = _a, { className, fallback, children } = _b, props = __objRest(_b, ["className", "fallback", "children"]);
|
|
1006
1233
|
var _a2, _b2, _c;
|
|
1007
|
-
const { size, shape, color } =
|
|
1234
|
+
const { size, shape, color } = React80__namespace.useContext(AvatarContext);
|
|
1008
1235
|
const shapeClass = shape === "rounded" ? "rounded-sm" : "rounded-full";
|
|
1009
1236
|
const fontClass = (_a2 = initialsFontSize[size]) != null ? _a2 : "text-sm";
|
|
1010
1237
|
const iconClass = (_b2 = iconSize[size]) != null ? _b2 : "text-lg";
|
|
@@ -1054,7 +1281,7 @@ var avatarButtonVariants = classVarianceAuthority.cva(
|
|
|
1054
1281
|
}
|
|
1055
1282
|
}
|
|
1056
1283
|
);
|
|
1057
|
-
var AvatarButton =
|
|
1284
|
+
var AvatarButton = React80__namespace.forwardRef(
|
|
1058
1285
|
(_a, ref) => {
|
|
1059
1286
|
var _b = _a, {
|
|
1060
1287
|
className,
|
|
@@ -1148,7 +1375,7 @@ var paddingBySize = {
|
|
|
1148
1375
|
"2xl": "pr-sui-10",
|
|
1149
1376
|
"3xl": "pr-sui-12"
|
|
1150
1377
|
};
|
|
1151
|
-
var AvatarGroup =
|
|
1378
|
+
var AvatarGroup = React80__namespace.forwardRef(
|
|
1152
1379
|
(_a, ref) => {
|
|
1153
1380
|
var _b = _a, { className, size = "md", stacking = "last-on-top", items } = _b, props = __objRest(_b, ["className", "size", "stacking", "items"]);
|
|
1154
1381
|
const isFirstOnTop = stacking === "first-on-top";
|
|
@@ -1190,7 +1417,7 @@ var AvatarGroup = React78__namespace.forwardRef(
|
|
|
1190
1417
|
}
|
|
1191
1418
|
);
|
|
1192
1419
|
AvatarGroup.displayName = "AvatarGroup";
|
|
1193
|
-
var AvatarUpload =
|
|
1420
|
+
var AvatarUpload = React80__namespace.forwardRef(
|
|
1194
1421
|
({
|
|
1195
1422
|
src,
|
|
1196
1423
|
alt = "",
|
|
@@ -1283,7 +1510,7 @@ var controlButtonVariants = classVarianceAuthority.cva(
|
|
|
1283
1510
|
}
|
|
1284
1511
|
}
|
|
1285
1512
|
);
|
|
1286
|
-
var ControlButton =
|
|
1513
|
+
var ControlButton = React80__namespace.forwardRef(
|
|
1287
1514
|
(_a, ref) => {
|
|
1288
1515
|
var _b = _a, {
|
|
1289
1516
|
className,
|
|
@@ -1454,12 +1681,12 @@ function Badge(_a) {
|
|
|
1454
1681
|
})
|
|
1455
1682
|
);
|
|
1456
1683
|
}
|
|
1457
|
-
var Breadcrumb =
|
|
1684
|
+
var Breadcrumb = React80__namespace.forwardRef((_a, ref) => {
|
|
1458
1685
|
var props = __objRest(_a, []);
|
|
1459
1686
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
|
|
1460
1687
|
});
|
|
1461
1688
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1462
|
-
var BreadcrumbList =
|
|
1689
|
+
var BreadcrumbList = React80__namespace.forwardRef((_a, ref) => {
|
|
1463
1690
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1464
1691
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1465
1692
|
"ol",
|
|
@@ -1473,7 +1700,7 @@ var BreadcrumbList = React78__namespace.forwardRef((_a, ref) => {
|
|
|
1473
1700
|
);
|
|
1474
1701
|
});
|
|
1475
1702
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1476
|
-
var BreadcrumbItem =
|
|
1703
|
+
var BreadcrumbItem = React80__namespace.forwardRef((_a, ref) => {
|
|
1477
1704
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1478
1705
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1479
1706
|
"li",
|
|
@@ -1484,7 +1711,7 @@ var BreadcrumbItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
1484
1711
|
);
|
|
1485
1712
|
});
|
|
1486
1713
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1487
|
-
var BreadcrumbLink =
|
|
1714
|
+
var BreadcrumbLink = React80__namespace.forwardRef((_a, ref) => {
|
|
1488
1715
|
var _b = _a, { asChild, className } = _b, props = __objRest(_b, ["asChild", "className"]);
|
|
1489
1716
|
const Comp = asChild ? reactSlot.Slot : "a";
|
|
1490
1717
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1500,7 +1727,7 @@ var BreadcrumbLink = React78__namespace.forwardRef((_a, ref) => {
|
|
|
1500
1727
|
);
|
|
1501
1728
|
});
|
|
1502
1729
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1503
|
-
var BreadcrumbPage =
|
|
1730
|
+
var BreadcrumbPage = React80__namespace.forwardRef((_a, ref) => {
|
|
1504
1731
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1505
1732
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1506
1733
|
"span",
|
|
@@ -1572,7 +1799,7 @@ function BreadcrumbDivider({ variant }) {
|
|
|
1572
1799
|
variant === "dot" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "size-1 rounded-full bg-sui-text-muted" })
|
|
1573
1800
|
] });
|
|
1574
1801
|
}
|
|
1575
|
-
var SortBreadcrumb =
|
|
1802
|
+
var SortBreadcrumb = React80__namespace.forwardRef(
|
|
1576
1803
|
({ items, variant = "slash", className }, ref) => {
|
|
1577
1804
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", { ref, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1578
1805
|
"ol",
|
|
@@ -1583,7 +1810,7 @@ var SortBreadcrumb = React78__namespace.forwardRef(
|
|
|
1583
1810
|
),
|
|
1584
1811
|
children: items.map((item, index) => {
|
|
1585
1812
|
const isLast = index === items.length - 1;
|
|
1586
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1813
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React80__namespace.Fragment, { children: [
|
|
1587
1814
|
/* @__PURE__ */ jsxRuntime.jsx("li", { className: "inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1588
1815
|
SortBreadcrumbItem,
|
|
1589
1816
|
__spreadProps(__spreadValues({}, item), {
|
|
@@ -1675,7 +1902,7 @@ var verticalChildRadius = {
|
|
|
1675
1902
|
xs: "[&>button:first-child]:rounded-t-md [&>button:last-of-type]:rounded-b-md",
|
|
1676
1903
|
"2xs": "[&>button:first-child]:rounded-t-sm [&>button:last-of-type]:rounded-b-sm"
|
|
1677
1904
|
};
|
|
1678
|
-
var ButtonGroup =
|
|
1905
|
+
var ButtonGroup = React80__namespace.forwardRef(
|
|
1679
1906
|
(_a, ref) => {
|
|
1680
1907
|
var _b = _a, { size = "lg", orientation = "horizontal", className, children } = _b, props = __objRest(_b, ["size", "orientation", "className", "children"]);
|
|
1681
1908
|
const isVertical = orientation === "vertical";
|
|
@@ -1694,9 +1921,9 @@ var ButtonGroup = React78__namespace.forwardRef(
|
|
|
1694
1921
|
className
|
|
1695
1922
|
)
|
|
1696
1923
|
}, props), {
|
|
1697
|
-
children:
|
|
1698
|
-
if (
|
|
1699
|
-
return
|
|
1924
|
+
children: React80__namespace.Children.map(children, (child, index) => {
|
|
1925
|
+
if (React80__namespace.isValidElement(child)) {
|
|
1926
|
+
return React80__namespace.cloneElement(
|
|
1700
1927
|
child,
|
|
1701
1928
|
{
|
|
1702
1929
|
showSeparator: index > 0,
|
|
@@ -1766,7 +1993,7 @@ var badgeClasses = {
|
|
|
1766
1993
|
xs: "text-xs font-medium leading-4 py-sui-2",
|
|
1767
1994
|
"2xs": "text-xs font-medium leading-4 py-0"
|
|
1768
1995
|
};
|
|
1769
|
-
var ButtonGroupItem =
|
|
1996
|
+
var ButtonGroupItem = React80__namespace.forwardRef(
|
|
1770
1997
|
(_a, ref) => {
|
|
1771
1998
|
var _b = _a, {
|
|
1772
1999
|
label,
|
|
@@ -1854,7 +2081,7 @@ var filterButtonVariants = classVarianceAuthority.cva(
|
|
|
1854
2081
|
);
|
|
1855
2082
|
var getVisualStateClasses = (selected) => selected ? "bg-sui-bg-state-secondary border border-solid border-sui-border-darker text-sui-text-muted [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted shadow-default" : "bg-sui-bg-state-secondary border border-dashed border-sui-border-darker text-sui-text-muted [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted";
|
|
1856
2083
|
var SUB_BUTTON_FOCUS = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-1 rounded-sm";
|
|
1857
|
-
var FilterButton =
|
|
2084
|
+
var FilterButton = React80__namespace.forwardRef(
|
|
1858
2085
|
(_a, ref) => {
|
|
1859
2086
|
var _b = _a, {
|
|
1860
2087
|
className,
|
|
@@ -2044,7 +2271,7 @@ var underlineOffsetMap = {
|
|
|
2044
2271
|
md: "after:bottom-0",
|
|
2045
2272
|
lg: "after:bottom-0"
|
|
2046
2273
|
};
|
|
2047
|
-
var LinkButton =
|
|
2274
|
+
var LinkButton = React80__namespace.forwardRef(
|
|
2048
2275
|
(_a, ref) => {
|
|
2049
2276
|
var _b = _a, { className, variant, size, asChild = false, leadIcon, tailIcon, disabled, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "leadIcon", "tailIcon", "disabled", "children"]);
|
|
2050
2277
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
@@ -2058,6 +2285,19 @@ var LinkButton = React78__namespace.forwardRef(
|
|
|
2058
2285
|
);
|
|
2059
2286
|
const iconColor = disabled ? "text-icon-default-disabled" : variant === "informative" ? "text-icon-informative" : "text-icon-default-muted";
|
|
2060
2287
|
const underlineColor = disabled ? "var(--border-darker)" : variant === "informative" ? "var(--border-informative)" : "var(--border-darker)";
|
|
2288
|
+
const underlineClassName = cn(
|
|
2289
|
+
"relative",
|
|
2290
|
+
"after:content-[''] after:absolute after:inset-x-0 after:h-px",
|
|
2291
|
+
"after:bg-[repeating-linear-gradient(90deg,var(--link-ul)_0_2px,transparent_2px_4px)]",
|
|
2292
|
+
underlineOffsetMap[resolvedSize]
|
|
2293
|
+
);
|
|
2294
|
+
const underlineStyle = { "--link-ul": underlineColor };
|
|
2295
|
+
const asChildTarget = asChild && React80__namespace.isValidElement(children) ? children : null;
|
|
2296
|
+
const content = asChildTarget ? /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children: React80__namespace.cloneElement(
|
|
2297
|
+
asChildTarget,
|
|
2298
|
+
void 0,
|
|
2299
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: underlineClassName, style: underlineStyle, children: asChildTarget.props.children })
|
|
2300
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: underlineClassName, style: underlineStyle, children });
|
|
2061
2301
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2062
2302
|
Comp,
|
|
2063
2303
|
__spreadProps(__spreadValues({
|
|
@@ -2077,19 +2317,7 @@ var LinkButton = React78__namespace.forwardRef(
|
|
|
2077
2317
|
}, props), {
|
|
2078
2318
|
children: [
|
|
2079
2319
|
leadIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: cn("shrink-0 text-md leading-none [&_svg]:size-4", iconColor), children: leadIcon }),
|
|
2080
|
-
|
|
2081
|
-
"span",
|
|
2082
|
-
{
|
|
2083
|
-
className: cn(
|
|
2084
|
-
"relative",
|
|
2085
|
-
"after:content-[''] after:absolute after:inset-x-0 after:h-px",
|
|
2086
|
-
"after:bg-[repeating-linear-gradient(90deg,var(--link-ul)_0_2px,transparent_2px_4px)]",
|
|
2087
|
-
underlineOffsetMap[resolvedSize]
|
|
2088
|
-
),
|
|
2089
|
-
style: { "--link-ul": underlineColor },
|
|
2090
|
-
children
|
|
2091
|
-
}
|
|
2092
|
-
),
|
|
2320
|
+
content,
|
|
2093
2321
|
tailIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: cn("shrink-0 text-md leading-none [&_svg]:size-4", iconColor), children: tailIcon })
|
|
2094
2322
|
]
|
|
2095
2323
|
})
|
|
@@ -2127,7 +2355,7 @@ var brandMap = {
|
|
|
2127
2355
|
dropbox: { icon: "ri-dropbox-fill", label: "Dropbox", bg: "var(--social-brand-dropbox)" },
|
|
2128
2356
|
github: { icon: "ri-github-fill", label: "Github" }
|
|
2129
2357
|
};
|
|
2130
|
-
var SocialButton =
|
|
2358
|
+
var SocialButton = React80__namespace.forwardRef(
|
|
2131
2359
|
(_a, ref) => {
|
|
2132
2360
|
var _b = _a, { className, variant, shape, brand, iconOnly, asChild = false, children } = _b, props = __objRest(_b, ["className", "variant", "shape", "brand", "iconOnly", "asChild", "children"]);
|
|
2133
2361
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
@@ -2332,8 +2560,8 @@ function CalendarDayButton(_a) {
|
|
|
2332
2560
|
"modifiers"
|
|
2333
2561
|
]);
|
|
2334
2562
|
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
2335
|
-
const ref =
|
|
2336
|
-
|
|
2563
|
+
const ref = React80__namespace.useRef(null);
|
|
2564
|
+
React80__namespace.useEffect(() => {
|
|
2337
2565
|
var _a2;
|
|
2338
2566
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
2339
2567
|
}, [modifiers.focused]);
|
|
@@ -2405,7 +2633,7 @@ var cardVariants = classVarianceAuthority.cva(
|
|
|
2405
2633
|
}
|
|
2406
2634
|
}
|
|
2407
2635
|
);
|
|
2408
|
-
var Card =
|
|
2636
|
+
var Card = React80__namespace.forwardRef(
|
|
2409
2637
|
(_a, ref) => {
|
|
2410
2638
|
var _b = _a, { className, variant, interactive, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "interactive", "asChild"]);
|
|
2411
2639
|
const Comp = asChild ? reactSlot.Slot : "div";
|
|
@@ -2428,7 +2656,7 @@ var Card = React78__namespace.forwardRef(
|
|
|
2428
2656
|
}
|
|
2429
2657
|
);
|
|
2430
2658
|
Card.displayName = "Card";
|
|
2431
|
-
var CardHeader =
|
|
2659
|
+
var CardHeader = React80__namespace.forwardRef((_a, ref) => {
|
|
2432
2660
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2433
2661
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2434
2662
|
"div",
|
|
@@ -2439,7 +2667,7 @@ var CardHeader = React78__namespace.forwardRef((_a, ref) => {
|
|
|
2439
2667
|
);
|
|
2440
2668
|
});
|
|
2441
2669
|
CardHeader.displayName = "CardHeader";
|
|
2442
|
-
var CardTitle =
|
|
2670
|
+
var CardTitle = React80__namespace.forwardRef((_a, ref) => {
|
|
2443
2671
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2444
2672
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2445
2673
|
"div",
|
|
@@ -2453,7 +2681,7 @@ var CardTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
2453
2681
|
);
|
|
2454
2682
|
});
|
|
2455
2683
|
CardTitle.displayName = "CardTitle";
|
|
2456
|
-
var CardDescription =
|
|
2684
|
+
var CardDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
2457
2685
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2458
2686
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2459
2687
|
"div",
|
|
@@ -2464,12 +2692,12 @@ var CardDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
|
2464
2692
|
);
|
|
2465
2693
|
});
|
|
2466
2694
|
CardDescription.displayName = "CardDescription";
|
|
2467
|
-
var CardContent =
|
|
2695
|
+
var CardContent = React80__namespace.forwardRef((_a, ref) => {
|
|
2468
2696
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2469
2697
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
|
|
2470
2698
|
});
|
|
2471
2699
|
CardContent.displayName = "CardContent";
|
|
2472
|
-
var CardFooter =
|
|
2700
|
+
var CardFooter = React80__namespace.forwardRef((_a, ref) => {
|
|
2473
2701
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2474
2702
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2475
2703
|
"div",
|
|
@@ -2480,7 +2708,7 @@ var CardFooter = React78__namespace.forwardRef((_a, ref) => {
|
|
|
2480
2708
|
);
|
|
2481
2709
|
});
|
|
2482
2710
|
CardFooter.displayName = "CardFooter";
|
|
2483
|
-
var CardCover =
|
|
2711
|
+
var CardCover = React80__namespace.forwardRef(
|
|
2484
2712
|
(_a, ref) => {
|
|
2485
2713
|
var _b = _a, { className, flush = false, aspectRatio = "3/2", style, children } = _b, props = __objRest(_b, ["className", "flush", "aspectRatio", "style", "children"]);
|
|
2486
2714
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2501,17 +2729,17 @@ var CardCover = React78__namespace.forwardRef(
|
|
|
2501
2729
|
);
|
|
2502
2730
|
CardCover.displayName = "CardCover";
|
|
2503
2731
|
var THEMES = { light: "", dark: ".dark" };
|
|
2504
|
-
var ChartContext =
|
|
2732
|
+
var ChartContext = React80__namespace.createContext(null);
|
|
2505
2733
|
function useChart() {
|
|
2506
|
-
const context =
|
|
2734
|
+
const context = React80__namespace.useContext(ChartContext);
|
|
2507
2735
|
if (!context) {
|
|
2508
2736
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
2509
2737
|
}
|
|
2510
2738
|
return context;
|
|
2511
2739
|
}
|
|
2512
|
-
var ChartContainer =
|
|
2740
|
+
var ChartContainer = React80__namespace.forwardRef((_a, ref) => {
|
|
2513
2741
|
var _b = _a, { id, className, children, config } = _b, props = __objRest(_b, ["id", "className", "children", "config"]);
|
|
2514
|
-
const uniqueId =
|
|
2742
|
+
const uniqueId = React80__namespace.useId();
|
|
2515
2743
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
2516
2744
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2517
2745
|
"div",
|
|
@@ -2558,7 +2786,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
2558
2786
|
);
|
|
2559
2787
|
};
|
|
2560
2788
|
var ChartTooltip = RechartsPrimitive__namespace.Tooltip;
|
|
2561
|
-
var ChartTooltipContent =
|
|
2789
|
+
var ChartTooltipContent = React80__namespace.forwardRef(
|
|
2562
2790
|
({
|
|
2563
2791
|
active,
|
|
2564
2792
|
payload,
|
|
@@ -2575,7 +2803,7 @@ var ChartTooltipContent = React78__namespace.forwardRef(
|
|
|
2575
2803
|
labelKey
|
|
2576
2804
|
}, ref) => {
|
|
2577
2805
|
const { config } = useChart();
|
|
2578
|
-
const tooltipLabel =
|
|
2806
|
+
const tooltipLabel = React80__namespace.useMemo(() => {
|
|
2579
2807
|
var _a;
|
|
2580
2808
|
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
2581
2809
|
return null;
|
|
@@ -2672,7 +2900,7 @@ var ChartTooltipContent = React78__namespace.forwardRef(
|
|
|
2672
2900
|
);
|
|
2673
2901
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
2674
2902
|
var ChartLegend = RechartsPrimitive__namespace.Legend;
|
|
2675
|
-
var ChartLegendContent =
|
|
2903
|
+
var ChartLegendContent = React80__namespace.forwardRef(
|
|
2676
2904
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
2677
2905
|
const { config } = useChart();
|
|
2678
2906
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
@@ -2791,7 +3019,7 @@ var checkboxVariants = classVarianceAuthority.cva(
|
|
|
2791
3019
|
}
|
|
2792
3020
|
}
|
|
2793
3021
|
);
|
|
2794
|
-
var Checkbox =
|
|
3022
|
+
var Checkbox = React80__namespace.forwardRef((_a, ref) => {
|
|
2795
3023
|
var _b = _a, { className, variant, checked, indeterminate } = _b, props = __objRest(_b, ["className", "variant", "checked", "indeterminate"]);
|
|
2796
3024
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2797
3025
|
CheckboxPrimitive__namespace.Root,
|
|
@@ -2913,7 +3141,7 @@ var checkboxCardVariants = classVarianceAuthority.cva(
|
|
|
2913
3141
|
}
|
|
2914
3142
|
}
|
|
2915
3143
|
);
|
|
2916
|
-
var CheckboxCard =
|
|
3144
|
+
var CheckboxCard = React80__namespace.forwardRef(
|
|
2917
3145
|
({
|
|
2918
3146
|
title,
|
|
2919
3147
|
description,
|
|
@@ -2927,7 +3155,7 @@ var CheckboxCard = React78__namespace.forwardRef(
|
|
|
2927
3155
|
disabled = false,
|
|
2928
3156
|
className
|
|
2929
3157
|
}, ref) => {
|
|
2930
|
-
const generatedId =
|
|
3158
|
+
const generatedId = React80__namespace.useId();
|
|
2931
3159
|
const checkboxId = `checkbox-card-${generatedId}`;
|
|
2932
3160
|
const titleId = `checkbox-card-title-${generatedId}`;
|
|
2933
3161
|
const descriptionId = `checkbox-card-desc-${generatedId}`;
|
|
@@ -2949,7 +3177,7 @@ var CheckboxCard = React78__namespace.forwardRef(
|
|
|
2949
3177
|
selected || isDefault ? "bg-sui-bg-card" : "bg-sui-bg-state-soft",
|
|
2950
3178
|
// Border — always 1px border, use inset ring for selected highlight (no layout shift)
|
|
2951
3179
|
"border",
|
|
2952
|
-
selected ? "border-
|
|
3180
|
+
selected ? "border-informative ring-1 ring-inset ring-informative" : disabled ? isDefault ? "border-sui-border-default" : "border-transparent" : isDefault ? "border-sui-border-darker" : "border-transparent",
|
|
2953
3181
|
// Shadow (only for default or selected)
|
|
2954
3182
|
selected || isDefault ? disabled ? "" : "shadow-card-base" : "",
|
|
2955
3183
|
// Disabled
|
|
@@ -3023,10 +3251,10 @@ var CheckboxCard = React78__namespace.forwardRef(
|
|
|
3023
3251
|
}
|
|
3024
3252
|
);
|
|
3025
3253
|
CheckboxCard.displayName = "CheckboxCard";
|
|
3026
|
-
var CheckboxList =
|
|
3254
|
+
var CheckboxList = React80__namespace.forwardRef(
|
|
3027
3255
|
(_a, ref) => {
|
|
3028
3256
|
var _b = _a, { className, divider = true, children } = _b, props = __objRest(_b, ["className", "divider", "children"]);
|
|
3029
|
-
const items =
|
|
3257
|
+
const items = React80__namespace.Children.toArray(children);
|
|
3030
3258
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3031
3259
|
"div",
|
|
3032
3260
|
__spreadProps(__spreadValues({
|
|
@@ -3068,7 +3296,7 @@ var checkboxWithTextVariants = classVarianceAuthority.cva(
|
|
|
3068
3296
|
}
|
|
3069
3297
|
}
|
|
3070
3298
|
);
|
|
3071
|
-
var CheckboxWithText =
|
|
3299
|
+
var CheckboxWithText = React80__namespace.forwardRef(
|
|
3072
3300
|
({
|
|
3073
3301
|
label,
|
|
3074
3302
|
description,
|
|
@@ -3081,7 +3309,7 @@ var CheckboxWithText = React78__namespace.forwardRef(
|
|
|
3081
3309
|
className,
|
|
3082
3310
|
id
|
|
3083
3311
|
}, ref) => {
|
|
3084
|
-
const generatedId =
|
|
3312
|
+
const generatedId = React80__namespace.useId();
|
|
3085
3313
|
const checkboxId = id || generatedId;
|
|
3086
3314
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3087
3315
|
"div",
|
|
@@ -3165,10 +3393,10 @@ var unselectedStyles = {
|
|
|
3165
3393
|
].join(" ")
|
|
3166
3394
|
};
|
|
3167
3395
|
var selectedStyles = {
|
|
3168
|
-
// default, soft, ghost → blue
|
|
3169
|
-
default: "bg-sui-bg-badge-blue border-sui-border-blue text-sui-
|
|
3170
|
-
soft: "bg-sui-bg-badge-blue text-sui-
|
|
3171
|
-
ghost: "bg-sui-bg-badge-blue text-sui-
|
|
3396
|
+
// default, soft, ghost → informative accent selected (shifts blue → orange in Neutral Violet; bg-badge-blue has no theme-adaptive equivalent yet)
|
|
3397
|
+
default: "bg-sui-bg-badge-blue border-sui-border-blue text-sui-text-informative [&_i]:text-sui-text-informative",
|
|
3398
|
+
soft: "bg-sui-bg-badge-blue text-sui-text-informative [&_i]:text-sui-text-informative",
|
|
3399
|
+
ghost: "bg-sui-bg-badge-blue text-sui-text-informative [&_i]:text-sui-text-informative",
|
|
3172
3400
|
// ghost-muted → soft bg + subtle text
|
|
3173
3401
|
"ghost-muted": "bg-sui-bg-state-soft text-sui-text-subtle [&_i]:text-icon-default-subtle"
|
|
3174
3402
|
};
|
|
@@ -3229,7 +3457,7 @@ var labelClasses2 = {
|
|
|
3229
3457
|
md: "text-sm font-medium leading-5",
|
|
3230
3458
|
sm: "text-xs font-medium leading-4"
|
|
3231
3459
|
};
|
|
3232
|
-
var Chip =
|
|
3460
|
+
var Chip = React80__namespace.forwardRef(
|
|
3233
3461
|
(_a, ref) => {
|
|
3234
3462
|
var _b = _a, {
|
|
3235
3463
|
label,
|
|
@@ -3258,7 +3486,7 @@ var Chip = React78__namespace.forwardRef(
|
|
|
3258
3486
|
"className",
|
|
3259
3487
|
"onClick"
|
|
3260
3488
|
]);
|
|
3261
|
-
const [internalSelected, setInternalSelected] =
|
|
3489
|
+
const [internalSelected, setInternalSelected] = React80__namespace.useState(false);
|
|
3262
3490
|
const isControlled = controlledSelected !== void 0;
|
|
3263
3491
|
const selected = isControlled ? controlledSelected : internalSelected;
|
|
3264
3492
|
const handleClick = (e) => {
|
|
@@ -3356,7 +3584,7 @@ var badgeStyles = [
|
|
|
3356
3584
|
"bg-sui-bg-state-soft border border-sui-border-darker rounded-xs",
|
|
3357
3585
|
"text-sui-text-subtle text-xs font-medium leading-4"
|
|
3358
3586
|
].join(" ");
|
|
3359
|
-
var TooltipContent =
|
|
3587
|
+
var TooltipContent = React80__namespace.forwardRef((_a, ref) => {
|
|
3360
3588
|
var _b = _a, { className, variant = "default", weight = "subtle", shortcut, sideOffset = 4, children } = _b, props = __objRest(_b, ["className", "variant", "weight", "shortcut", "sideOffset", "children"]);
|
|
3361
3589
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3362
3590
|
TooltipPrimitive__namespace.Content,
|
|
@@ -3392,7 +3620,7 @@ var underlineTabsListVariants = classVarianceAuthority.cva(
|
|
|
3392
3620
|
}
|
|
3393
3621
|
}
|
|
3394
3622
|
);
|
|
3395
|
-
var UnderlineTabsList =
|
|
3623
|
+
var UnderlineTabsList = React80__namespace.forwardRef((_a, ref) => {
|
|
3396
3624
|
var _b = _a, { className, layout, size } = _b, props = __objRest(_b, ["className", "layout", "size"]);
|
|
3397
3625
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3398
3626
|
TabsPrimitive4__namespace.List,
|
|
@@ -3439,7 +3667,7 @@ var underlineTabItemVariants = classVarianceAuthority.cva(
|
|
|
3439
3667
|
}
|
|
3440
3668
|
}
|
|
3441
3669
|
);
|
|
3442
|
-
var UnderlineTabItem =
|
|
3670
|
+
var UnderlineTabItem = React80__namespace.forwardRef(
|
|
3443
3671
|
(_a, ref) => {
|
|
3444
3672
|
var _b = _a, {
|
|
3445
3673
|
className,
|
|
@@ -3477,7 +3705,7 @@ var UnderlineTabItem = React78__namespace.forwardRef(
|
|
|
3477
3705
|
);
|
|
3478
3706
|
UnderlineTabItem.displayName = "UnderlineTabItem";
|
|
3479
3707
|
var DEFAULT_LANGUAGES = ["React", "JavaScript", "TypeScript", "Next.js"];
|
|
3480
|
-
var CodeBlock =
|
|
3708
|
+
var CodeBlock = React80__namespace.forwardRef(
|
|
3481
3709
|
(_a, ref) => {
|
|
3482
3710
|
var _b = _a, {
|
|
3483
3711
|
className,
|
|
@@ -3507,10 +3735,10 @@ var CodeBlock = React78__namespace.forwardRef(
|
|
|
3507
3735
|
"showLineNumbers"
|
|
3508
3736
|
]);
|
|
3509
3737
|
var _a2, _b2, _c, _d, _e, _f;
|
|
3510
|
-
const [activeTab, setActiveTab] =
|
|
3511
|
-
const [copied, setCopied] =
|
|
3738
|
+
const [activeTab, setActiveTab] = React80__namespace.useState((_b2 = (_a2 = tabs == null ? void 0 : tabs[0]) == null ? void 0 : _a2.label) != null ? _b2 : "");
|
|
3739
|
+
const [copied, setCopied] = React80__namespace.useState(false);
|
|
3512
3740
|
const activeCode = variant === "advanced" ? (_f = (_e = (_c = tabs == null ? void 0 : tabs.find((t) => t.label === activeTab)) == null ? void 0 : _c.code) != null ? _e : (_d = tabs == null ? void 0 : tabs[0]) == null ? void 0 : _d.code) != null ? _f : "" : code;
|
|
3513
|
-
const handleCopy =
|
|
3741
|
+
const handleCopy = React80__namespace.useCallback(() => {
|
|
3514
3742
|
if (onCopy) {
|
|
3515
3743
|
onCopy();
|
|
3516
3744
|
} else {
|
|
@@ -3701,7 +3929,7 @@ var Dialog = DialogPrimitive__namespace.Root;
|
|
|
3701
3929
|
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
3702
3930
|
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
3703
3931
|
var DialogClose = DialogPrimitive__namespace.Close;
|
|
3704
|
-
var DialogOverlay =
|
|
3932
|
+
var DialogOverlay = React80__namespace.forwardRef((_a, ref) => {
|
|
3705
3933
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3706
3934
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3707
3935
|
DialogPrimitive__namespace.Overlay,
|
|
@@ -3715,7 +3943,7 @@ var DialogOverlay = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3715
3943
|
);
|
|
3716
3944
|
});
|
|
3717
3945
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
3718
|
-
var DialogContent =
|
|
3946
|
+
var DialogContent = React80__namespace.forwardRef((_a, ref) => {
|
|
3719
3947
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
3720
3948
|
return /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
3721
3949
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
@@ -3774,7 +4002,7 @@ var DialogFooter = (_a) => {
|
|
|
3774
4002
|
);
|
|
3775
4003
|
};
|
|
3776
4004
|
DialogFooter.displayName = "DialogFooter";
|
|
3777
|
-
var DialogTitle =
|
|
4005
|
+
var DialogTitle = React80__namespace.forwardRef((_a, ref) => {
|
|
3778
4006
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3779
4007
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3780
4008
|
DialogPrimitive__namespace.Title,
|
|
@@ -3788,7 +4016,7 @@ var DialogTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3788
4016
|
);
|
|
3789
4017
|
});
|
|
3790
4018
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3791
|
-
var DialogDescription =
|
|
4019
|
+
var DialogDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
3792
4020
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3793
4021
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3794
4022
|
DialogPrimitive__namespace.Description,
|
|
@@ -3799,7 +4027,7 @@ var DialogDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3799
4027
|
);
|
|
3800
4028
|
});
|
|
3801
4029
|
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3802
|
-
var Command =
|
|
4030
|
+
var Command = React80__namespace.forwardRef((_a, ref) => {
|
|
3803
4031
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3804
4032
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3805
4033
|
cmdk.Command,
|
|
@@ -3817,7 +4045,7 @@ var CommandDialog = (_a) => {
|
|
|
3817
4045
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3818
4046
|
return /* @__PURE__ */ jsxRuntime.jsx(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: "overflow-hidden p-0 shadow-card max-w-[560px]", children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-sui-text-hint [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_i]:h-4 [&_[cmdk-input-wrapper]_i]:w-4 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_i]:h-4 [&_[cmdk-item]_i]:w-4", children }) }) }));
|
|
3819
4047
|
};
|
|
3820
|
-
var CommandInput =
|
|
4048
|
+
var CommandInput = React80__namespace.forwardRef((_a, ref) => {
|
|
3821
4049
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3822
4050
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b border-sui-border-default px-3", "cmdk-input-wrapper": "", children: [
|
|
3823
4051
|
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-search-line mr-2 shrink-0 text-icon-default-muted" }),
|
|
@@ -3834,7 +4062,7 @@ var CommandInput = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3834
4062
|
] });
|
|
3835
4063
|
});
|
|
3836
4064
|
CommandInput.displayName = cmdk.Command.Input.displayName;
|
|
3837
|
-
var CommandList =
|
|
4065
|
+
var CommandList = React80__namespace.forwardRef((_a, ref) => {
|
|
3838
4066
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3839
4067
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3840
4068
|
cmdk.Command.List,
|
|
@@ -3845,7 +4073,7 @@ var CommandList = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3845
4073
|
);
|
|
3846
4074
|
});
|
|
3847
4075
|
CommandList.displayName = cmdk.Command.List.displayName;
|
|
3848
|
-
var CommandEmpty =
|
|
4076
|
+
var CommandEmpty = React80__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3849
4077
|
cmdk.Command.Empty,
|
|
3850
4078
|
__spreadValues({
|
|
3851
4079
|
ref,
|
|
@@ -3853,7 +4081,7 @@ var CommandEmpty = React78__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
|
3853
4081
|
}, props)
|
|
3854
4082
|
));
|
|
3855
4083
|
CommandEmpty.displayName = cmdk.Command.Empty.displayName;
|
|
3856
|
-
var CommandGroup =
|
|
4084
|
+
var CommandGroup = React80__namespace.forwardRef((_a, ref) => {
|
|
3857
4085
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3858
4086
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3859
4087
|
cmdk.Command.Group,
|
|
@@ -3867,7 +4095,7 @@ var CommandGroup = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3867
4095
|
);
|
|
3868
4096
|
});
|
|
3869
4097
|
CommandGroup.displayName = cmdk.Command.Group.displayName;
|
|
3870
|
-
var CommandSeparator =
|
|
4098
|
+
var CommandSeparator = React80__namespace.forwardRef((_a, ref) => {
|
|
3871
4099
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3872
4100
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3873
4101
|
cmdk.Command.Separator,
|
|
@@ -3878,7 +4106,7 @@ var CommandSeparator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3878
4106
|
);
|
|
3879
4107
|
});
|
|
3880
4108
|
CommandSeparator.displayName = cmdk.Command.Separator.displayName;
|
|
3881
|
-
var CommandItem =
|
|
4109
|
+
var CommandItem = React80__namespace.forwardRef((_a, ref) => {
|
|
3882
4110
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3883
4111
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3884
4112
|
cmdk.Command.Item,
|
|
@@ -3941,7 +4169,7 @@ var sliderHandleVariants = classVarianceAuthority.cva(
|
|
|
3941
4169
|
}
|
|
3942
4170
|
}
|
|
3943
4171
|
);
|
|
3944
|
-
var SliderHandle =
|
|
4172
|
+
var SliderHandle = React80__namespace.forwardRef(
|
|
3945
4173
|
(_a, ref) => {
|
|
3946
4174
|
var _b = _a, { className, state, value, showTooltip = false } = _b, props = __objRest(_b, ["className", "state", "value", "showTooltip"]);
|
|
3947
4175
|
const isDisabled = state === "disabled";
|
|
@@ -4004,7 +4232,7 @@ function buildHistogramPath(data, width, height) {
|
|
|
4004
4232
|
path += ` L ${width} ${height} Z`;
|
|
4005
4233
|
return path;
|
|
4006
4234
|
}
|
|
4007
|
-
var DataRangeSlider =
|
|
4235
|
+
var DataRangeSlider = React80__namespace.forwardRef(
|
|
4008
4236
|
(_a, ref) => {
|
|
4009
4237
|
var _b = _a, {
|
|
4010
4238
|
className,
|
|
@@ -4035,18 +4263,18 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4035
4263
|
"formatValue",
|
|
4036
4264
|
"onValueChange"
|
|
4037
4265
|
]);
|
|
4038
|
-
const trackRef =
|
|
4039
|
-
const [draggingHandle, setDraggingHandle] =
|
|
4040
|
-
const [focusedHandle, setFocusedHandle] =
|
|
4041
|
-
const clipId =
|
|
4266
|
+
const trackRef = React80__namespace.useRef(null);
|
|
4267
|
+
const [draggingHandle, setDraggingHandle] = React80__namespace.useState(null);
|
|
4268
|
+
const [focusedHandle, setFocusedHandle] = React80__namespace.useState(null);
|
|
4269
|
+
const clipId = React80__namespace.useId();
|
|
4042
4270
|
const [rangeMin, rangeMax] = value;
|
|
4043
4271
|
const pctMin = percent(rangeMin, min, max);
|
|
4044
4272
|
const pctMax = percent(rangeMax, min, max);
|
|
4045
|
-
const fmt =
|
|
4273
|
+
const fmt = React80__namespace.useCallback(
|
|
4046
4274
|
(v) => formatValue ? formatValue(v) : `${v}`,
|
|
4047
4275
|
[formatValue]
|
|
4048
4276
|
);
|
|
4049
|
-
const getValueFromPointer =
|
|
4277
|
+
const getValueFromPointer = React80__namespace.useCallback(
|
|
4050
4278
|
(clientX) => {
|
|
4051
4279
|
const track = trackRef.current;
|
|
4052
4280
|
if (!track) return 0;
|
|
@@ -4057,7 +4285,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4057
4285
|
},
|
|
4058
4286
|
[min, max, step]
|
|
4059
4287
|
);
|
|
4060
|
-
const closestHandle =
|
|
4288
|
+
const closestHandle = React80__namespace.useCallback(
|
|
4061
4289
|
(pointerValue) => {
|
|
4062
4290
|
const distMin = Math.abs(pointerValue - rangeMin);
|
|
4063
4291
|
const distMax = Math.abs(pointerValue - rangeMax);
|
|
@@ -4065,7 +4293,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4065
4293
|
},
|
|
4066
4294
|
[rangeMin, rangeMax]
|
|
4067
4295
|
);
|
|
4068
|
-
const updateValue =
|
|
4296
|
+
const updateValue = React80__namespace.useCallback(
|
|
4069
4297
|
(handle, newVal) => {
|
|
4070
4298
|
if (handle === 0) {
|
|
4071
4299
|
const clamped = clamp(newVal, min, rangeMax);
|
|
@@ -4077,7 +4305,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4077
4305
|
},
|
|
4078
4306
|
[min, max, rangeMin, rangeMax, onValueChange]
|
|
4079
4307
|
);
|
|
4080
|
-
const handlePointerDown =
|
|
4308
|
+
const handlePointerDown = React80__namespace.useCallback(
|
|
4081
4309
|
(e) => {
|
|
4082
4310
|
if (disabled) return;
|
|
4083
4311
|
e.preventDefault();
|
|
@@ -4089,7 +4317,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4089
4317
|
},
|
|
4090
4318
|
[disabled, getValueFromPointer, closestHandle, updateValue]
|
|
4091
4319
|
);
|
|
4092
|
-
const handlePointerMove =
|
|
4320
|
+
const handlePointerMove = React80__namespace.useCallback(
|
|
4093
4321
|
(e) => {
|
|
4094
4322
|
if (draggingHandle === null || disabled) return;
|
|
4095
4323
|
const newVal = getValueFromPointer(e.clientX);
|
|
@@ -4097,10 +4325,10 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4097
4325
|
},
|
|
4098
4326
|
[draggingHandle, disabled, getValueFromPointer, updateValue]
|
|
4099
4327
|
);
|
|
4100
|
-
const handlePointerUp =
|
|
4328
|
+
const handlePointerUp = React80__namespace.useCallback(() => {
|
|
4101
4329
|
setDraggingHandle(null);
|
|
4102
4330
|
}, []);
|
|
4103
|
-
const makeKeyHandler =
|
|
4331
|
+
const makeKeyHandler = React80__namespace.useCallback(
|
|
4104
4332
|
(handle) => (e) => {
|
|
4105
4333
|
if (disabled) return;
|
|
4106
4334
|
const currentVal = handle === 0 ? rangeMin : rangeMax;
|
|
@@ -4128,7 +4356,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4128
4356
|
},
|
|
4129
4357
|
[disabled, rangeMin, rangeMax, step, min, max, updateValue]
|
|
4130
4358
|
);
|
|
4131
|
-
const tickLabels =
|
|
4359
|
+
const tickLabels = React80__namespace.useMemo(() => {
|
|
4132
4360
|
if (pointLabels) return pointLabels;
|
|
4133
4361
|
const labels = [];
|
|
4134
4362
|
for (let i = 0; i < pointCount; i++) {
|
|
@@ -4139,7 +4367,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4139
4367
|
}, [pointLabels, pointCount, min, max, fmt]);
|
|
4140
4368
|
const chartWidth = 320;
|
|
4141
4369
|
const chartHeight = 32;
|
|
4142
|
-
const histogramPath =
|
|
4370
|
+
const histogramPath = React80__namespace.useMemo(
|
|
4143
4371
|
() => buildHistogramPath(data, chartWidth, chartHeight),
|
|
4144
4372
|
[data]
|
|
4145
4373
|
);
|
|
@@ -4203,7 +4431,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4203
4431
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4204
4432
|
"div",
|
|
4205
4433
|
{
|
|
4206
|
-
className: "absolute top-1/2 h-1 -translate-y-1/2 bg-
|
|
4434
|
+
className: "absolute top-1/2 h-1 -translate-y-1/2 bg-informative",
|
|
4207
4435
|
style: { left: `${pctMin}%`, right: `${100 - pctMax}%` }
|
|
4208
4436
|
}
|
|
4209
4437
|
),
|
|
@@ -4286,7 +4514,7 @@ DataRangeSlider.displayName = "DataRangeSlider";
|
|
|
4286
4514
|
var labelVariants = classVarianceAuthority.cva(
|
|
4287
4515
|
"text-sm font-medium leading-5 text-sui-text-default"
|
|
4288
4516
|
);
|
|
4289
|
-
var Label =
|
|
4517
|
+
var Label = React80__namespace.forwardRef((_a, ref) => {
|
|
4290
4518
|
var _b = _a, { className, required, supportText, tailIcon, children } = _b, props = __objRest(_b, ["className", "required", "supportText", "tailIcon", "children"]);
|
|
4291
4519
|
const hasTail = !!(supportText || tailIcon);
|
|
4292
4520
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4347,7 +4575,7 @@ var inputContainerVariants = classVarianceAuthority.cva(
|
|
|
4347
4575
|
}
|
|
4348
4576
|
}
|
|
4349
4577
|
);
|
|
4350
|
-
var InputField =
|
|
4578
|
+
var InputField = React80__namespace.forwardRef(
|
|
4351
4579
|
(_a, ref) => {
|
|
4352
4580
|
var _b = _a, {
|
|
4353
4581
|
className,
|
|
@@ -4410,15 +4638,15 @@ var InputField = React78__namespace.forwardRef(
|
|
|
4410
4638
|
"spellCheck",
|
|
4411
4639
|
"autoComplete"
|
|
4412
4640
|
]);
|
|
4413
|
-
const generatedId =
|
|
4641
|
+
const generatedId = React80__namespace.useId();
|
|
4414
4642
|
const inputId = id || generatedId;
|
|
4415
4643
|
const captionId = `${inputId}-caption`;
|
|
4416
4644
|
const hasError = !!error;
|
|
4417
4645
|
const helperText = hasError ? error : caption;
|
|
4418
4646
|
const hasInlineTags = !!(tags && tags.length > 0 && !hasError && !disabled);
|
|
4419
|
-
const innerRef =
|
|
4420
|
-
|
|
4421
|
-
const [internalHasValue, setInternalHasValue] =
|
|
4647
|
+
const innerRef = React80__namespace.useRef(null);
|
|
4648
|
+
React80__namespace.useImperativeHandle(ref, () => innerRef.current, []);
|
|
4649
|
+
const [internalHasValue, setInternalHasValue] = React80__namespace.useState(false);
|
|
4422
4650
|
const hasValue = clearable ? typeof value === "string" ? value.length > 0 : internalHasValue : false;
|
|
4423
4651
|
const handleChange = (e) => {
|
|
4424
4652
|
if (clearable && value === void 0) {
|
|
@@ -4630,8 +4858,7 @@ var InputField = React78__namespace.forwardRef(
|
|
|
4630
4858
|
),
|
|
4631
4859
|
children: tailAddon
|
|
4632
4860
|
}
|
|
4633
|
-
)
|
|
4634
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom" })
|
|
4861
|
+
)
|
|
4635
4862
|
]
|
|
4636
4863
|
}
|
|
4637
4864
|
),
|
|
@@ -4650,7 +4877,7 @@ var InputField = React78__namespace.forwardRef(
|
|
|
4650
4877
|
}
|
|
4651
4878
|
);
|
|
4652
4879
|
InputField.displayName = "InputField";
|
|
4653
|
-
var DataRangeSliderInput =
|
|
4880
|
+
var DataRangeSliderInput = React80__namespace.forwardRef(
|
|
4654
4881
|
(_a, ref) => {
|
|
4655
4882
|
var _b = _a, {
|
|
4656
4883
|
className,
|
|
@@ -4770,7 +4997,7 @@ var DataRangeSliderInput = React78__namespace.forwardRef(
|
|
|
4770
4997
|
DataRangeSliderInput.displayName = "DataRangeSliderInput";
|
|
4771
4998
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
4772
4999
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
4773
|
-
var PopoverContent =
|
|
5000
|
+
var PopoverContent = React80__namespace.forwardRef((_a, ref) => {
|
|
4774
5001
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
4775
5002
|
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4776
5003
|
PopoverPrimitive__namespace.Content,
|
|
@@ -4793,7 +5020,7 @@ function DatePicker({
|
|
|
4793
5020
|
className,
|
|
4794
5021
|
disabled
|
|
4795
5022
|
}) {
|
|
4796
|
-
const [open, setOpen] =
|
|
5023
|
+
const [open, setOpen] = React80__namespace.useState(false);
|
|
4797
5024
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4798
5025
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4799
5026
|
Button,
|
|
@@ -4834,7 +5061,7 @@ function DateRangePicker({
|
|
|
4834
5061
|
className,
|
|
4835
5062
|
disabled
|
|
4836
5063
|
}) {
|
|
4837
|
-
const [open, setOpen] =
|
|
5064
|
+
const [open, setOpen] = React80__namespace.useState(false);
|
|
4838
5065
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4839
5066
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4840
5067
|
Button,
|
|
@@ -4885,7 +5112,7 @@ function DatePickerWithPresets({
|
|
|
4885
5112
|
className,
|
|
4886
5113
|
disabled
|
|
4887
5114
|
}) {
|
|
4888
|
-
const [open, setOpen] =
|
|
5115
|
+
const [open, setOpen] = React80__namespace.useState(false);
|
|
4889
5116
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4890
5117
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4891
5118
|
Button,
|
|
@@ -5006,7 +5233,7 @@ function RequirementItem({ label, met }) {
|
|
|
5006
5233
|
)
|
|
5007
5234
|
] });
|
|
5008
5235
|
}
|
|
5009
|
-
var InputCaption =
|
|
5236
|
+
var InputCaption = React80__namespace.forwardRef(
|
|
5010
5237
|
(_a, ref) => {
|
|
5011
5238
|
var _b = _a, {
|
|
5012
5239
|
variant = "default",
|
|
@@ -5097,9 +5324,9 @@ var InputCaption = React78__namespace.forwardRef(
|
|
|
5097
5324
|
className
|
|
5098
5325
|
)
|
|
5099
5326
|
}, props), {
|
|
5100
|
-
children:
|
|
5101
|
-
if (!
|
|
5102
|
-
return
|
|
5327
|
+
children: React80__namespace.Children.map(children, (child) => {
|
|
5328
|
+
if (!React80__namespace.isValidElement(child)) return child;
|
|
5329
|
+
return React80__namespace.cloneElement(child, {
|
|
5103
5330
|
className: cn(
|
|
5104
5331
|
"flex-1",
|
|
5105
5332
|
child.props.className
|
|
@@ -5375,38 +5602,38 @@ function DatePickerInput({
|
|
|
5375
5602
|
disabled = false,
|
|
5376
5603
|
className
|
|
5377
5604
|
}) {
|
|
5378
|
-
const [calendarOpen, setCalendarOpen] =
|
|
5605
|
+
const [calendarOpen, setCalendarOpen] = React80__namespace.useState(false);
|
|
5379
5606
|
const hasError = !!error;
|
|
5380
5607
|
const helperText = hasError ? error : caption;
|
|
5381
5608
|
const singleSegments = dateToSegments(date);
|
|
5382
|
-
const [singleDay, setSingleDay] =
|
|
5383
|
-
const [singleMonth, setSingleMonth] =
|
|
5384
|
-
const [singleYear, setSingleYear] =
|
|
5609
|
+
const [singleDay, setSingleDay] = React80__namespace.useState(singleSegments.day);
|
|
5610
|
+
const [singleMonth, setSingleMonth] = React80__namespace.useState(singleSegments.month);
|
|
5611
|
+
const [singleYear, setSingleYear] = React80__namespace.useState(singleSegments.year);
|
|
5385
5612
|
const startSegments = dateToSegments(dateRange == null ? void 0 : dateRange.from);
|
|
5386
5613
|
const endSegments = dateToSegments(dateRange == null ? void 0 : dateRange.to);
|
|
5387
|
-
const [startDay, setStartDay] =
|
|
5388
|
-
const [startMonth, setStartMonth] =
|
|
5389
|
-
const [startYear, setStartYear] =
|
|
5390
|
-
const [endDay, setEndDay] =
|
|
5391
|
-
const [endMonth, setEndMonth] =
|
|
5392
|
-
const [endYear, setEndYear] =
|
|
5393
|
-
const singleDayRef =
|
|
5394
|
-
const singleMonthRef =
|
|
5395
|
-
const singleYearRef =
|
|
5396
|
-
const startDayRef =
|
|
5397
|
-
const startMonthRef =
|
|
5398
|
-
const startYearRef =
|
|
5399
|
-
const endDayRef =
|
|
5400
|
-
const endMonthRef =
|
|
5401
|
-
const endYearRef =
|
|
5402
|
-
const calendarIconRef =
|
|
5403
|
-
|
|
5614
|
+
const [startDay, setStartDay] = React80__namespace.useState(startSegments.day);
|
|
5615
|
+
const [startMonth, setStartMonth] = React80__namespace.useState(startSegments.month);
|
|
5616
|
+
const [startYear, setStartYear] = React80__namespace.useState(startSegments.year);
|
|
5617
|
+
const [endDay, setEndDay] = React80__namespace.useState(endSegments.day);
|
|
5618
|
+
const [endMonth, setEndMonth] = React80__namespace.useState(endSegments.month);
|
|
5619
|
+
const [endYear, setEndYear] = React80__namespace.useState(endSegments.year);
|
|
5620
|
+
const singleDayRef = React80__namespace.useRef(null);
|
|
5621
|
+
const singleMonthRef = React80__namespace.useRef(null);
|
|
5622
|
+
const singleYearRef = React80__namespace.useRef(null);
|
|
5623
|
+
const startDayRef = React80__namespace.useRef(null);
|
|
5624
|
+
const startMonthRef = React80__namespace.useRef(null);
|
|
5625
|
+
const startYearRef = React80__namespace.useRef(null);
|
|
5626
|
+
const endDayRef = React80__namespace.useRef(null);
|
|
5627
|
+
const endMonthRef = React80__namespace.useRef(null);
|
|
5628
|
+
const endYearRef = React80__namespace.useRef(null);
|
|
5629
|
+
const calendarIconRef = React80__namespace.useRef(null);
|
|
5630
|
+
React80__namespace.useEffect(() => {
|
|
5404
5631
|
const s = dateToSegments(date);
|
|
5405
5632
|
setSingleDay(s.day);
|
|
5406
5633
|
setSingleMonth(s.month);
|
|
5407
5634
|
setSingleYear(s.year);
|
|
5408
5635
|
}, [date]);
|
|
5409
|
-
|
|
5636
|
+
React80__namespace.useEffect(() => {
|
|
5410
5637
|
const s = dateToSegments(dateRange == null ? void 0 : dateRange.from);
|
|
5411
5638
|
setStartDay(s.day);
|
|
5412
5639
|
setStartMonth(s.month);
|
|
@@ -5416,7 +5643,7 @@ function DatePickerInput({
|
|
|
5416
5643
|
setEndMonth(e.month);
|
|
5417
5644
|
setEndYear(e.year);
|
|
5418
5645
|
}, [dateRange]);
|
|
5419
|
-
const handleSingleSegmentChange =
|
|
5646
|
+
const handleSingleSegmentChange = React80__namespace.useCallback(
|
|
5420
5647
|
(day, month, year) => {
|
|
5421
5648
|
const d = segmentsToDate(day, month, year);
|
|
5422
5649
|
if (day.length === 2 && month.length === 2 && year.length === 4) {
|
|
@@ -5427,7 +5654,7 @@ function DatePickerInput({
|
|
|
5427
5654
|
},
|
|
5428
5655
|
[onDateChange]
|
|
5429
5656
|
);
|
|
5430
|
-
const handleRangeSegmentChange =
|
|
5657
|
+
const handleRangeSegmentChange = React80__namespace.useCallback(
|
|
5431
5658
|
(sd, sm, sy, ed, em, ey) => {
|
|
5432
5659
|
const from = segmentsToDate(sd, sm, sy);
|
|
5433
5660
|
const to = segmentsToDate(ed, em, ey);
|
|
@@ -5502,7 +5729,7 @@ function DatePickerInput({
|
|
|
5502
5729
|
setCalendarOpen(false);
|
|
5503
5730
|
}
|
|
5504
5731
|
};
|
|
5505
|
-
const inputId =
|
|
5732
|
+
const inputId = React80__namespace.useId();
|
|
5506
5733
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex w-full flex-col gap-2", className), children: [
|
|
5507
5734
|
label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, children: label }),
|
|
5508
5735
|
/* @__PURE__ */ jsxRuntime.jsxs(Popover, { open: calendarOpen, onOpenChange: setCalendarOpen, children: [
|
|
@@ -5688,7 +5915,7 @@ var lineVariants = classVarianceAuthority.cva("h-px min-w-0 flex-1 border-t bord
|
|
|
5688
5915
|
lineStyle: "solid"
|
|
5689
5916
|
}
|
|
5690
5917
|
});
|
|
5691
|
-
var Divider =
|
|
5918
|
+
var Divider = React80__namespace.forwardRef(
|
|
5692
5919
|
(_a, ref) => {
|
|
5693
5920
|
var _b = _a, {
|
|
5694
5921
|
className,
|
|
@@ -5763,7 +5990,7 @@ var Divider = React78__namespace.forwardRef(
|
|
|
5763
5990
|
}
|
|
5764
5991
|
);
|
|
5765
5992
|
Divider.displayName = "Divider";
|
|
5766
|
-
var MenuSearchInput =
|
|
5993
|
+
var MenuSearchInput = React80__namespace.forwardRef(
|
|
5767
5994
|
(_a, ref) => {
|
|
5768
5995
|
var _b = _a, {
|
|
5769
5996
|
className,
|
|
@@ -5785,15 +6012,15 @@ var MenuSearchInput = React78__namespace.forwardRef(
|
|
|
5785
6012
|
"id"
|
|
5786
6013
|
]);
|
|
5787
6014
|
var _a2, _b2;
|
|
5788
|
-
const internalRef =
|
|
6015
|
+
const internalRef = React80__namespace.useRef(null);
|
|
5789
6016
|
const inputRef = ref || internalRef;
|
|
5790
|
-
const [internalValue, setInternalValue] =
|
|
6017
|
+
const [internalValue, setInternalValue] = React80__namespace.useState(
|
|
5791
6018
|
defaultValue || ""
|
|
5792
6019
|
);
|
|
5793
6020
|
const isControlled = value !== void 0;
|
|
5794
6021
|
const currentValue = isControlled ? String(value) : internalValue;
|
|
5795
6022
|
const hasValue = currentValue.length > 0;
|
|
5796
|
-
const generatedId =
|
|
6023
|
+
const generatedId = React80__namespace.useId();
|
|
5797
6024
|
const inputId = id || generatedId;
|
|
5798
6025
|
const handleChange = (e) => {
|
|
5799
6026
|
var _a3;
|
|
@@ -5812,7 +6039,7 @@ var MenuSearchInput = React78__namespace.forwardRef(
|
|
|
5812
6039
|
(_a3 = inputRef.current) == null ? void 0 : _a3.focus();
|
|
5813
6040
|
}
|
|
5814
6041
|
};
|
|
5815
|
-
const [isFocused, setIsFocused] =
|
|
6042
|
+
const [isFocused, setIsFocused] = React80__namespace.useState(false);
|
|
5816
6043
|
const showShortcut = !!shortcutKey && !hasValue && !isFocused && !disabled;
|
|
5817
6044
|
const handleFocus = (e) => {
|
|
5818
6045
|
var _a3;
|
|
@@ -5926,7 +6153,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
5926
6153
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
5927
6154
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
5928
6155
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
5929
|
-
var DropdownMenuSubTrigger =
|
|
6156
|
+
var DropdownMenuSubTrigger = React80__namespace.forwardRef((_a, ref) => {
|
|
5930
6157
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
5931
6158
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5932
6159
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
@@ -5950,7 +6177,7 @@ var DropdownMenuSubTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5950
6177
|
);
|
|
5951
6178
|
});
|
|
5952
6179
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
5953
|
-
var DropdownMenuSubContent =
|
|
6180
|
+
var DropdownMenuSubContent = React80__namespace.forwardRef((_a, ref) => {
|
|
5954
6181
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5955
6182
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5956
6183
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
@@ -5965,7 +6192,7 @@ var DropdownMenuSubContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5965
6192
|
);
|
|
5966
6193
|
});
|
|
5967
6194
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
5968
|
-
var DropdownMenuContent =
|
|
6195
|
+
var DropdownMenuContent = React80__namespace.forwardRef((_a, ref) => {
|
|
5969
6196
|
var _b = _a, { className, sideOffset = 4, search, searchValue, onSearchChange, onSearchClear, searchPlaceholder = "Search", children } = _b, props = __objRest(_b, ["className", "sideOffset", "search", "searchValue", "onSearchChange", "onSearchClear", "searchPlaceholder", "children"]);
|
|
5970
6197
|
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5971
6198
|
DropdownMenuPrimitive__namespace.Content,
|
|
@@ -6003,7 +6230,7 @@ var DropdownMenuContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
6003
6230
|
) });
|
|
6004
6231
|
});
|
|
6005
6232
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
6006
|
-
var DropdownMenuItem =
|
|
6233
|
+
var DropdownMenuItem = React80__namespace.forwardRef((_a, ref) => {
|
|
6007
6234
|
var _b = _a, { className, inset, variant = "default" } = _b, props = __objRest(_b, ["className", "inset", "variant"]);
|
|
6008
6235
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6009
6236
|
DropdownMenuPrimitive__namespace.Item,
|
|
@@ -6024,7 +6251,7 @@ var DropdownMenuItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
6024
6251
|
);
|
|
6025
6252
|
});
|
|
6026
6253
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
6027
|
-
var DropdownMenuCheckboxItem =
|
|
6254
|
+
var DropdownMenuCheckboxItem = React80__namespace.forwardRef((_a, ref) => {
|
|
6028
6255
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
6029
6256
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6030
6257
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
@@ -6046,7 +6273,7 @@ var DropdownMenuCheckboxItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
6046
6273
|
);
|
|
6047
6274
|
});
|
|
6048
6275
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
6049
|
-
var DropdownMenuRadioItem =
|
|
6276
|
+
var DropdownMenuRadioItem = React80__namespace.forwardRef((_a, ref) => {
|
|
6050
6277
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
6051
6278
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6052
6279
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
@@ -6067,7 +6294,7 @@ var DropdownMenuRadioItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
6067
6294
|
);
|
|
6068
6295
|
});
|
|
6069
6296
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
6070
|
-
var DropdownMenuLabel =
|
|
6297
|
+
var DropdownMenuLabel = React80__namespace.forwardRef((_a, ref) => {
|
|
6071
6298
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
6072
6299
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6073
6300
|
DropdownMenuPrimitive__namespace.Label,
|
|
@@ -6082,7 +6309,7 @@ var DropdownMenuLabel = React78__namespace.forwardRef((_a, ref) => {
|
|
|
6082
6309
|
);
|
|
6083
6310
|
});
|
|
6084
6311
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
6085
|
-
var DropdownMenuSeparator =
|
|
6312
|
+
var DropdownMenuSeparator = React80__namespace.forwardRef((_a, ref) => {
|
|
6086
6313
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6087
6314
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6088
6315
|
DropdownMenuPrimitive__namespace.Separator,
|
|
@@ -6111,7 +6338,7 @@ var DropdownMenuShortcut = (_a) => {
|
|
|
6111
6338
|
);
|
|
6112
6339
|
};
|
|
6113
6340
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
6114
|
-
var DropdownMenuCaption =
|
|
6341
|
+
var DropdownMenuCaption = React80__namespace.forwardRef((_a, ref) => {
|
|
6115
6342
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6116
6343
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6117
6344
|
"p",
|
|
@@ -6126,7 +6353,7 @@ var DropdownMenuCaption = React78__namespace.forwardRef((_a, ref) => {
|
|
|
6126
6353
|
);
|
|
6127
6354
|
});
|
|
6128
6355
|
DropdownMenuCaption.displayName = "DropdownMenuCaption";
|
|
6129
|
-
var DropdownMenuUserbar =
|
|
6356
|
+
var DropdownMenuUserbar = React80__namespace.forwardRef((_a, ref) => {
|
|
6130
6357
|
var _b = _a, { className, name, email, avatar, badge } = _b, props = __objRest(_b, ["className", "name", "email", "avatar", "badge"]);
|
|
6131
6358
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6132
6359
|
"div",
|
|
@@ -6151,7 +6378,7 @@ var DropdownMenuUserbar = React78__namespace.forwardRef((_a, ref) => {
|
|
|
6151
6378
|
);
|
|
6152
6379
|
});
|
|
6153
6380
|
DropdownMenuUserbar.displayName = "DropdownMenuUserbar";
|
|
6154
|
-
var DropdownMenuLargeItem =
|
|
6381
|
+
var DropdownMenuLargeItem = React80__namespace.forwardRef((_a, ref) => {
|
|
6155
6382
|
var _b = _a, { className, label, caption, icon, badge, tailIcon } = _b, props = __objRest(_b, ["className", "label", "caption", "icon", "badge", "tailIcon"]);
|
|
6156
6383
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6157
6384
|
DropdownMenuPrimitive__namespace.Item,
|
|
@@ -6192,7 +6419,7 @@ var emptyStateVariants = classVarianceAuthority.cva(
|
|
|
6192
6419
|
}
|
|
6193
6420
|
}
|
|
6194
6421
|
);
|
|
6195
|
-
var EmptyState =
|
|
6422
|
+
var EmptyState = React80__namespace.forwardRef(
|
|
6196
6423
|
(_a, ref) => {
|
|
6197
6424
|
var _b = _a, {
|
|
6198
6425
|
className,
|
|
@@ -6258,7 +6485,7 @@ function EmptyStateText({
|
|
|
6258
6485
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs leading-4 text-sui-text-muted w-full", children: description })
|
|
6259
6486
|
] });
|
|
6260
6487
|
}
|
|
6261
|
-
var FileUploadArea =
|
|
6488
|
+
var FileUploadArea = React80__namespace.forwardRef(
|
|
6262
6489
|
(_a, ref) => {
|
|
6263
6490
|
var _b = _a, {
|
|
6264
6491
|
className,
|
|
@@ -6283,8 +6510,8 @@ var FileUploadArea = React78__namespace.forwardRef(
|
|
|
6283
6510
|
"onDrop",
|
|
6284
6511
|
"onDragOver"
|
|
6285
6512
|
]);
|
|
6286
|
-
const [isDragOver, setIsDragOver] =
|
|
6287
|
-
const handleDragOver =
|
|
6513
|
+
const [isDragOver, setIsDragOver] = React80__namespace.useState(false);
|
|
6514
|
+
const handleDragOver = React80__namespace.useCallback(
|
|
6288
6515
|
(e) => {
|
|
6289
6516
|
if (disabled) return;
|
|
6290
6517
|
e.preventDefault();
|
|
@@ -6293,10 +6520,10 @@ var FileUploadArea = React78__namespace.forwardRef(
|
|
|
6293
6520
|
},
|
|
6294
6521
|
[disabled, onDragOver]
|
|
6295
6522
|
);
|
|
6296
|
-
const handleDragLeave =
|
|
6523
|
+
const handleDragLeave = React80__namespace.useCallback(() => {
|
|
6297
6524
|
setIsDragOver(false);
|
|
6298
6525
|
}, []);
|
|
6299
|
-
const handleDrop =
|
|
6526
|
+
const handleDrop = React80__namespace.useCallback(
|
|
6300
6527
|
(e) => {
|
|
6301
6528
|
if (disabled) return;
|
|
6302
6529
|
e.preventDefault();
|
|
@@ -6305,11 +6532,11 @@ var FileUploadArea = React78__namespace.forwardRef(
|
|
|
6305
6532
|
},
|
|
6306
6533
|
[disabled, onDrop]
|
|
6307
6534
|
);
|
|
6308
|
-
const handleClick =
|
|
6535
|
+
const handleClick = React80__namespace.useCallback(() => {
|
|
6309
6536
|
if (disabled) return;
|
|
6310
6537
|
onClick == null ? void 0 : onClick();
|
|
6311
6538
|
}, [disabled, onClick]);
|
|
6312
|
-
const handleKeyDown =
|
|
6539
|
+
const handleKeyDown = React80__namespace.useCallback(
|
|
6313
6540
|
(e) => {
|
|
6314
6541
|
if (disabled) return;
|
|
6315
6542
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -6385,7 +6612,7 @@ var FileUploadArea = React78__namespace.forwardRef(
|
|
|
6385
6612
|
"span",
|
|
6386
6613
|
{
|
|
6387
6614
|
className: cn(
|
|
6388
|
-
disabled ? "text-sui-text-hint" : "text-
|
|
6615
|
+
disabled ? "text-sui-text-hint" : "text-sui-text-informative"
|
|
6389
6616
|
),
|
|
6390
6617
|
children: linkText
|
|
6391
6618
|
}
|
|
@@ -6425,7 +6652,7 @@ var progressBarVariants = classVarianceAuthority.cva(
|
|
|
6425
6652
|
}
|
|
6426
6653
|
);
|
|
6427
6654
|
var SEGMENT_COUNT = 10;
|
|
6428
|
-
var ProgressBar =
|
|
6655
|
+
var ProgressBar = React80__namespace.forwardRef(
|
|
6429
6656
|
(_a, ref) => {
|
|
6430
6657
|
var _b = _a, {
|
|
6431
6658
|
className,
|
|
@@ -6447,7 +6674,7 @@ var ProgressBar = React78__namespace.forwardRef(
|
|
|
6447
6674
|
const clampedValue = Math.min(100, Math.max(0, value != null ? value : 0));
|
|
6448
6675
|
const displayPercentage = `${Math.round(clampedValue)}%`;
|
|
6449
6676
|
const filledSegments = Math.round(clampedValue / 100 * SEGMENT_COUNT);
|
|
6450
|
-
const generatedId =
|
|
6677
|
+
const generatedId = React80__namespace.useId();
|
|
6451
6678
|
const labelId = `${generatedId}-label`;
|
|
6452
6679
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6453
6680
|
"div",
|
|
@@ -6485,7 +6712,7 @@ var ProgressBar = React78__namespace.forwardRef(
|
|
|
6485
6712
|
{
|
|
6486
6713
|
className: cn(
|
|
6487
6714
|
"h-1 min-h-px min-w-px flex-[1_0_0] rounded-full",
|
|
6488
|
-
i < filledSegments ? "bg-
|
|
6715
|
+
i < filledSegments ? "bg-informative" : "bg-sui-bg-basic-gray-alpha-10"
|
|
6489
6716
|
)
|
|
6490
6717
|
},
|
|
6491
6718
|
i
|
|
@@ -6505,7 +6732,7 @@ var ProgressBar = React78__namespace.forwardRef(
|
|
|
6505
6732
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6506
6733
|
ProgressPrimitive2__namespace.Indicator,
|
|
6507
6734
|
{
|
|
6508
|
-
className: "h-full rounded-full bg-
|
|
6735
|
+
className: "h-full rounded-full bg-informative transition-all duration-300 ease-out",
|
|
6509
6736
|
style: { width: `${clampedValue}%` }
|
|
6510
6737
|
}
|
|
6511
6738
|
)
|
|
@@ -6533,7 +6760,7 @@ var statusLabel = {
|
|
|
6533
6760
|
uploading: "Uploading...",
|
|
6534
6761
|
failed: "Error"
|
|
6535
6762
|
};
|
|
6536
|
-
var FileUploadCard =
|
|
6763
|
+
var FileUploadCard = React80__namespace.forwardRef(
|
|
6537
6764
|
(_a, ref) => {
|
|
6538
6765
|
var _b = _a, {
|
|
6539
6766
|
className,
|
|
@@ -6745,7 +6972,7 @@ var lineColorMap = {
|
|
|
6745
6972
|
warning: "bg-sui-bg-basic-orange-accent",
|
|
6746
6973
|
error: "bg-sui-bg-basic-red-accent"
|
|
6747
6974
|
};
|
|
6748
|
-
var InlineTips =
|
|
6975
|
+
var InlineTips = React80__namespace.forwardRef(
|
|
6749
6976
|
(_a, ref) => {
|
|
6750
6977
|
var _b = _a, {
|
|
6751
6978
|
className,
|
|
@@ -6876,7 +7103,7 @@ function validateFile(file, accept, maxSize) {
|
|
|
6876
7103
|
}
|
|
6877
7104
|
return null;
|
|
6878
7105
|
}
|
|
6879
|
-
var FileUpload =
|
|
7106
|
+
var FileUpload = React80__namespace.forwardRef(
|
|
6880
7107
|
({
|
|
6881
7108
|
files = [],
|
|
6882
7109
|
onFilesAdded,
|
|
@@ -6897,16 +7124,16 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6897
7124
|
icon,
|
|
6898
7125
|
className
|
|
6899
7126
|
}, ref) => {
|
|
6900
|
-
const inputRef =
|
|
6901
|
-
const [errors, setErrors] =
|
|
6902
|
-
const [thumbnails, setThumbnails] =
|
|
7127
|
+
const inputRef = React80__namespace.useRef(null);
|
|
7128
|
+
const [errors, setErrors] = React80__namespace.useState([]);
|
|
7129
|
+
const [thumbnails, setThumbnails] = React80__namespace.useState(
|
|
6903
7130
|
{}
|
|
6904
7131
|
);
|
|
6905
|
-
const thumbnailsRef =
|
|
6906
|
-
|
|
7132
|
+
const thumbnailsRef = React80__namespace.useRef(thumbnails);
|
|
7133
|
+
React80__namespace.useEffect(() => {
|
|
6907
7134
|
thumbnailsRef.current = thumbnails;
|
|
6908
7135
|
}, [thumbnails]);
|
|
6909
|
-
|
|
7136
|
+
React80__namespace.useEffect(() => {
|
|
6910
7137
|
if (!autoPreview) return;
|
|
6911
7138
|
setThumbnails((prev) => {
|
|
6912
7139
|
let next = prev;
|
|
@@ -6937,7 +7164,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6937
7164
|
return changed ? next : prev;
|
|
6938
7165
|
});
|
|
6939
7166
|
}, [files, autoPreview]);
|
|
6940
|
-
|
|
7167
|
+
React80__namespace.useEffect(() => {
|
|
6941
7168
|
return () => {
|
|
6942
7169
|
for (const url of Object.values(thumbnailsRef.current)) {
|
|
6943
7170
|
URL.revokeObjectURL(url);
|
|
@@ -6945,7 +7172,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6945
7172
|
};
|
|
6946
7173
|
}, []);
|
|
6947
7174
|
const resolvedDescription = description != null ? description : generateDescription(accept, maxSize, maxFiles);
|
|
6948
|
-
const processFiles =
|
|
7175
|
+
const processFiles = React80__namespace.useCallback(
|
|
6949
7176
|
(fileList) => {
|
|
6950
7177
|
const newFiles = Array.from(fileList);
|
|
6951
7178
|
const validationErrors = [];
|
|
@@ -6973,11 +7200,11 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6973
7200
|
},
|
|
6974
7201
|
[files.length, maxFiles, accept, maxSize, onFilesAdded]
|
|
6975
7202
|
);
|
|
6976
|
-
const handleClick =
|
|
7203
|
+
const handleClick = React80__namespace.useCallback(() => {
|
|
6977
7204
|
var _a;
|
|
6978
7205
|
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
6979
7206
|
}, []);
|
|
6980
|
-
const handleInputChange =
|
|
7207
|
+
const handleInputChange = React80__namespace.useCallback(
|
|
6981
7208
|
(e) => {
|
|
6982
7209
|
if (e.target.files && e.target.files.length > 0) {
|
|
6983
7210
|
processFiles(e.target.files);
|
|
@@ -6986,7 +7213,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6986
7213
|
},
|
|
6987
7214
|
[processFiles]
|
|
6988
7215
|
);
|
|
6989
|
-
const handleDrop =
|
|
7216
|
+
const handleDrop = React80__namespace.useCallback(
|
|
6990
7217
|
(e) => {
|
|
6991
7218
|
if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
|
|
6992
7219
|
processFiles(e.dataTransfer.files);
|
|
@@ -6994,10 +7221,10 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6994
7221
|
},
|
|
6995
7222
|
[processFiles]
|
|
6996
7223
|
);
|
|
6997
|
-
const dismissError =
|
|
7224
|
+
const dismissError = React80__namespace.useCallback((index) => {
|
|
6998
7225
|
setErrors((prev) => prev.filter((_, i) => i !== index));
|
|
6999
7226
|
}, []);
|
|
7000
|
-
const handlePaste =
|
|
7227
|
+
const handlePaste = React80__namespace.useCallback(
|
|
7001
7228
|
(e) => {
|
|
7002
7229
|
var _a;
|
|
7003
7230
|
if (disabled || !pasteEnabled) return;
|
|
@@ -7018,7 +7245,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
7018
7245
|
},
|
|
7019
7246
|
[disabled, pasteEnabled, processFiles]
|
|
7020
7247
|
);
|
|
7021
|
-
const handleCancel =
|
|
7248
|
+
const handleCancel = React80__namespace.useCallback(
|
|
7022
7249
|
(id) => {
|
|
7023
7250
|
const uploadFile = files.find((f) => f.id === id);
|
|
7024
7251
|
if (uploadFile == null ? void 0 : uploadFile.abortController) {
|
|
@@ -7135,7 +7362,7 @@ var ariaSortMap = {
|
|
|
7135
7362
|
desc: "descending",
|
|
7136
7363
|
none: "none"
|
|
7137
7364
|
};
|
|
7138
|
-
var GridTableHeaderItem =
|
|
7365
|
+
var GridTableHeaderItem = React80__namespace.forwardRef(
|
|
7139
7366
|
(_a, ref) => {
|
|
7140
7367
|
var _b = _a, {
|
|
7141
7368
|
className,
|
|
@@ -7237,7 +7464,7 @@ var gridTableRowVariants = classVarianceAuthority.cva(
|
|
|
7237
7464
|
}
|
|
7238
7465
|
}
|
|
7239
7466
|
);
|
|
7240
|
-
var GridTableRow =
|
|
7467
|
+
var GridTableRow = React80__namespace.forwardRef(
|
|
7241
7468
|
(_a, ref) => {
|
|
7242
7469
|
var _b = _a, { className, variant = "default", children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
|
|
7243
7470
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7253,7 +7480,7 @@ var GridTableRow = React78__namespace.forwardRef(
|
|
|
7253
7480
|
}
|
|
7254
7481
|
);
|
|
7255
7482
|
GridTableRow.displayName = "GridTableRow";
|
|
7256
|
-
var GridTableCell =
|
|
7483
|
+
var GridTableCell = React80__namespace.forwardRef(
|
|
7257
7484
|
(_a, ref) => {
|
|
7258
7485
|
var _b = _a, { className, bordered = true, children } = _b, props = __objRest(_b, ["className", "bordered", "children"]);
|
|
7259
7486
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7297,7 +7524,7 @@ var gridTableSlotItemVariants = classVarianceAuthority.cva(
|
|
|
7297
7524
|
}
|
|
7298
7525
|
}
|
|
7299
7526
|
);
|
|
7300
|
-
var GridTableSlotItem =
|
|
7527
|
+
var GridTableSlotItem = React80__namespace.forwardRef(
|
|
7301
7528
|
(_a, ref) => {
|
|
7302
7529
|
var _b = _a, {
|
|
7303
7530
|
className,
|
|
@@ -7445,7 +7672,7 @@ var stepperNumberVariants = classVarianceAuthority.cva(
|
|
|
7445
7672
|
}
|
|
7446
7673
|
}
|
|
7447
7674
|
);
|
|
7448
|
-
var StepperNumber =
|
|
7675
|
+
var StepperNumber = React80__namespace.forwardRef(
|
|
7449
7676
|
(_a, ref) => {
|
|
7450
7677
|
var _b = _a, { className, size, color, number = "1" } = _b, props = __objRest(_b, ["className", "size", "color", "number"]);
|
|
7451
7678
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7484,7 +7711,7 @@ var stepperIconVariants = classVarianceAuthority.cva(
|
|
|
7484
7711
|
}
|
|
7485
7712
|
}
|
|
7486
7713
|
);
|
|
7487
|
-
var StepperIcon =
|
|
7714
|
+
var StepperIcon = React80__namespace.forwardRef(
|
|
7488
7715
|
(_a, ref) => {
|
|
7489
7716
|
var _b = _a, { className, variant = "dot-large", icon } = _b, props = __objRest(_b, ["className", "variant", "icon"]);
|
|
7490
7717
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7515,17 +7742,23 @@ var textBlockVariants = classVarianceAuthority.cva("flex w-full flex-col gap-1",
|
|
|
7515
7742
|
align: "left"
|
|
7516
7743
|
}
|
|
7517
7744
|
});
|
|
7518
|
-
var horizontalStepperItemVariants = classVarianceAuthority.cva(
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7745
|
+
var horizontalStepperItemVariants = classVarianceAuthority.cva(
|
|
7746
|
+
[
|
|
7747
|
+
"flex w-full flex-col gap-4",
|
|
7748
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default focus-visible:rounded-sm"
|
|
7749
|
+
].join(" "),
|
|
7750
|
+
{
|
|
7751
|
+
variants: {
|
|
7752
|
+
position: {
|
|
7753
|
+
top: "",
|
|
7754
|
+
bottom: ""
|
|
7755
|
+
}
|
|
7756
|
+
},
|
|
7757
|
+
defaultVariants: {
|
|
7758
|
+
position: "top"
|
|
7523
7759
|
}
|
|
7524
|
-
},
|
|
7525
|
-
defaultVariants: {
|
|
7526
|
-
position: "top"
|
|
7527
7760
|
}
|
|
7528
|
-
|
|
7761
|
+
);
|
|
7529
7762
|
function ConnectorLine({ success }) {
|
|
7530
7763
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7531
7764
|
"div",
|
|
@@ -7538,7 +7771,7 @@ function ConnectorLine({ success }) {
|
|
|
7538
7771
|
}
|
|
7539
7772
|
);
|
|
7540
7773
|
}
|
|
7541
|
-
var HorizontalStepperItem =
|
|
7774
|
+
var HorizontalStepperItem = React80__namespace.forwardRef(
|
|
7542
7775
|
(_a, ref) => {
|
|
7543
7776
|
var _b = _a, {
|
|
7544
7777
|
className,
|
|
@@ -7663,7 +7896,7 @@ var HorizontalStepperItem = React78__namespace.forwardRef(
|
|
|
7663
7896
|
}
|
|
7664
7897
|
);
|
|
7665
7898
|
HorizontalStepperItem.displayName = "HorizontalStepperItem";
|
|
7666
|
-
var HorizontalStepper =
|
|
7899
|
+
var HorizontalStepper = React80__namespace.forwardRef(
|
|
7667
7900
|
(_a, ref) => {
|
|
7668
7901
|
var _b = _a, {
|
|
7669
7902
|
className,
|
|
@@ -7738,7 +7971,7 @@ var HorizontalStepper = React78__namespace.forwardRef(
|
|
|
7738
7971
|
}
|
|
7739
7972
|
);
|
|
7740
7973
|
HorizontalStepper.displayName = "HorizontalStepper";
|
|
7741
|
-
var Input =
|
|
7974
|
+
var Input = React80__namespace.forwardRef(
|
|
7742
7975
|
(_a, ref) => {
|
|
7743
7976
|
var _b = _a, { className, type, spellCheck, autoComplete } = _b, props = __objRest(_b, ["className", "type", "spellCheck", "autoComplete"]);
|
|
7744
7977
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7831,7 +8064,7 @@ var inputButtonVariants = classVarianceAuthority.cva(
|
|
|
7831
8064
|
}
|
|
7832
8065
|
);
|
|
7833
8066
|
var iconOnlyHoverClasses = "[@media(hover:hover)]:hover:[&_i]:text-icon-default-subtle [@media(hover:hover)]:hover:[&_svg]:text-icon-default-subtle active:[&_i]:text-icon-default-subtle active:[&_svg]:text-icon-default-subtle";
|
|
7834
|
-
var InputButton =
|
|
8067
|
+
var InputButton = React80__namespace.forwardRef(
|
|
7835
8068
|
(_a, ref) => {
|
|
7836
8069
|
var _b = _a, {
|
|
7837
8070
|
className,
|
|
@@ -7963,7 +8196,7 @@ var InputButton = React78__namespace.forwardRef(
|
|
|
7963
8196
|
}
|
|
7964
8197
|
);
|
|
7965
8198
|
InputButton.displayName = "InputButton";
|
|
7966
|
-
var InputStepper =
|
|
8199
|
+
var InputStepper = React80__namespace.forwardRef(
|
|
7967
8200
|
({ onIncrement, onDecrement, disabled, className }, ref) => {
|
|
7968
8201
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7969
8202
|
"div",
|
|
@@ -8020,7 +8253,7 @@ var InputStepper = React78__namespace.forwardRef(
|
|
|
8020
8253
|
}
|
|
8021
8254
|
);
|
|
8022
8255
|
InputStepper.displayName = "InputStepper";
|
|
8023
|
-
var NavigationMenu =
|
|
8256
|
+
var NavigationMenu = React80__namespace.forwardRef((_a, ref) => {
|
|
8024
8257
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
8025
8258
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8026
8259
|
NavigationMenuPrimitive__namespace.Root,
|
|
@@ -8039,7 +8272,7 @@ var NavigationMenu = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8039
8272
|
);
|
|
8040
8273
|
});
|
|
8041
8274
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
8042
|
-
var NavigationMenuList =
|
|
8275
|
+
var NavigationMenuList = React80__namespace.forwardRef((_a, ref) => {
|
|
8043
8276
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8044
8277
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8045
8278
|
NavigationMenuPrimitive__namespace.List,
|
|
@@ -8057,7 +8290,7 @@ var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
|
8057
8290
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
8058
8291
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-sm font-medium text-sui-text-default transition-colors [@media(hover:hover)]:hover:bg-sui-bg-state-ghost-hover [@media(hover:hover)]:hover:text-sui-text-default focus:bg-sui-bg-state-ghost-hover focus:text-sui-text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default disabled:text-sui-text-hint disabled:pointer-events-none data-[state=open]:text-sui-text-default data-[state=open]:bg-sui-bg-state-ghost-hover"
|
|
8059
8292
|
);
|
|
8060
|
-
var NavigationMenuTrigger =
|
|
8293
|
+
var NavigationMenuTrigger = React80__namespace.forwardRef((_a, ref) => {
|
|
8061
8294
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
8062
8295
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8063
8296
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
@@ -8080,7 +8313,7 @@ var NavigationMenuTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8080
8313
|
);
|
|
8081
8314
|
});
|
|
8082
8315
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
8083
|
-
var NavigationMenuContent =
|
|
8316
|
+
var NavigationMenuContent = React80__namespace.forwardRef((_a, ref) => {
|
|
8084
8317
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8085
8318
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8086
8319
|
NavigationMenuPrimitive__namespace.Content,
|
|
@@ -8095,7 +8328,7 @@ var NavigationMenuContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8095
8328
|
});
|
|
8096
8329
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
8097
8330
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
8098
|
-
var NavigationMenuViewport =
|
|
8331
|
+
var NavigationMenuViewport = React80__namespace.forwardRef((_a, ref) => {
|
|
8099
8332
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8100
8333
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8101
8334
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
@@ -8109,7 +8342,7 @@ var NavigationMenuViewport = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8109
8342
|
) });
|
|
8110
8343
|
});
|
|
8111
8344
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
8112
|
-
var NavigationMenuIndicator =
|
|
8345
|
+
var NavigationMenuIndicator = React80__namespace.forwardRef((_a, ref) => {
|
|
8113
8346
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8114
8347
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8115
8348
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
@@ -8171,16 +8404,16 @@ var pageItemVariants = classVarianceAuthority.cva(
|
|
|
8171
8404
|
);
|
|
8172
8405
|
var activeDefaultClasses = [
|
|
8173
8406
|
"bg-sui-bg-state-ghost",
|
|
8174
|
-
//
|
|
8175
|
-
"text-sui-
|
|
8176
|
-
"border border-sui-
|
|
8177
|
-
"[@media(hover:hover)]:hover:bg-sui-bg-state-ghost [@media(hover:hover)]:hover:text-sui-
|
|
8407
|
+
// Semantic accent tokens — shift blue → orange in Neutral Violet, matching the theme's accent color
|
|
8408
|
+
"text-sui-text-informative",
|
|
8409
|
+
"border border-sui-border-informative",
|
|
8410
|
+
"[@media(hover:hover)]:hover:bg-sui-bg-state-ghost [@media(hover:hover)]:hover:text-sui-text-informative"
|
|
8178
8411
|
].join(" ");
|
|
8179
8412
|
var activeDotClasses = [
|
|
8180
|
-
"bg-
|
|
8181
|
-
"[@media(hover:hover)]:hover:bg-
|
|
8413
|
+
"bg-informative",
|
|
8414
|
+
"[@media(hover:hover)]:hover:bg-informative"
|
|
8182
8415
|
].join(" ");
|
|
8183
|
-
var PageItem =
|
|
8416
|
+
var PageItem = React80__namespace.forwardRef(
|
|
8184
8417
|
(_a, ref) => {
|
|
8185
8418
|
var _b = _a, { className, variant = "default", active = false, label = "0", disabled, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "active", "label", "disabled", "asChild"]);
|
|
8186
8419
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
@@ -8215,7 +8448,7 @@ var Pagination = (_a) => {
|
|
|
8215
8448
|
);
|
|
8216
8449
|
};
|
|
8217
8450
|
Pagination.displayName = "Pagination";
|
|
8218
|
-
var PaginationContent =
|
|
8451
|
+
var PaginationContent = React80__namespace.forwardRef((_a, ref) => {
|
|
8219
8452
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8220
8453
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8221
8454
|
"ul",
|
|
@@ -8226,7 +8459,7 @@ var PaginationContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8226
8459
|
);
|
|
8227
8460
|
});
|
|
8228
8461
|
PaginationContent.displayName = "PaginationContent";
|
|
8229
|
-
var PaginationItem =
|
|
8462
|
+
var PaginationItem = React80__namespace.forwardRef((_a, ref) => {
|
|
8230
8463
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8231
8464
|
return /* @__PURE__ */ jsxRuntime.jsx("li", __spreadValues({ ref, className: cn("", className) }, props));
|
|
8232
8465
|
});
|
|
@@ -8347,7 +8580,7 @@ function getPageRange(currentPage, totalPages, maxVisible) {
|
|
|
8347
8580
|
}
|
|
8348
8581
|
return pages;
|
|
8349
8582
|
}
|
|
8350
|
-
var Paginator =
|
|
8583
|
+
var Paginator = React80__namespace.forwardRef(
|
|
8351
8584
|
(_a, ref) => {
|
|
8352
8585
|
var _b = _a, {
|
|
8353
8586
|
className,
|
|
@@ -8527,7 +8760,236 @@ var Paginator = React78__namespace.forwardRef(
|
|
|
8527
8760
|
}
|
|
8528
8761
|
);
|
|
8529
8762
|
Paginator.displayName = "Paginator";
|
|
8530
|
-
var
|
|
8763
|
+
var CoverImage = ({
|
|
8764
|
+
src,
|
|
8765
|
+
className,
|
|
8766
|
+
imageClassName
|
|
8767
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("relative overflow-clip", className), children: src ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8768
|
+
"img",
|
|
8769
|
+
{
|
|
8770
|
+
src,
|
|
8771
|
+
alt: "",
|
|
8772
|
+
className: cn("absolute inset-0 size-full object-cover", imageClassName)
|
|
8773
|
+
}
|
|
8774
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-sui-bg-muted" }) });
|
|
8775
|
+
var TitleRow = ({ title, price }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between font-medium text-md leading-6 text-sui-text-default", children: [
|
|
8776
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: title }),
|
|
8777
|
+
price && /* @__PURE__ */ jsxRuntime.jsx("span", { children: price })
|
|
8778
|
+
] });
|
|
8779
|
+
var DateRow = ({
|
|
8780
|
+
date,
|
|
8781
|
+
prefix = "Added"
|
|
8782
|
+
}) => date ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 text-sm font-normal leading-5 text-sui-text-muted", children: [
|
|
8783
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: prefix }),
|
|
8784
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: date })
|
|
8785
|
+
] }) : null;
|
|
8786
|
+
var TagList = ({ tags }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx(Badge, { size: "sm", children: tag }, tag)) });
|
|
8787
|
+
var ProductCard = React80__namespace.forwardRef(
|
|
8788
|
+
(_a, ref) => {
|
|
8789
|
+
var _b = _a, {
|
|
8790
|
+
className,
|
|
8791
|
+
variant = "minimal",
|
|
8792
|
+
title = "Product name",
|
|
8793
|
+
price,
|
|
8794
|
+
image,
|
|
8795
|
+
date,
|
|
8796
|
+
description,
|
|
8797
|
+
tags,
|
|
8798
|
+
author,
|
|
8799
|
+
rating,
|
|
8800
|
+
ctaLabel = "Add to cart",
|
|
8801
|
+
onCta,
|
|
8802
|
+
thumbnail
|
|
8803
|
+
} = _b, props = __objRest(_b, [
|
|
8804
|
+
"className",
|
|
8805
|
+
"variant",
|
|
8806
|
+
"title",
|
|
8807
|
+
"price",
|
|
8808
|
+
"image",
|
|
8809
|
+
"date",
|
|
8810
|
+
"description",
|
|
8811
|
+
"tags",
|
|
8812
|
+
"author",
|
|
8813
|
+
"rating",
|
|
8814
|
+
"ctaLabel",
|
|
8815
|
+
"onCta",
|
|
8816
|
+
"thumbnail"
|
|
8817
|
+
]);
|
|
8818
|
+
if (variant === "minimal") {
|
|
8819
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8820
|
+
"div",
|
|
8821
|
+
__spreadProps(__spreadValues({
|
|
8822
|
+
ref,
|
|
8823
|
+
className: cn("flex flex-col gap-3", className)
|
|
8824
|
+
}, props), {
|
|
8825
|
+
children: [
|
|
8826
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-lg border border-sui-border-darker shadow-card", children: [
|
|
8827
|
+
/* @__PURE__ */ jsxRuntime.jsx(CoverImage, { src: image, className: "absolute inset-0", imageClassName: "rounded-lg" }),
|
|
8828
|
+
rating && rating > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute right-[9px] top-[9px] flex items-center gap-0 overflow-clip rounded-md border border-sui-border-default bg-sui-bg-badge-default px-1 py-1 backdrop-blur-[2px]", children: [
|
|
8829
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-star-fill text-xs leading-none text-icon-default-muted", "aria-hidden": "true" }),
|
|
8830
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-0.5 pr-1 text-xs font-medium leading-4 text-sui-text-subtle", children: rating })
|
|
8831
|
+
] }) : null,
|
|
8832
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
|
|
8833
|
+
] }),
|
|
8834
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
8835
|
+
/* @__PURE__ */ jsxRuntime.jsx(TitleRow, { title, price }),
|
|
8836
|
+
date && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 text-sm font-normal leading-5 text-sui-text-muted", children: [
|
|
8837
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Added" }),
|
|
8838
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: date })
|
|
8839
|
+
] })
|
|
8840
|
+
] })
|
|
8841
|
+
]
|
|
8842
|
+
})
|
|
8843
|
+
);
|
|
8844
|
+
}
|
|
8845
|
+
if (variant === "featured") {
|
|
8846
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8847
|
+
"div",
|
|
8848
|
+
__spreadProps(__spreadValues({
|
|
8849
|
+
ref,
|
|
8850
|
+
className: cn(
|
|
8851
|
+
"relative flex flex-col gap-3 rounded-xl border border-sui-border-darker bg-sui-bg-card p-4 shadow-card",
|
|
8852
|
+
className
|
|
8853
|
+
)
|
|
8854
|
+
}, props), {
|
|
8855
|
+
children: [
|
|
8856
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-sm border border-sui-border-darker", children: /* @__PURE__ */ jsxRuntime.jsx(CoverImage, { src: image, className: "absolute inset-0" }) }),
|
|
8857
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
8858
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
8859
|
+
/* @__PURE__ */ jsxRuntime.jsx(TitleRow, { title, price }),
|
|
8860
|
+
/* @__PURE__ */ jsxRuntime.jsx(DateRow, { date })
|
|
8861
|
+
] }),
|
|
8862
|
+
/* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
|
|
8863
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(TagList, { tags }),
|
|
8864
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "md", className: "w-full", onClick: onCta, children: [
|
|
8865
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-shopping-cart-2-line", "aria-hidden": "true" }),
|
|
8866
|
+
ctaLabel
|
|
8867
|
+
] })
|
|
8868
|
+
] }),
|
|
8869
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
|
|
8870
|
+
]
|
|
8871
|
+
})
|
|
8872
|
+
);
|
|
8873
|
+
}
|
|
8874
|
+
if (variant === "detailed") {
|
|
8875
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8876
|
+
"div",
|
|
8877
|
+
__spreadProps(__spreadValues({
|
|
8878
|
+
ref,
|
|
8879
|
+
className: cn(
|
|
8880
|
+
"relative flex flex-col overflow-clip rounded-xl border border-sui-border-darker bg-sui-bg-card shadow-card",
|
|
8881
|
+
className
|
|
8882
|
+
)
|
|
8883
|
+
}, props), {
|
|
8884
|
+
children: [
|
|
8885
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative aspect-[5/3] w-full shrink-0 border-b border-sui-border-darker", children: /* @__PURE__ */ jsxRuntime.jsx(CoverImage, { src: image, className: "absolute inset-0" }) }),
|
|
8886
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-4 p-4", children: [
|
|
8887
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
8888
|
+
/* @__PURE__ */ jsxRuntime.jsx(TitleRow, { title, price }),
|
|
8889
|
+
/* @__PURE__ */ jsxRuntime.jsx(DateRow, { date })
|
|
8890
|
+
] }),
|
|
8891
|
+
/* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
|
|
8892
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-normal leading-5 text-sui-text-muted", children: description }),
|
|
8893
|
+
/* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
|
|
8894
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(TagList, { tags }),
|
|
8895
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "md", className: "w-full", onClick: onCta, children: [
|
|
8896
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-shopping-cart-2-line", "aria-hidden": "true" }),
|
|
8897
|
+
ctaLabel
|
|
8898
|
+
] })
|
|
8899
|
+
] }),
|
|
8900
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
|
|
8901
|
+
]
|
|
8902
|
+
})
|
|
8903
|
+
);
|
|
8904
|
+
}
|
|
8905
|
+
if (variant === "author") {
|
|
8906
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8907
|
+
"div",
|
|
8908
|
+
__spreadProps(__spreadValues({
|
|
8909
|
+
ref,
|
|
8910
|
+
className: cn("flex flex-col gap-3", className)
|
|
8911
|
+
}, props), {
|
|
8912
|
+
children: [
|
|
8913
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-lg border border-sui-border-darker shadow-card", children: [
|
|
8914
|
+
/* @__PURE__ */ jsxRuntime.jsx(CoverImage, { src: image, className: "absolute inset-0" }),
|
|
8915
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
|
|
8916
|
+
] }),
|
|
8917
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
8918
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between font-medium text-md leading-6 text-sui-text-default", children: [
|
|
8919
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: title }),
|
|
8920
|
+
price && /* @__PURE__ */ jsxRuntime.jsx("span", { children: price })
|
|
8921
|
+
] }),
|
|
8922
|
+
author && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8923
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Avatar, { className: "size-6", children: [
|
|
8924
|
+
author.avatar && /* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: author.avatar, alt: author.name }),
|
|
8925
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { className: "text-xs", children: author.name.slice(0, 2).toUpperCase() })
|
|
8926
|
+
] }),
|
|
8927
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 text-sm font-normal leading-5 text-sui-text-subtle", children: [
|
|
8928
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: author.name }),
|
|
8929
|
+
author.category && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
8930
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-right-s-line text-base leading-none text-icon-default-muted", "aria-hidden": "true" }),
|
|
8931
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: author.category })
|
|
8932
|
+
] })
|
|
8933
|
+
] })
|
|
8934
|
+
] })
|
|
8935
|
+
] })
|
|
8936
|
+
]
|
|
8937
|
+
})
|
|
8938
|
+
);
|
|
8939
|
+
}
|
|
8940
|
+
if (variant === "overlay") {
|
|
8941
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8942
|
+
"div",
|
|
8943
|
+
__spreadProps(__spreadValues({
|
|
8944
|
+
ref,
|
|
8945
|
+
className: cn("relative", className)
|
|
8946
|
+
}, props), {
|
|
8947
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-lg border border-sui-border-darker shadow-card", children: [
|
|
8948
|
+
/* @__PURE__ */ jsxRuntime.jsx(CoverImage, { src: image, className: "absolute inset-0" }),
|
|
8949
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute inset-x-0 bottom-0 flex items-end justify-between bg-gradient-to-b from-transparent to-sui-bg-default pb-2.5 pt-8 px-2.5", children: [
|
|
8950
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "sm", children: "Live preview" }),
|
|
8951
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "sm", children: [
|
|
8952
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-file-copy-line", "aria-hidden": "true" }),
|
|
8953
|
+
"Copy"
|
|
8954
|
+
] })
|
|
8955
|
+
] }),
|
|
8956
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
|
|
8957
|
+
] })
|
|
8958
|
+
})
|
|
8959
|
+
);
|
|
8960
|
+
}
|
|
8961
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8962
|
+
"div",
|
|
8963
|
+
__spreadProps(__spreadValues({
|
|
8964
|
+
ref,
|
|
8965
|
+
className: cn("flex items-center justify-between gap-3", className)
|
|
8966
|
+
}, props), {
|
|
8967
|
+
children: [
|
|
8968
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
8969
|
+
(thumbnail || image) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative size-6 shrink-0 overflow-clip rounded-sm", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8970
|
+
"img",
|
|
8971
|
+
{
|
|
8972
|
+
src: thumbnail != null ? thumbnail : image,
|
|
8973
|
+
alt: "",
|
|
8974
|
+
className: "absolute inset-0 size-full object-cover"
|
|
8975
|
+
}
|
|
8976
|
+
) }),
|
|
8977
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate font-medium text-md leading-6 text-sui-text-default", children: title })
|
|
8978
|
+
] }),
|
|
8979
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
8980
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Tooltip2, { children: [
|
|
8981
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "ghost", size: "2xs", className: "size-6 p-0", children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-bookmark-line", "aria-hidden": "true" }) }) }),
|
|
8982
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: "Save to library" })
|
|
8983
|
+
] }),
|
|
8984
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "ghost", size: "2xs", className: "size-6 p-0", children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-more-2-fill", "aria-hidden": "true" }) })
|
|
8985
|
+
] })
|
|
8986
|
+
]
|
|
8987
|
+
})
|
|
8988
|
+
) });
|
|
8989
|
+
}
|
|
8990
|
+
);
|
|
8991
|
+
ProductCard.displayName = "ProductCard";
|
|
8992
|
+
var Progress = React80__namespace.forwardRef((_a, ref) => {
|
|
8531
8993
|
var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
|
|
8532
8994
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8533
8995
|
ProgressPrimitive2__namespace.Root,
|
|
@@ -8541,7 +9003,7 @@ var Progress = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8541
9003
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8542
9004
|
ProgressPrimitive2__namespace.Indicator,
|
|
8543
9005
|
{
|
|
8544
|
-
className: "h-full w-full flex-1 bg-
|
|
9006
|
+
className: "h-full w-full flex-1 bg-informative transition-all",
|
|
8545
9007
|
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
8546
9008
|
}
|
|
8547
9009
|
)
|
|
@@ -8567,17 +9029,17 @@ var radialProgressBarVariants = classVarianceAuthority.cva("relative inline-flex
|
|
|
8567
9029
|
}
|
|
8568
9030
|
});
|
|
8569
9031
|
var textVariantMap = {
|
|
8570
|
-
default: "text-sui-text-
|
|
9032
|
+
default: "text-sui-text-informative",
|
|
8571
9033
|
success: "text-sui-text-success",
|
|
8572
9034
|
failed: "text-sui-text-destructive"
|
|
8573
9035
|
};
|
|
8574
9036
|
var trackStrokeVar = "var(--border-default)";
|
|
8575
9037
|
var arcStrokeVarMap = {
|
|
8576
|
-
default: "var(--
|
|
9038
|
+
default: "hsl(var(--informative))",
|
|
8577
9039
|
success: "var(--text-success)",
|
|
8578
9040
|
failed: "var(--text-destructive)"
|
|
8579
9041
|
};
|
|
8580
|
-
var RadialProgressBar =
|
|
9042
|
+
var RadialProgressBar = React80__namespace.forwardRef(
|
|
8581
9043
|
(_a, ref) => {
|
|
8582
9044
|
var _b = _a, {
|
|
8583
9045
|
className,
|
|
@@ -8697,7 +9159,7 @@ var RadialProgressBar = React78__namespace.forwardRef(
|
|
|
8697
9159
|
}
|
|
8698
9160
|
);
|
|
8699
9161
|
RadialProgressBar.displayName = "RadialProgressBar";
|
|
8700
|
-
var RadioGroup2 =
|
|
9162
|
+
var RadioGroup2 = React80__namespace.forwardRef((_a, ref) => {
|
|
8701
9163
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8702
9164
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8703
9165
|
RadioGroupPrimitive__namespace.Root,
|
|
@@ -8757,7 +9219,7 @@ var radioButtonVariants = classVarianceAuthority.cva(
|
|
|
8757
9219
|
}
|
|
8758
9220
|
}
|
|
8759
9221
|
);
|
|
8760
|
-
var RadioButton =
|
|
9222
|
+
var RadioButton = React80__namespace.forwardRef((_a, ref) => {
|
|
8761
9223
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
8762
9224
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8763
9225
|
RadioGroupPrimitive__namespace.Item,
|
|
@@ -8797,7 +9259,7 @@ var RadioButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8797
9259
|
);
|
|
8798
9260
|
});
|
|
8799
9261
|
RadioButton.displayName = "RadioButton";
|
|
8800
|
-
var RadioCardGroup =
|
|
9262
|
+
var RadioCardGroup = React80__namespace.forwardRef((_a, ref) => {
|
|
8801
9263
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8802
9264
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8803
9265
|
RadioGroupPrimitive__namespace.Root,
|
|
@@ -8826,7 +9288,7 @@ var radioButtonCardVariants = classVarianceAuthority.cva(
|
|
|
8826
9288
|
// Shadow
|
|
8827
9289
|
"shadow-card-base",
|
|
8828
9290
|
// Selected: highlight border + ring
|
|
8829
|
-
"data-[state=checked]:border-
|
|
9291
|
+
"data-[state=checked]:border-informative data-[state=checked]:ring-1 data-[state=checked]:ring-inset data-[state=checked]:ring-informative",
|
|
8830
9292
|
// Disabled
|
|
8831
9293
|
"disabled:border-sui-border-default disabled:shadow-none"
|
|
8832
9294
|
],
|
|
@@ -8834,7 +9296,7 @@ var radioButtonCardVariants = classVarianceAuthority.cva(
|
|
|
8834
9296
|
// Background — soft bg when unchecked, card bg when selected
|
|
8835
9297
|
"bg-sui-bg-state-soft border border-transparent",
|
|
8836
9298
|
// Selected: card bg + highlight border + ring
|
|
8837
|
-
"data-[state=checked]:bg-sui-bg-card data-[state=checked]:border-
|
|
9299
|
+
"data-[state=checked]:bg-sui-bg-card data-[state=checked]:border-informative data-[state=checked]:ring-1 data-[state=checked]:ring-inset data-[state=checked]:ring-informative",
|
|
8838
9300
|
"data-[state=checked]:shadow-card-base",
|
|
8839
9301
|
// Disabled
|
|
8840
9302
|
"disabled:border-transparent disabled:shadow-none"
|
|
@@ -8846,7 +9308,7 @@ var radioButtonCardVariants = classVarianceAuthority.cva(
|
|
|
8846
9308
|
}
|
|
8847
9309
|
}
|
|
8848
9310
|
);
|
|
8849
|
-
var RadioButtonCard =
|
|
9311
|
+
var RadioButtonCard = React80__namespace.forwardRef(
|
|
8850
9312
|
({
|
|
8851
9313
|
title,
|
|
8852
9314
|
description,
|
|
@@ -8860,7 +9322,7 @@ var RadioButtonCard = React78__namespace.forwardRef(
|
|
|
8860
9322
|
disabled = false,
|
|
8861
9323
|
className
|
|
8862
9324
|
}, ref) => {
|
|
8863
|
-
const generatedId =
|
|
9325
|
+
const generatedId = React80__namespace.useId();
|
|
8864
9326
|
const titleId = `radio-card-title-${generatedId}`;
|
|
8865
9327
|
const descriptionId = `radio-card-desc-${generatedId}`;
|
|
8866
9328
|
const isHorizontal = layout === "horizontal";
|
|
@@ -8968,9 +9430,9 @@ var RadioButtonCard = React78__namespace.forwardRef(
|
|
|
8968
9430
|
}
|
|
8969
9431
|
);
|
|
8970
9432
|
RadioButtonCard.displayName = "RadioButtonCard";
|
|
8971
|
-
var RadioButtonList =
|
|
9433
|
+
var RadioButtonList = React80__namespace.forwardRef(
|
|
8972
9434
|
({ className, divider = true, value, defaultValue, onValueChange, disabled, children }, ref) => {
|
|
8973
|
-
const items =
|
|
9435
|
+
const items = React80__namespace.Children.toArray(children);
|
|
8974
9436
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8975
9437
|
RadioGroup2,
|
|
8976
9438
|
{
|
|
@@ -9014,7 +9476,7 @@ var radioButtonWithTextVariants = classVarianceAuthority.cva(
|
|
|
9014
9476
|
}
|
|
9015
9477
|
}
|
|
9016
9478
|
);
|
|
9017
|
-
var RadioButtonWithText =
|
|
9479
|
+
var RadioButtonWithText = React80__namespace.forwardRef(
|
|
9018
9480
|
({
|
|
9019
9481
|
label,
|
|
9020
9482
|
description,
|
|
@@ -9025,7 +9487,7 @@ var RadioButtonWithText = React78__namespace.forwardRef(
|
|
|
9025
9487
|
className,
|
|
9026
9488
|
id
|
|
9027
9489
|
}, ref) => {
|
|
9028
|
-
const generatedId =
|
|
9490
|
+
const generatedId = React80__namespace.useId();
|
|
9029
9491
|
const radioId = id || generatedId;
|
|
9030
9492
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9031
9493
|
"div",
|
|
@@ -9080,7 +9542,7 @@ var RadioButtonWithText = React78__namespace.forwardRef(
|
|
|
9080
9542
|
}
|
|
9081
9543
|
);
|
|
9082
9544
|
RadioButtonWithText.displayName = "RadioButtonWithText";
|
|
9083
|
-
var ScrollArea =
|
|
9545
|
+
var ScrollArea = React80__namespace.forwardRef((_a, ref) => {
|
|
9084
9546
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
9085
9547
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9086
9548
|
ScrollAreaPrimitive__namespace.Root,
|
|
@@ -9097,7 +9559,7 @@ var ScrollArea = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9097
9559
|
);
|
|
9098
9560
|
});
|
|
9099
9561
|
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
9100
|
-
var ScrollBar =
|
|
9562
|
+
var ScrollBar = React80__namespace.forwardRef((_a, ref) => {
|
|
9101
9563
|
var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
|
|
9102
9564
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9103
9565
|
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
@@ -9119,7 +9581,7 @@ ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displ
|
|
|
9119
9581
|
var Select = SelectPrimitive__namespace.Root;
|
|
9120
9582
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
9121
9583
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
9122
|
-
var SelectTrigger =
|
|
9584
|
+
var SelectTrigger = React80__namespace.forwardRef((_a, ref) => {
|
|
9123
9585
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
9124
9586
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9125
9587
|
SelectPrimitive__namespace.Trigger,
|
|
@@ -9142,7 +9604,7 @@ var SelectTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9142
9604
|
);
|
|
9143
9605
|
});
|
|
9144
9606
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
9145
|
-
var SelectScrollUpButton =
|
|
9607
|
+
var SelectScrollUpButton = React80__namespace.forwardRef((_a, ref) => {
|
|
9146
9608
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9147
9609
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9148
9610
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
@@ -9158,7 +9620,7 @@ var SelectScrollUpButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9158
9620
|
);
|
|
9159
9621
|
});
|
|
9160
9622
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
9161
|
-
var SelectScrollDownButton =
|
|
9623
|
+
var SelectScrollDownButton = React80__namespace.forwardRef((_a, ref) => {
|
|
9162
9624
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9163
9625
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9164
9626
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
@@ -9174,7 +9636,7 @@ var SelectScrollDownButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9174
9636
|
);
|
|
9175
9637
|
});
|
|
9176
9638
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
9177
|
-
var SelectContent =
|
|
9639
|
+
var SelectContent = React80__namespace.forwardRef((_a, ref) => {
|
|
9178
9640
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
9179
9641
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9180
9642
|
SelectPrimitive__namespace.Content,
|
|
@@ -9207,7 +9669,7 @@ var SelectContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9207
9669
|
) });
|
|
9208
9670
|
});
|
|
9209
9671
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
9210
|
-
var SelectLabel =
|
|
9672
|
+
var SelectLabel = React80__namespace.forwardRef((_a, ref) => {
|
|
9211
9673
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9212
9674
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9213
9675
|
SelectPrimitive__namespace.Label,
|
|
@@ -9221,7 +9683,7 @@ var SelectLabel = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9221
9683
|
);
|
|
9222
9684
|
});
|
|
9223
9685
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
9224
|
-
var SelectItem =
|
|
9686
|
+
var SelectItem = React80__namespace.forwardRef((_a, ref) => {
|
|
9225
9687
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
9226
9688
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9227
9689
|
SelectPrimitive__namespace.Item,
|
|
@@ -9246,7 +9708,7 @@ var SelectItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9246
9708
|
);
|
|
9247
9709
|
});
|
|
9248
9710
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
9249
|
-
var SelectSeparator =
|
|
9711
|
+
var SelectSeparator = React80__namespace.forwardRef((_a, ref) => {
|
|
9250
9712
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9251
9713
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9252
9714
|
SelectPrimitive__namespace.Separator,
|
|
@@ -9257,7 +9719,7 @@ var SelectSeparator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9257
9719
|
);
|
|
9258
9720
|
});
|
|
9259
9721
|
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
9260
|
-
var SelectMenu =
|
|
9722
|
+
var SelectMenu = React80__namespace.forwardRef(
|
|
9261
9723
|
(_a, ref) => {
|
|
9262
9724
|
var _b = _a, {
|
|
9263
9725
|
className,
|
|
@@ -9288,19 +9750,19 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9288
9750
|
]);
|
|
9289
9751
|
var _a2;
|
|
9290
9752
|
const indicator = selectType === "checkbox" ? "checkbox" : selectType === "radio" ? "radio" : selectType === "default" ? "checkmark" : "none";
|
|
9291
|
-
const hasChildren =
|
|
9292
|
-
const generatedId =
|
|
9753
|
+
const hasChildren = React80__namespace.Children.count(children) > 0;
|
|
9754
|
+
const generatedId = React80__namespace.useId();
|
|
9293
9755
|
const listId = `${generatedId}-list`;
|
|
9294
|
-
const listRef =
|
|
9295
|
-
const [activeIndex, setActiveIndex] =
|
|
9756
|
+
const listRef = React80__namespace.useRef(null);
|
|
9757
|
+
const [activeIndex, setActiveIndex] = React80__namespace.useState(-1);
|
|
9296
9758
|
const activeItemId = activeIndex >= 0 ? `${listId}-item-${activeIndex}` : void 0;
|
|
9297
|
-
const getItems =
|
|
9759
|
+
const getItems = React80__namespace.useCallback(() => {
|
|
9298
9760
|
if (!listRef.current) return [];
|
|
9299
9761
|
return Array.from(
|
|
9300
9762
|
listRef.current.querySelectorAll('[role="option"]')
|
|
9301
9763
|
);
|
|
9302
9764
|
}, []);
|
|
9303
|
-
const handleKeyDown =
|
|
9765
|
+
const handleKeyDown = React80__namespace.useCallback(
|
|
9304
9766
|
(e) => {
|
|
9305
9767
|
var _a3;
|
|
9306
9768
|
const items = getItems();
|
|
@@ -9383,8 +9845,8 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9383
9845
|
"focus-visible:outline-none"
|
|
9384
9846
|
),
|
|
9385
9847
|
style: listMaxHeight ? { maxHeight: listMaxHeight } : void 0,
|
|
9386
|
-
children: hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col px-1", role: "presentation", children:
|
|
9387
|
-
if (
|
|
9848
|
+
children: hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col px-1", role: "presentation", children: React80__namespace.Children.map(children, (child, index) => {
|
|
9849
|
+
if (React80__namespace.isValidElement(child) && child.type.displayName === "SelectMenuItem") {
|
|
9388
9850
|
const itemProps = child.props;
|
|
9389
9851
|
const overrides = {};
|
|
9390
9852
|
if (indicator !== "none" && itemProps.indicator === void 0) {
|
|
@@ -9401,7 +9863,7 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9401
9863
|
overrides["data-active"] = "true";
|
|
9402
9864
|
}
|
|
9403
9865
|
if (Object.keys(overrides).length > 0) {
|
|
9404
|
-
return
|
|
9866
|
+
return React80__namespace.cloneElement(
|
|
9405
9867
|
child,
|
|
9406
9868
|
overrides
|
|
9407
9869
|
);
|
|
@@ -9426,7 +9888,7 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9426
9888
|
}
|
|
9427
9889
|
);
|
|
9428
9890
|
SelectMenu.displayName = "SelectMenu";
|
|
9429
|
-
var SelectMenuFooterButton =
|
|
9891
|
+
var SelectMenuFooterButton = React80__namespace.forwardRef((_a, ref) => {
|
|
9430
9892
|
var _b = _a, { className, icon = "ri-add-line", children = "Add new", disabled } = _b, props = __objRest(_b, ["className", "icon", "children", "disabled"]);
|
|
9431
9893
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9432
9894
|
"button",
|
|
@@ -9469,7 +9931,7 @@ var SelectMenuFooterButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9469
9931
|
);
|
|
9470
9932
|
});
|
|
9471
9933
|
SelectMenuFooterButton.displayName = "SelectMenuFooterButton";
|
|
9472
|
-
var SelectInput =
|
|
9934
|
+
var SelectInput = React80__namespace.forwardRef(
|
|
9473
9935
|
({
|
|
9474
9936
|
label,
|
|
9475
9937
|
required,
|
|
@@ -9501,10 +9963,10 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9501
9963
|
footer,
|
|
9502
9964
|
className
|
|
9503
9965
|
}, ref) => {
|
|
9504
|
-
const [internalOpen, setInternalOpen] =
|
|
9966
|
+
const [internalOpen, setInternalOpen] = React80__namespace.useState(false);
|
|
9505
9967
|
const isControlled = controlledOpen !== void 0;
|
|
9506
9968
|
const isOpen = isControlled ? controlledOpen : internalOpen;
|
|
9507
|
-
const handleOpenChange =
|
|
9969
|
+
const handleOpenChange = React80__namespace.useCallback(
|
|
9508
9970
|
(next) => {
|
|
9509
9971
|
if (disabled) return;
|
|
9510
9972
|
if (!isControlled) setInternalOpen(next);
|
|
@@ -9512,7 +9974,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9512
9974
|
},
|
|
9513
9975
|
[disabled, isControlled, onOpenChange]
|
|
9514
9976
|
);
|
|
9515
|
-
const generatedId =
|
|
9977
|
+
const generatedId = React80__namespace.useId();
|
|
9516
9978
|
const hasError = !!error;
|
|
9517
9979
|
const helperText = hasError ? error : caption;
|
|
9518
9980
|
const hasTags = tags && tags.length > 0;
|
|
@@ -9591,7 +10053,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9591
10053
|
children: leadIcon
|
|
9592
10054
|
}
|
|
9593
10055
|
) : null,
|
|
9594
|
-
hasTags ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex min-w-0 flex-1 items-center gap-1 overflow-hidden", children: tags.map((tag, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10056
|
+
hasTags ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex min-w-0 flex-1 items-center gap-1 overflow-hidden", children: tags.map((tag, i) => /* @__PURE__ */ jsxRuntime.jsxs(React80__namespace.Fragment, { children: [
|
|
9595
10057
|
i > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9596
10058
|
"span",
|
|
9597
10059
|
{
|
|
@@ -9708,7 +10170,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9708
10170
|
}
|
|
9709
10171
|
);
|
|
9710
10172
|
SelectInput.displayName = "SelectInput";
|
|
9711
|
-
var SelectMenuItem =
|
|
10173
|
+
var SelectMenuItem = React80__namespace.forwardRef(
|
|
9712
10174
|
(_a, ref) => {
|
|
9713
10175
|
var _b = _a, {
|
|
9714
10176
|
className,
|
|
@@ -9872,7 +10334,7 @@ var SelectMenuItem = React78__namespace.forwardRef(
|
|
|
9872
10334
|
}
|
|
9873
10335
|
);
|
|
9874
10336
|
SelectMenuItem.displayName = "SelectMenuItem";
|
|
9875
|
-
var SelectMenuLabel =
|
|
10337
|
+
var SelectMenuLabel = React80__namespace.forwardRef(
|
|
9876
10338
|
(_a, ref) => {
|
|
9877
10339
|
var _b = _a, { className, caption, children } = _b, props = __objRest(_b, ["className", "caption", "children"]);
|
|
9878
10340
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -9894,7 +10356,7 @@ var SelectMenuLabel = React78__namespace.forwardRef(
|
|
|
9894
10356
|
}
|
|
9895
10357
|
);
|
|
9896
10358
|
SelectMenuLabel.displayName = "SelectMenuLabel";
|
|
9897
|
-
var SelectMenuDescription =
|
|
10359
|
+
var SelectMenuDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
9898
10360
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9899
10361
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9900
10362
|
"p",
|
|
@@ -9908,7 +10370,7 @@ var SelectMenuDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9908
10370
|
);
|
|
9909
10371
|
});
|
|
9910
10372
|
SelectMenuDescription.displayName = "SelectMenuDescription";
|
|
9911
|
-
var SelectMenuSeparator =
|
|
10373
|
+
var SelectMenuSeparator = React80__namespace.forwardRef((_a, ref) => {
|
|
9912
10374
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9913
10375
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9914
10376
|
"div",
|
|
@@ -9920,7 +10382,7 @@ var SelectMenuSeparator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9920
10382
|
);
|
|
9921
10383
|
});
|
|
9922
10384
|
SelectMenuSeparator.displayName = "SelectMenuSeparator";
|
|
9923
|
-
var SelectMenuLargeItem =
|
|
10385
|
+
var SelectMenuLargeItem = React80__namespace.forwardRef(
|
|
9924
10386
|
(_a, ref) => {
|
|
9925
10387
|
var _b = _a, {
|
|
9926
10388
|
className,
|
|
@@ -10016,7 +10478,7 @@ var SelectMenuLargeItem = React78__namespace.forwardRef(
|
|
|
10016
10478
|
}
|
|
10017
10479
|
);
|
|
10018
10480
|
SelectMenuLargeItem.displayName = "SelectMenuLargeItem";
|
|
10019
|
-
var Separator3 =
|
|
10481
|
+
var Separator3 = React80__namespace.forwardRef(
|
|
10020
10482
|
(_a, ref) => {
|
|
10021
10483
|
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
10022
10484
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10039,7 +10501,7 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
10039
10501
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
10040
10502
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
10041
10503
|
var SheetPortal = DialogPrimitive__namespace.Portal;
|
|
10042
|
-
var SheetOverlay =
|
|
10504
|
+
var SheetOverlay = React80__namespace.forwardRef((_a, ref) => {
|
|
10043
10505
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10044
10506
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10045
10507
|
DialogPrimitive__namespace.Overlay,
|
|
@@ -10070,7 +10532,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
10070
10532
|
}
|
|
10071
10533
|
}
|
|
10072
10534
|
);
|
|
10073
|
-
var SheetContent =
|
|
10535
|
+
var SheetContent = React80__namespace.forwardRef((_a, ref) => {
|
|
10074
10536
|
var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
|
|
10075
10537
|
return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
10076
10538
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
@@ -10126,7 +10588,7 @@ var SheetFooter = (_a) => {
|
|
|
10126
10588
|
);
|
|
10127
10589
|
};
|
|
10128
10590
|
SheetFooter.displayName = "SheetFooter";
|
|
10129
|
-
var SheetTitle =
|
|
10591
|
+
var SheetTitle = React80__namespace.forwardRef((_a, ref) => {
|
|
10130
10592
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10131
10593
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10132
10594
|
DialogPrimitive__namespace.Title,
|
|
@@ -10137,7 +10599,7 @@ var SheetTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10137
10599
|
);
|
|
10138
10600
|
});
|
|
10139
10601
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
10140
|
-
var SheetDescription =
|
|
10602
|
+
var SheetDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
10141
10603
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10142
10604
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10143
10605
|
DialogPrimitive__namespace.Description,
|
|
@@ -10150,8 +10612,8 @@ var SheetDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10150
10612
|
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
10151
10613
|
var MOBILE_BREAKPOINT = 768;
|
|
10152
10614
|
function useIsMobile() {
|
|
10153
|
-
const [isMobile, setIsMobile] =
|
|
10154
|
-
|
|
10615
|
+
const [isMobile, setIsMobile] = React80__namespace.useState(void 0);
|
|
10616
|
+
React80__namespace.useEffect(() => {
|
|
10155
10617
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
10156
10618
|
const onChange = () => {
|
|
10157
10619
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -10181,15 +10643,15 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
10181
10643
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
10182
10644
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
10183
10645
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
10184
|
-
var SidebarContext =
|
|
10646
|
+
var SidebarContext = React80__namespace.createContext(null);
|
|
10185
10647
|
function useSidebar() {
|
|
10186
|
-
const context =
|
|
10648
|
+
const context = React80__namespace.useContext(SidebarContext);
|
|
10187
10649
|
if (!context) {
|
|
10188
10650
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
10189
10651
|
}
|
|
10190
10652
|
return context;
|
|
10191
10653
|
}
|
|
10192
|
-
var SidebarProvider =
|
|
10654
|
+
var SidebarProvider = React80__namespace.forwardRef(
|
|
10193
10655
|
(_a, ref) => {
|
|
10194
10656
|
var _b = _a, {
|
|
10195
10657
|
defaultOpen = true,
|
|
@@ -10207,10 +10669,10 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10207
10669
|
"children"
|
|
10208
10670
|
]);
|
|
10209
10671
|
const isMobile = useIsMobile();
|
|
10210
|
-
const [openMobile, setOpenMobile] =
|
|
10211
|
-
const [_open, _setOpen] =
|
|
10672
|
+
const [openMobile, setOpenMobile] = React80__namespace.useState(false);
|
|
10673
|
+
const [_open, _setOpen] = React80__namespace.useState(defaultOpen);
|
|
10212
10674
|
const open = openProp != null ? openProp : _open;
|
|
10213
|
-
const setOpen =
|
|
10675
|
+
const setOpen = React80__namespace.useCallback(
|
|
10214
10676
|
(value) => {
|
|
10215
10677
|
const openState = typeof value === "function" ? value(open) : value;
|
|
10216
10678
|
if (setOpenProp) {
|
|
@@ -10222,10 +10684,10 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10222
10684
|
},
|
|
10223
10685
|
[setOpenProp, open]
|
|
10224
10686
|
);
|
|
10225
|
-
const toggleSidebar =
|
|
10687
|
+
const toggleSidebar = React80__namespace.useCallback(() => {
|
|
10226
10688
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
10227
10689
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
10228
|
-
|
|
10690
|
+
React80__namespace.useEffect(() => {
|
|
10229
10691
|
const handleKeyDown = (event) => {
|
|
10230
10692
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
10231
10693
|
event.preventDefault();
|
|
@@ -10236,7 +10698,7 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10236
10698
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
10237
10699
|
}, [toggleSidebar]);
|
|
10238
10700
|
const state = open ? "expanded" : "collapsed";
|
|
10239
|
-
const contextValue =
|
|
10701
|
+
const contextValue = React80__namespace.useMemo(
|
|
10240
10702
|
() => ({
|
|
10241
10703
|
state,
|
|
10242
10704
|
open,
|
|
@@ -10267,7 +10729,7 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10267
10729
|
}
|
|
10268
10730
|
);
|
|
10269
10731
|
SidebarProvider.displayName = "SidebarProvider";
|
|
10270
|
-
var Sidebar =
|
|
10732
|
+
var Sidebar = React80__namespace.forwardRef(
|
|
10271
10733
|
(_a, ref) => {
|
|
10272
10734
|
var _b = _a, {
|
|
10273
10735
|
side = "left",
|
|
@@ -10366,7 +10828,7 @@ var Sidebar = React78__namespace.forwardRef(
|
|
|
10366
10828
|
}
|
|
10367
10829
|
);
|
|
10368
10830
|
Sidebar.displayName = "Sidebar";
|
|
10369
|
-
var SidebarTrigger =
|
|
10831
|
+
var SidebarTrigger = React80__namespace.forwardRef((_a, ref) => {
|
|
10370
10832
|
var _b = _a, { className, onClick } = _b, props = __objRest(_b, ["className", "onClick"]);
|
|
10371
10833
|
const { toggleSidebar } = useSidebar();
|
|
10372
10834
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -10391,7 +10853,7 @@ var SidebarTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10391
10853
|
);
|
|
10392
10854
|
});
|
|
10393
10855
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
10394
|
-
var SidebarRail =
|
|
10856
|
+
var SidebarRail = React80__namespace.forwardRef((_a, ref) => {
|
|
10395
10857
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10396
10858
|
const { toggleSidebar } = useSidebar();
|
|
10397
10859
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10416,7 +10878,7 @@ var SidebarRail = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10416
10878
|
);
|
|
10417
10879
|
});
|
|
10418
10880
|
SidebarRail.displayName = "SidebarRail";
|
|
10419
|
-
var SidebarInset =
|
|
10881
|
+
var SidebarInset = React80__namespace.forwardRef((_a, ref) => {
|
|
10420
10882
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10421
10883
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10422
10884
|
"main",
|
|
@@ -10431,7 +10893,7 @@ var SidebarInset = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10431
10893
|
);
|
|
10432
10894
|
});
|
|
10433
10895
|
SidebarInset.displayName = "SidebarInset";
|
|
10434
|
-
var SidebarInput =
|
|
10896
|
+
var SidebarInput = React80__namespace.forwardRef((_a, ref) => {
|
|
10435
10897
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10436
10898
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10437
10899
|
Input,
|
|
@@ -10446,7 +10908,7 @@ var SidebarInput = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10446
10908
|
);
|
|
10447
10909
|
});
|
|
10448
10910
|
SidebarInput.displayName = "SidebarInput";
|
|
10449
|
-
var SidebarHeader =
|
|
10911
|
+
var SidebarHeader = React80__namespace.forwardRef((_a, ref) => {
|
|
10450
10912
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10451
10913
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10452
10914
|
"div",
|
|
@@ -10458,7 +10920,7 @@ var SidebarHeader = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10458
10920
|
);
|
|
10459
10921
|
});
|
|
10460
10922
|
SidebarHeader.displayName = "SidebarHeader";
|
|
10461
|
-
var SidebarFooter =
|
|
10923
|
+
var SidebarFooter = React80__namespace.forwardRef((_a, ref) => {
|
|
10462
10924
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10463
10925
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10464
10926
|
"div",
|
|
@@ -10470,7 +10932,7 @@ var SidebarFooter = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10470
10932
|
);
|
|
10471
10933
|
});
|
|
10472
10934
|
SidebarFooter.displayName = "SidebarFooter";
|
|
10473
|
-
var SidebarSeparator =
|
|
10935
|
+
var SidebarSeparator = React80__namespace.forwardRef((_a, ref) => {
|
|
10474
10936
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10475
10937
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10476
10938
|
Separator3,
|
|
@@ -10482,7 +10944,7 @@ var SidebarSeparator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10482
10944
|
);
|
|
10483
10945
|
});
|
|
10484
10946
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
10485
|
-
var SidebarContent =
|
|
10947
|
+
var SidebarContent = React80__namespace.forwardRef((_a, ref) => {
|
|
10486
10948
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10487
10949
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10488
10950
|
"div",
|
|
@@ -10497,7 +10959,7 @@ var SidebarContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10497
10959
|
);
|
|
10498
10960
|
});
|
|
10499
10961
|
SidebarContent.displayName = "SidebarContent";
|
|
10500
|
-
var SidebarGroup =
|
|
10962
|
+
var SidebarGroup = React80__namespace.forwardRef((_a, ref) => {
|
|
10501
10963
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10502
10964
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10503
10965
|
"div",
|
|
@@ -10509,7 +10971,7 @@ var SidebarGroup = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10509
10971
|
);
|
|
10510
10972
|
});
|
|
10511
10973
|
SidebarGroup.displayName = "SidebarGroup";
|
|
10512
|
-
var SidebarGroupLabel =
|
|
10974
|
+
var SidebarGroupLabel = React80__namespace.forwardRef((_a, ref) => {
|
|
10513
10975
|
var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
|
|
10514
10976
|
const Comp = asChild ? reactSlot.Slot : "div";
|
|
10515
10977
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10526,7 +10988,7 @@ var SidebarGroupLabel = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10526
10988
|
);
|
|
10527
10989
|
});
|
|
10528
10990
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
10529
|
-
var SidebarGroupAction =
|
|
10991
|
+
var SidebarGroupAction = React80__namespace.forwardRef((_a, ref) => {
|
|
10530
10992
|
var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
|
|
10531
10993
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
10532
10994
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10545,7 +11007,7 @@ var SidebarGroupAction = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10545
11007
|
);
|
|
10546
11008
|
});
|
|
10547
11009
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
10548
|
-
var SidebarGroupContent =
|
|
11010
|
+
var SidebarGroupContent = React80__namespace.forwardRef((_a, ref) => {
|
|
10549
11011
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10550
11012
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10551
11013
|
"div",
|
|
@@ -10557,7 +11019,7 @@ var SidebarGroupContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10557
11019
|
);
|
|
10558
11020
|
});
|
|
10559
11021
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
10560
|
-
var SidebarMenu =
|
|
11022
|
+
var SidebarMenu = React80__namespace.forwardRef((_a, ref) => {
|
|
10561
11023
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10562
11024
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10563
11025
|
"ul",
|
|
@@ -10569,7 +11031,7 @@ var SidebarMenu = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10569
11031
|
);
|
|
10570
11032
|
});
|
|
10571
11033
|
SidebarMenu.displayName = "SidebarMenu";
|
|
10572
|
-
var SidebarMenuItem =
|
|
11034
|
+
var SidebarMenuItem = React80__namespace.forwardRef((_a, ref) => {
|
|
10573
11035
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10574
11036
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10575
11037
|
"li",
|
|
@@ -10601,7 +11063,7 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
|
10601
11063
|
}
|
|
10602
11064
|
}
|
|
10603
11065
|
);
|
|
10604
|
-
var SidebarMenuButton =
|
|
11066
|
+
var SidebarMenuButton = React80__namespace.forwardRef(
|
|
10605
11067
|
(_a, ref) => {
|
|
10606
11068
|
var _b = _a, {
|
|
10607
11069
|
asChild = false,
|
|
@@ -10652,7 +11114,7 @@ var SidebarMenuButton = React78__namespace.forwardRef(
|
|
|
10652
11114
|
}
|
|
10653
11115
|
);
|
|
10654
11116
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
10655
|
-
var SidebarMenuAction =
|
|
11117
|
+
var SidebarMenuAction = React80__namespace.forwardRef((_a, ref) => {
|
|
10656
11118
|
var _b = _a, { className, asChild = false, showOnHover = false } = _b, props = __objRest(_b, ["className", "asChild", "showOnHover"]);
|
|
10657
11119
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
10658
11120
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10675,7 +11137,7 @@ var SidebarMenuAction = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10675
11137
|
);
|
|
10676
11138
|
});
|
|
10677
11139
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
10678
|
-
var SidebarMenuBadge =
|
|
11140
|
+
var SidebarMenuBadge = React80__namespace.forwardRef((_a, ref) => {
|
|
10679
11141
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10680
11142
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10681
11143
|
"div",
|
|
@@ -10695,10 +11157,10 @@ var SidebarMenuBadge = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10695
11157
|
);
|
|
10696
11158
|
});
|
|
10697
11159
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
10698
|
-
var SidebarMenuSkeleton =
|
|
11160
|
+
var SidebarMenuSkeleton = React80__namespace.forwardRef((_a, ref) => {
|
|
10699
11161
|
var _b = _a, { className, showIcon = false } = _b, props = __objRest(_b, ["className", "showIcon"]);
|
|
10700
|
-
const id =
|
|
10701
|
-
const width =
|
|
11162
|
+
const id = React80__namespace.useId();
|
|
11163
|
+
const width = React80__namespace.useMemo(() => {
|
|
10702
11164
|
const hash = id.split("").reduce((a, c) => a + c.charCodeAt(0), 0);
|
|
10703
11165
|
return `${hash % 40 + 50}%`;
|
|
10704
11166
|
}, [id]);
|
|
@@ -10732,7 +11194,7 @@ var SidebarMenuSkeleton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10732
11194
|
);
|
|
10733
11195
|
});
|
|
10734
11196
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
10735
|
-
var SidebarMenuSub =
|
|
11197
|
+
var SidebarMenuSub = React80__namespace.forwardRef((_a, ref) => {
|
|
10736
11198
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10737
11199
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10738
11200
|
"ul",
|
|
@@ -10748,12 +11210,12 @@ var SidebarMenuSub = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10748
11210
|
);
|
|
10749
11211
|
});
|
|
10750
11212
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
10751
|
-
var SidebarMenuSubItem =
|
|
11213
|
+
var SidebarMenuSubItem = React80__namespace.forwardRef((_a, ref) => {
|
|
10752
11214
|
var props = __objRest(_a, []);
|
|
10753
11215
|
return /* @__PURE__ */ jsxRuntime.jsx("li", __spreadValues({ ref }, props));
|
|
10754
11216
|
});
|
|
10755
11217
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
10756
|
-
var SidebarMenuSubButton =
|
|
11218
|
+
var SidebarMenuSubButton = React80__namespace.forwardRef((_a, ref) => {
|
|
10757
11219
|
var _b = _a, { asChild = false, size = "md", isActive, className } = _b, props = __objRest(_b, ["asChild", "size", "isActive", "className"]);
|
|
10758
11220
|
const Comp = asChild ? reactSlot.Slot : "a";
|
|
10759
11221
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10793,7 +11255,7 @@ var sidebarCardVariants = classVarianceAuthority.cva(
|
|
|
10793
11255
|
}
|
|
10794
11256
|
}
|
|
10795
11257
|
);
|
|
10796
|
-
var SidebarCard =
|
|
11258
|
+
var SidebarCard = React80__namespace.forwardRef(
|
|
10797
11259
|
(_a, ref) => {
|
|
10798
11260
|
var _b = _a, { className, variant, children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
|
|
10799
11261
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10832,7 +11294,7 @@ var sidebarMenuItemVariants = classVarianceAuthority.cva("", {
|
|
|
10832
11294
|
variant: "default"
|
|
10833
11295
|
}
|
|
10834
11296
|
});
|
|
10835
|
-
var SidebarMenuItem2 =
|
|
11297
|
+
var SidebarMenuItem2 = React80__namespace.forwardRef(
|
|
10836
11298
|
(_a, ref) => {
|
|
10837
11299
|
var _b = _a, {
|
|
10838
11300
|
className,
|
|
@@ -11017,6 +11479,198 @@ var SidebarMenuItem2 = React78__namespace.forwardRef(
|
|
|
11017
11479
|
}
|
|
11018
11480
|
);
|
|
11019
11481
|
SidebarMenuItem2.displayName = "SidebarMenuItem";
|
|
11482
|
+
var DefaultLogo = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 items-center justify-center rounded-lg bg-sui-bg-state-primary", children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-layout-grid-fill text-md leading-none text-icon-on-primary", "aria-hidden": "true" }) });
|
|
11483
|
+
var CardFooter2 = ({
|
|
11484
|
+
text,
|
|
11485
|
+
linkText,
|
|
11486
|
+
onClick,
|
|
11487
|
+
centered
|
|
11488
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex gap-1 text-sm leading-5", centered && "justify-center"), children: [
|
|
11489
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-normal text-sui-text-muted", children: text }),
|
|
11490
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11491
|
+
"button",
|
|
11492
|
+
{
|
|
11493
|
+
type: "button",
|
|
11494
|
+
onClick,
|
|
11495
|
+
className: "font-medium text-sui-text-informative [@media(hover:hover)]:hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default rounded-sm",
|
|
11496
|
+
children: linkText
|
|
11497
|
+
}
|
|
11498
|
+
)
|
|
11499
|
+
] });
|
|
11500
|
+
var SignInCard = React80__namespace.forwardRef(
|
|
11501
|
+
(_a, ref) => {
|
|
11502
|
+
var _b = _a, {
|
|
11503
|
+
className,
|
|
11504
|
+
variant = "simple",
|
|
11505
|
+
title = "Sign in to Sort UI",
|
|
11506
|
+
subtitle = "Welcome back! Please enter your details.",
|
|
11507
|
+
logo,
|
|
11508
|
+
showRememberMe = true,
|
|
11509
|
+
showResetPassword = true,
|
|
11510
|
+
showSso = true,
|
|
11511
|
+
socialProviders = ["apple", "google", "twitter"],
|
|
11512
|
+
ctaLabel,
|
|
11513
|
+
footerText = "New to Sort UI?",
|
|
11514
|
+
footerLinkText = "Sign up",
|
|
11515
|
+
onFooterClick
|
|
11516
|
+
} = _b, props = __objRest(_b, [
|
|
11517
|
+
"className",
|
|
11518
|
+
"variant",
|
|
11519
|
+
"title",
|
|
11520
|
+
"subtitle",
|
|
11521
|
+
"logo",
|
|
11522
|
+
"showRememberMe",
|
|
11523
|
+
"showResetPassword",
|
|
11524
|
+
"showSso",
|
|
11525
|
+
"socialProviders",
|
|
11526
|
+
"ctaLabel",
|
|
11527
|
+
"footerText",
|
|
11528
|
+
"footerLinkText",
|
|
11529
|
+
"onFooterClick"
|
|
11530
|
+
]);
|
|
11531
|
+
const logoNode = logo != null ? logo : /* @__PURE__ */ jsxRuntime.jsx(DefaultLogo, {});
|
|
11532
|
+
const isCentered = variant === "centered" || variant === "social";
|
|
11533
|
+
const Header2 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-3", isCentered && "items-center"), children: [
|
|
11534
|
+
logoNode,
|
|
11535
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-1", isCentered && "items-center text-center"), children: [
|
|
11536
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-md font-semibold leading-6 text-sui-text-default", children: title }),
|
|
11537
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-normal leading-5 text-sui-text-muted", children: subtitle })
|
|
11538
|
+
] })
|
|
11539
|
+
] });
|
|
11540
|
+
const FormFields = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
11541
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11542
|
+
InputField,
|
|
11543
|
+
{
|
|
11544
|
+
label: "Email address or username",
|
|
11545
|
+
placeholder: "",
|
|
11546
|
+
inputStyle: "shadow",
|
|
11547
|
+
type: "email",
|
|
11548
|
+
autoComplete: "email"
|
|
11549
|
+
}
|
|
11550
|
+
),
|
|
11551
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11552
|
+
InputField,
|
|
11553
|
+
{
|
|
11554
|
+
label: "Password",
|
|
11555
|
+
placeholder: "",
|
|
11556
|
+
inputStyle: "shadow",
|
|
11557
|
+
type: "password",
|
|
11558
|
+
autoComplete: "current-password",
|
|
11559
|
+
labelSupportText: showResetPassword ? "Reset password" : void 0,
|
|
11560
|
+
tailIcon: showResetPassword ? void 0 : void 0
|
|
11561
|
+
}
|
|
11562
|
+
),
|
|
11563
|
+
showRememberMe && /* @__PURE__ */ jsxRuntime.jsx(CheckboxWithText, { label: "Remember me" })
|
|
11564
|
+
] });
|
|
11565
|
+
if (variant === "simple") {
|
|
11566
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11567
|
+
"div",
|
|
11568
|
+
__spreadProps(__spreadValues({
|
|
11569
|
+
ref,
|
|
11570
|
+
className: cn(
|
|
11571
|
+
"flex w-[400px] flex-col gap-6 overflow-clip rounded-xl bg-sui-bg-card",
|
|
11572
|
+
"pt-9 pb-6 px-9",
|
|
11573
|
+
"shadow-modal-sm",
|
|
11574
|
+
className
|
|
11575
|
+
)
|
|
11576
|
+
}, props), {
|
|
11577
|
+
children: [
|
|
11578
|
+
Header2,
|
|
11579
|
+
FormFields,
|
|
11580
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Sign In" }),
|
|
11581
|
+
/* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
|
|
11582
|
+
/* @__PURE__ */ jsxRuntime.jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick })
|
|
11583
|
+
]
|
|
11584
|
+
})
|
|
11585
|
+
);
|
|
11586
|
+
}
|
|
11587
|
+
if (variant === "centered") {
|
|
11588
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11589
|
+
"div",
|
|
11590
|
+
__spreadProps(__spreadValues({
|
|
11591
|
+
ref,
|
|
11592
|
+
className: cn(
|
|
11593
|
+
"flex w-[400px] flex-col gap-6 overflow-clip rounded-xl bg-sui-bg-card",
|
|
11594
|
+
"pt-9 pb-6 px-9",
|
|
11595
|
+
"shadow-modal-sm",
|
|
11596
|
+
className
|
|
11597
|
+
)
|
|
11598
|
+
}, props), {
|
|
11599
|
+
children: [
|
|
11600
|
+
Header2,
|
|
11601
|
+
FormFields,
|
|
11602
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
11603
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Sign In" }),
|
|
11604
|
+
showSso && /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "secondary", className: "w-full", size: "md", children: [
|
|
11605
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-key-2-line", "aria-hidden": "true" }),
|
|
11606
|
+
"Single sign-on (SSO)"
|
|
11607
|
+
] })
|
|
11608
|
+
] }),
|
|
11609
|
+
/* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
|
|
11610
|
+
/* @__PURE__ */ jsxRuntime.jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick, centered: true })
|
|
11611
|
+
]
|
|
11612
|
+
})
|
|
11613
|
+
);
|
|
11614
|
+
}
|
|
11615
|
+
if (variant === "social") {
|
|
11616
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11617
|
+
"div",
|
|
11618
|
+
__spreadProps(__spreadValues({
|
|
11619
|
+
ref,
|
|
11620
|
+
className: cn(
|
|
11621
|
+
"flex w-[400px] flex-col overflow-clip rounded-xl bg-sui-bg-card-subtle",
|
|
11622
|
+
"shadow-modal-sm",
|
|
11623
|
+
className
|
|
11624
|
+
)
|
|
11625
|
+
}, props), {
|
|
11626
|
+
children: [
|
|
11627
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6 border-b border-sui-border-default bg-sui-bg-card p-9", children: [
|
|
11628
|
+
Header2,
|
|
11629
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
11630
|
+
socialProviders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: socialProviders.map((brand) => /* @__PURE__ */ jsxRuntime.jsx(SocialButton, { brand, variant: "secondary", className: "w-full" }, brand)) }),
|
|
11631
|
+
/* @__PURE__ */ jsxRuntime.jsx(Divider, { type: "text-center", label: "or" }),
|
|
11632
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Sign in with email" })
|
|
11633
|
+
] })
|
|
11634
|
+
] }),
|
|
11635
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex px-9 py-6 justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick, centered: true }) })
|
|
11636
|
+
]
|
|
11637
|
+
})
|
|
11638
|
+
);
|
|
11639
|
+
}
|
|
11640
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11641
|
+
"div",
|
|
11642
|
+
__spreadProps(__spreadValues({
|
|
11643
|
+
ref,
|
|
11644
|
+
className: cn(
|
|
11645
|
+
"flex w-[400px] flex-col overflow-clip rounded-xl bg-sui-bg-card-subtle",
|
|
11646
|
+
"shadow-modal-sm",
|
|
11647
|
+
className
|
|
11648
|
+
)
|
|
11649
|
+
}, props), {
|
|
11650
|
+
children: [
|
|
11651
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3 border-b border-sui-border-default bg-sui-bg-card p-9", children: [
|
|
11652
|
+
Header2,
|
|
11653
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pt-3", children: [
|
|
11654
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11655
|
+
InputField,
|
|
11656
|
+
{
|
|
11657
|
+
label: "Email address",
|
|
11658
|
+
placeholder: "",
|
|
11659
|
+
inputStyle: "shadow",
|
|
11660
|
+
type: "email",
|
|
11661
|
+
autoComplete: "email"
|
|
11662
|
+
}
|
|
11663
|
+
),
|
|
11664
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Continue" })
|
|
11665
|
+
] })
|
|
11666
|
+
] }),
|
|
11667
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex px-9 py-6", children: /* @__PURE__ */ jsxRuntime.jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick }) })
|
|
11668
|
+
]
|
|
11669
|
+
})
|
|
11670
|
+
);
|
|
11671
|
+
}
|
|
11672
|
+
);
|
|
11673
|
+
SignInCard.displayName = "SignInCard";
|
|
11020
11674
|
function clamp2(value, min, max) {
|
|
11021
11675
|
return Math.min(Math.max(value, min), max);
|
|
11022
11676
|
}
|
|
@@ -11028,7 +11682,7 @@ function percent2(value, min, max) {
|
|
|
11028
11682
|
if (max === min) return 0;
|
|
11029
11683
|
return (value - min) / (max - min) * 100;
|
|
11030
11684
|
}
|
|
11031
|
-
var Slider =
|
|
11685
|
+
var Slider = React80__namespace.forwardRef(
|
|
11032
11686
|
(_a, ref) => {
|
|
11033
11687
|
var _b = _a, {
|
|
11034
11688
|
className,
|
|
@@ -11061,12 +11715,12 @@ var Slider = React78__namespace.forwardRef(
|
|
|
11061
11715
|
"formatValue",
|
|
11062
11716
|
"onValueChange"
|
|
11063
11717
|
]);
|
|
11064
|
-
const trackRef =
|
|
11065
|
-
const [isDragging, setIsDragging] =
|
|
11066
|
-
const [isFocused, setIsFocused] =
|
|
11718
|
+
const trackRef = React80__namespace.useRef(null);
|
|
11719
|
+
const [isDragging, setIsDragging] = React80__namespace.useState(false);
|
|
11720
|
+
const [isFocused, setIsFocused] = React80__namespace.useState(false);
|
|
11067
11721
|
const pct = percent2(value, min, max);
|
|
11068
11722
|
const displayValue = formatValue ? formatValue(value) : `${value}`;
|
|
11069
|
-
const getValueFromPointer =
|
|
11723
|
+
const getValueFromPointer = React80__namespace.useCallback(
|
|
11070
11724
|
(clientX) => {
|
|
11071
11725
|
const track = trackRef.current;
|
|
11072
11726
|
if (!track) return 0;
|
|
@@ -11077,7 +11731,7 @@ var Slider = React78__namespace.forwardRef(
|
|
|
11077
11731
|
},
|
|
11078
11732
|
[min, max, step]
|
|
11079
11733
|
);
|
|
11080
|
-
const handlePointerDown =
|
|
11734
|
+
const handlePointerDown = React80__namespace.useCallback(
|
|
11081
11735
|
(e) => {
|
|
11082
11736
|
if (disabled) return;
|
|
11083
11737
|
e.preventDefault();
|
|
@@ -11088,7 +11742,7 @@ var Slider = React78__namespace.forwardRef(
|
|
|
11088
11742
|
},
|
|
11089
11743
|
[disabled, getValueFromPointer, onValueChange, value]
|
|
11090
11744
|
);
|
|
11091
|
-
const handlePointerMove =
|
|
11745
|
+
const handlePointerMove = React80__namespace.useCallback(
|
|
11092
11746
|
(e) => {
|
|
11093
11747
|
if (!isDragging || disabled) return;
|
|
11094
11748
|
const newValue = getValueFromPointer(e.clientX);
|
|
@@ -11096,10 +11750,10 @@ var Slider = React78__namespace.forwardRef(
|
|
|
11096
11750
|
},
|
|
11097
11751
|
[isDragging, disabled, getValueFromPointer, onValueChange, value]
|
|
11098
11752
|
);
|
|
11099
|
-
const handlePointerUp =
|
|
11753
|
+
const handlePointerUp = React80__namespace.useCallback(() => {
|
|
11100
11754
|
setIsDragging(false);
|
|
11101
11755
|
}, []);
|
|
11102
|
-
const handleKeyDown =
|
|
11756
|
+
const handleKeyDown = React80__namespace.useCallback(
|
|
11103
11757
|
(e) => {
|
|
11104
11758
|
if (disabled) return;
|
|
11105
11759
|
let newValue = value;
|
|
@@ -11126,7 +11780,7 @@ var Slider = React78__namespace.forwardRef(
|
|
|
11126
11780
|
},
|
|
11127
11781
|
[disabled, value, step, min, max, onValueChange]
|
|
11128
11782
|
);
|
|
11129
|
-
const tickLabels =
|
|
11783
|
+
const tickLabels = React80__namespace.useMemo(() => {
|
|
11130
11784
|
if (pointLabels) return pointLabels;
|
|
11131
11785
|
const count2 = pointCount;
|
|
11132
11786
|
const labels = [];
|
|
@@ -11165,7 +11819,7 @@ var Slider = React78__namespace.forwardRef(
|
|
|
11165
11819
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11166
11820
|
"div",
|
|
11167
11821
|
{
|
|
11168
|
-
className: "absolute left-0 top-1/2 h-1 -translate-y-1/2 bg-
|
|
11822
|
+
className: "absolute left-0 top-1/2 h-1 -translate-y-1/2 bg-informative",
|
|
11169
11823
|
style: { width: `${pct}%` }
|
|
11170
11824
|
}
|
|
11171
11825
|
),
|
|
@@ -11220,7 +11874,7 @@ Slider.displayName = "Slider";
|
|
|
11220
11874
|
function clamp3(value, min, max) {
|
|
11221
11875
|
return Math.min(Math.max(value, min), max);
|
|
11222
11876
|
}
|
|
11223
|
-
var SliderInput =
|
|
11877
|
+
var SliderInput = React80__namespace.forwardRef(
|
|
11224
11878
|
(_a, ref) => {
|
|
11225
11879
|
var _b = _a, {
|
|
11226
11880
|
className,
|
|
@@ -11243,8 +11897,8 @@ var SliderInput = React78__namespace.forwardRef(
|
|
|
11243
11897
|
"formatValue",
|
|
11244
11898
|
"onValueChange"
|
|
11245
11899
|
]);
|
|
11246
|
-
const [internalValue, setInternalValue] =
|
|
11247
|
-
|
|
11900
|
+
const [internalValue, setInternalValue] = React80__namespace.useState(value);
|
|
11901
|
+
React80__namespace.useEffect(() => {
|
|
11248
11902
|
setInternalValue(value);
|
|
11249
11903
|
}, [value]);
|
|
11250
11904
|
const commit = (newVal) => {
|
|
@@ -11351,7 +12005,7 @@ function percent3(value, min, max) {
|
|
|
11351
12005
|
if (max === min) return 0;
|
|
11352
12006
|
return (value - min) / (max - min) * 100;
|
|
11353
12007
|
}
|
|
11354
|
-
var SliderRange =
|
|
12008
|
+
var SliderRange = React80__namespace.forwardRef(
|
|
11355
12009
|
(_a, ref) => {
|
|
11356
12010
|
var _b = _a, {
|
|
11357
12011
|
className,
|
|
@@ -11384,15 +12038,15 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11384
12038
|
"formatValue",
|
|
11385
12039
|
"onValueChange"
|
|
11386
12040
|
]);
|
|
11387
|
-
const trackRef =
|
|
11388
|
-
const [draggingHandle, setDraggingHandle] =
|
|
11389
|
-
const [focusedHandle, setFocusedHandle] =
|
|
12041
|
+
const trackRef = React80__namespace.useRef(null);
|
|
12042
|
+
const [draggingHandle, setDraggingHandle] = React80__namespace.useState(null);
|
|
12043
|
+
const [focusedHandle, setFocusedHandle] = React80__namespace.useState(null);
|
|
11390
12044
|
const [rangeMin, rangeMax] = value;
|
|
11391
12045
|
const pctMin = percent3(rangeMin, min, max);
|
|
11392
12046
|
const pctMax = percent3(rangeMax, min, max);
|
|
11393
12047
|
const fmt = (v) => formatValue ? formatValue(v) : `${v}`;
|
|
11394
12048
|
const displayValue = `${fmt(rangeMin)} \u2013 ${fmt(rangeMax)}`;
|
|
11395
|
-
const getValueFromPointer =
|
|
12049
|
+
const getValueFromPointer = React80__namespace.useCallback(
|
|
11396
12050
|
(clientX) => {
|
|
11397
12051
|
const track = trackRef.current;
|
|
11398
12052
|
if (!track) return 0;
|
|
@@ -11403,7 +12057,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11403
12057
|
},
|
|
11404
12058
|
[min, max, step]
|
|
11405
12059
|
);
|
|
11406
|
-
const closestHandle =
|
|
12060
|
+
const closestHandle = React80__namespace.useCallback(
|
|
11407
12061
|
(pointerValue) => {
|
|
11408
12062
|
const distMin = Math.abs(pointerValue - rangeMin);
|
|
11409
12063
|
const distMax = Math.abs(pointerValue - rangeMax);
|
|
@@ -11411,7 +12065,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11411
12065
|
},
|
|
11412
12066
|
[rangeMin, rangeMax]
|
|
11413
12067
|
);
|
|
11414
|
-
const updateValue =
|
|
12068
|
+
const updateValue = React80__namespace.useCallback(
|
|
11415
12069
|
(handle, newVal) => {
|
|
11416
12070
|
if (handle === 0) {
|
|
11417
12071
|
const clamped = clamp4(newVal, min, rangeMax);
|
|
@@ -11423,7 +12077,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11423
12077
|
},
|
|
11424
12078
|
[min, max, rangeMin, rangeMax, onValueChange]
|
|
11425
12079
|
);
|
|
11426
|
-
const handlePointerDown =
|
|
12080
|
+
const handlePointerDown = React80__namespace.useCallback(
|
|
11427
12081
|
(e) => {
|
|
11428
12082
|
if (disabled) return;
|
|
11429
12083
|
e.preventDefault();
|
|
@@ -11435,7 +12089,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11435
12089
|
},
|
|
11436
12090
|
[disabled, getValueFromPointer, closestHandle, updateValue]
|
|
11437
12091
|
);
|
|
11438
|
-
const handlePointerMove =
|
|
12092
|
+
const handlePointerMove = React80__namespace.useCallback(
|
|
11439
12093
|
(e) => {
|
|
11440
12094
|
if (draggingHandle === null || disabled) return;
|
|
11441
12095
|
const newVal = getValueFromPointer(e.clientX);
|
|
@@ -11443,10 +12097,10 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11443
12097
|
},
|
|
11444
12098
|
[draggingHandle, disabled, getValueFromPointer, updateValue]
|
|
11445
12099
|
);
|
|
11446
|
-
const handlePointerUp =
|
|
12100
|
+
const handlePointerUp = React80__namespace.useCallback(() => {
|
|
11447
12101
|
setDraggingHandle(null);
|
|
11448
12102
|
}, []);
|
|
11449
|
-
const makeKeyHandler =
|
|
12103
|
+
const makeKeyHandler = React80__namespace.useCallback(
|
|
11450
12104
|
(handle) => (e) => {
|
|
11451
12105
|
if (disabled) return;
|
|
11452
12106
|
const currentVal = handle === 0 ? rangeMin : rangeMax;
|
|
@@ -11474,7 +12128,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11474
12128
|
},
|
|
11475
12129
|
[disabled, rangeMin, rangeMax, step, min, max, updateValue]
|
|
11476
12130
|
);
|
|
11477
|
-
const tickLabels =
|
|
12131
|
+
const tickLabels = React80__namespace.useMemo(() => {
|
|
11478
12132
|
if (pointLabels) return pointLabels;
|
|
11479
12133
|
const labels = [];
|
|
11480
12134
|
for (let i = 0; i < pointCount; i++) {
|
|
@@ -11512,7 +12166,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11512
12166
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11513
12167
|
"div",
|
|
11514
12168
|
{
|
|
11515
|
-
className: "absolute top-1/2 h-1 -translate-y-1/2 bg-
|
|
12169
|
+
className: "absolute top-1/2 h-1 -translate-y-1/2 bg-informative",
|
|
11516
12170
|
style: { left: `${pctMin}%`, right: `${100 - pctMax}%` }
|
|
11517
12171
|
}
|
|
11518
12172
|
),
|
|
@@ -11591,7 +12245,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11591
12245
|
}
|
|
11592
12246
|
);
|
|
11593
12247
|
SliderRange.displayName = "SliderRange";
|
|
11594
|
-
var SliderRangeInput =
|
|
12248
|
+
var SliderRangeInput = React80__namespace.forwardRef(
|
|
11595
12249
|
(_a, ref) => {
|
|
11596
12250
|
var _b = _a, {
|
|
11597
12251
|
className,
|
|
@@ -11725,7 +12379,7 @@ var Toaster = (_a) => {
|
|
|
11725
12379
|
classNames: {
|
|
11726
12380
|
toast: "group toast group-[.toaster]:bg-sui-bg-default group-[.toaster]:text-sui-text-default group-[.toaster]:border-sui-border-default group-[.toaster]:shadow-modal-sm",
|
|
11727
12381
|
description: "group-[.toast]:text-sui-text-muted",
|
|
11728
|
-
actionButton: "group-[.toast]:bg-sui-bg-state-primary group-[.toast]:text-sui-text-
|
|
12382
|
+
actionButton: "group-[.toast]:bg-sui-bg-state-primary group-[.toast]:text-sui-text-on-primary",
|
|
11729
12383
|
cancelButton: "group-[.toast]:bg-sui-bg-subtle group-[.toast]:text-sui-text-muted"
|
|
11730
12384
|
}
|
|
11731
12385
|
}
|
|
@@ -11733,7 +12387,7 @@ var Toaster = (_a) => {
|
|
|
11733
12387
|
);
|
|
11734
12388
|
};
|
|
11735
12389
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
11736
|
-
var ToastViewport =
|
|
12390
|
+
var ToastViewport = React80__namespace.forwardRef((_a, ref) => {
|
|
11737
12391
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11738
12392
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11739
12393
|
ToastPrimitives__namespace.Viewport,
|
|
@@ -11761,7 +12415,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
11761
12415
|
}
|
|
11762
12416
|
}
|
|
11763
12417
|
);
|
|
11764
|
-
var Toast =
|
|
12418
|
+
var Toast = React80__namespace.forwardRef((_a, ref) => {
|
|
11765
12419
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
11766
12420
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11767
12421
|
ToastPrimitives__namespace.Root,
|
|
@@ -11772,7 +12426,7 @@ var Toast = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11772
12426
|
);
|
|
11773
12427
|
});
|
|
11774
12428
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
11775
|
-
var ToastAction =
|
|
12429
|
+
var ToastAction = React80__namespace.forwardRef((_a, ref) => {
|
|
11776
12430
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11777
12431
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11778
12432
|
ToastPrimitives__namespace.Action,
|
|
@@ -11786,7 +12440,7 @@ var ToastAction = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11786
12440
|
);
|
|
11787
12441
|
});
|
|
11788
12442
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
11789
|
-
var ToastClose =
|
|
12443
|
+
var ToastClose = React80__namespace.forwardRef((_a, ref) => {
|
|
11790
12444
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11791
12445
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11792
12446
|
ToastPrimitives__namespace.Close,
|
|
@@ -11803,7 +12457,7 @@ var ToastClose = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11803
12457
|
);
|
|
11804
12458
|
});
|
|
11805
12459
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
11806
|
-
var ToastTitle =
|
|
12460
|
+
var ToastTitle = React80__namespace.forwardRef((_a, ref) => {
|
|
11807
12461
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11808
12462
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11809
12463
|
ToastPrimitives__namespace.Title,
|
|
@@ -11814,7 +12468,7 @@ var ToastTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11814
12468
|
);
|
|
11815
12469
|
});
|
|
11816
12470
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
11817
|
-
var ToastDescription =
|
|
12471
|
+
var ToastDescription = React80__namespace.forwardRef((_a, ref) => {
|
|
11818
12472
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11819
12473
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11820
12474
|
ToastPrimitives__namespace.Description,
|
|
@@ -11919,8 +12573,8 @@ function toast(_a) {
|
|
|
11919
12573
|
};
|
|
11920
12574
|
}
|
|
11921
12575
|
function useToast() {
|
|
11922
|
-
const [state, setState] =
|
|
11923
|
-
|
|
12576
|
+
const [state, setState] = React80__namespace.useState(memoryState);
|
|
12577
|
+
React80__namespace.useEffect(() => {
|
|
11924
12578
|
listeners.push(setState);
|
|
11925
12579
|
return () => {
|
|
11926
12580
|
const index = listeners.indexOf(setState);
|
|
@@ -11951,7 +12605,7 @@ function Toaster2() {
|
|
|
11951
12605
|
/* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
|
|
11952
12606
|
] });
|
|
11953
12607
|
}
|
|
11954
|
-
var Switch =
|
|
12608
|
+
var Switch = React80__namespace.forwardRef((_a, ref) => {
|
|
11955
12609
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11956
12610
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11957
12611
|
SwitchPrimitives__namespace.Root,
|
|
@@ -12003,10 +12657,10 @@ var Switch = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12003
12657
|
);
|
|
12004
12658
|
});
|
|
12005
12659
|
Switch.displayName = "Switch";
|
|
12006
|
-
var SwitchList =
|
|
12660
|
+
var SwitchList = React80__namespace.forwardRef(
|
|
12007
12661
|
(_a, ref) => {
|
|
12008
12662
|
var _b = _a, { className, divider = true, children } = _b, props = __objRest(_b, ["className", "divider", "children"]);
|
|
12009
|
-
const items =
|
|
12663
|
+
const items = React80__namespace.Children.toArray(children);
|
|
12010
12664
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12011
12665
|
"div",
|
|
12012
12666
|
__spreadProps(__spreadValues({
|
|
@@ -12034,7 +12688,7 @@ var SwitchList = React78__namespace.forwardRef(
|
|
|
12034
12688
|
}
|
|
12035
12689
|
);
|
|
12036
12690
|
SwitchList.displayName = "SwitchList";
|
|
12037
|
-
var SwitchWithText =
|
|
12691
|
+
var SwitchWithText = React80__namespace.forwardRef(
|
|
12038
12692
|
(_a, ref) => {
|
|
12039
12693
|
var _b = _a, {
|
|
12040
12694
|
className,
|
|
@@ -12051,7 +12705,7 @@ var SwitchWithText = React78__namespace.forwardRef(
|
|
|
12051
12705
|
"disabled",
|
|
12052
12706
|
"id"
|
|
12053
12707
|
]);
|
|
12054
|
-
const generatedId =
|
|
12708
|
+
const generatedId = React80__namespace.useId();
|
|
12055
12709
|
const switchId = id || generatedId;
|
|
12056
12710
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12057
12711
|
"div",
|
|
@@ -12108,7 +12762,7 @@ var SwitchWithText = React78__namespace.forwardRef(
|
|
|
12108
12762
|
}
|
|
12109
12763
|
);
|
|
12110
12764
|
SwitchWithText.displayName = "SwitchWithText";
|
|
12111
|
-
var Table =
|
|
12765
|
+
var Table = React80__namespace.forwardRef((_a, ref) => {
|
|
12112
12766
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12113
12767
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12114
12768
|
"table",
|
|
@@ -12119,12 +12773,12 @@ var Table = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12119
12773
|
) });
|
|
12120
12774
|
});
|
|
12121
12775
|
Table.displayName = "Table";
|
|
12122
|
-
var TableHeader =
|
|
12776
|
+
var TableHeader = React80__namespace.forwardRef((_a, ref) => {
|
|
12123
12777
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12124
12778
|
return /* @__PURE__ */ jsxRuntime.jsx("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b [&_tr]:border-sui-border-default", className) }, props));
|
|
12125
12779
|
});
|
|
12126
12780
|
TableHeader.displayName = "TableHeader";
|
|
12127
|
-
var TableBody =
|
|
12781
|
+
var TableBody = React80__namespace.forwardRef((_a, ref) => {
|
|
12128
12782
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12129
12783
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12130
12784
|
"tbody",
|
|
@@ -12135,7 +12789,7 @@ var TableBody = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12135
12789
|
);
|
|
12136
12790
|
});
|
|
12137
12791
|
TableBody.displayName = "TableBody";
|
|
12138
|
-
var TableFooter =
|
|
12792
|
+
var TableFooter = React80__namespace.forwardRef((_a, ref) => {
|
|
12139
12793
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12140
12794
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12141
12795
|
"tfoot",
|
|
@@ -12149,7 +12803,7 @@ var TableFooter = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12149
12803
|
);
|
|
12150
12804
|
});
|
|
12151
12805
|
TableFooter.displayName = "TableFooter";
|
|
12152
|
-
var TableRow =
|
|
12806
|
+
var TableRow = React80__namespace.forwardRef((_a, ref) => {
|
|
12153
12807
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12154
12808
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12155
12809
|
"tr",
|
|
@@ -12163,7 +12817,7 @@ var TableRow = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12163
12817
|
);
|
|
12164
12818
|
});
|
|
12165
12819
|
TableRow.displayName = "TableRow";
|
|
12166
|
-
var TableHead =
|
|
12820
|
+
var TableHead = React80__namespace.forwardRef((_a, ref) => {
|
|
12167
12821
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12168
12822
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12169
12823
|
"th",
|
|
@@ -12177,7 +12831,7 @@ var TableHead = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12177
12831
|
);
|
|
12178
12832
|
});
|
|
12179
12833
|
TableHead.displayName = "TableHead";
|
|
12180
|
-
var TableCell =
|
|
12834
|
+
var TableCell = React80__namespace.forwardRef((_a, ref) => {
|
|
12181
12835
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12182
12836
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12183
12837
|
"td",
|
|
@@ -12188,7 +12842,7 @@ var TableCell = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12188
12842
|
);
|
|
12189
12843
|
});
|
|
12190
12844
|
TableCell.displayName = "TableCell";
|
|
12191
|
-
var TableCaption =
|
|
12845
|
+
var TableCaption = React80__namespace.forwardRef((_a, ref) => {
|
|
12192
12846
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12193
12847
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12194
12848
|
"caption",
|
|
@@ -12224,7 +12878,7 @@ var ariaSortMap2 = {
|
|
|
12224
12878
|
desc: "descending",
|
|
12225
12879
|
none: "none"
|
|
12226
12880
|
};
|
|
12227
|
-
var TableHeaderItem =
|
|
12881
|
+
var TableHeaderItem = React80__namespace.forwardRef(
|
|
12228
12882
|
(_a, ref) => {
|
|
12229
12883
|
var _b = _a, {
|
|
12230
12884
|
className,
|
|
@@ -12340,7 +12994,7 @@ var tableItemVariants = classVarianceAuthority.cva("flex items-center px-2", {
|
|
|
12340
12994
|
size: "lg"
|
|
12341
12995
|
}
|
|
12342
12996
|
});
|
|
12343
|
-
var TableItem =
|
|
12997
|
+
var TableItem = React80__namespace.forwardRef(
|
|
12344
12998
|
(_a, ref) => {
|
|
12345
12999
|
var _b = _a, {
|
|
12346
13000
|
className,
|
|
@@ -12424,7 +13078,7 @@ var TableItem = React78__namespace.forwardRef(
|
|
|
12424
13078
|
}
|
|
12425
13079
|
);
|
|
12426
13080
|
TableItem.displayName = "TableItem";
|
|
12427
|
-
var TablePagination =
|
|
13081
|
+
var TablePagination = React80__namespace.forwardRef(
|
|
12428
13082
|
(_a, ref) => {
|
|
12429
13083
|
var _b = _a, {
|
|
12430
13084
|
className,
|
|
@@ -12511,7 +13165,7 @@ var tableRowSortVariants = classVarianceAuthority.cva(
|
|
|
12511
13165
|
}
|
|
12512
13166
|
}
|
|
12513
13167
|
);
|
|
12514
|
-
var TableRowSort =
|
|
13168
|
+
var TableRowSort = React80__namespace.forwardRef(
|
|
12515
13169
|
(_a, ref) => {
|
|
12516
13170
|
var _b = _a, { className, variant = "default", striped, sticky, children } = _b, props = __objRest(_b, ["className", "variant", "striped", "sticky", "children"]);
|
|
12517
13171
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12534,7 +13188,7 @@ var TableRowSort = React78__namespace.forwardRef(
|
|
|
12534
13188
|
TableRowSort.displayName = "TableRowSort";
|
|
12535
13189
|
var textWidths = ["w-20", "w-28", "w-24", "w-32", "w-16", "w-26", "w-22", "w-30"];
|
|
12536
13190
|
var skeletonBg = "bg-sui-bg-basic-gray-alpha-4";
|
|
12537
|
-
var TableSkeletonRow =
|
|
13191
|
+
var TableSkeletonRow = React80__namespace.forwardRef(
|
|
12538
13192
|
(_a, ref) => {
|
|
12539
13193
|
var _b = _a, { className, columns, rowCount = 5, size = "sm" } = _b, props = __objRest(_b, ["className", "columns", "rowCount", "size"]);
|
|
12540
13194
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className, "aria-hidden": "true" }, props), { children: Array.from({ length: rowCount }, (_, rowIdx) => /* @__PURE__ */ jsxRuntime.jsx(TableRowSort, { variant: "default", children: columns.map((col, colIdx) => {
|
|
@@ -12584,12 +13238,12 @@ var tabListVariants = classVarianceAuthority.cva(
|
|
|
12584
13238
|
}
|
|
12585
13239
|
}
|
|
12586
13240
|
);
|
|
12587
|
-
var TabList =
|
|
13241
|
+
var TabList = React80__namespace.forwardRef((_a, ref) => {
|
|
12588
13242
|
var _b = _a, { className, variant = "pill", shape = "pill", layout, children } = _b, props = __objRest(_b, ["className", "variant", "shape", "layout", "children"]);
|
|
12589
13243
|
const childShape = variant === "segmented" && shape === "rounded" ? "rounded" : shape;
|
|
12590
13244
|
const childRadiusOverride = variant === "segmented" && shape === "rounded" ? "rounded-sm" : void 0;
|
|
12591
|
-
const enhancedChildren =
|
|
12592
|
-
if (!
|
|
13245
|
+
const enhancedChildren = React80__namespace.Children.map(children, (child) => {
|
|
13246
|
+
if (!React80__namespace.isValidElement(child)) return child;
|
|
12593
13247
|
const extraProps = {
|
|
12594
13248
|
shape: childShape
|
|
12595
13249
|
};
|
|
@@ -12597,7 +13251,7 @@ var TabList = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12597
13251
|
const existingClassName = child.props.className;
|
|
12598
13252
|
extraProps.className = cn(existingClassName, childRadiusOverride);
|
|
12599
13253
|
}
|
|
12600
|
-
return
|
|
13254
|
+
return React80__namespace.cloneElement(child, extraProps);
|
|
12601
13255
|
});
|
|
12602
13256
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12603
13257
|
TabsPrimitive4__namespace.List,
|
|
@@ -12659,7 +13313,7 @@ var tabItemVariants = classVarianceAuthority.cva(
|
|
|
12659
13313
|
}
|
|
12660
13314
|
}
|
|
12661
13315
|
);
|
|
12662
|
-
var TabItem =
|
|
13316
|
+
var TabItem = React80__namespace.forwardRef((_a, ref) => {
|
|
12663
13317
|
var _b = _a, { className, shape, size } = _b, props = __objRest(_b, ["className", "shape", "size"]);
|
|
12664
13318
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12665
13319
|
TabsPrimitive4__namespace.Trigger,
|
|
@@ -12671,35 +13325,35 @@ var TabItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12671
13325
|
});
|
|
12672
13326
|
TabItem.displayName = "TabItem";
|
|
12673
13327
|
var Tabs = TabsPrimitive4__namespace.Root;
|
|
12674
|
-
var TabsList =
|
|
13328
|
+
var TabsList = React80__namespace.forwardRef((_a, ref) => {
|
|
12675
13329
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12676
13330
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12677
13331
|
TabsPrimitive4__namespace.List,
|
|
12678
13332
|
__spreadValues({
|
|
12679
13333
|
ref,
|
|
12680
13334
|
className: cn(
|
|
12681
|
-
"inline-flex h-10 items-center justify-center rounded-md bg-sui-bg-
|
|
13335
|
+
"inline-flex h-10 items-center justify-center rounded-md bg-sui-bg-state-soft p-1 text-sui-text-muted",
|
|
12682
13336
|
className
|
|
12683
13337
|
)
|
|
12684
13338
|
}, props)
|
|
12685
13339
|
);
|
|
12686
13340
|
});
|
|
12687
13341
|
TabsList.displayName = TabsPrimitive4__namespace.List.displayName;
|
|
12688
|
-
var TabsTrigger =
|
|
13342
|
+
var TabsTrigger = React80__namespace.forwardRef((_a, ref) => {
|
|
12689
13343
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12690
13344
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12691
13345
|
TabsPrimitive4__namespace.Trigger,
|
|
12692
13346
|
__spreadValues({
|
|
12693
13347
|
ref,
|
|
12694
13348
|
className: cn(
|
|
12695
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-sui-bg-default transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 disabled:text-sui-text-hint disabled:pointer-events-none data-[state=active]:bg-sui-bg-default data-[state=active]:text-sui-text-default data-[state=active]:shadow-
|
|
13349
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-sui-bg-default transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 disabled:text-sui-text-hint disabled:pointer-events-none [@media(hover:hover)]:hover:bg-sui-bg-state-ghost-hover [@media(hover:hover)]:hover:text-sui-text-default data-[state=active]:bg-sui-bg-default data-[state=active]:text-sui-text-default data-[state=active]:shadow-default",
|
|
12696
13350
|
className
|
|
12697
13351
|
)
|
|
12698
13352
|
}, props)
|
|
12699
13353
|
);
|
|
12700
13354
|
});
|
|
12701
13355
|
TabsTrigger.displayName = TabsPrimitive4__namespace.Trigger.displayName;
|
|
12702
|
-
var TabsContent =
|
|
13356
|
+
var TabsContent = React80__namespace.forwardRef((_a, ref) => {
|
|
12703
13357
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12704
13358
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12705
13359
|
TabsPrimitive4__namespace.Content,
|
|
@@ -12743,7 +13397,7 @@ var textAreaContainerVariants = classVarianceAuthority.cva(
|
|
|
12743
13397
|
}
|
|
12744
13398
|
}
|
|
12745
13399
|
);
|
|
12746
|
-
var TextAreaField =
|
|
13400
|
+
var TextAreaField = React80__namespace.forwardRef(
|
|
12747
13401
|
(_a, ref) => {
|
|
12748
13402
|
var _b = _a, {
|
|
12749
13403
|
className,
|
|
@@ -12792,7 +13446,7 @@ var TextAreaField = React78__namespace.forwardRef(
|
|
|
12792
13446
|
"spellCheck",
|
|
12793
13447
|
"autoComplete"
|
|
12794
13448
|
]);
|
|
12795
|
-
const generatedId =
|
|
13449
|
+
const generatedId = React80__namespace.useId();
|
|
12796
13450
|
const textAreaId = id || generatedId;
|
|
12797
13451
|
const captionId = `${textAreaId}-caption`;
|
|
12798
13452
|
const charCountId = `${textAreaId}-charcount`;
|
|
@@ -12800,8 +13454,8 @@ var TextAreaField = React78__namespace.forwardRef(
|
|
|
12800
13454
|
const helperText = hasError ? error : caption;
|
|
12801
13455
|
const hasActionBar = !!(leadActions || tailActions);
|
|
12802
13456
|
const showCount = !!(showCharCount && maxLength);
|
|
12803
|
-
const innerRef =
|
|
12804
|
-
|
|
13457
|
+
const innerRef = React80__namespace.useRef(null);
|
|
13458
|
+
React80__namespace.useImperativeHandle(ref, () => innerRef.current, []);
|
|
12805
13459
|
const focusTextareaOnDecorationClick = (e) => {
|
|
12806
13460
|
var _a2;
|
|
12807
13461
|
if (disabled) return;
|
|
@@ -12818,12 +13472,12 @@ var TextAreaField = React78__namespace.forwardRef(
|
|
|
12818
13472
|
helperText ? captionId : null,
|
|
12819
13473
|
showCount ? charCountId : null
|
|
12820
13474
|
].filter(Boolean).join(" ") || void 0;
|
|
12821
|
-
const [charCount, setCharCount] =
|
|
13475
|
+
const [charCount, setCharCount] = React80__namespace.useState(() => {
|
|
12822
13476
|
if (value !== void 0) return String(value).length;
|
|
12823
13477
|
if (defaultValue !== void 0) return String(defaultValue).length;
|
|
12824
13478
|
return 0;
|
|
12825
13479
|
});
|
|
12826
|
-
|
|
13480
|
+
React80__namespace.useEffect(() => {
|
|
12827
13481
|
if (value !== void 0) {
|
|
12828
13482
|
setCharCount(String(value).length);
|
|
12829
13483
|
}
|
|
@@ -13009,7 +13663,7 @@ var TextAreaField = React78__namespace.forwardRef(
|
|
|
13009
13663
|
}
|
|
13010
13664
|
);
|
|
13011
13665
|
TextAreaField.displayName = "TextAreaField";
|
|
13012
|
-
var Textarea =
|
|
13666
|
+
var Textarea = React80__namespace.forwardRef((_a, ref) => {
|
|
13013
13667
|
var _b = _a, { className, spellCheck } = _b, props = __objRest(_b, ["className", "spellCheck"]);
|
|
13014
13668
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13015
13669
|
"textarea",
|
|
@@ -13062,7 +13716,7 @@ var toggleVariants = classVarianceAuthority.cva(
|
|
|
13062
13716
|
}
|
|
13063
13717
|
}
|
|
13064
13718
|
);
|
|
13065
|
-
var Toggle =
|
|
13719
|
+
var Toggle = React80__namespace.forwardRef((_a, ref) => {
|
|
13066
13720
|
var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
13067
13721
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13068
13722
|
TogglePrimitive__namespace.Root,
|
|
@@ -13074,7 +13728,7 @@ var Toggle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
13074
13728
|
});
|
|
13075
13729
|
Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
|
|
13076
13730
|
function useMergedRef(...refs) {
|
|
13077
|
-
return
|
|
13731
|
+
return React80__namespace.useCallback((node) => {
|
|
13078
13732
|
refs.forEach((ref) => {
|
|
13079
13733
|
if (typeof ref === "function") ref(node);
|
|
13080
13734
|
else if (ref && "current" in ref)
|
|
@@ -13103,13 +13757,13 @@ var chipSizeMap = {
|
|
|
13103
13757
|
xs: "sm",
|
|
13104
13758
|
"2xs": "sm"
|
|
13105
13759
|
};
|
|
13106
|
-
var ToggleGroupContext =
|
|
13760
|
+
var ToggleGroupContext = React80__namespace.createContext(null);
|
|
13107
13761
|
function useToggleGroup() {
|
|
13108
|
-
const ctx =
|
|
13762
|
+
const ctx = React80__namespace.useContext(ToggleGroupContext);
|
|
13109
13763
|
if (!ctx) throw new Error("ToggleGroupItem must be used within a ToggleGroup");
|
|
13110
13764
|
return ctx;
|
|
13111
13765
|
}
|
|
13112
|
-
var ToggleGroup =
|
|
13766
|
+
var ToggleGroup = React80__namespace.forwardRef(
|
|
13113
13767
|
(props, ref) => {
|
|
13114
13768
|
const {
|
|
13115
13769
|
type,
|
|
@@ -13124,16 +13778,16 @@ var ToggleGroup = React78__namespace.forwardRef(
|
|
|
13124
13778
|
const controlledValue = "value" in props ? props.value : void 0;
|
|
13125
13779
|
const defaultValue = "defaultValue" in props ? props.defaultValue : void 0;
|
|
13126
13780
|
const onValueChange = "onValueChange" in props ? props.onValueChange : void 0;
|
|
13127
|
-
const [internalValue, setInternalValue] =
|
|
13781
|
+
const [internalValue, setInternalValue] = React80__namespace.useState(
|
|
13128
13782
|
defaultValue
|
|
13129
13783
|
);
|
|
13130
13784
|
const isControlled = controlledValue !== void 0;
|
|
13131
13785
|
const value = isControlled ? controlledValue : internalValue;
|
|
13132
|
-
const [rovingFocusValue, setRovingFocusValue] =
|
|
13133
|
-
const itemRefs =
|
|
13134
|
-
const itemValues =
|
|
13135
|
-
const [, notifyRegistration] =
|
|
13136
|
-
const isActive =
|
|
13786
|
+
const [rovingFocusValue, setRovingFocusValue] = React80__namespace.useState(null);
|
|
13787
|
+
const itemRefs = React80__namespace.useRef(/* @__PURE__ */ new Map());
|
|
13788
|
+
const itemValues = React80__namespace.useRef([]);
|
|
13789
|
+
const [, notifyRegistration] = React80__namespace.useReducer((x) => x + 1, 0);
|
|
13790
|
+
const isActive = React80__namespace.useCallback(
|
|
13137
13791
|
(itemValue) => {
|
|
13138
13792
|
if (type === "single") return value === itemValue;
|
|
13139
13793
|
if (type === "multiple" && Array.isArray(value)) return value.includes(itemValue);
|
|
@@ -13141,7 +13795,7 @@ var ToggleGroup = React78__namespace.forwardRef(
|
|
|
13141
13795
|
},
|
|
13142
13796
|
[type, value]
|
|
13143
13797
|
);
|
|
13144
|
-
const toggle =
|
|
13798
|
+
const toggle = React80__namespace.useCallback(
|
|
13145
13799
|
(itemValue) => {
|
|
13146
13800
|
if (type === "single") {
|
|
13147
13801
|
const newValue = value === itemValue ? void 0 : itemValue;
|
|
@@ -13185,7 +13839,7 @@ var ToggleGroup = React78__namespace.forwardRef(
|
|
|
13185
13839
|
}
|
|
13186
13840
|
);
|
|
13187
13841
|
ToggleGroup.displayName = "ToggleGroup";
|
|
13188
|
-
var ToggleGroupItem =
|
|
13842
|
+
var ToggleGroupItem = React80__namespace.forwardRef(
|
|
13189
13843
|
(_a, ref) => {
|
|
13190
13844
|
var _b = _a, {
|
|
13191
13845
|
value: itemValue,
|
|
@@ -13220,9 +13874,9 @@ var ToggleGroupItem = React78__namespace.forwardRef(
|
|
|
13220
13874
|
const disabled = ctx.disabled || itemDisabled;
|
|
13221
13875
|
const resolvedSize = bgSize != null ? bgSize : "lg";
|
|
13222
13876
|
const chipSize = chipSizeMap[resolvedSize];
|
|
13223
|
-
const internalRef =
|
|
13877
|
+
const internalRef = React80__namespace.useRef(null);
|
|
13224
13878
|
const mergedRef = useMergedRef(ref, internalRef);
|
|
13225
|
-
|
|
13879
|
+
React80__namespace.useEffect(() => {
|
|
13226
13880
|
const el = internalRef.current;
|
|
13227
13881
|
if (!el) return;
|
|
13228
13882
|
ctx.itemRefs.current.set(itemValue, el);
|
|
@@ -13358,8 +14012,8 @@ var ToggleGroupItem = React78__namespace.forwardRef(
|
|
|
13358
14012
|
"bg-sui-bg-state-ghost text-sui-text-muted [&_svg]:text-icon-default-muted",
|
|
13359
14013
|
"[@media(hover:hover)]:hover:bg-sui-bg-state-ghost-hover [@media(hover:hover)]:hover:text-sui-text-subtle [@media(hover:hover)]:hover:[&_svg]:text-icon-default-subtle",
|
|
13360
14014
|
"active:bg-sui-bg-state-ghost-press",
|
|
13361
|
-
// Selected state
|
|
13362
|
-
active && "bg-sui-bg-badge-blue text-sui-
|
|
14015
|
+
// Selected state — bg-badge-blue has no theme-adaptive equivalent yet (stays a light-blue tint in Neutral Violet); text/icon use the semantic informative token so they shift blue → orange
|
|
14016
|
+
active && "bg-sui-bg-badge-blue text-sui-text-informative [&_svg]:text-sui-text-informative",
|
|
13363
14017
|
// Disabled
|
|
13364
14018
|
disabled && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
13365
14019
|
// Size
|
|
@@ -13439,7 +14093,7 @@ var containedInnerVariants = classVarianceAuthority.cva(
|
|
|
13439
14093
|
"group-hover:bg-sui-bg-state-secondary-hover group-active:bg-sui-bg-state-secondary-press"
|
|
13440
14094
|
]
|
|
13441
14095
|
);
|
|
13442
|
-
var Userbar =
|
|
14096
|
+
var Userbar = React80__namespace.forwardRef(
|
|
13443
14097
|
(_a, ref) => {
|
|
13444
14098
|
var _b = _a, {
|
|
13445
14099
|
className,
|
|
@@ -13548,7 +14202,7 @@ var Userbar = React78__namespace.forwardRef(
|
|
|
13548
14202
|
}
|
|
13549
14203
|
);
|
|
13550
14204
|
Userbar.displayName = "Userbar";
|
|
13551
|
-
var VerticalStepperItem =
|
|
14205
|
+
var VerticalStepperItem = React80__namespace.forwardRef(
|
|
13552
14206
|
(_a, ref) => {
|
|
13553
14207
|
var _b = _a, {
|
|
13554
14208
|
className,
|
|
@@ -13684,7 +14338,7 @@ var VerticalStepperItem = React78__namespace.forwardRef(
|
|
|
13684
14338
|
}
|
|
13685
14339
|
);
|
|
13686
14340
|
VerticalStepperItem.displayName = "VerticalStepperItem";
|
|
13687
|
-
var VerticalStepper =
|
|
14341
|
+
var VerticalStepper = React80__namespace.forwardRef(
|
|
13688
14342
|
(_a, ref) => {
|
|
13689
14343
|
var _b = _a, {
|
|
13690
14344
|
className,
|
|
@@ -13726,7 +14380,10 @@ var VerticalStepper = React78__namespace.forwardRef(
|
|
|
13726
14380
|
"li",
|
|
13727
14381
|
{
|
|
13728
14382
|
"aria-current": state === "current" ? "step" : void 0,
|
|
13729
|
-
className:
|
|
14383
|
+
className: cn(
|
|
14384
|
+
onStepClick && "cursor-pointer",
|
|
14385
|
+
onStepClick && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default focus-visible:rounded-sm"
|
|
14386
|
+
),
|
|
13730
14387
|
onClick: onStepClick ? () => onStepClick(index) : void 0,
|
|
13731
14388
|
onKeyDown: onStepClick ? (e) => {
|
|
13732
14389
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -13783,6 +14440,15 @@ exports.AlertDialogPortal = AlertDialogPortal;
|
|
|
13783
14440
|
exports.AlertDialogTitle = AlertDialogTitle;
|
|
13784
14441
|
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
13785
14442
|
exports.AlertTitle = AlertTitle;
|
|
14443
|
+
exports.Attachment = Attachment;
|
|
14444
|
+
exports.AttachmentAction = AttachmentAction;
|
|
14445
|
+
exports.AttachmentActions = AttachmentActions;
|
|
14446
|
+
exports.AttachmentContent = AttachmentContent;
|
|
14447
|
+
exports.AttachmentDescription = AttachmentDescription;
|
|
14448
|
+
exports.AttachmentGroup = AttachmentGroup;
|
|
14449
|
+
exports.AttachmentMedia = AttachmentMedia;
|
|
14450
|
+
exports.AttachmentTitle = AttachmentTitle;
|
|
14451
|
+
exports.AttachmentTrigger = AttachmentTrigger;
|
|
13786
14452
|
exports.Avatar = Avatar;
|
|
13787
14453
|
exports.AvatarButton = AvatarButton;
|
|
13788
14454
|
exports.AvatarFallback = AvatarFallback;
|
|
@@ -13909,6 +14575,7 @@ exports.Paginator = Paginator;
|
|
|
13909
14575
|
exports.Popover = Popover;
|
|
13910
14576
|
exports.PopoverContent = PopoverContent;
|
|
13911
14577
|
exports.PopoverTrigger = PopoverTrigger;
|
|
14578
|
+
exports.ProductCard = ProductCard;
|
|
13912
14579
|
exports.Progress = Progress;
|
|
13913
14580
|
exports.ProgressBar = ProgressBar;
|
|
13914
14581
|
exports.RadialProgressBar = RadialProgressBar;
|
|
@@ -13974,6 +14641,7 @@ exports.SidebarProvider = SidebarProvider;
|
|
|
13974
14641
|
exports.SidebarRail = SidebarRail;
|
|
13975
14642
|
exports.SidebarSeparator = SidebarSeparator;
|
|
13976
14643
|
exports.SidebarTrigger = SidebarTrigger;
|
|
14644
|
+
exports.SignInCard = SignInCard;
|
|
13977
14645
|
exports.Skeleton = Skeleton;
|
|
13978
14646
|
exports.Slider = Slider;
|
|
13979
14647
|
exports.SliderHandle = SliderHandle;
|
|
@@ -14031,6 +14699,7 @@ exports.Userbar = Userbar;
|
|
|
14031
14699
|
exports.VerticalStepper = VerticalStepper;
|
|
14032
14700
|
exports.VerticalStepperItem = VerticalStepperItem;
|
|
14033
14701
|
exports.accordionItemVariants = accordionItemVariants;
|
|
14702
|
+
exports.attachmentVariants = attachmentVariants;
|
|
14034
14703
|
exports.avatarButtonVariants = avatarButtonVariants;
|
|
14035
14704
|
exports.avatarVariants = avatarVariants;
|
|
14036
14705
|
exports.buttonGroupItemVariants = buttonGroupItemVariants;
|