@dilipod/ui 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/error-state.d.ts +26 -0
- package/dist/components/error-state.d.ts.map +1 -0
- package/dist/components/metric-label.d.ts +60 -0
- package/dist/components/metric-label.d.ts.map +1 -0
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +266 -122
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +261 -122
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/error-state.tsx +118 -0
- package/src/components/metric-label.tsx +135 -0
- package/src/components/tabs.tsx +3 -1
- package/src/index.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var React28 = require('react');
|
|
5
5
|
var reactSlot = require('@radix-ui/react-slot');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
7
|
var clsx = require('clsx');
|
|
@@ -40,7 +40,7 @@ function _interopNamespace(e) {
|
|
|
40
40
|
return Object.freeze(n);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var React28__namespace = /*#__PURE__*/_interopNamespace(React28);
|
|
44
44
|
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
45
45
|
var react_star__namespace = /*#__PURE__*/_interopNamespace(react_star);
|
|
46
46
|
var SwitchPrimitive__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitive);
|
|
@@ -137,13 +137,18 @@ __export(index_exports, {
|
|
|
137
137
|
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
138
138
|
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
139
139
|
EmptyState: () => EmptyState,
|
|
140
|
+
ErrorState: () => ErrorState,
|
|
140
141
|
FormField: () => FormField,
|
|
141
142
|
IconBox: () => IconBox,
|
|
142
143
|
Input: () => Input,
|
|
143
144
|
Label: () => Label2,
|
|
144
145
|
LabeledSwitch: () => LabeledSwitch,
|
|
145
146
|
Logo: () => Logo,
|
|
147
|
+
Metric: () => Metric,
|
|
146
148
|
MetricCard: () => MetricCard,
|
|
149
|
+
MetricLabel: () => MetricLabel,
|
|
150
|
+
MetricSubtext: () => MetricSubtext,
|
|
151
|
+
MetricValue: () => MetricValue,
|
|
147
152
|
NavigationMenu: () => NavigationMenu,
|
|
148
153
|
NavigationMenuContent: () => NavigationMenuContent,
|
|
149
154
|
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
@@ -265,7 +270,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
265
270
|
}
|
|
266
271
|
}
|
|
267
272
|
);
|
|
268
|
-
var Button =
|
|
273
|
+
var Button = React28__namespace.forwardRef(
|
|
269
274
|
({ className, variant, size, asChild = false, loading, loadingText, children, disabled, ...props }, ref) => {
|
|
270
275
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
271
276
|
const isDisabled = disabled || loading;
|
|
@@ -318,7 +323,7 @@ var Sheet = SheetPrimitive__namespace.Root;
|
|
|
318
323
|
var SheetTrigger = SheetPrimitive__namespace.Trigger;
|
|
319
324
|
var SheetClose = SheetPrimitive__namespace.Close;
|
|
320
325
|
var SheetPortal = SheetPrimitive__namespace.Portal;
|
|
321
|
-
var SheetOverlay =
|
|
326
|
+
var SheetOverlay = React28__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
322
327
|
// @ts-ignore - Radix Dialog Overlay accepts className at runtime
|
|
323
328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
324
329
|
SheetPrimitive__namespace.Overlay,
|
|
@@ -349,7 +354,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
349
354
|
}
|
|
350
355
|
}
|
|
351
356
|
);
|
|
352
|
-
var SheetContent =
|
|
357
|
+
var SheetContent = React28__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
353
358
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
354
359
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
355
360
|
SheetPrimitive__namespace.Content,
|
|
@@ -396,7 +401,7 @@ var SheetFooter = ({
|
|
|
396
401
|
}
|
|
397
402
|
);
|
|
398
403
|
SheetFooter.displayName = "SheetFooter";
|
|
399
|
-
var SheetTitle =
|
|
404
|
+
var SheetTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
400
405
|
// @ts-ignore - Radix Dialog Title accepts className at runtime
|
|
401
406
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
402
407
|
SheetPrimitive__namespace.Title,
|
|
@@ -408,7 +413,7 @@ var SheetTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
408
413
|
)
|
|
409
414
|
));
|
|
410
415
|
SheetTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
411
|
-
var SheetDescription =
|
|
416
|
+
var SheetDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
412
417
|
// @ts-ignore - Radix Dialog Description accepts className at runtime
|
|
413
418
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
414
419
|
SheetPrimitive__namespace.Description,
|
|
@@ -508,7 +513,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
508
513
|
}
|
|
509
514
|
}
|
|
510
515
|
);
|
|
511
|
-
var Badge =
|
|
516
|
+
var Badge = React28__namespace.forwardRef(
|
|
512
517
|
({ className, variant, size, pulse, pulseColor: pulseColorProp, children, ...props }, ref) => {
|
|
513
518
|
const getPulseColorClass = () => {
|
|
514
519
|
const color = pulseColorProp || variant || "default";
|
|
@@ -562,7 +567,7 @@ var Badge = React27__namespace.forwardRef(
|
|
|
562
567
|
}
|
|
563
568
|
);
|
|
564
569
|
Badge.displayName = "Badge";
|
|
565
|
-
var Card =
|
|
570
|
+
var Card = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
566
571
|
"div",
|
|
567
572
|
{
|
|
568
573
|
ref,
|
|
@@ -574,7 +579,7 @@ var Card = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
574
579
|
}
|
|
575
580
|
));
|
|
576
581
|
Card.displayName = "Card";
|
|
577
|
-
var CardHeader =
|
|
582
|
+
var CardHeader = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
578
583
|
"div",
|
|
579
584
|
{
|
|
580
585
|
ref,
|
|
@@ -583,7 +588,7 @@ var CardHeader = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
583
588
|
}
|
|
584
589
|
));
|
|
585
590
|
CardHeader.displayName = "CardHeader";
|
|
586
|
-
var CardTitle =
|
|
591
|
+
var CardTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
587
592
|
"h3",
|
|
588
593
|
{
|
|
589
594
|
ref,
|
|
@@ -595,7 +600,7 @@ var CardTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
595
600
|
}
|
|
596
601
|
));
|
|
597
602
|
CardTitle.displayName = "CardTitle";
|
|
598
|
-
var CardDescription =
|
|
603
|
+
var CardDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
599
604
|
"p",
|
|
600
605
|
{
|
|
601
606
|
ref,
|
|
@@ -604,9 +609,9 @@ var CardDescription = React27__namespace.forwardRef(({ className, ...props }, re
|
|
|
604
609
|
}
|
|
605
610
|
));
|
|
606
611
|
CardDescription.displayName = "CardDescription";
|
|
607
|
-
var CardContent =
|
|
612
|
+
var CardContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
608
613
|
CardContent.displayName = "CardContent";
|
|
609
|
-
var CardFooter =
|
|
614
|
+
var CardFooter = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
610
615
|
"div",
|
|
611
616
|
{
|
|
612
617
|
ref,
|
|
@@ -629,7 +634,7 @@ var progressVariants = classVarianceAuthority.cva("h-full rounded-full transitio
|
|
|
629
634
|
variant: "default"
|
|
630
635
|
}
|
|
631
636
|
});
|
|
632
|
-
var Progress =
|
|
637
|
+
var Progress = React28__namespace.forwardRef(
|
|
633
638
|
({ className, value, variant, showLabel, label = "Progress", size = "default", ...props }, ref) => {
|
|
634
639
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
635
640
|
const heightClass = {
|
|
@@ -696,7 +701,7 @@ var iconBoxVariants = classVarianceAuthority.cva(
|
|
|
696
701
|
}
|
|
697
702
|
}
|
|
698
703
|
);
|
|
699
|
-
var IconBox =
|
|
704
|
+
var IconBox = React28__namespace.forwardRef(
|
|
700
705
|
({ className, variant, size, rounded, children, ...props }, ref) => {
|
|
701
706
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
702
707
|
"div",
|
|
@@ -732,7 +737,7 @@ var tagVariants = classVarianceAuthority.cva(
|
|
|
732
737
|
}
|
|
733
738
|
}
|
|
734
739
|
);
|
|
735
|
-
var Tag =
|
|
740
|
+
var Tag = React28__namespace.forwardRef(
|
|
736
741
|
({ className, variant, size, icon, children, ...props }, ref) => {
|
|
737
742
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
738
743
|
"span",
|
|
@@ -786,7 +791,7 @@ var valueVariants = classVarianceAuthority.cva("font-bold", {
|
|
|
786
791
|
color: "default"
|
|
787
792
|
}
|
|
788
793
|
});
|
|
789
|
-
var Stat =
|
|
794
|
+
var Stat = React28__namespace.forwardRef(
|
|
790
795
|
({
|
|
791
796
|
className,
|
|
792
797
|
variant,
|
|
@@ -868,7 +873,7 @@ var iconVariants = classVarianceAuthority.cva("h-5 w-5", {
|
|
|
868
873
|
color: "cyan"
|
|
869
874
|
}
|
|
870
875
|
});
|
|
871
|
-
var MetricCard =
|
|
876
|
+
var MetricCard = React28__namespace.forwardRef(
|
|
872
877
|
({
|
|
873
878
|
className,
|
|
874
879
|
variant,
|
|
@@ -901,6 +906,75 @@ var MetricCard = React27__namespace.forwardRef(
|
|
|
901
906
|
}
|
|
902
907
|
);
|
|
903
908
|
MetricCard.displayName = "MetricCard";
|
|
909
|
+
var MetricLabel = React28__namespace.forwardRef(
|
|
910
|
+
({ className, children, ...props }, ref) => {
|
|
911
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
912
|
+
"p",
|
|
913
|
+
{
|
|
914
|
+
ref,
|
|
915
|
+
className: cn(
|
|
916
|
+
"text-xs text-muted-foreground uppercase tracking-wide",
|
|
917
|
+
className
|
|
918
|
+
),
|
|
919
|
+
...props,
|
|
920
|
+
children
|
|
921
|
+
}
|
|
922
|
+
);
|
|
923
|
+
}
|
|
924
|
+
);
|
|
925
|
+
MetricLabel.displayName = "MetricLabel";
|
|
926
|
+
var MetricValue = React28__namespace.forwardRef(
|
|
927
|
+
({ className, children, size = "default", highlight = false, ...props }, ref) => {
|
|
928
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
929
|
+
"p",
|
|
930
|
+
{
|
|
931
|
+
ref,
|
|
932
|
+
className: cn(
|
|
933
|
+
"font-bold mt-1",
|
|
934
|
+
size === "lg" && "text-3xl",
|
|
935
|
+
size === "default" && "text-2xl",
|
|
936
|
+
size === "sm" && "text-xl",
|
|
937
|
+
highlight && "text-[#00e5cc]",
|
|
938
|
+
className
|
|
939
|
+
),
|
|
940
|
+
...props,
|
|
941
|
+
children
|
|
942
|
+
}
|
|
943
|
+
);
|
|
944
|
+
}
|
|
945
|
+
);
|
|
946
|
+
MetricValue.displayName = "MetricValue";
|
|
947
|
+
var MetricSubtext = React28__namespace.forwardRef(
|
|
948
|
+
({ className, children, ...props }, ref) => {
|
|
949
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
950
|
+
"p",
|
|
951
|
+
{
|
|
952
|
+
ref,
|
|
953
|
+
className: cn(
|
|
954
|
+
"text-xs text-muted-foreground mt-1",
|
|
955
|
+
className
|
|
956
|
+
),
|
|
957
|
+
...props,
|
|
958
|
+
children
|
|
959
|
+
}
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
);
|
|
963
|
+
MetricSubtext.displayName = "MetricSubtext";
|
|
964
|
+
var Metric = React28__namespace.forwardRef(
|
|
965
|
+
({ className, children, ...props }, ref) => {
|
|
966
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
967
|
+
"div",
|
|
968
|
+
{
|
|
969
|
+
ref,
|
|
970
|
+
className: cn(className),
|
|
971
|
+
...props,
|
|
972
|
+
children
|
|
973
|
+
}
|
|
974
|
+
);
|
|
975
|
+
}
|
|
976
|
+
);
|
|
977
|
+
Metric.displayName = "Metric";
|
|
904
978
|
var usageBarVariants = classVarianceAuthority.cva("space-y-3", {
|
|
905
979
|
variants: {
|
|
906
980
|
size: {
|
|
@@ -927,7 +1001,7 @@ var progressColorVariants = classVarianceAuthority.cva("", {
|
|
|
927
1001
|
color: "cyan"
|
|
928
1002
|
}
|
|
929
1003
|
});
|
|
930
|
-
var UsageBar =
|
|
1004
|
+
var UsageBar = React28__namespace.forwardRef(
|
|
931
1005
|
({
|
|
932
1006
|
className,
|
|
933
1007
|
size,
|
|
@@ -999,7 +1073,7 @@ var UsageBar = React27__namespace.forwardRef(
|
|
|
999
1073
|
}
|
|
1000
1074
|
);
|
|
1001
1075
|
UsageBar.displayName = "UsageBar";
|
|
1002
|
-
var UsageChart =
|
|
1076
|
+
var UsageChart = React28__namespace.forwardRef(
|
|
1003
1077
|
({
|
|
1004
1078
|
className,
|
|
1005
1079
|
data,
|
|
@@ -1010,8 +1084,8 @@ var UsageChart = React27__namespace.forwardRef(
|
|
|
1010
1084
|
formatValue = (v) => v.toLocaleString(),
|
|
1011
1085
|
...props
|
|
1012
1086
|
}, ref) => {
|
|
1013
|
-
const [hoveredIndex, setHoveredIndex] =
|
|
1014
|
-
const maxValue =
|
|
1087
|
+
const [hoveredIndex, setHoveredIndex] = React28__namespace.useState(null);
|
|
1088
|
+
const maxValue = React28__namespace.useMemo(() => {
|
|
1015
1089
|
return Math.max(
|
|
1016
1090
|
...data.map((d) => d.value + (d.secondaryValue || 0)),
|
|
1017
1091
|
1
|
|
@@ -1138,7 +1212,7 @@ var UsageChart = React27__namespace.forwardRef(
|
|
|
1138
1212
|
}
|
|
1139
1213
|
);
|
|
1140
1214
|
UsageChart.displayName = "UsageChart";
|
|
1141
|
-
var Input =
|
|
1215
|
+
var Input = React28__namespace.forwardRef(
|
|
1142
1216
|
({ className, type, error, ...props }, ref) => {
|
|
1143
1217
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1144
1218
|
"input",
|
|
@@ -1178,7 +1252,7 @@ var NODES = [
|
|
|
1178
1252
|
];
|
|
1179
1253
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
1180
1254
|
const Slot2 = reactSlot.createSlot(`Primitive.${node}`);
|
|
1181
|
-
const Node =
|
|
1255
|
+
const Node = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1182
1256
|
const { asChild, ...primitiveProps } = props;
|
|
1183
1257
|
const Comp = asChild ? Slot2 : node;
|
|
1184
1258
|
if (typeof window !== "undefined") {
|
|
@@ -1190,7 +1264,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
1190
1264
|
return { ...primitive, [node]: Node };
|
|
1191
1265
|
}, {});
|
|
1192
1266
|
var NAME = "Label";
|
|
1193
|
-
var Label =
|
|
1267
|
+
var Label = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1194
1268
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1195
1269
|
Primitive.label,
|
|
1196
1270
|
{
|
|
@@ -1210,7 +1284,7 @@ var Root2 = Label;
|
|
|
1210
1284
|
var labelVariants = classVarianceAuthority.cva(
|
|
1211
1285
|
"text-sm font-medium leading-none text-[var(--black)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1212
1286
|
);
|
|
1213
|
-
var Label2 =
|
|
1287
|
+
var Label2 = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1214
1288
|
Root2,
|
|
1215
1289
|
{
|
|
1216
1290
|
ref,
|
|
@@ -1219,7 +1293,7 @@ var Label2 = React27__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1219
1293
|
}
|
|
1220
1294
|
));
|
|
1221
1295
|
Label2.displayName = Root2.displayName;
|
|
1222
|
-
var Textarea =
|
|
1296
|
+
var Textarea = React28__namespace.forwardRef(
|
|
1223
1297
|
({ className, error, ...props }, ref) => {
|
|
1224
1298
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1225
1299
|
"textarea",
|
|
@@ -1237,7 +1311,7 @@ var Textarea = React27__namespace.forwardRef(
|
|
|
1237
1311
|
}
|
|
1238
1312
|
);
|
|
1239
1313
|
Textarea.displayName = "Textarea";
|
|
1240
|
-
var Select =
|
|
1314
|
+
var Select = React28__namespace.forwardRef(
|
|
1241
1315
|
({ className, error, children, ...props }, ref) => {
|
|
1242
1316
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1243
1317
|
"select",
|
|
@@ -1264,7 +1338,7 @@ Select.displayName = "Select";
|
|
|
1264
1338
|
// src/icons.ts
|
|
1265
1339
|
var icons_exports = {};
|
|
1266
1340
|
__reExport(icons_exports, react_star__namespace);
|
|
1267
|
-
var Checkbox =
|
|
1341
|
+
var Checkbox = React28__namespace.forwardRef(
|
|
1268
1342
|
({ className, checked, onCheckedChange, ...props }, ref) => {
|
|
1269
1343
|
return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "relative inline-flex items-center cursor-pointer", children: [
|
|
1270
1344
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1295,7 +1369,7 @@ var Checkbox = React27__namespace.forwardRef(
|
|
|
1295
1369
|
}
|
|
1296
1370
|
);
|
|
1297
1371
|
Checkbox.displayName = "Checkbox";
|
|
1298
|
-
var Switch =
|
|
1372
|
+
var Switch = React28__namespace.forwardRef(({ className, size = "default", ...props }, ref) => {
|
|
1299
1373
|
const sizeStyles = {
|
|
1300
1374
|
sm: {
|
|
1301
1375
|
root: "h-4 w-7",
|
|
@@ -1333,8 +1407,8 @@ var Switch = React27__namespace.forwardRef(({ className, size = "default", ...pr
|
|
|
1333
1407
|
);
|
|
1334
1408
|
});
|
|
1335
1409
|
Switch.displayName = SwitchPrimitive__namespace.Root.displayName;
|
|
1336
|
-
var LabeledSwitch =
|
|
1337
|
-
const switchId = id ||
|
|
1410
|
+
var LabeledSwitch = React28__namespace.forwardRef(({ label, description, labelPosition = "right", className, id, ...props }, ref) => {
|
|
1411
|
+
const switchId = id || React28__namespace.useId();
|
|
1338
1412
|
const labelContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-0.5", children: [
|
|
1339
1413
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1340
1414
|
"label",
|
|
@@ -1362,7 +1436,7 @@ var LabeledSwitch = React27__namespace.forwardRef(({ label, description, labelPo
|
|
|
1362
1436
|
);
|
|
1363
1437
|
});
|
|
1364
1438
|
LabeledSwitch.displayName = "LabeledSwitch";
|
|
1365
|
-
var RadioGroup =
|
|
1439
|
+
var RadioGroup = React28__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1366
1440
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1367
1441
|
RadioGroupPrimitive__namespace.Root,
|
|
1368
1442
|
{
|
|
@@ -1373,7 +1447,7 @@ var RadioGroup = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1373
1447
|
);
|
|
1374
1448
|
});
|
|
1375
1449
|
RadioGroup.displayName = RadioGroupPrimitive__namespace.Root.displayName;
|
|
1376
|
-
var RadioGroupItem =
|
|
1450
|
+
var RadioGroupItem = React28__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1377
1451
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1378
1452
|
RadioGroupPrimitive__namespace.Item,
|
|
1379
1453
|
{
|
|
@@ -1388,8 +1462,8 @@ var RadioGroupItem = React27__namespace.forwardRef(({ className, ...props }, ref
|
|
|
1388
1462
|
);
|
|
1389
1463
|
});
|
|
1390
1464
|
RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
|
|
1391
|
-
var RadioGroupOption =
|
|
1392
|
-
const optionId = id ||
|
|
1465
|
+
var RadioGroupOption = React28__namespace.forwardRef(({ label, description, className, id, ...props }, ref) => {
|
|
1466
|
+
const optionId = id || React28__namespace.useId();
|
|
1393
1467
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-start gap-3", className), children: [
|
|
1394
1468
|
/* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { ref, id: optionId, ...props }),
|
|
1395
1469
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-0.5", children: [
|
|
@@ -1406,8 +1480,8 @@ var RadioGroupOption = React27__namespace.forwardRef(({ label, description, clas
|
|
|
1406
1480
|
] });
|
|
1407
1481
|
});
|
|
1408
1482
|
RadioGroupOption.displayName = "RadioGroupOption";
|
|
1409
|
-
var RadioGroupCard =
|
|
1410
|
-
const cardId = id ||
|
|
1483
|
+
var RadioGroupCard = React28__namespace.forwardRef(({ label, description, children, className, id, ...props }, ref) => {
|
|
1484
|
+
const cardId = id || React28__namespace.useId();
|
|
1411
1485
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1412
1486
|
RadioGroupPrimitive__namespace.Item,
|
|
1413
1487
|
{
|
|
@@ -1438,7 +1512,7 @@ var RadioGroupCard = React27__namespace.forwardRef(({ label, description, childr
|
|
|
1438
1512
|
});
|
|
1439
1513
|
RadioGroupCard.displayName = "RadioGroupCard";
|
|
1440
1514
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
1441
|
-
var AccordionItem =
|
|
1515
|
+
var AccordionItem = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1442
1516
|
AccordionPrimitive__namespace.Item,
|
|
1443
1517
|
{
|
|
1444
1518
|
ref,
|
|
@@ -1447,7 +1521,7 @@ var AccordionItem = React27__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1447
1521
|
}
|
|
1448
1522
|
));
|
|
1449
1523
|
AccordionItem.displayName = "AccordionItem";
|
|
1450
|
-
var AccordionTrigger =
|
|
1524
|
+
var AccordionTrigger = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1451
1525
|
AccordionPrimitive__namespace.Trigger,
|
|
1452
1526
|
{
|
|
1453
1527
|
ref,
|
|
@@ -1463,7 +1537,7 @@ var AccordionTrigger = React27__namespace.forwardRef(({ className, children, ...
|
|
|
1463
1537
|
}
|
|
1464
1538
|
) }));
|
|
1465
1539
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
1466
|
-
var AccordionContent =
|
|
1540
|
+
var AccordionContent = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1467
1541
|
AccordionPrimitive__namespace.Content,
|
|
1468
1542
|
{
|
|
1469
1543
|
ref,
|
|
@@ -1494,7 +1568,7 @@ var NODES2 = [
|
|
|
1494
1568
|
];
|
|
1495
1569
|
var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
1496
1570
|
const Slot2 = reactSlot.createSlot(`Primitive.${node}`);
|
|
1497
|
-
const Node =
|
|
1571
|
+
const Node = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1498
1572
|
const { asChild, ...primitiveProps } = props;
|
|
1499
1573
|
const Comp = asChild ? Slot2 : node;
|
|
1500
1574
|
if (typeof window !== "undefined") {
|
|
@@ -1508,7 +1582,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
|
1508
1582
|
var NAME2 = "Separator";
|
|
1509
1583
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
1510
1584
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
1511
|
-
var Separator =
|
|
1585
|
+
var Separator = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1512
1586
|
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
1513
1587
|
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
1514
1588
|
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
@@ -1528,7 +1602,7 @@ function isValidOrientation(orientation) {
|
|
|
1528
1602
|
return ORIENTATIONS.includes(orientation);
|
|
1529
1603
|
}
|
|
1530
1604
|
var Root6 = Separator;
|
|
1531
|
-
var Separator2 =
|
|
1605
|
+
var Separator2 = React28__namespace.forwardRef(
|
|
1532
1606
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1533
1607
|
Root6,
|
|
1534
1608
|
{
|
|
@@ -1545,7 +1619,7 @@ var Separator2 = React27__namespace.forwardRef(
|
|
|
1545
1619
|
)
|
|
1546
1620
|
);
|
|
1547
1621
|
Separator2.displayName = Root6.displayName;
|
|
1548
|
-
var NavigationMenu =
|
|
1622
|
+
var NavigationMenu = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1549
1623
|
NavigationMenuPrimitive__namespace.Root,
|
|
1550
1624
|
{
|
|
1551
1625
|
ref,
|
|
@@ -1561,7 +1635,7 @@ var NavigationMenu = React27__namespace.forwardRef(({ className, children, ...pr
|
|
|
1561
1635
|
}
|
|
1562
1636
|
));
|
|
1563
1637
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
1564
|
-
var NavigationMenuList =
|
|
1638
|
+
var NavigationMenuList = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1565
1639
|
NavigationMenuPrimitive__namespace.List,
|
|
1566
1640
|
{
|
|
1567
1641
|
ref,
|
|
@@ -1577,7 +1651,7 @@ var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
|
1577
1651
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
1578
1652
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-white px-4 py-2 text-sm font-medium text-[var(--black)] transition-colors hover:bg-gray-100 hover:text-[var(--black)] focus:bg-gray-100 focus:text-[var(--black)] focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-[var(--black)] data-[state=open]:bg-gray-100/50 data-[state=open]:hover:bg-gray-100 data-[state=open]:focus:bg-gray-100"
|
|
1579
1653
|
);
|
|
1580
|
-
var NavigationMenuTrigger =
|
|
1654
|
+
var NavigationMenuTrigger = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1581
1655
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
1582
1656
|
{
|
|
1583
1657
|
ref,
|
|
@@ -1597,7 +1671,7 @@ var NavigationMenuTrigger = React27__namespace.forwardRef(({ className, children
|
|
|
1597
1671
|
}
|
|
1598
1672
|
));
|
|
1599
1673
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
1600
|
-
var NavigationMenuContent =
|
|
1674
|
+
var NavigationMenuContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1601
1675
|
NavigationMenuPrimitive__namespace.Content,
|
|
1602
1676
|
{
|
|
1603
1677
|
ref,
|
|
@@ -1610,7 +1684,7 @@ var NavigationMenuContent = React27__namespace.forwardRef(({ className, ...props
|
|
|
1610
1684
|
));
|
|
1611
1685
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
1612
1686
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
1613
|
-
var NavigationMenuViewport =
|
|
1687
|
+
var NavigationMenuViewport = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1614
1688
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
1615
1689
|
{
|
|
1616
1690
|
className: cn(
|
|
@@ -1622,7 +1696,7 @@ var NavigationMenuViewport = React27__namespace.forwardRef(({ className, ...prop
|
|
|
1622
1696
|
}
|
|
1623
1697
|
) }));
|
|
1624
1698
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
1625
|
-
var NavigationMenuIndicator =
|
|
1699
|
+
var NavigationMenuIndicator = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1626
1700
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
1627
1701
|
{
|
|
1628
1702
|
ref,
|
|
@@ -1635,7 +1709,7 @@ var NavigationMenuIndicator = React27__namespace.forwardRef(({ className, ...pro
|
|
|
1635
1709
|
}
|
|
1636
1710
|
));
|
|
1637
1711
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
|
|
1638
|
-
var Avatar =
|
|
1712
|
+
var Avatar = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1639
1713
|
AvatarPrimitive__namespace.Root,
|
|
1640
1714
|
{
|
|
1641
1715
|
ref,
|
|
@@ -1647,7 +1721,7 @@ var Avatar = React27__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1647
1721
|
}
|
|
1648
1722
|
));
|
|
1649
1723
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
1650
|
-
var AvatarImage =
|
|
1724
|
+
var AvatarImage = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1651
1725
|
AvatarPrimitive__namespace.Image,
|
|
1652
1726
|
{
|
|
1653
1727
|
ref,
|
|
@@ -1656,7 +1730,7 @@ var AvatarImage = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1656
1730
|
}
|
|
1657
1731
|
));
|
|
1658
1732
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
1659
|
-
var AvatarFallback =
|
|
1733
|
+
var AvatarFallback = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1660
1734
|
AvatarPrimitive__namespace.Fallback,
|
|
1661
1735
|
{
|
|
1662
1736
|
ref,
|
|
@@ -1674,7 +1748,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
1674
1748
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1675
1749
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1676
1750
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1677
|
-
var DropdownMenuSubTrigger =
|
|
1751
|
+
var DropdownMenuSubTrigger = React28__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1678
1752
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1679
1753
|
{
|
|
1680
1754
|
ref,
|
|
@@ -1691,7 +1765,7 @@ var DropdownMenuSubTrigger = React27__namespace.forwardRef(({ className, inset,
|
|
|
1691
1765
|
}
|
|
1692
1766
|
));
|
|
1693
1767
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1694
|
-
var DropdownMenuSubContent =
|
|
1768
|
+
var DropdownMenuSubContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1695
1769
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
1696
1770
|
{
|
|
1697
1771
|
ref,
|
|
@@ -1703,7 +1777,7 @@ var DropdownMenuSubContent = React27__namespace.forwardRef(({ className, ...prop
|
|
|
1703
1777
|
}
|
|
1704
1778
|
));
|
|
1705
1779
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1706
|
-
var DropdownMenuContent =
|
|
1780
|
+
var DropdownMenuContent = React28__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1707
1781
|
DropdownMenuPrimitive__namespace.Content,
|
|
1708
1782
|
{
|
|
1709
1783
|
ref,
|
|
@@ -1716,7 +1790,7 @@ var DropdownMenuContent = React27__namespace.forwardRef(({ className, sideOffset
|
|
|
1716
1790
|
}
|
|
1717
1791
|
) }));
|
|
1718
1792
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1719
|
-
var DropdownMenuItem =
|
|
1793
|
+
var DropdownMenuItem = React28__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1720
1794
|
DropdownMenuPrimitive__namespace.Item,
|
|
1721
1795
|
{
|
|
1722
1796
|
ref,
|
|
@@ -1729,7 +1803,7 @@ var DropdownMenuItem = React27__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1729
1803
|
}
|
|
1730
1804
|
));
|
|
1731
1805
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1732
|
-
var DropdownMenuCheckboxItem =
|
|
1806
|
+
var DropdownMenuCheckboxItem = React28__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1733
1807
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1734
1808
|
{
|
|
1735
1809
|
ref,
|
|
@@ -1746,7 +1820,7 @@ var DropdownMenuCheckboxItem = React27__namespace.forwardRef(({ className, child
|
|
|
1746
1820
|
}
|
|
1747
1821
|
));
|
|
1748
1822
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1749
|
-
var DropdownMenuRadioItem =
|
|
1823
|
+
var DropdownMenuRadioItem = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1750
1824
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1751
1825
|
{
|
|
1752
1826
|
ref,
|
|
@@ -1762,7 +1836,7 @@ var DropdownMenuRadioItem = React27__namespace.forwardRef(({ className, children
|
|
|
1762
1836
|
}
|
|
1763
1837
|
));
|
|
1764
1838
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1765
|
-
var DropdownMenuLabel =
|
|
1839
|
+
var DropdownMenuLabel = React28__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1766
1840
|
DropdownMenuPrimitive__namespace.Label,
|
|
1767
1841
|
{
|
|
1768
1842
|
ref,
|
|
@@ -1775,7 +1849,7 @@ var DropdownMenuLabel = React27__namespace.forwardRef(({ className, inset, ...pr
|
|
|
1775
1849
|
}
|
|
1776
1850
|
));
|
|
1777
1851
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1778
|
-
var DropdownMenuSeparator =
|
|
1852
|
+
var DropdownMenuSeparator = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1779
1853
|
DropdownMenuPrimitive__namespace.Separator,
|
|
1780
1854
|
{
|
|
1781
1855
|
ref,
|
|
@@ -1797,7 +1871,7 @@ var DropdownMenuShortcut = ({
|
|
|
1797
1871
|
);
|
|
1798
1872
|
};
|
|
1799
1873
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1800
|
-
var SidebarNavItem =
|
|
1874
|
+
var SidebarNavItem = React28__namespace.forwardRef(
|
|
1801
1875
|
({ item, isActive, className, LinkComponent, ...props }, ref) => {
|
|
1802
1876
|
const Icon = item.icon;
|
|
1803
1877
|
const baseClassName = cn(
|
|
@@ -1837,7 +1911,7 @@ var SidebarNavItem = React27__namespace.forwardRef(
|
|
|
1837
1911
|
}
|
|
1838
1912
|
);
|
|
1839
1913
|
SidebarNavItem.displayName = "SidebarNavItem";
|
|
1840
|
-
var Sidebar =
|
|
1914
|
+
var Sidebar = React28__namespace.forwardRef(
|
|
1841
1915
|
({
|
|
1842
1916
|
mainNav = [],
|
|
1843
1917
|
bottomNav = [],
|
|
@@ -1947,7 +2021,7 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
1947
2021
|
}
|
|
1948
2022
|
}
|
|
1949
2023
|
);
|
|
1950
|
-
var Alert =
|
|
2024
|
+
var Alert = React28__namespace.forwardRef(
|
|
1951
2025
|
({ className, variant, icon, title, action, children, ...props }, ref) => {
|
|
1952
2026
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1953
2027
|
"div",
|
|
@@ -1970,7 +2044,7 @@ var Alert = React27__namespace.forwardRef(
|
|
|
1970
2044
|
}
|
|
1971
2045
|
);
|
|
1972
2046
|
Alert.displayName = "Alert";
|
|
1973
|
-
var EmptyState =
|
|
2047
|
+
var EmptyState = React28__namespace.forwardRef(
|
|
1974
2048
|
({ className, icon, title, description, action, size = "default", ...props }, ref) => {
|
|
1975
2049
|
const paddingClass = {
|
|
1976
2050
|
sm: "p-8",
|
|
@@ -1998,7 +2072,70 @@ var EmptyState = React27__namespace.forwardRef(
|
|
|
1998
2072
|
}
|
|
1999
2073
|
);
|
|
2000
2074
|
EmptyState.displayName = "EmptyState";
|
|
2001
|
-
var
|
|
2075
|
+
var ErrorState = React28__namespace.forwardRef(
|
|
2076
|
+
({
|
|
2077
|
+
title = "Something went wrong",
|
|
2078
|
+
description = "We encountered an error loading this page. Please try again.",
|
|
2079
|
+
showRetry = true,
|
|
2080
|
+
showHomeLink = true,
|
|
2081
|
+
retryText = "Try again",
|
|
2082
|
+
homeLinkText = "Go to dashboard",
|
|
2083
|
+
onRetry,
|
|
2084
|
+
onHomeClick,
|
|
2085
|
+
icon,
|
|
2086
|
+
actions,
|
|
2087
|
+
className,
|
|
2088
|
+
...props
|
|
2089
|
+
}, ref) => {
|
|
2090
|
+
const defaultIcon = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2091
|
+
"svg",
|
|
2092
|
+
{
|
|
2093
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2094
|
+
width: "24",
|
|
2095
|
+
height: "24",
|
|
2096
|
+
fill: "currentColor",
|
|
2097
|
+
viewBox: "0 0 256 256",
|
|
2098
|
+
className: "text-red-500",
|
|
2099
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z" })
|
|
2100
|
+
}
|
|
2101
|
+
);
|
|
2102
|
+
const refreshIcon = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2103
|
+
"svg",
|
|
2104
|
+
{
|
|
2105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2106
|
+
width: "16",
|
|
2107
|
+
height: "16",
|
|
2108
|
+
fill: "currentColor",
|
|
2109
|
+
viewBox: "0 0 256 256",
|
|
2110
|
+
className: "mr-2",
|
|
2111
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64A80,80,0,1,0,207.6,176.16a8,8,0,1,1,13.54,8.49A96,96,0,1,1,227.59,64l.3-.31L208,44.31V56a8,8,0,0,0,8,8h16A8,8,0,0,0,240,56Z" })
|
|
2112
|
+
}
|
|
2113
|
+
);
|
|
2114
|
+
const hasDefaultActions = showRetry && onRetry || showHomeLink && onHomeClick;
|
|
2115
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2116
|
+
"div",
|
|
2117
|
+
{
|
|
2118
|
+
ref,
|
|
2119
|
+
className: cn("flex items-center justify-center min-h-[60vh]", className),
|
|
2120
|
+
...props,
|
|
2121
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Card, { className: "max-w-md w-full", children: /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: "p-8 text-center", children: [
|
|
2122
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconBox, { size: "lg", className: "mx-auto mb-4 bg-red-50", children: icon || defaultIcon }),
|
|
2123
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold text-[var(--black)] mb-2", children: title }),
|
|
2124
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mb-6", children: description }),
|
|
2125
|
+
actions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-3 justify-center", children: actions }) : hasDefaultActions ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 justify-center", children: [
|
|
2126
|
+
showRetry && onRetry && /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", onClick: onRetry, children: [
|
|
2127
|
+
refreshIcon,
|
|
2128
|
+
retryText
|
|
2129
|
+
] }),
|
|
2130
|
+
showHomeLink && onHomeClick && /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: onHomeClick, children: homeLinkText })
|
|
2131
|
+
] }) : null
|
|
2132
|
+
] }) })
|
|
2133
|
+
}
|
|
2134
|
+
);
|
|
2135
|
+
}
|
|
2136
|
+
);
|
|
2137
|
+
ErrorState.displayName = "ErrorState";
|
|
2138
|
+
var CodeBlock = React28__namespace.forwardRef(
|
|
2002
2139
|
({ className, children, language, ...props }, ref) => {
|
|
2003
2140
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2004
2141
|
"pre",
|
|
@@ -2016,15 +2153,15 @@ var CodeBlock = React27__namespace.forwardRef(
|
|
|
2016
2153
|
}
|
|
2017
2154
|
);
|
|
2018
2155
|
CodeBlock.displayName = "CodeBlock";
|
|
2019
|
-
var FormField =
|
|
2156
|
+
var FormField = React28__namespace.forwardRef(
|
|
2020
2157
|
({ label, error, helperText, hint, required, id, className, children, ...props }, ref) => {
|
|
2021
|
-
const fieldId = id ||
|
|
2158
|
+
const fieldId = id || React28__namespace.useId();
|
|
2022
2159
|
const errorId = `${fieldId}-error`;
|
|
2023
2160
|
const helperId = `${fieldId}-helper`;
|
|
2024
|
-
const enhancedChildren =
|
|
2025
|
-
if (
|
|
2161
|
+
const enhancedChildren = React28__namespace.Children.map(children, (child) => {
|
|
2162
|
+
if (React28__namespace.isValidElement(child)) {
|
|
2026
2163
|
const childProps = child.props;
|
|
2027
|
-
return
|
|
2164
|
+
return React28__namespace.cloneElement(child, {
|
|
2028
2165
|
id: fieldId,
|
|
2029
2166
|
"aria-invalid": error ? "true" : void 0,
|
|
2030
2167
|
"aria-describedby": error ? errorId : helperText ? helperId : void 0,
|
|
@@ -2048,7 +2185,7 @@ var FormField = React27__namespace.forwardRef(
|
|
|
2048
2185
|
}
|
|
2049
2186
|
);
|
|
2050
2187
|
FormField.displayName = "FormField";
|
|
2051
|
-
var Table =
|
|
2188
|
+
var Table = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2052
2189
|
"table",
|
|
2053
2190
|
{
|
|
2054
2191
|
ref,
|
|
@@ -2057,11 +2194,11 @@ var Table = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2057
2194
|
}
|
|
2058
2195
|
) }));
|
|
2059
2196
|
Table.displayName = "Table";
|
|
2060
|
-
var TableHeader =
|
|
2197
|
+
var TableHeader = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("", className), ...props }));
|
|
2061
2198
|
TableHeader.displayName = "TableHeader";
|
|
2062
|
-
var TableBody =
|
|
2199
|
+
var TableBody = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn("", className), ...props }));
|
|
2063
2200
|
TableBody.displayName = "TableBody";
|
|
2064
|
-
var TableFooter =
|
|
2201
|
+
var TableFooter = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2065
2202
|
"tfoot",
|
|
2066
2203
|
{
|
|
2067
2204
|
ref,
|
|
@@ -2070,7 +2207,7 @@ var TableFooter = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2070
2207
|
}
|
|
2071
2208
|
));
|
|
2072
2209
|
TableFooter.displayName = "TableFooter";
|
|
2073
|
-
var TableRow =
|
|
2210
|
+
var TableRow = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2074
2211
|
"tr",
|
|
2075
2212
|
{
|
|
2076
2213
|
ref,
|
|
@@ -2079,7 +2216,7 @@ var TableRow = React27__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
2079
2216
|
}
|
|
2080
2217
|
));
|
|
2081
2218
|
TableRow.displayName = "TableRow";
|
|
2082
|
-
var TableHead =
|
|
2219
|
+
var TableHead = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2083
2220
|
"th",
|
|
2084
2221
|
{
|
|
2085
2222
|
ref,
|
|
@@ -2091,7 +2228,7 @@ var TableHead = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2091
2228
|
}
|
|
2092
2229
|
));
|
|
2093
2230
|
TableHead.displayName = "TableHead";
|
|
2094
|
-
var TableCell =
|
|
2231
|
+
var TableCell = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2095
2232
|
"td",
|
|
2096
2233
|
{
|
|
2097
2234
|
ref,
|
|
@@ -2100,7 +2237,7 @@ var TableCell = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2100
2237
|
}
|
|
2101
2238
|
));
|
|
2102
2239
|
TableCell.displayName = "TableCell";
|
|
2103
|
-
var TableCaption =
|
|
2240
|
+
var TableCaption = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2104
2241
|
"caption",
|
|
2105
2242
|
{
|
|
2106
2243
|
ref,
|
|
@@ -2109,7 +2246,7 @@ var TableCaption = React27__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2109
2246
|
}
|
|
2110
2247
|
));
|
|
2111
2248
|
TableCaption.displayName = "TableCaption";
|
|
2112
|
-
var Divider =
|
|
2249
|
+
var Divider = React28__namespace.forwardRef(
|
|
2113
2250
|
({ className, text, orientation = "horizontal", ...props }, ref) => {
|
|
2114
2251
|
if (orientation === "vertical") {
|
|
2115
2252
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2148,7 +2285,7 @@ var Divider = React27__namespace.forwardRef(
|
|
|
2148
2285
|
);
|
|
2149
2286
|
Divider.displayName = "Divider";
|
|
2150
2287
|
var Tabs = TabsPrimitive__namespace.Root;
|
|
2151
|
-
var TabsList =
|
|
2288
|
+
var TabsList = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2152
2289
|
TabsPrimitive__namespace.List,
|
|
2153
2290
|
{
|
|
2154
2291
|
ref,
|
|
@@ -2160,7 +2297,7 @@ var TabsList = React27__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
2160
2297
|
}
|
|
2161
2298
|
));
|
|
2162
2299
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
2163
|
-
var TabsTrigger =
|
|
2300
|
+
var TabsTrigger = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2164
2301
|
TabsPrimitive__namespace.Trigger,
|
|
2165
2302
|
{
|
|
2166
2303
|
ref,
|
|
@@ -2172,7 +2309,7 @@ var TabsTrigger = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2172
2309
|
}
|
|
2173
2310
|
));
|
|
2174
2311
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
2175
|
-
var TabsContent =
|
|
2312
|
+
var TabsContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2176
2313
|
TabsPrimitive__namespace.Content,
|
|
2177
2314
|
{
|
|
2178
2315
|
ref,
|
|
@@ -2184,7 +2321,7 @@ var TabsContent = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2184
2321
|
}
|
|
2185
2322
|
));
|
|
2186
2323
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
2187
|
-
var TabsListUnderline =
|
|
2324
|
+
var TabsListUnderline = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2188
2325
|
TabsPrimitive__namespace.List,
|
|
2189
2326
|
{
|
|
2190
2327
|
ref,
|
|
@@ -2196,12 +2333,14 @@ var TabsListUnderline = React27__namespace.forwardRef(({ className, ...props },
|
|
|
2196
2333
|
}
|
|
2197
2334
|
));
|
|
2198
2335
|
TabsListUnderline.displayName = "TabsListUnderline";
|
|
2199
|
-
var TabsTriggerUnderline =
|
|
2336
|
+
var TabsTriggerUnderline = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2200
2337
|
TabsPrimitive__namespace.Trigger,
|
|
2201
2338
|
{
|
|
2202
2339
|
ref,
|
|
2203
2340
|
className: cn(
|
|
2204
|
-
"inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium text-muted-foreground transition-
|
|
2341
|
+
"inline-flex items-center justify-center whitespace-nowrap px-4 py-2.5 text-sm font-medium text-muted-foreground transition-all hover:text-foreground border-b-2 border-transparent -mb-px",
|
|
2342
|
+
"data-[state=active]:text-[var(--cyan)] data-[state=active]:border-[var(--cyan)] data-[state=active]:font-semibold",
|
|
2343
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
2205
2344
|
className
|
|
2206
2345
|
),
|
|
2207
2346
|
...props
|
|
@@ -2212,7 +2351,7 @@ var Dialog = SheetPrimitive__namespace.Root;
|
|
|
2212
2351
|
var DialogTrigger = SheetPrimitive__namespace.Trigger;
|
|
2213
2352
|
var DialogPortal = SheetPrimitive__namespace.Portal;
|
|
2214
2353
|
var DialogClose = SheetPrimitive__namespace.Close;
|
|
2215
|
-
var DialogOverlay =
|
|
2354
|
+
var DialogOverlay = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2216
2355
|
SheetPrimitive__namespace.Overlay,
|
|
2217
2356
|
{
|
|
2218
2357
|
ref,
|
|
@@ -2224,7 +2363,7 @@ var DialogOverlay = React27__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2224
2363
|
}
|
|
2225
2364
|
));
|
|
2226
2365
|
DialogOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
|
|
2227
|
-
var DialogContent =
|
|
2366
|
+
var DialogContent = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
2228
2367
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
2229
2368
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2230
2369
|
SheetPrimitive__namespace.Content,
|
|
@@ -2274,7 +2413,7 @@ var DialogFooter = ({
|
|
|
2274
2413
|
}
|
|
2275
2414
|
);
|
|
2276
2415
|
DialogFooter.displayName = "DialogFooter";
|
|
2277
|
-
var DialogTitle =
|
|
2416
|
+
var DialogTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2278
2417
|
SheetPrimitive__namespace.Title,
|
|
2279
2418
|
{
|
|
2280
2419
|
ref,
|
|
@@ -2286,7 +2425,7 @@ var DialogTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2286
2425
|
}
|
|
2287
2426
|
));
|
|
2288
2427
|
DialogTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
2289
|
-
var DialogDescription =
|
|
2428
|
+
var DialogDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2290
2429
|
SheetPrimitive__namespace.Description,
|
|
2291
2430
|
{
|
|
2292
2431
|
ref,
|
|
@@ -2298,7 +2437,7 @@ DialogDescription.displayName = SheetPrimitive__namespace.Description.displayNam
|
|
|
2298
2437
|
var AlertDialog = AlertDialogPrimitive__namespace.Root;
|
|
2299
2438
|
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
|
2300
2439
|
var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
2301
|
-
var AlertDialogOverlay =
|
|
2440
|
+
var AlertDialogOverlay = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2302
2441
|
AlertDialogPrimitive__namespace.Overlay,
|
|
2303
2442
|
{
|
|
2304
2443
|
className: cn(
|
|
@@ -2310,7 +2449,7 @@ var AlertDialogOverlay = React27__namespace.forwardRef(({ className, ...props },
|
|
|
2310
2449
|
}
|
|
2311
2450
|
));
|
|
2312
2451
|
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
2313
|
-
var AlertDialogContent =
|
|
2452
|
+
var AlertDialogContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
2314
2453
|
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
2315
2454
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2316
2455
|
AlertDialogPrimitive__namespace.Content,
|
|
@@ -2353,7 +2492,7 @@ var AlertDialogFooter = ({
|
|
|
2353
2492
|
}
|
|
2354
2493
|
);
|
|
2355
2494
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
2356
|
-
var AlertDialogTitle =
|
|
2495
|
+
var AlertDialogTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2357
2496
|
AlertDialogPrimitive__namespace.Title,
|
|
2358
2497
|
{
|
|
2359
2498
|
ref,
|
|
@@ -2362,7 +2501,7 @@ var AlertDialogTitle = React27__namespace.forwardRef(({ className, ...props }, r
|
|
|
2362
2501
|
}
|
|
2363
2502
|
));
|
|
2364
2503
|
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
2365
|
-
var AlertDialogDescription =
|
|
2504
|
+
var AlertDialogDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2366
2505
|
AlertDialogPrimitive__namespace.Description,
|
|
2367
2506
|
{
|
|
2368
2507
|
ref,
|
|
@@ -2371,7 +2510,7 @@ var AlertDialogDescription = React27__namespace.forwardRef(({ className, ...prop
|
|
|
2371
2510
|
}
|
|
2372
2511
|
));
|
|
2373
2512
|
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
2374
|
-
var AlertDialogAction =
|
|
2513
|
+
var AlertDialogAction = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2375
2514
|
AlertDialogPrimitive__namespace.Action,
|
|
2376
2515
|
{
|
|
2377
2516
|
ref,
|
|
@@ -2380,7 +2519,7 @@ var AlertDialogAction = React27__namespace.forwardRef(({ className, ...props },
|
|
|
2380
2519
|
}
|
|
2381
2520
|
));
|
|
2382
2521
|
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
2383
|
-
var AlertDialogCancel =
|
|
2522
|
+
var AlertDialogCancel = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2384
2523
|
AlertDialogPrimitive__namespace.Cancel,
|
|
2385
2524
|
{
|
|
2386
2525
|
ref,
|
|
@@ -2441,7 +2580,7 @@ var Popover = PopoverPrimitive__namespace.Root;
|
|
|
2441
2580
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
2442
2581
|
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
2443
2582
|
var PopoverClose = PopoverPrimitive__namespace.Close;
|
|
2444
|
-
var PopoverContent =
|
|
2583
|
+
var PopoverContent = React28__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2445
2584
|
PopoverPrimitive__namespace.Content,
|
|
2446
2585
|
{
|
|
2447
2586
|
ref,
|
|
@@ -2455,7 +2594,7 @@ var PopoverContent = React27__namespace.forwardRef(({ className, align = "center
|
|
|
2455
2594
|
}
|
|
2456
2595
|
) }));
|
|
2457
2596
|
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
2458
|
-
var PopoverArrow =
|
|
2597
|
+
var PopoverArrow = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2459
2598
|
PopoverPrimitive__namespace.Arrow,
|
|
2460
2599
|
{
|
|
2461
2600
|
ref,
|
|
@@ -2467,7 +2606,7 @@ PopoverArrow.displayName = PopoverPrimitive__namespace.Arrow.displayName;
|
|
|
2467
2606
|
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
2468
2607
|
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
2469
2608
|
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
2470
|
-
var TooltipContent =
|
|
2609
|
+
var TooltipContent = React28__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2471
2610
|
TooltipPrimitive__namespace.Content,
|
|
2472
2611
|
{
|
|
2473
2612
|
ref,
|
|
@@ -2480,7 +2619,7 @@ var TooltipContent = React27__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
2480
2619
|
}
|
|
2481
2620
|
) }));
|
|
2482
2621
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
2483
|
-
var TooltipArrow =
|
|
2622
|
+
var TooltipArrow = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2484
2623
|
TooltipPrimitive__namespace.Arrow,
|
|
2485
2624
|
{
|
|
2486
2625
|
ref,
|
|
@@ -2502,7 +2641,7 @@ function SimpleTooltip({
|
|
|
2502
2641
|
] }) });
|
|
2503
2642
|
}
|
|
2504
2643
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
2505
|
-
var ToastViewport =
|
|
2644
|
+
var ToastViewport = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2506
2645
|
ToastPrimitives__namespace.Viewport,
|
|
2507
2646
|
{
|
|
2508
2647
|
ref,
|
|
@@ -2531,7 +2670,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
2531
2670
|
}
|
|
2532
2671
|
}
|
|
2533
2672
|
);
|
|
2534
|
-
var Toast =
|
|
2673
|
+
var Toast = React28__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
2535
2674
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2536
2675
|
ToastPrimitives__namespace.Root,
|
|
2537
2676
|
{
|
|
@@ -2542,7 +2681,7 @@ var Toast = React27__namespace.forwardRef(({ className, variant, ...props }, ref
|
|
|
2542
2681
|
);
|
|
2543
2682
|
});
|
|
2544
2683
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
2545
|
-
var ToastAction =
|
|
2684
|
+
var ToastAction = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2546
2685
|
ToastPrimitives__namespace.Action,
|
|
2547
2686
|
{
|
|
2548
2687
|
ref,
|
|
@@ -2554,7 +2693,7 @@ var ToastAction = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2554
2693
|
}
|
|
2555
2694
|
));
|
|
2556
2695
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
2557
|
-
var ToastClose =
|
|
2696
|
+
var ToastClose = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2558
2697
|
ToastPrimitives__namespace.Close,
|
|
2559
2698
|
{
|
|
2560
2699
|
ref,
|
|
@@ -2568,7 +2707,7 @@ var ToastClose = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2568
2707
|
}
|
|
2569
2708
|
));
|
|
2570
2709
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
2571
|
-
var ToastTitle =
|
|
2710
|
+
var ToastTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2572
2711
|
ToastPrimitives__namespace.Title,
|
|
2573
2712
|
{
|
|
2574
2713
|
ref,
|
|
@@ -2577,7 +2716,7 @@ var ToastTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2577
2716
|
}
|
|
2578
2717
|
));
|
|
2579
2718
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
2580
|
-
var ToastDescription =
|
|
2719
|
+
var ToastDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2581
2720
|
ToastPrimitives__namespace.Description,
|
|
2582
2721
|
{
|
|
2583
2722
|
ref,
|
|
@@ -2716,8 +2855,8 @@ function toast({ ...props }) {
|
|
|
2716
2855
|
};
|
|
2717
2856
|
}
|
|
2718
2857
|
function useToast() {
|
|
2719
|
-
const [state, setState] =
|
|
2720
|
-
|
|
2858
|
+
const [state, setState] = React28__namespace.useState(memoryState);
|
|
2859
|
+
React28__namespace.useEffect(() => {
|
|
2721
2860
|
listeners.push(setState);
|
|
2722
2861
|
return () => {
|
|
2723
2862
|
const index = listeners.indexOf(setState);
|
|
@@ -2752,7 +2891,7 @@ function Toaster() {
|
|
|
2752
2891
|
/* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
|
|
2753
2892
|
] });
|
|
2754
2893
|
}
|
|
2755
|
-
var Skeleton =
|
|
2894
|
+
var Skeleton = React28__namespace.forwardRef(
|
|
2756
2895
|
({ className, variant = "default", width, height, animate = true, style, ...props }, ref) => {
|
|
2757
2896
|
const variantStyles = {
|
|
2758
2897
|
default: "rounded-sm",
|
|
@@ -2780,7 +2919,7 @@ var Skeleton = React27__namespace.forwardRef(
|
|
|
2780
2919
|
}
|
|
2781
2920
|
);
|
|
2782
2921
|
Skeleton.displayName = "Skeleton";
|
|
2783
|
-
var SkeletonText =
|
|
2922
|
+
var SkeletonText = React28__namespace.forwardRef(
|
|
2784
2923
|
({ lines = 3, gap = 8, className, ...props }, ref) => {
|
|
2785
2924
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("space-y-2", className), style: { gap }, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2786
2925
|
Skeleton,
|
|
@@ -2794,7 +2933,7 @@ var SkeletonText = React27__namespace.forwardRef(
|
|
|
2794
2933
|
}
|
|
2795
2934
|
);
|
|
2796
2935
|
SkeletonText.displayName = "SkeletonText";
|
|
2797
|
-
var SkeletonCard =
|
|
2936
|
+
var SkeletonCard = React28__namespace.forwardRef(
|
|
2798
2937
|
({ hasHeader = true, hasAvatar = false, className, ...props }, ref) => {
|
|
2799
2938
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2800
2939
|
"div",
|
|
@@ -2846,7 +2985,7 @@ function generatePagination(currentPage, totalPages, siblingCount) {
|
|
|
2846
2985
|
);
|
|
2847
2986
|
return [1, "ellipsis", ...middleRange, "ellipsis", totalPages];
|
|
2848
2987
|
}
|
|
2849
|
-
var Pagination =
|
|
2988
|
+
var Pagination = React28__namespace.forwardRef(
|
|
2850
2989
|
({
|
|
2851
2990
|
currentPage,
|
|
2852
2991
|
totalPages,
|
|
@@ -2923,7 +3062,7 @@ var Pagination = React27__namespace.forwardRef(
|
|
|
2923
3062
|
}
|
|
2924
3063
|
);
|
|
2925
3064
|
Pagination.displayName = "Pagination";
|
|
2926
|
-
var SimplePagination =
|
|
3065
|
+
var SimplePagination = React28__namespace.forwardRef(
|
|
2927
3066
|
({
|
|
2928
3067
|
currentPage,
|
|
2929
3068
|
totalPages,
|
|
@@ -2985,7 +3124,7 @@ var SimplePagination = React27__namespace.forwardRef(
|
|
|
2985
3124
|
}
|
|
2986
3125
|
);
|
|
2987
3126
|
SimplePagination.displayName = "SimplePagination";
|
|
2988
|
-
var StepProgress =
|
|
3127
|
+
var StepProgress = React28__namespace.forwardRef(
|
|
2989
3128
|
({
|
|
2990
3129
|
steps,
|
|
2991
3130
|
currentStep,
|
|
@@ -3105,7 +3244,7 @@ var StepProgress = React27__namespace.forwardRef(
|
|
|
3105
3244
|
}
|
|
3106
3245
|
);
|
|
3107
3246
|
StepProgress.displayName = "StepProgress";
|
|
3108
|
-
var StepDots =
|
|
3247
|
+
var StepDots = React28__namespace.forwardRef(
|
|
3109
3248
|
({ totalSteps, currentStep, onStepClick, className }, ref) => {
|
|
3110
3249
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center gap-2", className), children: Array.from({ length: totalSteps }, (_, i) => i + 1).map((step) => {
|
|
3111
3250
|
const isCompleted = step < currentStep;
|
|
@@ -3131,7 +3270,7 @@ var StepDots = React27__namespace.forwardRef(
|
|
|
3131
3270
|
}
|
|
3132
3271
|
);
|
|
3133
3272
|
StepDots.displayName = "StepDots";
|
|
3134
|
-
var Breadcrumbs =
|
|
3273
|
+
var Breadcrumbs = React28__namespace.forwardRef(
|
|
3135
3274
|
({
|
|
3136
3275
|
items,
|
|
3137
3276
|
LinkComponent,
|
|
@@ -3213,7 +3352,7 @@ var Breadcrumbs = React27__namespace.forwardRef(
|
|
|
3213
3352
|
}
|
|
3214
3353
|
);
|
|
3215
3354
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
3216
|
-
var BreadcrumbLink =
|
|
3355
|
+
var BreadcrumbLink = React28__namespace.forwardRef(
|
|
3217
3356
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3218
3357
|
"a",
|
|
3219
3358
|
{
|
|
@@ -3238,7 +3377,7 @@ var presetLabels = {
|
|
|
3238
3377
|
"this-year": "This year",
|
|
3239
3378
|
"custom": "Custom"
|
|
3240
3379
|
};
|
|
3241
|
-
var DateRangePicker =
|
|
3380
|
+
var DateRangePicker = React28__namespace.forwardRef(
|
|
3242
3381
|
({
|
|
3243
3382
|
value,
|
|
3244
3383
|
onChange,
|
|
@@ -3297,7 +3436,7 @@ var DateRangePicker = React27__namespace.forwardRef(
|
|
|
3297
3436
|
}
|
|
3298
3437
|
);
|
|
3299
3438
|
DateRangePicker.displayName = "DateRangePicker";
|
|
3300
|
-
var DateRangeSelect =
|
|
3439
|
+
var DateRangeSelect = React28__namespace.forwardRef(
|
|
3301
3440
|
({ value, onChange, presets = ["7d", "30d", "90d"], className }, ref) => {
|
|
3302
3441
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3303
3442
|
"select",
|
|
@@ -3349,7 +3488,7 @@ function getDateRangeFromPreset(preset) {
|
|
|
3349
3488
|
}
|
|
3350
3489
|
return { start, end };
|
|
3351
3490
|
}
|
|
3352
|
-
var SettingsNav =
|
|
3491
|
+
var SettingsNav = React28__namespace.forwardRef(
|
|
3353
3492
|
({ groups, LinkComponent, className, ...props }, ref) => {
|
|
3354
3493
|
const Link2 = LinkComponent || "a";
|
|
3355
3494
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("space-y-8", className), ...props, children: groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -3380,7 +3519,7 @@ var SettingsNav = React27__namespace.forwardRef(
|
|
|
3380
3519
|
}
|
|
3381
3520
|
);
|
|
3382
3521
|
SettingsNav.displayName = "SettingsNav";
|
|
3383
|
-
var SettingsNavLink =
|
|
3522
|
+
var SettingsNavLink = React28__namespace.forwardRef(
|
|
3384
3523
|
({ title, description, icon, href, LinkComponent, className, ...props }, ref) => {
|
|
3385
3524
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3386
3525
|
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center w-10 h-10 rounded-sm bg-gray-100 group-hover:bg-[var(--cyan)]/10 transition-colors", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-gray-600 group-hover:text-[var(--cyan)] transition-colors [&>svg]:w-5 [&>svg]:h-5", children: icon }) }),
|
|
@@ -3472,13 +3611,18 @@ exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
|
3472
3611
|
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
3473
3612
|
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
3474
3613
|
exports.EmptyState = EmptyState;
|
|
3614
|
+
exports.ErrorState = ErrorState;
|
|
3475
3615
|
exports.FormField = FormField;
|
|
3476
3616
|
exports.IconBox = IconBox;
|
|
3477
3617
|
exports.Input = Input;
|
|
3478
3618
|
exports.Label = Label2;
|
|
3479
3619
|
exports.LabeledSwitch = LabeledSwitch;
|
|
3480
3620
|
exports.Logo = Logo;
|
|
3621
|
+
exports.Metric = Metric;
|
|
3481
3622
|
exports.MetricCard = MetricCard;
|
|
3623
|
+
exports.MetricLabel = MetricLabel;
|
|
3624
|
+
exports.MetricSubtext = MetricSubtext;
|
|
3625
|
+
exports.MetricValue = MetricValue;
|
|
3482
3626
|
exports.NavigationMenu = NavigationMenu;
|
|
3483
3627
|
exports.NavigationMenuContent = NavigationMenuContent;
|
|
3484
3628
|
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|