@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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
2
|
+
import * as React28 from 'react';
|
|
3
3
|
import { Slot, createSlot } from '@radix-ui/react-slot';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
@@ -103,13 +103,18 @@ __export(index_exports, {
|
|
|
103
103
|
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
104
104
|
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
105
105
|
EmptyState: () => EmptyState,
|
|
106
|
+
ErrorState: () => ErrorState,
|
|
106
107
|
FormField: () => FormField,
|
|
107
108
|
IconBox: () => IconBox,
|
|
108
109
|
Input: () => Input,
|
|
109
110
|
Label: () => Label2,
|
|
110
111
|
LabeledSwitch: () => LabeledSwitch,
|
|
111
112
|
Logo: () => Logo,
|
|
113
|
+
Metric: () => Metric,
|
|
112
114
|
MetricCard: () => MetricCard,
|
|
115
|
+
MetricLabel: () => MetricLabel,
|
|
116
|
+
MetricSubtext: () => MetricSubtext,
|
|
117
|
+
MetricValue: () => MetricValue,
|
|
113
118
|
NavigationMenu: () => NavigationMenu,
|
|
114
119
|
NavigationMenuContent: () => NavigationMenuContent,
|
|
115
120
|
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
@@ -231,7 +236,7 @@ var buttonVariants = cva(
|
|
|
231
236
|
}
|
|
232
237
|
}
|
|
233
238
|
);
|
|
234
|
-
var Button =
|
|
239
|
+
var Button = React28.forwardRef(
|
|
235
240
|
({ className, variant, size, asChild = false, loading, loadingText, children, disabled, ...props }, ref) => {
|
|
236
241
|
const Comp = asChild ? Slot : "button";
|
|
237
242
|
const isDisabled = disabled || loading;
|
|
@@ -284,7 +289,7 @@ var Sheet = SheetPrimitive.Root;
|
|
|
284
289
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
285
290
|
var SheetClose = SheetPrimitive.Close;
|
|
286
291
|
var SheetPortal = SheetPrimitive.Portal;
|
|
287
|
-
var SheetOverlay =
|
|
292
|
+
var SheetOverlay = React28.forwardRef(({ className, ...props }, ref) => (
|
|
288
293
|
// @ts-ignore - Radix Dialog Overlay accepts className at runtime
|
|
289
294
|
/* @__PURE__ */ jsx(
|
|
290
295
|
SheetPrimitive.Overlay,
|
|
@@ -315,7 +320,7 @@ var sheetVariants = cva(
|
|
|
315
320
|
}
|
|
316
321
|
}
|
|
317
322
|
);
|
|
318
|
-
var SheetContent =
|
|
323
|
+
var SheetContent = React28.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
319
324
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
320
325
|
/* @__PURE__ */ jsxs(
|
|
321
326
|
SheetPrimitive.Content,
|
|
@@ -362,7 +367,7 @@ var SheetFooter = ({
|
|
|
362
367
|
}
|
|
363
368
|
);
|
|
364
369
|
SheetFooter.displayName = "SheetFooter";
|
|
365
|
-
var SheetTitle =
|
|
370
|
+
var SheetTitle = React28.forwardRef(({ className, ...props }, ref) => (
|
|
366
371
|
// @ts-ignore - Radix Dialog Title accepts className at runtime
|
|
367
372
|
/* @__PURE__ */ jsx(
|
|
368
373
|
SheetPrimitive.Title,
|
|
@@ -374,7 +379,7 @@ var SheetTitle = React27.forwardRef(({ className, ...props }, ref) => (
|
|
|
374
379
|
)
|
|
375
380
|
));
|
|
376
381
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
377
|
-
var SheetDescription =
|
|
382
|
+
var SheetDescription = React28.forwardRef(({ className, ...props }, ref) => (
|
|
378
383
|
// @ts-ignore - Radix Dialog Description accepts className at runtime
|
|
379
384
|
/* @__PURE__ */ jsx(
|
|
380
385
|
SheetPrimitive.Description,
|
|
@@ -474,7 +479,7 @@ var badgeVariants = cva(
|
|
|
474
479
|
}
|
|
475
480
|
}
|
|
476
481
|
);
|
|
477
|
-
var Badge =
|
|
482
|
+
var Badge = React28.forwardRef(
|
|
478
483
|
({ className, variant, size, pulse, pulseColor: pulseColorProp, children, ...props }, ref) => {
|
|
479
484
|
const getPulseColorClass = () => {
|
|
480
485
|
const color = pulseColorProp || variant || "default";
|
|
@@ -528,7 +533,7 @@ var Badge = React27.forwardRef(
|
|
|
528
533
|
}
|
|
529
534
|
);
|
|
530
535
|
Badge.displayName = "Badge";
|
|
531
|
-
var Card =
|
|
536
|
+
var Card = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
532
537
|
"div",
|
|
533
538
|
{
|
|
534
539
|
ref,
|
|
@@ -540,7 +545,7 @@ var Card = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
540
545
|
}
|
|
541
546
|
));
|
|
542
547
|
Card.displayName = "Card";
|
|
543
|
-
var CardHeader =
|
|
548
|
+
var CardHeader = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
544
549
|
"div",
|
|
545
550
|
{
|
|
546
551
|
ref,
|
|
@@ -549,7 +554,7 @@ var CardHeader = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
549
554
|
}
|
|
550
555
|
));
|
|
551
556
|
CardHeader.displayName = "CardHeader";
|
|
552
|
-
var CardTitle =
|
|
557
|
+
var CardTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
553
558
|
"h3",
|
|
554
559
|
{
|
|
555
560
|
ref,
|
|
@@ -561,7 +566,7 @@ var CardTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
561
566
|
}
|
|
562
567
|
));
|
|
563
568
|
CardTitle.displayName = "CardTitle";
|
|
564
|
-
var CardDescription =
|
|
569
|
+
var CardDescription = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
565
570
|
"p",
|
|
566
571
|
{
|
|
567
572
|
ref,
|
|
@@ -570,9 +575,9 @@ var CardDescription = React27.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
570
575
|
}
|
|
571
576
|
));
|
|
572
577
|
CardDescription.displayName = "CardDescription";
|
|
573
|
-
var CardContent =
|
|
578
|
+
var CardContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
574
579
|
CardContent.displayName = "CardContent";
|
|
575
|
-
var CardFooter =
|
|
580
|
+
var CardFooter = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
576
581
|
"div",
|
|
577
582
|
{
|
|
578
583
|
ref,
|
|
@@ -595,7 +600,7 @@ var progressVariants = cva("h-full rounded-full transition-all duration-300", {
|
|
|
595
600
|
variant: "default"
|
|
596
601
|
}
|
|
597
602
|
});
|
|
598
|
-
var Progress =
|
|
603
|
+
var Progress = React28.forwardRef(
|
|
599
604
|
({ className, value, variant, showLabel, label = "Progress", size = "default", ...props }, ref) => {
|
|
600
605
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
601
606
|
const heightClass = {
|
|
@@ -662,7 +667,7 @@ var iconBoxVariants = cva(
|
|
|
662
667
|
}
|
|
663
668
|
}
|
|
664
669
|
);
|
|
665
|
-
var IconBox =
|
|
670
|
+
var IconBox = React28.forwardRef(
|
|
666
671
|
({ className, variant, size, rounded, children, ...props }, ref) => {
|
|
667
672
|
return /* @__PURE__ */ jsx(
|
|
668
673
|
"div",
|
|
@@ -698,7 +703,7 @@ var tagVariants = cva(
|
|
|
698
703
|
}
|
|
699
704
|
}
|
|
700
705
|
);
|
|
701
|
-
var Tag =
|
|
706
|
+
var Tag = React28.forwardRef(
|
|
702
707
|
({ className, variant, size, icon, children, ...props }, ref) => {
|
|
703
708
|
return /* @__PURE__ */ jsxs(
|
|
704
709
|
"span",
|
|
@@ -752,7 +757,7 @@ var valueVariants = cva("font-bold", {
|
|
|
752
757
|
color: "default"
|
|
753
758
|
}
|
|
754
759
|
});
|
|
755
|
-
var Stat =
|
|
760
|
+
var Stat = React28.forwardRef(
|
|
756
761
|
({
|
|
757
762
|
className,
|
|
758
763
|
variant,
|
|
@@ -834,7 +839,7 @@ var iconVariants = cva("h-5 w-5", {
|
|
|
834
839
|
color: "cyan"
|
|
835
840
|
}
|
|
836
841
|
});
|
|
837
|
-
var MetricCard =
|
|
842
|
+
var MetricCard = React28.forwardRef(
|
|
838
843
|
({
|
|
839
844
|
className,
|
|
840
845
|
variant,
|
|
@@ -867,6 +872,75 @@ var MetricCard = React27.forwardRef(
|
|
|
867
872
|
}
|
|
868
873
|
);
|
|
869
874
|
MetricCard.displayName = "MetricCard";
|
|
875
|
+
var MetricLabel = React28.forwardRef(
|
|
876
|
+
({ className, children, ...props }, ref) => {
|
|
877
|
+
return /* @__PURE__ */ jsx(
|
|
878
|
+
"p",
|
|
879
|
+
{
|
|
880
|
+
ref,
|
|
881
|
+
className: cn(
|
|
882
|
+
"text-xs text-muted-foreground uppercase tracking-wide",
|
|
883
|
+
className
|
|
884
|
+
),
|
|
885
|
+
...props,
|
|
886
|
+
children
|
|
887
|
+
}
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
);
|
|
891
|
+
MetricLabel.displayName = "MetricLabel";
|
|
892
|
+
var MetricValue = React28.forwardRef(
|
|
893
|
+
({ className, children, size = "default", highlight = false, ...props }, ref) => {
|
|
894
|
+
return /* @__PURE__ */ jsx(
|
|
895
|
+
"p",
|
|
896
|
+
{
|
|
897
|
+
ref,
|
|
898
|
+
className: cn(
|
|
899
|
+
"font-bold mt-1",
|
|
900
|
+
size === "lg" && "text-3xl",
|
|
901
|
+
size === "default" && "text-2xl",
|
|
902
|
+
size === "sm" && "text-xl",
|
|
903
|
+
highlight && "text-[#00e5cc]",
|
|
904
|
+
className
|
|
905
|
+
),
|
|
906
|
+
...props,
|
|
907
|
+
children
|
|
908
|
+
}
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
);
|
|
912
|
+
MetricValue.displayName = "MetricValue";
|
|
913
|
+
var MetricSubtext = React28.forwardRef(
|
|
914
|
+
({ className, children, ...props }, ref) => {
|
|
915
|
+
return /* @__PURE__ */ jsx(
|
|
916
|
+
"p",
|
|
917
|
+
{
|
|
918
|
+
ref,
|
|
919
|
+
className: cn(
|
|
920
|
+
"text-xs text-muted-foreground mt-1",
|
|
921
|
+
className
|
|
922
|
+
),
|
|
923
|
+
...props,
|
|
924
|
+
children
|
|
925
|
+
}
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
);
|
|
929
|
+
MetricSubtext.displayName = "MetricSubtext";
|
|
930
|
+
var Metric = React28.forwardRef(
|
|
931
|
+
({ className, children, ...props }, ref) => {
|
|
932
|
+
return /* @__PURE__ */ jsx(
|
|
933
|
+
"div",
|
|
934
|
+
{
|
|
935
|
+
ref,
|
|
936
|
+
className: cn(className),
|
|
937
|
+
...props,
|
|
938
|
+
children
|
|
939
|
+
}
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
);
|
|
943
|
+
Metric.displayName = "Metric";
|
|
870
944
|
var usageBarVariants = cva("space-y-3", {
|
|
871
945
|
variants: {
|
|
872
946
|
size: {
|
|
@@ -893,7 +967,7 @@ var progressColorVariants = cva("", {
|
|
|
893
967
|
color: "cyan"
|
|
894
968
|
}
|
|
895
969
|
});
|
|
896
|
-
var UsageBar =
|
|
970
|
+
var UsageBar = React28.forwardRef(
|
|
897
971
|
({
|
|
898
972
|
className,
|
|
899
973
|
size,
|
|
@@ -965,7 +1039,7 @@ var UsageBar = React27.forwardRef(
|
|
|
965
1039
|
}
|
|
966
1040
|
);
|
|
967
1041
|
UsageBar.displayName = "UsageBar";
|
|
968
|
-
var UsageChart =
|
|
1042
|
+
var UsageChart = React28.forwardRef(
|
|
969
1043
|
({
|
|
970
1044
|
className,
|
|
971
1045
|
data,
|
|
@@ -976,8 +1050,8 @@ var UsageChart = React27.forwardRef(
|
|
|
976
1050
|
formatValue = (v) => v.toLocaleString(),
|
|
977
1051
|
...props
|
|
978
1052
|
}, ref) => {
|
|
979
|
-
const [hoveredIndex, setHoveredIndex] =
|
|
980
|
-
const maxValue =
|
|
1053
|
+
const [hoveredIndex, setHoveredIndex] = React28.useState(null);
|
|
1054
|
+
const maxValue = React28.useMemo(() => {
|
|
981
1055
|
return Math.max(
|
|
982
1056
|
...data.map((d) => d.value + (d.secondaryValue || 0)),
|
|
983
1057
|
1
|
|
@@ -1104,7 +1178,7 @@ var UsageChart = React27.forwardRef(
|
|
|
1104
1178
|
}
|
|
1105
1179
|
);
|
|
1106
1180
|
UsageChart.displayName = "UsageChart";
|
|
1107
|
-
var Input =
|
|
1181
|
+
var Input = React28.forwardRef(
|
|
1108
1182
|
({ className, type, error, ...props }, ref) => {
|
|
1109
1183
|
return /* @__PURE__ */ jsx(
|
|
1110
1184
|
"input",
|
|
@@ -1144,7 +1218,7 @@ var NODES = [
|
|
|
1144
1218
|
];
|
|
1145
1219
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
1146
1220
|
const Slot2 = createSlot(`Primitive.${node}`);
|
|
1147
|
-
const Node =
|
|
1221
|
+
const Node = React28.forwardRef((props, forwardedRef) => {
|
|
1148
1222
|
const { asChild, ...primitiveProps } = props;
|
|
1149
1223
|
const Comp = asChild ? Slot2 : node;
|
|
1150
1224
|
if (typeof window !== "undefined") {
|
|
@@ -1156,7 +1230,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
1156
1230
|
return { ...primitive, [node]: Node };
|
|
1157
1231
|
}, {});
|
|
1158
1232
|
var NAME = "Label";
|
|
1159
|
-
var Label =
|
|
1233
|
+
var Label = React28.forwardRef((props, forwardedRef) => {
|
|
1160
1234
|
return /* @__PURE__ */ jsx(
|
|
1161
1235
|
Primitive.label,
|
|
1162
1236
|
{
|
|
@@ -1176,7 +1250,7 @@ var Root2 = Label;
|
|
|
1176
1250
|
var labelVariants = cva(
|
|
1177
1251
|
"text-sm font-medium leading-none text-[var(--black)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1178
1252
|
);
|
|
1179
|
-
var Label2 =
|
|
1253
|
+
var Label2 = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1180
1254
|
Root2,
|
|
1181
1255
|
{
|
|
1182
1256
|
ref,
|
|
@@ -1185,7 +1259,7 @@ var Label2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1185
1259
|
}
|
|
1186
1260
|
));
|
|
1187
1261
|
Label2.displayName = Root2.displayName;
|
|
1188
|
-
var Textarea =
|
|
1262
|
+
var Textarea = React28.forwardRef(
|
|
1189
1263
|
({ className, error, ...props }, ref) => {
|
|
1190
1264
|
return /* @__PURE__ */ jsx(
|
|
1191
1265
|
"textarea",
|
|
@@ -1203,7 +1277,7 @@ var Textarea = React27.forwardRef(
|
|
|
1203
1277
|
}
|
|
1204
1278
|
);
|
|
1205
1279
|
Textarea.displayName = "Textarea";
|
|
1206
|
-
var Select =
|
|
1280
|
+
var Select = React28.forwardRef(
|
|
1207
1281
|
({ className, error, children, ...props }, ref) => {
|
|
1208
1282
|
return /* @__PURE__ */ jsx(
|
|
1209
1283
|
"select",
|
|
@@ -1230,7 +1304,7 @@ Select.displayName = "Select";
|
|
|
1230
1304
|
// src/icons.ts
|
|
1231
1305
|
var icons_exports = {};
|
|
1232
1306
|
__reExport(icons_exports, react_star);
|
|
1233
|
-
var Checkbox =
|
|
1307
|
+
var Checkbox = React28.forwardRef(
|
|
1234
1308
|
({ className, checked, onCheckedChange, ...props }, ref) => {
|
|
1235
1309
|
return /* @__PURE__ */ jsxs("label", { className: "relative inline-flex items-center cursor-pointer", children: [
|
|
1236
1310
|
/* @__PURE__ */ jsx(
|
|
@@ -1261,7 +1335,7 @@ var Checkbox = React27.forwardRef(
|
|
|
1261
1335
|
}
|
|
1262
1336
|
);
|
|
1263
1337
|
Checkbox.displayName = "Checkbox";
|
|
1264
|
-
var Switch =
|
|
1338
|
+
var Switch = React28.forwardRef(({ className, size = "default", ...props }, ref) => {
|
|
1265
1339
|
const sizeStyles = {
|
|
1266
1340
|
sm: {
|
|
1267
1341
|
root: "h-4 w-7",
|
|
@@ -1299,8 +1373,8 @@ var Switch = React27.forwardRef(({ className, size = "default", ...props }, ref)
|
|
|
1299
1373
|
);
|
|
1300
1374
|
});
|
|
1301
1375
|
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
1302
|
-
var LabeledSwitch =
|
|
1303
|
-
const switchId = id ||
|
|
1376
|
+
var LabeledSwitch = React28.forwardRef(({ label, description, labelPosition = "right", className, id, ...props }, ref) => {
|
|
1377
|
+
const switchId = id || React28.useId();
|
|
1304
1378
|
const labelContent = /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
1305
1379
|
/* @__PURE__ */ jsx(
|
|
1306
1380
|
"label",
|
|
@@ -1328,7 +1402,7 @@ var LabeledSwitch = React27.forwardRef(({ label, description, labelPosition = "r
|
|
|
1328
1402
|
);
|
|
1329
1403
|
});
|
|
1330
1404
|
LabeledSwitch.displayName = "LabeledSwitch";
|
|
1331
|
-
var RadioGroup =
|
|
1405
|
+
var RadioGroup = React28.forwardRef(({ className, ...props }, ref) => {
|
|
1332
1406
|
return /* @__PURE__ */ jsx(
|
|
1333
1407
|
RadioGroupPrimitive.Root,
|
|
1334
1408
|
{
|
|
@@ -1339,7 +1413,7 @@ var RadioGroup = React27.forwardRef(({ className, ...props }, ref) => {
|
|
|
1339
1413
|
);
|
|
1340
1414
|
});
|
|
1341
1415
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
1342
|
-
var RadioGroupItem =
|
|
1416
|
+
var RadioGroupItem = React28.forwardRef(({ className, ...props }, ref) => {
|
|
1343
1417
|
return /* @__PURE__ */ jsx(
|
|
1344
1418
|
RadioGroupPrimitive.Item,
|
|
1345
1419
|
{
|
|
@@ -1354,8 +1428,8 @@ var RadioGroupItem = React27.forwardRef(({ className, ...props }, ref) => {
|
|
|
1354
1428
|
);
|
|
1355
1429
|
});
|
|
1356
1430
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
1357
|
-
var RadioGroupOption =
|
|
1358
|
-
const optionId = id ||
|
|
1431
|
+
var RadioGroupOption = React28.forwardRef(({ label, description, className, id, ...props }, ref) => {
|
|
1432
|
+
const optionId = id || React28.useId();
|
|
1359
1433
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-start gap-3", className), children: [
|
|
1360
1434
|
/* @__PURE__ */ jsx(RadioGroupItem, { ref, id: optionId, ...props }),
|
|
1361
1435
|
/* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
@@ -1372,8 +1446,8 @@ var RadioGroupOption = React27.forwardRef(({ label, description, className, id,
|
|
|
1372
1446
|
] });
|
|
1373
1447
|
});
|
|
1374
1448
|
RadioGroupOption.displayName = "RadioGroupOption";
|
|
1375
|
-
var RadioGroupCard =
|
|
1376
|
-
const cardId = id ||
|
|
1449
|
+
var RadioGroupCard = React28.forwardRef(({ label, description, children, className, id, ...props }, ref) => {
|
|
1450
|
+
const cardId = id || React28.useId();
|
|
1377
1451
|
return /* @__PURE__ */ jsx(
|
|
1378
1452
|
RadioGroupPrimitive.Item,
|
|
1379
1453
|
{
|
|
@@ -1404,7 +1478,7 @@ var RadioGroupCard = React27.forwardRef(({ label, description, children, classNa
|
|
|
1404
1478
|
});
|
|
1405
1479
|
RadioGroupCard.displayName = "RadioGroupCard";
|
|
1406
1480
|
var Accordion = AccordionPrimitive.Root;
|
|
1407
|
-
var AccordionItem =
|
|
1481
|
+
var AccordionItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1408
1482
|
AccordionPrimitive.Item,
|
|
1409
1483
|
{
|
|
1410
1484
|
ref,
|
|
@@ -1413,7 +1487,7 @@ var AccordionItem = React27.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1413
1487
|
}
|
|
1414
1488
|
));
|
|
1415
1489
|
AccordionItem.displayName = "AccordionItem";
|
|
1416
|
-
var AccordionTrigger =
|
|
1490
|
+
var AccordionTrigger = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
1417
1491
|
AccordionPrimitive.Trigger,
|
|
1418
1492
|
{
|
|
1419
1493
|
ref,
|
|
@@ -1429,7 +1503,7 @@ var AccordionTrigger = React27.forwardRef(({ className, children, ...props }, re
|
|
|
1429
1503
|
}
|
|
1430
1504
|
) }));
|
|
1431
1505
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
1432
|
-
var AccordionContent =
|
|
1506
|
+
var AccordionContent = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1433
1507
|
AccordionPrimitive.Content,
|
|
1434
1508
|
{
|
|
1435
1509
|
ref,
|
|
@@ -1460,7 +1534,7 @@ var NODES2 = [
|
|
|
1460
1534
|
];
|
|
1461
1535
|
var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
1462
1536
|
const Slot2 = createSlot(`Primitive.${node}`);
|
|
1463
|
-
const Node =
|
|
1537
|
+
const Node = React28.forwardRef((props, forwardedRef) => {
|
|
1464
1538
|
const { asChild, ...primitiveProps } = props;
|
|
1465
1539
|
const Comp = asChild ? Slot2 : node;
|
|
1466
1540
|
if (typeof window !== "undefined") {
|
|
@@ -1474,7 +1548,7 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
|
1474
1548
|
var NAME2 = "Separator";
|
|
1475
1549
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
1476
1550
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
1477
|
-
var Separator =
|
|
1551
|
+
var Separator = React28.forwardRef((props, forwardedRef) => {
|
|
1478
1552
|
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
1479
1553
|
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
1480
1554
|
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
@@ -1494,7 +1568,7 @@ function isValidOrientation(orientation) {
|
|
|
1494
1568
|
return ORIENTATIONS.includes(orientation);
|
|
1495
1569
|
}
|
|
1496
1570
|
var Root6 = Separator;
|
|
1497
|
-
var Separator2 =
|
|
1571
|
+
var Separator2 = React28.forwardRef(
|
|
1498
1572
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1499
1573
|
Root6,
|
|
1500
1574
|
{
|
|
@@ -1511,7 +1585,7 @@ var Separator2 = React27.forwardRef(
|
|
|
1511
1585
|
)
|
|
1512
1586
|
);
|
|
1513
1587
|
Separator2.displayName = Root6.displayName;
|
|
1514
|
-
var NavigationMenu =
|
|
1588
|
+
var NavigationMenu = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1515
1589
|
NavigationMenuPrimitive.Root,
|
|
1516
1590
|
{
|
|
1517
1591
|
ref,
|
|
@@ -1527,7 +1601,7 @@ var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
1527
1601
|
}
|
|
1528
1602
|
));
|
|
1529
1603
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1530
|
-
var NavigationMenuList =
|
|
1604
|
+
var NavigationMenuList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1531
1605
|
NavigationMenuPrimitive.List,
|
|
1532
1606
|
{
|
|
1533
1607
|
ref,
|
|
@@ -1543,7 +1617,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
1543
1617
|
var navigationMenuTriggerStyle = cva(
|
|
1544
1618
|
"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"
|
|
1545
1619
|
);
|
|
1546
|
-
var NavigationMenuTrigger =
|
|
1620
|
+
var NavigationMenuTrigger = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1547
1621
|
NavigationMenuPrimitive.Trigger,
|
|
1548
1622
|
{
|
|
1549
1623
|
ref,
|
|
@@ -1563,7 +1637,7 @@ var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props
|
|
|
1563
1637
|
}
|
|
1564
1638
|
));
|
|
1565
1639
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1566
|
-
var NavigationMenuContent =
|
|
1640
|
+
var NavigationMenuContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1567
1641
|
NavigationMenuPrimitive.Content,
|
|
1568
1642
|
{
|
|
1569
1643
|
ref,
|
|
@@ -1576,7 +1650,7 @@ var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
1576
1650
|
));
|
|
1577
1651
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1578
1652
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1579
|
-
var NavigationMenuViewport =
|
|
1653
|
+
var NavigationMenuViewport = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
1580
1654
|
NavigationMenuPrimitive.Viewport,
|
|
1581
1655
|
{
|
|
1582
1656
|
className: cn(
|
|
@@ -1588,7 +1662,7 @@ var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
1588
1662
|
}
|
|
1589
1663
|
) }));
|
|
1590
1664
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1591
|
-
var NavigationMenuIndicator =
|
|
1665
|
+
var NavigationMenuIndicator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1592
1666
|
NavigationMenuPrimitive.Indicator,
|
|
1593
1667
|
{
|
|
1594
1668
|
ref,
|
|
@@ -1601,7 +1675,7 @@ var NavigationMenuIndicator = React27.forwardRef(({ className, ...props }, ref)
|
|
|
1601
1675
|
}
|
|
1602
1676
|
));
|
|
1603
1677
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1604
|
-
var Avatar =
|
|
1678
|
+
var Avatar = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1605
1679
|
AvatarPrimitive.Root,
|
|
1606
1680
|
{
|
|
1607
1681
|
ref,
|
|
@@ -1613,7 +1687,7 @@ var Avatar = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1613
1687
|
}
|
|
1614
1688
|
));
|
|
1615
1689
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
1616
|
-
var AvatarImage =
|
|
1690
|
+
var AvatarImage = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1617
1691
|
AvatarPrimitive.Image,
|
|
1618
1692
|
{
|
|
1619
1693
|
ref,
|
|
@@ -1622,7 +1696,7 @@ var AvatarImage = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1622
1696
|
}
|
|
1623
1697
|
));
|
|
1624
1698
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
1625
|
-
var AvatarFallback =
|
|
1699
|
+
var AvatarFallback = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1626
1700
|
AvatarPrimitive.Fallback,
|
|
1627
1701
|
{
|
|
1628
1702
|
ref,
|
|
@@ -1640,7 +1714,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1640
1714
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1641
1715
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1642
1716
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1643
|
-
var DropdownMenuSubTrigger =
|
|
1717
|
+
var DropdownMenuSubTrigger = React28.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1644
1718
|
DropdownMenuPrimitive.SubTrigger,
|
|
1645
1719
|
{
|
|
1646
1720
|
ref,
|
|
@@ -1657,7 +1731,7 @@ var DropdownMenuSubTrigger = React27.forwardRef(({ className, inset, children, .
|
|
|
1657
1731
|
}
|
|
1658
1732
|
));
|
|
1659
1733
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1660
|
-
var DropdownMenuSubContent =
|
|
1734
|
+
var DropdownMenuSubContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1661
1735
|
DropdownMenuPrimitive.SubContent,
|
|
1662
1736
|
{
|
|
1663
1737
|
ref,
|
|
@@ -1669,7 +1743,7 @@ var DropdownMenuSubContent = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
1669
1743
|
}
|
|
1670
1744
|
));
|
|
1671
1745
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1672
|
-
var DropdownMenuContent =
|
|
1746
|
+
var DropdownMenuContent = React28.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1673
1747
|
DropdownMenuPrimitive.Content,
|
|
1674
1748
|
{
|
|
1675
1749
|
ref,
|
|
@@ -1682,7 +1756,7 @@ var DropdownMenuContent = React27.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1682
1756
|
}
|
|
1683
1757
|
) }));
|
|
1684
1758
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1685
|
-
var DropdownMenuItem =
|
|
1759
|
+
var DropdownMenuItem = React28.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1686
1760
|
DropdownMenuPrimitive.Item,
|
|
1687
1761
|
{
|
|
1688
1762
|
ref,
|
|
@@ -1695,7 +1769,7 @@ var DropdownMenuItem = React27.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1695
1769
|
}
|
|
1696
1770
|
));
|
|
1697
1771
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1698
|
-
var DropdownMenuCheckboxItem =
|
|
1772
|
+
var DropdownMenuCheckboxItem = React28.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1699
1773
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1700
1774
|
{
|
|
1701
1775
|
ref,
|
|
@@ -1712,7 +1786,7 @@ var DropdownMenuCheckboxItem = React27.forwardRef(({ className, children, checke
|
|
|
1712
1786
|
}
|
|
1713
1787
|
));
|
|
1714
1788
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1715
|
-
var DropdownMenuRadioItem =
|
|
1789
|
+
var DropdownMenuRadioItem = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1716
1790
|
DropdownMenuPrimitive.RadioItem,
|
|
1717
1791
|
{
|
|
1718
1792
|
ref,
|
|
@@ -1728,7 +1802,7 @@ var DropdownMenuRadioItem = React27.forwardRef(({ className, children, ...props
|
|
|
1728
1802
|
}
|
|
1729
1803
|
));
|
|
1730
1804
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1731
|
-
var DropdownMenuLabel =
|
|
1805
|
+
var DropdownMenuLabel = React28.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1732
1806
|
DropdownMenuPrimitive.Label,
|
|
1733
1807
|
{
|
|
1734
1808
|
ref,
|
|
@@ -1741,7 +1815,7 @@ var DropdownMenuLabel = React27.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1741
1815
|
}
|
|
1742
1816
|
));
|
|
1743
1817
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1744
|
-
var DropdownMenuSeparator =
|
|
1818
|
+
var DropdownMenuSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1745
1819
|
DropdownMenuPrimitive.Separator,
|
|
1746
1820
|
{
|
|
1747
1821
|
ref,
|
|
@@ -1763,7 +1837,7 @@ var DropdownMenuShortcut = ({
|
|
|
1763
1837
|
);
|
|
1764
1838
|
};
|
|
1765
1839
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1766
|
-
var SidebarNavItem =
|
|
1840
|
+
var SidebarNavItem = React28.forwardRef(
|
|
1767
1841
|
({ item, isActive, className, LinkComponent, ...props }, ref) => {
|
|
1768
1842
|
const Icon = item.icon;
|
|
1769
1843
|
const baseClassName = cn(
|
|
@@ -1803,7 +1877,7 @@ var SidebarNavItem = React27.forwardRef(
|
|
|
1803
1877
|
}
|
|
1804
1878
|
);
|
|
1805
1879
|
SidebarNavItem.displayName = "SidebarNavItem";
|
|
1806
|
-
var Sidebar =
|
|
1880
|
+
var Sidebar = React28.forwardRef(
|
|
1807
1881
|
({
|
|
1808
1882
|
mainNav = [],
|
|
1809
1883
|
bottomNav = [],
|
|
@@ -1913,7 +1987,7 @@ var alertVariants = cva(
|
|
|
1913
1987
|
}
|
|
1914
1988
|
}
|
|
1915
1989
|
);
|
|
1916
|
-
var Alert =
|
|
1990
|
+
var Alert = React28.forwardRef(
|
|
1917
1991
|
({ className, variant, icon, title, action, children, ...props }, ref) => {
|
|
1918
1992
|
return /* @__PURE__ */ jsx(
|
|
1919
1993
|
"div",
|
|
@@ -1936,7 +2010,7 @@ var Alert = React27.forwardRef(
|
|
|
1936
2010
|
}
|
|
1937
2011
|
);
|
|
1938
2012
|
Alert.displayName = "Alert";
|
|
1939
|
-
var EmptyState =
|
|
2013
|
+
var EmptyState = React28.forwardRef(
|
|
1940
2014
|
({ className, icon, title, description, action, size = "default", ...props }, ref) => {
|
|
1941
2015
|
const paddingClass = {
|
|
1942
2016
|
sm: "p-8",
|
|
@@ -1964,7 +2038,70 @@ var EmptyState = React27.forwardRef(
|
|
|
1964
2038
|
}
|
|
1965
2039
|
);
|
|
1966
2040
|
EmptyState.displayName = "EmptyState";
|
|
1967
|
-
var
|
|
2041
|
+
var ErrorState = React28.forwardRef(
|
|
2042
|
+
({
|
|
2043
|
+
title = "Something went wrong",
|
|
2044
|
+
description = "We encountered an error loading this page. Please try again.",
|
|
2045
|
+
showRetry = true,
|
|
2046
|
+
showHomeLink = true,
|
|
2047
|
+
retryText = "Try again",
|
|
2048
|
+
homeLinkText = "Go to dashboard",
|
|
2049
|
+
onRetry,
|
|
2050
|
+
onHomeClick,
|
|
2051
|
+
icon,
|
|
2052
|
+
actions,
|
|
2053
|
+
className,
|
|
2054
|
+
...props
|
|
2055
|
+
}, ref) => {
|
|
2056
|
+
const defaultIcon = /* @__PURE__ */ jsx(
|
|
2057
|
+
"svg",
|
|
2058
|
+
{
|
|
2059
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2060
|
+
width: "24",
|
|
2061
|
+
height: "24",
|
|
2062
|
+
fill: "currentColor",
|
|
2063
|
+
viewBox: "0 0 256 256",
|
|
2064
|
+
className: "text-red-500",
|
|
2065
|
+
children: /* @__PURE__ */ 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" })
|
|
2066
|
+
}
|
|
2067
|
+
);
|
|
2068
|
+
const refreshIcon = /* @__PURE__ */ jsx(
|
|
2069
|
+
"svg",
|
|
2070
|
+
{
|
|
2071
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2072
|
+
width: "16",
|
|
2073
|
+
height: "16",
|
|
2074
|
+
fill: "currentColor",
|
|
2075
|
+
viewBox: "0 0 256 256",
|
|
2076
|
+
className: "mr-2",
|
|
2077
|
+
children: /* @__PURE__ */ 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" })
|
|
2078
|
+
}
|
|
2079
|
+
);
|
|
2080
|
+
const hasDefaultActions = showRetry && onRetry || showHomeLink && onHomeClick;
|
|
2081
|
+
return /* @__PURE__ */ jsx(
|
|
2082
|
+
"div",
|
|
2083
|
+
{
|
|
2084
|
+
ref,
|
|
2085
|
+
className: cn("flex items-center justify-center min-h-[60vh]", className),
|
|
2086
|
+
...props,
|
|
2087
|
+
children: /* @__PURE__ */ jsx(Card, { className: "max-w-md w-full", children: /* @__PURE__ */ jsxs(CardContent, { className: "p-8 text-center", children: [
|
|
2088
|
+
/* @__PURE__ */ jsx(IconBox, { size: "lg", className: "mx-auto mb-4 bg-red-50", children: icon || defaultIcon }),
|
|
2089
|
+
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold text-[var(--black)] mb-2", children: title }),
|
|
2090
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mb-6", children: description }),
|
|
2091
|
+
actions ? /* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: actions }) : hasDefaultActions ? /* @__PURE__ */ jsxs("div", { className: "flex gap-3 justify-center", children: [
|
|
2092
|
+
showRetry && onRetry && /* @__PURE__ */ jsxs(Button, { variant: "outline", onClick: onRetry, children: [
|
|
2093
|
+
refreshIcon,
|
|
2094
|
+
retryText
|
|
2095
|
+
] }),
|
|
2096
|
+
showHomeLink && onHomeClick && /* @__PURE__ */ jsx(Button, { onClick: onHomeClick, children: homeLinkText })
|
|
2097
|
+
] }) : null
|
|
2098
|
+
] }) })
|
|
2099
|
+
}
|
|
2100
|
+
);
|
|
2101
|
+
}
|
|
2102
|
+
);
|
|
2103
|
+
ErrorState.displayName = "ErrorState";
|
|
2104
|
+
var CodeBlock = React28.forwardRef(
|
|
1968
2105
|
({ className, children, language, ...props }, ref) => {
|
|
1969
2106
|
return /* @__PURE__ */ jsx(
|
|
1970
2107
|
"pre",
|
|
@@ -1982,15 +2119,15 @@ var CodeBlock = React27.forwardRef(
|
|
|
1982
2119
|
}
|
|
1983
2120
|
);
|
|
1984
2121
|
CodeBlock.displayName = "CodeBlock";
|
|
1985
|
-
var FormField =
|
|
2122
|
+
var FormField = React28.forwardRef(
|
|
1986
2123
|
({ label, error, helperText, hint, required, id, className, children, ...props }, ref) => {
|
|
1987
|
-
const fieldId = id ||
|
|
2124
|
+
const fieldId = id || React28.useId();
|
|
1988
2125
|
const errorId = `${fieldId}-error`;
|
|
1989
2126
|
const helperId = `${fieldId}-helper`;
|
|
1990
|
-
const enhancedChildren =
|
|
1991
|
-
if (
|
|
2127
|
+
const enhancedChildren = React28.Children.map(children, (child) => {
|
|
2128
|
+
if (React28.isValidElement(child)) {
|
|
1992
2129
|
const childProps = child.props;
|
|
1993
|
-
return
|
|
2130
|
+
return React28.cloneElement(child, {
|
|
1994
2131
|
id: fieldId,
|
|
1995
2132
|
"aria-invalid": error ? "true" : void 0,
|
|
1996
2133
|
"aria-describedby": error ? errorId : helperText ? helperId : void 0,
|
|
@@ -2014,7 +2151,7 @@ var FormField = React27.forwardRef(
|
|
|
2014
2151
|
}
|
|
2015
2152
|
);
|
|
2016
2153
|
FormField.displayName = "FormField";
|
|
2017
|
-
var Table =
|
|
2154
|
+
var Table = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx(
|
|
2018
2155
|
"table",
|
|
2019
2156
|
{
|
|
2020
2157
|
ref,
|
|
@@ -2023,11 +2160,11 @@ var Table = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2023
2160
|
}
|
|
2024
2161
|
) }));
|
|
2025
2162
|
Table.displayName = "Table";
|
|
2026
|
-
var TableHeader =
|
|
2163
|
+
var TableHeader = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("", className), ...props }));
|
|
2027
2164
|
TableHeader.displayName = "TableHeader";
|
|
2028
|
-
var TableBody =
|
|
2165
|
+
var TableBody = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn("", className), ...props }));
|
|
2029
2166
|
TableBody.displayName = "TableBody";
|
|
2030
|
-
var TableFooter =
|
|
2167
|
+
var TableFooter = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2031
2168
|
"tfoot",
|
|
2032
2169
|
{
|
|
2033
2170
|
ref,
|
|
@@ -2036,7 +2173,7 @@ var TableFooter = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2036
2173
|
}
|
|
2037
2174
|
));
|
|
2038
2175
|
TableFooter.displayName = "TableFooter";
|
|
2039
|
-
var TableRow =
|
|
2176
|
+
var TableRow = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2040
2177
|
"tr",
|
|
2041
2178
|
{
|
|
2042
2179
|
ref,
|
|
@@ -2045,7 +2182,7 @@ var TableRow = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2045
2182
|
}
|
|
2046
2183
|
));
|
|
2047
2184
|
TableRow.displayName = "TableRow";
|
|
2048
|
-
var TableHead =
|
|
2185
|
+
var TableHead = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2049
2186
|
"th",
|
|
2050
2187
|
{
|
|
2051
2188
|
ref,
|
|
@@ -2057,7 +2194,7 @@ var TableHead = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
2057
2194
|
}
|
|
2058
2195
|
));
|
|
2059
2196
|
TableHead.displayName = "TableHead";
|
|
2060
|
-
var TableCell =
|
|
2197
|
+
var TableCell = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2061
2198
|
"td",
|
|
2062
2199
|
{
|
|
2063
2200
|
ref,
|
|
@@ -2066,7 +2203,7 @@ var TableCell = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
2066
2203
|
}
|
|
2067
2204
|
));
|
|
2068
2205
|
TableCell.displayName = "TableCell";
|
|
2069
|
-
var TableCaption =
|
|
2206
|
+
var TableCaption = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2070
2207
|
"caption",
|
|
2071
2208
|
{
|
|
2072
2209
|
ref,
|
|
@@ -2075,7 +2212,7 @@ var TableCaption = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2075
2212
|
}
|
|
2076
2213
|
));
|
|
2077
2214
|
TableCaption.displayName = "TableCaption";
|
|
2078
|
-
var Divider =
|
|
2215
|
+
var Divider = React28.forwardRef(
|
|
2079
2216
|
({ className, text, orientation = "horizontal", ...props }, ref) => {
|
|
2080
2217
|
if (orientation === "vertical") {
|
|
2081
2218
|
return /* @__PURE__ */ jsx(
|
|
@@ -2114,7 +2251,7 @@ var Divider = React27.forwardRef(
|
|
|
2114
2251
|
);
|
|
2115
2252
|
Divider.displayName = "Divider";
|
|
2116
2253
|
var Tabs = TabsPrimitive.Root;
|
|
2117
|
-
var TabsList =
|
|
2254
|
+
var TabsList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2118
2255
|
TabsPrimitive.List,
|
|
2119
2256
|
{
|
|
2120
2257
|
ref,
|
|
@@ -2126,7 +2263,7 @@ var TabsList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2126
2263
|
}
|
|
2127
2264
|
));
|
|
2128
2265
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
2129
|
-
var TabsTrigger =
|
|
2266
|
+
var TabsTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2130
2267
|
TabsPrimitive.Trigger,
|
|
2131
2268
|
{
|
|
2132
2269
|
ref,
|
|
@@ -2138,7 +2275,7 @@ var TabsTrigger = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2138
2275
|
}
|
|
2139
2276
|
));
|
|
2140
2277
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2141
|
-
var TabsContent =
|
|
2278
|
+
var TabsContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2142
2279
|
TabsPrimitive.Content,
|
|
2143
2280
|
{
|
|
2144
2281
|
ref,
|
|
@@ -2150,7 +2287,7 @@ var TabsContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2150
2287
|
}
|
|
2151
2288
|
));
|
|
2152
2289
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2153
|
-
var TabsListUnderline =
|
|
2290
|
+
var TabsListUnderline = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2154
2291
|
TabsPrimitive.List,
|
|
2155
2292
|
{
|
|
2156
2293
|
ref,
|
|
@@ -2162,12 +2299,14 @@ var TabsListUnderline = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2162
2299
|
}
|
|
2163
2300
|
));
|
|
2164
2301
|
TabsListUnderline.displayName = "TabsListUnderline";
|
|
2165
|
-
var TabsTriggerUnderline =
|
|
2302
|
+
var TabsTriggerUnderline = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2166
2303
|
TabsPrimitive.Trigger,
|
|
2167
2304
|
{
|
|
2168
2305
|
ref,
|
|
2169
2306
|
className: cn(
|
|
2170
|
-
"inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium text-muted-foreground transition-
|
|
2307
|
+
"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",
|
|
2308
|
+
"data-[state=active]:text-[var(--cyan)] data-[state=active]:border-[var(--cyan)] data-[state=active]:font-semibold",
|
|
2309
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
2171
2310
|
className
|
|
2172
2311
|
),
|
|
2173
2312
|
...props
|
|
@@ -2178,7 +2317,7 @@ var Dialog = SheetPrimitive.Root;
|
|
|
2178
2317
|
var DialogTrigger = SheetPrimitive.Trigger;
|
|
2179
2318
|
var DialogPortal = SheetPrimitive.Portal;
|
|
2180
2319
|
var DialogClose = SheetPrimitive.Close;
|
|
2181
|
-
var DialogOverlay =
|
|
2320
|
+
var DialogOverlay = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2182
2321
|
SheetPrimitive.Overlay,
|
|
2183
2322
|
{
|
|
2184
2323
|
ref,
|
|
@@ -2190,7 +2329,7 @@ var DialogOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2190
2329
|
}
|
|
2191
2330
|
));
|
|
2192
2331
|
DialogOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
2193
|
-
var DialogContent =
|
|
2332
|
+
var DialogContent = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
2194
2333
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
2195
2334
|
/* @__PURE__ */ jsxs(
|
|
2196
2335
|
SheetPrimitive.Content,
|
|
@@ -2240,7 +2379,7 @@ var DialogFooter = ({
|
|
|
2240
2379
|
}
|
|
2241
2380
|
);
|
|
2242
2381
|
DialogFooter.displayName = "DialogFooter";
|
|
2243
|
-
var DialogTitle =
|
|
2382
|
+
var DialogTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2244
2383
|
SheetPrimitive.Title,
|
|
2245
2384
|
{
|
|
2246
2385
|
ref,
|
|
@@ -2252,7 +2391,7 @@ var DialogTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2252
2391
|
}
|
|
2253
2392
|
));
|
|
2254
2393
|
DialogTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2255
|
-
var DialogDescription =
|
|
2394
|
+
var DialogDescription = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2256
2395
|
SheetPrimitive.Description,
|
|
2257
2396
|
{
|
|
2258
2397
|
ref,
|
|
@@ -2264,7 +2403,7 @@ DialogDescription.displayName = SheetPrimitive.Description.displayName;
|
|
|
2264
2403
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
2265
2404
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
2266
2405
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
2267
|
-
var AlertDialogOverlay =
|
|
2406
|
+
var AlertDialogOverlay = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2268
2407
|
AlertDialogPrimitive.Overlay,
|
|
2269
2408
|
{
|
|
2270
2409
|
className: cn(
|
|
@@ -2276,7 +2415,7 @@ var AlertDialogOverlay = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2276
2415
|
}
|
|
2277
2416
|
));
|
|
2278
2417
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
2279
|
-
var AlertDialogContent =
|
|
2418
|
+
var AlertDialogContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
2280
2419
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
2281
2420
|
/* @__PURE__ */ jsx(
|
|
2282
2421
|
AlertDialogPrimitive.Content,
|
|
@@ -2319,7 +2458,7 @@ var AlertDialogFooter = ({
|
|
|
2319
2458
|
}
|
|
2320
2459
|
);
|
|
2321
2460
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
2322
|
-
var AlertDialogTitle =
|
|
2461
|
+
var AlertDialogTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2323
2462
|
AlertDialogPrimitive.Title,
|
|
2324
2463
|
{
|
|
2325
2464
|
ref,
|
|
@@ -2328,7 +2467,7 @@ var AlertDialogTitle = React27.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2328
2467
|
}
|
|
2329
2468
|
));
|
|
2330
2469
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
2331
|
-
var AlertDialogDescription =
|
|
2470
|
+
var AlertDialogDescription = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2332
2471
|
AlertDialogPrimitive.Description,
|
|
2333
2472
|
{
|
|
2334
2473
|
ref,
|
|
@@ -2337,7 +2476,7 @@ var AlertDialogDescription = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
2337
2476
|
}
|
|
2338
2477
|
));
|
|
2339
2478
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
2340
|
-
var AlertDialogAction =
|
|
2479
|
+
var AlertDialogAction = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2341
2480
|
AlertDialogPrimitive.Action,
|
|
2342
2481
|
{
|
|
2343
2482
|
ref,
|
|
@@ -2346,7 +2485,7 @@ var AlertDialogAction = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2346
2485
|
}
|
|
2347
2486
|
));
|
|
2348
2487
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
2349
|
-
var AlertDialogCancel =
|
|
2488
|
+
var AlertDialogCancel = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2350
2489
|
AlertDialogPrimitive.Cancel,
|
|
2351
2490
|
{
|
|
2352
2491
|
ref,
|
|
@@ -2407,7 +2546,7 @@ var Popover = PopoverPrimitive.Root;
|
|
|
2407
2546
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2408
2547
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
2409
2548
|
var PopoverClose = PopoverPrimitive.Close;
|
|
2410
|
-
var PopoverContent =
|
|
2549
|
+
var PopoverContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2411
2550
|
PopoverPrimitive.Content,
|
|
2412
2551
|
{
|
|
2413
2552
|
ref,
|
|
@@ -2421,7 +2560,7 @@ var PopoverContent = React27.forwardRef(({ className, align = "center", sideOffs
|
|
|
2421
2560
|
}
|
|
2422
2561
|
) }));
|
|
2423
2562
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2424
|
-
var PopoverArrow =
|
|
2563
|
+
var PopoverArrow = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2425
2564
|
PopoverPrimitive.Arrow,
|
|
2426
2565
|
{
|
|
2427
2566
|
ref,
|
|
@@ -2433,7 +2572,7 @@ PopoverArrow.displayName = PopoverPrimitive.Arrow.displayName;
|
|
|
2433
2572
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
2434
2573
|
var Tooltip = TooltipPrimitive.Root;
|
|
2435
2574
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
2436
|
-
var TooltipContent =
|
|
2575
|
+
var TooltipContent = React28.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2437
2576
|
TooltipPrimitive.Content,
|
|
2438
2577
|
{
|
|
2439
2578
|
ref,
|
|
@@ -2446,7 +2585,7 @@ var TooltipContent = React27.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
2446
2585
|
}
|
|
2447
2586
|
) }));
|
|
2448
2587
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
2449
|
-
var TooltipArrow =
|
|
2588
|
+
var TooltipArrow = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2450
2589
|
TooltipPrimitive.Arrow,
|
|
2451
2590
|
{
|
|
2452
2591
|
ref,
|
|
@@ -2468,7 +2607,7 @@ function SimpleTooltip({
|
|
|
2468
2607
|
] }) });
|
|
2469
2608
|
}
|
|
2470
2609
|
var ToastProvider = ToastPrimitives.Provider;
|
|
2471
|
-
var ToastViewport =
|
|
2610
|
+
var ToastViewport = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2472
2611
|
ToastPrimitives.Viewport,
|
|
2473
2612
|
{
|
|
2474
2613
|
ref,
|
|
@@ -2497,7 +2636,7 @@ var toastVariants = cva(
|
|
|
2497
2636
|
}
|
|
2498
2637
|
}
|
|
2499
2638
|
);
|
|
2500
|
-
var Toast =
|
|
2639
|
+
var Toast = React28.forwardRef(({ className, variant, ...props }, ref) => {
|
|
2501
2640
|
return /* @__PURE__ */ jsx(
|
|
2502
2641
|
ToastPrimitives.Root,
|
|
2503
2642
|
{
|
|
@@ -2508,7 +2647,7 @@ var Toast = React27.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
2508
2647
|
);
|
|
2509
2648
|
});
|
|
2510
2649
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
2511
|
-
var ToastAction =
|
|
2650
|
+
var ToastAction = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2512
2651
|
ToastPrimitives.Action,
|
|
2513
2652
|
{
|
|
2514
2653
|
ref,
|
|
@@ -2520,7 +2659,7 @@ var ToastAction = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2520
2659
|
}
|
|
2521
2660
|
));
|
|
2522
2661
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
2523
|
-
var ToastClose =
|
|
2662
|
+
var ToastClose = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2524
2663
|
ToastPrimitives.Close,
|
|
2525
2664
|
{
|
|
2526
2665
|
ref,
|
|
@@ -2534,7 +2673,7 @@ var ToastClose = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2534
2673
|
}
|
|
2535
2674
|
));
|
|
2536
2675
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
2537
|
-
var ToastTitle =
|
|
2676
|
+
var ToastTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2538
2677
|
ToastPrimitives.Title,
|
|
2539
2678
|
{
|
|
2540
2679
|
ref,
|
|
@@ -2543,7 +2682,7 @@ var ToastTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2543
2682
|
}
|
|
2544
2683
|
));
|
|
2545
2684
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
2546
|
-
var ToastDescription =
|
|
2685
|
+
var ToastDescription = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2547
2686
|
ToastPrimitives.Description,
|
|
2548
2687
|
{
|
|
2549
2688
|
ref,
|
|
@@ -2682,8 +2821,8 @@ function toast({ ...props }) {
|
|
|
2682
2821
|
};
|
|
2683
2822
|
}
|
|
2684
2823
|
function useToast() {
|
|
2685
|
-
const [state, setState] =
|
|
2686
|
-
|
|
2824
|
+
const [state, setState] = React28.useState(memoryState);
|
|
2825
|
+
React28.useEffect(() => {
|
|
2687
2826
|
listeners.push(setState);
|
|
2688
2827
|
return () => {
|
|
2689
2828
|
const index = listeners.indexOf(setState);
|
|
@@ -2718,7 +2857,7 @@ function Toaster() {
|
|
|
2718
2857
|
/* @__PURE__ */ jsx(ToastViewport, {})
|
|
2719
2858
|
] });
|
|
2720
2859
|
}
|
|
2721
|
-
var Skeleton =
|
|
2860
|
+
var Skeleton = React28.forwardRef(
|
|
2722
2861
|
({ className, variant = "default", width, height, animate = true, style, ...props }, ref) => {
|
|
2723
2862
|
const variantStyles = {
|
|
2724
2863
|
default: "rounded-sm",
|
|
@@ -2746,7 +2885,7 @@ var Skeleton = React27.forwardRef(
|
|
|
2746
2885
|
}
|
|
2747
2886
|
);
|
|
2748
2887
|
Skeleton.displayName = "Skeleton";
|
|
2749
|
-
var SkeletonText =
|
|
2888
|
+
var SkeletonText = React28.forwardRef(
|
|
2750
2889
|
({ lines = 3, gap = 8, className, ...props }, ref) => {
|
|
2751
2890
|
return /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-2", className), style: { gap }, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsx(
|
|
2752
2891
|
Skeleton,
|
|
@@ -2760,7 +2899,7 @@ var SkeletonText = React27.forwardRef(
|
|
|
2760
2899
|
}
|
|
2761
2900
|
);
|
|
2762
2901
|
SkeletonText.displayName = "SkeletonText";
|
|
2763
|
-
var SkeletonCard =
|
|
2902
|
+
var SkeletonCard = React28.forwardRef(
|
|
2764
2903
|
({ hasHeader = true, hasAvatar = false, className, ...props }, ref) => {
|
|
2765
2904
|
return /* @__PURE__ */ jsxs(
|
|
2766
2905
|
"div",
|
|
@@ -2812,7 +2951,7 @@ function generatePagination(currentPage, totalPages, siblingCount) {
|
|
|
2812
2951
|
);
|
|
2813
2952
|
return [1, "ellipsis", ...middleRange, "ellipsis", totalPages];
|
|
2814
2953
|
}
|
|
2815
|
-
var Pagination =
|
|
2954
|
+
var Pagination = React28.forwardRef(
|
|
2816
2955
|
({
|
|
2817
2956
|
currentPage,
|
|
2818
2957
|
totalPages,
|
|
@@ -2889,7 +3028,7 @@ var Pagination = React27.forwardRef(
|
|
|
2889
3028
|
}
|
|
2890
3029
|
);
|
|
2891
3030
|
Pagination.displayName = "Pagination";
|
|
2892
|
-
var SimplePagination =
|
|
3031
|
+
var SimplePagination = React28.forwardRef(
|
|
2893
3032
|
({
|
|
2894
3033
|
currentPage,
|
|
2895
3034
|
totalPages,
|
|
@@ -2951,7 +3090,7 @@ var SimplePagination = React27.forwardRef(
|
|
|
2951
3090
|
}
|
|
2952
3091
|
);
|
|
2953
3092
|
SimplePagination.displayName = "SimplePagination";
|
|
2954
|
-
var StepProgress =
|
|
3093
|
+
var StepProgress = React28.forwardRef(
|
|
2955
3094
|
({
|
|
2956
3095
|
steps,
|
|
2957
3096
|
currentStep,
|
|
@@ -3071,7 +3210,7 @@ var StepProgress = React27.forwardRef(
|
|
|
3071
3210
|
}
|
|
3072
3211
|
);
|
|
3073
3212
|
StepProgress.displayName = "StepProgress";
|
|
3074
|
-
var StepDots =
|
|
3213
|
+
var StepDots = React28.forwardRef(
|
|
3075
3214
|
({ totalSteps, currentStep, onStepClick, className }, ref) => {
|
|
3076
3215
|
return /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center gap-2", className), children: Array.from({ length: totalSteps }, (_, i) => i + 1).map((step) => {
|
|
3077
3216
|
const isCompleted = step < currentStep;
|
|
@@ -3097,7 +3236,7 @@ var StepDots = React27.forwardRef(
|
|
|
3097
3236
|
}
|
|
3098
3237
|
);
|
|
3099
3238
|
StepDots.displayName = "StepDots";
|
|
3100
|
-
var Breadcrumbs =
|
|
3239
|
+
var Breadcrumbs = React28.forwardRef(
|
|
3101
3240
|
({
|
|
3102
3241
|
items,
|
|
3103
3242
|
LinkComponent,
|
|
@@ -3179,7 +3318,7 @@ var Breadcrumbs = React27.forwardRef(
|
|
|
3179
3318
|
}
|
|
3180
3319
|
);
|
|
3181
3320
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
3182
|
-
var BreadcrumbLink =
|
|
3321
|
+
var BreadcrumbLink = React28.forwardRef(
|
|
3183
3322
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3184
3323
|
"a",
|
|
3185
3324
|
{
|
|
@@ -3204,7 +3343,7 @@ var presetLabels = {
|
|
|
3204
3343
|
"this-year": "This year",
|
|
3205
3344
|
"custom": "Custom"
|
|
3206
3345
|
};
|
|
3207
|
-
var DateRangePicker =
|
|
3346
|
+
var DateRangePicker = React28.forwardRef(
|
|
3208
3347
|
({
|
|
3209
3348
|
value,
|
|
3210
3349
|
onChange,
|
|
@@ -3263,7 +3402,7 @@ var DateRangePicker = React27.forwardRef(
|
|
|
3263
3402
|
}
|
|
3264
3403
|
);
|
|
3265
3404
|
DateRangePicker.displayName = "DateRangePicker";
|
|
3266
|
-
var DateRangeSelect =
|
|
3405
|
+
var DateRangeSelect = React28.forwardRef(
|
|
3267
3406
|
({ value, onChange, presets = ["7d", "30d", "90d"], className }, ref) => {
|
|
3268
3407
|
return /* @__PURE__ */ jsx(
|
|
3269
3408
|
"select",
|
|
@@ -3315,7 +3454,7 @@ function getDateRangeFromPreset(preset) {
|
|
|
3315
3454
|
}
|
|
3316
3455
|
return { start, end };
|
|
3317
3456
|
}
|
|
3318
|
-
var SettingsNav =
|
|
3457
|
+
var SettingsNav = React28.forwardRef(
|
|
3319
3458
|
({ groups, LinkComponent, className, ...props }, ref) => {
|
|
3320
3459
|
const Link2 = LinkComponent || "a";
|
|
3321
3460
|
return /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-8", className), ...props, children: groups.map((group) => /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -3346,7 +3485,7 @@ var SettingsNav = React27.forwardRef(
|
|
|
3346
3485
|
}
|
|
3347
3486
|
);
|
|
3348
3487
|
SettingsNav.displayName = "SettingsNav";
|
|
3349
|
-
var SettingsNavLink =
|
|
3488
|
+
var SettingsNavLink = React28.forwardRef(
|
|
3350
3489
|
({ title, description, icon, href, LinkComponent, className, ...props }, ref) => {
|
|
3351
3490
|
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3352
3491
|
icon && /* @__PURE__ */ 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__ */ jsx("span", { className: "text-gray-600 group-hover:text-[var(--cyan)] transition-colors [&>svg]:w-5 [&>svg]:h-5", children: icon }) }),
|
|
@@ -3377,6 +3516,6 @@ SettingsNavLink.displayName = "SettingsNavLink";
|
|
|
3377
3516
|
// src/index.ts
|
|
3378
3517
|
__reExport(index_exports, icons_exports);
|
|
3379
3518
|
|
|
3380
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BreadcrumbLink, Breadcrumbs, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, ConfirmDialog, DateRangePicker, DateRangeSelect, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FormField, IconBox, Input, Label2 as Label, LabeledSwitch, Logo, MetricCard, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupCard, RadioGroupItem, RadioGroupOption, Select, Separator2 as Separator, SettingsNav, SettingsNavLink, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SimplePagination, SimpleTooltip, Skeleton, SkeletonCard, SkeletonText, Stat, StepDots, StepProgress, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsListUnderline, TabsTrigger, TabsTriggerUnderline, Tag, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastIcon, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, UsageBar, UsageChart, alertVariants, badgeVariants, buttonVariants, cn, getDateRangeFromPreset, iconBoxVariants, metricCardVariants, navigationMenuTriggerStyle, progressVariants, statVariants, tagVariants, toast, usageBarVariants, useToast, valueVariants };
|
|
3519
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BreadcrumbLink, Breadcrumbs, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, ConfirmDialog, DateRangePicker, DateRangeSelect, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ErrorState, FormField, IconBox, Input, Label2 as Label, LabeledSwitch, Logo, Metric, MetricCard, MetricLabel, MetricSubtext, MetricValue, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupCard, RadioGroupItem, RadioGroupOption, Select, Separator2 as Separator, SettingsNav, SettingsNavLink, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SimplePagination, SimpleTooltip, Skeleton, SkeletonCard, SkeletonText, Stat, StepDots, StepProgress, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsListUnderline, TabsTrigger, TabsTriggerUnderline, Tag, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastIcon, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, UsageBar, UsageChart, alertVariants, badgeVariants, buttonVariants, cn, getDateRangeFromPreset, iconBoxVariants, metricCardVariants, navigationMenuTriggerStyle, progressVariants, statVariants, tagVariants, toast, usageBarVariants, useToast, valueVariants };
|
|
3381
3520
|
//# sourceMappingURL=index.mjs.map
|
|
3382
3521
|
//# sourceMappingURL=index.mjs.map
|