@onesaz/ui 0.4.2 → 0.4.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/index.d.ts +16 -6
- package/dist/index.js +410 -307
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -864,31 +864,112 @@ Caption.displayName = "Caption";
|
|
|
864
864
|
|
|
865
865
|
// src/components/button.tsx
|
|
866
866
|
import * as React6 from "react";
|
|
867
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
867
|
+
import { Fragment, jsx as jsx6, jsxs } from "react/jsx-runtime";
|
|
868
868
|
var ButtonGroupContext = React6.createContext({});
|
|
869
869
|
var useButtonGroup = () => React6.useContext(ButtonGroupContext);
|
|
870
|
+
var colorMap = {
|
|
871
|
+
success: {
|
|
872
|
+
contained: "bg-success-500 text-white hover:bg-success-600 dark:bg-success-600 dark:hover:bg-success-700",
|
|
873
|
+
outline: "border border-success-500 bg-transparent text-success-600 hover:bg-success-50 dark:text-success-400 dark:hover:bg-success-950",
|
|
874
|
+
secondary: "bg-success-50 text-success-700 hover:bg-success-100 dark:bg-success-950 dark:text-success-300 dark:hover:bg-success-900",
|
|
875
|
+
ghost: "text-success-600 hover:bg-success-50 dark:text-success-400 dark:hover:bg-success-950",
|
|
876
|
+
link: "text-success-600 dark:text-success-400"
|
|
877
|
+
},
|
|
878
|
+
warning: {
|
|
879
|
+
contained: "bg-warning-500 text-white hover:bg-warning-600 dark:bg-warning-600 dark:hover:bg-warning-700",
|
|
880
|
+
outline: "border border-warning-500 bg-transparent text-warning-600 hover:bg-warning-50 dark:text-warning-400 dark:hover:bg-warning-950",
|
|
881
|
+
secondary: "bg-warning-50 text-warning-700 hover:bg-warning-100 dark:bg-warning-950 dark:text-warning-300 dark:hover:bg-warning-900",
|
|
882
|
+
ghost: "text-warning-600 hover:bg-warning-50 dark:text-warning-400 dark:hover:bg-warning-950",
|
|
883
|
+
link: "text-warning-600 dark:text-warning-400"
|
|
884
|
+
},
|
|
885
|
+
error: {
|
|
886
|
+
contained: "bg-error-500 text-white hover:bg-error-600 dark:bg-error-600 dark:hover:bg-error-700",
|
|
887
|
+
outline: "border border-error-500 bg-transparent text-error-600 hover:bg-error-50 dark:text-error-400 dark:hover:bg-error-950",
|
|
888
|
+
secondary: "bg-error-50 text-error-700 hover:bg-error-100 dark:bg-error-950 dark:text-error-300 dark:hover:bg-error-900",
|
|
889
|
+
ghost: "text-error-600 hover:bg-error-50 dark:text-error-400 dark:hover:bg-error-950",
|
|
890
|
+
link: "text-error-600 dark:text-error-400"
|
|
891
|
+
},
|
|
892
|
+
destructive: {
|
|
893
|
+
contained: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
894
|
+
outline: "border border-destructive bg-transparent text-destructive hover:bg-destructive/10",
|
|
895
|
+
secondary: "bg-destructive/10 text-destructive hover:bg-destructive/20",
|
|
896
|
+
ghost: "text-destructive hover:bg-destructive/10",
|
|
897
|
+
link: "text-destructive"
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
function variantToShape(variant) {
|
|
901
|
+
switch (variant) {
|
|
902
|
+
case "outline":
|
|
903
|
+
return "outline";
|
|
904
|
+
case "secondary":
|
|
905
|
+
return "secondary";
|
|
906
|
+
case "ghost":
|
|
907
|
+
return "ghost";
|
|
908
|
+
case "link":
|
|
909
|
+
return "link";
|
|
910
|
+
default:
|
|
911
|
+
return "contained";
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
var Spinner = ({ className }) => /* @__PURE__ */ jsxs(
|
|
915
|
+
"svg",
|
|
916
|
+
{
|
|
917
|
+
className: cn("animate-spin", className),
|
|
918
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
919
|
+
fill: "none",
|
|
920
|
+
viewBox: "0 0 24 24",
|
|
921
|
+
"aria-hidden": "true",
|
|
922
|
+
children: [
|
|
923
|
+
/* @__PURE__ */ jsx6("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
924
|
+
/* @__PURE__ */ jsx6(
|
|
925
|
+
"path",
|
|
926
|
+
{
|
|
927
|
+
className: "opacity-75",
|
|
928
|
+
fill: "currentColor",
|
|
929
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
|
|
930
|
+
}
|
|
931
|
+
)
|
|
932
|
+
]
|
|
933
|
+
}
|
|
934
|
+
);
|
|
870
935
|
var Button = React6.forwardRef(
|
|
871
|
-
({
|
|
936
|
+
({
|
|
937
|
+
className,
|
|
938
|
+
variant,
|
|
939
|
+
size,
|
|
940
|
+
color,
|
|
941
|
+
fullWidth = false,
|
|
942
|
+
disabled,
|
|
943
|
+
loading = false,
|
|
944
|
+
startIcon,
|
|
945
|
+
endIcon,
|
|
946
|
+
children,
|
|
947
|
+
...props
|
|
948
|
+
}, ref) => {
|
|
872
949
|
const groupCtx = useButtonGroup();
|
|
873
950
|
const resolvedVariant = variant ?? groupCtx.variant ?? "default";
|
|
874
|
-
const resolvedSize = size ??
|
|
951
|
+
const resolvedSize = size ?? "default";
|
|
952
|
+
const resolvedColor = color ?? groupCtx.color ?? "default";
|
|
875
953
|
const resolvedDisabled = disabled ?? groupCtx.disabled;
|
|
954
|
+
const colorOverride = resolvedColor !== "default" ? colorMap[resolvedColor][variantToShape(resolvedVariant)] : null;
|
|
955
|
+
const variantClasses3 = colorOverride ? null : {
|
|
956
|
+
"bg-accent text-accent-foreground hover:bg-accent-hover": resolvedVariant === "default",
|
|
957
|
+
"bg-destructive text-destructive-foreground hover:bg-destructive/90": resolvedVariant === "destructive",
|
|
958
|
+
"border border-input bg-background hover:bg-muted hover:text-foreground": resolvedVariant === "outline",
|
|
959
|
+
"bg-muted text-foreground hover:bg-muted/80": resolvedVariant === "secondary",
|
|
960
|
+
"hover:bg-muted hover:text-foreground": resolvedVariant === "ghost",
|
|
961
|
+
"text-accent underline-offset-4 hover:underline": resolvedVariant === "link"
|
|
962
|
+
};
|
|
963
|
+
const iconSize = resolvedSize === "sm" ? "h-3.5 w-3.5" : resolvedSize === "lg" ? "h-5 w-5" : "h-4 w-4";
|
|
876
964
|
return /* @__PURE__ */ jsx6(
|
|
877
965
|
"button",
|
|
878
966
|
{
|
|
879
|
-
disabled: resolvedDisabled,
|
|
967
|
+
disabled: resolvedDisabled || loading,
|
|
880
968
|
className: cn(
|
|
881
969
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer",
|
|
882
970
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
883
971
|
"disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",
|
|
884
|
-
|
|
885
|
-
"bg-accent text-accent-foreground hover:bg-accent-hover": resolvedVariant === "default",
|
|
886
|
-
"bg-destructive text-destructive-foreground hover:bg-destructive/90": resolvedVariant === "destructive",
|
|
887
|
-
"border border-input bg-background hover:bg-muted hover:text-foreground": resolvedVariant === "outline",
|
|
888
|
-
"bg-muted text-foreground hover:bg-muted/80": resolvedVariant === "secondary",
|
|
889
|
-
"hover:bg-muted hover:text-foreground": resolvedVariant === "ghost",
|
|
890
|
-
"text-accent underline-offset-4 hover:underline": resolvedVariant === "link"
|
|
891
|
-
},
|
|
972
|
+
colorOverride ?? variantClasses3,
|
|
892
973
|
{
|
|
893
974
|
"h-10 px-4 py-2": resolvedSize === "default",
|
|
894
975
|
"h-9 rounded-md px-3": resolvedSize === "sm",
|
|
@@ -896,10 +977,20 @@ var Button = React6.forwardRef(
|
|
|
896
977
|
"h-10 w-10": resolvedSize === "icon"
|
|
897
978
|
},
|
|
898
979
|
fullWidth && "w-full",
|
|
980
|
+
loading && "gap-2",
|
|
981
|
+
(startIcon || endIcon) && !loading && "gap-2",
|
|
899
982
|
className
|
|
900
983
|
),
|
|
901
984
|
ref,
|
|
902
|
-
...props
|
|
985
|
+
...props,
|
|
986
|
+
children: loading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
987
|
+
/* @__PURE__ */ jsx6(Spinner, { className: iconSize }),
|
|
988
|
+
children
|
|
989
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
990
|
+
startIcon && /* @__PURE__ */ jsx6("span", { className: cn("shrink-0", iconSize), children: startIcon }),
|
|
991
|
+
children,
|
|
992
|
+
endIcon && /* @__PURE__ */ jsx6("span", { className: cn("shrink-0", iconSize), children: endIcon })
|
|
993
|
+
] })
|
|
903
994
|
}
|
|
904
995
|
);
|
|
905
996
|
}
|
|
@@ -912,28 +1003,32 @@ var iconButtonSizes = {
|
|
|
912
1003
|
lg: "h-12 w-12"
|
|
913
1004
|
};
|
|
914
1005
|
var IconButton = React6.forwardRef(
|
|
915
|
-
({ className, variant = "ghost", size = "md", rounded = false, ...props }, ref) => {
|
|
1006
|
+
({ className, variant = "ghost", color = "default", size = "md", rounded = false, loading = false, ...props }, ref) => {
|
|
1007
|
+
const colorOverride = color !== "default" ? colorMap[color][variantToShape(variant)] : null;
|
|
1008
|
+
const variantClasses3 = colorOverride ? null : {
|
|
1009
|
+
"bg-accent text-accent-foreground hover:bg-accent-hover": variant === "default",
|
|
1010
|
+
"bg-destructive text-destructive-foreground hover:bg-destructive/90": variant === "destructive",
|
|
1011
|
+
"border border-input bg-background hover:bg-muted hover:text-foreground": variant === "outline",
|
|
1012
|
+
"bg-muted text-foreground hover:bg-muted/80": variant === "secondary",
|
|
1013
|
+
"hover:bg-muted hover:text-foreground": variant === "ghost",
|
|
1014
|
+
"text-accent underline-offset-4 hover:underline": variant === "link"
|
|
1015
|
+
};
|
|
916
1016
|
return /* @__PURE__ */ jsx6(
|
|
917
1017
|
"button",
|
|
918
1018
|
{
|
|
1019
|
+
disabled: loading,
|
|
919
1020
|
className: cn(
|
|
920
1021
|
"inline-flex items-center justify-center transition-colors cursor-pointer",
|
|
921
1022
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
922
1023
|
"disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",
|
|
923
|
-
|
|
924
|
-
"bg-accent text-accent-foreground hover:bg-accent-hover": variant === "default",
|
|
925
|
-
"bg-destructive text-destructive-foreground hover:bg-destructive/90": variant === "destructive",
|
|
926
|
-
"border border-input bg-background hover:bg-muted hover:text-foreground": variant === "outline",
|
|
927
|
-
"bg-muted text-foreground hover:bg-muted/80": variant === "secondary",
|
|
928
|
-
"hover:bg-muted hover:text-foreground": variant === "ghost",
|
|
929
|
-
"text-accent underline-offset-4 hover:underline": variant === "link"
|
|
930
|
-
},
|
|
1024
|
+
colorOverride ?? variantClasses3,
|
|
931
1025
|
iconButtonSizes[size],
|
|
932
1026
|
rounded ? "rounded-full" : "rounded-md",
|
|
933
1027
|
className
|
|
934
1028
|
),
|
|
935
1029
|
ref,
|
|
936
|
-
...props
|
|
1030
|
+
...props,
|
|
1031
|
+
children: loading ? /* @__PURE__ */ jsx6(Spinner, { className: "h-4 w-4" }) : props.children
|
|
937
1032
|
}
|
|
938
1033
|
);
|
|
939
1034
|
}
|
|
@@ -944,13 +1039,14 @@ var ButtonGroup = React6.forwardRef(
|
|
|
944
1039
|
className,
|
|
945
1040
|
variant,
|
|
946
1041
|
size,
|
|
1042
|
+
color,
|
|
947
1043
|
orientation = "horizontal",
|
|
948
1044
|
disabled,
|
|
949
1045
|
fullWidth = false,
|
|
950
1046
|
children,
|
|
951
1047
|
...props
|
|
952
1048
|
}, ref) => {
|
|
953
|
-
return /* @__PURE__ */ jsx6(ButtonGroupContext.Provider, { value: { variant, size, disabled }, children: /* @__PURE__ */ jsx6(
|
|
1049
|
+
return /* @__PURE__ */ jsx6(ButtonGroupContext.Provider, { value: { variant, size, color, disabled }, children: /* @__PURE__ */ jsx6(
|
|
954
1050
|
"div",
|
|
955
1051
|
{
|
|
956
1052
|
ref,
|
|
@@ -959,17 +1055,14 @@ var ButtonGroup = React6.forwardRef(
|
|
|
959
1055
|
"inline-flex",
|
|
960
1056
|
orientation === "vertical" && "flex-col",
|
|
961
1057
|
fullWidth && "flex w-full",
|
|
962
|
-
// Horizontal: collapse inner borders and strip inner radius
|
|
963
1058
|
orientation === "horizontal" && [
|
|
964
1059
|
"[&>*:not(:first-child)]:rounded-l-none",
|
|
965
1060
|
"[&>*:not(:last-child)]:rounded-r-none",
|
|
966
1061
|
"[&>*:not(:first-child)]:-ml-px",
|
|
967
|
-
// Bring hovered/focused button's border to front
|
|
968
1062
|
"[&>*]:relative",
|
|
969
1063
|
"[&>*:hover]:z-10",
|
|
970
1064
|
"[&>*:focus-visible]:z-10"
|
|
971
1065
|
],
|
|
972
|
-
// Vertical: collapse inner borders and strip inner radius
|
|
973
1066
|
orientation === "vertical" && [
|
|
974
1067
|
"[&>*:not(:first-child)]:rounded-t-none",
|
|
975
1068
|
"[&>*:not(:last-child)]:rounded-b-none",
|
|
@@ -990,7 +1083,7 @@ ButtonGroup.displayName = "ButtonGroup";
|
|
|
990
1083
|
|
|
991
1084
|
// src/components/input.tsx
|
|
992
1085
|
import * as React7 from "react";
|
|
993
|
-
import { jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
1086
|
+
import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
994
1087
|
var sizeClasses = {
|
|
995
1088
|
sm: "h-8 text-sm px-2.5",
|
|
996
1089
|
md: "h-10 text-sm px-3",
|
|
@@ -1009,7 +1102,7 @@ var Input = React7.forwardRef(
|
|
|
1009
1102
|
}, ref) => {
|
|
1010
1103
|
const hasAdornment = startAdornment || endAdornment;
|
|
1011
1104
|
if (hasAdornment) {
|
|
1012
|
-
return /* @__PURE__ */
|
|
1105
|
+
return /* @__PURE__ */ jsxs2(
|
|
1013
1106
|
"div",
|
|
1014
1107
|
{
|
|
1015
1108
|
className: cn(
|
|
@@ -1141,7 +1234,7 @@ var Label = React10.forwardRef(
|
|
|
1141
1234
|
Label.displayName = "Label";
|
|
1142
1235
|
|
|
1143
1236
|
// src/components/text-field.tsx
|
|
1144
|
-
import { Fragment, jsx as jsx11, jsxs as
|
|
1237
|
+
import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1145
1238
|
var TextField = React11.forwardRef(
|
|
1146
1239
|
({
|
|
1147
1240
|
className,
|
|
@@ -1179,17 +1272,17 @@ var TextField = React11.forwardRef(
|
|
|
1179
1272
|
endAdornment: inputSlotEnd,
|
|
1180
1273
|
...restInputSlotProps
|
|
1181
1274
|
} = InputProps ?? {};
|
|
1182
|
-
const resolvedStartAdornment = inputSlotStart ? /* @__PURE__ */
|
|
1275
|
+
const resolvedStartAdornment = inputSlotStart ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1183
1276
|
inputSlotStart,
|
|
1184
1277
|
startAdornment
|
|
1185
1278
|
] }) : startAdornment;
|
|
1186
|
-
const resolvedEndAdornment = inputSlotEnd ? /* @__PURE__ */
|
|
1279
|
+
const resolvedEndAdornment = inputSlotEnd ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1187
1280
|
endAdornment,
|
|
1188
1281
|
inputSlotEnd
|
|
1189
1282
|
] }) : endAdornment;
|
|
1190
1283
|
const resolvedSize = size === "small" ? "sm" : size === "medium" ? "md" : size;
|
|
1191
|
-
return /* @__PURE__ */
|
|
1192
|
-
label && /* @__PURE__ */
|
|
1284
|
+
return /* @__PURE__ */ jsxs3("div", { className: cn("grid gap-1.5", fullWidth && "w-full", className), children: [
|
|
1285
|
+
label && /* @__PURE__ */ jsxs3(
|
|
1193
1286
|
Label,
|
|
1194
1287
|
{
|
|
1195
1288
|
htmlFor: id,
|
|
@@ -1240,7 +1333,7 @@ TextField.displayName = "TextField";
|
|
|
1240
1333
|
|
|
1241
1334
|
// src/components/checkbox.tsx
|
|
1242
1335
|
import * as React12 from "react";
|
|
1243
|
-
import { jsx as jsx12, jsxs as
|
|
1336
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1244
1337
|
var Checkbox = React12.forwardRef(
|
|
1245
1338
|
({
|
|
1246
1339
|
className,
|
|
@@ -1269,7 +1362,7 @@ var Checkbox = React12.forwardRef(
|
|
|
1269
1362
|
onChange?.(e);
|
|
1270
1363
|
};
|
|
1271
1364
|
const active = isChecked || indeterminate;
|
|
1272
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ jsxs4(
|
|
1273
1366
|
"label",
|
|
1274
1367
|
{
|
|
1275
1368
|
className: cn(
|
|
@@ -1348,9 +1441,9 @@ Checkbox.displayName = "Checkbox";
|
|
|
1348
1441
|
|
|
1349
1442
|
// src/components/switch.tsx
|
|
1350
1443
|
import * as React13 from "react";
|
|
1351
|
-
import { jsx as jsx13, jsxs as
|
|
1444
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1352
1445
|
var Switch = React13.forwardRef(
|
|
1353
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1446
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxs5("label", { className: cn("relative inline-flex items-center cursor-pointer", className), children: [
|
|
1354
1447
|
/* @__PURE__ */ jsx13(
|
|
1355
1448
|
"input",
|
|
1356
1449
|
{
|
|
@@ -1382,7 +1475,7 @@ Switch.displayName = "Switch";
|
|
|
1382
1475
|
// src/components/radio.tsx
|
|
1383
1476
|
import * as React14 from "react";
|
|
1384
1477
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
1385
|
-
import { jsx as jsx14, jsxs as
|
|
1478
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1386
1479
|
var RadioGroupContext = React14.createContext({});
|
|
1387
1480
|
var RadioGroup = React14.forwardRef(({ className, orientation = "vertical", size = "md", ...props }, ref) => {
|
|
1388
1481
|
return /* @__PURE__ */ jsx14(RadioGroupContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx14(
|
|
@@ -1447,9 +1540,9 @@ var Radio = React14.forwardRef(({ className, label, description, id: idProp, val
|
|
|
1447
1540
|
if (!label && !description) {
|
|
1448
1541
|
return /* @__PURE__ */ jsx14(RadioGroupItem, { ref, value, size, ...props });
|
|
1449
1542
|
}
|
|
1450
|
-
return /* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ jsxs6("div", { className: cn("flex items-start gap-3", className), children: [
|
|
1451
1544
|
/* @__PURE__ */ jsx14(RadioGroupItem, { ref, id, value, size, ...props }),
|
|
1452
|
-
/* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ jsxs6("div", { className: "grid gap-1", children: [
|
|
1453
1546
|
label && /* @__PURE__ */ jsx14(
|
|
1454
1547
|
"label",
|
|
1455
1548
|
{
|
|
@@ -1466,7 +1559,7 @@ Radio.displayName = "Radio";
|
|
|
1466
1559
|
|
|
1467
1560
|
// src/components/form.tsx
|
|
1468
1561
|
import * as React15 from "react";
|
|
1469
|
-
import { jsx as jsx15, jsxs as
|
|
1562
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1470
1563
|
var FormControlContext = React15.createContext({});
|
|
1471
1564
|
function useFormControl() {
|
|
1472
1565
|
return React15.useContext(FormControlContext);
|
|
@@ -1515,7 +1608,7 @@ var FormLabel = React15.forwardRef(
|
|
|
1515
1608
|
const disabled = disabledProp ?? context.disabled;
|
|
1516
1609
|
const required = requiredProp ?? context.required;
|
|
1517
1610
|
const id = htmlFor ?? context.id;
|
|
1518
|
-
return /* @__PURE__ */
|
|
1611
|
+
return /* @__PURE__ */ jsxs7(
|
|
1519
1612
|
"label",
|
|
1520
1613
|
{
|
|
1521
1614
|
ref,
|
|
@@ -1581,7 +1674,7 @@ FormGroup.displayName = "FormGroup";
|
|
|
1581
1674
|
// src/components/slider.tsx
|
|
1582
1675
|
import * as React16 from "react";
|
|
1583
1676
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
1584
|
-
import { Fragment as
|
|
1677
|
+
import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1585
1678
|
var Slider = React16.forwardRef(({
|
|
1586
1679
|
className,
|
|
1587
1680
|
min = 0,
|
|
@@ -1610,7 +1703,7 @@ var Slider = React16.forwardRef(({
|
|
|
1610
1703
|
};
|
|
1611
1704
|
const currentValue = internalValue[0];
|
|
1612
1705
|
const displayValue = valueFormatter ? valueFormatter(currentValue) : currentValue.toString();
|
|
1613
|
-
const sliderElement = /* @__PURE__ */
|
|
1706
|
+
const sliderElement = /* @__PURE__ */ jsxs8(
|
|
1614
1707
|
SliderPrimitive.Root,
|
|
1615
1708
|
{
|
|
1616
1709
|
ref,
|
|
@@ -1642,19 +1735,19 @@ var Slider = React16.forwardRef(({
|
|
|
1642
1735
|
right: "flex items-center gap-3"
|
|
1643
1736
|
};
|
|
1644
1737
|
const orderMap = {
|
|
1645
|
-
top: /* @__PURE__ */
|
|
1738
|
+
top: /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
1646
1739
|
valueElement,
|
|
1647
1740
|
sliderElement
|
|
1648
1741
|
] }),
|
|
1649
|
-
bottom: /* @__PURE__ */
|
|
1742
|
+
bottom: /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
1650
1743
|
sliderElement,
|
|
1651
1744
|
valueElement
|
|
1652
1745
|
] }),
|
|
1653
|
-
left: /* @__PURE__ */
|
|
1746
|
+
left: /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
1654
1747
|
valueElement,
|
|
1655
1748
|
sliderElement
|
|
1656
1749
|
] }),
|
|
1657
|
-
right: /* @__PURE__ */
|
|
1750
|
+
right: /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
1658
1751
|
sliderElement,
|
|
1659
1752
|
valueElement
|
|
1660
1753
|
] })
|
|
@@ -1666,7 +1759,7 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
1666
1759
|
// src/components/range-slider.tsx
|
|
1667
1760
|
import * as React17 from "react";
|
|
1668
1761
|
import * as SliderPrimitive2 from "@radix-ui/react-slider";
|
|
1669
|
-
import { jsx as jsx17, jsxs as
|
|
1762
|
+
import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1670
1763
|
var RangeSlider = React17.forwardRef(({
|
|
1671
1764
|
className,
|
|
1672
1765
|
min = 0,
|
|
@@ -1701,18 +1794,18 @@ var RangeSlider = React17.forwardRef(({
|
|
|
1701
1794
|
};
|
|
1702
1795
|
const minValue = internalValue[0];
|
|
1703
1796
|
const maxValue = internalValue[1];
|
|
1704
|
-
return /* @__PURE__ */
|
|
1705
|
-
showValues && valuePosition === "top" && /* @__PURE__ */
|
|
1706
|
-
/* @__PURE__ */
|
|
1797
|
+
return /* @__PURE__ */ jsxs9("div", { className: cn("w-full", className), children: [
|
|
1798
|
+
showValues && valuePosition === "top" && /* @__PURE__ */ jsxs9("div", { className: "flex justify-between mb-2", children: [
|
|
1799
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col items-start", children: [
|
|
1707
1800
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: minLabel }),
|
|
1708
1801
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(minValue) })
|
|
1709
1802
|
] }),
|
|
1710
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col items-end", children: [
|
|
1711
1804
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: maxLabel }),
|
|
1712
1805
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(maxValue) })
|
|
1713
1806
|
] })
|
|
1714
1807
|
] }),
|
|
1715
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ jsxs9(
|
|
1716
1809
|
SliderPrimitive2.Root,
|
|
1717
1810
|
{
|
|
1718
1811
|
ref,
|
|
@@ -1745,17 +1838,17 @@ var RangeSlider = React17.forwardRef(({
|
|
|
1745
1838
|
]
|
|
1746
1839
|
}
|
|
1747
1840
|
),
|
|
1748
|
-
showValues && valuePosition === "bottom" && /* @__PURE__ */
|
|
1749
|
-
/* @__PURE__ */
|
|
1841
|
+
showValues && valuePosition === "bottom" && /* @__PURE__ */ jsxs9("div", { className: "flex justify-between mt-2", children: [
|
|
1842
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col items-start", children: [
|
|
1750
1843
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: minLabel }),
|
|
1751
1844
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(minValue) })
|
|
1752
1845
|
] }),
|
|
1753
|
-
/* @__PURE__ */
|
|
1846
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col items-end", children: [
|
|
1754
1847
|
/* @__PURE__ */ jsx17("span", { className: "text-xs text-muted-foreground", children: maxLabel }),
|
|
1755
1848
|
/* @__PURE__ */ jsx17("span", { className: "text-sm font-semibold text-accent", children: formatValue(maxValue) })
|
|
1756
1849
|
] })
|
|
1757
1850
|
] }),
|
|
1758
|
-
showValues && /* @__PURE__ */ jsx17("div", { className: "flex justify-center mt-1", children: /* @__PURE__ */
|
|
1851
|
+
showValues && /* @__PURE__ */ jsx17("div", { className: "flex justify-center mt-1", children: /* @__PURE__ */ jsxs9("span", { className: "text-xs text-muted-foreground", children: [
|
|
1759
1852
|
"Range: ",
|
|
1760
1853
|
formatValue(minValue),
|
|
1761
1854
|
" - ",
|
|
@@ -1881,7 +1974,7 @@ Badge.displayName = "Badge";
|
|
|
1881
1974
|
|
|
1882
1975
|
// src/components/chip.tsx
|
|
1883
1976
|
import * as React20 from "react";
|
|
1884
|
-
import { jsx as jsx20, jsxs as
|
|
1977
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1885
1978
|
var filledClasses = {
|
|
1886
1979
|
default: "bg-accent text-accent-foreground",
|
|
1887
1980
|
success: "bg-success-500 text-white dark:bg-success-600",
|
|
@@ -1965,7 +2058,7 @@ var Chip = React20.forwardRef(
|
|
|
1965
2058
|
}
|
|
1966
2059
|
onKeyDown?.(e);
|
|
1967
2060
|
};
|
|
1968
|
-
return /* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ jsxs10(
|
|
1969
2062
|
Component,
|
|
1970
2063
|
{
|
|
1971
2064
|
ref,
|
|
@@ -2041,7 +2134,7 @@ Separator.displayName = "Separator";
|
|
|
2041
2134
|
// src/components/accordion.tsx
|
|
2042
2135
|
import * as React22 from "react";
|
|
2043
2136
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
2044
|
-
import { jsx as jsx22, jsxs as
|
|
2137
|
+
import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2045
2138
|
var Accordion = AccordionPrimitive.Root;
|
|
2046
2139
|
var AccordionItem = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2047
2140
|
AccordionPrimitive.Item,
|
|
@@ -2055,7 +2148,7 @@ var AccordionItem = React22.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2055
2148
|
}
|
|
2056
2149
|
));
|
|
2057
2150
|
AccordionItem.displayName = "AccordionItem";
|
|
2058
|
-
var AccordionTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */
|
|
2151
|
+
var AccordionTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs11(
|
|
2059
2152
|
AccordionPrimitive.Trigger,
|
|
2060
2153
|
{
|
|
2061
2154
|
ref,
|
|
@@ -2105,7 +2198,7 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
2105
2198
|
// src/components/select/index.tsx
|
|
2106
2199
|
import * as React23 from "react";
|
|
2107
2200
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2108
|
-
import { jsx as jsx23, jsxs as
|
|
2201
|
+
import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2109
2202
|
var ChevronDownIcon = () => /* @__PURE__ */ jsx23(
|
|
2110
2203
|
"svg",
|
|
2111
2204
|
{
|
|
@@ -2154,7 +2247,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx23(
|
|
|
2154
2247
|
var Select = SelectPrimitive.Root;
|
|
2155
2248
|
var SelectGroup = SelectPrimitive.Group;
|
|
2156
2249
|
var SelectValue = SelectPrimitive.Value;
|
|
2157
|
-
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2250
|
+
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
2158
2251
|
SelectPrimitive.Trigger,
|
|
2159
2252
|
{
|
|
2160
2253
|
ref,
|
|
@@ -2202,7 +2295,7 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
|
|
|
2202
2295
|
}
|
|
2203
2296
|
));
|
|
2204
2297
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2205
|
-
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx23(SelectPrimitive.Portal, { children: /* @__PURE__ */
|
|
2298
|
+
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx23(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs12(
|
|
2206
2299
|
SelectPrimitive.Content,
|
|
2207
2300
|
{
|
|
2208
2301
|
ref,
|
|
@@ -2245,7 +2338,7 @@ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2245
2338
|
}
|
|
2246
2339
|
));
|
|
2247
2340
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2248
|
-
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2341
|
+
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
2249
2342
|
SelectPrimitive.Item,
|
|
2250
2343
|
{
|
|
2251
2344
|
ref,
|
|
@@ -2309,7 +2402,7 @@ NativeSelectOption.displayName = "NativeSelectOption";
|
|
|
2309
2402
|
// src/components/dialog/index.tsx
|
|
2310
2403
|
import * as React24 from "react";
|
|
2311
2404
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2312
|
-
import { jsx as jsx24, jsxs as
|
|
2405
|
+
import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2313
2406
|
var Dialog = DialogPrimitive.Root;
|
|
2314
2407
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2315
2408
|
var DialogPortal = DialogPrimitive.Portal;
|
|
@@ -2327,9 +2420,9 @@ var DialogOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2327
2420
|
}
|
|
2328
2421
|
));
|
|
2329
2422
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2330
|
-
var DialogContent = React24.forwardRef(({ className, children, hideCloseButton = false, size = "lg", ...props }, ref) => /* @__PURE__ */
|
|
2423
|
+
var DialogContent = React24.forwardRef(({ className, children, hideCloseButton = false, size = "lg", ...props }, ref) => /* @__PURE__ */ jsxs13(DialogPortal, { children: [
|
|
2331
2424
|
/* @__PURE__ */ jsx24(DialogOverlay, {}),
|
|
2332
|
-
/* @__PURE__ */
|
|
2425
|
+
/* @__PURE__ */ jsxs13(
|
|
2333
2426
|
DialogPrimitive.Content,
|
|
2334
2427
|
{
|
|
2335
2428
|
ref,
|
|
@@ -2350,8 +2443,8 @@ var DialogContent = React24.forwardRef(({ className, children, hideCloseButton =
|
|
|
2350
2443
|
...props,
|
|
2351
2444
|
children: [
|
|
2352
2445
|
children,
|
|
2353
|
-
!hideCloseButton && /* @__PURE__ */
|
|
2354
|
-
/* @__PURE__ */
|
|
2446
|
+
!hideCloseButton && /* @__PURE__ */ jsxs13(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
2447
|
+
/* @__PURE__ */ jsxs13(
|
|
2355
2448
|
"svg",
|
|
2356
2449
|
{
|
|
2357
2450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2432,7 +2525,7 @@ var DialogNamespace = Object.assign(Dialog, {
|
|
|
2432
2525
|
// src/components/alert-dialog.tsx
|
|
2433
2526
|
import * as React25 from "react";
|
|
2434
2527
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
2435
|
-
import { jsx as jsx25, jsxs as
|
|
2528
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2436
2529
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
2437
2530
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
2438
2531
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
@@ -2473,23 +2566,23 @@ var variantStyles = {
|
|
|
2473
2566
|
}
|
|
2474
2567
|
};
|
|
2475
2568
|
var VariantIcons = {
|
|
2476
|
-
default: ({ className }) => /* @__PURE__ */
|
|
2569
|
+
default: ({ className }) => /* @__PURE__ */ jsxs14("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2477
2570
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2478
2571
|
/* @__PURE__ */ jsx25("path", { d: "M12 16v-4M12 8h.01" })
|
|
2479
2572
|
] }),
|
|
2480
|
-
destructive: ({ className }) => /* @__PURE__ */
|
|
2573
|
+
destructive: ({ className }) => /* @__PURE__ */ jsxs14("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2481
2574
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2482
2575
|
/* @__PURE__ */ jsx25("path", { d: "m15 9-6 6M9 9l6 6" })
|
|
2483
2576
|
] }),
|
|
2484
|
-
success: ({ className }) => /* @__PURE__ */
|
|
2577
|
+
success: ({ className }) => /* @__PURE__ */ jsxs14("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2485
2578
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2486
2579
|
/* @__PURE__ */ jsx25("path", { d: "m9 12 2 2 4-4" })
|
|
2487
2580
|
] }),
|
|
2488
|
-
warning: ({ className }) => /* @__PURE__ */
|
|
2581
|
+
warning: ({ className }) => /* @__PURE__ */ jsxs14("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2489
2582
|
/* @__PURE__ */ jsx25("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
2490
2583
|
/* @__PURE__ */ jsx25("path", { d: "M12 9v4M12 17h.01" })
|
|
2491
2584
|
] }),
|
|
2492
|
-
info: ({ className }) => /* @__PURE__ */
|
|
2585
|
+
info: ({ className }) => /* @__PURE__ */ jsxs14("svg", { className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2493
2586
|
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2494
2587
|
/* @__PURE__ */ jsx25("path", { d: "M12 16v-4M12 8h.01" })
|
|
2495
2588
|
] })
|
|
@@ -2497,7 +2590,7 @@ var VariantIcons = {
|
|
|
2497
2590
|
var AlertDialogContent = React25.forwardRef(({ className, variant = "default", showIcon = true, children, ...props }, ref) => {
|
|
2498
2591
|
const IconComponent = VariantIcons[variant];
|
|
2499
2592
|
const styles = variantStyles[variant];
|
|
2500
|
-
return /* @__PURE__ */
|
|
2593
|
+
return /* @__PURE__ */ jsxs14(AlertDialogPortal, { children: [
|
|
2501
2594
|
/* @__PURE__ */ jsx25(AlertDialogOverlay, {}),
|
|
2502
2595
|
/* @__PURE__ */ jsx25(
|
|
2503
2596
|
AlertDialogPrimitive.Content,
|
|
@@ -2516,7 +2609,7 @@ var AlertDialogContent = React25.forwardRef(({ className, variant = "default", s
|
|
|
2516
2609
|
className
|
|
2517
2610
|
),
|
|
2518
2611
|
...props,
|
|
2519
|
-
children: /* @__PURE__ */
|
|
2612
|
+
children: /* @__PURE__ */ jsxs14("div", { className: "flex gap-4 items-start", children: [
|
|
2520
2613
|
showIcon && /* @__PURE__ */ jsx25("div", { className: cn("shrink-0 mt-1", styles.icon), children: /* @__PURE__ */ jsx25(IconComponent, { className: "h-6 w-6" }) }),
|
|
2521
2614
|
/* @__PURE__ */ jsx25("div", { className: "flex-1", children })
|
|
2522
2615
|
] })
|
|
@@ -2606,7 +2699,7 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
|
2606
2699
|
// src/components/spinner.tsx
|
|
2607
2700
|
import * as React26 from "react";
|
|
2608
2701
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2609
|
-
var
|
|
2702
|
+
var Spinner2 = React26.forwardRef(
|
|
2610
2703
|
({ className, size = "default", ...props }, ref) => {
|
|
2611
2704
|
return /* @__PURE__ */ jsx26(
|
|
2612
2705
|
"div",
|
|
@@ -2630,11 +2723,11 @@ var Spinner = React26.forwardRef(
|
|
|
2630
2723
|
);
|
|
2631
2724
|
}
|
|
2632
2725
|
);
|
|
2633
|
-
|
|
2726
|
+
Spinner2.displayName = "Spinner";
|
|
2634
2727
|
|
|
2635
2728
|
// src/components/alert.tsx
|
|
2636
2729
|
import * as React27 from "react";
|
|
2637
|
-
import { jsx as jsx27, jsxs as
|
|
2730
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2638
2731
|
var variantConfig = {
|
|
2639
2732
|
default: {
|
|
2640
2733
|
root: "bg-accent/10",
|
|
@@ -2657,7 +2750,7 @@ var variantConfig = {
|
|
|
2657
2750
|
iconColor: "text-error-600"
|
|
2658
2751
|
}
|
|
2659
2752
|
};
|
|
2660
|
-
var InfoIcon = () => /* @__PURE__ */
|
|
2753
|
+
var InfoIcon = () => /* @__PURE__ */ jsxs15(
|
|
2661
2754
|
"svg",
|
|
2662
2755
|
{
|
|
2663
2756
|
viewBox: "0 0 24 24",
|
|
@@ -2673,7 +2766,7 @@ var InfoIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2673
2766
|
]
|
|
2674
2767
|
}
|
|
2675
2768
|
);
|
|
2676
|
-
var CheckIcon2 = () => /* @__PURE__ */
|
|
2769
|
+
var CheckIcon2 = () => /* @__PURE__ */ jsxs15(
|
|
2677
2770
|
"svg",
|
|
2678
2771
|
{
|
|
2679
2772
|
viewBox: "0 0 24 24",
|
|
@@ -2689,7 +2782,7 @@ var CheckIcon2 = () => /* @__PURE__ */ jsxs14(
|
|
|
2689
2782
|
]
|
|
2690
2783
|
}
|
|
2691
2784
|
);
|
|
2692
|
-
var WarningIcon = () => /* @__PURE__ */
|
|
2785
|
+
var WarningIcon = () => /* @__PURE__ */ jsxs15(
|
|
2693
2786
|
"svg",
|
|
2694
2787
|
{
|
|
2695
2788
|
viewBox: "0 0 24 24",
|
|
@@ -2705,7 +2798,7 @@ var WarningIcon = () => /* @__PURE__ */ jsxs14(
|
|
|
2705
2798
|
]
|
|
2706
2799
|
}
|
|
2707
2800
|
);
|
|
2708
|
-
var ErrorIcon = () => /* @__PURE__ */
|
|
2801
|
+
var ErrorIcon = () => /* @__PURE__ */ jsxs15(
|
|
2709
2802
|
"svg",
|
|
2710
2803
|
{
|
|
2711
2804
|
viewBox: "0 0 24 24",
|
|
@@ -2744,7 +2837,7 @@ var Alert = React27.forwardRef(
|
|
|
2744
2837
|
({ className, variant = "default", onClose, icon, children, ...props }, ref) => {
|
|
2745
2838
|
const cfg = variantConfig[variant];
|
|
2746
2839
|
const resolvedIcon = icon === null ? null : icon ?? defaultIcons[variant];
|
|
2747
|
-
return /* @__PURE__ */
|
|
2840
|
+
return /* @__PURE__ */ jsxs15(
|
|
2748
2841
|
"div",
|
|
2749
2842
|
{
|
|
2750
2843
|
ref,
|
|
@@ -2803,7 +2896,7 @@ AlertDescription.displayName = "AlertDescription";
|
|
|
2803
2896
|
// src/components/tabs.tsx
|
|
2804
2897
|
import * as React28 from "react";
|
|
2805
2898
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2806
|
-
import { jsx as jsx28, jsxs as
|
|
2899
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2807
2900
|
var Tabs = TabsPrimitive.Root;
|
|
2808
2901
|
var TabsList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
2809
2902
|
TabsPrimitive.List,
|
|
@@ -2860,7 +2953,7 @@ var UnderlineTabsList = React28.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2860
2953
|
}
|
|
2861
2954
|
));
|
|
2862
2955
|
UnderlineTabsList.displayName = "UnderlineTabsList";
|
|
2863
|
-
var UnderlineTabsTrigger = React28.forwardRef(({ className, children, count, ...props }, ref) => /* @__PURE__ */
|
|
2956
|
+
var UnderlineTabsTrigger = React28.forwardRef(({ className, children, count, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
2864
2957
|
TabsPrimitive.Trigger,
|
|
2865
2958
|
{
|
|
2866
2959
|
ref,
|
|
@@ -2923,7 +3016,7 @@ var VerticalTabsList = React28.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2923
3016
|
}
|
|
2924
3017
|
));
|
|
2925
3018
|
VerticalTabsList.displayName = "VerticalTabsList";
|
|
2926
|
-
var VerticalTabsTrigger = React28.forwardRef(({ className, children, icon, ...props }, ref) => /* @__PURE__ */
|
|
3019
|
+
var VerticalTabsTrigger = React28.forwardRef(({ className, children, icon, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
2927
3020
|
TabsPrimitive.Trigger,
|
|
2928
3021
|
{
|
|
2929
3022
|
ref,
|
|
@@ -2976,7 +3069,7 @@ VerticalTabsGroupLabel.displayName = "VerticalTabsGroupLabel";
|
|
|
2976
3069
|
// src/components/tooltip.tsx
|
|
2977
3070
|
import * as React29 from "react";
|
|
2978
3071
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2979
|
-
import { Fragment as
|
|
3072
|
+
import { Fragment as Fragment4, jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2980
3073
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
2981
3074
|
var TooltipRoot = TooltipPrimitive.Root;
|
|
2982
3075
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
@@ -2990,7 +3083,7 @@ var TooltipArrow = React29.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2990
3083
|
}
|
|
2991
3084
|
));
|
|
2992
3085
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
2993
|
-
var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, showArrow = false, children, ...props }, ref) => /* @__PURE__ */
|
|
3086
|
+
var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, showArrow = false, children, ...props }, ref) => /* @__PURE__ */ jsxs17(
|
|
2994
3087
|
TooltipPrimitive.Content,
|
|
2995
3088
|
{
|
|
2996
3089
|
ref,
|
|
@@ -3027,9 +3120,9 @@ var Tooltip = React29.forwardRef(
|
|
|
3027
3120
|
className
|
|
3028
3121
|
}, ref) => {
|
|
3029
3122
|
if (disabled) {
|
|
3030
|
-
return /* @__PURE__ */ jsx29(
|
|
3123
|
+
return /* @__PURE__ */ jsx29(Fragment4, { children });
|
|
3031
3124
|
}
|
|
3032
|
-
return /* @__PURE__ */ jsx29(TooltipProvider, { children: /* @__PURE__ */
|
|
3125
|
+
return /* @__PURE__ */ jsx29(TooltipProvider, { children: /* @__PURE__ */ jsxs17(
|
|
3033
3126
|
TooltipRoot,
|
|
3034
3127
|
{
|
|
3035
3128
|
delayDuration,
|
|
@@ -3056,7 +3149,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
3056
3149
|
|
|
3057
3150
|
// src/components/progress.tsx
|
|
3058
3151
|
import * as React30 from "react";
|
|
3059
|
-
import { jsx as jsx30, jsxs as
|
|
3152
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3060
3153
|
var linearSizeClasses = {
|
|
3061
3154
|
sm: "h-1",
|
|
3062
3155
|
md: "h-2",
|
|
@@ -3081,7 +3174,7 @@ var LinearProgress = React30.forwardRef(
|
|
|
3081
3174
|
...props
|
|
3082
3175
|
}, ref) => {
|
|
3083
3176
|
const isIndeterminate = value === void 0;
|
|
3084
|
-
return /* @__PURE__ */
|
|
3177
|
+
return /* @__PURE__ */ jsxs18("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
3085
3178
|
/* @__PURE__ */ jsx30(
|
|
3086
3179
|
"div",
|
|
3087
3180
|
{
|
|
@@ -3142,7 +3235,7 @@ var CircularProgress = React30.forwardRef(
|
|
|
3142
3235
|
const radius = (sizeValue - thickness) / 2;
|
|
3143
3236
|
const circumference = 2 * Math.PI * radius;
|
|
3144
3237
|
const strokeDashoffset = isIndeterminate ? 0 : circumference - Math.min(100, Math.max(0, value)) / 100 * circumference;
|
|
3145
|
-
return /* @__PURE__ */
|
|
3238
|
+
return /* @__PURE__ */ jsxs18(
|
|
3146
3239
|
"div",
|
|
3147
3240
|
{
|
|
3148
3241
|
ref,
|
|
@@ -3154,7 +3247,7 @@ var CircularProgress = React30.forwardRef(
|
|
|
3154
3247
|
"aria-valuemax": 100,
|
|
3155
3248
|
...props,
|
|
3156
3249
|
children: [
|
|
3157
|
-
/* @__PURE__ */
|
|
3250
|
+
/* @__PURE__ */ jsxs18(
|
|
3158
3251
|
"svg",
|
|
3159
3252
|
{
|
|
3160
3253
|
className: cn(isIndeterminate && "animate-spin"),
|
|
@@ -3306,7 +3399,7 @@ var TableNamespace = Object.assign(Table, {
|
|
|
3306
3399
|
|
|
3307
3400
|
// src/components/avatar.tsx
|
|
3308
3401
|
import * as React32 from "react";
|
|
3309
|
-
import { jsx as jsx32, jsxs as
|
|
3402
|
+
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3310
3403
|
var sizeClasses4 = {
|
|
3311
3404
|
xs: "h-6 w-6 text-xs",
|
|
3312
3405
|
sm: "h-8 w-8 text-sm",
|
|
@@ -3361,7 +3454,7 @@ var Avatar = React32.forwardRef(
|
|
|
3361
3454
|
}
|
|
3362
3455
|
) : fallbackElement ? fallbackElement : fallback ? /* @__PURE__ */ jsx32("span", { className: "font-medium", children: getInitials(fallback) }) : (
|
|
3363
3456
|
// Default user icon
|
|
3364
|
-
/* @__PURE__ */
|
|
3457
|
+
/* @__PURE__ */ jsxs19(
|
|
3365
3458
|
"svg",
|
|
3366
3459
|
{
|
|
3367
3460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3389,7 +3482,7 @@ var AvatarGroup = React32.forwardRef(
|
|
|
3389
3482
|
const childArray = React32.Children.toArray(children);
|
|
3390
3483
|
const visibleChildren = max ? childArray.slice(0, max) : childArray;
|
|
3391
3484
|
const remainingCount = max ? childArray.length - max : 0;
|
|
3392
|
-
return /* @__PURE__ */
|
|
3485
|
+
return /* @__PURE__ */ jsxs19(
|
|
3393
3486
|
"div",
|
|
3394
3487
|
{
|
|
3395
3488
|
ref,
|
|
@@ -3425,7 +3518,7 @@ AvatarGroup.displayName = "AvatarGroup";
|
|
|
3425
3518
|
|
|
3426
3519
|
// src/components/skeleton.tsx
|
|
3427
3520
|
import * as React33 from "react";
|
|
3428
|
-
import { jsx as jsx33, jsxs as
|
|
3521
|
+
import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3429
3522
|
var Skeleton = React33.forwardRef(
|
|
3430
3523
|
({
|
|
3431
3524
|
variant = "text",
|
|
@@ -3531,7 +3624,7 @@ var SkeletonCard = React33.forwardRef(
|
|
|
3531
3624
|
className,
|
|
3532
3625
|
...props
|
|
3533
3626
|
}, ref) => {
|
|
3534
|
-
return /* @__PURE__ */
|
|
3627
|
+
return /* @__PURE__ */ jsxs20(
|
|
3535
3628
|
"div",
|
|
3536
3629
|
{
|
|
3537
3630
|
ref,
|
|
@@ -3546,7 +3639,7 @@ var SkeletonCard = React33.forwardRef(
|
|
|
3546
3639
|
animation
|
|
3547
3640
|
}
|
|
3548
3641
|
),
|
|
3549
|
-
/* @__PURE__ */
|
|
3642
|
+
/* @__PURE__ */ jsxs20("div", { className: "space-y-2", children: [
|
|
3550
3643
|
/* @__PURE__ */ jsx33(Skeleton, { variant: "text", width: "60%", animation }),
|
|
3551
3644
|
/* @__PURE__ */ jsx33(SkeletonText, { lines, animation })
|
|
3552
3645
|
] })
|
|
@@ -3581,7 +3674,7 @@ SkeletonTableRow.displayName = "SkeletonTableRow";
|
|
|
3581
3674
|
|
|
3582
3675
|
// src/components/pagination.tsx
|
|
3583
3676
|
import * as React34 from "react";
|
|
3584
|
-
import { jsx as jsx34, jsxs as
|
|
3677
|
+
import { jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3585
3678
|
var Pagination = React34.forwardRef(
|
|
3586
3679
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3587
3680
|
"nav",
|
|
@@ -3619,7 +3712,7 @@ var PaginationLink = React34.forwardRef(
|
|
|
3619
3712
|
)
|
|
3620
3713
|
);
|
|
3621
3714
|
PaginationLink.displayName = "PaginationLink";
|
|
3622
|
-
var PaginationPrevious = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3715
|
+
var PaginationPrevious = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
3623
3716
|
Button,
|
|
3624
3717
|
{
|
|
3625
3718
|
ref,
|
|
@@ -3649,7 +3742,7 @@ var PaginationPrevious = React34.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3649
3742
|
}
|
|
3650
3743
|
));
|
|
3651
3744
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
3652
|
-
var PaginationNext = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3745
|
+
var PaginationNext = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
3653
3746
|
Button,
|
|
3654
3747
|
{
|
|
3655
3748
|
ref,
|
|
@@ -3679,7 +3772,7 @@ var PaginationNext = React34.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3679
3772
|
}
|
|
3680
3773
|
));
|
|
3681
3774
|
PaginationNext.displayName = "PaginationNext";
|
|
3682
|
-
var PaginationEllipsis = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3775
|
+
var PaginationEllipsis = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
3683
3776
|
"span",
|
|
3684
3777
|
{
|
|
3685
3778
|
ref,
|
|
@@ -3687,7 +3780,7 @@ var PaginationEllipsis = React34.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3687
3780
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3688
3781
|
...props,
|
|
3689
3782
|
children: [
|
|
3690
|
-
/* @__PURE__ */
|
|
3783
|
+
/* @__PURE__ */ jsxs21(
|
|
3691
3784
|
"svg",
|
|
3692
3785
|
{
|
|
3693
3786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3724,7 +3817,7 @@ var PaginationNamespace = Object.assign(Pagination, {
|
|
|
3724
3817
|
// src/components/combobox/index.tsx
|
|
3725
3818
|
import * as React35 from "react";
|
|
3726
3819
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
3727
|
-
import { Fragment as
|
|
3820
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3728
3821
|
function isMultipleProps(props) {
|
|
3729
3822
|
return props.multiple === true;
|
|
3730
3823
|
}
|
|
@@ -3755,7 +3848,7 @@ function OptionItem({
|
|
|
3755
3848
|
isMultiple,
|
|
3756
3849
|
onSelect
|
|
3757
3850
|
}) {
|
|
3758
|
-
return /* @__PURE__ */
|
|
3851
|
+
return /* @__PURE__ */ jsxs22(
|
|
3759
3852
|
"button",
|
|
3760
3853
|
{
|
|
3761
3854
|
type: "button",
|
|
@@ -3809,7 +3902,7 @@ function OptionItem({
|
|
|
3809
3902
|
children: /* @__PURE__ */ jsx35("polyline", { points: "20 6 9 17 4 12" })
|
|
3810
3903
|
}
|
|
3811
3904
|
) }),
|
|
3812
|
-
option.label
|
|
3905
|
+
/* @__PURE__ */ jsx35("span", { className: "break-all", children: option.label })
|
|
3813
3906
|
]
|
|
3814
3907
|
}
|
|
3815
3908
|
);
|
|
@@ -3988,8 +4081,8 @@ var Combobox = React35.forwardRef(
|
|
|
3988
4081
|
const maxDisplayItems = isMultiple ? props.maxDisplayItems ?? 3 : 0;
|
|
3989
4082
|
const displayedOptions = selectedOptions.slice(0, maxDisplayItems);
|
|
3990
4083
|
const remainingCount = selectedOptions.length - maxDisplayItems;
|
|
3991
|
-
return /* @__PURE__ */
|
|
3992
|
-
/* @__PURE__ */
|
|
4084
|
+
return /* @__PURE__ */ jsxs22("div", { ref: containerRef, className: "relative", children: [
|
|
4085
|
+
/* @__PURE__ */ jsxs22(
|
|
3993
4086
|
"button",
|
|
3994
4087
|
{
|
|
3995
4088
|
type: "button",
|
|
@@ -3998,22 +4091,22 @@ var Combobox = React35.forwardRef(
|
|
|
3998
4091
|
disabled,
|
|
3999
4092
|
onClick: () => setOpen(!open),
|
|
4000
4093
|
className: cn(
|
|
4001
|
-
"flex min-h-10 w-full
|
|
4094
|
+
"flex min-h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-left",
|
|
4002
4095
|
"ring-offset-background",
|
|
4003
4096
|
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
4004
4097
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
4005
|
-
isMultiple && selectedOptions.length > 0 && "h-auto",
|
|
4098
|
+
isMultiple && selectedOptions.length > 0 || !isMultiple && singleValue ? "h-auto items-start justify-between" : "items-center justify-between",
|
|
4006
4099
|
className
|
|
4007
4100
|
),
|
|
4008
4101
|
children: [
|
|
4009
4102
|
startAdornment && /* @__PURE__ */ jsx35(Adornment, { onClick: onStartAdornmentClick, className: "mr-1.5", children: startAdornment }),
|
|
4010
|
-
isMultiple ? /* @__PURE__ */ jsx35("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: selectedOptions.length === 0 ? /* @__PURE__ */ jsx35("span", { className: "text-muted-foreground", children: placeholder }) : /* @__PURE__ */
|
|
4011
|
-
displayedOptions.map((option) => /* @__PURE__ */
|
|
4103
|
+
isMultiple ? /* @__PURE__ */ jsx35("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: selectedOptions.length === 0 ? /* @__PURE__ */ jsx35("span", { className: "text-muted-foreground", children: placeholder }) : /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
4104
|
+
displayedOptions.map((option) => /* @__PURE__ */ jsxs22(
|
|
4012
4105
|
"span",
|
|
4013
4106
|
{
|
|
4014
4107
|
className: "inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs font-medium",
|
|
4015
4108
|
children: [
|
|
4016
|
-
getOptionLabel(option),
|
|
4109
|
+
/* @__PURE__ */ jsx35("span", { className: "break-all", children: getOptionLabel(option) }),
|
|
4017
4110
|
/* @__PURE__ */ jsx35(
|
|
4018
4111
|
"button",
|
|
4019
4112
|
{
|
|
@@ -4041,13 +4134,13 @@ var Combobox = React35.forwardRef(
|
|
|
4041
4134
|
},
|
|
4042
4135
|
getOptionValue(option)
|
|
4043
4136
|
)),
|
|
4044
|
-
remainingCount > 0 && /* @__PURE__ */
|
|
4137
|
+
remainingCount > 0 && /* @__PURE__ */ jsxs22("span", { className: "text-xs text-muted-foreground", children: [
|
|
4045
4138
|
"+",
|
|
4046
4139
|
remainingCount,
|
|
4047
4140
|
" more"
|
|
4048
4141
|
] })
|
|
4049
|
-
] }) }) : /* @__PURE__ */ jsx35("span", { className: cn("flex-1", !singleValue && "text-muted-foreground"), children: singleValue ? getOptionLabel(singleValue) : placeholder }),
|
|
4050
|
-
/* @__PURE__ */
|
|
4142
|
+
] }) }) : /* @__PURE__ */ jsx35("span", { className: cn("flex-1 break-all", !singleValue && "text-muted-foreground"), children: singleValue ? getOptionLabel(singleValue) : placeholder }),
|
|
4143
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
4051
4144
|
isMultiple && selectedOptions.length > 0 && /* @__PURE__ */ jsx35(
|
|
4052
4145
|
"button",
|
|
4053
4146
|
{
|
|
@@ -4121,9 +4214,9 @@ var Combobox = React35.forwardRef(
|
|
|
4121
4214
|
]
|
|
4122
4215
|
}
|
|
4123
4216
|
),
|
|
4124
|
-
open && /* @__PURE__ */
|
|
4125
|
-
/* @__PURE__ */
|
|
4126
|
-
/* @__PURE__ */
|
|
4217
|
+
open && /* @__PURE__ */ jsxs22("div", { className: "absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md", children: [
|
|
4218
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center border-b border-border px-3", children: [
|
|
4219
|
+
/* @__PURE__ */ jsxs22(
|
|
4127
4220
|
"svg",
|
|
4128
4221
|
{
|
|
4129
4222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4161,7 +4254,7 @@ var Combobox = React35.forwardRef(
|
|
|
4161
4254
|
}
|
|
4162
4255
|
)
|
|
4163
4256
|
] }),
|
|
4164
|
-
isMultiple && selectAll && filteredOptions.length > 0 && /* @__PURE__ */ jsx35("div", { className: "px-1 pt-1", children: /* @__PURE__ */
|
|
4257
|
+
isMultiple && selectAll && filteredOptions.length > 0 && /* @__PURE__ */ jsx35("div", { className: "px-1 pt-1", children: /* @__PURE__ */ jsxs22(
|
|
4165
4258
|
"button",
|
|
4166
4259
|
{
|
|
4167
4260
|
type: "button",
|
|
@@ -4276,7 +4369,7 @@ import {
|
|
|
4276
4369
|
flexRender
|
|
4277
4370
|
} from "@tanstack/react-table";
|
|
4278
4371
|
import { useVirtualizer as useVirtualizer2 } from "@tanstack/react-virtual";
|
|
4279
|
-
import { jsx as jsx36, jsxs as
|
|
4372
|
+
import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4280
4373
|
function convertColumns(columns, checkboxSelection) {
|
|
4281
4374
|
const tanstackColumns = [];
|
|
4282
4375
|
if (checkboxSelection) {
|
|
@@ -4463,8 +4556,8 @@ var ColumnVisibilityDropdown = ({
|
|
|
4463
4556
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
4464
4557
|
}, []);
|
|
4465
4558
|
const allColumns = table.getAllLeafColumns().filter((col) => col.id !== "__select__");
|
|
4466
|
-
return /* @__PURE__ */
|
|
4467
|
-
/* @__PURE__ */
|
|
4559
|
+
return /* @__PURE__ */ jsxs23("div", { className: "relative", ref: dropdownRef, children: [
|
|
4560
|
+
/* @__PURE__ */ jsxs23(
|
|
4468
4561
|
Button,
|
|
4469
4562
|
{
|
|
4470
4563
|
variant: "outline",
|
|
@@ -4472,7 +4565,7 @@ var ColumnVisibilityDropdown = ({
|
|
|
4472
4565
|
onClick: () => setOpen(!open),
|
|
4473
4566
|
className: "h-9 gap-2",
|
|
4474
4567
|
children: [
|
|
4475
|
-
/* @__PURE__ */
|
|
4568
|
+
/* @__PURE__ */ jsxs23("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4476
4569
|
/* @__PURE__ */ jsx36("path", { d: "M12 3v18M3 12h18" }),
|
|
4477
4570
|
/* @__PURE__ */ jsx36("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
4478
4571
|
/* @__PURE__ */ jsx36("path", { d: "M3 9h18M3 15h18M9 3v18M15 3v18" })
|
|
@@ -4481,12 +4574,12 @@ var ColumnVisibilityDropdown = ({
|
|
|
4481
4574
|
]
|
|
4482
4575
|
}
|
|
4483
4576
|
),
|
|
4484
|
-
open && /* @__PURE__ */
|
|
4577
|
+
open && /* @__PURE__ */ jsxs23("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[180px] rounded-md border border-border bg-popover p-2 shadow-md", children: [
|
|
4485
4578
|
/* @__PURE__ */ jsx36("div", { className: "text-xs font-medium text-foreground mb-2 px-2", children: "Show/Hide Columns" }),
|
|
4486
4579
|
/* @__PURE__ */ jsx36("div", { className: "max-h-[300px] overflow-auto", children: allColumns.map((column) => {
|
|
4487
4580
|
const meta = column.columnDef.meta;
|
|
4488
4581
|
const headerName = meta?.headerName || column.id;
|
|
4489
|
-
return /* @__PURE__ */
|
|
4582
|
+
return /* @__PURE__ */ jsxs23(
|
|
4490
4583
|
"label",
|
|
4491
4584
|
{
|
|
4492
4585
|
className: "flex items-center gap-2 px-2 py-1.5 hover:bg-muted rounded cursor-pointer",
|
|
@@ -4504,7 +4597,7 @@ var ColumnVisibilityDropdown = ({
|
|
|
4504
4597
|
column.id
|
|
4505
4598
|
);
|
|
4506
4599
|
}) }),
|
|
4507
|
-
/* @__PURE__ */
|
|
4600
|
+
/* @__PURE__ */ jsxs23("div", { className: "border-t border-border mt-2 pt-2 flex gap-2 px-2", children: [
|
|
4508
4601
|
/* @__PURE__ */ jsx36(
|
|
4509
4602
|
Button,
|
|
4510
4603
|
{
|
|
@@ -4567,8 +4660,8 @@ var DataGridPagination = ({
|
|
|
4567
4660
|
}
|
|
4568
4661
|
) }, page)
|
|
4569
4662
|
);
|
|
4570
|
-
const infoSection = /* @__PURE__ */
|
|
4571
|
-
/* @__PURE__ */
|
|
4663
|
+
const infoSection = /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-4 flex-wrap", children: [
|
|
4664
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
4572
4665
|
/* @__PURE__ */ jsx36("span", { children: "Rows per page:" }),
|
|
4573
4666
|
/* @__PURE__ */ jsx36(
|
|
4574
4667
|
"select",
|
|
@@ -4580,7 +4673,7 @@ var DataGridPagination = ({
|
|
|
4580
4673
|
}
|
|
4581
4674
|
)
|
|
4582
4675
|
] }),
|
|
4583
|
-
/* @__PURE__ */
|
|
4676
|
+
/* @__PURE__ */ jsxs23("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
4584
4677
|
startRow,
|
|
4585
4678
|
"\u2013",
|
|
4586
4679
|
endRow,
|
|
@@ -4588,7 +4681,7 @@ var DataGridPagination = ({
|
|
|
4588
4681
|
totalRows
|
|
4589
4682
|
] })
|
|
4590
4683
|
] });
|
|
4591
|
-
const navSection = (maxVisible) => /* @__PURE__ */ jsx36(PaginationNamespace, { className: "mx-0 w-auto", children: /* @__PURE__ */
|
|
4684
|
+
const navSection = (maxVisible) => /* @__PURE__ */ jsx36(PaginationNamespace, { className: "mx-0 w-auto", children: /* @__PURE__ */ jsxs23(PaginationContent, { children: [
|
|
4592
4685
|
/* @__PURE__ */ jsx36(PaginationItem, { children: /* @__PURE__ */ jsx36(
|
|
4593
4686
|
Button,
|
|
4594
4687
|
{
|
|
@@ -4635,7 +4728,7 @@ var DataGridPagination = ({
|
|
|
4635
4728
|
}
|
|
4636
4729
|
) })
|
|
4637
4730
|
] }) });
|
|
4638
|
-
return /* @__PURE__ */
|
|
4731
|
+
return /* @__PURE__ */ jsxs23("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 border-t border-border bg-background", children: [
|
|
4639
4732
|
infoSection,
|
|
4640
4733
|
/* @__PURE__ */ jsx36("div", { className: "ml-auto", children: navSection(5) })
|
|
4641
4734
|
] });
|
|
@@ -4645,7 +4738,8 @@ var ExportDropdown = ({
|
|
|
4645
4738
|
rows,
|
|
4646
4739
|
columns,
|
|
4647
4740
|
pinnedRows,
|
|
4648
|
-
fileName = "data-export"
|
|
4741
|
+
fileName = "data-export",
|
|
4742
|
+
columnVisibility = {}
|
|
4649
4743
|
}) => {
|
|
4650
4744
|
const [open, setOpen] = React36.useState(false);
|
|
4651
4745
|
const dropdownRef = React36.useRef(null);
|
|
@@ -4659,7 +4753,9 @@ var ExportDropdown = ({
|
|
|
4659
4753
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
4660
4754
|
}, []);
|
|
4661
4755
|
const exportToCSV = () => {
|
|
4662
|
-
const visibleColumns = columns.filter(
|
|
4756
|
+
const visibleColumns = columns.filter(
|
|
4757
|
+
(col) => !col.disableExport && !col.hideExport && !col.hide && columnVisibility[col.field] !== false
|
|
4758
|
+
);
|
|
4663
4759
|
const headers = visibleColumns.map((col) => col.headerName || col.field);
|
|
4664
4760
|
const csvRows = [headers.join(",")];
|
|
4665
4761
|
const allRows = [
|
|
@@ -4703,8 +4799,8 @@ var ExportDropdown = ({
|
|
|
4703
4799
|
}
|
|
4704
4800
|
setOpen(false);
|
|
4705
4801
|
};
|
|
4706
|
-
return /* @__PURE__ */
|
|
4707
|
-
/* @__PURE__ */
|
|
4802
|
+
return /* @__PURE__ */ jsxs23("div", { className: "relative", ref: dropdownRef, children: [
|
|
4803
|
+
/* @__PURE__ */ jsxs23(
|
|
4708
4804
|
Button,
|
|
4709
4805
|
{
|
|
4710
4806
|
variant: "outline",
|
|
@@ -4712,7 +4808,7 @@ var ExportDropdown = ({
|
|
|
4712
4808
|
onClick: () => setOpen(!open),
|
|
4713
4809
|
className: "h-9 gap-2",
|
|
4714
4810
|
children: [
|
|
4715
|
-
/* @__PURE__ */
|
|
4811
|
+
/* @__PURE__ */ jsxs23("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4716
4812
|
/* @__PURE__ */ jsx36("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
4717
4813
|
/* @__PURE__ */ jsx36("polyline", { points: "7 10 12 15 17 10" }),
|
|
4718
4814
|
/* @__PURE__ */ jsx36("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
@@ -4721,14 +4817,14 @@ var ExportDropdown = ({
|
|
|
4721
4817
|
]
|
|
4722
4818
|
}
|
|
4723
4819
|
),
|
|
4724
|
-
open && /* @__PURE__ */
|
|
4725
|
-
/* @__PURE__ */
|
|
4820
|
+
open && /* @__PURE__ */ jsxs23("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[140px] rounded-md border border-border bg-popover p-1 shadow-md", children: [
|
|
4821
|
+
/* @__PURE__ */ jsxs23(
|
|
4726
4822
|
"button",
|
|
4727
4823
|
{
|
|
4728
4824
|
className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs hover:bg-muted",
|
|
4729
4825
|
onClick: exportToCSV,
|
|
4730
4826
|
children: [
|
|
4731
|
-
/* @__PURE__ */
|
|
4827
|
+
/* @__PURE__ */ jsxs23("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4732
4828
|
/* @__PURE__ */ jsx36("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
4733
4829
|
/* @__PURE__ */ jsx36("polyline", { points: "14 2 14 8 20 8" })
|
|
4734
4830
|
] }),
|
|
@@ -4736,13 +4832,13 @@ var ExportDropdown = ({
|
|
|
4736
4832
|
]
|
|
4737
4833
|
}
|
|
4738
4834
|
),
|
|
4739
|
-
onExport && /* @__PURE__ */
|
|
4835
|
+
onExport && /* @__PURE__ */ jsxs23(
|
|
4740
4836
|
"button",
|
|
4741
4837
|
{
|
|
4742
4838
|
className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs hover:bg-muted",
|
|
4743
4839
|
onClick: handleCustomExport,
|
|
4744
4840
|
children: [
|
|
4745
|
-
/* @__PURE__ */
|
|
4841
|
+
/* @__PURE__ */ jsxs23("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4746
4842
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "12", r: "3" }),
|
|
4747
4843
|
/* @__PURE__ */ jsx36("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
4748
4844
|
] }),
|
|
@@ -4768,7 +4864,7 @@ var MoreOptionsDropdown = ({
|
|
|
4768
4864
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
4769
4865
|
}, []);
|
|
4770
4866
|
if (options.length === 0) return null;
|
|
4771
|
-
return /* @__PURE__ */
|
|
4867
|
+
return /* @__PURE__ */ jsxs23("div", { className: "relative", ref: dropdownRef, children: [
|
|
4772
4868
|
/* @__PURE__ */ jsx36(
|
|
4773
4869
|
Button,
|
|
4774
4870
|
{
|
|
@@ -4776,14 +4872,14 @@ var MoreOptionsDropdown = ({
|
|
|
4776
4872
|
size: "icon",
|
|
4777
4873
|
onClick: () => setOpen(!open),
|
|
4778
4874
|
className: "h-9 w-9",
|
|
4779
|
-
children: /* @__PURE__ */
|
|
4875
|
+
children: /* @__PURE__ */ jsxs23("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
4780
4876
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "12", r: "1" }),
|
|
4781
4877
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "5", r: "1" }),
|
|
4782
4878
|
/* @__PURE__ */ jsx36("circle", { cx: "12", cy: "19", r: "1" })
|
|
4783
4879
|
] })
|
|
4784
4880
|
}
|
|
4785
4881
|
),
|
|
4786
|
-
open && /* @__PURE__ */ jsx36("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] rounded-md border border-border bg-popover p-1 shadow-md", children: options.map((option, index) => /* @__PURE__ */
|
|
4882
|
+
open && /* @__PURE__ */ jsx36("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] rounded-md border border-border bg-popover p-1 shadow-md", children: options.map((option, index) => /* @__PURE__ */ jsxs23(
|
|
4787
4883
|
"button",
|
|
4788
4884
|
{
|
|
4789
4885
|
className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs hover:bg-muted",
|
|
@@ -4813,19 +4909,24 @@ var DataGridToolbar = ({
|
|
|
4813
4909
|
onExport,
|
|
4814
4910
|
exportFileName,
|
|
4815
4911
|
pinnedRows,
|
|
4912
|
+
columnVisibility,
|
|
4816
4913
|
customButtons,
|
|
4817
4914
|
moreOptions = []
|
|
4818
4915
|
}) => {
|
|
4819
|
-
return /* @__PURE__ */
|
|
4916
|
+
return /* @__PURE__ */ jsxs23("div", { className: "flex flex-wrap items-center gap-2 px-4 py-3 border-b border-border bg-background", children: [
|
|
4820
4917
|
title && /* @__PURE__ */ jsx36("h3", { className: "text-sm font-semibold text-foreground shrink-0", children: title }),
|
|
4821
|
-
/* @__PURE__ */
|
|
4918
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-wrap items-center gap-2 ml-auto", children: [
|
|
4822
4919
|
showQuickFilter && /* @__PURE__ */ jsx36(
|
|
4823
4920
|
Input,
|
|
4824
4921
|
{
|
|
4825
4922
|
placeholder: "Search...",
|
|
4826
4923
|
value: globalFilter ?? "",
|
|
4827
4924
|
onChange: (e) => setGlobalFilter(e.target.value),
|
|
4828
|
-
className: "h-9 min-w-[120px] flex-1"
|
|
4925
|
+
className: "h-9 min-w-[120px] flex-1",
|
|
4926
|
+
endAdornment: /* @__PURE__ */ jsxs23("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "text-muted-foreground", children: [
|
|
4927
|
+
/* @__PURE__ */ jsx36("circle", { cx: "11", cy: "11", r: "8" }),
|
|
4928
|
+
/* @__PURE__ */ jsx36("path", { d: "m21 21-4.3-4.3" })
|
|
4929
|
+
] })
|
|
4829
4930
|
}
|
|
4830
4931
|
),
|
|
4831
4932
|
showColumnSelector && /* @__PURE__ */ jsx36(ColumnVisibilityDropdown, { table }),
|
|
@@ -4836,7 +4937,8 @@ var DataGridToolbar = ({
|
|
|
4836
4937
|
rows,
|
|
4837
4938
|
columns,
|
|
4838
4939
|
pinnedRows,
|
|
4839
|
-
fileName: exportFileName
|
|
4940
|
+
fileName: exportFileName,
|
|
4941
|
+
columnVisibility
|
|
4840
4942
|
}
|
|
4841
4943
|
),
|
|
4842
4944
|
customButtons,
|
|
@@ -5085,7 +5187,7 @@ var VirtualizedTableBody = ({
|
|
|
5085
5187
|
}
|
|
5086
5188
|
const paddingTop = virtualRows.length > 0 ? virtualRows[0].start : 0;
|
|
5087
5189
|
const paddingBottom = virtualRows.length > 0 ? virtualizer.getTotalSize() - virtualRows[virtualRows.length - 1].end : 0;
|
|
5088
|
-
return /* @__PURE__ */
|
|
5190
|
+
return /* @__PURE__ */ jsxs23("tbody", { children: [
|
|
5089
5191
|
paddingTop > 0 && /* @__PURE__ */ jsx36("tr", { children: /* @__PURE__ */ jsx36(
|
|
5090
5192
|
"td",
|
|
5091
5193
|
{
|
|
@@ -5588,7 +5690,7 @@ function DataGrid({
|
|
|
5588
5690
|
if (minHeight) containerStyle.minHeight = minHeight;
|
|
5589
5691
|
if (maxHeight) containerStyle.maxHeight = maxHeight;
|
|
5590
5692
|
}
|
|
5591
|
-
return /* @__PURE__ */
|
|
5693
|
+
return /* @__PURE__ */ jsxs23(
|
|
5592
5694
|
"div",
|
|
5593
5695
|
{
|
|
5594
5696
|
className: cn(
|
|
@@ -5612,18 +5714,19 @@ function DataGrid({
|
|
|
5612
5714
|
onExport,
|
|
5613
5715
|
exportFileName,
|
|
5614
5716
|
pinnedRows,
|
|
5717
|
+
columnVisibility,
|
|
5615
5718
|
customButtons,
|
|
5616
5719
|
moreOptions
|
|
5617
5720
|
}
|
|
5618
5721
|
),
|
|
5619
|
-
/* @__PURE__ */ jsx36("div", { className: "flex-1 flex flex-col min-h-0 overflow-hidden", children: /* @__PURE__ */
|
|
5722
|
+
/* @__PURE__ */ jsx36("div", { className: "flex-1 flex flex-col min-h-0 overflow-hidden", children: /* @__PURE__ */ jsxs23(
|
|
5620
5723
|
"div",
|
|
5621
5724
|
{
|
|
5622
5725
|
ref: tableContainerRef,
|
|
5623
5726
|
className: "relative flex-1 overflow-auto",
|
|
5624
5727
|
children: [
|
|
5625
|
-
loading && /* @__PURE__ */ jsx36("div", { className: "absolute inset-0 bg-background/80 flex items-center justify-center z-10", children: /* @__PURE__ */ jsx36(
|
|
5626
|
-
/* @__PURE__ */
|
|
5728
|
+
loading && /* @__PURE__ */ jsx36("div", { className: "absolute inset-0 bg-background/80 flex items-center justify-center z-10", children: /* @__PURE__ */ jsx36(Spinner2, { size: "lg" }) }),
|
|
5729
|
+
/* @__PURE__ */ jsxs23(
|
|
5627
5730
|
"table",
|
|
5628
5731
|
{
|
|
5629
5732
|
className: "border-separate border-spacing-0 table-fixed",
|
|
@@ -5643,7 +5746,7 @@ function DataGrid({
|
|
|
5643
5746
|
column.id
|
|
5644
5747
|
);
|
|
5645
5748
|
}) }),
|
|
5646
|
-
/* @__PURE__ */
|
|
5749
|
+
/* @__PURE__ */ jsxs23("thead", { className: "sticky top-0 z-[3] bg-muted", children: [
|
|
5647
5750
|
columnGroupingModel && columnGroupingModel.length > 0 && /* @__PURE__ */ jsx36(
|
|
5648
5751
|
ColumnGroupHeader,
|
|
5649
5752
|
{
|
|
@@ -5663,7 +5766,7 @@ function DataGrid({
|
|
|
5663
5766
|
const colWidth = columnWidths.get(header.column.id);
|
|
5664
5767
|
const effectiveWidth = colWidth?.width || header.getSize();
|
|
5665
5768
|
const pinnedInfo = pinnedColumnOffsets?.get(header.column.id);
|
|
5666
|
-
return /* @__PURE__ */
|
|
5769
|
+
return /* @__PURE__ */ jsxs23(
|
|
5667
5770
|
"th",
|
|
5668
5771
|
{
|
|
5669
5772
|
title: meta?.headerName,
|
|
@@ -5691,7 +5794,7 @@ function DataGrid({
|
|
|
5691
5794
|
},
|
|
5692
5795
|
onClick: header.column.getToggleSortingHandler(),
|
|
5693
5796
|
children: [
|
|
5694
|
-
/* @__PURE__ */
|
|
5797
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
5695
5798
|
/* @__PURE__ */ jsx36("div", { className: cn(
|
|
5696
5799
|
"flex-1 truncate min-w-0",
|
|
5697
5800
|
align === "center" && "text-center",
|
|
@@ -5794,7 +5897,7 @@ function DataGrid({
|
|
|
5794
5897
|
paginationMode
|
|
5795
5898
|
}
|
|
5796
5899
|
),
|
|
5797
|
-
effectiveVirtualized && !hideFooter && /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-end gap-4 px-4 py-3 border-t border-border bg-background", children: /* @__PURE__ */
|
|
5900
|
+
effectiveVirtualized && !hideFooter && /* @__PURE__ */ jsx36("div", { className: "flex items-center justify-end gap-4 px-4 py-3 border-t border-border bg-background", children: /* @__PURE__ */ jsxs23("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
5798
5901
|
table.getFilteredRowModel().rows.length,
|
|
5799
5902
|
" total rows (virtualized)"
|
|
5800
5903
|
] }) })
|
|
@@ -5807,7 +5910,7 @@ DataGrid.displayName = "DataGrid";
|
|
|
5807
5910
|
// src/components/list.tsx
|
|
5808
5911
|
import * as React37 from "react";
|
|
5809
5912
|
import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
|
|
5810
|
-
import { jsx as jsx37, jsxs as
|
|
5913
|
+
import { jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5811
5914
|
var List2 = React37.forwardRef(
|
|
5812
5915
|
({
|
|
5813
5916
|
dividers = false,
|
|
@@ -5844,7 +5947,7 @@ var ListItem = React37.forwardRef(
|
|
|
5844
5947
|
className,
|
|
5845
5948
|
children,
|
|
5846
5949
|
...props
|
|
5847
|
-
}, ref) => /* @__PURE__ */
|
|
5950
|
+
}, ref) => /* @__PURE__ */ jsxs24(
|
|
5848
5951
|
"li",
|
|
5849
5952
|
{
|
|
5850
5953
|
ref,
|
|
@@ -5942,7 +6045,7 @@ var ListItemText = React37.forwardRef(
|
|
|
5942
6045
|
className,
|
|
5943
6046
|
children,
|
|
5944
6047
|
...props
|
|
5945
|
-
}, ref) => /* @__PURE__ */
|
|
6048
|
+
}, ref) => /* @__PURE__ */ jsxs24(
|
|
5946
6049
|
"div",
|
|
5947
6050
|
{
|
|
5948
6051
|
ref,
|
|
@@ -6213,7 +6316,7 @@ import {
|
|
|
6213
6316
|
LabelList
|
|
6214
6317
|
} from "recharts";
|
|
6215
6318
|
import { accentColors as accentColors2 } from "@onesaz/tokens";
|
|
6216
|
-
import { Fragment as
|
|
6319
|
+
import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6217
6320
|
var BarChart = ({
|
|
6218
6321
|
data,
|
|
6219
6322
|
dataKey,
|
|
@@ -6266,7 +6369,7 @@ var BarChart = ({
|
|
|
6266
6369
|
)
|
|
6267
6370
|
},
|
|
6268
6371
|
keyConfig.dataKey
|
|
6269
|
-
)) : /* @__PURE__ */
|
|
6372
|
+
)) : /* @__PURE__ */ jsxs25(
|
|
6270
6373
|
Bar,
|
|
6271
6374
|
{
|
|
6272
6375
|
dataKey,
|
|
@@ -6304,7 +6407,7 @@ var BarChart = ({
|
|
|
6304
6407
|
contentStyle: tooltip.contentStyle
|
|
6305
6408
|
}
|
|
6306
6409
|
) : showTooltip ? /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }) : null;
|
|
6307
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6410
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(
|
|
6308
6411
|
RechartsBarChart,
|
|
6309
6412
|
{
|
|
6310
6413
|
data,
|
|
@@ -6391,7 +6494,7 @@ var LineChart = ({
|
|
|
6391
6494
|
name: name || dataKey
|
|
6392
6495
|
}
|
|
6393
6496
|
);
|
|
6394
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6497
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(RechartsLineChart, { data, margin, children: [
|
|
6395
6498
|
showGrid && /* @__PURE__ */ jsx39(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6396
6499
|
xAxis && !xAxis.hide && /* @__PURE__ */ jsx39(
|
|
6397
6500
|
XAxis,
|
|
@@ -6444,7 +6547,7 @@ var PieChart = ({
|
|
|
6444
6547
|
accentColors2[accentColor][1]
|
|
6445
6548
|
];
|
|
6446
6549
|
const chartColors = colors || defaultColors;
|
|
6447
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6550
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(RechartsPieChart, { children: [
|
|
6448
6551
|
/* @__PURE__ */ jsx39(
|
|
6449
6552
|
Pie,
|
|
6450
6553
|
{
|
|
@@ -6513,7 +6616,7 @@ var AreaChart = ({
|
|
|
6513
6616
|
name: name || dataKey
|
|
6514
6617
|
}
|
|
6515
6618
|
);
|
|
6516
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6619
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(RechartsAreaChart, { data, margin, children: [
|
|
6517
6620
|
showGrid && /* @__PURE__ */ jsx39(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6518
6621
|
xAxis && !xAxis.hide && /* @__PURE__ */ jsx39(
|
|
6519
6622
|
XAxis,
|
|
@@ -6556,7 +6659,7 @@ var ScatterChart = ({
|
|
|
6556
6659
|
className
|
|
6557
6660
|
}) => {
|
|
6558
6661
|
const { accentColor } = useTheme();
|
|
6559
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6662
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(RechartsScatterChart, { data, margin, children: [
|
|
6560
6663
|
showGrid && /* @__PURE__ */ jsx39(CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--muted-foreground))", opacity: 0.3 }),
|
|
6561
6664
|
xAxis && !xAxis.hide && /* @__PURE__ */ jsx39(
|
|
6562
6665
|
XAxis,
|
|
@@ -6597,7 +6700,7 @@ var RadarChart = ({
|
|
|
6597
6700
|
className
|
|
6598
6701
|
}) => {
|
|
6599
6702
|
const { accentColor } = useTheme();
|
|
6600
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6703
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(RechartsRadarChart, { data, children: [
|
|
6601
6704
|
/* @__PURE__ */ jsx39(PolarGrid, {}),
|
|
6602
6705
|
/* @__PURE__ */ jsx39(PolarAngleAxis, { dataKey: nameKey }),
|
|
6603
6706
|
/* @__PURE__ */ jsx39(PolarRadiusAxis, {}),
|
|
@@ -6659,8 +6762,8 @@ var DonutChart = ({
|
|
|
6659
6762
|
}
|
|
6660
6763
|
};
|
|
6661
6764
|
const styling = { ...defaultAdvancedStyling, ...advancedStyling };
|
|
6662
|
-
const gradientDefs = styling.enableGradients ? /* @__PURE__ */
|
|
6663
|
-
styling.enableShadows && /* @__PURE__ */
|
|
6765
|
+
const gradientDefs = styling.enableGradients ? /* @__PURE__ */ jsxs25("defs", { children: [
|
|
6766
|
+
styling.enableShadows && /* @__PURE__ */ jsxs25(
|
|
6664
6767
|
"filter",
|
|
6665
6768
|
{
|
|
6666
6769
|
id: "deepInsetShadow",
|
|
@@ -6721,7 +6824,7 @@ var DonutChart = ({
|
|
|
6721
6824
|
)
|
|
6722
6825
|
}
|
|
6723
6826
|
),
|
|
6724
|
-
styling.gradients?.map((gradient) => /* @__PURE__ */
|
|
6827
|
+
styling.gradients?.map((gradient) => /* @__PURE__ */ jsxs25(
|
|
6725
6828
|
"linearGradient",
|
|
6726
6829
|
{
|
|
6727
6830
|
id: gradient.id,
|
|
@@ -6746,7 +6849,7 @@ var DonutChart = ({
|
|
|
6746
6849
|
contentStyle: tooltip.contentStyle
|
|
6747
6850
|
}
|
|
6748
6851
|
) : showTooltip ? /* @__PURE__ */ jsx39(Tooltip2, { contentStyle: { backgroundColor: "hsl(var(--background))", border: "1px solid hsl(var(--border))", borderRadius: "6px", color: "hsl(var(--foreground))" } }) : null;
|
|
6749
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
6852
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(RechartsPieChart, { children: [
|
|
6750
6853
|
gradientDefs,
|
|
6751
6854
|
/* @__PURE__ */ jsx39(
|
|
6752
6855
|
Pie,
|
|
@@ -6808,7 +6911,7 @@ var ProgressCard = ({
|
|
|
6808
6911
|
const bgShadowId = `progress-bg-shadow-${Math.random().toString(36).substr(2, 9)}`;
|
|
6809
6912
|
const [startColor, endColor] = colorFn(normalizedPercentage);
|
|
6810
6913
|
const percentageTextColor = typography.percentageColorAuto ? normalizedPercentage <= 30 ? "text-green-600" : normalizedPercentage <= 50 ? "text-blue-600" : "text-red-600" : "text-gray-900 dark:text-gray-100";
|
|
6811
|
-
return /* @__PURE__ */
|
|
6914
|
+
return /* @__PURE__ */ jsxs25(
|
|
6812
6915
|
"div",
|
|
6813
6916
|
{
|
|
6814
6917
|
className: cn(
|
|
@@ -6818,16 +6921,16 @@ var ProgressCard = ({
|
|
|
6818
6921
|
),
|
|
6819
6922
|
onClick: () => onClick?.(questionNum),
|
|
6820
6923
|
children: [
|
|
6821
|
-
/* @__PURE__ */
|
|
6924
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center", children: [
|
|
6822
6925
|
/* @__PURE__ */ jsx39("span", { className: cn("font-bold", typography.questionFontSize, typography.questionColor), children: questionNum }),
|
|
6823
|
-
/* @__PURE__ */
|
|
6926
|
+
/* @__PURE__ */ jsxs25("span", { className: cn("font-bold", typography.percentageFontSize, percentageTextColor), children: [
|
|
6824
6927
|
normalizedPercentage.toFixed(1),
|
|
6825
6928
|
"%"
|
|
6826
6929
|
] })
|
|
6827
6930
|
] }),
|
|
6828
|
-
/* @__PURE__ */ jsx39("div", { className: "flex items-center", style: { width: `${donutSize + 10}px`, height: `${donutSize + 10}px` }, children: /* @__PURE__ */
|
|
6829
|
-
/* @__PURE__ */
|
|
6830
|
-
enableGradients && /* @__PURE__ */
|
|
6931
|
+
/* @__PURE__ */ jsx39("div", { className: "flex items-center", style: { width: `${donutSize + 10}px`, height: `${donutSize + 10}px` }, children: /* @__PURE__ */ jsxs25("svg", { width: donutSize + 10, height: donutSize + 10, viewBox: "0 0 100 100", children: [
|
|
6932
|
+
/* @__PURE__ */ jsxs25("defs", { children: [
|
|
6933
|
+
enableGradients && /* @__PURE__ */ jsxs25(
|
|
6831
6934
|
"linearGradient",
|
|
6832
6935
|
{
|
|
6833
6936
|
id: gradientId,
|
|
@@ -6841,8 +6944,8 @@ var ProgressCard = ({
|
|
|
6841
6944
|
]
|
|
6842
6945
|
}
|
|
6843
6946
|
),
|
|
6844
|
-
enableShadows && /* @__PURE__ */
|
|
6845
|
-
/* @__PURE__ */
|
|
6947
|
+
enableShadows && /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
6948
|
+
/* @__PURE__ */ jsxs25(
|
|
6846
6949
|
"filter",
|
|
6847
6950
|
{
|
|
6848
6951
|
id: bgShadowId,
|
|
@@ -6973,7 +7076,7 @@ var ProgressDonut = ({
|
|
|
6973
7076
|
if (!data || data.length === 0) {
|
|
6974
7077
|
return /* @__PURE__ */ jsx39("div", { className: cn("text-gray-500", className), children: "No data provided" });
|
|
6975
7078
|
}
|
|
6976
|
-
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */
|
|
7079
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx39(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs25(RechartsPieChart, { children: [
|
|
6977
7080
|
/* @__PURE__ */ jsx39(
|
|
6978
7081
|
Pie,
|
|
6979
7082
|
{
|
|
@@ -7028,12 +7131,12 @@ var MultiProgressDonut = ({
|
|
|
7028
7131
|
const shadowId = `progress-shadow-${index}`;
|
|
7029
7132
|
const bgShadowId = `progress-bg-shadow-${index}`;
|
|
7030
7133
|
const [startColor, endColor] = colorFn(percentage);
|
|
7031
|
-
return /* @__PURE__ */
|
|
7134
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center gap-2", children: [
|
|
7032
7135
|
item.label && /* @__PURE__ */ jsx39("div", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: item.label }),
|
|
7033
|
-
/* @__PURE__ */
|
|
7034
|
-
/* @__PURE__ */
|
|
7035
|
-
/* @__PURE__ */
|
|
7036
|
-
enableGradients && /* @__PURE__ */
|
|
7136
|
+
/* @__PURE__ */ jsxs25("div", { className: "relative", children: [
|
|
7137
|
+
/* @__PURE__ */ jsxs25("svg", { width: size, height: size, viewBox: "0 0 100 100", children: [
|
|
7138
|
+
/* @__PURE__ */ jsxs25("defs", { children: [
|
|
7139
|
+
enableGradients && /* @__PURE__ */ jsxs25(
|
|
7037
7140
|
"linearGradient",
|
|
7038
7141
|
{
|
|
7039
7142
|
id: gradientId,
|
|
@@ -7047,8 +7150,8 @@ var MultiProgressDonut = ({
|
|
|
7047
7150
|
]
|
|
7048
7151
|
}
|
|
7049
7152
|
),
|
|
7050
|
-
enableShadows && /* @__PURE__ */
|
|
7051
|
-
/* @__PURE__ */
|
|
7153
|
+
enableShadows && /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
7154
|
+
/* @__PURE__ */ jsxs25(
|
|
7052
7155
|
"filter",
|
|
7053
7156
|
{
|
|
7054
7157
|
id: bgShadowId,
|
|
@@ -7140,7 +7243,7 @@ var MultiProgressDonut = ({
|
|
|
7140
7243
|
}
|
|
7141
7244
|
)
|
|
7142
7245
|
] }),
|
|
7143
|
-
showPercentage && /* @__PURE__ */ jsx39("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */
|
|
7246
|
+
showPercentage && /* @__PURE__ */ jsx39("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs25("span", { className: "text-xs font-bold text-gray-700 dark:text-gray-300", children: [
|
|
7144
7247
|
percentage.toFixed(1),
|
|
7145
7248
|
"%"
|
|
7146
7249
|
] }) })
|
|
@@ -7243,7 +7346,7 @@ var PackedBubbleChart = ({
|
|
|
7243
7346
|
if (colorByValue) return colorByValue(item.value);
|
|
7244
7347
|
return defaultColor;
|
|
7245
7348
|
};
|
|
7246
|
-
return /* @__PURE__ */
|
|
7349
|
+
return /* @__PURE__ */ jsxs25(
|
|
7247
7350
|
"div",
|
|
7248
7351
|
{
|
|
7249
7352
|
ref: containerRef,
|
|
@@ -7258,7 +7361,7 @@ var PackedBubbleChart = ({
|
|
|
7258
7361
|
children: title
|
|
7259
7362
|
}
|
|
7260
7363
|
),
|
|
7261
|
-
/* @__PURE__ */ jsx39("svg", { width: "100%", height: "100%", className: "overflow-visible", children: bubbles.map((bubble, index) => /* @__PURE__ */
|
|
7364
|
+
/* @__PURE__ */ jsx39("svg", { width: "100%", height: "100%", className: "overflow-visible", children: bubbles.map((bubble, index) => /* @__PURE__ */ jsxs25(
|
|
7262
7365
|
"g",
|
|
7263
7366
|
{
|
|
7264
7367
|
onClick: () => onBubbleClick?.(bubble.data),
|
|
@@ -7319,7 +7422,7 @@ var PackedBubbleChart = ({
|
|
|
7319
7422
|
|
|
7320
7423
|
// src/components/bottom-navigation.tsx
|
|
7321
7424
|
import * as React40 from "react";
|
|
7322
|
-
import { jsx as jsx40, jsxs as
|
|
7425
|
+
import { jsx as jsx40, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
7323
7426
|
var BottomNavigationContext = React40.createContext({
|
|
7324
7427
|
value: null,
|
|
7325
7428
|
onChange: () => {
|
|
@@ -7354,7 +7457,7 @@ var BottomNavigationAction = React40.forwardRef(
|
|
|
7354
7457
|
ctx.onChange(e, value);
|
|
7355
7458
|
onClick?.(e);
|
|
7356
7459
|
};
|
|
7357
|
-
return /* @__PURE__ */
|
|
7460
|
+
return /* @__PURE__ */ jsxs26(
|
|
7358
7461
|
"button",
|
|
7359
7462
|
{
|
|
7360
7463
|
ref,
|
|
@@ -7402,7 +7505,7 @@ BottomNavigationAction.displayName = "BottomNavigationAction";
|
|
|
7402
7505
|
|
|
7403
7506
|
// src/components/breadcrumbs.tsx
|
|
7404
7507
|
import * as React41 from "react";
|
|
7405
|
-
import { jsx as jsx41, jsxs as
|
|
7508
|
+
import { jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
7406
7509
|
var Breadcrumbs = React41.forwardRef(
|
|
7407
7510
|
({
|
|
7408
7511
|
separator,
|
|
@@ -7444,7 +7547,7 @@ var Breadcrumbs = React41.forwardRef(
|
|
|
7444
7547
|
} else {
|
|
7445
7548
|
displayedItems = childArray;
|
|
7446
7549
|
}
|
|
7447
|
-
return /* @__PURE__ */ jsx41("nav", { ref, "aria-label": "Breadcrumb", className, ...props, children: /* @__PURE__ */ jsx41("ol", { className: "flex items-center gap-1.5 flex-wrap", children: displayedItems.map((child, index) => /* @__PURE__ */
|
|
7550
|
+
return /* @__PURE__ */ jsx41("nav", { ref, "aria-label": "Breadcrumb", className, ...props, children: /* @__PURE__ */ jsx41("ol", { className: "flex items-center gap-1.5 flex-wrap", children: displayedItems.map((child, index) => /* @__PURE__ */ jsxs27("li", { className: "flex items-center gap-1.5", children: [
|
|
7448
7551
|
index > 0 && /* @__PURE__ */ jsx41("span", { className: "flex items-center", "aria-hidden": "true", children: separatorElement }),
|
|
7449
7552
|
child
|
|
7450
7553
|
] }, index)) }) });
|
|
@@ -7554,7 +7657,7 @@ var BreadcrumbEllipsis = React41.forwardRef(
|
|
|
7554
7657
|
"aria-hidden": "true",
|
|
7555
7658
|
className: cn("text-sm text-muted-foreground", className),
|
|
7556
7659
|
...props,
|
|
7557
|
-
children: /* @__PURE__ */
|
|
7660
|
+
children: /* @__PURE__ */ jsxs27(
|
|
7558
7661
|
"svg",
|
|
7559
7662
|
{
|
|
7560
7663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7593,14 +7696,14 @@ BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
|
7593
7696
|
// src/components/dropdown-menu.tsx
|
|
7594
7697
|
import * as React42 from "react";
|
|
7595
7698
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
7596
|
-
import { jsx as jsx42, jsxs as
|
|
7699
|
+
import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7597
7700
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
7598
7701
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
7599
7702
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
7600
7703
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
7601
7704
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
7602
7705
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
7603
|
-
var DropdownMenuSubTrigger = React42.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */
|
|
7706
|
+
var DropdownMenuSubTrigger = React42.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs28(
|
|
7604
7707
|
DropdownMenuPrimitive.SubTrigger,
|
|
7605
7708
|
{
|
|
7606
7709
|
ref,
|
|
@@ -7683,7 +7786,7 @@ var DropdownMenuItem = React42.forwardRef(({ className, inset, ...props }, ref)
|
|
|
7683
7786
|
}
|
|
7684
7787
|
));
|
|
7685
7788
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
7686
|
-
var DropdownMenuCheckboxItem = React42.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */
|
|
7789
|
+
var DropdownMenuCheckboxItem = React42.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs28(
|
|
7687
7790
|
DropdownMenuPrimitive.CheckboxItem,
|
|
7688
7791
|
{
|
|
7689
7792
|
ref,
|
|
@@ -7715,7 +7818,7 @@ var DropdownMenuCheckboxItem = React42.forwardRef(({ className, children, checke
|
|
|
7715
7818
|
}
|
|
7716
7819
|
));
|
|
7717
7820
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
7718
|
-
var DropdownMenuRadioItem = React42.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
7821
|
+
var DropdownMenuRadioItem = React42.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs28(
|
|
7719
7822
|
DropdownMenuPrimitive.RadioItem,
|
|
7720
7823
|
{
|
|
7721
7824
|
ref,
|
|
@@ -7847,9 +7950,9 @@ Backdrop.displayName = "Backdrop";
|
|
|
7847
7950
|
// src/components/snackbar.tsx
|
|
7848
7951
|
import * as React44 from "react";
|
|
7849
7952
|
import { createPortal as createPortal2 } from "react-dom";
|
|
7850
|
-
import { jsx as jsx44, jsxs as
|
|
7953
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7851
7954
|
var SnackbarContent = React44.forwardRef(
|
|
7852
|
-
({ className, message, action, ...props }, ref) => /* @__PURE__ */
|
|
7955
|
+
({ className, message, action, ...props }, ref) => /* @__PURE__ */ jsxs29(
|
|
7853
7956
|
"div",
|
|
7854
7957
|
{
|
|
7855
7958
|
ref,
|
|
@@ -8057,7 +8160,7 @@ function SnackbarProvider({
|
|
|
8057
8160
|
});
|
|
8058
8161
|
return map;
|
|
8059
8162
|
}, [items]);
|
|
8060
|
-
return /* @__PURE__ */
|
|
8163
|
+
return /* @__PURE__ */ jsxs29(SnackbarContext.Provider, { value: { enqueueSnackbar, closeSnackbar }, children: [
|
|
8061
8164
|
children,
|
|
8062
8165
|
typeof document !== "undefined" && Array.from(groups.entries()).map(([posKey, posItems]) => {
|
|
8063
8166
|
const [vertical, horizontal] = posKey.split("-");
|
|
@@ -8092,7 +8195,7 @@ var useSnackbar = () => React44.useContext(SnackbarContext);
|
|
|
8092
8195
|
// src/components/drawer.tsx
|
|
8093
8196
|
import * as React45 from "react";
|
|
8094
8197
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
8095
|
-
import { jsx as jsx45, jsxs as
|
|
8198
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
8096
8199
|
var Drawer = DialogPrimitive2.Root;
|
|
8097
8200
|
var DrawerTrigger = DialogPrimitive2.Trigger;
|
|
8098
8201
|
var DrawerClose = DialogPrimitive2.Close;
|
|
@@ -8117,9 +8220,9 @@ var slideVariants = {
|
|
|
8117
8220
|
top: "inset-x-0 top-0 w-full data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
8118
8221
|
bottom: "inset-x-0 bottom-0 w-full data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom"
|
|
8119
8222
|
};
|
|
8120
|
-
var DrawerContent = React45.forwardRef(({ side = "right", showClose = true, className, children, ...props }, ref) => /* @__PURE__ */
|
|
8223
|
+
var DrawerContent = React45.forwardRef(({ side = "right", showClose = true, className, children, ...props }, ref) => /* @__PURE__ */ jsxs30(DrawerPortal, { children: [
|
|
8121
8224
|
/* @__PURE__ */ jsx45(DrawerOverlay, {}),
|
|
8122
|
-
/* @__PURE__ */
|
|
8225
|
+
/* @__PURE__ */ jsxs30(
|
|
8123
8226
|
DialogPrimitive2.Content,
|
|
8124
8227
|
{
|
|
8125
8228
|
ref,
|
|
@@ -8133,7 +8236,7 @@ var DrawerContent = React45.forwardRef(({ side = "right", showClose = true, clas
|
|
|
8133
8236
|
...props,
|
|
8134
8237
|
children: [
|
|
8135
8238
|
children,
|
|
8136
|
-
showClose && /* @__PURE__ */
|
|
8239
|
+
showClose && /* @__PURE__ */ jsxs30(
|
|
8137
8240
|
DrawerClose,
|
|
8138
8241
|
{
|
|
8139
8242
|
className: cn(
|
|
@@ -8236,7 +8339,7 @@ var SheetFooter = DrawerFooter;
|
|
|
8236
8339
|
|
|
8237
8340
|
// src/components/topbar.tsx
|
|
8238
8341
|
import * as React46 from "react";
|
|
8239
|
-
import { Fragment as
|
|
8342
|
+
import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
8240
8343
|
var sizeClasses5 = {
|
|
8241
8344
|
sm: "h-12",
|
|
8242
8345
|
md: "h-14",
|
|
@@ -8264,7 +8367,7 @@ var TopBar = React46.forwardRef(
|
|
|
8264
8367
|
TopBar.displayName = "TopBar";
|
|
8265
8368
|
var TopBarBrand = React46.forwardRef(
|
|
8266
8369
|
({ className, logo, name, href, children, ...props }, ref) => {
|
|
8267
|
-
const content = /* @__PURE__ */
|
|
8370
|
+
const content = /* @__PURE__ */ jsxs31(Fragment7, { children: [
|
|
8268
8371
|
logo && /* @__PURE__ */ jsx46("span", { className: "shrink-0", children: logo }),
|
|
8269
8372
|
name && /* @__PURE__ */ jsx46("span", { className: "font-semibold text-lg", children: name }),
|
|
8270
8373
|
children
|
|
@@ -8346,7 +8449,7 @@ TopBarDivider.displayName = "TopBarDivider";
|
|
|
8346
8449
|
|
|
8347
8450
|
// src/components/sidebar.tsx
|
|
8348
8451
|
import * as React47 from "react";
|
|
8349
|
-
import { Fragment as
|
|
8452
|
+
import { Fragment as Fragment8, jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
8350
8453
|
var SidebarContext = React47.createContext(void 0);
|
|
8351
8454
|
var useSidebar = () => {
|
|
8352
8455
|
const context = React47.useContext(SidebarContext);
|
|
@@ -8444,7 +8547,7 @@ SidebarFooter.displayName = "SidebarFooter";
|
|
|
8444
8547
|
var SidebarGroup = React47.forwardRef(
|
|
8445
8548
|
({ className, label, children, ...props }, ref) => {
|
|
8446
8549
|
const { collapsed } = useSidebar();
|
|
8447
|
-
return /* @__PURE__ */
|
|
8550
|
+
return /* @__PURE__ */ jsxs32("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
|
|
8448
8551
|
label && !collapsed && /* @__PURE__ */ jsx47("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
|
|
8449
8552
|
label && collapsed && /* @__PURE__ */ jsx47("div", { className: "flex justify-center py-1.5", children: /* @__PURE__ */ jsx47("div", { className: "h-px w-4 bg-border" }) }),
|
|
8450
8553
|
/* @__PURE__ */ jsx47("div", { className: "space-y-1", children })
|
|
@@ -8455,9 +8558,9 @@ SidebarGroup.displayName = "SidebarGroup";
|
|
|
8455
8558
|
var SidebarItem = React47.forwardRef(
|
|
8456
8559
|
({ className, icon, active, disabled, badge, onClick, href, children, ...props }, ref) => {
|
|
8457
8560
|
const { collapsed } = useSidebar();
|
|
8458
|
-
const content = /* @__PURE__ */
|
|
8561
|
+
const content = /* @__PURE__ */ jsxs32(Fragment8, { children: [
|
|
8459
8562
|
icon && /* @__PURE__ */ jsx47("span", { className: cn("shrink-0", collapsed ? "mx-auto" : ""), children: icon }),
|
|
8460
|
-
!collapsed && /* @__PURE__ */
|
|
8563
|
+
!collapsed && /* @__PURE__ */ jsxs32(Fragment8, { children: [
|
|
8461
8564
|
/* @__PURE__ */ jsx47("span", { className: "flex-1 truncate", children }),
|
|
8462
8565
|
badge && /* @__PURE__ */ jsx47("span", { className: "shrink-0", children: badge })
|
|
8463
8566
|
] })
|
|
@@ -8499,8 +8602,8 @@ var SidebarSubMenu = React47.forwardRef(
|
|
|
8499
8602
|
if (collapsed) {
|
|
8500
8603
|
return /* @__PURE__ */ jsx47(SidebarItem, { icon, className, children: label });
|
|
8501
8604
|
}
|
|
8502
|
-
return /* @__PURE__ */
|
|
8503
|
-
/* @__PURE__ */
|
|
8605
|
+
return /* @__PURE__ */ jsxs32("div", { ref, className, ...props, children: [
|
|
8606
|
+
/* @__PURE__ */ jsxs32(
|
|
8504
8607
|
"div",
|
|
8505
8608
|
{
|
|
8506
8609
|
className: cn(
|
|
@@ -8552,7 +8655,7 @@ var SidebarToggle = React47.forwardRef(
|
|
|
8552
8655
|
),
|
|
8553
8656
|
"aria-label": collapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
8554
8657
|
...props,
|
|
8555
|
-
children: children || /* @__PURE__ */
|
|
8658
|
+
children: children || /* @__PURE__ */ jsxs32(
|
|
8556
8659
|
"svg",
|
|
8557
8660
|
{
|
|
8558
8661
|
className: cn("h-5 w-5 transition-transform", collapsed && "rotate-180"),
|
|
@@ -8578,7 +8681,7 @@ SidebarToggle.displayName = "SidebarToggle";
|
|
|
8578
8681
|
|
|
8579
8682
|
// src/components/sidebar-rail.tsx
|
|
8580
8683
|
import * as React48 from "react";
|
|
8581
|
-
import { Fragment as
|
|
8684
|
+
import { Fragment as Fragment9, jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
8582
8685
|
var SidebarRailContext = React48.createContext(void 0);
|
|
8583
8686
|
var useSidebarRail = () => {
|
|
8584
8687
|
const context = React48.useContext(SidebarRailContext);
|
|
@@ -8775,7 +8878,7 @@ var IconRailItem = React48.forwardRef(
|
|
|
8775
8878
|
setActiveRail(railId);
|
|
8776
8879
|
}
|
|
8777
8880
|
};
|
|
8778
|
-
return /* @__PURE__ */
|
|
8881
|
+
return /* @__PURE__ */ jsxs33(
|
|
8779
8882
|
"button",
|
|
8780
8883
|
{
|
|
8781
8884
|
ref,
|
|
@@ -8811,7 +8914,7 @@ var RailPanel = React48.forwardRef(
|
|
|
8811
8914
|
}
|
|
8812
8915
|
};
|
|
8813
8916
|
if (!isVisible) return null;
|
|
8814
|
-
return /* @__PURE__ */
|
|
8917
|
+
return /* @__PURE__ */ jsxs33(
|
|
8815
8918
|
"div",
|
|
8816
8919
|
{
|
|
8817
8920
|
ref,
|
|
@@ -8824,7 +8927,7 @@ var RailPanel = React48.forwardRef(
|
|
|
8824
8927
|
onMouseLeave: handleMouseLeave,
|
|
8825
8928
|
...props,
|
|
8826
8929
|
children: [
|
|
8827
|
-
title && /* @__PURE__ */
|
|
8930
|
+
title && /* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between h-14 px-4 border-b border-border shrink-0", children: [
|
|
8828
8931
|
/* @__PURE__ */ jsx48("span", { className: "font-semibold text-sm", children: title }),
|
|
8829
8932
|
/* @__PURE__ */ jsx48(
|
|
8830
8933
|
"button",
|
|
@@ -8833,7 +8936,7 @@ var RailPanel = React48.forwardRef(
|
|
|
8833
8936
|
onClick: () => setActiveRail(null),
|
|
8834
8937
|
className: "p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
|
|
8835
8938
|
"aria-label": "Close panel",
|
|
8836
|
-
children: /* @__PURE__ */
|
|
8939
|
+
children: /* @__PURE__ */ jsxs33(
|
|
8837
8940
|
"svg",
|
|
8838
8941
|
{
|
|
8839
8942
|
className: "h-4 w-4",
|
|
@@ -8862,7 +8965,7 @@ var RailPanel = React48.forwardRef(
|
|
|
8862
8965
|
RailPanel.displayName = "RailPanel";
|
|
8863
8966
|
var RailPanelGroup = React48.forwardRef(
|
|
8864
8967
|
({ className, label, children, ...props }, ref) => {
|
|
8865
|
-
return /* @__PURE__ */
|
|
8968
|
+
return /* @__PURE__ */ jsxs33("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
|
|
8866
8969
|
label && /* @__PURE__ */ jsx48("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
|
|
8867
8970
|
/* @__PURE__ */ jsx48("div", { className: "space-y-1", children })
|
|
8868
8971
|
] });
|
|
@@ -8871,7 +8974,7 @@ var RailPanelGroup = React48.forwardRef(
|
|
|
8871
8974
|
RailPanelGroup.displayName = "RailPanelGroup";
|
|
8872
8975
|
var RailPanelItem = React48.forwardRef(
|
|
8873
8976
|
({ className, icon, active, disabled, badge, href, children, onClick, ...props }, ref) => {
|
|
8874
|
-
const content = /* @__PURE__ */
|
|
8977
|
+
const content = /* @__PURE__ */ jsxs33(Fragment9, { children: [
|
|
8875
8978
|
icon && /* @__PURE__ */ jsx48("span", { className: "shrink-0", children: icon }),
|
|
8876
8979
|
/* @__PURE__ */ jsx48("span", { className: "flex-1 truncate", children }),
|
|
8877
8980
|
badge && /* @__PURE__ */ jsx48("span", { className: "shrink-0", children: badge })
|
|
@@ -8903,18 +9006,18 @@ RailPanelItem.displayName = "RailPanelItem";
|
|
|
8903
9006
|
|
|
8904
9007
|
// src/playground.tsx
|
|
8905
9008
|
import * as React49 from "react";
|
|
8906
|
-
import { jsx as jsx49, jsxs as
|
|
8907
|
-
var Section = ({ title, children }) => /* @__PURE__ */
|
|
9009
|
+
import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9010
|
+
var Section = ({ title, children }) => /* @__PURE__ */ jsxs34("div", { className: "mb-8", children: [
|
|
8908
9011
|
/* @__PURE__ */ jsx49("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
|
|
8909
9012
|
/* @__PURE__ */ jsx49("div", { className: "p-4 border border-border rounded-lg bg-background", children })
|
|
8910
9013
|
] });
|
|
8911
9014
|
var ThemeToggle = () => {
|
|
8912
9015
|
const { theme, setTheme } = useTheme();
|
|
8913
|
-
return /* @__PURE__ */
|
|
9016
|
+
return /* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
8914
9017
|
/* @__PURE__ */ jsx49(Label, { children: "Theme:" }),
|
|
8915
|
-
/* @__PURE__ */
|
|
9018
|
+
/* @__PURE__ */ jsxs34(SelectNamespace, { value: theme, onValueChange: (value) => setTheme(value), children: [
|
|
8916
9019
|
/* @__PURE__ */ jsx49(SelectTrigger, { className: "w-32", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select theme" }) }),
|
|
8917
|
-
/* @__PURE__ */
|
|
9020
|
+
/* @__PURE__ */ jsxs34(SelectContent, { children: [
|
|
8918
9021
|
/* @__PURE__ */ jsx49(SelectItem, { value: "light", children: "Light" }),
|
|
8919
9022
|
/* @__PURE__ */ jsx49(SelectItem, { value: "dark", children: "Dark" }),
|
|
8920
9023
|
/* @__PURE__ */ jsx49(SelectItem, { value: "system", children: "System" })
|
|
@@ -8937,13 +9040,13 @@ var PlaygroundContent = () => {
|
|
|
8937
9040
|
{ value: "svelte", label: "Svelte" },
|
|
8938
9041
|
{ value: "solid", label: "SolidJS" }
|
|
8939
9042
|
];
|
|
8940
|
-
return /* @__PURE__ */ jsx49("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */
|
|
8941
|
-
/* @__PURE__ */
|
|
9043
|
+
return /* @__PURE__ */ jsx49("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */ jsxs34("div", { className: "max-w-4xl mx-auto", children: [
|
|
9044
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center justify-between mb-8", children: [
|
|
8942
9045
|
/* @__PURE__ */ jsx49("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
|
|
8943
9046
|
/* @__PURE__ */ jsx49(ThemeToggle, {})
|
|
8944
9047
|
] }),
|
|
8945
|
-
/* @__PURE__ */
|
|
8946
|
-
/* @__PURE__ */
|
|
9048
|
+
/* @__PURE__ */ jsxs34(Section, { title: "Button", children: [
|
|
9049
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex flex-wrap gap-4", children: [
|
|
8947
9050
|
/* @__PURE__ */ jsx49(Button, { variant: "default", children: "Default" }),
|
|
8948
9051
|
/* @__PURE__ */ jsx49(Button, { variant: "destructive", children: "Destructive" }),
|
|
8949
9052
|
/* @__PURE__ */ jsx49(Button, { variant: "outline", children: "Outline" }),
|
|
@@ -8951,19 +9054,19 @@ var PlaygroundContent = () => {
|
|
|
8951
9054
|
/* @__PURE__ */ jsx49(Button, { variant: "ghost", children: "Ghost" }),
|
|
8952
9055
|
/* @__PURE__ */ jsx49(Button, { variant: "link", children: "Link" })
|
|
8953
9056
|
] }),
|
|
8954
|
-
/* @__PURE__ */
|
|
9057
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
8955
9058
|
/* @__PURE__ */ jsx49(Button, { size: "sm", children: "Small" }),
|
|
8956
9059
|
/* @__PURE__ */ jsx49(Button, { size: "default", children: "Default" }),
|
|
8957
9060
|
/* @__PURE__ */ jsx49(Button, { size: "lg", children: "Large" }),
|
|
8958
9061
|
/* @__PURE__ */ jsx49(Button, { size: "icon", children: "\u{1F514}" })
|
|
8959
9062
|
] }),
|
|
8960
|
-
/* @__PURE__ */
|
|
9063
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
8961
9064
|
/* @__PURE__ */ jsx49(Button, { disabled: true, children: "Disabled" }),
|
|
8962
9065
|
/* @__PURE__ */ jsx49(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
|
|
8963
9066
|
] })
|
|
8964
9067
|
] }),
|
|
8965
|
-
/* @__PURE__ */ jsx49(Section, { title: "Input", children: /* @__PURE__ */
|
|
8966
|
-
/* @__PURE__ */
|
|
9068
|
+
/* @__PURE__ */ jsx49(Section, { title: "Input", children: /* @__PURE__ */ jsxs34("div", { className: "space-y-4 max-w-md", children: [
|
|
9069
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
8967
9070
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "input-default", children: "Default Input" }),
|
|
8968
9071
|
/* @__PURE__ */ jsx49(
|
|
8969
9072
|
Input,
|
|
@@ -8975,17 +9078,17 @@ var PlaygroundContent = () => {
|
|
|
8975
9078
|
}
|
|
8976
9079
|
)
|
|
8977
9080
|
] }),
|
|
8978
|
-
/* @__PURE__ */
|
|
9081
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
8979
9082
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
|
|
8980
9083
|
/* @__PURE__ */ jsx49(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
|
|
8981
9084
|
] }),
|
|
8982
|
-
/* @__PURE__ */
|
|
9085
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
8983
9086
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "input-type", children: "Email Input" }),
|
|
8984
9087
|
/* @__PURE__ */ jsx49(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
|
|
8985
9088
|
] })
|
|
8986
9089
|
] }) }),
|
|
8987
|
-
/* @__PURE__ */ jsx49(Section, { title: "Textarea", children: /* @__PURE__ */
|
|
8988
|
-
/* @__PURE__ */
|
|
9090
|
+
/* @__PURE__ */ jsx49(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs34("div", { className: "space-y-4 max-w-md", children: [
|
|
9091
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
8989
9092
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
|
|
8990
9093
|
/* @__PURE__ */ jsx49(
|
|
8991
9094
|
Textarea,
|
|
@@ -8997,34 +9100,34 @@ var PlaygroundContent = () => {
|
|
|
8997
9100
|
}
|
|
8998
9101
|
)
|
|
8999
9102
|
] }),
|
|
9000
|
-
/* @__PURE__ */
|
|
9103
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9001
9104
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
|
|
9002
9105
|
/* @__PURE__ */ jsx49(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
|
|
9003
9106
|
] })
|
|
9004
9107
|
] }) }),
|
|
9005
|
-
/* @__PURE__ */ jsx49(Section, { title: "Select", children: /* @__PURE__ */
|
|
9006
|
-
/* @__PURE__ */
|
|
9108
|
+
/* @__PURE__ */ jsx49(Section, { title: "Select", children: /* @__PURE__ */ jsxs34("div", { className: "space-y-4 max-w-md", children: [
|
|
9109
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9007
9110
|
/* @__PURE__ */ jsx49(Label, { children: "Default Select" }),
|
|
9008
|
-
/* @__PURE__ */
|
|
9111
|
+
/* @__PURE__ */ jsxs34(SelectNamespace, { value: selectValue, onValueChange: setSelectValue, children: [
|
|
9009
9112
|
/* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select an option..." }) }),
|
|
9010
|
-
/* @__PURE__ */
|
|
9113
|
+
/* @__PURE__ */ jsxs34(SelectContent, { children: [
|
|
9011
9114
|
/* @__PURE__ */ jsx49(SelectItem, { value: "option1", children: "Option 1" }),
|
|
9012
9115
|
/* @__PURE__ */ jsx49(SelectItem, { value: "option2", children: "Option 2" }),
|
|
9013
9116
|
/* @__PURE__ */ jsx49(SelectItem, { value: "option3", children: "Option 3" })
|
|
9014
9117
|
] })
|
|
9015
9118
|
] })
|
|
9016
9119
|
] }),
|
|
9017
|
-
/* @__PURE__ */
|
|
9120
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9018
9121
|
/* @__PURE__ */ jsx49(Label, { children: "Grouped Select" }),
|
|
9019
|
-
/* @__PURE__ */
|
|
9122
|
+
/* @__PURE__ */ jsxs34(SelectNamespace, { children: [
|
|
9020
9123
|
/* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select a food..." }) }),
|
|
9021
|
-
/* @__PURE__ */
|
|
9022
|
-
/* @__PURE__ */
|
|
9124
|
+
/* @__PURE__ */ jsxs34(SelectContent, { children: [
|
|
9125
|
+
/* @__PURE__ */ jsxs34(SelectGroup, { children: [
|
|
9023
9126
|
/* @__PURE__ */ jsx49(SelectLabel, { children: "Fruits" }),
|
|
9024
9127
|
/* @__PURE__ */ jsx49(SelectItem, { value: "apple", children: "Apple" }),
|
|
9025
9128
|
/* @__PURE__ */ jsx49(SelectItem, { value: "banana", children: "Banana" })
|
|
9026
9129
|
] }),
|
|
9027
|
-
/* @__PURE__ */
|
|
9130
|
+
/* @__PURE__ */ jsxs34(SelectGroup, { children: [
|
|
9028
9131
|
/* @__PURE__ */ jsx49(SelectLabel, { children: "Vegetables" }),
|
|
9029
9132
|
/* @__PURE__ */ jsx49(SelectItem, { value: "carrot", children: "Carrot" }),
|
|
9030
9133
|
/* @__PURE__ */ jsx49(SelectItem, { value: "potato", children: "Potato" })
|
|
@@ -9032,15 +9135,15 @@ var PlaygroundContent = () => {
|
|
|
9032
9135
|
] })
|
|
9033
9136
|
] })
|
|
9034
9137
|
] }),
|
|
9035
|
-
/* @__PURE__ */
|
|
9138
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9036
9139
|
/* @__PURE__ */ jsx49(Label, { children: "Disabled Select" }),
|
|
9037
|
-
/* @__PURE__ */
|
|
9140
|
+
/* @__PURE__ */ jsxs34(SelectNamespace, { disabled: true, children: [
|
|
9038
9141
|
/* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Disabled..." }) }),
|
|
9039
9142
|
/* @__PURE__ */ jsx49(SelectContent, { children: /* @__PURE__ */ jsx49(SelectItem, { value: "none", children: "None" }) })
|
|
9040
9143
|
] })
|
|
9041
9144
|
] })
|
|
9042
9145
|
] }) }),
|
|
9043
|
-
/* @__PURE__ */ jsx49(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx49("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */
|
|
9146
|
+
/* @__PURE__ */ jsx49(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx49("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs34("div", { children: [
|
|
9044
9147
|
/* @__PURE__ */ jsx49(Label, { children: "Framework" }),
|
|
9045
9148
|
/* @__PURE__ */ jsx49(
|
|
9046
9149
|
Combobox,
|
|
@@ -9054,8 +9157,8 @@ var PlaygroundContent = () => {
|
|
|
9054
9157
|
}
|
|
9055
9158
|
)
|
|
9056
9159
|
] }) }) }),
|
|
9057
|
-
/* @__PURE__ */ jsx49(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */
|
|
9058
|
-
/* @__PURE__ */
|
|
9160
|
+
/* @__PURE__ */ jsx49(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */ jsxs34("div", { className: "space-y-4", children: [
|
|
9161
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
9059
9162
|
/* @__PURE__ */ jsx49(
|
|
9060
9163
|
Checkbox,
|
|
9061
9164
|
{
|
|
@@ -9066,12 +9169,12 @@ var PlaygroundContent = () => {
|
|
|
9066
9169
|
),
|
|
9067
9170
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
|
|
9068
9171
|
] }),
|
|
9069
|
-
/* @__PURE__ */
|
|
9172
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
9070
9173
|
/* @__PURE__ */ jsx49(Checkbox, { id: "checkbox-disabled", disabled: true }),
|
|
9071
9174
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
|
|
9072
9175
|
] }),
|
|
9073
9176
|
/* @__PURE__ */ jsx49(Separator, {}),
|
|
9074
|
-
/* @__PURE__ */
|
|
9177
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
9075
9178
|
/* @__PURE__ */ jsx49(
|
|
9076
9179
|
Switch,
|
|
9077
9180
|
{
|
|
@@ -9082,76 +9185,76 @@ var PlaygroundContent = () => {
|
|
|
9082
9185
|
),
|
|
9083
9186
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "switch", children: "Enable notifications" })
|
|
9084
9187
|
] }),
|
|
9085
|
-
/* @__PURE__ */
|
|
9188
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
9086
9189
|
/* @__PURE__ */ jsx49(Switch, { id: "switch-disabled", disabled: true }),
|
|
9087
9190
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
|
|
9088
9191
|
] })
|
|
9089
9192
|
] }) }),
|
|
9090
|
-
/* @__PURE__ */ jsx49(Section, { title: "Badge", children: /* @__PURE__ */
|
|
9193
|
+
/* @__PURE__ */ jsx49(Section, { title: "Badge", children: /* @__PURE__ */ jsxs34("div", { className: "flex flex-wrap gap-4", children: [
|
|
9091
9194
|
/* @__PURE__ */ jsx49(Badge, { children: "Default" }),
|
|
9092
9195
|
/* @__PURE__ */ jsx49(Badge, { color: "success", children: "Success" }),
|
|
9093
9196
|
/* @__PURE__ */ jsx49(Badge, { color: "warning", children: "Warning" }),
|
|
9094
9197
|
/* @__PURE__ */ jsx49(Badge, { color: "error", variant: "outlined", children: "Error" }),
|
|
9095
9198
|
/* @__PURE__ */ jsx49(Badge, { color: "destructive", variant: "text", children: "Destructive" })
|
|
9096
9199
|
] }) }),
|
|
9097
|
-
/* @__PURE__ */ jsx49(Section, { title: "Card", children: /* @__PURE__ */
|
|
9098
|
-
/* @__PURE__ */
|
|
9099
|
-
/* @__PURE__ */
|
|
9200
|
+
/* @__PURE__ */ jsx49(Section, { title: "Card", children: /* @__PURE__ */ jsxs34("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
9201
|
+
/* @__PURE__ */ jsxs34(Card, { children: [
|
|
9202
|
+
/* @__PURE__ */ jsxs34(CardHeader, { children: [
|
|
9100
9203
|
/* @__PURE__ */ jsx49(CardTitle, { children: "Card Title" }),
|
|
9101
9204
|
/* @__PURE__ */ jsx49(CardDescription, { children: "Card description goes here" })
|
|
9102
9205
|
] }),
|
|
9103
9206
|
/* @__PURE__ */ jsx49(CardContent, { children: /* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "This is the card content area." }) }),
|
|
9104
|
-
/* @__PURE__ */
|
|
9207
|
+
/* @__PURE__ */ jsxs34(CardFooter, { children: [
|
|
9105
9208
|
/* @__PURE__ */ jsx49(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
|
|
9106
9209
|
/* @__PURE__ */ jsx49(Button, { children: "Submit" })
|
|
9107
9210
|
] })
|
|
9108
9211
|
] }),
|
|
9109
|
-
/* @__PURE__ */
|
|
9110
|
-
/* @__PURE__ */
|
|
9212
|
+
/* @__PURE__ */ jsxs34(Card, { children: [
|
|
9213
|
+
/* @__PURE__ */ jsxs34(CardHeader, { children: [
|
|
9111
9214
|
/* @__PURE__ */ jsx49(CardTitle, { children: "Another Card" }),
|
|
9112
9215
|
/* @__PURE__ */ jsx49(CardDescription, { children: "With different content" })
|
|
9113
9216
|
] }),
|
|
9114
|
-
/* @__PURE__ */ jsx49(CardContent, { children: /* @__PURE__ */
|
|
9217
|
+
/* @__PURE__ */ jsx49(CardContent, { children: /* @__PURE__ */ jsxs34("div", { className: "space-y-2", children: [
|
|
9115
9218
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "card-input", children: "Name" }),
|
|
9116
9219
|
/* @__PURE__ */ jsx49(Input, { id: "card-input", placeholder: "Enter name..." })
|
|
9117
9220
|
] }) }),
|
|
9118
9221
|
/* @__PURE__ */ jsx49(CardFooter, { children: /* @__PURE__ */ jsx49(Button, { className: "w-full", children: "Save" }) })
|
|
9119
9222
|
] })
|
|
9120
9223
|
] }) }),
|
|
9121
|
-
/* @__PURE__ */
|
|
9224
|
+
/* @__PURE__ */ jsxs34(Section, { title: "Dialog", children: [
|
|
9122
9225
|
/* @__PURE__ */ jsx49(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
|
|
9123
|
-
/* @__PURE__ */ jsx49(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */
|
|
9124
|
-
/* @__PURE__ */
|
|
9226
|
+
/* @__PURE__ */ jsx49(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs34(DialogContent, { children: [
|
|
9227
|
+
/* @__PURE__ */ jsxs34(DialogHeader, { children: [
|
|
9125
9228
|
/* @__PURE__ */ jsx49(DialogTitle, { children: "Create New Zone" }),
|
|
9126
9229
|
/* @__PURE__ */ jsx49(DialogDescription, { children: "Fill in the details below to create a new zone." })
|
|
9127
9230
|
] }),
|
|
9128
|
-
/* @__PURE__ */
|
|
9129
|
-
/* @__PURE__ */
|
|
9130
|
-
/* @__PURE__ */
|
|
9231
|
+
/* @__PURE__ */ jsxs34("div", { className: "space-y-4 py-4", children: [
|
|
9232
|
+
/* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
9233
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9131
9234
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
|
|
9132
9235
|
/* @__PURE__ */ jsx49(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
|
|
9133
9236
|
] }),
|
|
9134
|
-
/* @__PURE__ */
|
|
9237
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9135
9238
|
/* @__PURE__ */ jsx49(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
|
|
9136
9239
|
/* @__PURE__ */ jsx49(Input, { id: "zone-code", placeholder: "eg :hyd022" })
|
|
9137
9240
|
] })
|
|
9138
9241
|
] }),
|
|
9139
|
-
/* @__PURE__ */
|
|
9140
|
-
/* @__PURE__ */
|
|
9242
|
+
/* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
9243
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9141
9244
|
/* @__PURE__ */ jsx49(Label, { children: "State *" }),
|
|
9142
|
-
/* @__PURE__ */
|
|
9245
|
+
/* @__PURE__ */ jsxs34(SelectNamespace, { children: [
|
|
9143
9246
|
/* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select state" }) }),
|
|
9144
|
-
/* @__PURE__ */
|
|
9247
|
+
/* @__PURE__ */ jsxs34(SelectContent, { children: [
|
|
9145
9248
|
/* @__PURE__ */ jsx49(SelectItem, { value: "telangana", children: "TELANGANA" }),
|
|
9146
9249
|
/* @__PURE__ */ jsx49(SelectItem, { value: "andhra", children: "ANDHRA PRADESH" })
|
|
9147
9250
|
] })
|
|
9148
9251
|
] })
|
|
9149
9252
|
] }),
|
|
9150
|
-
/* @__PURE__ */
|
|
9253
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
9151
9254
|
/* @__PURE__ */ jsx49(Label, { children: "District *" }),
|
|
9152
|
-
/* @__PURE__ */
|
|
9255
|
+
/* @__PURE__ */ jsxs34(SelectNamespace, { children: [
|
|
9153
9256
|
/* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select District" }) }),
|
|
9154
|
-
/* @__PURE__ */
|
|
9257
|
+
/* @__PURE__ */ jsxs34(SelectContent, { children: [
|
|
9155
9258
|
/* @__PURE__ */ jsx49(SelectItem, { value: "hyderabad", children: "HYDERABAD" }),
|
|
9156
9259
|
/* @__PURE__ */ jsx49(SelectItem, { value: "rangareddy", children: "RANGAREDDY" })
|
|
9157
9260
|
] })
|
|
@@ -9159,34 +9262,34 @@ var PlaygroundContent = () => {
|
|
|
9159
9262
|
] })
|
|
9160
9263
|
] })
|
|
9161
9264
|
] }),
|
|
9162
|
-
/* @__PURE__ */
|
|
9265
|
+
/* @__PURE__ */ jsxs34(DialogFooter, { children: [
|
|
9163
9266
|
/* @__PURE__ */ jsx49(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
|
|
9164
9267
|
/* @__PURE__ */ jsx49(Button, { onClick: () => setDialogOpen(false), children: "Create" })
|
|
9165
9268
|
] })
|
|
9166
9269
|
] }) })
|
|
9167
9270
|
] }),
|
|
9168
|
-
/* @__PURE__ */ jsx49(Section, { title: "Table", children: /* @__PURE__ */
|
|
9271
|
+
/* @__PURE__ */ jsx49(Section, { title: "Table", children: /* @__PURE__ */ jsxs34(TableNamespace, { children: [
|
|
9169
9272
|
/* @__PURE__ */ jsx49(TableCaption, { children: "A list of recent invoices" }),
|
|
9170
|
-
/* @__PURE__ */ jsx49(TableHeader, { children: /* @__PURE__ */
|
|
9273
|
+
/* @__PURE__ */ jsx49(TableHeader, { children: /* @__PURE__ */ jsxs34(TableRow, { children: [
|
|
9171
9274
|
/* @__PURE__ */ jsx49(TableHead, { children: "Invoice" }),
|
|
9172
9275
|
/* @__PURE__ */ jsx49(TableHead, { children: "Status" }),
|
|
9173
9276
|
/* @__PURE__ */ jsx49(TableHead, { children: "Method" }),
|
|
9174
9277
|
/* @__PURE__ */ jsx49(TableHead, { className: "text-right", children: "Amount" })
|
|
9175
9278
|
] }) }),
|
|
9176
|
-
/* @__PURE__ */
|
|
9177
|
-
/* @__PURE__ */
|
|
9279
|
+
/* @__PURE__ */ jsxs34(TableBody, { children: [
|
|
9280
|
+
/* @__PURE__ */ jsxs34(TableRow, { children: [
|
|
9178
9281
|
/* @__PURE__ */ jsx49(TableCell, { children: "INV001" }),
|
|
9179
9282
|
/* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Badge, { color: "success", children: "Paid" }) }),
|
|
9180
9283
|
/* @__PURE__ */ jsx49(TableCell, { children: "Credit Card" }),
|
|
9181
9284
|
/* @__PURE__ */ jsx49(TableCell, { className: "text-right", children: "$250.00" })
|
|
9182
9285
|
] }),
|
|
9183
|
-
/* @__PURE__ */
|
|
9286
|
+
/* @__PURE__ */ jsxs34(TableRow, { children: [
|
|
9184
9287
|
/* @__PURE__ */ jsx49(TableCell, { children: "INV002" }),
|
|
9185
9288
|
/* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Badge, { color: "warning", variant: "outlined", children: "Pending" }) }),
|
|
9186
9289
|
/* @__PURE__ */ jsx49(TableCell, { children: "PayPal" }),
|
|
9187
9290
|
/* @__PURE__ */ jsx49(TableCell, { className: "text-right", children: "$150.00" })
|
|
9188
9291
|
] }),
|
|
9189
|
-
/* @__PURE__ */
|
|
9292
|
+
/* @__PURE__ */ jsxs34(TableRow, { children: [
|
|
9190
9293
|
/* @__PURE__ */ jsx49(TableCell, { children: "INV003" }),
|
|
9191
9294
|
/* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Badge, { color: "error", variant: "outlined", children: "Failed" }) }),
|
|
9192
9295
|
/* @__PURE__ */ jsx49(TableCell, { children: "Bank Transfer" }),
|
|
@@ -9194,7 +9297,7 @@ var PlaygroundContent = () => {
|
|
|
9194
9297
|
] })
|
|
9195
9298
|
] })
|
|
9196
9299
|
] }) }),
|
|
9197
|
-
/* @__PURE__ */ jsx49(Section, { title: "Pagination", children: /* @__PURE__ */ jsx49(PaginationNamespace, { children: /* @__PURE__ */
|
|
9300
|
+
/* @__PURE__ */ jsx49(Section, { title: "Pagination", children: /* @__PURE__ */ jsx49(PaginationNamespace, { children: /* @__PURE__ */ jsxs34(PaginationContent, { children: [
|
|
9198
9301
|
/* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
|
|
9199
9302
|
/* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationLink, { isActive: true, children: "1" }) }),
|
|
9200
9303
|
/* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationLink, { children: "2" }) }),
|
|
@@ -9202,31 +9305,31 @@ var PlaygroundContent = () => {
|
|
|
9202
9305
|
/* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationEllipsis, {}) }),
|
|
9203
9306
|
/* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationNext, { onClick: () => console.log("Next") }) })
|
|
9204
9307
|
] }) }) }),
|
|
9205
|
-
/* @__PURE__ */ jsx49(Section, { title: "Spinner", children: /* @__PURE__ */
|
|
9206
|
-
/* @__PURE__ */
|
|
9207
|
-
/* @__PURE__ */ jsx49(
|
|
9308
|
+
/* @__PURE__ */ jsx49(Section, { title: "Spinner", children: /* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-8", children: [
|
|
9309
|
+
/* @__PURE__ */ jsxs34("div", { className: "text-center", children: [
|
|
9310
|
+
/* @__PURE__ */ jsx49(Spinner2, { size: "sm" }),
|
|
9208
9311
|
/* @__PURE__ */ jsx49("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
|
|
9209
9312
|
] }),
|
|
9210
|
-
/* @__PURE__ */
|
|
9211
|
-
/* @__PURE__ */ jsx49(
|
|
9313
|
+
/* @__PURE__ */ jsxs34("div", { className: "text-center", children: [
|
|
9314
|
+
/* @__PURE__ */ jsx49(Spinner2, { size: "default" }),
|
|
9212
9315
|
/* @__PURE__ */ jsx49("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
|
|
9213
9316
|
] }),
|
|
9214
|
-
/* @__PURE__ */
|
|
9215
|
-
/* @__PURE__ */ jsx49(
|
|
9317
|
+
/* @__PURE__ */ jsxs34("div", { className: "text-center", children: [
|
|
9318
|
+
/* @__PURE__ */ jsx49(Spinner2, { size: "lg" }),
|
|
9216
9319
|
/* @__PURE__ */ jsx49("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
|
|
9217
9320
|
] })
|
|
9218
9321
|
] }) }),
|
|
9219
|
-
/* @__PURE__ */ jsx49(Section, { title: "Separator", children: /* @__PURE__ */
|
|
9322
|
+
/* @__PURE__ */ jsx49(Section, { title: "Separator", children: /* @__PURE__ */ jsxs34("div", { className: "space-y-4", children: [
|
|
9220
9323
|
/* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "Content above separator" }),
|
|
9221
9324
|
/* @__PURE__ */ jsx49(Separator, {}),
|
|
9222
9325
|
/* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "Content below separator" }),
|
|
9223
|
-
/* @__PURE__ */
|
|
9326
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center h-10", children: [
|
|
9224
9327
|
/* @__PURE__ */ jsx49("span", { className: "text-foreground", children: "Left" }),
|
|
9225
9328
|
/* @__PURE__ */ jsx49(Separator, { orientation: "vertical", className: "mx-4" }),
|
|
9226
9329
|
/* @__PURE__ */ jsx49("span", { className: "text-foreground", children: "Right" })
|
|
9227
9330
|
] })
|
|
9228
9331
|
] }) }),
|
|
9229
|
-
/* @__PURE__ */ jsx49(Section, { title: "Typography & Colors", children: /* @__PURE__ */
|
|
9332
|
+
/* @__PURE__ */ jsx49(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs34("div", { className: "space-y-2", children: [
|
|
9230
9333
|
/* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
|
|
9231
9334
|
/* @__PURE__ */ jsx49("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
|
|
9232
9335
|
/* @__PURE__ */ jsx49("p", { className: "text-accent", children: "text-accent - Accent color" }),
|
|
@@ -9421,7 +9524,7 @@ export {
|
|
|
9421
9524
|
Snackbar,
|
|
9422
9525
|
SnackbarContent,
|
|
9423
9526
|
SnackbarProvider,
|
|
9424
|
-
Spinner,
|
|
9527
|
+
Spinner2 as Spinner,
|
|
9425
9528
|
Stack,
|
|
9426
9529
|
Switch,
|
|
9427
9530
|
TableNamespace as Table,
|