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