@maxsteinwender/sort-ui 0.1.1 → 1.0.3
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/LICENSE +1 -0
- package/dist/fonts/remixicon/remixicon.woff2 +0 -0
- package/dist/form.d.mts +28 -0
- package/dist/form.d.ts +28 -0
- package/dist/form.js +203 -0
- package/dist/form.mjs +173 -0
- package/dist/index.d.mts +14 -25
- package/dist/index.d.ts +14 -25
- package/dist/index.js +537 -580
- package/dist/index.mjs +535 -572
- package/dist/styles.css +370 -271
- package/dist/tailwind-preset.js +5 -0
- package/dist/tailwind-preset.mjs +5 -0
- package/package.json +16 -10
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
'use strict';
|
|
2
3
|
|
|
3
|
-
var
|
|
4
|
+
var React77 = require('react');
|
|
4
5
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
5
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
6
7
|
var clsx = require('clsx');
|
|
@@ -9,7 +10,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
9
10
|
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
10
11
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
12
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
12
|
-
var lucideReact = require('lucide-react');
|
|
13
13
|
var reactDayPicker = require('react-day-picker');
|
|
14
14
|
var RechartsPrimitive = require('recharts');
|
|
15
15
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
@@ -23,7 +23,6 @@ var dateFns = require('date-fns');
|
|
|
23
23
|
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
24
24
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
25
25
|
var ProgressPrimitive2 = require('@radix-ui/react-progress');
|
|
26
|
-
var reactHookForm = require('react-hook-form');
|
|
27
26
|
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
28
27
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
29
28
|
var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
|
|
@@ -53,7 +52,7 @@ function _interopNamespace(e) {
|
|
|
53
52
|
return Object.freeze(n);
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
var
|
|
55
|
+
var React77__namespace = /*#__PURE__*/_interopNamespace(React77);
|
|
57
56
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
58
57
|
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
|
59
58
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
@@ -162,7 +161,7 @@ var accordionItemVariants = classVarianceAuthority.cva(
|
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
);
|
|
165
|
-
var AccordionItem =
|
|
164
|
+
var AccordionItem = React77__namespace.forwardRef((_a, ref) => {
|
|
166
165
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
167
166
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
168
167
|
AccordionPrimitive__namespace.Item,
|
|
@@ -173,7 +172,7 @@ var AccordionItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
173
172
|
);
|
|
174
173
|
});
|
|
175
174
|
AccordionItem.displayName = "AccordionItem";
|
|
176
|
-
var AccordionTrigger =
|
|
175
|
+
var AccordionTrigger = React77__namespace.forwardRef((_a, ref) => {
|
|
177
176
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
178
177
|
return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
179
178
|
AccordionPrimitive__namespace.Trigger,
|
|
@@ -182,7 +181,7 @@ var AccordionTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
182
181
|
className: cn(
|
|
183
182
|
"flex flex-1 items-start justify-between gap-sui-8 p-sui-24 cursor-pointer",
|
|
184
183
|
"text-md font-medium leading-6 text-sui-text-default text-left",
|
|
185
|
-
"transition-all",
|
|
184
|
+
"transition-all 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",
|
|
186
185
|
"[&[data-state=open]>div>i]:rotate-180",
|
|
187
186
|
className
|
|
188
187
|
)
|
|
@@ -195,7 +194,7 @@ var AccordionTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
195
194
|
) });
|
|
196
195
|
});
|
|
197
196
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
198
|
-
var AccordionContent =
|
|
197
|
+
var AccordionContent = React77__namespace.forwardRef((_a, ref) => {
|
|
199
198
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
200
199
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
201
200
|
AccordionPrimitive__namespace.Content,
|
|
@@ -227,11 +226,11 @@ var AccordionContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
227
226
|
});
|
|
228
227
|
AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
|
|
229
228
|
var alertVariants = classVarianceAuthority.cva(
|
|
230
|
-
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-
|
|
229
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-sui-text-default",
|
|
231
230
|
{
|
|
232
231
|
variants: {
|
|
233
232
|
variant: {
|
|
234
|
-
default: "bg-
|
|
233
|
+
default: "bg-sui-bg-default text-sui-text-default",
|
|
235
234
|
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
236
235
|
}
|
|
237
236
|
},
|
|
@@ -240,7 +239,7 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
240
239
|
}
|
|
241
240
|
}
|
|
242
241
|
);
|
|
243
|
-
var Alert =
|
|
242
|
+
var Alert = React77__namespace.forwardRef((_a, ref) => {
|
|
244
243
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
245
244
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
246
245
|
"div",
|
|
@@ -252,7 +251,7 @@ var Alert = React78__namespace.forwardRef((_a, ref) => {
|
|
|
252
251
|
);
|
|
253
252
|
});
|
|
254
253
|
Alert.displayName = "Alert";
|
|
255
|
-
var AlertTitle =
|
|
254
|
+
var AlertTitle = React77__namespace.forwardRef((_a, ref) => {
|
|
256
255
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
257
256
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
258
257
|
"h5",
|
|
@@ -263,7 +262,7 @@ var AlertTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
263
262
|
);
|
|
264
263
|
});
|
|
265
264
|
AlertTitle.displayName = "AlertTitle";
|
|
266
|
-
var AlertDescription =
|
|
265
|
+
var AlertDescription = React77__namespace.forwardRef((_a, ref) => {
|
|
267
266
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
268
267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
269
268
|
"div",
|
|
@@ -282,15 +281,15 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
282
281
|
variants: {
|
|
283
282
|
variant: {
|
|
284
283
|
// Primary — Sort UI: bg/state/primary, text/white-default, icon/white-default
|
|
285
|
-
default: "bg-sui-bg-state-primary text-sui-text-white-default [text-shadow:var(--shadow-text)] [&_i]:text-icon-white-default [&_i]:[text-shadow:none] [&_svg]:text-icon-white-default [&_svg]:[text-shadow:none] shadow-
|
|
284
|
+
default: "bg-sui-bg-state-primary text-sui-text-white-default [text-shadow:var(--shadow-text)] [&_i]:text-icon-white-default [&_i]:[text-shadow:none] [&_svg]:text-icon-white-default [&_svg]:[text-shadow:none] shadow-button-default active:shadow-button-press hover:bg-sui-bg-state-primary-hover active:bg-sui-bg-state-primary-press disabled:bg-sui-bg-state-disabled disabled:[text-shadow:none]",
|
|
286
285
|
// Soft — Sort UI: bg/state/soft, text/subtle, icon/default-muted
|
|
287
286
|
secondary: "bg-sui-bg-state-soft text-sui-text-subtle [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted hover:bg-sui-bg-state-soft-hover active:bg-sui-bg-state-soft-press disabled:bg-sui-bg-state-disabled",
|
|
288
287
|
// Secondary — Sort UI: bg/state/secondary, border/darker, text/default, icon/default-muted
|
|
289
|
-
outline: "bg-sui-bg-state-secondary border border-sui-border-darker text-sui-text-default [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted shadow-
|
|
288
|
+
outline: "bg-sui-bg-state-secondary border border-sui-border-darker text-sui-text-default [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted shadow-button-secondary active:shadow-button-secondary-press hover:bg-sui-bg-state-secondary-hover active:bg-sui-bg-state-secondary-press disabled:bg-sui-bg-state-disabled disabled:border-sui-border-default",
|
|
290
289
|
// Ghost — Sort UI: bg/state/ghost, text/default, icon/default-muted
|
|
291
290
|
ghost: "bg-sui-bg-state-ghost text-sui-text-default [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted hover:bg-sui-bg-state-ghost-hover active:bg-sui-bg-state-ghost-press",
|
|
292
291
|
// Destructive — Sort UI: bg/state/destructive, text/white-default, icon/white-default
|
|
293
|
-
destructive: "bg-sui-bg-state-destructive text-sui-text-white-default [text-shadow:var(--shadow-text)] [&_i]:text-icon-white-default [&_i]:[text-shadow:none] [&_svg]:text-icon-white-default [&_svg]:[text-shadow:none] shadow-
|
|
292
|
+
destructive: "bg-sui-bg-state-destructive text-sui-text-white-default [text-shadow:var(--shadow-text)] [&_i]:text-icon-white-default [&_i]:[text-shadow:none] [&_svg]:text-icon-white-default [&_svg]:[text-shadow:none] shadow-button-default active:shadow-button-press hover:bg-sui-bg-state-destructive-hover active:bg-sui-bg-state-destructive-press disabled:bg-sui-bg-state-disabled disabled:[text-shadow:none]",
|
|
294
293
|
// Ghost Muted — Sort UI: bg/state/ghost, text/muted, icon/default-muted
|
|
295
294
|
"ghost-muted": "bg-sui-bg-state-ghost text-sui-text-muted [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted hover:bg-sui-bg-state-ghost-hover active:bg-sui-bg-state-ghost-press"
|
|
296
295
|
},
|
|
@@ -393,7 +392,7 @@ var loadingTextColorMap = {
|
|
|
393
392
|
"ghost-muted": "text-sui-text-muted"
|
|
394
393
|
};
|
|
395
394
|
var loadingShadowVariants = /* @__PURE__ */ new Set(["default", "outline", "destructive"]);
|
|
396
|
-
var Button =
|
|
395
|
+
var Button = React77__namespace.forwardRef(
|
|
397
396
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
398
397
|
(_a, ref) => {
|
|
399
398
|
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"]);
|
|
@@ -464,7 +463,7 @@ Button.displayName = "Button";
|
|
|
464
463
|
var AlertDialog = AlertDialogPrimitive__namespace.Root;
|
|
465
464
|
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
|
466
465
|
var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
467
|
-
var AlertDialogOverlay =
|
|
466
|
+
var AlertDialogOverlay = React77__namespace.forwardRef((_a, ref) => {
|
|
468
467
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
469
468
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
470
469
|
AlertDialogPrimitive__namespace.Overlay,
|
|
@@ -479,7 +478,7 @@ var AlertDialogOverlay = React78__namespace.forwardRef((_a, ref) => {
|
|
|
479
478
|
);
|
|
480
479
|
});
|
|
481
480
|
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
482
|
-
var AlertDialogContent =
|
|
481
|
+
var AlertDialogContent = React77__namespace.forwardRef((_a, ref) => {
|
|
483
482
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
484
483
|
return /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
485
484
|
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
@@ -488,7 +487,7 @@ var AlertDialogContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
488
487
|
__spreadValues({
|
|
489
488
|
ref,
|
|
490
489
|
className: cn(
|
|
491
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-
|
|
490
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-sui-border-default bg-sui-bg-card p-6 shadow-modal-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
492
491
|
className
|
|
493
492
|
)
|
|
494
493
|
}, props)
|
|
@@ -530,7 +529,7 @@ var AlertDialogFooter = (_a) => {
|
|
|
530
529
|
);
|
|
531
530
|
};
|
|
532
531
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
533
|
-
var AlertDialogTitle =
|
|
532
|
+
var AlertDialogTitle = React77__namespace.forwardRef((_a, ref) => {
|
|
534
533
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
535
534
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
536
535
|
AlertDialogPrimitive__namespace.Title,
|
|
@@ -541,18 +540,18 @@ var AlertDialogTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
541
540
|
);
|
|
542
541
|
});
|
|
543
542
|
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
544
|
-
var AlertDialogDescription =
|
|
543
|
+
var AlertDialogDescription = React77__namespace.forwardRef((_a, ref) => {
|
|
545
544
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
546
545
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
547
546
|
AlertDialogPrimitive__namespace.Description,
|
|
548
547
|
__spreadValues({
|
|
549
548
|
ref,
|
|
550
|
-
className: cn("text-sm text-muted
|
|
549
|
+
className: cn("text-sm text-sui-text-muted", className)
|
|
551
550
|
}, props)
|
|
552
551
|
);
|
|
553
552
|
});
|
|
554
553
|
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
555
|
-
var AlertDialogAction =
|
|
554
|
+
var AlertDialogAction = React77__namespace.forwardRef((_a, ref) => {
|
|
556
555
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
557
556
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
558
557
|
AlertDialogPrimitive__namespace.Action,
|
|
@@ -563,7 +562,7 @@ var AlertDialogAction = React78__namespace.forwardRef((_a, ref) => {
|
|
|
563
562
|
);
|
|
564
563
|
});
|
|
565
564
|
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
566
|
-
var AlertDialogCancel =
|
|
565
|
+
var AlertDialogCancel = React77__namespace.forwardRef((_a, ref) => {
|
|
567
566
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
568
567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
569
568
|
AlertDialogPrimitive__namespace.Cancel,
|
|
@@ -602,11 +601,11 @@ var awayIconSize = {
|
|
|
602
601
|
"lg": "14px",
|
|
603
602
|
"default": "16px"
|
|
604
603
|
};
|
|
605
|
-
var StatusBadge =
|
|
604
|
+
var StatusBadge = React77__namespace.forwardRef(
|
|
606
605
|
(_a, ref) => {
|
|
607
606
|
var _b = _a, { variant, size = "default", src, className } = _b, props = __objRest(_b, ["variant", "size", "src", "className"]);
|
|
608
|
-
const [imgError, setImgError] =
|
|
609
|
-
|
|
607
|
+
const [imgError, setImgError] = React77__namespace.useState(false);
|
|
608
|
+
React77__namespace.useEffect(() => {
|
|
610
609
|
setImgError(false);
|
|
611
610
|
}, [src]);
|
|
612
611
|
const sizeClass = containerSize[size];
|
|
@@ -682,7 +681,7 @@ function CompanyContent({
|
|
|
682
681
|
}
|
|
683
682
|
function DotContent({ dotColor }) {
|
|
684
683
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
685
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute inset-[12.5%] rounded-full bg-
|
|
684
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute inset-[12.5%] rounded-full bg-sui-bg-card" }),
|
|
686
685
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("absolute inset-[20.83%] rounded-full", dotColor) })
|
|
687
686
|
] });
|
|
688
687
|
}
|
|
@@ -819,12 +818,12 @@ function extractInitials(value) {
|
|
|
819
818
|
}
|
|
820
819
|
return trimmed.slice(0, 2).toUpperCase();
|
|
821
820
|
}
|
|
822
|
-
var AvatarContext =
|
|
821
|
+
var AvatarContext = React77__namespace.createContext({
|
|
823
822
|
size: "md",
|
|
824
823
|
shape: "circular",
|
|
825
824
|
color: "gray"
|
|
826
825
|
});
|
|
827
|
-
var Avatar =
|
|
826
|
+
var Avatar = React77__namespace.forwardRef((_a, ref) => {
|
|
828
827
|
var _b = _a, {
|
|
829
828
|
className,
|
|
830
829
|
size = "md",
|
|
@@ -967,7 +966,7 @@ var Avatar = React78__namespace.forwardRef((_a, ref) => {
|
|
|
967
966
|
) });
|
|
968
967
|
});
|
|
969
968
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
970
|
-
var AvatarImage =
|
|
969
|
+
var AvatarImage = React77__namespace.forwardRef((_a, ref) => {
|
|
971
970
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
972
971
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
973
972
|
AvatarPrimitive__namespace.Image,
|
|
@@ -978,10 +977,10 @@ var AvatarImage = React78__namespace.forwardRef((_a, ref) => {
|
|
|
978
977
|
);
|
|
979
978
|
});
|
|
980
979
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
981
|
-
var AvatarFallback =
|
|
980
|
+
var AvatarFallback = React77__namespace.forwardRef((_a, ref) => {
|
|
982
981
|
var _b = _a, { className, fallback, children } = _b, props = __objRest(_b, ["className", "fallback", "children"]);
|
|
983
982
|
var _a2, _b2, _c;
|
|
984
|
-
const { size, shape, color } =
|
|
983
|
+
const { size, shape, color } = React77__namespace.useContext(AvatarContext);
|
|
985
984
|
const shapeClass = shape === "rounded" ? "rounded-sm" : "rounded-full";
|
|
986
985
|
const fontClass = (_a2 = initialsFontSize[size]) != null ? _a2 : "text-sm";
|
|
987
986
|
const iconClass = (_b2 = iconSize[size]) != null ? _b2 : "text-lg";
|
|
@@ -1031,7 +1030,7 @@ var avatarButtonVariants = classVarianceAuthority.cva(
|
|
|
1031
1030
|
}
|
|
1032
1031
|
}
|
|
1033
1032
|
);
|
|
1034
|
-
var AvatarButton =
|
|
1033
|
+
var AvatarButton = React77__namespace.forwardRef(
|
|
1035
1034
|
(_a, ref) => {
|
|
1036
1035
|
var _b = _a, {
|
|
1037
1036
|
className,
|
|
@@ -1125,7 +1124,7 @@ var paddingBySize = {
|
|
|
1125
1124
|
"2xl": "pr-sui-10",
|
|
1126
1125
|
"3xl": "pr-sui-12"
|
|
1127
1126
|
};
|
|
1128
|
-
var AvatarGroup =
|
|
1127
|
+
var AvatarGroup = React77__namespace.forwardRef(
|
|
1129
1128
|
(_a, ref) => {
|
|
1130
1129
|
var _b = _a, { className, size = "md", stacking = "last-on-top", items } = _b, props = __objRest(_b, ["className", "size", "stacking", "items"]);
|
|
1131
1130
|
const isFirstOnTop = stacking === "first-on-top";
|
|
@@ -1167,7 +1166,7 @@ var AvatarGroup = React78__namespace.forwardRef(
|
|
|
1167
1166
|
}
|
|
1168
1167
|
);
|
|
1169
1168
|
AvatarGroup.displayName = "AvatarGroup";
|
|
1170
|
-
var AvatarUpload =
|
|
1169
|
+
var AvatarUpload = React77__namespace.forwardRef(
|
|
1171
1170
|
({
|
|
1172
1171
|
src,
|
|
1173
1172
|
alt = "",
|
|
@@ -1231,7 +1230,7 @@ var AvatarUpload = React78__namespace.forwardRef(
|
|
|
1231
1230
|
);
|
|
1232
1231
|
AvatarUpload.displayName = "AvatarUpload";
|
|
1233
1232
|
var controlButtonVariants = classVarianceAuthority.cva(
|
|
1234
|
-
"inline-flex items-center justify-center transition-colors 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:
|
|
1233
|
+
"inline-flex items-center justify-center transition-colors 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_i]:pointer-events-none [&_i]:shrink-0 [&_i]:leading-none",
|
|
1235
1234
|
{
|
|
1236
1235
|
variants: {
|
|
1237
1236
|
variant: {
|
|
@@ -1260,7 +1259,7 @@ var controlButtonVariants = classVarianceAuthority.cva(
|
|
|
1260
1259
|
}
|
|
1261
1260
|
}
|
|
1262
1261
|
);
|
|
1263
|
-
var ControlButton =
|
|
1262
|
+
var ControlButton = React77__namespace.forwardRef(
|
|
1264
1263
|
(_a, ref) => {
|
|
1265
1264
|
var _b = _a, {
|
|
1266
1265
|
className,
|
|
@@ -1422,26 +1421,26 @@ function Badge(_a) {
|
|
|
1422
1421
|
})
|
|
1423
1422
|
);
|
|
1424
1423
|
}
|
|
1425
|
-
var Breadcrumb =
|
|
1424
|
+
var Breadcrumb = React77__namespace.forwardRef((_a, ref) => {
|
|
1426
1425
|
var props = __objRest(_a, []);
|
|
1427
1426
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
|
|
1428
1427
|
});
|
|
1429
1428
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1430
|
-
var BreadcrumbList =
|
|
1429
|
+
var BreadcrumbList = React77__namespace.forwardRef((_a, ref) => {
|
|
1431
1430
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1432
1431
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1433
1432
|
"ol",
|
|
1434
1433
|
__spreadValues({
|
|
1435
1434
|
ref,
|
|
1436
1435
|
className: cn(
|
|
1437
|
-
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted
|
|
1436
|
+
"flex flex-wrap items-center gap-1.5 break-words text-sm text-sui-text-muted sm:gap-2.5",
|
|
1438
1437
|
className
|
|
1439
1438
|
)
|
|
1440
1439
|
}, props)
|
|
1441
1440
|
);
|
|
1442
1441
|
});
|
|
1443
1442
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1444
|
-
var BreadcrumbItem =
|
|
1443
|
+
var BreadcrumbItem = React77__namespace.forwardRef((_a, ref) => {
|
|
1445
1444
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1446
1445
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1447
1446
|
"li",
|
|
@@ -1452,7 +1451,7 @@ var BreadcrumbItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
1452
1451
|
);
|
|
1453
1452
|
});
|
|
1454
1453
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1455
|
-
var BreadcrumbLink =
|
|
1454
|
+
var BreadcrumbLink = React77__namespace.forwardRef((_a, ref) => {
|
|
1456
1455
|
var _b = _a, { asChild, className } = _b, props = __objRest(_b, ["asChild", "className"]);
|
|
1457
1456
|
const Comp = asChild ? reactSlot.Slot : "a";
|
|
1458
1457
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1460,21 +1459,21 @@ var BreadcrumbLink = React78__namespace.forwardRef((_a, ref) => {
|
|
|
1460
1459
|
__spreadValues({
|
|
1461
1460
|
ref,
|
|
1462
1461
|
className: cn(
|
|
1463
|
-
"rounded-sm transition-colors hover:text-
|
|
1462
|
+
"rounded-sm transition-colors hover:text-sui-text-default focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sui-border-highlight",
|
|
1464
1463
|
className
|
|
1465
1464
|
)
|
|
1466
1465
|
}, props)
|
|
1467
1466
|
);
|
|
1468
1467
|
});
|
|
1469
1468
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1470
|
-
var BreadcrumbPage =
|
|
1469
|
+
var BreadcrumbPage = React77__namespace.forwardRef((_a, ref) => {
|
|
1471
1470
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1472
1471
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1473
1472
|
"span",
|
|
1474
1473
|
__spreadValues({
|
|
1475
1474
|
ref,
|
|
1476
1475
|
"aria-current": "page",
|
|
1477
|
-
className: cn("font-normal text-
|
|
1476
|
+
className: cn("font-normal text-sui-text-default", className)
|
|
1478
1477
|
}, props)
|
|
1479
1478
|
);
|
|
1480
1479
|
});
|
|
@@ -1492,9 +1491,9 @@ var BreadcrumbSeparator = (_a) => {
|
|
|
1492
1491
|
__spreadProps(__spreadValues({
|
|
1493
1492
|
role: "presentation",
|
|
1494
1493
|
"aria-hidden": "true",
|
|
1495
|
-
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)
|
|
1494
|
+
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5 [&>i]:text-sm", className)
|
|
1496
1495
|
}, props), {
|
|
1497
|
-
children: children != null ? children : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1496
|
+
children: children != null ? children : /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-right-s-line", "aria-hidden": true })
|
|
1498
1497
|
})
|
|
1499
1498
|
);
|
|
1500
1499
|
};
|
|
@@ -1512,7 +1511,7 @@ var BreadcrumbEllipsis = (_a) => {
|
|
|
1512
1511
|
"aria-hidden": "true",
|
|
1513
1512
|
className: cn("flex h-9 w-9 items-center justify-center", className)
|
|
1514
1513
|
}, props), {
|
|
1515
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1514
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-more-line text-base", "aria-hidden": true })
|
|
1516
1515
|
})
|
|
1517
1516
|
);
|
|
1518
1517
|
};
|
|
@@ -1538,7 +1537,7 @@ function SortBreadcrumb({
|
|
|
1538
1537
|
),
|
|
1539
1538
|
children: items.map((item, index) => {
|
|
1540
1539
|
const isLast = index === items.length - 1;
|
|
1541
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1540
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React77__namespace.Fragment, { children: [
|
|
1542
1541
|
/* @__PURE__ */ jsxRuntime.jsx("li", { className: "inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1543
1542
|
SortBreadcrumbItem,
|
|
1544
1543
|
__spreadProps(__spreadValues({}, item), {
|
|
@@ -1627,7 +1626,7 @@ var verticalChildRadius = {
|
|
|
1627
1626
|
xs: "[&>button:first-child]:rounded-t-md [&>button:last-of-type]:rounded-b-md",
|
|
1628
1627
|
"2xs": "[&>button:first-child]:rounded-t-sm [&>button:last-of-type]:rounded-b-sm"
|
|
1629
1628
|
};
|
|
1630
|
-
var ButtonGroup =
|
|
1629
|
+
var ButtonGroup = React77__namespace.forwardRef(
|
|
1631
1630
|
(_a, ref) => {
|
|
1632
1631
|
var _b = _a, { size = "lg", orientation = "horizontal", className, children } = _b, props = __objRest(_b, ["size", "orientation", "className", "children"]);
|
|
1633
1632
|
const isVertical = orientation === "vertical";
|
|
@@ -1646,9 +1645,9 @@ var ButtonGroup = React78__namespace.forwardRef(
|
|
|
1646
1645
|
className
|
|
1647
1646
|
)
|
|
1648
1647
|
}, props), {
|
|
1649
|
-
children:
|
|
1650
|
-
if (
|
|
1651
|
-
return
|
|
1648
|
+
children: React77__namespace.Children.map(children, (child, index) => {
|
|
1649
|
+
if (React77__namespace.isValidElement(child)) {
|
|
1650
|
+
return React77__namespace.cloneElement(
|
|
1652
1651
|
child,
|
|
1653
1652
|
{
|
|
1654
1653
|
showSeparator: index > 0,
|
|
@@ -1717,7 +1716,7 @@ var badgeClasses = {
|
|
|
1717
1716
|
xs: "text-xs font-medium leading-4 py-sui-2",
|
|
1718
1717
|
"2xs": "text-xs font-medium leading-4 py-0"
|
|
1719
1718
|
};
|
|
1720
|
-
var ButtonGroupItem =
|
|
1719
|
+
var ButtonGroupItem = React77__namespace.forwardRef(
|
|
1721
1720
|
(_a, ref) => {
|
|
1722
1721
|
var _b = _a, {
|
|
1723
1722
|
label,
|
|
@@ -1801,7 +1800,7 @@ var filterButtonVariants = classVarianceAuthority.cva(
|
|
|
1801
1800
|
);
|
|
1802
1801
|
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";
|
|
1803
1802
|
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";
|
|
1804
|
-
var FilterButton =
|
|
1803
|
+
var FilterButton = React77__namespace.forwardRef(
|
|
1805
1804
|
(_a, ref) => {
|
|
1806
1805
|
var _b = _a, {
|
|
1807
1806
|
className,
|
|
@@ -1991,7 +1990,7 @@ var underlineOffsetMap = {
|
|
|
1991
1990
|
md: "after:bottom-0",
|
|
1992
1991
|
lg: "after:bottom-0"
|
|
1993
1992
|
};
|
|
1994
|
-
var LinkButton =
|
|
1993
|
+
var LinkButton = React77__namespace.forwardRef(
|
|
1995
1994
|
(_a, ref) => {
|
|
1996
1995
|
var _b = _a, { className, variant, size, asChild = false, leadIcon, tailIcon, disabled, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "leadIcon", "tailIcon", "disabled", "children"]);
|
|
1997
1996
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
@@ -2037,13 +2036,13 @@ var LinkButton = React78__namespace.forwardRef(
|
|
|
2037
2036
|
);
|
|
2038
2037
|
LinkButton.displayName = "LinkButton";
|
|
2039
2038
|
var socialButtonVariants = classVarianceAuthority.cva(
|
|
2040
|
-
"group inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
2039
|
+
"group inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors 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 [&_i]:pointer-events-none [&_i]:shrink-0 [&_i]:leading-none [&_i]:text-md [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4",
|
|
2041
2040
|
{
|
|
2042
2041
|
variants: {
|
|
2043
2042
|
variant: {
|
|
2044
2043
|
// --sb-bg is a runtime brand slot set via inline style — intentional, not a token violation
|
|
2045
|
-
brand: "bg-[var(--sb-bg
|
|
2046
|
-
secondary: "bg-
|
|
2044
|
+
brand: "bg-[var(--sb-bg,var(--social-brand-default))] text-sui-text-white-default shadow-button-default active:shadow-button-press hover:bg-[color-mix(in_srgb,#fff_15%,var(--sb-bg,var(--social-brand-default)))] active:bg-[color-mix(in_srgb,#fff_25%,var(--sb-bg,var(--social-brand-default)))]",
|
|
2045
|
+
secondary: "bg-sui-bg-default border border-sui-border-darker text-sui-text-default shadow-button-secondary active:shadow-button-secondary-press hover:bg-sui-bg-state-secondary-hover active:bg-sui-bg-state-secondary-press"
|
|
2047
2046
|
},
|
|
2048
2047
|
shape: {
|
|
2049
2048
|
rounded: "rounded-md",
|
|
@@ -2058,15 +2057,15 @@ var socialButtonVariants = classVarianceAuthority.cva(
|
|
|
2058
2057
|
);
|
|
2059
2058
|
var brandMap = {
|
|
2060
2059
|
apple: { icon: "ri-apple-fill", label: "Apple" },
|
|
2061
|
-
facebook: { icon: "ri-facebook-fill", label: "Facebook", bg: "
|
|
2060
|
+
facebook: { icon: "ri-facebook-fill", label: "Facebook", bg: "var(--social-brand-facebook)" },
|
|
2062
2061
|
google: { icon: "ri-google-fill", label: "Google" },
|
|
2063
2062
|
twitter: { icon: "ri-twitter-x-fill", label: "Twitter" },
|
|
2064
|
-
linkedin: { icon: "ri-linkedin-fill", label: "LinkedIn", bg: "
|
|
2065
|
-
dribbble: { icon: "ri-dribbble-fill", label: "Dribbble", bg: "
|
|
2066
|
-
dropbox: { icon: "ri-dropbox-fill", label: "Dropbox", bg: "
|
|
2063
|
+
linkedin: { icon: "ri-linkedin-fill", label: "LinkedIn", bg: "var(--social-brand-linkedin)" },
|
|
2064
|
+
dribbble: { icon: "ri-dribbble-fill", label: "Dribbble", bg: "var(--social-brand-dribbble)" },
|
|
2065
|
+
dropbox: { icon: "ri-dropbox-fill", label: "Dropbox", bg: "var(--social-brand-dropbox)" },
|
|
2067
2066
|
github: { icon: "ri-github-fill", label: "Github" }
|
|
2068
2067
|
};
|
|
2069
|
-
var SocialButton =
|
|
2068
|
+
var SocialButton = React77__namespace.forwardRef(
|
|
2070
2069
|
(_a, ref) => {
|
|
2071
2070
|
var _b = _a, { className, variant, shape, brand, iconOnly, asChild = false, children } = _b, props = __objRest(_b, ["className", "variant", "shape", "brand", "iconOnly", "asChild", "children"]);
|
|
2072
2071
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
@@ -2271,8 +2270,8 @@ function CalendarDayButton(_a) {
|
|
|
2271
2270
|
"modifiers"
|
|
2272
2271
|
]);
|
|
2273
2272
|
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
2274
|
-
const ref =
|
|
2275
|
-
|
|
2273
|
+
const ref = React77__namespace.useRef(null);
|
|
2274
|
+
React77__namespace.useEffect(() => {
|
|
2276
2275
|
var _a2;
|
|
2277
2276
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
2278
2277
|
}, [modifiers.focused]);
|
|
@@ -2323,62 +2322,82 @@ function CalendarDayButton(_a) {
|
|
|
2323
2322
|
);
|
|
2324
2323
|
}
|
|
2325
2324
|
CalendarDayButton.displayName = "CalendarDayButton";
|
|
2326
|
-
var
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2325
|
+
var cardVariants = classVarianceAuthority.cva(
|
|
2326
|
+
"flex flex-col",
|
|
2327
|
+
{
|
|
2328
|
+
variants: {
|
|
2329
|
+
variant: {
|
|
2330
|
+
default: [
|
|
2331
|
+
"bg-sui-bg-card",
|
|
2332
|
+
"border border-sui-border-darker",
|
|
2333
|
+
"shadow-card",
|
|
2334
|
+
"rounded-card-md"
|
|
2335
|
+
],
|
|
2336
|
+
flat: [
|
|
2337
|
+
"bg-transparent"
|
|
2338
|
+
]
|
|
2339
|
+
}
|
|
2340
|
+
},
|
|
2341
|
+
defaultVariants: {
|
|
2342
|
+
variant: "default"
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
);
|
|
2346
|
+
var Card = React77__namespace.forwardRef(
|
|
2347
|
+
(_a, ref) => {
|
|
2348
|
+
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
2349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2350
|
+
"div",
|
|
2351
|
+
__spreadValues({
|
|
2352
|
+
ref,
|
|
2353
|
+
className: cn(cardVariants({ variant }), className)
|
|
2354
|
+
}, props)
|
|
2355
|
+
);
|
|
2356
|
+
}
|
|
2357
|
+
);
|
|
2339
2358
|
Card.displayName = "Card";
|
|
2340
|
-
var CardHeader =
|
|
2359
|
+
var CardHeader = React77__namespace.forwardRef((_a, ref) => {
|
|
2341
2360
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2342
2361
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2343
2362
|
"div",
|
|
2344
2363
|
__spreadValues({
|
|
2345
2364
|
ref,
|
|
2346
|
-
className: cn("flex flex-col
|
|
2365
|
+
className: cn("flex flex-col gap-1.5 p-6", className)
|
|
2347
2366
|
}, props)
|
|
2348
2367
|
);
|
|
2349
2368
|
});
|
|
2350
2369
|
CardHeader.displayName = "CardHeader";
|
|
2351
|
-
var CardTitle =
|
|
2370
|
+
var CardTitle = React77__namespace.forwardRef((_a, ref) => {
|
|
2352
2371
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2353
2372
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2354
2373
|
"div",
|
|
2355
2374
|
__spreadValues({
|
|
2356
2375
|
ref,
|
|
2357
2376
|
className: cn(
|
|
2358
|
-
"text-
|
|
2377
|
+
"text-base font-medium leading-6 text-sui-text-default",
|
|
2359
2378
|
className
|
|
2360
2379
|
)
|
|
2361
2380
|
}, props)
|
|
2362
2381
|
);
|
|
2363
2382
|
});
|
|
2364
2383
|
CardTitle.displayName = "CardTitle";
|
|
2365
|
-
var CardDescription =
|
|
2384
|
+
var CardDescription = React77__namespace.forwardRef((_a, ref) => {
|
|
2366
2385
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2367
2386
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2368
2387
|
"div",
|
|
2369
2388
|
__spreadValues({
|
|
2370
2389
|
ref,
|
|
2371
|
-
className: cn("text-sm text-muted
|
|
2390
|
+
className: cn("text-sm font-normal leading-5 text-sui-text-muted", className)
|
|
2372
2391
|
}, props)
|
|
2373
2392
|
);
|
|
2374
2393
|
});
|
|
2375
2394
|
CardDescription.displayName = "CardDescription";
|
|
2376
|
-
var CardContent =
|
|
2395
|
+
var CardContent = React77__namespace.forwardRef((_a, ref) => {
|
|
2377
2396
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2378
2397
|
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
|
|
2379
2398
|
});
|
|
2380
2399
|
CardContent.displayName = "CardContent";
|
|
2381
|
-
var CardFooter =
|
|
2400
|
+
var CardFooter = React77__namespace.forwardRef((_a, ref) => {
|
|
2382
2401
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2383
2402
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2384
2403
|
"div",
|
|
@@ -2389,18 +2408,38 @@ var CardFooter = React78__namespace.forwardRef((_a, ref) => {
|
|
|
2389
2408
|
);
|
|
2390
2409
|
});
|
|
2391
2410
|
CardFooter.displayName = "CardFooter";
|
|
2411
|
+
var CardCover = React77__namespace.forwardRef(
|
|
2412
|
+
(_a, ref) => {
|
|
2413
|
+
var _b = _a, { className, flush = false, aspectRatio = "3/2", style, children } = _b, props = __objRest(_b, ["className", "flush", "aspectRatio", "style", "children"]);
|
|
2414
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2415
|
+
"div",
|
|
2416
|
+
__spreadProps(__spreadValues({
|
|
2417
|
+
ref,
|
|
2418
|
+
className: cn(
|
|
2419
|
+
"relative w-full shrink-0 overflow-hidden",
|
|
2420
|
+
flush ? "rounded-t-card-md" : "rounded-card-xs border border-sui-border-darker shadow-default",
|
|
2421
|
+
className
|
|
2422
|
+
),
|
|
2423
|
+
style: __spreadValues({ aspectRatio }, style)
|
|
2424
|
+
}, props), {
|
|
2425
|
+
children
|
|
2426
|
+
})
|
|
2427
|
+
);
|
|
2428
|
+
}
|
|
2429
|
+
);
|
|
2430
|
+
CardCover.displayName = "CardCover";
|
|
2392
2431
|
var THEMES = { light: "", dark: ".dark" };
|
|
2393
|
-
var ChartContext =
|
|
2432
|
+
var ChartContext = React77__namespace.createContext(null);
|
|
2394
2433
|
function useChart() {
|
|
2395
|
-
const context =
|
|
2434
|
+
const context = React77__namespace.useContext(ChartContext);
|
|
2396
2435
|
if (!context) {
|
|
2397
2436
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
2398
2437
|
}
|
|
2399
2438
|
return context;
|
|
2400
2439
|
}
|
|
2401
|
-
var ChartContainer =
|
|
2440
|
+
var ChartContainer = React77__namespace.forwardRef((_a, ref) => {
|
|
2402
2441
|
var _b = _a, { id, className, children, config } = _b, props = __objRest(_b, ["id", "className", "children", "config"]);
|
|
2403
|
-
const uniqueId =
|
|
2442
|
+
const uniqueId = React77__namespace.useId();
|
|
2404
2443
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
2405
2444
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2406
2445
|
"div",
|
|
@@ -2447,7 +2486,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
2447
2486
|
);
|
|
2448
2487
|
};
|
|
2449
2488
|
var ChartTooltip = RechartsPrimitive__namespace.Tooltip;
|
|
2450
|
-
var ChartTooltipContent =
|
|
2489
|
+
var ChartTooltipContent = React77__namespace.forwardRef(
|
|
2451
2490
|
({
|
|
2452
2491
|
active,
|
|
2453
2492
|
payload,
|
|
@@ -2464,7 +2503,7 @@ var ChartTooltipContent = React78__namespace.forwardRef(
|
|
|
2464
2503
|
labelKey
|
|
2465
2504
|
}, ref) => {
|
|
2466
2505
|
const { config } = useChart();
|
|
2467
|
-
const tooltipLabel =
|
|
2506
|
+
const tooltipLabel = React77__namespace.useMemo(() => {
|
|
2468
2507
|
var _a;
|
|
2469
2508
|
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
2470
2509
|
return null;
|
|
@@ -2561,7 +2600,7 @@ var ChartTooltipContent = React78__namespace.forwardRef(
|
|
|
2561
2600
|
);
|
|
2562
2601
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
2563
2602
|
var ChartLegend = RechartsPrimitive__namespace.Legend;
|
|
2564
|
-
var ChartLegendContent =
|
|
2603
|
+
var ChartLegendContent = React77__namespace.forwardRef(
|
|
2565
2604
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
2566
2605
|
const { config } = useChart();
|
|
2567
2606
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
@@ -2680,7 +2719,7 @@ var checkboxVariants = classVarianceAuthority.cva(
|
|
|
2680
2719
|
}
|
|
2681
2720
|
}
|
|
2682
2721
|
);
|
|
2683
|
-
var Checkbox =
|
|
2722
|
+
var Checkbox = React77__namespace.forwardRef((_a, ref) => {
|
|
2684
2723
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
2685
2724
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2686
2725
|
CheckboxPrimitive__namespace.Root,
|
|
@@ -2801,7 +2840,7 @@ var checkboxCardVariants = classVarianceAuthority.cva(
|
|
|
2801
2840
|
}
|
|
2802
2841
|
}
|
|
2803
2842
|
);
|
|
2804
|
-
var CheckboxCard =
|
|
2843
|
+
var CheckboxCard = React77__namespace.forwardRef(
|
|
2805
2844
|
({
|
|
2806
2845
|
title,
|
|
2807
2846
|
description,
|
|
@@ -2815,7 +2854,7 @@ var CheckboxCard = React78__namespace.forwardRef(
|
|
|
2815
2854
|
disabled = false,
|
|
2816
2855
|
className
|
|
2817
2856
|
}, ref) => {
|
|
2818
|
-
const generatedId =
|
|
2857
|
+
const generatedId = React77__namespace.useId();
|
|
2819
2858
|
const checkboxId = `checkbox-card-${generatedId}`;
|
|
2820
2859
|
const titleId = `checkbox-card-title-${generatedId}`;
|
|
2821
2860
|
const descriptionId = `checkbox-card-desc-${generatedId}`;
|
|
@@ -2911,10 +2950,10 @@ var CheckboxCard = React78__namespace.forwardRef(
|
|
|
2911
2950
|
}
|
|
2912
2951
|
);
|
|
2913
2952
|
CheckboxCard.displayName = "CheckboxCard";
|
|
2914
|
-
var CheckboxList =
|
|
2953
|
+
var CheckboxList = React77__namespace.forwardRef(
|
|
2915
2954
|
(_a, ref) => {
|
|
2916
2955
|
var _b = _a, { className, divider = true, children } = _b, props = __objRest(_b, ["className", "divider", "children"]);
|
|
2917
|
-
const items =
|
|
2956
|
+
const items = React77__namespace.Children.toArray(children);
|
|
2918
2957
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2919
2958
|
"div",
|
|
2920
2959
|
__spreadProps(__spreadValues({
|
|
@@ -2956,7 +2995,7 @@ var checkboxWithTextVariants = classVarianceAuthority.cva(
|
|
|
2956
2995
|
}
|
|
2957
2996
|
}
|
|
2958
2997
|
);
|
|
2959
|
-
var CheckboxWithText =
|
|
2998
|
+
var CheckboxWithText = React77__namespace.forwardRef(
|
|
2960
2999
|
({
|
|
2961
3000
|
label,
|
|
2962
3001
|
description,
|
|
@@ -2969,7 +3008,7 @@ var CheckboxWithText = React78__namespace.forwardRef(
|
|
|
2969
3008
|
className,
|
|
2970
3009
|
id
|
|
2971
3010
|
}, ref) => {
|
|
2972
|
-
const generatedId =
|
|
3011
|
+
const generatedId = React77__namespace.useId();
|
|
2973
3012
|
const checkboxId = id || generatedId;
|
|
2974
3013
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2975
3014
|
"div",
|
|
@@ -3117,7 +3156,7 @@ var labelClasses2 = {
|
|
|
3117
3156
|
md: "text-sm font-medium leading-5",
|
|
3118
3157
|
sm: "text-xs font-medium leading-4"
|
|
3119
3158
|
};
|
|
3120
|
-
var Chip =
|
|
3159
|
+
var Chip = React77__namespace.forwardRef(
|
|
3121
3160
|
(_a, ref) => {
|
|
3122
3161
|
var _b = _a, {
|
|
3123
3162
|
label,
|
|
@@ -3146,7 +3185,7 @@ var Chip = React78__namespace.forwardRef(
|
|
|
3146
3185
|
"className",
|
|
3147
3186
|
"onClick"
|
|
3148
3187
|
]);
|
|
3149
|
-
const [internalSelected, setInternalSelected] =
|
|
3188
|
+
const [internalSelected, setInternalSelected] = React77__namespace.useState(false);
|
|
3150
3189
|
const isControlled = controlledSelected !== void 0;
|
|
3151
3190
|
const selected = isControlled ? controlledSelected : internalSelected;
|
|
3152
3191
|
const handleClick = (e) => {
|
|
@@ -3235,7 +3274,7 @@ var badgeStyles = [
|
|
|
3235
3274
|
"bg-sui-bg-state-soft border border-sui-border-darker rounded-xs",
|
|
3236
3275
|
"text-sui-text-subtle text-xs font-medium leading-4"
|
|
3237
3276
|
].join(" ");
|
|
3238
|
-
var TooltipContent =
|
|
3277
|
+
var TooltipContent = React77__namespace.forwardRef((_a, ref) => {
|
|
3239
3278
|
var _b = _a, { className, variant = "default", weight = "subtle", shortcut, sideOffset = 4, children } = _b, props = __objRest(_b, ["className", "variant", "weight", "shortcut", "sideOffset", "children"]);
|
|
3240
3279
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3241
3280
|
TooltipPrimitive__namespace.Content,
|
|
@@ -3271,7 +3310,7 @@ var underlineTabsListVariants = classVarianceAuthority.cva(
|
|
|
3271
3310
|
}
|
|
3272
3311
|
}
|
|
3273
3312
|
);
|
|
3274
|
-
var UnderlineTabsList =
|
|
3313
|
+
var UnderlineTabsList = React77__namespace.forwardRef((_a, ref) => {
|
|
3275
3314
|
var _b = _a, { className, layout, size } = _b, props = __objRest(_b, ["className", "layout", "size"]);
|
|
3276
3315
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3277
3316
|
TabsPrimitive4__namespace.List,
|
|
@@ -3318,7 +3357,7 @@ var underlineTabItemVariants = classVarianceAuthority.cva(
|
|
|
3318
3357
|
}
|
|
3319
3358
|
}
|
|
3320
3359
|
);
|
|
3321
|
-
var UnderlineTabItem =
|
|
3360
|
+
var UnderlineTabItem = React77__namespace.forwardRef(
|
|
3322
3361
|
(_a, ref) => {
|
|
3323
3362
|
var _b = _a, {
|
|
3324
3363
|
className,
|
|
@@ -3356,7 +3395,7 @@ var UnderlineTabItem = React78__namespace.forwardRef(
|
|
|
3356
3395
|
);
|
|
3357
3396
|
UnderlineTabItem.displayName = "UnderlineTabItem";
|
|
3358
3397
|
var DEFAULT_LANGUAGES = ["React", "JavaScript", "TypeScript", "Next.js"];
|
|
3359
|
-
var CodeBlock =
|
|
3398
|
+
var CodeBlock = React77__namespace.forwardRef(
|
|
3360
3399
|
(_a, ref) => {
|
|
3361
3400
|
var _b = _a, {
|
|
3362
3401
|
className,
|
|
@@ -3386,10 +3425,10 @@ var CodeBlock = React78__namespace.forwardRef(
|
|
|
3386
3425
|
"showLineNumbers"
|
|
3387
3426
|
]);
|
|
3388
3427
|
var _a2, _b2, _c, _d, _e, _f;
|
|
3389
|
-
const [activeTab, setActiveTab] =
|
|
3390
|
-
const [copied, setCopied] =
|
|
3428
|
+
const [activeTab, setActiveTab] = React77__namespace.useState((_b2 = (_a2 = tabs == null ? void 0 : tabs[0]) == null ? void 0 : _a2.label) != null ? _b2 : "");
|
|
3429
|
+
const [copied, setCopied] = React77__namespace.useState(false);
|
|
3391
3430
|
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;
|
|
3392
|
-
const handleCopy =
|
|
3431
|
+
const handleCopy = React77__namespace.useCallback(() => {
|
|
3393
3432
|
if (onCopy) {
|
|
3394
3433
|
onCopy();
|
|
3395
3434
|
} else {
|
|
@@ -3580,7 +3619,7 @@ var Dialog = DialogPrimitive__namespace.Root;
|
|
|
3580
3619
|
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
3581
3620
|
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
3582
3621
|
var DialogClose = DialogPrimitive__namespace.Close;
|
|
3583
|
-
var DialogOverlay =
|
|
3622
|
+
var DialogOverlay = React77__namespace.forwardRef((_a, ref) => {
|
|
3584
3623
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3585
3624
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3586
3625
|
DialogPrimitive__namespace.Overlay,
|
|
@@ -3594,7 +3633,7 @@ var DialogOverlay = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3594
3633
|
);
|
|
3595
3634
|
});
|
|
3596
3635
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
3597
|
-
var DialogContent =
|
|
3636
|
+
var DialogContent = React77__namespace.forwardRef((_a, ref) => {
|
|
3598
3637
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
3599
3638
|
return /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
3600
3639
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
@@ -3603,14 +3642,14 @@ var DialogContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3603
3642
|
__spreadProps(__spreadValues({
|
|
3604
3643
|
ref,
|
|
3605
3644
|
className: cn(
|
|
3606
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-
|
|
3645
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-sui-border-default bg-sui-bg-card p-6 shadow-modal-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
3607
3646
|
className
|
|
3608
3647
|
)
|
|
3609
3648
|
}, props), {
|
|
3610
3649
|
children: [
|
|
3611
3650
|
children,
|
|
3612
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-
|
|
3613
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3651
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-sui-bg-default transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-sui-border-highlight focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-sui-bg-state-ghost-hover data-[state=open]:text-sui-text-muted", children: [
|
|
3652
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-close-line text-base", "aria-hidden": true }),
|
|
3614
3653
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
3615
3654
|
] })
|
|
3616
3655
|
]
|
|
@@ -3653,7 +3692,7 @@ var DialogFooter = (_a) => {
|
|
|
3653
3692
|
);
|
|
3654
3693
|
};
|
|
3655
3694
|
DialogFooter.displayName = "DialogFooter";
|
|
3656
|
-
var DialogTitle =
|
|
3695
|
+
var DialogTitle = React77__namespace.forwardRef((_a, ref) => {
|
|
3657
3696
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3658
3697
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3659
3698
|
DialogPrimitive__namespace.Title,
|
|
@@ -3667,25 +3706,25 @@ var DialogTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3667
3706
|
);
|
|
3668
3707
|
});
|
|
3669
3708
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3670
|
-
var DialogDescription =
|
|
3709
|
+
var DialogDescription = React77__namespace.forwardRef((_a, ref) => {
|
|
3671
3710
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3672
3711
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3673
3712
|
DialogPrimitive__namespace.Description,
|
|
3674
3713
|
__spreadValues({
|
|
3675
3714
|
ref,
|
|
3676
|
-
className: cn("text-sm text-muted
|
|
3715
|
+
className: cn("text-sm text-sui-text-muted", className)
|
|
3677
3716
|
}, props)
|
|
3678
3717
|
);
|
|
3679
3718
|
});
|
|
3680
3719
|
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3681
|
-
var Command =
|
|
3720
|
+
var Command = React77__namespace.forwardRef((_a, ref) => {
|
|
3682
3721
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3683
3722
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3684
3723
|
cmdk.Command,
|
|
3685
3724
|
__spreadValues({
|
|
3686
3725
|
ref,
|
|
3687
3726
|
className: cn(
|
|
3688
|
-
"flex h-full w-full flex-col overflow-hidden rounded-
|
|
3727
|
+
"flex h-full w-full flex-col overflow-hidden rounded-xl bg-sui-bg-card text-sui-text-default",
|
|
3689
3728
|
className
|
|
3690
3729
|
)
|
|
3691
3730
|
}, props)
|
|
@@ -3694,18 +3733,18 @@ var Command = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3694
3733
|
Command.displayName = cmdk.Command.displayName;
|
|
3695
3734
|
var CommandDialog = (_a) => {
|
|
3696
3735
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3697
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: "overflow-hidden p-0 shadow-
|
|
3736
|
+
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 }) }) }));
|
|
3698
3737
|
};
|
|
3699
|
-
var CommandInput =
|
|
3738
|
+
var CommandInput = React77__namespace.forwardRef((_a, ref) => {
|
|
3700
3739
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3701
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
3702
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3740
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b border-sui-border-default px-3", "cmdk-input-wrapper": "", children: [
|
|
3741
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-search-line mr-2 shrink-0 text-icon-default-muted" }),
|
|
3703
3742
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3704
3743
|
cmdk.Command.Input,
|
|
3705
3744
|
__spreadValues({
|
|
3706
3745
|
ref,
|
|
3707
3746
|
className: cn(
|
|
3708
|
-
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-
|
|
3747
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm text-sui-text-default outline-none placeholder:text-sui-text-hint disabled:cursor-not-allowed disabled:text-sui-text-hint disabled:pointer-events-none",
|
|
3709
3748
|
className
|
|
3710
3749
|
)
|
|
3711
3750
|
}, props)
|
|
@@ -3713,7 +3752,7 @@ var CommandInput = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3713
3752
|
] });
|
|
3714
3753
|
});
|
|
3715
3754
|
CommandInput.displayName = cmdk.Command.Input.displayName;
|
|
3716
|
-
var CommandList =
|
|
3755
|
+
var CommandList = React77__namespace.forwardRef((_a, ref) => {
|
|
3717
3756
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3718
3757
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3719
3758
|
cmdk.Command.List,
|
|
@@ -3724,47 +3763,50 @@ var CommandList = React78__namespace.forwardRef((_a, ref) => {
|
|
|
3724
3763
|
);
|
|
3725
3764
|
});
|
|
3726
3765
|
CommandList.displayName = cmdk.Command.List.displayName;
|
|
3727
|
-
var CommandEmpty =
|
|
3766
|
+
var CommandEmpty = React77__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3728
3767
|
cmdk.Command.Empty,
|
|
3729
3768
|
__spreadValues({
|
|
3730
3769
|
ref,
|
|
3731
|
-
className: "py-6 text-center text-sm"
|
|
3770
|
+
className: "py-6 text-center text-sm text-sui-text-subtle"
|
|
3732
3771
|
}, props)
|
|
3733
3772
|
));
|
|
3734
3773
|
CommandEmpty.displayName = cmdk.Command.Empty.displayName;
|
|
3735
|
-
var CommandGroup =
|
|
3774
|
+
var CommandGroup = React77__namespace.forwardRef((_a, ref) => {
|
|
3736
3775
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3737
3776
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3738
3777
|
cmdk.Command.Group,
|
|
3739
3778
|
__spreadValues({
|
|
3740
3779
|
ref,
|
|
3741
3780
|
className: cn(
|
|
3742
|
-
"overflow-hidden p-1 text-
|
|
3781
|
+
"overflow-hidden p-1 text-sui-text-default [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-sui-text-hint",
|
|
3743
3782
|
className
|
|
3744
3783
|
)
|
|
3745
3784
|
}, props)
|
|
3746
3785
|
);
|
|
3747
3786
|
});
|
|
3748
3787
|
CommandGroup.displayName = cmdk.Command.Group.displayName;
|
|
3749
|
-
var CommandSeparator =
|
|
3788
|
+
var CommandSeparator = React77__namespace.forwardRef((_a, ref) => {
|
|
3750
3789
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3751
3790
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3752
3791
|
cmdk.Command.Separator,
|
|
3753
3792
|
__spreadValues({
|
|
3754
3793
|
ref,
|
|
3755
|
-
className: cn("-mx-1 h-px bg-border", className)
|
|
3794
|
+
className: cn("-mx-1 h-px bg-sui-border-default", className)
|
|
3756
3795
|
}, props)
|
|
3757
3796
|
);
|
|
3758
3797
|
});
|
|
3759
3798
|
CommandSeparator.displayName = cmdk.Command.Separator.displayName;
|
|
3760
|
-
var CommandItem =
|
|
3799
|
+
var CommandItem = React77__namespace.forwardRef((_a, ref) => {
|
|
3761
3800
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3762
3801
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3763
3802
|
cmdk.Command.Item,
|
|
3764
3803
|
__spreadValues({
|
|
3765
3804
|
ref,
|
|
3766
3805
|
className: cn(
|
|
3767
|
-
"relative flex cursor-default gap-2 select-none items-center rounded-
|
|
3806
|
+
"relative flex cursor-default gap-2 select-none items-center rounded-md px-2 py-1.5 text-sm text-sui-text-default outline-none transition-colors",
|
|
3807
|
+
"data-[selected=true]:bg-sui-bg-state-ghost-hover data-[selected=true]:text-sui-text-default",
|
|
3808
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:text-sui-text-hint",
|
|
3809
|
+
"[&_i]:pointer-events-none [&_i]:shrink-0 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
3768
3810
|
className
|
|
3769
3811
|
)
|
|
3770
3812
|
}, props)
|
|
@@ -3781,7 +3823,7 @@ var CommandShortcut = (_a) => {
|
|
|
3781
3823
|
"span",
|
|
3782
3824
|
__spreadValues({
|
|
3783
3825
|
className: cn(
|
|
3784
|
-
"ml-auto text-xs tracking-widest text-
|
|
3826
|
+
"ml-auto text-xs tracking-widest text-sui-text-hint",
|
|
3785
3827
|
className
|
|
3786
3828
|
)
|
|
3787
3829
|
}, props)
|
|
@@ -3817,7 +3859,7 @@ var sliderHandleVariants = classVarianceAuthority.cva(
|
|
|
3817
3859
|
}
|
|
3818
3860
|
}
|
|
3819
3861
|
);
|
|
3820
|
-
var SliderHandle =
|
|
3862
|
+
var SliderHandle = React77__namespace.forwardRef(
|
|
3821
3863
|
(_a, ref) => {
|
|
3822
3864
|
var _b = _a, { className, state, value, showTooltip = false } = _b, props = __objRest(_b, ["className", "state", "value", "showTooltip"]);
|
|
3823
3865
|
const isDisabled = state === "disabled";
|
|
@@ -3880,7 +3922,7 @@ function buildHistogramPath(data, width, height) {
|
|
|
3880
3922
|
path += ` L ${width} ${height} Z`;
|
|
3881
3923
|
return path;
|
|
3882
3924
|
}
|
|
3883
|
-
var DataRangeSlider =
|
|
3925
|
+
var DataRangeSlider = React77__namespace.forwardRef(
|
|
3884
3926
|
(_a, ref) => {
|
|
3885
3927
|
var _b = _a, {
|
|
3886
3928
|
className,
|
|
@@ -3911,15 +3953,15 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
3911
3953
|
"formatValue",
|
|
3912
3954
|
"onValueChange"
|
|
3913
3955
|
]);
|
|
3914
|
-
const trackRef =
|
|
3915
|
-
const [draggingHandle, setDraggingHandle] =
|
|
3916
|
-
const [focusedHandle, setFocusedHandle] =
|
|
3917
|
-
const clipId =
|
|
3956
|
+
const trackRef = React77__namespace.useRef(null);
|
|
3957
|
+
const [draggingHandle, setDraggingHandle] = React77__namespace.useState(null);
|
|
3958
|
+
const [focusedHandle, setFocusedHandle] = React77__namespace.useState(null);
|
|
3959
|
+
const clipId = React77__namespace.useId();
|
|
3918
3960
|
const [rangeMin, rangeMax] = value;
|
|
3919
3961
|
const pctMin = percent(rangeMin, min, max);
|
|
3920
3962
|
const pctMax = percent(rangeMax, min, max);
|
|
3921
3963
|
const fmt = (v) => formatValue ? formatValue(v) : `${v}`;
|
|
3922
|
-
const getValueFromPointer =
|
|
3964
|
+
const getValueFromPointer = React77__namespace.useCallback(
|
|
3923
3965
|
(clientX) => {
|
|
3924
3966
|
const track = trackRef.current;
|
|
3925
3967
|
if (!track) return 0;
|
|
@@ -3930,7 +3972,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
3930
3972
|
},
|
|
3931
3973
|
[min, max, step]
|
|
3932
3974
|
);
|
|
3933
|
-
const closestHandle =
|
|
3975
|
+
const closestHandle = React77__namespace.useCallback(
|
|
3934
3976
|
(pointerValue) => {
|
|
3935
3977
|
const distMin = Math.abs(pointerValue - rangeMin);
|
|
3936
3978
|
const distMax = Math.abs(pointerValue - rangeMax);
|
|
@@ -3938,7 +3980,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
3938
3980
|
},
|
|
3939
3981
|
[rangeMin, rangeMax]
|
|
3940
3982
|
);
|
|
3941
|
-
const updateValue =
|
|
3983
|
+
const updateValue = React77__namespace.useCallback(
|
|
3942
3984
|
(handle, newVal) => {
|
|
3943
3985
|
if (handle === 0) {
|
|
3944
3986
|
const clamped = clamp(newVal, min, rangeMax);
|
|
@@ -3950,7 +3992,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
3950
3992
|
},
|
|
3951
3993
|
[min, max, rangeMin, rangeMax, onValueChange]
|
|
3952
3994
|
);
|
|
3953
|
-
const handlePointerDown =
|
|
3995
|
+
const handlePointerDown = React77__namespace.useCallback(
|
|
3954
3996
|
(e) => {
|
|
3955
3997
|
if (disabled) return;
|
|
3956
3998
|
e.preventDefault();
|
|
@@ -3962,7 +4004,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
3962
4004
|
},
|
|
3963
4005
|
[disabled, getValueFromPointer, closestHandle, updateValue]
|
|
3964
4006
|
);
|
|
3965
|
-
const handlePointerMove =
|
|
4007
|
+
const handlePointerMove = React77__namespace.useCallback(
|
|
3966
4008
|
(e) => {
|
|
3967
4009
|
if (draggingHandle === null || disabled) return;
|
|
3968
4010
|
const newVal = getValueFromPointer(e.clientX);
|
|
@@ -3970,10 +4012,10 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
3970
4012
|
},
|
|
3971
4013
|
[draggingHandle, disabled, getValueFromPointer, updateValue]
|
|
3972
4014
|
);
|
|
3973
|
-
const handlePointerUp =
|
|
4015
|
+
const handlePointerUp = React77__namespace.useCallback(() => {
|
|
3974
4016
|
setDraggingHandle(null);
|
|
3975
4017
|
}, []);
|
|
3976
|
-
const makeKeyHandler =
|
|
4018
|
+
const makeKeyHandler = React77__namespace.useCallback(
|
|
3977
4019
|
(handle) => (e) => {
|
|
3978
4020
|
if (disabled) return;
|
|
3979
4021
|
const currentVal = handle === 0 ? rangeMin : rangeMax;
|
|
@@ -4001,7 +4043,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4001
4043
|
},
|
|
4002
4044
|
[disabled, rangeMin, rangeMax, step, min, max, updateValue]
|
|
4003
4045
|
);
|
|
4004
|
-
const tickLabels =
|
|
4046
|
+
const tickLabels = React77__namespace.useMemo(() => {
|
|
4005
4047
|
if (pointLabels) return pointLabels;
|
|
4006
4048
|
const labels = [];
|
|
4007
4049
|
for (let i = 0; i < pointCount; i++) {
|
|
@@ -4012,7 +4054,7 @@ var DataRangeSlider = React78__namespace.forwardRef(
|
|
|
4012
4054
|
}, [pointLabels, pointCount, min, max, fmt]);
|
|
4013
4055
|
const chartWidth = 320;
|
|
4014
4056
|
const chartHeight = 32;
|
|
4015
|
-
const histogramPath =
|
|
4057
|
+
const histogramPath = React77__namespace.useMemo(
|
|
4016
4058
|
() => buildHistogramPath(data, chartWidth, chartHeight),
|
|
4017
4059
|
[data]
|
|
4018
4060
|
);
|
|
@@ -4159,7 +4201,7 @@ DataRangeSlider.displayName = "DataRangeSlider";
|
|
|
4159
4201
|
var labelVariants = classVarianceAuthority.cva(
|
|
4160
4202
|
"text-sm font-medium leading-5 text-sui-text-default"
|
|
4161
4203
|
);
|
|
4162
|
-
var Label =
|
|
4204
|
+
var Label = React77__namespace.forwardRef((_a, ref) => {
|
|
4163
4205
|
var _b = _a, { className, required, supportText, tailIcon, children } = _b, props = __objRest(_b, ["className", "required", "supportText", "tailIcon", "children"]);
|
|
4164
4206
|
const hasTail = !!(supportText || tailIcon);
|
|
4165
4207
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4168,7 +4210,7 @@ var Label = React78__namespace.forwardRef((_a, ref) => {
|
|
|
4168
4210
|
ref,
|
|
4169
4211
|
className: cn(
|
|
4170
4212
|
// peer-disabled must be on the outer label — it's the direct sibling of the peer input
|
|
4171
|
-
"inline-flex items-center peer-disabled:cursor-not-allowed peer-disabled:
|
|
4213
|
+
"inline-flex items-center peer-disabled:cursor-not-allowed peer-disabled:text-sui-text-hint",
|
|
4172
4214
|
hasTail ? "w-full justify-between" : "gap-1",
|
|
4173
4215
|
className
|
|
4174
4216
|
)
|
|
@@ -4220,7 +4262,7 @@ var inputContainerVariants = classVarianceAuthority.cva(
|
|
|
4220
4262
|
}
|
|
4221
4263
|
}
|
|
4222
4264
|
);
|
|
4223
|
-
var InputField =
|
|
4265
|
+
var InputField = React77__namespace.forwardRef(
|
|
4224
4266
|
(_a, ref) => {
|
|
4225
4267
|
var _b = _a, {
|
|
4226
4268
|
className,
|
|
@@ -4271,7 +4313,7 @@ var InputField = React78__namespace.forwardRef(
|
|
|
4271
4313
|
"disabled",
|
|
4272
4314
|
"id"
|
|
4273
4315
|
]);
|
|
4274
|
-
const generatedId =
|
|
4316
|
+
const generatedId = React77__namespace.useId();
|
|
4275
4317
|
const inputId = id || generatedId;
|
|
4276
4318
|
const captionId = `${inputId}-caption`;
|
|
4277
4319
|
const hasError = !!error;
|
|
@@ -4451,7 +4493,7 @@ var InputField = React78__namespace.forwardRef(
|
|
|
4451
4493
|
}
|
|
4452
4494
|
);
|
|
4453
4495
|
InputField.displayName = "InputField";
|
|
4454
|
-
var DataRangeSliderInput =
|
|
4496
|
+
var DataRangeSliderInput = React77__namespace.forwardRef(
|
|
4455
4497
|
(_a, ref) => {
|
|
4456
4498
|
var _b = _a, {
|
|
4457
4499
|
className,
|
|
@@ -4571,7 +4613,7 @@ var DataRangeSliderInput = React78__namespace.forwardRef(
|
|
|
4571
4613
|
DataRangeSliderInput.displayName = "DataRangeSliderInput";
|
|
4572
4614
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
4573
4615
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
4574
|
-
var PopoverContent =
|
|
4616
|
+
var PopoverContent = React77__namespace.forwardRef((_a, ref) => {
|
|
4575
4617
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
4576
4618
|
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4577
4619
|
PopoverPrimitive__namespace.Content,
|
|
@@ -4580,7 +4622,7 @@ var PopoverContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
4580
4622
|
align,
|
|
4581
4623
|
sideOffset,
|
|
4582
4624
|
className: cn(
|
|
4583
|
-
"z-50 w-72 rounded-
|
|
4625
|
+
"z-50 w-72 rounded-xl border-none bg-sui-bg-card p-4 text-sui-text-default shadow-modal-sm outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
|
|
4584
4626
|
className
|
|
4585
4627
|
)
|
|
4586
4628
|
}, props)
|
|
@@ -4594,7 +4636,7 @@ function DatePicker({
|
|
|
4594
4636
|
className,
|
|
4595
4637
|
disabled
|
|
4596
4638
|
}) {
|
|
4597
|
-
const [open, setOpen] =
|
|
4639
|
+
const [open, setOpen] = React77__namespace.useState(false);
|
|
4598
4640
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4599
4641
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4600
4642
|
Button,
|
|
@@ -4635,7 +4677,7 @@ function DateRangePicker({
|
|
|
4635
4677
|
className,
|
|
4636
4678
|
disabled
|
|
4637
4679
|
}) {
|
|
4638
|
-
const [open, setOpen] =
|
|
4680
|
+
const [open, setOpen] = React77__namespace.useState(false);
|
|
4639
4681
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4640
4682
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4641
4683
|
Button,
|
|
@@ -4686,7 +4728,7 @@ function DatePickerWithPresets({
|
|
|
4686
4728
|
className,
|
|
4687
4729
|
disabled
|
|
4688
4730
|
}) {
|
|
4689
|
-
const [open, setOpen] =
|
|
4731
|
+
const [open, setOpen] = React77__namespace.useState(false);
|
|
4690
4732
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
4691
4733
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4692
4734
|
Button,
|
|
@@ -4807,7 +4849,7 @@ function RequirementItem({ label, met }) {
|
|
|
4807
4849
|
)
|
|
4808
4850
|
] });
|
|
4809
4851
|
}
|
|
4810
|
-
var InputCaption =
|
|
4852
|
+
var InputCaption = React77__namespace.forwardRef(
|
|
4811
4853
|
(_a, ref) => {
|
|
4812
4854
|
var _b = _a, {
|
|
4813
4855
|
variant = "default",
|
|
@@ -4898,9 +4940,9 @@ var InputCaption = React78__namespace.forwardRef(
|
|
|
4898
4940
|
className
|
|
4899
4941
|
)
|
|
4900
4942
|
}, props), {
|
|
4901
|
-
children:
|
|
4902
|
-
if (!
|
|
4903
|
-
return
|
|
4943
|
+
children: React77__namespace.Children.map(children, (child) => {
|
|
4944
|
+
if (!React77__namespace.isValidElement(child)) return child;
|
|
4945
|
+
return React77__namespace.cloneElement(child, {
|
|
4904
4946
|
className: cn(
|
|
4905
4947
|
"flex-1",
|
|
4906
4948
|
child.props.className
|
|
@@ -5170,38 +5212,38 @@ function DatePickerInput({
|
|
|
5170
5212
|
disabled = false,
|
|
5171
5213
|
className
|
|
5172
5214
|
}) {
|
|
5173
|
-
const [calendarOpen, setCalendarOpen] =
|
|
5215
|
+
const [calendarOpen, setCalendarOpen] = React77__namespace.useState(false);
|
|
5174
5216
|
const hasError = !!error;
|
|
5175
5217
|
const helperText = hasError ? error : caption;
|
|
5176
5218
|
const singleSegments = dateToSegments(date);
|
|
5177
|
-
const [singleDay, setSingleDay] =
|
|
5178
|
-
const [singleMonth, setSingleMonth] =
|
|
5179
|
-
const [singleYear, setSingleYear] =
|
|
5219
|
+
const [singleDay, setSingleDay] = React77__namespace.useState(singleSegments.day);
|
|
5220
|
+
const [singleMonth, setSingleMonth] = React77__namespace.useState(singleSegments.month);
|
|
5221
|
+
const [singleYear, setSingleYear] = React77__namespace.useState(singleSegments.year);
|
|
5180
5222
|
const startSegments = dateToSegments(dateRange == null ? void 0 : dateRange.from);
|
|
5181
5223
|
const endSegments = dateToSegments(dateRange == null ? void 0 : dateRange.to);
|
|
5182
|
-
const [startDay, setStartDay] =
|
|
5183
|
-
const [startMonth, setStartMonth] =
|
|
5184
|
-
const [startYear, setStartYear] =
|
|
5185
|
-
const [endDay, setEndDay] =
|
|
5186
|
-
const [endMonth, setEndMonth] =
|
|
5187
|
-
const [endYear, setEndYear] =
|
|
5188
|
-
const singleDayRef =
|
|
5189
|
-
const singleMonthRef =
|
|
5190
|
-
const singleYearRef =
|
|
5191
|
-
const startDayRef =
|
|
5192
|
-
const startMonthRef =
|
|
5193
|
-
const startYearRef =
|
|
5194
|
-
const endDayRef =
|
|
5195
|
-
const endMonthRef =
|
|
5196
|
-
const endYearRef =
|
|
5197
|
-
const calendarIconRef =
|
|
5198
|
-
|
|
5224
|
+
const [startDay, setStartDay] = React77__namespace.useState(startSegments.day);
|
|
5225
|
+
const [startMonth, setStartMonth] = React77__namespace.useState(startSegments.month);
|
|
5226
|
+
const [startYear, setStartYear] = React77__namespace.useState(startSegments.year);
|
|
5227
|
+
const [endDay, setEndDay] = React77__namespace.useState(endSegments.day);
|
|
5228
|
+
const [endMonth, setEndMonth] = React77__namespace.useState(endSegments.month);
|
|
5229
|
+
const [endYear, setEndYear] = React77__namespace.useState(endSegments.year);
|
|
5230
|
+
const singleDayRef = React77__namespace.useRef(null);
|
|
5231
|
+
const singleMonthRef = React77__namespace.useRef(null);
|
|
5232
|
+
const singleYearRef = React77__namespace.useRef(null);
|
|
5233
|
+
const startDayRef = React77__namespace.useRef(null);
|
|
5234
|
+
const startMonthRef = React77__namespace.useRef(null);
|
|
5235
|
+
const startYearRef = React77__namespace.useRef(null);
|
|
5236
|
+
const endDayRef = React77__namespace.useRef(null);
|
|
5237
|
+
const endMonthRef = React77__namespace.useRef(null);
|
|
5238
|
+
const endYearRef = React77__namespace.useRef(null);
|
|
5239
|
+
const calendarIconRef = React77__namespace.useRef(null);
|
|
5240
|
+
React77__namespace.useEffect(() => {
|
|
5199
5241
|
const s = dateToSegments(date);
|
|
5200
5242
|
setSingleDay(s.day);
|
|
5201
5243
|
setSingleMonth(s.month);
|
|
5202
5244
|
setSingleYear(s.year);
|
|
5203
5245
|
}, [date]);
|
|
5204
|
-
|
|
5246
|
+
React77__namespace.useEffect(() => {
|
|
5205
5247
|
const s = dateToSegments(dateRange == null ? void 0 : dateRange.from);
|
|
5206
5248
|
setStartDay(s.day);
|
|
5207
5249
|
setStartMonth(s.month);
|
|
@@ -5211,7 +5253,7 @@ function DatePickerInput({
|
|
|
5211
5253
|
setEndMonth(e.month);
|
|
5212
5254
|
setEndYear(e.year);
|
|
5213
5255
|
}, [dateRange]);
|
|
5214
|
-
const handleSingleSegmentChange =
|
|
5256
|
+
const handleSingleSegmentChange = React77__namespace.useCallback(
|
|
5215
5257
|
(day, month, year) => {
|
|
5216
5258
|
const d = segmentsToDate(day, month, year);
|
|
5217
5259
|
if (day.length === 2 && month.length === 2 && year.length === 4) {
|
|
@@ -5222,7 +5264,7 @@ function DatePickerInput({
|
|
|
5222
5264
|
},
|
|
5223
5265
|
[onDateChange]
|
|
5224
5266
|
);
|
|
5225
|
-
const handleRangeSegmentChange =
|
|
5267
|
+
const handleRangeSegmentChange = React77__namespace.useCallback(
|
|
5226
5268
|
(sd, sm, sy, ed, em, ey) => {
|
|
5227
5269
|
const from = segmentsToDate(sd, sm, sy);
|
|
5228
5270
|
const to = segmentsToDate(ed, em, ey);
|
|
@@ -5297,7 +5339,7 @@ function DatePickerInput({
|
|
|
5297
5339
|
setCalendarOpen(false);
|
|
5298
5340
|
}
|
|
5299
5341
|
};
|
|
5300
|
-
const inputId =
|
|
5342
|
+
const inputId = React77__namespace.useId();
|
|
5301
5343
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex w-full flex-col gap-2", className), children: [
|
|
5302
5344
|
label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: inputId, children: label }),
|
|
5303
5345
|
/* @__PURE__ */ jsxRuntime.jsxs(Popover, { open: calendarOpen, onOpenChange: setCalendarOpen, children: [
|
|
@@ -5483,7 +5525,7 @@ var lineVariants = classVarianceAuthority.cva("h-px min-w-0 flex-1 border-t bord
|
|
|
5483
5525
|
lineStyle: "solid"
|
|
5484
5526
|
}
|
|
5485
5527
|
});
|
|
5486
|
-
var Divider =
|
|
5528
|
+
var Divider = React77__namespace.forwardRef(
|
|
5487
5529
|
(_a, ref) => {
|
|
5488
5530
|
var _b = _a, {
|
|
5489
5531
|
className,
|
|
@@ -5558,7 +5600,7 @@ var Divider = React78__namespace.forwardRef(
|
|
|
5558
5600
|
}
|
|
5559
5601
|
);
|
|
5560
5602
|
Divider.displayName = "Divider";
|
|
5561
|
-
var MenuSearchInput =
|
|
5603
|
+
var MenuSearchInput = React77__namespace.forwardRef(
|
|
5562
5604
|
(_a, ref) => {
|
|
5563
5605
|
var _b = _a, {
|
|
5564
5606
|
className,
|
|
@@ -5579,15 +5621,15 @@ var MenuSearchInput = React78__namespace.forwardRef(
|
|
|
5579
5621
|
"defaultValue",
|
|
5580
5622
|
"id"
|
|
5581
5623
|
]);
|
|
5582
|
-
const internalRef =
|
|
5624
|
+
const internalRef = React77__namespace.useRef(null);
|
|
5583
5625
|
const inputRef = ref || internalRef;
|
|
5584
|
-
const [internalValue, setInternalValue] =
|
|
5626
|
+
const [internalValue, setInternalValue] = React77__namespace.useState(
|
|
5585
5627
|
defaultValue || ""
|
|
5586
5628
|
);
|
|
5587
5629
|
const isControlled = value !== void 0;
|
|
5588
5630
|
const currentValue = isControlled ? String(value) : internalValue;
|
|
5589
5631
|
const hasValue = currentValue.length > 0;
|
|
5590
|
-
const generatedId =
|
|
5632
|
+
const generatedId = React77__namespace.useId();
|
|
5591
5633
|
const inputId = id || generatedId;
|
|
5592
5634
|
const handleChange = (e) => {
|
|
5593
5635
|
var _a2;
|
|
@@ -5606,7 +5648,7 @@ var MenuSearchInput = React78__namespace.forwardRef(
|
|
|
5606
5648
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
5607
5649
|
}
|
|
5608
5650
|
};
|
|
5609
|
-
const [isFocused, setIsFocused] =
|
|
5651
|
+
const [isFocused, setIsFocused] = React77__namespace.useState(false);
|
|
5610
5652
|
const showShortcut = !!shortcutKey && !hasValue && !isFocused && !disabled;
|
|
5611
5653
|
const handleFocus = (e) => {
|
|
5612
5654
|
var _a2;
|
|
@@ -5718,7 +5760,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
5718
5760
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
5719
5761
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
5720
5762
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
5721
|
-
var DropdownMenuSubTrigger =
|
|
5763
|
+
var DropdownMenuSubTrigger = React77__namespace.forwardRef((_a, ref) => {
|
|
5722
5764
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
5723
5765
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5724
5766
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
@@ -5736,13 +5778,13 @@ var DropdownMenuSubTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5736
5778
|
}, props), {
|
|
5737
5779
|
children: [
|
|
5738
5780
|
children,
|
|
5739
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5781
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-right-s-line ml-auto text-base", "aria-hidden": true })
|
|
5740
5782
|
]
|
|
5741
5783
|
})
|
|
5742
5784
|
);
|
|
5743
5785
|
});
|
|
5744
5786
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
5745
|
-
var DropdownMenuSubContent =
|
|
5787
|
+
var DropdownMenuSubContent = React77__namespace.forwardRef((_a, ref) => {
|
|
5746
5788
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5747
5789
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5748
5790
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
@@ -5757,7 +5799,7 @@ var DropdownMenuSubContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5757
5799
|
);
|
|
5758
5800
|
});
|
|
5759
5801
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
5760
|
-
var DropdownMenuContent =
|
|
5802
|
+
var DropdownMenuContent = React77__namespace.forwardRef((_a, ref) => {
|
|
5761
5803
|
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"]);
|
|
5762
5804
|
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5763
5805
|
DropdownMenuPrimitive__namespace.Content,
|
|
@@ -5795,7 +5837,7 @@ var DropdownMenuContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5795
5837
|
) });
|
|
5796
5838
|
});
|
|
5797
5839
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
5798
|
-
var DropdownMenuItem =
|
|
5840
|
+
var DropdownMenuItem = React77__namespace.forwardRef((_a, ref) => {
|
|
5799
5841
|
var _b = _a, { className, inset, variant = "default" } = _b, props = __objRest(_b, ["className", "inset", "variant"]);
|
|
5800
5842
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5801
5843
|
DropdownMenuPrimitive__namespace.Item,
|
|
@@ -5816,7 +5858,7 @@ var DropdownMenuItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5816
5858
|
);
|
|
5817
5859
|
});
|
|
5818
5860
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
5819
|
-
var DropdownMenuCheckboxItem =
|
|
5861
|
+
var DropdownMenuCheckboxItem = React77__namespace.forwardRef((_a, ref) => {
|
|
5820
5862
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
5821
5863
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5822
5864
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
@@ -5831,14 +5873,14 @@ var DropdownMenuCheckboxItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5831
5873
|
checked
|
|
5832
5874
|
}, props), {
|
|
5833
5875
|
children: [
|
|
5834
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5876
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-check-line text-base", "aria-hidden": true }) }) }),
|
|
5835
5877
|
children
|
|
5836
5878
|
]
|
|
5837
5879
|
})
|
|
5838
5880
|
);
|
|
5839
5881
|
});
|
|
5840
5882
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
5841
|
-
var DropdownMenuRadioItem =
|
|
5883
|
+
var DropdownMenuRadioItem = React77__namespace.forwardRef((_a, ref) => {
|
|
5842
5884
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
5843
5885
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5844
5886
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
@@ -5852,14 +5894,14 @@ var DropdownMenuRadioItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5852
5894
|
)
|
|
5853
5895
|
}, props), {
|
|
5854
5896
|
children: [
|
|
5855
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5897
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-circle-fill text-[8px] leading-none", "aria-hidden": true }) }) }),
|
|
5856
5898
|
children
|
|
5857
5899
|
]
|
|
5858
5900
|
})
|
|
5859
5901
|
);
|
|
5860
5902
|
});
|
|
5861
5903
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
5862
|
-
var DropdownMenuLabel =
|
|
5904
|
+
var DropdownMenuLabel = React77__namespace.forwardRef((_a, ref) => {
|
|
5863
5905
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
5864
5906
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5865
5907
|
DropdownMenuPrimitive__namespace.Label,
|
|
@@ -5874,7 +5916,7 @@ var DropdownMenuLabel = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5874
5916
|
);
|
|
5875
5917
|
});
|
|
5876
5918
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
5877
|
-
var DropdownMenuSeparator =
|
|
5919
|
+
var DropdownMenuSeparator = React77__namespace.forwardRef((_a, ref) => {
|
|
5878
5920
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5879
5921
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5880
5922
|
DropdownMenuPrimitive__namespace.Separator,
|
|
@@ -5903,7 +5945,7 @@ var DropdownMenuShortcut = (_a) => {
|
|
|
5903
5945
|
);
|
|
5904
5946
|
};
|
|
5905
5947
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
5906
|
-
var DropdownMenuCaption =
|
|
5948
|
+
var DropdownMenuCaption = React77__namespace.forwardRef((_a, ref) => {
|
|
5907
5949
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5908
5950
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5909
5951
|
"p",
|
|
@@ -5918,7 +5960,7 @@ var DropdownMenuCaption = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5918
5960
|
);
|
|
5919
5961
|
});
|
|
5920
5962
|
DropdownMenuCaption.displayName = "DropdownMenuCaption";
|
|
5921
|
-
var DropdownMenuUserbar =
|
|
5963
|
+
var DropdownMenuUserbar = React77__namespace.forwardRef((_a, ref) => {
|
|
5922
5964
|
var _b = _a, { className, name, email, avatar, badge } = _b, props = __objRest(_b, ["className", "name", "email", "avatar", "badge"]);
|
|
5923
5965
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5924
5966
|
"div",
|
|
@@ -5943,7 +5985,7 @@ var DropdownMenuUserbar = React78__namespace.forwardRef((_a, ref) => {
|
|
|
5943
5985
|
);
|
|
5944
5986
|
});
|
|
5945
5987
|
DropdownMenuUserbar.displayName = "DropdownMenuUserbar";
|
|
5946
|
-
var DropdownMenuLargeItem =
|
|
5988
|
+
var DropdownMenuLargeItem = React77__namespace.forwardRef((_a, ref) => {
|
|
5947
5989
|
var _b = _a, { className, label, caption, icon, badge, tailIcon } = _b, props = __objRest(_b, ["className", "label", "caption", "icon", "badge", "tailIcon"]);
|
|
5948
5990
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5949
5991
|
DropdownMenuPrimitive__namespace.Item,
|
|
@@ -5984,7 +6026,7 @@ var emptyStateVariants = classVarianceAuthority.cva(
|
|
|
5984
6026
|
}
|
|
5985
6027
|
}
|
|
5986
6028
|
);
|
|
5987
|
-
var EmptyState =
|
|
6029
|
+
var EmptyState = React77__namespace.forwardRef(
|
|
5988
6030
|
(_a, ref) => {
|
|
5989
6031
|
var _b = _a, {
|
|
5990
6032
|
className,
|
|
@@ -6049,7 +6091,7 @@ function EmptyStateText({
|
|
|
6049
6091
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs leading-4 text-sui-text-muted w-full", children: description })
|
|
6050
6092
|
] });
|
|
6051
6093
|
}
|
|
6052
|
-
var FileUploadArea =
|
|
6094
|
+
var FileUploadArea = React77__namespace.forwardRef(
|
|
6053
6095
|
(_a, ref) => {
|
|
6054
6096
|
var _b = _a, {
|
|
6055
6097
|
className,
|
|
@@ -6074,8 +6116,8 @@ var FileUploadArea = React78__namespace.forwardRef(
|
|
|
6074
6116
|
"onDrop",
|
|
6075
6117
|
"onDragOver"
|
|
6076
6118
|
]);
|
|
6077
|
-
const [isDragOver, setIsDragOver] =
|
|
6078
|
-
const handleDragOver =
|
|
6119
|
+
const [isDragOver, setIsDragOver] = React77__namespace.useState(false);
|
|
6120
|
+
const handleDragOver = React77__namespace.useCallback(
|
|
6079
6121
|
(e) => {
|
|
6080
6122
|
if (disabled) return;
|
|
6081
6123
|
e.preventDefault();
|
|
@@ -6084,10 +6126,10 @@ var FileUploadArea = React78__namespace.forwardRef(
|
|
|
6084
6126
|
},
|
|
6085
6127
|
[disabled, onDragOver]
|
|
6086
6128
|
);
|
|
6087
|
-
const handleDragLeave =
|
|
6129
|
+
const handleDragLeave = React77__namespace.useCallback(() => {
|
|
6088
6130
|
setIsDragOver(false);
|
|
6089
6131
|
}, []);
|
|
6090
|
-
const handleDrop =
|
|
6132
|
+
const handleDrop = React77__namespace.useCallback(
|
|
6091
6133
|
(e) => {
|
|
6092
6134
|
if (disabled) return;
|
|
6093
6135
|
e.preventDefault();
|
|
@@ -6096,11 +6138,11 @@ var FileUploadArea = React78__namespace.forwardRef(
|
|
|
6096
6138
|
},
|
|
6097
6139
|
[disabled, onDrop]
|
|
6098
6140
|
);
|
|
6099
|
-
const handleClick =
|
|
6141
|
+
const handleClick = React77__namespace.useCallback(() => {
|
|
6100
6142
|
if (disabled) return;
|
|
6101
6143
|
onClick == null ? void 0 : onClick();
|
|
6102
6144
|
}, [disabled, onClick]);
|
|
6103
|
-
const handleKeyDown =
|
|
6145
|
+
const handleKeyDown = React77__namespace.useCallback(
|
|
6104
6146
|
(e) => {
|
|
6105
6147
|
if (disabled) return;
|
|
6106
6148
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -6216,7 +6258,7 @@ var progressBarVariants = classVarianceAuthority.cva(
|
|
|
6216
6258
|
}
|
|
6217
6259
|
);
|
|
6218
6260
|
var SEGMENT_COUNT = 10;
|
|
6219
|
-
var ProgressBar =
|
|
6261
|
+
var ProgressBar = React77__namespace.forwardRef(
|
|
6220
6262
|
(_a, ref) => {
|
|
6221
6263
|
var _b = _a, {
|
|
6222
6264
|
className,
|
|
@@ -6238,7 +6280,7 @@ var ProgressBar = React78__namespace.forwardRef(
|
|
|
6238
6280
|
const clampedValue = Math.min(100, Math.max(0, value != null ? value : 0));
|
|
6239
6281
|
const displayPercentage = `${Math.round(clampedValue)}%`;
|
|
6240
6282
|
const filledSegments = Math.round(clampedValue / 100 * SEGMENT_COUNT);
|
|
6241
|
-
const generatedId =
|
|
6283
|
+
const generatedId = React77__namespace.useId();
|
|
6242
6284
|
const labelId = `${generatedId}-label`;
|
|
6243
6285
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6244
6286
|
"div",
|
|
@@ -6324,7 +6366,7 @@ var statusLabel = {
|
|
|
6324
6366
|
uploading: "Uploading...",
|
|
6325
6367
|
failed: "Error"
|
|
6326
6368
|
};
|
|
6327
|
-
var FileUploadCard =
|
|
6369
|
+
var FileUploadCard = React77__namespace.forwardRef(
|
|
6328
6370
|
(_a, ref) => {
|
|
6329
6371
|
var _b = _a, {
|
|
6330
6372
|
className,
|
|
@@ -6536,7 +6578,7 @@ var lineColorMap = {
|
|
|
6536
6578
|
warning: "bg-sui-bg-basic-orange-accent",
|
|
6537
6579
|
error: "bg-sui-bg-basic-red-accent"
|
|
6538
6580
|
};
|
|
6539
|
-
var InlineTips =
|
|
6581
|
+
var InlineTips = React77__namespace.forwardRef(
|
|
6540
6582
|
(_a, ref) => {
|
|
6541
6583
|
var _b = _a, {
|
|
6542
6584
|
className,
|
|
@@ -6557,7 +6599,7 @@ var InlineTips = React78__namespace.forwardRef(
|
|
|
6557
6599
|
__spreadProps(__spreadValues({
|
|
6558
6600
|
ref,
|
|
6559
6601
|
className: cn(inlineTipsVariants({ variant, colorStyle, className })),
|
|
6560
|
-
role: "status"
|
|
6602
|
+
role: variant === "error" ? "alert" : "status"
|
|
6561
6603
|
}, props), {
|
|
6562
6604
|
children: [
|
|
6563
6605
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6638,7 +6680,7 @@ function validateFile(file, accept, maxSize) {
|
|
|
6638
6680
|
}
|
|
6639
6681
|
return null;
|
|
6640
6682
|
}
|
|
6641
|
-
var FileUpload =
|
|
6683
|
+
var FileUpload = React77__namespace.forwardRef(
|
|
6642
6684
|
({
|
|
6643
6685
|
files = [],
|
|
6644
6686
|
onFilesAdded,
|
|
@@ -6659,10 +6701,10 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6659
6701
|
icon,
|
|
6660
6702
|
className
|
|
6661
6703
|
}, ref) => {
|
|
6662
|
-
const inputRef =
|
|
6663
|
-
const [errors, setErrors] =
|
|
6664
|
-
const thumbnailCache =
|
|
6665
|
-
|
|
6704
|
+
const inputRef = React77__namespace.useRef(null);
|
|
6705
|
+
const [errors, setErrors] = React77__namespace.useState([]);
|
|
6706
|
+
const thumbnailCache = React77__namespace.useRef(/* @__PURE__ */ new Map());
|
|
6707
|
+
React77__namespace.useEffect(() => {
|
|
6666
6708
|
if (!autoPreview) return;
|
|
6667
6709
|
const cache = thumbnailCache.current;
|
|
6668
6710
|
for (const f of files) {
|
|
@@ -6679,7 +6721,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6679
6721
|
}
|
|
6680
6722
|
}
|
|
6681
6723
|
}, [files, autoPreview]);
|
|
6682
|
-
|
|
6724
|
+
React77__namespace.useEffect(() => {
|
|
6683
6725
|
const cache = thumbnailCache.current;
|
|
6684
6726
|
return () => {
|
|
6685
6727
|
for (const url of cache.values()) {
|
|
@@ -6689,7 +6731,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6689
6731
|
};
|
|
6690
6732
|
}, []);
|
|
6691
6733
|
const resolvedDescription = description != null ? description : generateDescription(accept, maxSize, maxFiles);
|
|
6692
|
-
const processFiles =
|
|
6734
|
+
const processFiles = React77__namespace.useCallback(
|
|
6693
6735
|
(fileList) => {
|
|
6694
6736
|
const newFiles = Array.from(fileList);
|
|
6695
6737
|
const validationErrors = [];
|
|
@@ -6717,11 +6759,11 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6717
6759
|
},
|
|
6718
6760
|
[files.length, maxFiles, accept, maxSize, onFilesAdded]
|
|
6719
6761
|
);
|
|
6720
|
-
const handleClick =
|
|
6762
|
+
const handleClick = React77__namespace.useCallback(() => {
|
|
6721
6763
|
var _a;
|
|
6722
6764
|
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
6723
6765
|
}, []);
|
|
6724
|
-
const handleInputChange =
|
|
6766
|
+
const handleInputChange = React77__namespace.useCallback(
|
|
6725
6767
|
(e) => {
|
|
6726
6768
|
if (e.target.files && e.target.files.length > 0) {
|
|
6727
6769
|
processFiles(e.target.files);
|
|
@@ -6730,7 +6772,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6730
6772
|
},
|
|
6731
6773
|
[processFiles]
|
|
6732
6774
|
);
|
|
6733
|
-
const handleDrop =
|
|
6775
|
+
const handleDrop = React77__namespace.useCallback(
|
|
6734
6776
|
(e) => {
|
|
6735
6777
|
if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
|
|
6736
6778
|
processFiles(e.dataTransfer.files);
|
|
@@ -6738,10 +6780,10 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6738
6780
|
},
|
|
6739
6781
|
[processFiles]
|
|
6740
6782
|
);
|
|
6741
|
-
const dismissError =
|
|
6783
|
+
const dismissError = React77__namespace.useCallback((index) => {
|
|
6742
6784
|
setErrors((prev) => prev.filter((_, i) => i !== index));
|
|
6743
6785
|
}, []);
|
|
6744
|
-
const handlePaste =
|
|
6786
|
+
const handlePaste = React77__namespace.useCallback(
|
|
6745
6787
|
(e) => {
|
|
6746
6788
|
var _a;
|
|
6747
6789
|
if (disabled || !pasteEnabled) return;
|
|
@@ -6762,7 +6804,7 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6762
6804
|
},
|
|
6763
6805
|
[disabled, pasteEnabled, processFiles]
|
|
6764
6806
|
);
|
|
6765
|
-
const handleCancel =
|
|
6807
|
+
const handleCancel = React77__namespace.useCallback(
|
|
6766
6808
|
(id) => {
|
|
6767
6809
|
const uploadFile = files.find((f) => f.id === id);
|
|
6768
6810
|
if (uploadFile == null ? void 0 : uploadFile.abortController) {
|
|
@@ -6853,99 +6895,6 @@ var FileUpload = React78__namespace.forwardRef(
|
|
|
6853
6895
|
}
|
|
6854
6896
|
);
|
|
6855
6897
|
FileUpload.displayName = "FileUpload";
|
|
6856
|
-
var Form = reactHookForm.FormProvider;
|
|
6857
|
-
var FormFieldContext = React78__namespace.createContext(null);
|
|
6858
|
-
var FormField = (_a) => {
|
|
6859
|
-
var props = __objRest(_a, []);
|
|
6860
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, __spreadValues({}, props)) });
|
|
6861
|
-
};
|
|
6862
|
-
var useFormField = () => {
|
|
6863
|
-
const fieldContext = React78__namespace.useContext(FormFieldContext);
|
|
6864
|
-
const itemContext = React78__namespace.useContext(FormItemContext);
|
|
6865
|
-
const { getFieldState, formState } = reactHookForm.useFormContext();
|
|
6866
|
-
if (!fieldContext) {
|
|
6867
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
6868
|
-
}
|
|
6869
|
-
if (!itemContext) {
|
|
6870
|
-
throw new Error("useFormField should be used within <FormItem>");
|
|
6871
|
-
}
|
|
6872
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
6873
|
-
const { id } = itemContext;
|
|
6874
|
-
return __spreadValues({
|
|
6875
|
-
id,
|
|
6876
|
-
name: fieldContext.name,
|
|
6877
|
-
formItemId: `${id}-form-item`,
|
|
6878
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
6879
|
-
formMessageId: `${id}-form-item-message`
|
|
6880
|
-
}, fieldState);
|
|
6881
|
-
};
|
|
6882
|
-
var FormItemContext = React78__namespace.createContext(null);
|
|
6883
|
-
var FormItem = React78__namespace.forwardRef((_a, ref) => {
|
|
6884
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6885
|
-
const id = React78__namespace.useId();
|
|
6886
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
|
|
6887
|
-
});
|
|
6888
|
-
FormItem.displayName = "FormItem";
|
|
6889
|
-
var FormLabel = React78__namespace.forwardRef((_a, ref) => {
|
|
6890
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6891
|
-
const { error, formItemId } = useFormField();
|
|
6892
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6893
|
-
Label,
|
|
6894
|
-
__spreadValues({
|
|
6895
|
-
ref,
|
|
6896
|
-
className: cn(error && "text-destructive", className),
|
|
6897
|
-
htmlFor: formItemId
|
|
6898
|
-
}, props)
|
|
6899
|
-
);
|
|
6900
|
-
});
|
|
6901
|
-
FormLabel.displayName = "FormLabel";
|
|
6902
|
-
var FormControl = React78__namespace.forwardRef((_a, ref) => {
|
|
6903
|
-
var props = __objRest(_a, []);
|
|
6904
|
-
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
6905
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6906
|
-
reactSlot.Slot,
|
|
6907
|
-
__spreadValues({
|
|
6908
|
-
ref,
|
|
6909
|
-
id: formItemId,
|
|
6910
|
-
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
6911
|
-
"aria-invalid": !!error
|
|
6912
|
-
}, props)
|
|
6913
|
-
);
|
|
6914
|
-
});
|
|
6915
|
-
FormControl.displayName = "FormControl";
|
|
6916
|
-
var FormDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
6917
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6918
|
-
const { formDescriptionId } = useFormField();
|
|
6919
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6920
|
-
"p",
|
|
6921
|
-
__spreadValues({
|
|
6922
|
-
ref,
|
|
6923
|
-
id: formDescriptionId,
|
|
6924
|
-
className: cn("text-sm text-muted-foreground", className)
|
|
6925
|
-
}, props)
|
|
6926
|
-
);
|
|
6927
|
-
});
|
|
6928
|
-
FormDescription.displayName = "FormDescription";
|
|
6929
|
-
var FormMessage = React78__namespace.forwardRef((_a, ref) => {
|
|
6930
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
6931
|
-
var _a2;
|
|
6932
|
-
const { error, formMessageId } = useFormField();
|
|
6933
|
-
const body = error ? String((_a2 = error == null ? void 0 : error.message) != null ? _a2 : "") : children;
|
|
6934
|
-
if (!body) {
|
|
6935
|
-
return null;
|
|
6936
|
-
}
|
|
6937
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6938
|
-
"p",
|
|
6939
|
-
__spreadProps(__spreadValues({
|
|
6940
|
-
ref,
|
|
6941
|
-
id: formMessageId,
|
|
6942
|
-
className: cn("text-sm font-medium text-destructive", className)
|
|
6943
|
-
}, props), {
|
|
6944
|
-
children: body
|
|
6945
|
-
})
|
|
6946
|
-
);
|
|
6947
|
-
});
|
|
6948
|
-
FormMessage.displayName = "FormMessage";
|
|
6949
6898
|
var gridTableHeaderItemVariants = classVarianceAuthority.cva(
|
|
6950
6899
|
"min-h-8 min-w-9 rounded-xs",
|
|
6951
6900
|
{
|
|
@@ -6972,7 +6921,7 @@ var ariaSortMap = {
|
|
|
6972
6921
|
desc: "descending",
|
|
6973
6922
|
none: "none"
|
|
6974
6923
|
};
|
|
6975
|
-
var GridTableHeaderItem =
|
|
6924
|
+
var GridTableHeaderItem = React77__namespace.forwardRef(
|
|
6976
6925
|
(_a, ref) => {
|
|
6977
6926
|
var _b = _a, {
|
|
6978
6927
|
className,
|
|
@@ -7074,7 +7023,7 @@ var gridTableRowVariants = classVarianceAuthority.cva(
|
|
|
7074
7023
|
}
|
|
7075
7024
|
}
|
|
7076
7025
|
);
|
|
7077
|
-
var GridTableRow =
|
|
7026
|
+
var GridTableRow = React77__namespace.forwardRef(
|
|
7078
7027
|
(_a, ref) => {
|
|
7079
7028
|
var _b = _a, { className, variant = "default", children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
|
|
7080
7029
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7090,7 +7039,7 @@ var GridTableRow = React78__namespace.forwardRef(
|
|
|
7090
7039
|
}
|
|
7091
7040
|
);
|
|
7092
7041
|
GridTableRow.displayName = "GridTableRow";
|
|
7093
|
-
var GridTableCell =
|
|
7042
|
+
var GridTableCell = React77__namespace.forwardRef(
|
|
7094
7043
|
(_a, ref) => {
|
|
7095
7044
|
var _b = _a, { className, bordered = true, children } = _b, props = __objRest(_b, ["className", "bordered", "children"]);
|
|
7096
7045
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7134,7 +7083,7 @@ var gridTableSlotItemVariants = classVarianceAuthority.cva(
|
|
|
7134
7083
|
}
|
|
7135
7084
|
}
|
|
7136
7085
|
);
|
|
7137
|
-
var GridTableSlotItem =
|
|
7086
|
+
var GridTableSlotItem = React77__namespace.forwardRef(
|
|
7138
7087
|
(_a, ref) => {
|
|
7139
7088
|
var _b = _a, {
|
|
7140
7089
|
className,
|
|
@@ -7281,7 +7230,7 @@ var stepperNumberVariants = classVarianceAuthority.cva(
|
|
|
7281
7230
|
}
|
|
7282
7231
|
}
|
|
7283
7232
|
);
|
|
7284
|
-
var StepperNumber =
|
|
7233
|
+
var StepperNumber = React77__namespace.forwardRef(
|
|
7285
7234
|
(_a, ref) => {
|
|
7286
7235
|
var _b = _a, { className, size, color, number = "1" } = _b, props = __objRest(_b, ["className", "size", "color", "number"]);
|
|
7287
7236
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7320,7 +7269,7 @@ var stepperIconVariants = classVarianceAuthority.cva(
|
|
|
7320
7269
|
}
|
|
7321
7270
|
}
|
|
7322
7271
|
);
|
|
7323
|
-
var StepperIcon =
|
|
7272
|
+
var StepperIcon = React77__namespace.forwardRef(
|
|
7324
7273
|
(_a, ref) => {
|
|
7325
7274
|
var _b = _a, { className, variant = "dot-large", icon } = _b, props = __objRest(_b, ["className", "variant", "icon"]);
|
|
7326
7275
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7374,7 +7323,7 @@ function ConnectorLine({ success }) {
|
|
|
7374
7323
|
}
|
|
7375
7324
|
);
|
|
7376
7325
|
}
|
|
7377
|
-
var HorizontalStepperItem =
|
|
7326
|
+
var HorizontalStepperItem = React77__namespace.forwardRef(
|
|
7378
7327
|
(_a, ref) => {
|
|
7379
7328
|
var _b = _a, {
|
|
7380
7329
|
className,
|
|
@@ -7499,7 +7448,7 @@ var HorizontalStepperItem = React78__namespace.forwardRef(
|
|
|
7499
7448
|
}
|
|
7500
7449
|
);
|
|
7501
7450
|
HorizontalStepperItem.displayName = "HorizontalStepperItem";
|
|
7502
|
-
var HorizontalStepper =
|
|
7451
|
+
var HorizontalStepper = React77__namespace.forwardRef(
|
|
7503
7452
|
(_a, ref) => {
|
|
7504
7453
|
var _b = _a, {
|
|
7505
7454
|
className,
|
|
@@ -7574,7 +7523,7 @@ var HorizontalStepper = React78__namespace.forwardRef(
|
|
|
7574
7523
|
}
|
|
7575
7524
|
);
|
|
7576
7525
|
HorizontalStepper.displayName = "HorizontalStepper";
|
|
7577
|
-
var Input =
|
|
7526
|
+
var Input = React77__namespace.forwardRef(
|
|
7578
7527
|
(_a, ref) => {
|
|
7579
7528
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
7580
7529
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7582,7 +7531,7 @@ var Input = React78__namespace.forwardRef(
|
|
|
7582
7531
|
__spreadValues({
|
|
7583
7532
|
type,
|
|
7584
7533
|
className: cn(
|
|
7585
|
-
"flex h-10 w-full rounded-md border border-
|
|
7534
|
+
"flex h-10 w-full rounded-md border border-sui-border-darker bg-sui-bg-input px-3 py-2 text-base ring-offset-sui-bg-default file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-sui-text-default placeholder:text-sui-text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:text-sui-text-hint disabled:pointer-events-none md:text-sm",
|
|
7586
7535
|
className
|
|
7587
7536
|
),
|
|
7588
7537
|
ref
|
|
@@ -7665,7 +7614,7 @@ var inputButtonVariants = classVarianceAuthority.cva(
|
|
|
7665
7614
|
}
|
|
7666
7615
|
);
|
|
7667
7616
|
var iconOnlyHoverClasses = "hover:[&_i]:text-icon-default-subtle hover:[&_svg]:text-icon-default-subtle active:[&_i]:text-icon-default-subtle active:[&_svg]:text-icon-default-subtle";
|
|
7668
|
-
var InputButton =
|
|
7617
|
+
var InputButton = React77__namespace.forwardRef(
|
|
7669
7618
|
(_a, ref) => {
|
|
7670
7619
|
var _b = _a, {
|
|
7671
7620
|
className,
|
|
@@ -7799,7 +7748,7 @@ var InputButton = React78__namespace.forwardRef(
|
|
|
7799
7748
|
}
|
|
7800
7749
|
);
|
|
7801
7750
|
InputButton.displayName = "InputButton";
|
|
7802
|
-
var InputStepper =
|
|
7751
|
+
var InputStepper = React77__namespace.forwardRef(
|
|
7803
7752
|
({ onIncrement, onDecrement, disabled, className }, ref) => {
|
|
7804
7753
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7805
7754
|
"div",
|
|
@@ -7856,7 +7805,7 @@ var InputStepper = React78__namespace.forwardRef(
|
|
|
7856
7805
|
}
|
|
7857
7806
|
);
|
|
7858
7807
|
InputStepper.displayName = "InputStepper";
|
|
7859
|
-
var NavigationMenu =
|
|
7808
|
+
var NavigationMenu = React77__namespace.forwardRef((_a, ref) => {
|
|
7860
7809
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
7861
7810
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7862
7811
|
NavigationMenuPrimitive__namespace.Root,
|
|
@@ -7875,7 +7824,7 @@ var NavigationMenu = React78__namespace.forwardRef((_a, ref) => {
|
|
|
7875
7824
|
);
|
|
7876
7825
|
});
|
|
7877
7826
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
7878
|
-
var NavigationMenuList =
|
|
7827
|
+
var NavigationMenuList = React77__namespace.forwardRef((_a, ref) => {
|
|
7879
7828
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7880
7829
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7881
7830
|
NavigationMenuPrimitive__namespace.List,
|
|
@@ -7891,9 +7840,9 @@ var NavigationMenuList = React78__namespace.forwardRef((_a, ref) => {
|
|
|
7891
7840
|
NavigationMenuList.displayName = NavigationMenuPrimitive__namespace.List.displayName;
|
|
7892
7841
|
var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
7893
7842
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
7894
|
-
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-
|
|
7843
|
+
"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 hover:bg-sui-bg-state-ghost-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"
|
|
7895
7844
|
);
|
|
7896
|
-
var NavigationMenuTrigger =
|
|
7845
|
+
var NavigationMenuTrigger = React77__namespace.forwardRef((_a, ref) => {
|
|
7897
7846
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
7898
7847
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7899
7848
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
@@ -7905,9 +7854,9 @@ var NavigationMenuTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
7905
7854
|
children,
|
|
7906
7855
|
" ",
|
|
7907
7856
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7908
|
-
|
|
7857
|
+
"i",
|
|
7909
7858
|
{
|
|
7910
|
-
className: "
|
|
7859
|
+
className: "ri-arrow-down-s-line ml-1 text-icon-default-muted transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
7911
7860
|
"aria-hidden": "true"
|
|
7912
7861
|
}
|
|
7913
7862
|
)
|
|
@@ -7916,14 +7865,14 @@ var NavigationMenuTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
7916
7865
|
);
|
|
7917
7866
|
});
|
|
7918
7867
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
7919
|
-
var NavigationMenuContent =
|
|
7868
|
+
var NavigationMenuContent = React77__namespace.forwardRef((_a, ref) => {
|
|
7920
7869
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7921
7870
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7922
7871
|
NavigationMenuPrimitive__namespace.Content,
|
|
7923
7872
|
__spreadValues({
|
|
7924
7873
|
ref,
|
|
7925
7874
|
className: cn(
|
|
7926
|
-
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto
|
|
7875
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
|
|
7927
7876
|
className
|
|
7928
7877
|
)
|
|
7929
7878
|
}, props)
|
|
@@ -7931,13 +7880,13 @@ var NavigationMenuContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
7931
7880
|
});
|
|
7932
7881
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
7933
7882
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
7934
|
-
var NavigationMenuViewport =
|
|
7883
|
+
var NavigationMenuViewport = React77__namespace.forwardRef((_a, ref) => {
|
|
7935
7884
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7936
7885
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7937
7886
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
7938
7887
|
__spreadValues({
|
|
7939
7888
|
className: cn(
|
|
7940
|
-
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-
|
|
7889
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-sui-border-default bg-sui-bg-card text-sui-text-default shadow-modal-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
7941
7890
|
className
|
|
7942
7891
|
),
|
|
7943
7892
|
ref
|
|
@@ -7945,7 +7894,7 @@ var NavigationMenuViewport = React78__namespace.forwardRef((_a, ref) => {
|
|
|
7945
7894
|
) });
|
|
7946
7895
|
});
|
|
7947
7896
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
7948
|
-
var NavigationMenuIndicator =
|
|
7897
|
+
var NavigationMenuIndicator = React77__namespace.forwardRef((_a, ref) => {
|
|
7949
7898
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7950
7899
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7951
7900
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
@@ -7956,7 +7905,7 @@ var NavigationMenuIndicator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
7956
7905
|
className
|
|
7957
7906
|
)
|
|
7958
7907
|
}, props), {
|
|
7959
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-
|
|
7908
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-sui-border-default shadow-card" })
|
|
7960
7909
|
})
|
|
7961
7910
|
);
|
|
7962
7911
|
});
|
|
@@ -8016,7 +7965,7 @@ var activeDotClasses = [
|
|
|
8016
7965
|
"bg-sui-bg-basic-blue-accent",
|
|
8017
7966
|
"hover:bg-sui-bg-basic-blue-accent"
|
|
8018
7967
|
].join(" ");
|
|
8019
|
-
var PageItem =
|
|
7968
|
+
var PageItem = React77__namespace.forwardRef(
|
|
8020
7969
|
(_a, ref) => {
|
|
8021
7970
|
var _b = _a, { className, variant = "default", active = false, label = "0", disabled } = _b, props = __objRest(_b, ["className", "variant", "active", "label", "disabled"]);
|
|
8022
7971
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8050,7 +7999,7 @@ var Pagination = (_a) => {
|
|
|
8050
7999
|
);
|
|
8051
8000
|
};
|
|
8052
8001
|
Pagination.displayName = "Pagination";
|
|
8053
|
-
var PaginationContent =
|
|
8002
|
+
var PaginationContent = React77__namespace.forwardRef((_a, ref) => {
|
|
8054
8003
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8055
8004
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8056
8005
|
"ul",
|
|
@@ -8061,7 +8010,7 @@ var PaginationContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8061
8010
|
);
|
|
8062
8011
|
});
|
|
8063
8012
|
PaginationContent.displayName = "PaginationContent";
|
|
8064
|
-
var PaginationItem =
|
|
8013
|
+
var PaginationItem = React77__namespace.forwardRef((_a, ref) => {
|
|
8065
8014
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8066
8015
|
return /* @__PURE__ */ jsxRuntime.jsx("li", __spreadValues({ ref, className: cn("", className) }, props));
|
|
8067
8016
|
});
|
|
@@ -8105,7 +8054,7 @@ var PaginationPrevious = (_a) => {
|
|
|
8105
8054
|
className: cn("gap-1 pl-2.5", className)
|
|
8106
8055
|
}, props), {
|
|
8107
8056
|
children: [
|
|
8108
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8057
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-left-s-line text-base", "aria-hidden": true }),
|
|
8109
8058
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Previous" })
|
|
8110
8059
|
]
|
|
8111
8060
|
})
|
|
@@ -8127,7 +8076,7 @@ var PaginationNext = (_a) => {
|
|
|
8127
8076
|
}, props), {
|
|
8128
8077
|
children: [
|
|
8129
8078
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Next" }),
|
|
8130
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8079
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-right-s-line text-base", "aria-hidden": true })
|
|
8131
8080
|
]
|
|
8132
8081
|
})
|
|
8133
8082
|
);
|
|
@@ -8146,7 +8095,7 @@ var PaginationEllipsis = (_a) => {
|
|
|
8146
8095
|
className: cn("flex h-9 w-9 items-center justify-center", className)
|
|
8147
8096
|
}, props), {
|
|
8148
8097
|
children: [
|
|
8149
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8098
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-more-line text-base", "aria-hidden": true }),
|
|
8150
8099
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
8151
8100
|
]
|
|
8152
8101
|
})
|
|
@@ -8182,7 +8131,7 @@ function getPageRange(currentPage, totalPages, maxVisible) {
|
|
|
8182
8131
|
}
|
|
8183
8132
|
return pages;
|
|
8184
8133
|
}
|
|
8185
|
-
var Paginator =
|
|
8134
|
+
var Paginator = React77__namespace.forwardRef(
|
|
8186
8135
|
(_a, ref) => {
|
|
8187
8136
|
var _b = _a, {
|
|
8188
8137
|
className,
|
|
@@ -8362,14 +8311,14 @@ var Paginator = React78__namespace.forwardRef(
|
|
|
8362
8311
|
}
|
|
8363
8312
|
);
|
|
8364
8313
|
Paginator.displayName = "Paginator";
|
|
8365
|
-
var Progress =
|
|
8314
|
+
var Progress = React77__namespace.forwardRef((_a, ref) => {
|
|
8366
8315
|
var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
|
|
8367
8316
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8368
8317
|
ProgressPrimitive2__namespace.Root,
|
|
8369
8318
|
__spreadProps(__spreadValues({
|
|
8370
8319
|
ref,
|
|
8371
8320
|
className: cn(
|
|
8372
|
-
"relative h-4 w-full overflow-hidden rounded-full bg-
|
|
8321
|
+
"relative h-4 w-full overflow-hidden rounded-full bg-sui-bg-subtle",
|
|
8373
8322
|
className
|
|
8374
8323
|
)
|
|
8375
8324
|
}, props), {
|
|
@@ -8412,7 +8361,7 @@ var arcStrokeVarMap = {
|
|
|
8412
8361
|
success: "var(--text-success)",
|
|
8413
8362
|
failed: "var(--text-destructive)"
|
|
8414
8363
|
};
|
|
8415
|
-
var RadialProgressBar =
|
|
8364
|
+
var RadialProgressBar = React77__namespace.forwardRef(
|
|
8416
8365
|
(_a, ref) => {
|
|
8417
8366
|
var _b = _a, {
|
|
8418
8367
|
className,
|
|
@@ -8531,7 +8480,7 @@ var RadialProgressBar = React78__namespace.forwardRef(
|
|
|
8531
8480
|
}
|
|
8532
8481
|
);
|
|
8533
8482
|
RadialProgressBar.displayName = "RadialProgressBar";
|
|
8534
|
-
var RadioGroup2 =
|
|
8483
|
+
var RadioGroup2 = React77__namespace.forwardRef((_a, ref) => {
|
|
8535
8484
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8536
8485
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8537
8486
|
RadioGroupPrimitive__namespace.Root,
|
|
@@ -8591,7 +8540,7 @@ var radioButtonVariants = classVarianceAuthority.cva(
|
|
|
8591
8540
|
}
|
|
8592
8541
|
}
|
|
8593
8542
|
);
|
|
8594
|
-
var RadioButton =
|
|
8543
|
+
var RadioButton = React77__namespace.forwardRef((_a, ref) => {
|
|
8595
8544
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
8596
8545
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8597
8546
|
RadioGroupPrimitive__namespace.Item,
|
|
@@ -8631,7 +8580,7 @@ var RadioButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8631
8580
|
);
|
|
8632
8581
|
});
|
|
8633
8582
|
RadioButton.displayName = "RadioButton";
|
|
8634
|
-
var RadioCardGroup =
|
|
8583
|
+
var RadioCardGroup = React77__namespace.forwardRef((_a, ref) => {
|
|
8635
8584
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8636
8585
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8637
8586
|
RadioGroupPrimitive__namespace.Root,
|
|
@@ -8680,7 +8629,7 @@ var radioButtonCardVariants = classVarianceAuthority.cva(
|
|
|
8680
8629
|
}
|
|
8681
8630
|
}
|
|
8682
8631
|
);
|
|
8683
|
-
var RadioButtonCard =
|
|
8632
|
+
var RadioButtonCard = React77__namespace.forwardRef(
|
|
8684
8633
|
({
|
|
8685
8634
|
title,
|
|
8686
8635
|
description,
|
|
@@ -8693,7 +8642,7 @@ var RadioButtonCard = React78__namespace.forwardRef(
|
|
|
8693
8642
|
disabled = false,
|
|
8694
8643
|
className
|
|
8695
8644
|
}, ref) => {
|
|
8696
|
-
const generatedId =
|
|
8645
|
+
const generatedId = React77__namespace.useId();
|
|
8697
8646
|
const titleId = `radio-card-title-${generatedId}`;
|
|
8698
8647
|
const descriptionId = `radio-card-desc-${generatedId}`;
|
|
8699
8648
|
const isHorizontal = layout === "horizontal";
|
|
@@ -8790,9 +8739,9 @@ var RadioButtonCard = React78__namespace.forwardRef(
|
|
|
8790
8739
|
}
|
|
8791
8740
|
);
|
|
8792
8741
|
RadioButtonCard.displayName = "RadioButtonCard";
|
|
8793
|
-
var RadioButtonList =
|
|
8742
|
+
var RadioButtonList = React77__namespace.forwardRef(
|
|
8794
8743
|
({ className, divider = true, value, defaultValue, onValueChange, disabled, children }, ref) => {
|
|
8795
|
-
const items =
|
|
8744
|
+
const items = React77__namespace.Children.toArray(children);
|
|
8796
8745
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8797
8746
|
RadioGroup2,
|
|
8798
8747
|
{
|
|
@@ -8836,7 +8785,7 @@ var radioButtonWithTextVariants = classVarianceAuthority.cva(
|
|
|
8836
8785
|
}
|
|
8837
8786
|
}
|
|
8838
8787
|
);
|
|
8839
|
-
var RadioButtonWithText =
|
|
8788
|
+
var RadioButtonWithText = React77__namespace.forwardRef(
|
|
8840
8789
|
({
|
|
8841
8790
|
label,
|
|
8842
8791
|
description,
|
|
@@ -8847,7 +8796,7 @@ var RadioButtonWithText = React78__namespace.forwardRef(
|
|
|
8847
8796
|
className,
|
|
8848
8797
|
id
|
|
8849
8798
|
}, ref) => {
|
|
8850
|
-
const generatedId =
|
|
8799
|
+
const generatedId = React77__namespace.useId();
|
|
8851
8800
|
const radioId = id || generatedId;
|
|
8852
8801
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8853
8802
|
"div",
|
|
@@ -8902,7 +8851,7 @@ var RadioButtonWithText = React78__namespace.forwardRef(
|
|
|
8902
8851
|
}
|
|
8903
8852
|
);
|
|
8904
8853
|
RadioButtonWithText.displayName = "RadioButtonWithText";
|
|
8905
|
-
var ScrollArea =
|
|
8854
|
+
var ScrollArea = React77__namespace.forwardRef((_a, ref) => {
|
|
8906
8855
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
8907
8856
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8908
8857
|
ScrollAreaPrimitive__namespace.Root,
|
|
@@ -8919,7 +8868,7 @@ var ScrollArea = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8919
8868
|
);
|
|
8920
8869
|
});
|
|
8921
8870
|
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
8922
|
-
var ScrollBar =
|
|
8871
|
+
var ScrollBar = React77__namespace.forwardRef((_a, ref) => {
|
|
8923
8872
|
var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
|
|
8924
8873
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8925
8874
|
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
@@ -8941,30 +8890,30 @@ ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displ
|
|
|
8941
8890
|
var Select = SelectPrimitive__namespace.Root;
|
|
8942
8891
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
8943
8892
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
8944
|
-
var SelectTrigger =
|
|
8893
|
+
var SelectTrigger = React77__namespace.forwardRef((_a, ref) => {
|
|
8945
8894
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
8946
8895
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8947
8896
|
SelectPrimitive__namespace.Trigger,
|
|
8948
8897
|
__spreadProps(__spreadValues({
|
|
8949
8898
|
ref,
|
|
8950
8899
|
className: cn(
|
|
8951
|
-
"flex h-10 w-full items-center justify-between rounded-md border border-sui-border-default bg-sui-bg-card px-3 py-2 text-sm text-sui-text-default ring-offset-
|
|
8900
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-sui-border-default bg-sui-bg-card px-3 py-2 text-sm text-sui-text-default ring-offset-sui-bg-default",
|
|
8952
8901
|
"data-[placeholder]:text-sui-text-muted",
|
|
8953
8902
|
"focus:outline-none focus:ring-2 focus:ring-sui-border-highlight focus:ring-offset-2",
|
|
8954
|
-
"disabled:cursor-not-allowed disabled:
|
|
8903
|
+
"disabled:cursor-not-allowed disabled:text-sui-text-hint disabled:pointer-events-none",
|
|
8955
8904
|
"[&>span]:line-clamp-1",
|
|
8956
8905
|
className
|
|
8957
8906
|
)
|
|
8958
8907
|
}, props), {
|
|
8959
8908
|
children: [
|
|
8960
8909
|
children,
|
|
8961
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8910
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-down-s-line text-base text-icon-default-muted", "aria-hidden": true }) })
|
|
8962
8911
|
]
|
|
8963
8912
|
})
|
|
8964
8913
|
);
|
|
8965
8914
|
});
|
|
8966
8915
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
8967
|
-
var SelectScrollUpButton =
|
|
8916
|
+
var SelectScrollUpButton = React77__namespace.forwardRef((_a, ref) => {
|
|
8968
8917
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8969
8918
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8970
8919
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
@@ -8975,12 +8924,12 @@ var SelectScrollUpButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8975
8924
|
className
|
|
8976
8925
|
)
|
|
8977
8926
|
}, props), {
|
|
8978
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8927
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-up-s-line text-base text-icon-default-muted", "aria-hidden": true })
|
|
8979
8928
|
})
|
|
8980
8929
|
);
|
|
8981
8930
|
});
|
|
8982
8931
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
8983
|
-
var SelectScrollDownButton =
|
|
8932
|
+
var SelectScrollDownButton = React77__namespace.forwardRef((_a, ref) => {
|
|
8984
8933
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8985
8934
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8986
8935
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
@@ -8991,12 +8940,12 @@ var SelectScrollDownButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
8991
8940
|
className
|
|
8992
8941
|
)
|
|
8993
8942
|
}, props), {
|
|
8994
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8943
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-arrow-down-s-line text-base text-icon-default-muted", "aria-hidden": true })
|
|
8995
8944
|
})
|
|
8996
8945
|
);
|
|
8997
8946
|
});
|
|
8998
8947
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
8999
|
-
var SelectContent =
|
|
8948
|
+
var SelectContent = React77__namespace.forwardRef((_a, ref) => {
|
|
9000
8949
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
9001
8950
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9002
8951
|
SelectPrimitive__namespace.Content,
|
|
@@ -9029,7 +8978,7 @@ var SelectContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9029
8978
|
) });
|
|
9030
8979
|
});
|
|
9031
8980
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
9032
|
-
var SelectLabel =
|
|
8981
|
+
var SelectLabel = React77__namespace.forwardRef((_a, ref) => {
|
|
9033
8982
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9034
8983
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9035
8984
|
SelectPrimitive__namespace.Label,
|
|
@@ -9043,7 +8992,7 @@ var SelectLabel = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9043
8992
|
);
|
|
9044
8993
|
});
|
|
9045
8994
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
9046
|
-
var SelectItem =
|
|
8995
|
+
var SelectItem = React77__namespace.forwardRef((_a, ref) => {
|
|
9047
8996
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
9048
8997
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9049
8998
|
SelectPrimitive__namespace.Item,
|
|
@@ -9061,14 +9010,14 @@ var SelectItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9061
9010
|
)
|
|
9062
9011
|
}, props), {
|
|
9063
9012
|
children: [
|
|
9064
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9013
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-check-line text-base", "aria-hidden": true }) }) }),
|
|
9065
9014
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-5", children }) })
|
|
9066
9015
|
]
|
|
9067
9016
|
})
|
|
9068
9017
|
);
|
|
9069
9018
|
});
|
|
9070
9019
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
9071
|
-
var SelectSeparator =
|
|
9020
|
+
var SelectSeparator = React77__namespace.forwardRef((_a, ref) => {
|
|
9072
9021
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9073
9022
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9074
9023
|
SelectPrimitive__namespace.Separator,
|
|
@@ -9079,7 +9028,7 @@ var SelectSeparator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9079
9028
|
);
|
|
9080
9029
|
});
|
|
9081
9030
|
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
9082
|
-
var SelectMenu =
|
|
9031
|
+
var SelectMenu = React77__namespace.forwardRef(
|
|
9083
9032
|
(_a, ref) => {
|
|
9084
9033
|
var _b = _a, {
|
|
9085
9034
|
className,
|
|
@@ -9110,19 +9059,19 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9110
9059
|
]);
|
|
9111
9060
|
var _a2;
|
|
9112
9061
|
const indicator = selectType === "checkbox" ? "checkbox" : selectType === "radio" ? "radio" : selectType === "default" ? "checkmark" : "none";
|
|
9113
|
-
const hasChildren =
|
|
9114
|
-
const generatedId =
|
|
9062
|
+
const hasChildren = React77__namespace.Children.count(children) > 0;
|
|
9063
|
+
const generatedId = React77__namespace.useId();
|
|
9115
9064
|
const listId = `${generatedId}-list`;
|
|
9116
|
-
const listRef =
|
|
9117
|
-
const [activeIndex, setActiveIndex] =
|
|
9065
|
+
const listRef = React77__namespace.useRef(null);
|
|
9066
|
+
const [activeIndex, setActiveIndex] = React77__namespace.useState(-1);
|
|
9118
9067
|
const activeItemId = activeIndex >= 0 ? `${listId}-item-${activeIndex}` : void 0;
|
|
9119
|
-
const getItems =
|
|
9068
|
+
const getItems = React77__namespace.useCallback(() => {
|
|
9120
9069
|
if (!listRef.current) return [];
|
|
9121
9070
|
return Array.from(
|
|
9122
9071
|
listRef.current.querySelectorAll('[role="option"]')
|
|
9123
9072
|
);
|
|
9124
9073
|
}, []);
|
|
9125
|
-
const handleKeyDown =
|
|
9074
|
+
const handleKeyDown = React77__namespace.useCallback(
|
|
9126
9075
|
(e) => {
|
|
9127
9076
|
var _a3;
|
|
9128
9077
|
const items = getItems();
|
|
@@ -9205,8 +9154,8 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9205
9154
|
"focus-visible:outline-none"
|
|
9206
9155
|
),
|
|
9207
9156
|
style: listMaxHeight ? { maxHeight: listMaxHeight } : void 0,
|
|
9208
|
-
children: hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col px-1", role: "presentation", children:
|
|
9209
|
-
if (
|
|
9157
|
+
children: hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col px-1", role: "presentation", children: React77__namespace.Children.map(children, (child, index) => {
|
|
9158
|
+
if (React77__namespace.isValidElement(child) && child.type.displayName === "SelectMenuItem") {
|
|
9210
9159
|
const itemProps = child.props;
|
|
9211
9160
|
const overrides = {};
|
|
9212
9161
|
if (indicator !== "none" && itemProps.indicator === void 0) {
|
|
@@ -9223,7 +9172,7 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9223
9172
|
overrides["data-active"] = "true";
|
|
9224
9173
|
}
|
|
9225
9174
|
if (Object.keys(overrides).length > 0) {
|
|
9226
|
-
return
|
|
9175
|
+
return React77__namespace.cloneElement(
|
|
9227
9176
|
child,
|
|
9228
9177
|
overrides
|
|
9229
9178
|
);
|
|
@@ -9248,7 +9197,7 @@ var SelectMenu = React78__namespace.forwardRef(
|
|
|
9248
9197
|
}
|
|
9249
9198
|
);
|
|
9250
9199
|
SelectMenu.displayName = "SelectMenu";
|
|
9251
|
-
var SelectMenuFooterButton =
|
|
9200
|
+
var SelectMenuFooterButton = React77__namespace.forwardRef((_a, ref) => {
|
|
9252
9201
|
var _b = _a, { className, icon = "ri-add-line", children = "Add new", disabled } = _b, props = __objRest(_b, ["className", "icon", "children", "disabled"]);
|
|
9253
9202
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9254
9203
|
"button",
|
|
@@ -9291,7 +9240,7 @@ var SelectMenuFooterButton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9291
9240
|
);
|
|
9292
9241
|
});
|
|
9293
9242
|
SelectMenuFooterButton.displayName = "SelectMenuFooterButton";
|
|
9294
|
-
var SelectInput =
|
|
9243
|
+
var SelectInput = React77__namespace.forwardRef(
|
|
9295
9244
|
({
|
|
9296
9245
|
label,
|
|
9297
9246
|
required,
|
|
@@ -9323,10 +9272,10 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9323
9272
|
footer,
|
|
9324
9273
|
className
|
|
9325
9274
|
}, ref) => {
|
|
9326
|
-
const [internalOpen, setInternalOpen] =
|
|
9275
|
+
const [internalOpen, setInternalOpen] = React77__namespace.useState(false);
|
|
9327
9276
|
const isControlled = controlledOpen !== void 0;
|
|
9328
9277
|
const isOpen = isControlled ? controlledOpen : internalOpen;
|
|
9329
|
-
const handleOpenChange =
|
|
9278
|
+
const handleOpenChange = React77__namespace.useCallback(
|
|
9330
9279
|
(next) => {
|
|
9331
9280
|
if (disabled) return;
|
|
9332
9281
|
if (!isControlled) setInternalOpen(next);
|
|
@@ -9334,7 +9283,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9334
9283
|
},
|
|
9335
9284
|
[disabled, isControlled, onOpenChange]
|
|
9336
9285
|
);
|
|
9337
|
-
const generatedId =
|
|
9286
|
+
const generatedId = React77__namespace.useId();
|
|
9338
9287
|
const hasError = !!error;
|
|
9339
9288
|
const helperText = hasError ? error : caption;
|
|
9340
9289
|
const hasTags = tags && tags.length > 0;
|
|
@@ -9360,6 +9309,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9360
9309
|
role: "combobox",
|
|
9361
9310
|
"aria-expanded": isOpen,
|
|
9362
9311
|
"aria-haspopup": "listbox",
|
|
9312
|
+
"aria-controls": `${generatedId}-listbox`,
|
|
9363
9313
|
"aria-multiselectable": multiSelect || void 0,
|
|
9364
9314
|
"aria-invalid": hasError || void 0,
|
|
9365
9315
|
"aria-describedby": helperText ? `${generatedId}-caption` : void 0,
|
|
@@ -9413,7 +9363,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9413
9363
|
children: leadIcon
|
|
9414
9364
|
}
|
|
9415
9365
|
) : null,
|
|
9416
|
-
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(
|
|
9366
|
+
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(React77__namespace.Fragment, { children: [
|
|
9417
9367
|
i > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9418
9368
|
"span",
|
|
9419
9369
|
{
|
|
@@ -9475,6 +9425,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9475
9425
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9476
9426
|
PopoverPrimitive__namespace.Content,
|
|
9477
9427
|
__spreadProps(__spreadValues({
|
|
9428
|
+
id: `${generatedId}-listbox`,
|
|
9478
9429
|
align: "start",
|
|
9479
9430
|
sideOffset: 6,
|
|
9480
9431
|
className: cn(
|
|
@@ -9527,7 +9478,7 @@ var SelectInput = React78__namespace.forwardRef(
|
|
|
9527
9478
|
}
|
|
9528
9479
|
);
|
|
9529
9480
|
SelectInput.displayName = "SelectInput";
|
|
9530
|
-
var SelectMenuItem =
|
|
9481
|
+
var SelectMenuItem = React77__namespace.forwardRef(
|
|
9531
9482
|
(_a, ref) => {
|
|
9532
9483
|
var _b = _a, {
|
|
9533
9484
|
className,
|
|
@@ -9574,7 +9525,16 @@ var SelectMenuItem = React78__namespace.forwardRef(
|
|
|
9574
9525
|
}, props), {
|
|
9575
9526
|
children: [
|
|
9576
9527
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex size-5 shrink-0 items-center justify-center", children: [
|
|
9577
|
-
indicator === "checkmark" && selected && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9528
|
+
indicator === "checkmark" && selected && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9529
|
+
"i",
|
|
9530
|
+
{
|
|
9531
|
+
"aria-hidden": true,
|
|
9532
|
+
className: cn(
|
|
9533
|
+
"ri-check-line text-base leading-none",
|
|
9534
|
+
disabled ? "text-icon-default-disabled" : "text-icon-default-subtle"
|
|
9535
|
+
)
|
|
9536
|
+
}
|
|
9537
|
+
),
|
|
9578
9538
|
indicator === "checkbox" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9579
9539
|
"span",
|
|
9580
9540
|
{
|
|
@@ -9587,13 +9547,13 @@ var SelectMenuItem = React78__namespace.forwardRef(
|
|
|
9587
9547
|
disabled && "border-sui-border-default bg-[var(--bg-checkbox-disabled)] !shadow-none"
|
|
9588
9548
|
),
|
|
9589
9549
|
children: selected && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9590
|
-
|
|
9550
|
+
"i",
|
|
9591
9551
|
{
|
|
9552
|
+
"aria-hidden": true,
|
|
9592
9553
|
className: cn(
|
|
9593
|
-
"
|
|
9554
|
+
"ri-check-line text-[12px] font-bold leading-none",
|
|
9594
9555
|
disabled ? "text-sui-text-hint" : "text-white"
|
|
9595
|
-
)
|
|
9596
|
-
strokeWidth: 3
|
|
9556
|
+
)
|
|
9597
9557
|
}
|
|
9598
9558
|
)
|
|
9599
9559
|
}
|
|
@@ -9682,7 +9642,7 @@ var SelectMenuItem = React78__namespace.forwardRef(
|
|
|
9682
9642
|
}
|
|
9683
9643
|
);
|
|
9684
9644
|
SelectMenuItem.displayName = "SelectMenuItem";
|
|
9685
|
-
var SelectMenuLabel =
|
|
9645
|
+
var SelectMenuLabel = React77__namespace.forwardRef(
|
|
9686
9646
|
(_a, ref) => {
|
|
9687
9647
|
var _b = _a, { className, caption, children } = _b, props = __objRest(_b, ["className", "caption", "children"]);
|
|
9688
9648
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -9704,7 +9664,7 @@ var SelectMenuLabel = React78__namespace.forwardRef(
|
|
|
9704
9664
|
}
|
|
9705
9665
|
);
|
|
9706
9666
|
SelectMenuLabel.displayName = "SelectMenuLabel";
|
|
9707
|
-
var SelectMenuDescription =
|
|
9667
|
+
var SelectMenuDescription = React77__namespace.forwardRef((_a, ref) => {
|
|
9708
9668
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9709
9669
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9710
9670
|
"p",
|
|
@@ -9718,7 +9678,7 @@ var SelectMenuDescription = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9718
9678
|
);
|
|
9719
9679
|
});
|
|
9720
9680
|
SelectMenuDescription.displayName = "SelectMenuDescription";
|
|
9721
|
-
var SelectMenuSeparator =
|
|
9681
|
+
var SelectMenuSeparator = React77__namespace.forwardRef((_a, ref) => {
|
|
9722
9682
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9723
9683
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9724
9684
|
"div",
|
|
@@ -9730,7 +9690,7 @@ var SelectMenuSeparator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9730
9690
|
);
|
|
9731
9691
|
});
|
|
9732
9692
|
SelectMenuSeparator.displayName = "SelectMenuSeparator";
|
|
9733
|
-
var SelectMenuLargeItem =
|
|
9693
|
+
var SelectMenuLargeItem = React77__namespace.forwardRef(
|
|
9734
9694
|
(_a, ref) => {
|
|
9735
9695
|
var _b = _a, {
|
|
9736
9696
|
className,
|
|
@@ -9801,10 +9761,11 @@ var SelectMenuLargeItem = React78__namespace.forwardRef(
|
|
|
9801
9761
|
)
|
|
9802
9762
|
] }),
|
|
9803
9763
|
selected && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9804
|
-
|
|
9764
|
+
"i",
|
|
9805
9765
|
{
|
|
9766
|
+
"aria-hidden": true,
|
|
9806
9767
|
className: cn(
|
|
9807
|
-
"
|
|
9768
|
+
"ri-check-line text-base leading-none",
|
|
9808
9769
|
disabled ? "text-icon-default-disabled" : "text-icon-default-subtle"
|
|
9809
9770
|
)
|
|
9810
9771
|
}
|
|
@@ -9825,7 +9786,7 @@ var SelectMenuLargeItem = React78__namespace.forwardRef(
|
|
|
9825
9786
|
}
|
|
9826
9787
|
);
|
|
9827
9788
|
SelectMenuLargeItem.displayName = "SelectMenuLargeItem";
|
|
9828
|
-
var Separator3 =
|
|
9789
|
+
var Separator3 = React77__namespace.forwardRef(
|
|
9829
9790
|
(_a, ref) => {
|
|
9830
9791
|
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
9831
9792
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -9848,7 +9809,7 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
9848
9809
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
9849
9810
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
9850
9811
|
var SheetPortal = DialogPrimitive__namespace.Portal;
|
|
9851
|
-
var SheetOverlay =
|
|
9812
|
+
var SheetOverlay = React77__namespace.forwardRef((_a, ref) => {
|
|
9852
9813
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9853
9814
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9854
9815
|
DialogPrimitive__namespace.Overlay,
|
|
@@ -9864,7 +9825,7 @@ var SheetOverlay = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9864
9825
|
});
|
|
9865
9826
|
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
9866
9827
|
var sheetVariants = classVarianceAuthority.cva(
|
|
9867
|
-
"fixed z-50 gap-4 bg-
|
|
9828
|
+
"fixed z-50 gap-4 bg-sui-bg-card p-6 shadow-modal-sm transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
9868
9829
|
{
|
|
9869
9830
|
variants: {
|
|
9870
9831
|
side: {
|
|
@@ -9879,7 +9840,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
9879
9840
|
}
|
|
9880
9841
|
}
|
|
9881
9842
|
);
|
|
9882
|
-
var SheetContent =
|
|
9843
|
+
var SheetContent = React77__namespace.forwardRef((_a, ref) => {
|
|
9883
9844
|
var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
|
|
9884
9845
|
return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
9885
9846
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
@@ -9891,8 +9852,8 @@ var SheetContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
9891
9852
|
}, props), {
|
|
9892
9853
|
children: [
|
|
9893
9854
|
children,
|
|
9894
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-
|
|
9895
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9855
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-sui-bg-default transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-sui-border-highlight focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-sui-bg-state-ghost-hover", children: [
|
|
9856
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-close-line text-base", "aria-hidden": true }),
|
|
9896
9857
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
9897
9858
|
] })
|
|
9898
9859
|
]
|
|
@@ -9935,32 +9896,32 @@ var SheetFooter = (_a) => {
|
|
|
9935
9896
|
);
|
|
9936
9897
|
};
|
|
9937
9898
|
SheetFooter.displayName = "SheetFooter";
|
|
9938
|
-
var SheetTitle =
|
|
9899
|
+
var SheetTitle = React77__namespace.forwardRef((_a, ref) => {
|
|
9939
9900
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9940
9901
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9941
9902
|
DialogPrimitive__namespace.Title,
|
|
9942
9903
|
__spreadValues({
|
|
9943
9904
|
ref,
|
|
9944
|
-
className: cn("text-lg font-semibold text-
|
|
9905
|
+
className: cn("text-lg font-semibold text-sui-text-default", className)
|
|
9945
9906
|
}, props)
|
|
9946
9907
|
);
|
|
9947
9908
|
});
|
|
9948
9909
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
9949
|
-
var SheetDescription =
|
|
9910
|
+
var SheetDescription = React77__namespace.forwardRef((_a, ref) => {
|
|
9950
9911
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9951
9912
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9952
9913
|
DialogPrimitive__namespace.Description,
|
|
9953
9914
|
__spreadValues({
|
|
9954
9915
|
ref,
|
|
9955
|
-
className: cn("text-sm text-muted
|
|
9916
|
+
className: cn("text-sm text-sui-text-muted", className)
|
|
9956
9917
|
}, props)
|
|
9957
9918
|
);
|
|
9958
9919
|
});
|
|
9959
9920
|
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
9960
9921
|
var MOBILE_BREAKPOINT = 768;
|
|
9961
9922
|
function useIsMobile() {
|
|
9962
|
-
const [isMobile, setIsMobile] =
|
|
9963
|
-
|
|
9923
|
+
const [isMobile, setIsMobile] = React77__namespace.useState(void 0);
|
|
9924
|
+
React77__namespace.useEffect(() => {
|
|
9964
9925
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
9965
9926
|
const onChange = () => {
|
|
9966
9927
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -9980,7 +9941,7 @@ function Skeleton(_a) {
|
|
|
9980
9941
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9981
9942
|
"div",
|
|
9982
9943
|
__spreadValues({
|
|
9983
|
-
className: cn("animate-pulse rounded-md bg-
|
|
9944
|
+
className: cn("animate-pulse rounded-md bg-sui-bg-subtle", className)
|
|
9984
9945
|
}, props)
|
|
9985
9946
|
);
|
|
9986
9947
|
}
|
|
@@ -9990,15 +9951,15 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
9990
9951
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
9991
9952
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
9992
9953
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
9993
|
-
var SidebarContext =
|
|
9954
|
+
var SidebarContext = React77__namespace.createContext(null);
|
|
9994
9955
|
function useSidebar() {
|
|
9995
|
-
const context =
|
|
9956
|
+
const context = React77__namespace.useContext(SidebarContext);
|
|
9996
9957
|
if (!context) {
|
|
9997
9958
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
9998
9959
|
}
|
|
9999
9960
|
return context;
|
|
10000
9961
|
}
|
|
10001
|
-
var SidebarProvider =
|
|
9962
|
+
var SidebarProvider = React77__namespace.forwardRef(
|
|
10002
9963
|
(_a, ref) => {
|
|
10003
9964
|
var _b = _a, {
|
|
10004
9965
|
defaultOpen = true,
|
|
@@ -10016,10 +9977,10 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10016
9977
|
"children"
|
|
10017
9978
|
]);
|
|
10018
9979
|
const isMobile = useIsMobile();
|
|
10019
|
-
const [openMobile, setOpenMobile] =
|
|
10020
|
-
const [_open, _setOpen] =
|
|
9980
|
+
const [openMobile, setOpenMobile] = React77__namespace.useState(false);
|
|
9981
|
+
const [_open, _setOpen] = React77__namespace.useState(defaultOpen);
|
|
10021
9982
|
const open = openProp != null ? openProp : _open;
|
|
10022
|
-
const setOpen =
|
|
9983
|
+
const setOpen = React77__namespace.useCallback(
|
|
10023
9984
|
(value) => {
|
|
10024
9985
|
const openState = typeof value === "function" ? value(open) : value;
|
|
10025
9986
|
if (setOpenProp) {
|
|
@@ -10031,10 +9992,10 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10031
9992
|
},
|
|
10032
9993
|
[setOpenProp, open]
|
|
10033
9994
|
);
|
|
10034
|
-
const toggleSidebar =
|
|
9995
|
+
const toggleSidebar = React77__namespace.useCallback(() => {
|
|
10035
9996
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
10036
9997
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
10037
|
-
|
|
9998
|
+
React77__namespace.useEffect(() => {
|
|
10038
9999
|
const handleKeyDown = (event) => {
|
|
10039
10000
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
10040
10001
|
event.preventDefault();
|
|
@@ -10045,7 +10006,7 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10045
10006
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
10046
10007
|
}, [toggleSidebar]);
|
|
10047
10008
|
const state = open ? "expanded" : "collapsed";
|
|
10048
|
-
const contextValue =
|
|
10009
|
+
const contextValue = React77__namespace.useMemo(
|
|
10049
10010
|
() => ({
|
|
10050
10011
|
state,
|
|
10051
10012
|
open,
|
|
@@ -10076,7 +10037,7 @@ var SidebarProvider = React78__namespace.forwardRef(
|
|
|
10076
10037
|
}
|
|
10077
10038
|
);
|
|
10078
10039
|
SidebarProvider.displayName = "SidebarProvider";
|
|
10079
|
-
var Sidebar =
|
|
10040
|
+
var Sidebar = React77__namespace.forwardRef(
|
|
10080
10041
|
(_a, ref) => {
|
|
10081
10042
|
var _b = _a, {
|
|
10082
10043
|
side = "left",
|
|
@@ -10175,7 +10136,7 @@ var Sidebar = React78__namespace.forwardRef(
|
|
|
10175
10136
|
}
|
|
10176
10137
|
);
|
|
10177
10138
|
Sidebar.displayName = "Sidebar";
|
|
10178
|
-
var SidebarTrigger =
|
|
10139
|
+
var SidebarTrigger = React77__namespace.forwardRef((_a, ref) => {
|
|
10179
10140
|
var _b = _a, { className, onClick } = _b, props = __objRest(_b, ["className", "onClick"]);
|
|
10180
10141
|
const { toggleSidebar } = useSidebar();
|
|
10181
10142
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -10193,14 +10154,14 @@ var SidebarTrigger = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10193
10154
|
}
|
|
10194
10155
|
}, props), {
|
|
10195
10156
|
children: [
|
|
10196
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10157
|
+
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-layout-left-line text-base", "aria-hidden": true }),
|
|
10197
10158
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
10198
10159
|
]
|
|
10199
10160
|
})
|
|
10200
10161
|
);
|
|
10201
10162
|
});
|
|
10202
10163
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
10203
|
-
var SidebarRail =
|
|
10164
|
+
var SidebarRail = React77__namespace.forwardRef((_a, ref) => {
|
|
10204
10165
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10205
10166
|
const { toggleSidebar } = useSidebar();
|
|
10206
10167
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10225,14 +10186,14 @@ var SidebarRail = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10225
10186
|
);
|
|
10226
10187
|
});
|
|
10227
10188
|
SidebarRail.displayName = "SidebarRail";
|
|
10228
|
-
var SidebarInset =
|
|
10189
|
+
var SidebarInset = React77__namespace.forwardRef((_a, ref) => {
|
|
10229
10190
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10230
10191
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10231
10192
|
"main",
|
|
10232
10193
|
__spreadValues({
|
|
10233
10194
|
ref,
|
|
10234
10195
|
className: cn(
|
|
10235
|
-
"relative flex w-full flex-1 flex-col bg-
|
|
10196
|
+
"relative flex w-full flex-1 flex-col bg-sui-bg-default",
|
|
10236
10197
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
10237
10198
|
className
|
|
10238
10199
|
)
|
|
@@ -10240,7 +10201,7 @@ var SidebarInset = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10240
10201
|
);
|
|
10241
10202
|
});
|
|
10242
10203
|
SidebarInset.displayName = "SidebarInset";
|
|
10243
|
-
var SidebarInput =
|
|
10204
|
+
var SidebarInput = React77__namespace.forwardRef((_a, ref) => {
|
|
10244
10205
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10245
10206
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10246
10207
|
Input,
|
|
@@ -10248,14 +10209,14 @@ var SidebarInput = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10248
10209
|
ref,
|
|
10249
10210
|
"data-sidebar": "input",
|
|
10250
10211
|
className: cn(
|
|
10251
|
-
"h-8 w-full bg-
|
|
10212
|
+
"h-8 w-full bg-sui-bg-default shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
10252
10213
|
className
|
|
10253
10214
|
)
|
|
10254
10215
|
}, props)
|
|
10255
10216
|
);
|
|
10256
10217
|
});
|
|
10257
10218
|
SidebarInput.displayName = "SidebarInput";
|
|
10258
|
-
var SidebarHeader =
|
|
10219
|
+
var SidebarHeader = React77__namespace.forwardRef((_a, ref) => {
|
|
10259
10220
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10260
10221
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10261
10222
|
"div",
|
|
@@ -10267,7 +10228,7 @@ var SidebarHeader = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10267
10228
|
);
|
|
10268
10229
|
});
|
|
10269
10230
|
SidebarHeader.displayName = "SidebarHeader";
|
|
10270
|
-
var SidebarFooter =
|
|
10231
|
+
var SidebarFooter = React77__namespace.forwardRef((_a, ref) => {
|
|
10271
10232
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10272
10233
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10273
10234
|
"div",
|
|
@@ -10279,7 +10240,7 @@ var SidebarFooter = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10279
10240
|
);
|
|
10280
10241
|
});
|
|
10281
10242
|
SidebarFooter.displayName = "SidebarFooter";
|
|
10282
|
-
var SidebarSeparator =
|
|
10243
|
+
var SidebarSeparator = React77__namespace.forwardRef((_a, ref) => {
|
|
10283
10244
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10284
10245
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10285
10246
|
Separator3,
|
|
@@ -10291,7 +10252,7 @@ var SidebarSeparator = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10291
10252
|
);
|
|
10292
10253
|
});
|
|
10293
10254
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
10294
|
-
var SidebarContent =
|
|
10255
|
+
var SidebarContent = React77__namespace.forwardRef((_a, ref) => {
|
|
10295
10256
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10296
10257
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10297
10258
|
"div",
|
|
@@ -10306,7 +10267,7 @@ var SidebarContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10306
10267
|
);
|
|
10307
10268
|
});
|
|
10308
10269
|
SidebarContent.displayName = "SidebarContent";
|
|
10309
|
-
var SidebarGroup =
|
|
10270
|
+
var SidebarGroup = React77__namespace.forwardRef((_a, ref) => {
|
|
10310
10271
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10311
10272
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10312
10273
|
"div",
|
|
@@ -10318,7 +10279,7 @@ var SidebarGroup = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10318
10279
|
);
|
|
10319
10280
|
});
|
|
10320
10281
|
SidebarGroup.displayName = "SidebarGroup";
|
|
10321
|
-
var SidebarGroupLabel =
|
|
10282
|
+
var SidebarGroupLabel = React77__namespace.forwardRef((_a, ref) => {
|
|
10322
10283
|
var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
|
|
10323
10284
|
const Comp = asChild ? reactSlot.Slot : "div";
|
|
10324
10285
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10335,7 +10296,7 @@ var SidebarGroupLabel = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10335
10296
|
);
|
|
10336
10297
|
});
|
|
10337
10298
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
10338
|
-
var SidebarGroupAction =
|
|
10299
|
+
var SidebarGroupAction = React77__namespace.forwardRef((_a, ref) => {
|
|
10339
10300
|
var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
|
|
10340
10301
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
10341
10302
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10354,7 +10315,7 @@ var SidebarGroupAction = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10354
10315
|
);
|
|
10355
10316
|
});
|
|
10356
10317
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
10357
|
-
var SidebarGroupContent =
|
|
10318
|
+
var SidebarGroupContent = React77__namespace.forwardRef((_a, ref) => {
|
|
10358
10319
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10359
10320
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10360
10321
|
"div",
|
|
@@ -10366,7 +10327,7 @@ var SidebarGroupContent = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10366
10327
|
);
|
|
10367
10328
|
});
|
|
10368
10329
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
10369
|
-
var SidebarMenu =
|
|
10330
|
+
var SidebarMenu = React77__namespace.forwardRef((_a, ref) => {
|
|
10370
10331
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10371
10332
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10372
10333
|
"ul",
|
|
@@ -10378,7 +10339,7 @@ var SidebarMenu = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10378
10339
|
);
|
|
10379
10340
|
});
|
|
10380
10341
|
SidebarMenu.displayName = "SidebarMenu";
|
|
10381
|
-
var SidebarMenuItem =
|
|
10342
|
+
var SidebarMenuItem = React77__namespace.forwardRef((_a, ref) => {
|
|
10382
10343
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10383
10344
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10384
10345
|
"li",
|
|
@@ -10396,7 +10357,7 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
|
10396
10357
|
variants: {
|
|
10397
10358
|
variant: {
|
|
10398
10359
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
10399
|
-
outline: "bg-
|
|
10360
|
+
outline: "bg-sui-bg-default shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
10400
10361
|
},
|
|
10401
10362
|
size: {
|
|
10402
10363
|
default: "h-8 text-sm",
|
|
@@ -10410,7 +10371,7 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
|
10410
10371
|
}
|
|
10411
10372
|
}
|
|
10412
10373
|
);
|
|
10413
|
-
var SidebarMenuButton =
|
|
10374
|
+
var SidebarMenuButton = React77__namespace.forwardRef(
|
|
10414
10375
|
(_a, ref) => {
|
|
10415
10376
|
var _b = _a, {
|
|
10416
10377
|
asChild = false,
|
|
@@ -10461,7 +10422,7 @@ var SidebarMenuButton = React78__namespace.forwardRef(
|
|
|
10461
10422
|
}
|
|
10462
10423
|
);
|
|
10463
10424
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
10464
|
-
var SidebarMenuAction =
|
|
10425
|
+
var SidebarMenuAction = React77__namespace.forwardRef((_a, ref) => {
|
|
10465
10426
|
var _b = _a, { className, asChild = false, showOnHover = false } = _b, props = __objRest(_b, ["className", "asChild", "showOnHover"]);
|
|
10466
10427
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
10467
10428
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10484,7 +10445,7 @@ var SidebarMenuAction = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10484
10445
|
);
|
|
10485
10446
|
});
|
|
10486
10447
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
10487
|
-
var SidebarMenuBadge =
|
|
10448
|
+
var SidebarMenuBadge = React77__namespace.forwardRef((_a, ref) => {
|
|
10488
10449
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10489
10450
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10490
10451
|
"div",
|
|
@@ -10504,9 +10465,9 @@ var SidebarMenuBadge = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10504
10465
|
);
|
|
10505
10466
|
});
|
|
10506
10467
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
10507
|
-
var SidebarMenuSkeleton =
|
|
10468
|
+
var SidebarMenuSkeleton = React77__namespace.forwardRef((_a, ref) => {
|
|
10508
10469
|
var _b = _a, { className, showIcon = false } = _b, props = __objRest(_b, ["className", "showIcon"]);
|
|
10509
|
-
const width =
|
|
10470
|
+
const width = React77__namespace.useMemo(() => {
|
|
10510
10471
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
10511
10472
|
}, []);
|
|
10512
10473
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -10539,7 +10500,7 @@ var SidebarMenuSkeleton = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10539
10500
|
);
|
|
10540
10501
|
});
|
|
10541
10502
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
10542
|
-
var SidebarMenuSub =
|
|
10503
|
+
var SidebarMenuSub = React77__namespace.forwardRef((_a, ref) => {
|
|
10543
10504
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10544
10505
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10545
10506
|
"ul",
|
|
@@ -10555,12 +10516,12 @@ var SidebarMenuSub = React78__namespace.forwardRef((_a, ref) => {
|
|
|
10555
10516
|
);
|
|
10556
10517
|
});
|
|
10557
10518
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
10558
|
-
var SidebarMenuSubItem =
|
|
10519
|
+
var SidebarMenuSubItem = React77__namespace.forwardRef((_a, ref) => {
|
|
10559
10520
|
var props = __objRest(_a, []);
|
|
10560
10521
|
return /* @__PURE__ */ jsxRuntime.jsx("li", __spreadValues({ ref }, props));
|
|
10561
10522
|
});
|
|
10562
10523
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
10563
|
-
var SidebarMenuSubButton =
|
|
10524
|
+
var SidebarMenuSubButton = React77__namespace.forwardRef((_a, ref) => {
|
|
10564
10525
|
var _b = _a, { asChild = false, size = "md", isActive, className } = _b, props = __objRest(_b, ["asChild", "size", "isActive", "className"]);
|
|
10565
10526
|
const Comp = asChild ? reactSlot.Slot : "a";
|
|
10566
10527
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10600,7 +10561,7 @@ var sidebarCardVariants = classVarianceAuthority.cva(
|
|
|
10600
10561
|
}
|
|
10601
10562
|
}
|
|
10602
10563
|
);
|
|
10603
|
-
var SidebarCard =
|
|
10564
|
+
var SidebarCard = React77__namespace.forwardRef(
|
|
10604
10565
|
(_a, ref) => {
|
|
10605
10566
|
var _b = _a, { className, variant, children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
|
|
10606
10567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10639,7 +10600,7 @@ var sidebarMenuItemVariants = classVarianceAuthority.cva("", {
|
|
|
10639
10600
|
variant: "default"
|
|
10640
10601
|
}
|
|
10641
10602
|
});
|
|
10642
|
-
var SidebarMenuItem2 =
|
|
10603
|
+
var SidebarMenuItem2 = React77__namespace.forwardRef(
|
|
10643
10604
|
(_a, ref) => {
|
|
10644
10605
|
var _b = _a, {
|
|
10645
10606
|
className,
|
|
@@ -10835,7 +10796,7 @@ function percent2(value, min, max) {
|
|
|
10835
10796
|
if (max === min) return 0;
|
|
10836
10797
|
return (value - min) / (max - min) * 100;
|
|
10837
10798
|
}
|
|
10838
|
-
var Slider =
|
|
10799
|
+
var Slider = React77__namespace.forwardRef(
|
|
10839
10800
|
(_a, ref) => {
|
|
10840
10801
|
var _b = _a, {
|
|
10841
10802
|
className,
|
|
@@ -10868,12 +10829,12 @@ var Slider = React78__namespace.forwardRef(
|
|
|
10868
10829
|
"formatValue",
|
|
10869
10830
|
"onValueChange"
|
|
10870
10831
|
]);
|
|
10871
|
-
const trackRef =
|
|
10872
|
-
const [isDragging, setIsDragging] =
|
|
10873
|
-
const [isFocused, setIsFocused] =
|
|
10832
|
+
const trackRef = React77__namespace.useRef(null);
|
|
10833
|
+
const [isDragging, setIsDragging] = React77__namespace.useState(false);
|
|
10834
|
+
const [isFocused, setIsFocused] = React77__namespace.useState(false);
|
|
10874
10835
|
const pct = percent2(value, min, max);
|
|
10875
10836
|
const displayValue = formatValue ? formatValue(value) : `${value}`;
|
|
10876
|
-
const getValueFromPointer =
|
|
10837
|
+
const getValueFromPointer = React77__namespace.useCallback(
|
|
10877
10838
|
(clientX) => {
|
|
10878
10839
|
const track = trackRef.current;
|
|
10879
10840
|
if (!track) return 0;
|
|
@@ -10884,7 +10845,7 @@ var Slider = React78__namespace.forwardRef(
|
|
|
10884
10845
|
},
|
|
10885
10846
|
[min, max, step]
|
|
10886
10847
|
);
|
|
10887
|
-
const handlePointerDown =
|
|
10848
|
+
const handlePointerDown = React77__namespace.useCallback(
|
|
10888
10849
|
(e) => {
|
|
10889
10850
|
if (disabled) return;
|
|
10890
10851
|
e.preventDefault();
|
|
@@ -10895,7 +10856,7 @@ var Slider = React78__namespace.forwardRef(
|
|
|
10895
10856
|
},
|
|
10896
10857
|
[disabled, getValueFromPointer, onValueChange, value]
|
|
10897
10858
|
);
|
|
10898
|
-
const handlePointerMove =
|
|
10859
|
+
const handlePointerMove = React77__namespace.useCallback(
|
|
10899
10860
|
(e) => {
|
|
10900
10861
|
if (!isDragging || disabled) return;
|
|
10901
10862
|
const newValue = getValueFromPointer(e.clientX);
|
|
@@ -10903,10 +10864,10 @@ var Slider = React78__namespace.forwardRef(
|
|
|
10903
10864
|
},
|
|
10904
10865
|
[isDragging, disabled, getValueFromPointer, onValueChange, value]
|
|
10905
10866
|
);
|
|
10906
|
-
const handlePointerUp =
|
|
10867
|
+
const handlePointerUp = React77__namespace.useCallback(() => {
|
|
10907
10868
|
setIsDragging(false);
|
|
10908
10869
|
}, []);
|
|
10909
|
-
const handleKeyDown =
|
|
10870
|
+
const handleKeyDown = React77__namespace.useCallback(
|
|
10910
10871
|
(e) => {
|
|
10911
10872
|
if (disabled) return;
|
|
10912
10873
|
let newValue = value;
|
|
@@ -10933,7 +10894,7 @@ var Slider = React78__namespace.forwardRef(
|
|
|
10933
10894
|
},
|
|
10934
10895
|
[disabled, value, step, min, max, onValueChange]
|
|
10935
10896
|
);
|
|
10936
|
-
const tickLabels =
|
|
10897
|
+
const tickLabels = React77__namespace.useMemo(() => {
|
|
10937
10898
|
if (pointLabels) return pointLabels;
|
|
10938
10899
|
const count2 = pointCount;
|
|
10939
10900
|
const labels = [];
|
|
@@ -11027,7 +10988,7 @@ Slider.displayName = "Slider";
|
|
|
11027
10988
|
function clamp3(value, min, max) {
|
|
11028
10989
|
return Math.min(Math.max(value, min), max);
|
|
11029
10990
|
}
|
|
11030
|
-
var SliderInput =
|
|
10991
|
+
var SliderInput = React77__namespace.forwardRef(
|
|
11031
10992
|
(_a, ref) => {
|
|
11032
10993
|
var _b = _a, {
|
|
11033
10994
|
className,
|
|
@@ -11050,8 +11011,8 @@ var SliderInput = React78__namespace.forwardRef(
|
|
|
11050
11011
|
"formatValue",
|
|
11051
11012
|
"onValueChange"
|
|
11052
11013
|
]);
|
|
11053
|
-
const [internalValue, setInternalValue] =
|
|
11054
|
-
|
|
11014
|
+
const [internalValue, setInternalValue] = React77__namespace.useState(value);
|
|
11015
|
+
React77__namespace.useEffect(() => {
|
|
11055
11016
|
setInternalValue(value);
|
|
11056
11017
|
}, [value]);
|
|
11057
11018
|
const commit = (newVal) => {
|
|
@@ -11158,7 +11119,7 @@ function percent3(value, min, max) {
|
|
|
11158
11119
|
if (max === min) return 0;
|
|
11159
11120
|
return (value - min) / (max - min) * 100;
|
|
11160
11121
|
}
|
|
11161
|
-
var SliderRange =
|
|
11122
|
+
var SliderRange = React77__namespace.forwardRef(
|
|
11162
11123
|
(_a, ref) => {
|
|
11163
11124
|
var _b = _a, {
|
|
11164
11125
|
className,
|
|
@@ -11191,15 +11152,15 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11191
11152
|
"formatValue",
|
|
11192
11153
|
"onValueChange"
|
|
11193
11154
|
]);
|
|
11194
|
-
const trackRef =
|
|
11195
|
-
const [draggingHandle, setDraggingHandle] =
|
|
11196
|
-
const [focusedHandle, setFocusedHandle] =
|
|
11155
|
+
const trackRef = React77__namespace.useRef(null);
|
|
11156
|
+
const [draggingHandle, setDraggingHandle] = React77__namespace.useState(null);
|
|
11157
|
+
const [focusedHandle, setFocusedHandle] = React77__namespace.useState(null);
|
|
11197
11158
|
const [rangeMin, rangeMax] = value;
|
|
11198
11159
|
const pctMin = percent3(rangeMin, min, max);
|
|
11199
11160
|
const pctMax = percent3(rangeMax, min, max);
|
|
11200
11161
|
const fmt = (v) => formatValue ? formatValue(v) : `${v}`;
|
|
11201
11162
|
const displayValue = `${fmt(rangeMin)} \u2013 ${fmt(rangeMax)}`;
|
|
11202
|
-
const getValueFromPointer =
|
|
11163
|
+
const getValueFromPointer = React77__namespace.useCallback(
|
|
11203
11164
|
(clientX) => {
|
|
11204
11165
|
const track = trackRef.current;
|
|
11205
11166
|
if (!track) return 0;
|
|
@@ -11210,7 +11171,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11210
11171
|
},
|
|
11211
11172
|
[min, max, step]
|
|
11212
11173
|
);
|
|
11213
|
-
const closestHandle =
|
|
11174
|
+
const closestHandle = React77__namespace.useCallback(
|
|
11214
11175
|
(pointerValue) => {
|
|
11215
11176
|
const distMin = Math.abs(pointerValue - rangeMin);
|
|
11216
11177
|
const distMax = Math.abs(pointerValue - rangeMax);
|
|
@@ -11218,7 +11179,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11218
11179
|
},
|
|
11219
11180
|
[rangeMin, rangeMax]
|
|
11220
11181
|
);
|
|
11221
|
-
const updateValue =
|
|
11182
|
+
const updateValue = React77__namespace.useCallback(
|
|
11222
11183
|
(handle, newVal) => {
|
|
11223
11184
|
if (handle === 0) {
|
|
11224
11185
|
const clamped = clamp4(newVal, min, rangeMax);
|
|
@@ -11230,7 +11191,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11230
11191
|
},
|
|
11231
11192
|
[min, max, rangeMin, rangeMax, onValueChange]
|
|
11232
11193
|
);
|
|
11233
|
-
const handlePointerDown =
|
|
11194
|
+
const handlePointerDown = React77__namespace.useCallback(
|
|
11234
11195
|
(e) => {
|
|
11235
11196
|
if (disabled) return;
|
|
11236
11197
|
e.preventDefault();
|
|
@@ -11242,7 +11203,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11242
11203
|
},
|
|
11243
11204
|
[disabled, getValueFromPointer, closestHandle, updateValue]
|
|
11244
11205
|
);
|
|
11245
|
-
const handlePointerMove =
|
|
11206
|
+
const handlePointerMove = React77__namespace.useCallback(
|
|
11246
11207
|
(e) => {
|
|
11247
11208
|
if (draggingHandle === null || disabled) return;
|
|
11248
11209
|
const newVal = getValueFromPointer(e.clientX);
|
|
@@ -11250,10 +11211,10 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11250
11211
|
},
|
|
11251
11212
|
[draggingHandle, disabled, getValueFromPointer, updateValue]
|
|
11252
11213
|
);
|
|
11253
|
-
const handlePointerUp =
|
|
11214
|
+
const handlePointerUp = React77__namespace.useCallback(() => {
|
|
11254
11215
|
setDraggingHandle(null);
|
|
11255
11216
|
}, []);
|
|
11256
|
-
const makeKeyHandler =
|
|
11217
|
+
const makeKeyHandler = React77__namespace.useCallback(
|
|
11257
11218
|
(handle) => (e) => {
|
|
11258
11219
|
if (disabled) return;
|
|
11259
11220
|
const currentVal = handle === 0 ? rangeMin : rangeMax;
|
|
@@ -11281,7 +11242,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11281
11242
|
},
|
|
11282
11243
|
[disabled, rangeMin, rangeMax, step, min, max, updateValue]
|
|
11283
11244
|
);
|
|
11284
|
-
const tickLabels =
|
|
11245
|
+
const tickLabels = React77__namespace.useMemo(() => {
|
|
11285
11246
|
if (pointLabels) return pointLabels;
|
|
11286
11247
|
const labels = [];
|
|
11287
11248
|
for (let i = 0; i < pointCount; i++) {
|
|
@@ -11398,7 +11359,7 @@ var SliderRange = React78__namespace.forwardRef(
|
|
|
11398
11359
|
}
|
|
11399
11360
|
);
|
|
11400
11361
|
SliderRange.displayName = "SliderRange";
|
|
11401
|
-
var SliderRangeInput =
|
|
11362
|
+
var SliderRangeInput = React77__namespace.forwardRef(
|
|
11402
11363
|
(_a, ref) => {
|
|
11403
11364
|
var _b = _a, {
|
|
11404
11365
|
className,
|
|
@@ -11522,25 +11483,25 @@ var Toaster = (_a) => {
|
|
|
11522
11483
|
theme,
|
|
11523
11484
|
className: "toaster group",
|
|
11524
11485
|
icons: {
|
|
11525
|
-
success: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11526
|
-
info: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11527
|
-
warning: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11528
|
-
error: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11529
|
-
loading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11486
|
+
success: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-checkbox-circle-fill text-base", "aria-hidden": true }),
|
|
11487
|
+
info: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-information-line text-base", "aria-hidden": true }),
|
|
11488
|
+
warning: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-alert-line text-base", "aria-hidden": true }),
|
|
11489
|
+
error: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-error-warning-line text-base", "aria-hidden": true }),
|
|
11490
|
+
loading: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-loader-4-line text-base animate-spin", "aria-hidden": true })
|
|
11530
11491
|
},
|
|
11531
11492
|
toastOptions: {
|
|
11532
11493
|
classNames: {
|
|
11533
|
-
toast: "group toast group-[.toaster]:bg-
|
|
11534
|
-
description: "group-[.toast]:text-muted
|
|
11535
|
-
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-
|
|
11536
|
-
cancelButton: "group-[.toast]:bg-
|
|
11494
|
+
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",
|
|
11495
|
+
description: "group-[.toast]:text-sui-text-muted",
|
|
11496
|
+
actionButton: "group-[.toast]:bg-sui-bg-state-primary group-[.toast]:text-sui-text-white-default",
|
|
11497
|
+
cancelButton: "group-[.toast]:bg-sui-bg-subtle group-[.toast]:text-sui-text-muted"
|
|
11537
11498
|
}
|
|
11538
11499
|
}
|
|
11539
11500
|
}, props)
|
|
11540
11501
|
);
|
|
11541
11502
|
};
|
|
11542
11503
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
11543
|
-
var ToastViewport =
|
|
11504
|
+
var ToastViewport = React77__namespace.forwardRef((_a, ref) => {
|
|
11544
11505
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11545
11506
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11546
11507
|
ToastPrimitives__namespace.Viewport,
|
|
@@ -11559,8 +11520,8 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
11559
11520
|
{
|
|
11560
11521
|
variants: {
|
|
11561
11522
|
variant: {
|
|
11562
|
-
default: "border bg-
|
|
11563
|
-
destructive: "destructive group border-
|
|
11523
|
+
default: "border bg-sui-bg-default text-sui-text-default",
|
|
11524
|
+
destructive: "destructive group border-sui-border-default bg-sui-bg-state-destructive text-sui-text-white-default"
|
|
11564
11525
|
}
|
|
11565
11526
|
},
|
|
11566
11527
|
defaultVariants: {
|
|
@@ -11568,7 +11529,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
11568
11529
|
}
|
|
11569
11530
|
}
|
|
11570
11531
|
);
|
|
11571
|
-
var Toast =
|
|
11532
|
+
var Toast = React77__namespace.forwardRef((_a, ref) => {
|
|
11572
11533
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
11573
11534
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11574
11535
|
ToastPrimitives__namespace.Root,
|
|
@@ -11579,38 +11540,38 @@ var Toast = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11579
11540
|
);
|
|
11580
11541
|
});
|
|
11581
11542
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
11582
|
-
var ToastAction =
|
|
11543
|
+
var ToastAction = React77__namespace.forwardRef((_a, ref) => {
|
|
11583
11544
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11584
11545
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11585
11546
|
ToastPrimitives__namespace.Action,
|
|
11586
11547
|
__spreadValues({
|
|
11587
11548
|
ref,
|
|
11588
11549
|
className: cn(
|
|
11589
|
-
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-
|
|
11550
|
+
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-sui-bg-default transition-colors hover:bg-sui-bg-state-ghost-hover focus:outline-none focus:ring-2 focus:ring-sui-border-highlight focus:ring-offset-2 disabled:text-sui-text-hint disabled:pointer-events-none group-[.destructive]:border-sui-border-default/40 group-[.destructive]:hover:border-sui-bg-state-destructive/30 group-[.destructive]:hover:bg-sui-bg-state-destructive group-[.destructive]:hover:text-sui-text-white-default group-[.destructive]:focus:ring-sui-border-highlight",
|
|
11590
11551
|
className
|
|
11591
11552
|
)
|
|
11592
11553
|
}, props)
|
|
11593
11554
|
);
|
|
11594
11555
|
});
|
|
11595
11556
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
11596
|
-
var ToastClose =
|
|
11557
|
+
var ToastClose = React77__namespace.forwardRef((_a, ref) => {
|
|
11597
11558
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11598
11559
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11599
11560
|
ToastPrimitives__namespace.Close,
|
|
11600
11561
|
__spreadProps(__spreadValues({
|
|
11601
11562
|
ref,
|
|
11602
11563
|
className: cn(
|
|
11603
|
-
"absolute right-2 top-2 rounded-md p-1 text-
|
|
11564
|
+
"absolute right-2 top-2 rounded-md p-1 text-sui-text-default/50 opacity-0 transition-opacity hover:text-sui-text-default focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-sui-text-white-default/70 group-[.destructive]:hover:text-sui-text-white-default group-[.destructive]:focus:ring-sui-border-highlight group-[.destructive]:focus:ring-offset-sui-bg-state-destructive",
|
|
11604
11565
|
className
|
|
11605
11566
|
),
|
|
11606
11567
|
"toast-close": ""
|
|
11607
11568
|
}, props), {
|
|
11608
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11569
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "ri-close-line text-base", "aria-hidden": true })
|
|
11609
11570
|
})
|
|
11610
11571
|
);
|
|
11611
11572
|
});
|
|
11612
11573
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
11613
|
-
var ToastTitle =
|
|
11574
|
+
var ToastTitle = React77__namespace.forwardRef((_a, ref) => {
|
|
11614
11575
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11615
11576
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11616
11577
|
ToastPrimitives__namespace.Title,
|
|
@@ -11621,7 +11582,7 @@ var ToastTitle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11621
11582
|
);
|
|
11622
11583
|
});
|
|
11623
11584
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
11624
|
-
var ToastDescription =
|
|
11585
|
+
var ToastDescription = React77__namespace.forwardRef((_a, ref) => {
|
|
11625
11586
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11626
11587
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11627
11588
|
ToastPrimitives__namespace.Description,
|
|
@@ -11726,8 +11687,8 @@ function toast(_a) {
|
|
|
11726
11687
|
};
|
|
11727
11688
|
}
|
|
11728
11689
|
function useToast() {
|
|
11729
|
-
const [state, setState] =
|
|
11730
|
-
|
|
11690
|
+
const [state, setState] = React77__namespace.useState(memoryState);
|
|
11691
|
+
React77__namespace.useEffect(() => {
|
|
11731
11692
|
listeners.push(setState);
|
|
11732
11693
|
return () => {
|
|
11733
11694
|
const index = listeners.indexOf(setState);
|
|
@@ -11758,7 +11719,7 @@ function Toaster2() {
|
|
|
11758
11719
|
/* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
|
|
11759
11720
|
] });
|
|
11760
11721
|
}
|
|
11761
|
-
var Switch =
|
|
11722
|
+
var Switch = React77__namespace.forwardRef((_a, ref) => {
|
|
11762
11723
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11763
11724
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11764
11725
|
SwitchPrimitives__namespace.Root,
|
|
@@ -11810,10 +11771,10 @@ var Switch = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11810
11771
|
);
|
|
11811
11772
|
});
|
|
11812
11773
|
Switch.displayName = "Switch";
|
|
11813
|
-
var SwitchList =
|
|
11774
|
+
var SwitchList = React77__namespace.forwardRef(
|
|
11814
11775
|
(_a, ref) => {
|
|
11815
11776
|
var _b = _a, { className, divider = true, children } = _b, props = __objRest(_b, ["className", "divider", "children"]);
|
|
11816
|
-
const items =
|
|
11777
|
+
const items = React77__namespace.Children.toArray(children);
|
|
11817
11778
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11818
11779
|
"div",
|
|
11819
11780
|
__spreadProps(__spreadValues({
|
|
@@ -11841,7 +11802,7 @@ var SwitchList = React78__namespace.forwardRef(
|
|
|
11841
11802
|
}
|
|
11842
11803
|
);
|
|
11843
11804
|
SwitchList.displayName = "SwitchList";
|
|
11844
|
-
var SwitchWithText =
|
|
11805
|
+
var SwitchWithText = React77__namespace.forwardRef(
|
|
11845
11806
|
(_a, ref) => {
|
|
11846
11807
|
var _b = _a, {
|
|
11847
11808
|
className,
|
|
@@ -11858,7 +11819,7 @@ var SwitchWithText = React78__namespace.forwardRef(
|
|
|
11858
11819
|
"disabled",
|
|
11859
11820
|
"id"
|
|
11860
11821
|
]);
|
|
11861
|
-
const generatedId =
|
|
11822
|
+
const generatedId = React77__namespace.useId();
|
|
11862
11823
|
const switchId = id || generatedId;
|
|
11863
11824
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11864
11825
|
"div",
|
|
@@ -11915,7 +11876,7 @@ var SwitchWithText = React78__namespace.forwardRef(
|
|
|
11915
11876
|
}
|
|
11916
11877
|
);
|
|
11917
11878
|
SwitchWithText.displayName = "SwitchWithText";
|
|
11918
|
-
var Table =
|
|
11879
|
+
var Table = React77__namespace.forwardRef((_a, ref) => {
|
|
11919
11880
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11920
11881
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11921
11882
|
"table",
|
|
@@ -11926,12 +11887,12 @@ var Table = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11926
11887
|
) });
|
|
11927
11888
|
});
|
|
11928
11889
|
Table.displayName = "Table";
|
|
11929
|
-
var TableHeader =
|
|
11890
|
+
var TableHeader = React77__namespace.forwardRef((_a, ref) => {
|
|
11930
11891
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11931
|
-
return /* @__PURE__ */ jsxRuntime.jsx("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
|
|
11892
|
+
return /* @__PURE__ */ jsxRuntime.jsx("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b [&_tr]:border-sui-border-default", className) }, props));
|
|
11932
11893
|
});
|
|
11933
11894
|
TableHeader.displayName = "TableHeader";
|
|
11934
|
-
var TableBody =
|
|
11895
|
+
var TableBody = React77__namespace.forwardRef((_a, ref) => {
|
|
11935
11896
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11936
11897
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11937
11898
|
"tbody",
|
|
@@ -11942,21 +11903,21 @@ var TableBody = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11942
11903
|
);
|
|
11943
11904
|
});
|
|
11944
11905
|
TableBody.displayName = "TableBody";
|
|
11945
|
-
var TableFooter =
|
|
11906
|
+
var TableFooter = React77__namespace.forwardRef((_a, ref) => {
|
|
11946
11907
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11947
11908
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11948
11909
|
"tfoot",
|
|
11949
11910
|
__spreadValues({
|
|
11950
11911
|
ref,
|
|
11951
11912
|
className: cn(
|
|
11952
|
-
"border-t bg-sui-bg-basic-gray-alpha-2 font-medium [&>tr]:last:border-b-0",
|
|
11913
|
+
"border-t border-sui-border-default bg-sui-bg-basic-gray-alpha-2 font-medium [&>tr]:last:border-b-0",
|
|
11953
11914
|
className
|
|
11954
11915
|
)
|
|
11955
11916
|
}, props)
|
|
11956
11917
|
);
|
|
11957
11918
|
});
|
|
11958
11919
|
TableFooter.displayName = "TableFooter";
|
|
11959
|
-
var TableRow =
|
|
11920
|
+
var TableRow = React77__namespace.forwardRef((_a, ref) => {
|
|
11960
11921
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11961
11922
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11962
11923
|
"tr",
|
|
@@ -11970,21 +11931,21 @@ var TableRow = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11970
11931
|
);
|
|
11971
11932
|
});
|
|
11972
11933
|
TableRow.displayName = "TableRow";
|
|
11973
|
-
var TableHead =
|
|
11934
|
+
var TableHead = React77__namespace.forwardRef((_a, ref) => {
|
|
11974
11935
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11975
11936
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11976
11937
|
"th",
|
|
11977
11938
|
__spreadValues({
|
|
11978
11939
|
ref,
|
|
11979
11940
|
className: cn(
|
|
11980
|
-
"h-12 px-4 text-left align-middle font-medium text-muted
|
|
11941
|
+
"h-12 px-4 text-left align-middle font-medium text-sui-text-muted [&:has([role=checkbox])]:pr-0",
|
|
11981
11942
|
className
|
|
11982
11943
|
)
|
|
11983
11944
|
}, props)
|
|
11984
11945
|
);
|
|
11985
11946
|
});
|
|
11986
11947
|
TableHead.displayName = "TableHead";
|
|
11987
|
-
var TableCell =
|
|
11948
|
+
var TableCell = React77__namespace.forwardRef((_a, ref) => {
|
|
11988
11949
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11989
11950
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11990
11951
|
"td",
|
|
@@ -11995,13 +11956,13 @@ var TableCell = React78__namespace.forwardRef((_a, ref) => {
|
|
|
11995
11956
|
);
|
|
11996
11957
|
});
|
|
11997
11958
|
TableCell.displayName = "TableCell";
|
|
11998
|
-
var TableCaption =
|
|
11959
|
+
var TableCaption = React77__namespace.forwardRef((_a, ref) => {
|
|
11999
11960
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12000
11961
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12001
11962
|
"caption",
|
|
12002
11963
|
__spreadValues({
|
|
12003
11964
|
ref,
|
|
12004
|
-
className: cn("mt-4 text-sm text-muted
|
|
11965
|
+
className: cn("mt-4 text-sm text-sui-text-muted", className)
|
|
12005
11966
|
}, props)
|
|
12006
11967
|
);
|
|
12007
11968
|
});
|
|
@@ -12031,7 +11992,7 @@ var ariaSortMap2 = {
|
|
|
12031
11992
|
desc: "descending",
|
|
12032
11993
|
none: "none"
|
|
12033
11994
|
};
|
|
12034
|
-
var TableHeaderItem =
|
|
11995
|
+
var TableHeaderItem = React77__namespace.forwardRef(
|
|
12035
11996
|
(_a, ref) => {
|
|
12036
11997
|
var _b = _a, {
|
|
12037
11998
|
className,
|
|
@@ -12147,7 +12108,7 @@ var tableItemVariants = classVarianceAuthority.cva("flex items-center px-2", {
|
|
|
12147
12108
|
size: "lg"
|
|
12148
12109
|
}
|
|
12149
12110
|
});
|
|
12150
|
-
var TableItem =
|
|
12111
|
+
var TableItem = React77__namespace.forwardRef(
|
|
12151
12112
|
(_a, ref) => {
|
|
12152
12113
|
var _b = _a, {
|
|
12153
12114
|
className,
|
|
@@ -12231,7 +12192,7 @@ var TableItem = React78__namespace.forwardRef(
|
|
|
12231
12192
|
}
|
|
12232
12193
|
);
|
|
12233
12194
|
TableItem.displayName = "TableItem";
|
|
12234
|
-
var TablePagination =
|
|
12195
|
+
var TablePagination = React77__namespace.forwardRef(
|
|
12235
12196
|
(_a, ref) => {
|
|
12236
12197
|
var _b = _a, {
|
|
12237
12198
|
className,
|
|
@@ -12258,6 +12219,8 @@ var TablePagination = React78__namespace.forwardRef(
|
|
|
12258
12219
|
"div",
|
|
12259
12220
|
__spreadProps(__spreadValues({
|
|
12260
12221
|
ref,
|
|
12222
|
+
role: "navigation",
|
|
12223
|
+
"aria-label": "Pagination",
|
|
12261
12224
|
className: cn(
|
|
12262
12225
|
"flex items-center justify-between border-t border-sui-border-default px-2 py-3",
|
|
12263
12226
|
className
|
|
@@ -12316,7 +12279,7 @@ var tableRowSortVariants = classVarianceAuthority.cva(
|
|
|
12316
12279
|
}
|
|
12317
12280
|
}
|
|
12318
12281
|
);
|
|
12319
|
-
var TableRowSort =
|
|
12282
|
+
var TableRowSort = React77__namespace.forwardRef(
|
|
12320
12283
|
(_a, ref) => {
|
|
12321
12284
|
var _b = _a, { className, variant = "default", striped, sticky, children } = _b, props = __objRest(_b, ["className", "variant", "striped", "sticky", "children"]);
|
|
12322
12285
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12339,7 +12302,7 @@ var TableRowSort = React78__namespace.forwardRef(
|
|
|
12339
12302
|
TableRowSort.displayName = "TableRowSort";
|
|
12340
12303
|
var textWidths = ["w-20", "w-28", "w-24", "w-32", "w-16", "w-26", "w-22", "w-30"];
|
|
12341
12304
|
var skeletonBg = "bg-sui-bg-basic-gray-alpha-4";
|
|
12342
|
-
var TableSkeletonRow =
|
|
12305
|
+
var TableSkeletonRow = React77__namespace.forwardRef(
|
|
12343
12306
|
(_a, ref) => {
|
|
12344
12307
|
var _b = _a, { className, columns, rowCount = 5, size = "sm" } = _b, props = __objRest(_b, ["className", "columns", "rowCount", "size"]);
|
|
12345
12308
|
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) => {
|
|
@@ -12389,12 +12352,12 @@ var tabListVariants = classVarianceAuthority.cva(
|
|
|
12389
12352
|
}
|
|
12390
12353
|
}
|
|
12391
12354
|
);
|
|
12392
|
-
var TabList =
|
|
12355
|
+
var TabList = React77__namespace.forwardRef((_a, ref) => {
|
|
12393
12356
|
var _b = _a, { className, variant = "pill", shape = "pill", layout, children } = _b, props = __objRest(_b, ["className", "variant", "shape", "layout", "children"]);
|
|
12394
12357
|
const childShape = variant === "segmented" && shape === "rounded" ? "rounded" : shape;
|
|
12395
12358
|
const childRadiusOverride = variant === "segmented" && shape === "rounded" ? "rounded-sm" : void 0;
|
|
12396
|
-
const enhancedChildren =
|
|
12397
|
-
if (!
|
|
12359
|
+
const enhancedChildren = React77__namespace.Children.map(children, (child) => {
|
|
12360
|
+
if (!React77__namespace.isValidElement(child)) return child;
|
|
12398
12361
|
const extraProps = {
|
|
12399
12362
|
shape: childShape
|
|
12400
12363
|
};
|
|
@@ -12402,7 +12365,7 @@ var TabList = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12402
12365
|
const existingClassName = child.props.className;
|
|
12403
12366
|
extraProps.className = cn(existingClassName, childRadiusOverride);
|
|
12404
12367
|
}
|
|
12405
|
-
return
|
|
12368
|
+
return React77__namespace.cloneElement(child, extraProps);
|
|
12406
12369
|
});
|
|
12407
12370
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12408
12371
|
TabsPrimitive4__namespace.List,
|
|
@@ -12464,7 +12427,7 @@ var tabItemVariants = classVarianceAuthority.cva(
|
|
|
12464
12427
|
}
|
|
12465
12428
|
}
|
|
12466
12429
|
);
|
|
12467
|
-
var TabItem =
|
|
12430
|
+
var TabItem = React77__namespace.forwardRef((_a, ref) => {
|
|
12468
12431
|
var _b = _a, { className, shape, size } = _b, props = __objRest(_b, ["className", "shape", "size"]);
|
|
12469
12432
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12470
12433
|
TabsPrimitive4__namespace.Trigger,
|
|
@@ -12476,42 +12439,42 @@ var TabItem = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12476
12439
|
});
|
|
12477
12440
|
TabItem.displayName = "TabItem";
|
|
12478
12441
|
var Tabs = TabsPrimitive4__namespace.Root;
|
|
12479
|
-
var TabsList =
|
|
12442
|
+
var TabsList = React77__namespace.forwardRef((_a, ref) => {
|
|
12480
12443
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12481
12444
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12482
12445
|
TabsPrimitive4__namespace.List,
|
|
12483
12446
|
__spreadValues({
|
|
12484
12447
|
ref,
|
|
12485
12448
|
className: cn(
|
|
12486
|
-
"inline-flex h-10 items-center justify-center rounded-md bg-
|
|
12449
|
+
"inline-flex h-10 items-center justify-center rounded-md bg-sui-bg-subtle p-1 text-sui-text-muted",
|
|
12487
12450
|
className
|
|
12488
12451
|
)
|
|
12489
12452
|
}, props)
|
|
12490
12453
|
);
|
|
12491
12454
|
});
|
|
12492
12455
|
TabsList.displayName = TabsPrimitive4__namespace.List.displayName;
|
|
12493
|
-
var TabsTrigger =
|
|
12456
|
+
var TabsTrigger = React77__namespace.forwardRef((_a, ref) => {
|
|
12494
12457
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12495
12458
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12496
12459
|
TabsPrimitive4__namespace.Trigger,
|
|
12497
12460
|
__spreadValues({
|
|
12498
12461
|
ref,
|
|
12499
12462
|
className: cn(
|
|
12500
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-
|
|
12463
|
+
"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-sm",
|
|
12501
12464
|
className
|
|
12502
12465
|
)
|
|
12503
12466
|
}, props)
|
|
12504
12467
|
);
|
|
12505
12468
|
});
|
|
12506
12469
|
TabsTrigger.displayName = TabsPrimitive4__namespace.Trigger.displayName;
|
|
12507
|
-
var TabsContent =
|
|
12470
|
+
var TabsContent = React77__namespace.forwardRef((_a, ref) => {
|
|
12508
12471
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12509
12472
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12510
12473
|
TabsPrimitive4__namespace.Content,
|
|
12511
12474
|
__spreadValues({
|
|
12512
12475
|
ref,
|
|
12513
12476
|
className: cn(
|
|
12514
|
-
"mt-2 ring-offset-
|
|
12477
|
+
"mt-2 ring-offset-sui-bg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2",
|
|
12515
12478
|
className
|
|
12516
12479
|
)
|
|
12517
12480
|
}, props)
|
|
@@ -12548,7 +12511,7 @@ var textAreaContainerVariants = classVarianceAuthority.cva(
|
|
|
12548
12511
|
}
|
|
12549
12512
|
}
|
|
12550
12513
|
);
|
|
12551
|
-
var TextAreaField =
|
|
12514
|
+
var TextAreaField = React77__namespace.forwardRef(
|
|
12552
12515
|
(_a, ref) => {
|
|
12553
12516
|
var _b = _a, {
|
|
12554
12517
|
className,
|
|
@@ -12593,7 +12556,7 @@ var TextAreaField = React78__namespace.forwardRef(
|
|
|
12593
12556
|
"defaultValue",
|
|
12594
12557
|
"onChange"
|
|
12595
12558
|
]);
|
|
12596
|
-
const generatedId =
|
|
12559
|
+
const generatedId = React77__namespace.useId();
|
|
12597
12560
|
const textAreaId = id || generatedId;
|
|
12598
12561
|
const captionId = `${textAreaId}-caption`;
|
|
12599
12562
|
const charCountId = `${textAreaId}-charcount`;
|
|
@@ -12606,12 +12569,12 @@ var TextAreaField = React78__namespace.forwardRef(
|
|
|
12606
12569
|
helperText ? captionId : null,
|
|
12607
12570
|
showCount ? charCountId : null
|
|
12608
12571
|
].filter(Boolean).join(" ") || void 0;
|
|
12609
|
-
const [charCount, setCharCount] =
|
|
12572
|
+
const [charCount, setCharCount] = React77__namespace.useState(() => {
|
|
12610
12573
|
if (value !== void 0) return String(value).length;
|
|
12611
12574
|
if (defaultValue !== void 0) return String(defaultValue).length;
|
|
12612
12575
|
return 0;
|
|
12613
12576
|
});
|
|
12614
|
-
|
|
12577
|
+
React77__namespace.useEffect(() => {
|
|
12615
12578
|
if (value !== void 0) {
|
|
12616
12579
|
setCharCount(String(value).length);
|
|
12617
12580
|
}
|
|
@@ -12790,13 +12753,13 @@ var TextAreaField = React78__namespace.forwardRef(
|
|
|
12790
12753
|
}
|
|
12791
12754
|
);
|
|
12792
12755
|
TextAreaField.displayName = "TextAreaField";
|
|
12793
|
-
var Textarea =
|
|
12756
|
+
var Textarea = React77__namespace.forwardRef((_a, ref) => {
|
|
12794
12757
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
12795
12758
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12796
12759
|
"textarea",
|
|
12797
12760
|
__spreadValues({
|
|
12798
12761
|
className: cn(
|
|
12799
|
-
"flex min-h-[80px] w-full rounded-md border border-
|
|
12762
|
+
"flex min-h-[80px] w-full rounded-md border border-sui-border-darker bg-sui-bg-input px-3 py-2 text-base ring-offset-sui-bg-default placeholder:text-sui-text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:text-sui-text-hint disabled:pointer-events-none md:text-sm",
|
|
12800
12763
|
className
|
|
12801
12764
|
),
|
|
12802
12765
|
ref
|
|
@@ -12842,7 +12805,7 @@ var toggleVariants = classVarianceAuthority.cva(
|
|
|
12842
12805
|
}
|
|
12843
12806
|
}
|
|
12844
12807
|
);
|
|
12845
|
-
var Toggle =
|
|
12808
|
+
var Toggle = React77__namespace.forwardRef((_a, ref) => {
|
|
12846
12809
|
var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
12847
12810
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12848
12811
|
TogglePrimitive__namespace.Root,
|
|
@@ -12854,7 +12817,7 @@ var Toggle = React78__namespace.forwardRef((_a, ref) => {
|
|
|
12854
12817
|
});
|
|
12855
12818
|
Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
|
|
12856
12819
|
function useMergedRef(...refs) {
|
|
12857
|
-
return
|
|
12820
|
+
return React77__namespace.useCallback((node) => {
|
|
12858
12821
|
refs.forEach((ref) => {
|
|
12859
12822
|
if (typeof ref === "function") ref(node);
|
|
12860
12823
|
else if (ref && "current" in ref)
|
|
@@ -12883,13 +12846,13 @@ var chipSizeMap = {
|
|
|
12883
12846
|
xs: "sm",
|
|
12884
12847
|
"2xs": "sm"
|
|
12885
12848
|
};
|
|
12886
|
-
var ToggleGroupContext =
|
|
12849
|
+
var ToggleGroupContext = React77__namespace.createContext(null);
|
|
12887
12850
|
function useToggleGroup() {
|
|
12888
|
-
const ctx =
|
|
12851
|
+
const ctx = React77__namespace.useContext(ToggleGroupContext);
|
|
12889
12852
|
if (!ctx) throw new Error("ToggleGroupItem must be used within a ToggleGroup");
|
|
12890
12853
|
return ctx;
|
|
12891
12854
|
}
|
|
12892
|
-
var ToggleGroup =
|
|
12855
|
+
var ToggleGroup = React77__namespace.forwardRef(
|
|
12893
12856
|
(props, ref) => {
|
|
12894
12857
|
const {
|
|
12895
12858
|
type,
|
|
@@ -12904,16 +12867,16 @@ var ToggleGroup = React78__namespace.forwardRef(
|
|
|
12904
12867
|
const controlledValue = "value" in props ? props.value : void 0;
|
|
12905
12868
|
const defaultValue = "defaultValue" in props ? props.defaultValue : void 0;
|
|
12906
12869
|
const onValueChange = "onValueChange" in props ? props.onValueChange : void 0;
|
|
12907
|
-
const [internalValue, setInternalValue] =
|
|
12870
|
+
const [internalValue, setInternalValue] = React77__namespace.useState(
|
|
12908
12871
|
defaultValue
|
|
12909
12872
|
);
|
|
12910
12873
|
const isControlled = controlledValue !== void 0;
|
|
12911
12874
|
const value = isControlled ? controlledValue : internalValue;
|
|
12912
|
-
const [rovingFocusValue, setRovingFocusValue] =
|
|
12913
|
-
const itemRefs =
|
|
12914
|
-
const itemValues =
|
|
12915
|
-
const [, notifyRegistration] =
|
|
12916
|
-
const isActive =
|
|
12875
|
+
const [rovingFocusValue, setRovingFocusValue] = React77__namespace.useState(null);
|
|
12876
|
+
const itemRefs = React77__namespace.useRef(/* @__PURE__ */ new Map());
|
|
12877
|
+
const itemValues = React77__namespace.useRef([]);
|
|
12878
|
+
const [, notifyRegistration] = React77__namespace.useReducer((x) => x + 1, 0);
|
|
12879
|
+
const isActive = React77__namespace.useCallback(
|
|
12917
12880
|
(itemValue) => {
|
|
12918
12881
|
if (type === "single") return value === itemValue;
|
|
12919
12882
|
if (type === "multiple" && Array.isArray(value)) return value.includes(itemValue);
|
|
@@ -12921,7 +12884,7 @@ var ToggleGroup = React78__namespace.forwardRef(
|
|
|
12921
12884
|
},
|
|
12922
12885
|
[type, value]
|
|
12923
12886
|
);
|
|
12924
|
-
const toggle =
|
|
12887
|
+
const toggle = React77__namespace.useCallback(
|
|
12925
12888
|
(itemValue) => {
|
|
12926
12889
|
if (type === "single") {
|
|
12927
12890
|
const newValue = value === itemValue ? void 0 : itemValue;
|
|
@@ -12965,7 +12928,7 @@ var ToggleGroup = React78__namespace.forwardRef(
|
|
|
12965
12928
|
}
|
|
12966
12929
|
);
|
|
12967
12930
|
ToggleGroup.displayName = "ToggleGroup";
|
|
12968
|
-
var ToggleGroupItem =
|
|
12931
|
+
var ToggleGroupItem = React77__namespace.forwardRef(
|
|
12969
12932
|
(_a, ref) => {
|
|
12970
12933
|
var _b = _a, {
|
|
12971
12934
|
value: itemValue,
|
|
@@ -13000,9 +12963,9 @@ var ToggleGroupItem = React78__namespace.forwardRef(
|
|
|
13000
12963
|
const disabled = ctx.disabled || itemDisabled;
|
|
13001
12964
|
const resolvedSize = bgSize != null ? bgSize : "lg";
|
|
13002
12965
|
const chipSize = chipSizeMap[resolvedSize];
|
|
13003
|
-
const internalRef =
|
|
12966
|
+
const internalRef = React77__namespace.useRef(null);
|
|
13004
12967
|
const mergedRef = useMergedRef(ref, internalRef);
|
|
13005
|
-
|
|
12968
|
+
React77__namespace.useEffect(() => {
|
|
13006
12969
|
const el = internalRef.current;
|
|
13007
12970
|
if (!el) return;
|
|
13008
12971
|
ctx.itemRefs.current.set(itemValue, el);
|
|
@@ -13219,7 +13182,7 @@ var containedInnerVariants = classVarianceAuthority.cva(
|
|
|
13219
13182
|
"group-hover:bg-sui-bg-state-secondary-hover group-active:bg-sui-bg-state-secondary-press"
|
|
13220
13183
|
]
|
|
13221
13184
|
);
|
|
13222
|
-
var Userbar =
|
|
13185
|
+
var Userbar = React77__namespace.forwardRef(
|
|
13223
13186
|
(_a, ref) => {
|
|
13224
13187
|
var _b = _a, {
|
|
13225
13188
|
className,
|
|
@@ -13328,7 +13291,7 @@ var Userbar = React78__namespace.forwardRef(
|
|
|
13328
13291
|
}
|
|
13329
13292
|
);
|
|
13330
13293
|
Userbar.displayName = "Userbar";
|
|
13331
|
-
var VerticalStepperItem =
|
|
13294
|
+
var VerticalStepperItem = React77__namespace.forwardRef(
|
|
13332
13295
|
(_a, ref) => {
|
|
13333
13296
|
var _b = _a, {
|
|
13334
13297
|
className,
|
|
@@ -13464,7 +13427,7 @@ var VerticalStepperItem = React78__namespace.forwardRef(
|
|
|
13464
13427
|
}
|
|
13465
13428
|
);
|
|
13466
13429
|
VerticalStepperItem.displayName = "VerticalStepperItem";
|
|
13467
|
-
var VerticalStepper =
|
|
13430
|
+
var VerticalStepper = React77__namespace.forwardRef(
|
|
13468
13431
|
(_a, ref) => {
|
|
13469
13432
|
var _b = _a, {
|
|
13470
13433
|
className,
|
|
@@ -13584,6 +13547,7 @@ exports.Calendar = Calendar;
|
|
|
13584
13547
|
exports.CalendarDayButton = CalendarDayButton;
|
|
13585
13548
|
exports.Card = Card;
|
|
13586
13549
|
exports.CardContent = CardContent;
|
|
13550
|
+
exports.CardCover = CardCover;
|
|
13587
13551
|
exports.CardDescription = CardDescription;
|
|
13588
13552
|
exports.CardFooter = CardFooter;
|
|
13589
13553
|
exports.CardHeader = CardHeader;
|
|
@@ -13653,13 +13617,6 @@ exports.FileUpload = FileUpload;
|
|
|
13653
13617
|
exports.FileUploadArea = FileUploadArea;
|
|
13654
13618
|
exports.FileUploadCard = FileUploadCard;
|
|
13655
13619
|
exports.FilterButton = FilterButton;
|
|
13656
|
-
exports.Form = Form;
|
|
13657
|
-
exports.FormControl = FormControl;
|
|
13658
|
-
exports.FormDescription = FormDescription;
|
|
13659
|
-
exports.FormField = FormField;
|
|
13660
|
-
exports.FormItem = FormItem;
|
|
13661
|
-
exports.FormLabel = FormLabel;
|
|
13662
|
-
exports.FormMessage = FormMessage;
|
|
13663
13620
|
exports.GridTableCell = GridTableCell;
|
|
13664
13621
|
exports.GridTableHeaderItem = GridTableHeaderItem;
|
|
13665
13622
|
exports.GridTableRow = GridTableRow;
|
|
@@ -13821,6 +13778,7 @@ exports.avatarButtonVariants = avatarButtonVariants;
|
|
|
13821
13778
|
exports.avatarVariants = avatarVariants;
|
|
13822
13779
|
exports.buttonGroupItemVariants = buttonGroupItemVariants;
|
|
13823
13780
|
exports.buttonVariants = buttonVariants;
|
|
13781
|
+
exports.cardVariants = cardVariants;
|
|
13824
13782
|
exports.checkboxCardVariants = checkboxCardVariants;
|
|
13825
13783
|
exports.checkboxVariants = checkboxVariants;
|
|
13826
13784
|
exports.checkboxWithTextVariants = checkboxWithTextVariants;
|
|
@@ -13865,7 +13823,6 @@ exports.toggleVariants = toggleVariants;
|
|
|
13865
13823
|
exports.tooltipContentVariants = tooltipContentVariants;
|
|
13866
13824
|
exports.underlineTabItemVariants = underlineTabItemVariants;
|
|
13867
13825
|
exports.underlineTabsListVariants = underlineTabsListVariants;
|
|
13868
|
-
exports.useFormField = useFormField;
|
|
13869
13826
|
exports.useSidebar = useSidebar;
|
|
13870
13827
|
exports.userbarVariants = userbarVariants;
|
|
13871
13828
|
exports.validateFile = validateFile;
|