@dilipod/ui 0.3.2 → 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 +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +266 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +261 -123
- 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 +8 -5
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,
|
|
@@ -179,7 +184,6 @@ __export(index_exports, {
|
|
|
179
184
|
SheetTitle: () => SheetTitle,
|
|
180
185
|
SheetTrigger: () => SheetTrigger,
|
|
181
186
|
Sidebar: () => Sidebar,
|
|
182
|
-
SidebarNavItem: () => SidebarNavItem,
|
|
183
187
|
SimplePagination: () => SimplePagination,
|
|
184
188
|
SimpleTooltip: () => SimpleTooltip,
|
|
185
189
|
Skeleton: () => Skeleton,
|
|
@@ -266,7 +270,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
266
270
|
}
|
|
267
271
|
}
|
|
268
272
|
);
|
|
269
|
-
var Button =
|
|
273
|
+
var Button = React28__namespace.forwardRef(
|
|
270
274
|
({ className, variant, size, asChild = false, loading, loadingText, children, disabled, ...props }, ref) => {
|
|
271
275
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
272
276
|
const isDisabled = disabled || loading;
|
|
@@ -319,7 +323,7 @@ var Sheet = SheetPrimitive__namespace.Root;
|
|
|
319
323
|
var SheetTrigger = SheetPrimitive__namespace.Trigger;
|
|
320
324
|
var SheetClose = SheetPrimitive__namespace.Close;
|
|
321
325
|
var SheetPortal = SheetPrimitive__namespace.Portal;
|
|
322
|
-
var SheetOverlay =
|
|
326
|
+
var SheetOverlay = React28__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
323
327
|
// @ts-ignore - Radix Dialog Overlay accepts className at runtime
|
|
324
328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
325
329
|
SheetPrimitive__namespace.Overlay,
|
|
@@ -350,7 +354,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
350
354
|
}
|
|
351
355
|
}
|
|
352
356
|
);
|
|
353
|
-
var SheetContent =
|
|
357
|
+
var SheetContent = React28__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
354
358
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
355
359
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
356
360
|
SheetPrimitive__namespace.Content,
|
|
@@ -397,7 +401,7 @@ var SheetFooter = ({
|
|
|
397
401
|
}
|
|
398
402
|
);
|
|
399
403
|
SheetFooter.displayName = "SheetFooter";
|
|
400
|
-
var SheetTitle =
|
|
404
|
+
var SheetTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
401
405
|
// @ts-ignore - Radix Dialog Title accepts className at runtime
|
|
402
406
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
403
407
|
SheetPrimitive__namespace.Title,
|
|
@@ -409,7 +413,7 @@ var SheetTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
409
413
|
)
|
|
410
414
|
));
|
|
411
415
|
SheetTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
412
|
-
var SheetDescription =
|
|
416
|
+
var SheetDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
413
417
|
// @ts-ignore - Radix Dialog Description accepts className at runtime
|
|
414
418
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
415
419
|
SheetPrimitive__namespace.Description,
|
|
@@ -509,7 +513,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
509
513
|
}
|
|
510
514
|
}
|
|
511
515
|
);
|
|
512
|
-
var Badge =
|
|
516
|
+
var Badge = React28__namespace.forwardRef(
|
|
513
517
|
({ className, variant, size, pulse, pulseColor: pulseColorProp, children, ...props }, ref) => {
|
|
514
518
|
const getPulseColorClass = () => {
|
|
515
519
|
const color = pulseColorProp || variant || "default";
|
|
@@ -563,7 +567,7 @@ var Badge = React27__namespace.forwardRef(
|
|
|
563
567
|
}
|
|
564
568
|
);
|
|
565
569
|
Badge.displayName = "Badge";
|
|
566
|
-
var Card =
|
|
570
|
+
var Card = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
567
571
|
"div",
|
|
568
572
|
{
|
|
569
573
|
ref,
|
|
@@ -575,7 +579,7 @@ var Card = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
575
579
|
}
|
|
576
580
|
));
|
|
577
581
|
Card.displayName = "Card";
|
|
578
|
-
var CardHeader =
|
|
582
|
+
var CardHeader = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
579
583
|
"div",
|
|
580
584
|
{
|
|
581
585
|
ref,
|
|
@@ -584,7 +588,7 @@ var CardHeader = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
584
588
|
}
|
|
585
589
|
));
|
|
586
590
|
CardHeader.displayName = "CardHeader";
|
|
587
|
-
var CardTitle =
|
|
591
|
+
var CardTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
588
592
|
"h3",
|
|
589
593
|
{
|
|
590
594
|
ref,
|
|
@@ -596,7 +600,7 @@ var CardTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
596
600
|
}
|
|
597
601
|
));
|
|
598
602
|
CardTitle.displayName = "CardTitle";
|
|
599
|
-
var CardDescription =
|
|
603
|
+
var CardDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
600
604
|
"p",
|
|
601
605
|
{
|
|
602
606
|
ref,
|
|
@@ -605,9 +609,9 @@ var CardDescription = React27__namespace.forwardRef(({ className, ...props }, re
|
|
|
605
609
|
}
|
|
606
610
|
));
|
|
607
611
|
CardDescription.displayName = "CardDescription";
|
|
608
|
-
var CardContent =
|
|
612
|
+
var CardContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
609
613
|
CardContent.displayName = "CardContent";
|
|
610
|
-
var CardFooter =
|
|
614
|
+
var CardFooter = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
611
615
|
"div",
|
|
612
616
|
{
|
|
613
617
|
ref,
|
|
@@ -630,7 +634,7 @@ var progressVariants = classVarianceAuthority.cva("h-full rounded-full transitio
|
|
|
630
634
|
variant: "default"
|
|
631
635
|
}
|
|
632
636
|
});
|
|
633
|
-
var Progress =
|
|
637
|
+
var Progress = React28__namespace.forwardRef(
|
|
634
638
|
({ className, value, variant, showLabel, label = "Progress", size = "default", ...props }, ref) => {
|
|
635
639
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
636
640
|
const heightClass = {
|
|
@@ -697,7 +701,7 @@ var iconBoxVariants = classVarianceAuthority.cva(
|
|
|
697
701
|
}
|
|
698
702
|
}
|
|
699
703
|
);
|
|
700
|
-
var IconBox =
|
|
704
|
+
var IconBox = React28__namespace.forwardRef(
|
|
701
705
|
({ className, variant, size, rounded, children, ...props }, ref) => {
|
|
702
706
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
703
707
|
"div",
|
|
@@ -733,7 +737,7 @@ var tagVariants = classVarianceAuthority.cva(
|
|
|
733
737
|
}
|
|
734
738
|
}
|
|
735
739
|
);
|
|
736
|
-
var Tag =
|
|
740
|
+
var Tag = React28__namespace.forwardRef(
|
|
737
741
|
({ className, variant, size, icon, children, ...props }, ref) => {
|
|
738
742
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
739
743
|
"span",
|
|
@@ -787,7 +791,7 @@ var valueVariants = classVarianceAuthority.cva("font-bold", {
|
|
|
787
791
|
color: "default"
|
|
788
792
|
}
|
|
789
793
|
});
|
|
790
|
-
var Stat =
|
|
794
|
+
var Stat = React28__namespace.forwardRef(
|
|
791
795
|
({
|
|
792
796
|
className,
|
|
793
797
|
variant,
|
|
@@ -869,7 +873,7 @@ var iconVariants = classVarianceAuthority.cva("h-5 w-5", {
|
|
|
869
873
|
color: "cyan"
|
|
870
874
|
}
|
|
871
875
|
});
|
|
872
|
-
var MetricCard =
|
|
876
|
+
var MetricCard = React28__namespace.forwardRef(
|
|
873
877
|
({
|
|
874
878
|
className,
|
|
875
879
|
variant,
|
|
@@ -902,6 +906,75 @@ var MetricCard = React27__namespace.forwardRef(
|
|
|
902
906
|
}
|
|
903
907
|
);
|
|
904
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";
|
|
905
978
|
var usageBarVariants = classVarianceAuthority.cva("space-y-3", {
|
|
906
979
|
variants: {
|
|
907
980
|
size: {
|
|
@@ -928,7 +1001,7 @@ var progressColorVariants = classVarianceAuthority.cva("", {
|
|
|
928
1001
|
color: "cyan"
|
|
929
1002
|
}
|
|
930
1003
|
});
|
|
931
|
-
var UsageBar =
|
|
1004
|
+
var UsageBar = React28__namespace.forwardRef(
|
|
932
1005
|
({
|
|
933
1006
|
className,
|
|
934
1007
|
size,
|
|
@@ -1000,7 +1073,7 @@ var UsageBar = React27__namespace.forwardRef(
|
|
|
1000
1073
|
}
|
|
1001
1074
|
);
|
|
1002
1075
|
UsageBar.displayName = "UsageBar";
|
|
1003
|
-
var UsageChart =
|
|
1076
|
+
var UsageChart = React28__namespace.forwardRef(
|
|
1004
1077
|
({
|
|
1005
1078
|
className,
|
|
1006
1079
|
data,
|
|
@@ -1011,8 +1084,8 @@ var UsageChart = React27__namespace.forwardRef(
|
|
|
1011
1084
|
formatValue = (v) => v.toLocaleString(),
|
|
1012
1085
|
...props
|
|
1013
1086
|
}, ref) => {
|
|
1014
|
-
const [hoveredIndex, setHoveredIndex] =
|
|
1015
|
-
const maxValue =
|
|
1087
|
+
const [hoveredIndex, setHoveredIndex] = React28__namespace.useState(null);
|
|
1088
|
+
const maxValue = React28__namespace.useMemo(() => {
|
|
1016
1089
|
return Math.max(
|
|
1017
1090
|
...data.map((d) => d.value + (d.secondaryValue || 0)),
|
|
1018
1091
|
1
|
|
@@ -1139,7 +1212,7 @@ var UsageChart = React27__namespace.forwardRef(
|
|
|
1139
1212
|
}
|
|
1140
1213
|
);
|
|
1141
1214
|
UsageChart.displayName = "UsageChart";
|
|
1142
|
-
var Input =
|
|
1215
|
+
var Input = React28__namespace.forwardRef(
|
|
1143
1216
|
({ className, type, error, ...props }, ref) => {
|
|
1144
1217
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1145
1218
|
"input",
|
|
@@ -1179,7 +1252,7 @@ var NODES = [
|
|
|
1179
1252
|
];
|
|
1180
1253
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
1181
1254
|
const Slot2 = reactSlot.createSlot(`Primitive.${node}`);
|
|
1182
|
-
const Node =
|
|
1255
|
+
const Node = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1183
1256
|
const { asChild, ...primitiveProps } = props;
|
|
1184
1257
|
const Comp = asChild ? Slot2 : node;
|
|
1185
1258
|
if (typeof window !== "undefined") {
|
|
@@ -1191,7 +1264,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
1191
1264
|
return { ...primitive, [node]: Node };
|
|
1192
1265
|
}, {});
|
|
1193
1266
|
var NAME = "Label";
|
|
1194
|
-
var Label =
|
|
1267
|
+
var Label = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1195
1268
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1196
1269
|
Primitive.label,
|
|
1197
1270
|
{
|
|
@@ -1211,7 +1284,7 @@ var Root2 = Label;
|
|
|
1211
1284
|
var labelVariants = classVarianceAuthority.cva(
|
|
1212
1285
|
"text-sm font-medium leading-none text-[var(--black)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1213
1286
|
);
|
|
1214
|
-
var Label2 =
|
|
1287
|
+
var Label2 = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1215
1288
|
Root2,
|
|
1216
1289
|
{
|
|
1217
1290
|
ref,
|
|
@@ -1220,7 +1293,7 @@ var Label2 = React27__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1220
1293
|
}
|
|
1221
1294
|
));
|
|
1222
1295
|
Label2.displayName = Root2.displayName;
|
|
1223
|
-
var Textarea =
|
|
1296
|
+
var Textarea = React28__namespace.forwardRef(
|
|
1224
1297
|
({ className, error, ...props }, ref) => {
|
|
1225
1298
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1226
1299
|
"textarea",
|
|
@@ -1238,7 +1311,7 @@ var Textarea = React27__namespace.forwardRef(
|
|
|
1238
1311
|
}
|
|
1239
1312
|
);
|
|
1240
1313
|
Textarea.displayName = "Textarea";
|
|
1241
|
-
var Select =
|
|
1314
|
+
var Select = React28__namespace.forwardRef(
|
|
1242
1315
|
({ className, error, children, ...props }, ref) => {
|
|
1243
1316
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1244
1317
|
"select",
|
|
@@ -1265,7 +1338,7 @@ Select.displayName = "Select";
|
|
|
1265
1338
|
// src/icons.ts
|
|
1266
1339
|
var icons_exports = {};
|
|
1267
1340
|
__reExport(icons_exports, react_star__namespace);
|
|
1268
|
-
var Checkbox =
|
|
1341
|
+
var Checkbox = React28__namespace.forwardRef(
|
|
1269
1342
|
({ className, checked, onCheckedChange, ...props }, ref) => {
|
|
1270
1343
|
return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "relative inline-flex items-center cursor-pointer", children: [
|
|
1271
1344
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1296,7 +1369,7 @@ var Checkbox = React27__namespace.forwardRef(
|
|
|
1296
1369
|
}
|
|
1297
1370
|
);
|
|
1298
1371
|
Checkbox.displayName = "Checkbox";
|
|
1299
|
-
var Switch =
|
|
1372
|
+
var Switch = React28__namespace.forwardRef(({ className, size = "default", ...props }, ref) => {
|
|
1300
1373
|
const sizeStyles = {
|
|
1301
1374
|
sm: {
|
|
1302
1375
|
root: "h-4 w-7",
|
|
@@ -1334,8 +1407,8 @@ var Switch = React27__namespace.forwardRef(({ className, size = "default", ...pr
|
|
|
1334
1407
|
);
|
|
1335
1408
|
});
|
|
1336
1409
|
Switch.displayName = SwitchPrimitive__namespace.Root.displayName;
|
|
1337
|
-
var LabeledSwitch =
|
|
1338
|
-
const switchId = id ||
|
|
1410
|
+
var LabeledSwitch = React28__namespace.forwardRef(({ label, description, labelPosition = "right", className, id, ...props }, ref) => {
|
|
1411
|
+
const switchId = id || React28__namespace.useId();
|
|
1339
1412
|
const labelContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-0.5", children: [
|
|
1340
1413
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1341
1414
|
"label",
|
|
@@ -1363,7 +1436,7 @@ var LabeledSwitch = React27__namespace.forwardRef(({ label, description, labelPo
|
|
|
1363
1436
|
);
|
|
1364
1437
|
});
|
|
1365
1438
|
LabeledSwitch.displayName = "LabeledSwitch";
|
|
1366
|
-
var RadioGroup =
|
|
1439
|
+
var RadioGroup = React28__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1367
1440
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1368
1441
|
RadioGroupPrimitive__namespace.Root,
|
|
1369
1442
|
{
|
|
@@ -1374,7 +1447,7 @@ var RadioGroup = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1374
1447
|
);
|
|
1375
1448
|
});
|
|
1376
1449
|
RadioGroup.displayName = RadioGroupPrimitive__namespace.Root.displayName;
|
|
1377
|
-
var RadioGroupItem =
|
|
1450
|
+
var RadioGroupItem = React28__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1378
1451
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1379
1452
|
RadioGroupPrimitive__namespace.Item,
|
|
1380
1453
|
{
|
|
@@ -1389,8 +1462,8 @@ var RadioGroupItem = React27__namespace.forwardRef(({ className, ...props }, ref
|
|
|
1389
1462
|
);
|
|
1390
1463
|
});
|
|
1391
1464
|
RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
|
|
1392
|
-
var RadioGroupOption =
|
|
1393
|
-
const optionId = id ||
|
|
1465
|
+
var RadioGroupOption = React28__namespace.forwardRef(({ label, description, className, id, ...props }, ref) => {
|
|
1466
|
+
const optionId = id || React28__namespace.useId();
|
|
1394
1467
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-start gap-3", className), children: [
|
|
1395
1468
|
/* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { ref, id: optionId, ...props }),
|
|
1396
1469
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-0.5", children: [
|
|
@@ -1407,8 +1480,8 @@ var RadioGroupOption = React27__namespace.forwardRef(({ label, description, clas
|
|
|
1407
1480
|
] });
|
|
1408
1481
|
});
|
|
1409
1482
|
RadioGroupOption.displayName = "RadioGroupOption";
|
|
1410
|
-
var RadioGroupCard =
|
|
1411
|
-
const cardId = id ||
|
|
1483
|
+
var RadioGroupCard = React28__namespace.forwardRef(({ label, description, children, className, id, ...props }, ref) => {
|
|
1484
|
+
const cardId = id || React28__namespace.useId();
|
|
1412
1485
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1413
1486
|
RadioGroupPrimitive__namespace.Item,
|
|
1414
1487
|
{
|
|
@@ -1439,7 +1512,7 @@ var RadioGroupCard = React27__namespace.forwardRef(({ label, description, childr
|
|
|
1439
1512
|
});
|
|
1440
1513
|
RadioGroupCard.displayName = "RadioGroupCard";
|
|
1441
1514
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
1442
|
-
var AccordionItem =
|
|
1515
|
+
var AccordionItem = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1443
1516
|
AccordionPrimitive__namespace.Item,
|
|
1444
1517
|
{
|
|
1445
1518
|
ref,
|
|
@@ -1448,7 +1521,7 @@ var AccordionItem = React27__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1448
1521
|
}
|
|
1449
1522
|
));
|
|
1450
1523
|
AccordionItem.displayName = "AccordionItem";
|
|
1451
|
-
var AccordionTrigger =
|
|
1524
|
+
var AccordionTrigger = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1452
1525
|
AccordionPrimitive__namespace.Trigger,
|
|
1453
1526
|
{
|
|
1454
1527
|
ref,
|
|
@@ -1464,7 +1537,7 @@ var AccordionTrigger = React27__namespace.forwardRef(({ className, children, ...
|
|
|
1464
1537
|
}
|
|
1465
1538
|
) }));
|
|
1466
1539
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
1467
|
-
var AccordionContent =
|
|
1540
|
+
var AccordionContent = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1468
1541
|
AccordionPrimitive__namespace.Content,
|
|
1469
1542
|
{
|
|
1470
1543
|
ref,
|
|
@@ -1495,7 +1568,7 @@ var NODES2 = [
|
|
|
1495
1568
|
];
|
|
1496
1569
|
var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
1497
1570
|
const Slot2 = reactSlot.createSlot(`Primitive.${node}`);
|
|
1498
|
-
const Node =
|
|
1571
|
+
const Node = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1499
1572
|
const { asChild, ...primitiveProps } = props;
|
|
1500
1573
|
const Comp = asChild ? Slot2 : node;
|
|
1501
1574
|
if (typeof window !== "undefined") {
|
|
@@ -1509,7 +1582,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
|
1509
1582
|
var NAME2 = "Separator";
|
|
1510
1583
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
1511
1584
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
1512
|
-
var Separator =
|
|
1585
|
+
var Separator = React28__namespace.forwardRef((props, forwardedRef) => {
|
|
1513
1586
|
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
1514
1587
|
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
1515
1588
|
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
@@ -1529,7 +1602,7 @@ function isValidOrientation(orientation) {
|
|
|
1529
1602
|
return ORIENTATIONS.includes(orientation);
|
|
1530
1603
|
}
|
|
1531
1604
|
var Root6 = Separator;
|
|
1532
|
-
var Separator2 =
|
|
1605
|
+
var Separator2 = React28__namespace.forwardRef(
|
|
1533
1606
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1534
1607
|
Root6,
|
|
1535
1608
|
{
|
|
@@ -1546,7 +1619,7 @@ var Separator2 = React27__namespace.forwardRef(
|
|
|
1546
1619
|
)
|
|
1547
1620
|
);
|
|
1548
1621
|
Separator2.displayName = Root6.displayName;
|
|
1549
|
-
var NavigationMenu =
|
|
1622
|
+
var NavigationMenu = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1550
1623
|
NavigationMenuPrimitive__namespace.Root,
|
|
1551
1624
|
{
|
|
1552
1625
|
ref,
|
|
@@ -1562,7 +1635,7 @@ var NavigationMenu = React27__namespace.forwardRef(({ className, children, ...pr
|
|
|
1562
1635
|
}
|
|
1563
1636
|
));
|
|
1564
1637
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
1565
|
-
var NavigationMenuList =
|
|
1638
|
+
var NavigationMenuList = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1566
1639
|
NavigationMenuPrimitive__namespace.List,
|
|
1567
1640
|
{
|
|
1568
1641
|
ref,
|
|
@@ -1578,7 +1651,7 @@ var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
|
1578
1651
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
1579
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"
|
|
1580
1653
|
);
|
|
1581
|
-
var NavigationMenuTrigger =
|
|
1654
|
+
var NavigationMenuTrigger = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1582
1655
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
1583
1656
|
{
|
|
1584
1657
|
ref,
|
|
@@ -1598,7 +1671,7 @@ var NavigationMenuTrigger = React27__namespace.forwardRef(({ className, children
|
|
|
1598
1671
|
}
|
|
1599
1672
|
));
|
|
1600
1673
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
1601
|
-
var NavigationMenuContent =
|
|
1674
|
+
var NavigationMenuContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1602
1675
|
NavigationMenuPrimitive__namespace.Content,
|
|
1603
1676
|
{
|
|
1604
1677
|
ref,
|
|
@@ -1611,7 +1684,7 @@ var NavigationMenuContent = React27__namespace.forwardRef(({ className, ...props
|
|
|
1611
1684
|
));
|
|
1612
1685
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
1613
1686
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
1614
|
-
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(
|
|
1615
1688
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
1616
1689
|
{
|
|
1617
1690
|
className: cn(
|
|
@@ -1623,7 +1696,7 @@ var NavigationMenuViewport = React27__namespace.forwardRef(({ className, ...prop
|
|
|
1623
1696
|
}
|
|
1624
1697
|
) }));
|
|
1625
1698
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
1626
|
-
var NavigationMenuIndicator =
|
|
1699
|
+
var NavigationMenuIndicator = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1627
1700
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
1628
1701
|
{
|
|
1629
1702
|
ref,
|
|
@@ -1636,7 +1709,7 @@ var NavigationMenuIndicator = React27__namespace.forwardRef(({ className, ...pro
|
|
|
1636
1709
|
}
|
|
1637
1710
|
));
|
|
1638
1711
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
|
|
1639
|
-
var Avatar =
|
|
1712
|
+
var Avatar = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1640
1713
|
AvatarPrimitive__namespace.Root,
|
|
1641
1714
|
{
|
|
1642
1715
|
ref,
|
|
@@ -1648,7 +1721,7 @@ var Avatar = React27__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1648
1721
|
}
|
|
1649
1722
|
));
|
|
1650
1723
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
1651
|
-
var AvatarImage =
|
|
1724
|
+
var AvatarImage = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1652
1725
|
AvatarPrimitive__namespace.Image,
|
|
1653
1726
|
{
|
|
1654
1727
|
ref,
|
|
@@ -1657,7 +1730,7 @@ var AvatarImage = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1657
1730
|
}
|
|
1658
1731
|
));
|
|
1659
1732
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
1660
|
-
var AvatarFallback =
|
|
1733
|
+
var AvatarFallback = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1661
1734
|
AvatarPrimitive__namespace.Fallback,
|
|
1662
1735
|
{
|
|
1663
1736
|
ref,
|
|
@@ -1675,7 +1748,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
1675
1748
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1676
1749
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1677
1750
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1678
|
-
var DropdownMenuSubTrigger =
|
|
1751
|
+
var DropdownMenuSubTrigger = React28__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1679
1752
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1680
1753
|
{
|
|
1681
1754
|
ref,
|
|
@@ -1692,7 +1765,7 @@ var DropdownMenuSubTrigger = React27__namespace.forwardRef(({ className, inset,
|
|
|
1692
1765
|
}
|
|
1693
1766
|
));
|
|
1694
1767
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1695
|
-
var DropdownMenuSubContent =
|
|
1768
|
+
var DropdownMenuSubContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1696
1769
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
1697
1770
|
{
|
|
1698
1771
|
ref,
|
|
@@ -1704,7 +1777,7 @@ var DropdownMenuSubContent = React27__namespace.forwardRef(({ className, ...prop
|
|
|
1704
1777
|
}
|
|
1705
1778
|
));
|
|
1706
1779
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1707
|
-
var DropdownMenuContent =
|
|
1780
|
+
var DropdownMenuContent = React28__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1708
1781
|
DropdownMenuPrimitive__namespace.Content,
|
|
1709
1782
|
{
|
|
1710
1783
|
ref,
|
|
@@ -1717,7 +1790,7 @@ var DropdownMenuContent = React27__namespace.forwardRef(({ className, sideOffset
|
|
|
1717
1790
|
}
|
|
1718
1791
|
) }));
|
|
1719
1792
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1720
|
-
var DropdownMenuItem =
|
|
1793
|
+
var DropdownMenuItem = React28__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1721
1794
|
DropdownMenuPrimitive__namespace.Item,
|
|
1722
1795
|
{
|
|
1723
1796
|
ref,
|
|
@@ -1730,7 +1803,7 @@ var DropdownMenuItem = React27__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1730
1803
|
}
|
|
1731
1804
|
));
|
|
1732
1805
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1733
|
-
var DropdownMenuCheckboxItem =
|
|
1806
|
+
var DropdownMenuCheckboxItem = React28__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1734
1807
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1735
1808
|
{
|
|
1736
1809
|
ref,
|
|
@@ -1747,7 +1820,7 @@ var DropdownMenuCheckboxItem = React27__namespace.forwardRef(({ className, child
|
|
|
1747
1820
|
}
|
|
1748
1821
|
));
|
|
1749
1822
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1750
|
-
var DropdownMenuRadioItem =
|
|
1823
|
+
var DropdownMenuRadioItem = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1751
1824
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1752
1825
|
{
|
|
1753
1826
|
ref,
|
|
@@ -1763,7 +1836,7 @@ var DropdownMenuRadioItem = React27__namespace.forwardRef(({ className, children
|
|
|
1763
1836
|
}
|
|
1764
1837
|
));
|
|
1765
1838
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1766
|
-
var DropdownMenuLabel =
|
|
1839
|
+
var DropdownMenuLabel = React28__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1767
1840
|
DropdownMenuPrimitive__namespace.Label,
|
|
1768
1841
|
{
|
|
1769
1842
|
ref,
|
|
@@ -1776,7 +1849,7 @@ var DropdownMenuLabel = React27__namespace.forwardRef(({ className, inset, ...pr
|
|
|
1776
1849
|
}
|
|
1777
1850
|
));
|
|
1778
1851
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1779
|
-
var DropdownMenuSeparator =
|
|
1852
|
+
var DropdownMenuSeparator = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1780
1853
|
DropdownMenuPrimitive__namespace.Separator,
|
|
1781
1854
|
{
|
|
1782
1855
|
ref,
|
|
@@ -1798,7 +1871,7 @@ var DropdownMenuShortcut = ({
|
|
|
1798
1871
|
);
|
|
1799
1872
|
};
|
|
1800
1873
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1801
|
-
var SidebarNavItem =
|
|
1874
|
+
var SidebarNavItem = React28__namespace.forwardRef(
|
|
1802
1875
|
({ item, isActive, className, LinkComponent, ...props }, ref) => {
|
|
1803
1876
|
const Icon = item.icon;
|
|
1804
1877
|
const baseClassName = cn(
|
|
@@ -1838,7 +1911,7 @@ var SidebarNavItem = React27__namespace.forwardRef(
|
|
|
1838
1911
|
}
|
|
1839
1912
|
);
|
|
1840
1913
|
SidebarNavItem.displayName = "SidebarNavItem";
|
|
1841
|
-
var Sidebar =
|
|
1914
|
+
var Sidebar = React28__namespace.forwardRef(
|
|
1842
1915
|
({
|
|
1843
1916
|
mainNav = [],
|
|
1844
1917
|
bottomNav = [],
|
|
@@ -1948,7 +2021,7 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
1948
2021
|
}
|
|
1949
2022
|
}
|
|
1950
2023
|
);
|
|
1951
|
-
var Alert =
|
|
2024
|
+
var Alert = React28__namespace.forwardRef(
|
|
1952
2025
|
({ className, variant, icon, title, action, children, ...props }, ref) => {
|
|
1953
2026
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1954
2027
|
"div",
|
|
@@ -1971,7 +2044,7 @@ var Alert = React27__namespace.forwardRef(
|
|
|
1971
2044
|
}
|
|
1972
2045
|
);
|
|
1973
2046
|
Alert.displayName = "Alert";
|
|
1974
|
-
var EmptyState =
|
|
2047
|
+
var EmptyState = React28__namespace.forwardRef(
|
|
1975
2048
|
({ className, icon, title, description, action, size = "default", ...props }, ref) => {
|
|
1976
2049
|
const paddingClass = {
|
|
1977
2050
|
sm: "p-8",
|
|
@@ -1999,7 +2072,70 @@ var EmptyState = React27__namespace.forwardRef(
|
|
|
1999
2072
|
}
|
|
2000
2073
|
);
|
|
2001
2074
|
EmptyState.displayName = "EmptyState";
|
|
2002
|
-
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(
|
|
2003
2139
|
({ className, children, language, ...props }, ref) => {
|
|
2004
2140
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2005
2141
|
"pre",
|
|
@@ -2017,15 +2153,15 @@ var CodeBlock = React27__namespace.forwardRef(
|
|
|
2017
2153
|
}
|
|
2018
2154
|
);
|
|
2019
2155
|
CodeBlock.displayName = "CodeBlock";
|
|
2020
|
-
var FormField =
|
|
2156
|
+
var FormField = React28__namespace.forwardRef(
|
|
2021
2157
|
({ label, error, helperText, hint, required, id, className, children, ...props }, ref) => {
|
|
2022
|
-
const fieldId = id ||
|
|
2158
|
+
const fieldId = id || React28__namespace.useId();
|
|
2023
2159
|
const errorId = `${fieldId}-error`;
|
|
2024
2160
|
const helperId = `${fieldId}-helper`;
|
|
2025
|
-
const enhancedChildren =
|
|
2026
|
-
if (
|
|
2161
|
+
const enhancedChildren = React28__namespace.Children.map(children, (child) => {
|
|
2162
|
+
if (React28__namespace.isValidElement(child)) {
|
|
2027
2163
|
const childProps = child.props;
|
|
2028
|
-
return
|
|
2164
|
+
return React28__namespace.cloneElement(child, {
|
|
2029
2165
|
id: fieldId,
|
|
2030
2166
|
"aria-invalid": error ? "true" : void 0,
|
|
2031
2167
|
"aria-describedby": error ? errorId : helperText ? helperId : void 0,
|
|
@@ -2049,7 +2185,7 @@ var FormField = React27__namespace.forwardRef(
|
|
|
2049
2185
|
}
|
|
2050
2186
|
);
|
|
2051
2187
|
FormField.displayName = "FormField";
|
|
2052
|
-
var Table =
|
|
2188
|
+
var Table = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2053
2189
|
"table",
|
|
2054
2190
|
{
|
|
2055
2191
|
ref,
|
|
@@ -2058,11 +2194,11 @@ var Table = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2058
2194
|
}
|
|
2059
2195
|
) }));
|
|
2060
2196
|
Table.displayName = "Table";
|
|
2061
|
-
var TableHeader =
|
|
2197
|
+
var TableHeader = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("", className), ...props }));
|
|
2062
2198
|
TableHeader.displayName = "TableHeader";
|
|
2063
|
-
var TableBody =
|
|
2199
|
+
var TableBody = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn("", className), ...props }));
|
|
2064
2200
|
TableBody.displayName = "TableBody";
|
|
2065
|
-
var TableFooter =
|
|
2201
|
+
var TableFooter = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2066
2202
|
"tfoot",
|
|
2067
2203
|
{
|
|
2068
2204
|
ref,
|
|
@@ -2071,7 +2207,7 @@ var TableFooter = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2071
2207
|
}
|
|
2072
2208
|
));
|
|
2073
2209
|
TableFooter.displayName = "TableFooter";
|
|
2074
|
-
var TableRow =
|
|
2210
|
+
var TableRow = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2075
2211
|
"tr",
|
|
2076
2212
|
{
|
|
2077
2213
|
ref,
|
|
@@ -2080,7 +2216,7 @@ var TableRow = React27__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
2080
2216
|
}
|
|
2081
2217
|
));
|
|
2082
2218
|
TableRow.displayName = "TableRow";
|
|
2083
|
-
var TableHead =
|
|
2219
|
+
var TableHead = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2084
2220
|
"th",
|
|
2085
2221
|
{
|
|
2086
2222
|
ref,
|
|
@@ -2092,7 +2228,7 @@ var TableHead = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2092
2228
|
}
|
|
2093
2229
|
));
|
|
2094
2230
|
TableHead.displayName = "TableHead";
|
|
2095
|
-
var TableCell =
|
|
2231
|
+
var TableCell = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2096
2232
|
"td",
|
|
2097
2233
|
{
|
|
2098
2234
|
ref,
|
|
@@ -2101,7 +2237,7 @@ var TableCell = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2101
2237
|
}
|
|
2102
2238
|
));
|
|
2103
2239
|
TableCell.displayName = "TableCell";
|
|
2104
|
-
var TableCaption =
|
|
2240
|
+
var TableCaption = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2105
2241
|
"caption",
|
|
2106
2242
|
{
|
|
2107
2243
|
ref,
|
|
@@ -2110,7 +2246,7 @@ var TableCaption = React27__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2110
2246
|
}
|
|
2111
2247
|
));
|
|
2112
2248
|
TableCaption.displayName = "TableCaption";
|
|
2113
|
-
var Divider =
|
|
2249
|
+
var Divider = React28__namespace.forwardRef(
|
|
2114
2250
|
({ className, text, orientation = "horizontal", ...props }, ref) => {
|
|
2115
2251
|
if (orientation === "vertical") {
|
|
2116
2252
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2149,7 +2285,7 @@ var Divider = React27__namespace.forwardRef(
|
|
|
2149
2285
|
);
|
|
2150
2286
|
Divider.displayName = "Divider";
|
|
2151
2287
|
var Tabs = TabsPrimitive__namespace.Root;
|
|
2152
|
-
var TabsList =
|
|
2288
|
+
var TabsList = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2153
2289
|
TabsPrimitive__namespace.List,
|
|
2154
2290
|
{
|
|
2155
2291
|
ref,
|
|
@@ -2161,7 +2297,7 @@ var TabsList = React27__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
2161
2297
|
}
|
|
2162
2298
|
));
|
|
2163
2299
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
2164
|
-
var TabsTrigger =
|
|
2300
|
+
var TabsTrigger = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2165
2301
|
TabsPrimitive__namespace.Trigger,
|
|
2166
2302
|
{
|
|
2167
2303
|
ref,
|
|
@@ -2173,7 +2309,7 @@ var TabsTrigger = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2173
2309
|
}
|
|
2174
2310
|
));
|
|
2175
2311
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
2176
|
-
var TabsContent =
|
|
2312
|
+
var TabsContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2177
2313
|
TabsPrimitive__namespace.Content,
|
|
2178
2314
|
{
|
|
2179
2315
|
ref,
|
|
@@ -2185,7 +2321,7 @@ var TabsContent = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2185
2321
|
}
|
|
2186
2322
|
));
|
|
2187
2323
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
2188
|
-
var TabsListUnderline =
|
|
2324
|
+
var TabsListUnderline = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2189
2325
|
TabsPrimitive__namespace.List,
|
|
2190
2326
|
{
|
|
2191
2327
|
ref,
|
|
@@ -2197,12 +2333,14 @@ var TabsListUnderline = React27__namespace.forwardRef(({ className, ...props },
|
|
|
2197
2333
|
}
|
|
2198
2334
|
));
|
|
2199
2335
|
TabsListUnderline.displayName = "TabsListUnderline";
|
|
2200
|
-
var TabsTriggerUnderline =
|
|
2336
|
+
var TabsTriggerUnderline = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2201
2337
|
TabsPrimitive__namespace.Trigger,
|
|
2202
2338
|
{
|
|
2203
2339
|
ref,
|
|
2204
2340
|
className: cn(
|
|
2205
|
-
"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",
|
|
2206
2344
|
className
|
|
2207
2345
|
),
|
|
2208
2346
|
...props
|
|
@@ -2213,7 +2351,7 @@ var Dialog = SheetPrimitive__namespace.Root;
|
|
|
2213
2351
|
var DialogTrigger = SheetPrimitive__namespace.Trigger;
|
|
2214
2352
|
var DialogPortal = SheetPrimitive__namespace.Portal;
|
|
2215
2353
|
var DialogClose = SheetPrimitive__namespace.Close;
|
|
2216
|
-
var DialogOverlay =
|
|
2354
|
+
var DialogOverlay = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2217
2355
|
SheetPrimitive__namespace.Overlay,
|
|
2218
2356
|
{
|
|
2219
2357
|
ref,
|
|
@@ -2225,7 +2363,7 @@ var DialogOverlay = React27__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2225
2363
|
}
|
|
2226
2364
|
));
|
|
2227
2365
|
DialogOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
|
|
2228
|
-
var DialogContent =
|
|
2366
|
+
var DialogContent = React28__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
2229
2367
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
2230
2368
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2231
2369
|
SheetPrimitive__namespace.Content,
|
|
@@ -2275,7 +2413,7 @@ var DialogFooter = ({
|
|
|
2275
2413
|
}
|
|
2276
2414
|
);
|
|
2277
2415
|
DialogFooter.displayName = "DialogFooter";
|
|
2278
|
-
var DialogTitle =
|
|
2416
|
+
var DialogTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2279
2417
|
SheetPrimitive__namespace.Title,
|
|
2280
2418
|
{
|
|
2281
2419
|
ref,
|
|
@@ -2287,7 +2425,7 @@ var DialogTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2287
2425
|
}
|
|
2288
2426
|
));
|
|
2289
2427
|
DialogTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
2290
|
-
var DialogDescription =
|
|
2428
|
+
var DialogDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2291
2429
|
SheetPrimitive__namespace.Description,
|
|
2292
2430
|
{
|
|
2293
2431
|
ref,
|
|
@@ -2299,7 +2437,7 @@ DialogDescription.displayName = SheetPrimitive__namespace.Description.displayNam
|
|
|
2299
2437
|
var AlertDialog = AlertDialogPrimitive__namespace.Root;
|
|
2300
2438
|
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
|
2301
2439
|
var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
2302
|
-
var AlertDialogOverlay =
|
|
2440
|
+
var AlertDialogOverlay = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2303
2441
|
AlertDialogPrimitive__namespace.Overlay,
|
|
2304
2442
|
{
|
|
2305
2443
|
className: cn(
|
|
@@ -2311,7 +2449,7 @@ var AlertDialogOverlay = React27__namespace.forwardRef(({ className, ...props },
|
|
|
2311
2449
|
}
|
|
2312
2450
|
));
|
|
2313
2451
|
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
2314
|
-
var AlertDialogContent =
|
|
2452
|
+
var AlertDialogContent = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
2315
2453
|
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
2316
2454
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2317
2455
|
AlertDialogPrimitive__namespace.Content,
|
|
@@ -2354,7 +2492,7 @@ var AlertDialogFooter = ({
|
|
|
2354
2492
|
}
|
|
2355
2493
|
);
|
|
2356
2494
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
2357
|
-
var AlertDialogTitle =
|
|
2495
|
+
var AlertDialogTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2358
2496
|
AlertDialogPrimitive__namespace.Title,
|
|
2359
2497
|
{
|
|
2360
2498
|
ref,
|
|
@@ -2363,7 +2501,7 @@ var AlertDialogTitle = React27__namespace.forwardRef(({ className, ...props }, r
|
|
|
2363
2501
|
}
|
|
2364
2502
|
));
|
|
2365
2503
|
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
2366
|
-
var AlertDialogDescription =
|
|
2504
|
+
var AlertDialogDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2367
2505
|
AlertDialogPrimitive__namespace.Description,
|
|
2368
2506
|
{
|
|
2369
2507
|
ref,
|
|
@@ -2372,7 +2510,7 @@ var AlertDialogDescription = React27__namespace.forwardRef(({ className, ...prop
|
|
|
2372
2510
|
}
|
|
2373
2511
|
));
|
|
2374
2512
|
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
2375
|
-
var AlertDialogAction =
|
|
2513
|
+
var AlertDialogAction = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2376
2514
|
AlertDialogPrimitive__namespace.Action,
|
|
2377
2515
|
{
|
|
2378
2516
|
ref,
|
|
@@ -2381,7 +2519,7 @@ var AlertDialogAction = React27__namespace.forwardRef(({ className, ...props },
|
|
|
2381
2519
|
}
|
|
2382
2520
|
));
|
|
2383
2521
|
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
2384
|
-
var AlertDialogCancel =
|
|
2522
|
+
var AlertDialogCancel = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2385
2523
|
AlertDialogPrimitive__namespace.Cancel,
|
|
2386
2524
|
{
|
|
2387
2525
|
ref,
|
|
@@ -2442,7 +2580,7 @@ var Popover = PopoverPrimitive__namespace.Root;
|
|
|
2442
2580
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
2443
2581
|
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
2444
2582
|
var PopoverClose = PopoverPrimitive__namespace.Close;
|
|
2445
|
-
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(
|
|
2446
2584
|
PopoverPrimitive__namespace.Content,
|
|
2447
2585
|
{
|
|
2448
2586
|
ref,
|
|
@@ -2456,7 +2594,7 @@ var PopoverContent = React27__namespace.forwardRef(({ className, align = "center
|
|
|
2456
2594
|
}
|
|
2457
2595
|
) }));
|
|
2458
2596
|
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
2459
|
-
var PopoverArrow =
|
|
2597
|
+
var PopoverArrow = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2460
2598
|
PopoverPrimitive__namespace.Arrow,
|
|
2461
2599
|
{
|
|
2462
2600
|
ref,
|
|
@@ -2468,7 +2606,7 @@ PopoverArrow.displayName = PopoverPrimitive__namespace.Arrow.displayName;
|
|
|
2468
2606
|
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
2469
2607
|
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
2470
2608
|
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
2471
|
-
var TooltipContent =
|
|
2609
|
+
var TooltipContent = React28__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2472
2610
|
TooltipPrimitive__namespace.Content,
|
|
2473
2611
|
{
|
|
2474
2612
|
ref,
|
|
@@ -2481,7 +2619,7 @@ var TooltipContent = React27__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
2481
2619
|
}
|
|
2482
2620
|
) }));
|
|
2483
2621
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
2484
|
-
var TooltipArrow =
|
|
2622
|
+
var TooltipArrow = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2485
2623
|
TooltipPrimitive__namespace.Arrow,
|
|
2486
2624
|
{
|
|
2487
2625
|
ref,
|
|
@@ -2503,7 +2641,7 @@ function SimpleTooltip({
|
|
|
2503
2641
|
] }) });
|
|
2504
2642
|
}
|
|
2505
2643
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
2506
|
-
var ToastViewport =
|
|
2644
|
+
var ToastViewport = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2507
2645
|
ToastPrimitives__namespace.Viewport,
|
|
2508
2646
|
{
|
|
2509
2647
|
ref,
|
|
@@ -2532,7 +2670,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
2532
2670
|
}
|
|
2533
2671
|
}
|
|
2534
2672
|
);
|
|
2535
|
-
var Toast =
|
|
2673
|
+
var Toast = React28__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
2536
2674
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2537
2675
|
ToastPrimitives__namespace.Root,
|
|
2538
2676
|
{
|
|
@@ -2543,7 +2681,7 @@ var Toast = React27__namespace.forwardRef(({ className, variant, ...props }, ref
|
|
|
2543
2681
|
);
|
|
2544
2682
|
});
|
|
2545
2683
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
2546
|
-
var ToastAction =
|
|
2684
|
+
var ToastAction = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2547
2685
|
ToastPrimitives__namespace.Action,
|
|
2548
2686
|
{
|
|
2549
2687
|
ref,
|
|
@@ -2555,7 +2693,7 @@ var ToastAction = React27__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2555
2693
|
}
|
|
2556
2694
|
));
|
|
2557
2695
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
2558
|
-
var ToastClose =
|
|
2696
|
+
var ToastClose = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2559
2697
|
ToastPrimitives__namespace.Close,
|
|
2560
2698
|
{
|
|
2561
2699
|
ref,
|
|
@@ -2569,7 +2707,7 @@ var ToastClose = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2569
2707
|
}
|
|
2570
2708
|
));
|
|
2571
2709
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
2572
|
-
var ToastTitle =
|
|
2710
|
+
var ToastTitle = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2573
2711
|
ToastPrimitives__namespace.Title,
|
|
2574
2712
|
{
|
|
2575
2713
|
ref,
|
|
@@ -2578,7 +2716,7 @@ var ToastTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2578
2716
|
}
|
|
2579
2717
|
));
|
|
2580
2718
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
2581
|
-
var ToastDescription =
|
|
2719
|
+
var ToastDescription = React28__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2582
2720
|
ToastPrimitives__namespace.Description,
|
|
2583
2721
|
{
|
|
2584
2722
|
ref,
|
|
@@ -2717,8 +2855,8 @@ function toast({ ...props }) {
|
|
|
2717
2855
|
};
|
|
2718
2856
|
}
|
|
2719
2857
|
function useToast() {
|
|
2720
|
-
const [state, setState] =
|
|
2721
|
-
|
|
2858
|
+
const [state, setState] = React28__namespace.useState(memoryState);
|
|
2859
|
+
React28__namespace.useEffect(() => {
|
|
2722
2860
|
listeners.push(setState);
|
|
2723
2861
|
return () => {
|
|
2724
2862
|
const index = listeners.indexOf(setState);
|
|
@@ -2753,7 +2891,7 @@ function Toaster() {
|
|
|
2753
2891
|
/* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
|
|
2754
2892
|
] });
|
|
2755
2893
|
}
|
|
2756
|
-
var Skeleton =
|
|
2894
|
+
var Skeleton = React28__namespace.forwardRef(
|
|
2757
2895
|
({ className, variant = "default", width, height, animate = true, style, ...props }, ref) => {
|
|
2758
2896
|
const variantStyles = {
|
|
2759
2897
|
default: "rounded-sm",
|
|
@@ -2781,7 +2919,7 @@ var Skeleton = React27__namespace.forwardRef(
|
|
|
2781
2919
|
}
|
|
2782
2920
|
);
|
|
2783
2921
|
Skeleton.displayName = "Skeleton";
|
|
2784
|
-
var SkeletonText =
|
|
2922
|
+
var SkeletonText = React28__namespace.forwardRef(
|
|
2785
2923
|
({ lines = 3, gap = 8, className, ...props }, ref) => {
|
|
2786
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(
|
|
2787
2925
|
Skeleton,
|
|
@@ -2795,7 +2933,7 @@ var SkeletonText = React27__namespace.forwardRef(
|
|
|
2795
2933
|
}
|
|
2796
2934
|
);
|
|
2797
2935
|
SkeletonText.displayName = "SkeletonText";
|
|
2798
|
-
var SkeletonCard =
|
|
2936
|
+
var SkeletonCard = React28__namespace.forwardRef(
|
|
2799
2937
|
({ hasHeader = true, hasAvatar = false, className, ...props }, ref) => {
|
|
2800
2938
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2801
2939
|
"div",
|
|
@@ -2847,7 +2985,7 @@ function generatePagination(currentPage, totalPages, siblingCount) {
|
|
|
2847
2985
|
);
|
|
2848
2986
|
return [1, "ellipsis", ...middleRange, "ellipsis", totalPages];
|
|
2849
2987
|
}
|
|
2850
|
-
var Pagination =
|
|
2988
|
+
var Pagination = React28__namespace.forwardRef(
|
|
2851
2989
|
({
|
|
2852
2990
|
currentPage,
|
|
2853
2991
|
totalPages,
|
|
@@ -2924,7 +3062,7 @@ var Pagination = React27__namespace.forwardRef(
|
|
|
2924
3062
|
}
|
|
2925
3063
|
);
|
|
2926
3064
|
Pagination.displayName = "Pagination";
|
|
2927
|
-
var SimplePagination =
|
|
3065
|
+
var SimplePagination = React28__namespace.forwardRef(
|
|
2928
3066
|
({
|
|
2929
3067
|
currentPage,
|
|
2930
3068
|
totalPages,
|
|
@@ -2986,7 +3124,7 @@ var SimplePagination = React27__namespace.forwardRef(
|
|
|
2986
3124
|
}
|
|
2987
3125
|
);
|
|
2988
3126
|
SimplePagination.displayName = "SimplePagination";
|
|
2989
|
-
var StepProgress =
|
|
3127
|
+
var StepProgress = React28__namespace.forwardRef(
|
|
2990
3128
|
({
|
|
2991
3129
|
steps,
|
|
2992
3130
|
currentStep,
|
|
@@ -3106,7 +3244,7 @@ var StepProgress = React27__namespace.forwardRef(
|
|
|
3106
3244
|
}
|
|
3107
3245
|
);
|
|
3108
3246
|
StepProgress.displayName = "StepProgress";
|
|
3109
|
-
var StepDots =
|
|
3247
|
+
var StepDots = React28__namespace.forwardRef(
|
|
3110
3248
|
({ totalSteps, currentStep, onStepClick, className }, ref) => {
|
|
3111
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) => {
|
|
3112
3250
|
const isCompleted = step < currentStep;
|
|
@@ -3132,7 +3270,7 @@ var StepDots = React27__namespace.forwardRef(
|
|
|
3132
3270
|
}
|
|
3133
3271
|
);
|
|
3134
3272
|
StepDots.displayName = "StepDots";
|
|
3135
|
-
var Breadcrumbs =
|
|
3273
|
+
var Breadcrumbs = React28__namespace.forwardRef(
|
|
3136
3274
|
({
|
|
3137
3275
|
items,
|
|
3138
3276
|
LinkComponent,
|
|
@@ -3214,7 +3352,7 @@ var Breadcrumbs = React27__namespace.forwardRef(
|
|
|
3214
3352
|
}
|
|
3215
3353
|
);
|
|
3216
3354
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
3217
|
-
var BreadcrumbLink =
|
|
3355
|
+
var BreadcrumbLink = React28__namespace.forwardRef(
|
|
3218
3356
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3219
3357
|
"a",
|
|
3220
3358
|
{
|
|
@@ -3239,7 +3377,7 @@ var presetLabels = {
|
|
|
3239
3377
|
"this-year": "This year",
|
|
3240
3378
|
"custom": "Custom"
|
|
3241
3379
|
};
|
|
3242
|
-
var DateRangePicker =
|
|
3380
|
+
var DateRangePicker = React28__namespace.forwardRef(
|
|
3243
3381
|
({
|
|
3244
3382
|
value,
|
|
3245
3383
|
onChange,
|
|
@@ -3298,7 +3436,7 @@ var DateRangePicker = React27__namespace.forwardRef(
|
|
|
3298
3436
|
}
|
|
3299
3437
|
);
|
|
3300
3438
|
DateRangePicker.displayName = "DateRangePicker";
|
|
3301
|
-
var DateRangeSelect =
|
|
3439
|
+
var DateRangeSelect = React28__namespace.forwardRef(
|
|
3302
3440
|
({ value, onChange, presets = ["7d", "30d", "90d"], className }, ref) => {
|
|
3303
3441
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3304
3442
|
"select",
|
|
@@ -3350,7 +3488,7 @@ function getDateRangeFromPreset(preset) {
|
|
|
3350
3488
|
}
|
|
3351
3489
|
return { start, end };
|
|
3352
3490
|
}
|
|
3353
|
-
var SettingsNav =
|
|
3491
|
+
var SettingsNav = React28__namespace.forwardRef(
|
|
3354
3492
|
({ groups, LinkComponent, className, ...props }, ref) => {
|
|
3355
3493
|
const Link2 = LinkComponent || "a";
|
|
3356
3494
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("space-y-8", className), ...props, children: groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -3381,7 +3519,7 @@ var SettingsNav = React27__namespace.forwardRef(
|
|
|
3381
3519
|
}
|
|
3382
3520
|
);
|
|
3383
3521
|
SettingsNav.displayName = "SettingsNav";
|
|
3384
|
-
var SettingsNavLink =
|
|
3522
|
+
var SettingsNavLink = React28__namespace.forwardRef(
|
|
3385
3523
|
({ title, description, icon, href, LinkComponent, className, ...props }, ref) => {
|
|
3386
3524
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3387
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 }) }),
|
|
@@ -3473,13 +3611,18 @@ exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
|
3473
3611
|
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
3474
3612
|
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
3475
3613
|
exports.EmptyState = EmptyState;
|
|
3614
|
+
exports.ErrorState = ErrorState;
|
|
3476
3615
|
exports.FormField = FormField;
|
|
3477
3616
|
exports.IconBox = IconBox;
|
|
3478
3617
|
exports.Input = Input;
|
|
3479
3618
|
exports.Label = Label2;
|
|
3480
3619
|
exports.LabeledSwitch = LabeledSwitch;
|
|
3481
3620
|
exports.Logo = Logo;
|
|
3621
|
+
exports.Metric = Metric;
|
|
3482
3622
|
exports.MetricCard = MetricCard;
|
|
3623
|
+
exports.MetricLabel = MetricLabel;
|
|
3624
|
+
exports.MetricSubtext = MetricSubtext;
|
|
3625
|
+
exports.MetricValue = MetricValue;
|
|
3483
3626
|
exports.NavigationMenu = NavigationMenu;
|
|
3484
3627
|
exports.NavigationMenuContent = NavigationMenuContent;
|
|
3485
3628
|
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|
|
@@ -3515,7 +3658,6 @@ exports.SheetPortal = SheetPortal;
|
|
|
3515
3658
|
exports.SheetTitle = SheetTitle;
|
|
3516
3659
|
exports.SheetTrigger = SheetTrigger;
|
|
3517
3660
|
exports.Sidebar = Sidebar;
|
|
3518
|
-
exports.SidebarNavItem = SidebarNavItem;
|
|
3519
3661
|
exports.SimplePagination = SimplePagination;
|
|
3520
3662
|
exports.SimpleTooltip = SimpleTooltip;
|
|
3521
3663
|
exports.Skeleton = Skeleton;
|