@snapcall/design-system 1.15.1 → 1.16.0
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.mts +42 -7
- package/dist/index.d.ts +42 -7
- package/dist/index.js +552 -223
- package/dist/index.mjs +563 -245
- package/dist/tailwind.css +1 -1
- package/package.json +7 -8
package/dist/index.mjs
CHANGED
|
@@ -51781,13 +51781,209 @@ function Calendar(_a) {
|
|
|
51781
51781
|
}
|
|
51782
51782
|
Calendar.displayName = "Calendar";
|
|
51783
51783
|
|
|
51784
|
-
// src/components/
|
|
51784
|
+
// src/components/Carousel/Carousel.tsx
|
|
51785
51785
|
import * as React5 from "react";
|
|
51786
|
-
import
|
|
51787
|
-
import { jsx as jsx1230 } from "react/jsx-runtime";
|
|
51788
|
-
var
|
|
51786
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
51787
|
+
import { jsx as jsx1230, jsxs as jsxs1010 } from "react/jsx-runtime";
|
|
51788
|
+
var CarouselContext = React5.createContext(null);
|
|
51789
|
+
function useCarousel() {
|
|
51790
|
+
const context = React5.useContext(CarouselContext);
|
|
51791
|
+
if (!context) {
|
|
51792
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
51793
|
+
}
|
|
51794
|
+
return context;
|
|
51795
|
+
}
|
|
51796
|
+
var Carousel = React5.forwardRef(
|
|
51797
|
+
(_a, ref) => {
|
|
51798
|
+
var _b = _a, {
|
|
51799
|
+
orientation = "horizontal",
|
|
51800
|
+
opts,
|
|
51801
|
+
setApi,
|
|
51802
|
+
plugins,
|
|
51803
|
+
className,
|
|
51804
|
+
children
|
|
51805
|
+
} = _b, props = __objRest(_b, [
|
|
51806
|
+
"orientation",
|
|
51807
|
+
"opts",
|
|
51808
|
+
"setApi",
|
|
51809
|
+
"plugins",
|
|
51810
|
+
"className",
|
|
51811
|
+
"children"
|
|
51812
|
+
]);
|
|
51813
|
+
const [carouselRef, api] = useEmblaCarousel(
|
|
51814
|
+
__spreadProps(__spreadValues({}, opts), {
|
|
51815
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
51816
|
+
}),
|
|
51817
|
+
plugins
|
|
51818
|
+
);
|
|
51819
|
+
const [canScrollPrev, setCanScrollPrev] = React5.useState(false);
|
|
51820
|
+
const [canScrollNext, setCanScrollNext] = React5.useState(false);
|
|
51821
|
+
const onSelect = React5.useCallback((api2) => {
|
|
51822
|
+
if (!api2) {
|
|
51823
|
+
return;
|
|
51824
|
+
}
|
|
51825
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
51826
|
+
setCanScrollNext(api2.canScrollNext());
|
|
51827
|
+
}, []);
|
|
51828
|
+
const scrollPrev = React5.useCallback(() => {
|
|
51829
|
+
api == null ? void 0 : api.scrollPrev();
|
|
51830
|
+
}, [api]);
|
|
51831
|
+
const scrollNext = React5.useCallback(() => {
|
|
51832
|
+
api == null ? void 0 : api.scrollNext();
|
|
51833
|
+
}, [api]);
|
|
51834
|
+
const handleKeyDown = React5.useCallback(
|
|
51835
|
+
(event) => {
|
|
51836
|
+
if (event.key === "ArrowLeft") {
|
|
51837
|
+
event.preventDefault();
|
|
51838
|
+
scrollPrev();
|
|
51839
|
+
} else if (event.key === "ArrowRight") {
|
|
51840
|
+
event.preventDefault();
|
|
51841
|
+
scrollNext();
|
|
51842
|
+
}
|
|
51843
|
+
},
|
|
51844
|
+
[scrollPrev, scrollNext]
|
|
51845
|
+
);
|
|
51846
|
+
React5.useEffect(() => {
|
|
51847
|
+
if (!api || !setApi) {
|
|
51848
|
+
return;
|
|
51849
|
+
}
|
|
51850
|
+
setApi(api);
|
|
51851
|
+
}, [api, setApi]);
|
|
51852
|
+
React5.useEffect(() => {
|
|
51853
|
+
if (!api) {
|
|
51854
|
+
return;
|
|
51855
|
+
}
|
|
51856
|
+
onSelect(api);
|
|
51857
|
+
api.on("reInit", onSelect);
|
|
51858
|
+
api.on("select", onSelect);
|
|
51859
|
+
return () => {
|
|
51860
|
+
api == null ? void 0 : api.off("select", onSelect);
|
|
51861
|
+
};
|
|
51862
|
+
}, [api, onSelect]);
|
|
51863
|
+
return /* @__PURE__ */ jsx1230(
|
|
51864
|
+
CarouselContext.Provider,
|
|
51865
|
+
{
|
|
51866
|
+
value: {
|
|
51867
|
+
carouselRef,
|
|
51868
|
+
api,
|
|
51869
|
+
opts,
|
|
51870
|
+
orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
|
|
51871
|
+
scrollPrev,
|
|
51872
|
+
scrollNext,
|
|
51873
|
+
canScrollPrev,
|
|
51874
|
+
canScrollNext
|
|
51875
|
+
},
|
|
51876
|
+
children: /* @__PURE__ */ jsx1230(
|
|
51877
|
+
"div",
|
|
51878
|
+
__spreadProps(__spreadValues({
|
|
51879
|
+
ref,
|
|
51880
|
+
onKeyDownCapture: handleKeyDown,
|
|
51881
|
+
className: cn("relative", className),
|
|
51882
|
+
role: "region",
|
|
51883
|
+
"aria-roledescription": "carousel"
|
|
51884
|
+
}, props), {
|
|
51885
|
+
children
|
|
51886
|
+
})
|
|
51887
|
+
)
|
|
51888
|
+
}
|
|
51889
|
+
);
|
|
51890
|
+
}
|
|
51891
|
+
);
|
|
51892
|
+
Carousel.displayName = "Carousel";
|
|
51893
|
+
var CarouselContent = React5.forwardRef((_a, ref) => {
|
|
51789
51894
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51895
|
+
const { carouselRef, orientation } = useCarousel();
|
|
51896
|
+
return /* @__PURE__ */ jsx1230("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx1230(
|
|
51897
|
+
"div",
|
|
51898
|
+
__spreadValues({
|
|
51899
|
+
ref,
|
|
51900
|
+
className: cn(
|
|
51901
|
+
"flex",
|
|
51902
|
+
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
51903
|
+
className
|
|
51904
|
+
)
|
|
51905
|
+
}, props)
|
|
51906
|
+
) });
|
|
51907
|
+
});
|
|
51908
|
+
CarouselContent.displayName = "CarouselContent";
|
|
51909
|
+
var CarouselItem = React5.forwardRef((_a, ref) => {
|
|
51910
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51911
|
+
const { orientation } = useCarousel();
|
|
51790
51912
|
return /* @__PURE__ */ jsx1230(
|
|
51913
|
+
"div",
|
|
51914
|
+
__spreadValues({
|
|
51915
|
+
ref,
|
|
51916
|
+
role: "group",
|
|
51917
|
+
"aria-roledescription": "slide",
|
|
51918
|
+
className: cn(
|
|
51919
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
51920
|
+
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
51921
|
+
className
|
|
51922
|
+
)
|
|
51923
|
+
}, props)
|
|
51924
|
+
);
|
|
51925
|
+
});
|
|
51926
|
+
CarouselItem.displayName = "CarouselItem";
|
|
51927
|
+
var CarouselPrevious = React5.forwardRef((_a, ref) => {
|
|
51928
|
+
var _b = _a, { className, variant = "outline" } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
51929
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
51930
|
+
return /* @__PURE__ */ jsxs1010(
|
|
51931
|
+
Button,
|
|
51932
|
+
__spreadProps(__spreadValues({
|
|
51933
|
+
ref,
|
|
51934
|
+
variant,
|
|
51935
|
+
size: "sm",
|
|
51936
|
+
icon: true,
|
|
51937
|
+
className: cn(
|
|
51938
|
+
"absolute",
|
|
51939
|
+
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2",
|
|
51940
|
+
className
|
|
51941
|
+
),
|
|
51942
|
+
disabled: !canScrollPrev,
|
|
51943
|
+
onClick: scrollPrev
|
|
51944
|
+
}, props), {
|
|
51945
|
+
children: [
|
|
51946
|
+
orientation === "horizontal" ? /* @__PURE__ */ jsx1230(ArrowLeftIcon, { size: 16 }) : /* @__PURE__ */ jsx1230(ArrowUpIcon, { size: 16 }),
|
|
51947
|
+
/* @__PURE__ */ jsx1230("span", { className: "sr-only", children: "Previous slide" })
|
|
51948
|
+
]
|
|
51949
|
+
})
|
|
51950
|
+
);
|
|
51951
|
+
});
|
|
51952
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
51953
|
+
var CarouselNext = React5.forwardRef((_a, ref) => {
|
|
51954
|
+
var _b = _a, { className, variant = "outline" } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
51955
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
51956
|
+
return /* @__PURE__ */ jsxs1010(
|
|
51957
|
+
Button,
|
|
51958
|
+
__spreadProps(__spreadValues({
|
|
51959
|
+
ref,
|
|
51960
|
+
variant,
|
|
51961
|
+
size: "sm",
|
|
51962
|
+
icon: true,
|
|
51963
|
+
className: cn(
|
|
51964
|
+
"absolute",
|
|
51965
|
+
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2",
|
|
51966
|
+
className
|
|
51967
|
+
),
|
|
51968
|
+
disabled: !canScrollNext,
|
|
51969
|
+
onClick: scrollNext
|
|
51970
|
+
}, props), {
|
|
51971
|
+
children: [
|
|
51972
|
+
orientation === "horizontal" ? /* @__PURE__ */ jsx1230(ArrowRightIcon, { size: 16 }) : /* @__PURE__ */ jsx1230(ArrowDownIcon, { size: 16 }),
|
|
51973
|
+
/* @__PURE__ */ jsx1230("span", { className: "sr-only", children: "Next slide" })
|
|
51974
|
+
]
|
|
51975
|
+
})
|
|
51976
|
+
);
|
|
51977
|
+
});
|
|
51978
|
+
CarouselNext.displayName = "CarouselNext";
|
|
51979
|
+
|
|
51980
|
+
// src/components/Checkbox/Checkbox.tsx
|
|
51981
|
+
import * as React6 from "react";
|
|
51982
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
51983
|
+
import { jsx as jsx1231 } from "react/jsx-runtime";
|
|
51984
|
+
var Checkbox = React6.forwardRef((_a, ref) => {
|
|
51985
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51986
|
+
return /* @__PURE__ */ jsx1231(
|
|
51791
51987
|
CheckboxPrimitive.Root,
|
|
51792
51988
|
__spreadProps(__spreadValues({
|
|
51793
51989
|
className: cn(
|
|
@@ -51796,20 +51992,20 @@ var Checkbox = React5.forwardRef((_a, ref) => {
|
|
|
51796
51992
|
)
|
|
51797
51993
|
}, props), {
|
|
51798
51994
|
ref,
|
|
51799
|
-
children: /* @__PURE__ */
|
|
51995
|
+
children: /* @__PURE__ */ jsx1231(CheckboxPrimitive.Indicator, { children: /* @__PURE__ */ jsx1231(CheckIcon, { size: 10, className: "text-white" }) })
|
|
51800
51996
|
})
|
|
51801
51997
|
);
|
|
51802
51998
|
});
|
|
51803
51999
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
51804
52000
|
|
|
51805
52001
|
// src/components/Command/Command.tsx
|
|
51806
|
-
import * as
|
|
51807
|
-
import { useState } from "react";
|
|
52002
|
+
import * as React7 from "react";
|
|
52003
|
+
import { useState as useState2 } from "react";
|
|
51808
52004
|
import { Command as CommandPrimitive } from "cmdk";
|
|
51809
|
-
import { jsx as
|
|
51810
|
-
var Command =
|
|
52005
|
+
import { jsx as jsx1232, jsxs as jsxs1011 } from "react/jsx-runtime";
|
|
52006
|
+
var Command = React7.forwardRef((_a, ref) => {
|
|
51811
52007
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51812
|
-
return /* @__PURE__ */
|
|
52008
|
+
return /* @__PURE__ */ jsx1232(
|
|
51813
52009
|
CommandPrimitive,
|
|
51814
52010
|
__spreadValues({
|
|
51815
52011
|
ref,
|
|
@@ -51821,21 +52017,21 @@ var Command = React6.forwardRef((_a, ref) => {
|
|
|
51821
52017
|
);
|
|
51822
52018
|
});
|
|
51823
52019
|
Command.displayName = CommandPrimitive.displayName;
|
|
51824
|
-
var CommandInput =
|
|
52020
|
+
var CommandInput = React7.forwardRef((_a, ref) => {
|
|
51825
52021
|
var _b = _a, { className, value, onValueChange } = _b, props = __objRest(_b, ["className", "value", "onValueChange"]);
|
|
51826
|
-
const [val, setVal] =
|
|
52022
|
+
const [val, setVal] = useState2(value);
|
|
51827
52023
|
const clearInput = () => {
|
|
51828
52024
|
setVal("");
|
|
51829
52025
|
onValueChange && onValueChange("");
|
|
51830
52026
|
};
|
|
51831
|
-
return /* @__PURE__ */
|
|
52027
|
+
return /* @__PURE__ */ jsxs1011(
|
|
51832
52028
|
"div",
|
|
51833
52029
|
{
|
|
51834
52030
|
className: "flex items-center gap-2 px-3 border-b border-gray-200",
|
|
51835
52031
|
"cmdk-input-wrapper": "",
|
|
51836
52032
|
children: [
|
|
51837
|
-
/* @__PURE__ */
|
|
51838
|
-
/* @__PURE__ */
|
|
52033
|
+
/* @__PURE__ */ jsx1232(SearchMdIcon, { size: 16, className: "text-gray-900 shrink-0" }),
|
|
52034
|
+
/* @__PURE__ */ jsx1232(
|
|
51839
52035
|
CommandPrimitive.Input,
|
|
51840
52036
|
__spreadValues({
|
|
51841
52037
|
ref,
|
|
@@ -51850,7 +52046,7 @@ var CommandInput = React6.forwardRef((_a, ref) => {
|
|
|
51850
52046
|
}
|
|
51851
52047
|
}, props)
|
|
51852
52048
|
),
|
|
51853
|
-
value !== "" && /* @__PURE__ */
|
|
52049
|
+
value !== "" && /* @__PURE__ */ jsx1232(Button, { variant: "ghostGray", size: "xs", icon: true, className: "-mr-2", children: /* @__PURE__ */ jsx1232(
|
|
51854
52050
|
XCloseIcon,
|
|
51855
52051
|
{
|
|
51856
52052
|
size: "16",
|
|
@@ -51865,9 +52061,9 @@ var CommandInput = React6.forwardRef((_a, ref) => {
|
|
|
51865
52061
|
);
|
|
51866
52062
|
});
|
|
51867
52063
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
51868
|
-
var CommandList =
|
|
52064
|
+
var CommandList = React7.forwardRef((_a, ref) => {
|
|
51869
52065
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51870
|
-
return /* @__PURE__ */
|
|
52066
|
+
return /* @__PURE__ */ jsx1232(
|
|
51871
52067
|
CommandPrimitive.List,
|
|
51872
52068
|
__spreadValues({
|
|
51873
52069
|
ref,
|
|
@@ -51879,33 +52075,33 @@ var CommandList = React6.forwardRef((_a, ref) => {
|
|
|
51879
52075
|
);
|
|
51880
52076
|
});
|
|
51881
52077
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
51882
|
-
var CommandEmpty =
|
|
52078
|
+
var CommandEmpty = React7.forwardRef((_a, ref) => {
|
|
51883
52079
|
var _b = _a, { children, title, description } = _b, props = __objRest(_b, ["children", "title", "description"]);
|
|
51884
|
-
return /* @__PURE__ */
|
|
52080
|
+
return /* @__PURE__ */ jsxs1011(
|
|
51885
52081
|
CommandPrimitive.Empty,
|
|
51886
52082
|
__spreadProps(__spreadValues({
|
|
51887
52083
|
ref,
|
|
51888
52084
|
className: "flex flex-col gap-4 p-4 text-center"
|
|
51889
52085
|
}, props), {
|
|
51890
52086
|
children: [
|
|
51891
|
-
(title || description) && /* @__PURE__ */
|
|
51892
|
-
title && /* @__PURE__ */
|
|
51893
|
-
description && /* @__PURE__ */
|
|
52087
|
+
(title || description) && /* @__PURE__ */ jsxs1011("div", { className: "flex flex-col gap-1", children: [
|
|
52088
|
+
title && /* @__PURE__ */ jsx1232("span", { className: "text-sm font-medium text-gray-1000", children: title }),
|
|
52089
|
+
description && /* @__PURE__ */ jsx1232("span", { className: "text-sm font-normal text-gray-700", children: description })
|
|
51894
52090
|
] }),
|
|
51895
|
-
children && /* @__PURE__ */
|
|
52091
|
+
children && /* @__PURE__ */ jsx1232("div", { children })
|
|
51896
52092
|
]
|
|
51897
52093
|
})
|
|
51898
52094
|
);
|
|
51899
52095
|
});
|
|
51900
52096
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
51901
|
-
var CommandLoading =
|
|
52097
|
+
var CommandLoading = React7.forwardRef((_a, ref) => {
|
|
51902
52098
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
51903
|
-
return /* @__PURE__ */
|
|
52099
|
+
return /* @__PURE__ */ jsx1232(CommandPrimitive.Loading, __spreadProps(__spreadValues({ ref }, props), { children: /* @__PURE__ */ jsx1232("div", { className: "flex justify-center p-4 text-center", children: /* @__PURE__ */ jsx1232(SpinnerIcon, { className: "text-blue-700 animate-spin" }) }) }));
|
|
51904
52100
|
});
|
|
51905
52101
|
CommandLoading.displayName = CommandPrimitive.Loading.displayName;
|
|
51906
|
-
var CommandGroup =
|
|
52102
|
+
var CommandGroup = React7.forwardRef((_a, ref) => {
|
|
51907
52103
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51908
|
-
return /* @__PURE__ */
|
|
52104
|
+
return /* @__PURE__ */ jsx1232(
|
|
51909
52105
|
CommandPrimitive.Group,
|
|
51910
52106
|
__spreadValues({
|
|
51911
52107
|
ref,
|
|
@@ -51917,9 +52113,9 @@ var CommandGroup = React6.forwardRef((_a, ref) => {
|
|
|
51917
52113
|
);
|
|
51918
52114
|
});
|
|
51919
52115
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
51920
|
-
var CommandSeparator =
|
|
52116
|
+
var CommandSeparator = React7.forwardRef((_a, ref) => {
|
|
51921
52117
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51922
|
-
return /* @__PURE__ */
|
|
52118
|
+
return /* @__PURE__ */ jsx1232(
|
|
51923
52119
|
CommandPrimitive.Separator,
|
|
51924
52120
|
__spreadValues({
|
|
51925
52121
|
ref,
|
|
@@ -51928,10 +52124,10 @@ var CommandSeparator = React6.forwardRef((_a, ref) => {
|
|
|
51928
52124
|
);
|
|
51929
52125
|
});
|
|
51930
52126
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
51931
|
-
var CommandItem =
|
|
52127
|
+
var CommandItem = React7.forwardRef(
|
|
51932
52128
|
(_a, ref) => {
|
|
51933
52129
|
var _b = _a, { icon, checkbox, className, checked, children, description } = _b, props = __objRest(_b, ["icon", "checkbox", "className", "checked", "children", "description"]);
|
|
51934
|
-
return /* @__PURE__ */
|
|
52130
|
+
return /* @__PURE__ */ jsxs1011(
|
|
51935
52131
|
CommandPrimitive.Item,
|
|
51936
52132
|
__spreadProps(__spreadValues({
|
|
51937
52133
|
ref,
|
|
@@ -51941,15 +52137,15 @@ var CommandItem = React6.forwardRef(
|
|
|
51941
52137
|
)
|
|
51942
52138
|
}, props), {
|
|
51943
52139
|
children: [
|
|
51944
|
-
/* @__PURE__ */
|
|
51945
|
-
checkbox && /* @__PURE__ */
|
|
51946
|
-
icon &&
|
|
52140
|
+
/* @__PURE__ */ jsxs1011("div", { className: "flex items-center gap-2", children: [
|
|
52141
|
+
checkbox && /* @__PURE__ */ jsx1232(Checkbox, { checked }),
|
|
52142
|
+
icon && React7.cloneElement(icon, {
|
|
51947
52143
|
size: 16,
|
|
51948
52144
|
className: cn("flex-shrink-0", icon.props.className)
|
|
51949
52145
|
}),
|
|
51950
52146
|
children
|
|
51951
52147
|
] }),
|
|
51952
|
-
description && /* @__PURE__ */
|
|
52148
|
+
description && /* @__PURE__ */ jsx1232("div", { className: "text-xs text-gray-700", children: description })
|
|
51953
52149
|
]
|
|
51954
52150
|
})
|
|
51955
52151
|
);
|
|
@@ -51958,9 +52154,9 @@ var CommandItem = React6.forwardRef(
|
|
|
51958
52154
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
51959
52155
|
|
|
51960
52156
|
// src/components/CreatableSelect/CreatableSelect.tsx
|
|
51961
|
-
import { useCallback, useRef, useState as
|
|
52157
|
+
import { useCallback as useCallback2, useRef, useState as useState3 } from "react";
|
|
51962
52158
|
import { Command as CommandPrimitive2 } from "cmdk";
|
|
51963
|
-
import { jsx as
|
|
52159
|
+
import { jsx as jsx1233, jsxs as jsxs1012 } from "react/jsx-runtime";
|
|
51964
52160
|
function CreatableSelect(_a) {
|
|
51965
52161
|
var _b = _a, {
|
|
51966
52162
|
isLoading,
|
|
@@ -51986,15 +52182,15 @@ function CreatableSelect(_a) {
|
|
|
51986
52182
|
"getItemProps"
|
|
51987
52183
|
]);
|
|
51988
52184
|
const inputRef = useRef(null);
|
|
51989
|
-
const [open, setOpen] =
|
|
51990
|
-
const [inputValue, setInputValue] =
|
|
51991
|
-
const handleUnselect =
|
|
52185
|
+
const [open, setOpen] = useState3(false);
|
|
52186
|
+
const [inputValue, setInputValue] = useState3("");
|
|
52187
|
+
const handleUnselect = useCallback2(
|
|
51992
52188
|
(selected) => {
|
|
51993
52189
|
onValueChanged(value.filter((s) => s !== selected));
|
|
51994
52190
|
},
|
|
51995
52191
|
[onValueChanged, value]
|
|
51996
52192
|
);
|
|
51997
|
-
const handleKeyDown =
|
|
52193
|
+
const handleKeyDown = useCallback2(
|
|
51998
52194
|
(e) => {
|
|
51999
52195
|
const input = inputRef.current;
|
|
52000
52196
|
if (input) {
|
|
@@ -52025,13 +52221,13 @@ function CreatableSelect(_a) {
|
|
|
52025
52221
|
if (!inputValue && !items && open) {
|
|
52026
52222
|
setOpen(false);
|
|
52027
52223
|
}
|
|
52028
|
-
return /* @__PURE__ */
|
|
52224
|
+
return /* @__PURE__ */ jsxs1012(
|
|
52029
52225
|
Command,
|
|
52030
52226
|
{
|
|
52031
52227
|
onKeyDown: handleKeyDown,
|
|
52032
52228
|
className: "overflow-visible bg-transparent",
|
|
52033
52229
|
children: [
|
|
52034
|
-
/* @__PURE__ */
|
|
52230
|
+
/* @__PURE__ */ jsx1233(
|
|
52035
52231
|
"div",
|
|
52036
52232
|
{
|
|
52037
52233
|
className: cn(
|
|
@@ -52040,10 +52236,10 @@ function CreatableSelect(_a) {
|
|
|
52040
52236
|
"border-red-700 focus-within:border-gray-200 focus-within:outline-red-700": !!props["data-has-error"]
|
|
52041
52237
|
}
|
|
52042
52238
|
),
|
|
52043
|
-
children: /* @__PURE__ */
|
|
52044
|
-
multiple && value.map((it) => /* @__PURE__ */
|
|
52239
|
+
children: /* @__PURE__ */ jsxs1012("div", { className: "flex flex-wrap w-full gap-1", children: [
|
|
52240
|
+
multiple && value.map((it) => /* @__PURE__ */ jsxs1012(Badge, { color: "blue", children: [
|
|
52045
52241
|
it,
|
|
52046
|
-
/* @__PURE__ */
|
|
52242
|
+
/* @__PURE__ */ jsx1233(
|
|
52047
52243
|
"button",
|
|
52048
52244
|
{
|
|
52049
52245
|
className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
@@ -52053,12 +52249,12 @@ function CreatableSelect(_a) {
|
|
|
52053
52249
|
e.stopPropagation();
|
|
52054
52250
|
},
|
|
52055
52251
|
onClick: () => handleUnselect(it),
|
|
52056
|
-
children: /* @__PURE__ */
|
|
52252
|
+
children: /* @__PURE__ */ jsx1233(XCloseIcon, { size: 12, className: "text-current" })
|
|
52057
52253
|
}
|
|
52058
52254
|
)
|
|
52059
52255
|
] }, it)),
|
|
52060
|
-
!multiple && value.map((it) => /* @__PURE__ */
|
|
52061
|
-
/* @__PURE__ */
|
|
52256
|
+
!multiple && value.map((it) => /* @__PURE__ */ jsx1233("span", { className: "text-sm", children: it }, it)),
|
|
52257
|
+
/* @__PURE__ */ jsx1233(
|
|
52062
52258
|
CommandPrimitive2.Input,
|
|
52063
52259
|
{
|
|
52064
52260
|
ref: inputRef,
|
|
@@ -52088,10 +52284,10 @@ function CreatableSelect(_a) {
|
|
|
52088
52284
|
] })
|
|
52089
52285
|
}
|
|
52090
52286
|
),
|
|
52091
|
-
/* @__PURE__ */
|
|
52287
|
+
/* @__PURE__ */ jsx1233("div", { className: "relative", children: open && /* @__PURE__ */ jsx1233("div", { className: "absolute z-50 w-full bg-white border rounded-md shadow-md outline-none top-2 text-gray-1000 animate-in", children: isLoading ? /* @__PURE__ */ jsx1233(CommandLoading, {}) : selectables && selectables.length < 1 ? /* @__PURE__ */ jsx1233("span", { className: "flex flex-col gap-4 p-4 text-center text-gray-700", children: nothingFoundLabel }) : /* @__PURE__ */ jsxs1012(CommandList, { className: "h-full max-h-[180px] overflow-auto", children: [
|
|
52092
52288
|
items && (selectables == null ? void 0 : selectables.map((it) => {
|
|
52093
52289
|
const itemProps = getItemProps(it);
|
|
52094
|
-
return /* @__PURE__ */
|
|
52290
|
+
return /* @__PURE__ */ jsx1233(
|
|
52095
52291
|
CommandItem,
|
|
52096
52292
|
__spreadValues({
|
|
52097
52293
|
onMouseDown: (e) => {
|
|
@@ -52109,7 +52305,7 @@ function CreatableSelect(_a) {
|
|
|
52109
52305
|
it[valueKey]
|
|
52110
52306
|
);
|
|
52111
52307
|
})),
|
|
52112
|
-
inputValue && !value.includes(inputValue) && /* @__PURE__ */
|
|
52308
|
+
inputValue && !value.includes(inputValue) && /* @__PURE__ */ jsx1233(
|
|
52113
52309
|
CommandItem,
|
|
52114
52310
|
{
|
|
52115
52311
|
value: inputValue,
|
|
@@ -52132,14 +52328,14 @@ function CreatableSelect(_a) {
|
|
|
52132
52328
|
}
|
|
52133
52329
|
|
|
52134
52330
|
// src/components/Dialog/Dialog.tsx
|
|
52135
|
-
import * as
|
|
52331
|
+
import * as React9 from "react";
|
|
52136
52332
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
52137
|
-
import { jsx as
|
|
52333
|
+
import { jsx as jsx1234, jsxs as jsxs1013 } from "react/jsx-runtime";
|
|
52138
52334
|
var Dialog = DialogPrimitive.Root;
|
|
52139
52335
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
52140
|
-
var DialogOverlay =
|
|
52336
|
+
var DialogOverlay = React9.forwardRef((_a, ref) => {
|
|
52141
52337
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52142
|
-
return /* @__PURE__ */
|
|
52338
|
+
return /* @__PURE__ */ jsx1234(
|
|
52143
52339
|
DialogPrimitive.Overlay,
|
|
52144
52340
|
__spreadValues({
|
|
52145
52341
|
ref,
|
|
@@ -52151,11 +52347,11 @@ var DialogOverlay = React8.forwardRef((_a, ref) => {
|
|
|
52151
52347
|
);
|
|
52152
52348
|
});
|
|
52153
52349
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
52154
|
-
var DialogContent =
|
|
52350
|
+
var DialogContent = React9.forwardRef((_a, ref) => {
|
|
52155
52351
|
var _b = _a, { className, children, bottomSheet = false } = _b, props = __objRest(_b, ["className", "children", "bottomSheet"]);
|
|
52156
|
-
return /* @__PURE__ */
|
|
52157
|
-
/* @__PURE__ */
|
|
52158
|
-
/* @__PURE__ */
|
|
52352
|
+
return /* @__PURE__ */ jsxs1013(DialogPrimitive.Portal, { children: [
|
|
52353
|
+
/* @__PURE__ */ jsx1234(DialogOverlay, {}),
|
|
52354
|
+
/* @__PURE__ */ jsxs1013(
|
|
52159
52355
|
DialogPrimitive.Content,
|
|
52160
52356
|
__spreadProps(__spreadValues({
|
|
52161
52357
|
ref,
|
|
@@ -52172,7 +52368,7 @@ var DialogContent = React8.forwardRef((_a, ref) => {
|
|
|
52172
52368
|
}, props), {
|
|
52173
52369
|
children: [
|
|
52174
52370
|
children,
|
|
52175
|
-
/* @__PURE__ */
|
|
52371
|
+
/* @__PURE__ */ jsxs1013(
|
|
52176
52372
|
DialogPrimitive.Close,
|
|
52177
52373
|
{
|
|
52178
52374
|
className: cn(
|
|
@@ -52181,8 +52377,8 @@ var DialogContent = React8.forwardRef((_a, ref) => {
|
|
|
52181
52377
|
"absolute right-6 top-6"
|
|
52182
52378
|
),
|
|
52183
52379
|
children: [
|
|
52184
|
-
/* @__PURE__ */
|
|
52185
|
-
/* @__PURE__ */
|
|
52380
|
+
/* @__PURE__ */ jsx1234(XCloseIcon, { className: "w-3 h-3" }),
|
|
52381
|
+
/* @__PURE__ */ jsx1234("span", { className: "sr-only", children: "Close" })
|
|
52186
52382
|
]
|
|
52187
52383
|
}
|
|
52188
52384
|
)
|
|
@@ -52198,7 +52394,7 @@ var DialogHeader = (_a) => {
|
|
|
52198
52394
|
} = _b, props = __objRest(_b, [
|
|
52199
52395
|
"className"
|
|
52200
52396
|
]);
|
|
52201
|
-
return /* @__PURE__ */
|
|
52397
|
+
return /* @__PURE__ */ jsx1234(
|
|
52202
52398
|
"div",
|
|
52203
52399
|
__spreadValues({
|
|
52204
52400
|
className: cn("flex flex-col space-y-1.5 text-left", className)
|
|
@@ -52212,7 +52408,7 @@ var DialogFooter = (_a) => {
|
|
|
52212
52408
|
} = _b, props = __objRest(_b, [
|
|
52213
52409
|
"className"
|
|
52214
52410
|
]);
|
|
52215
|
-
return /* @__PURE__ */
|
|
52411
|
+
return /* @__PURE__ */ jsx1234(
|
|
52216
52412
|
"div",
|
|
52217
52413
|
__spreadValues({
|
|
52218
52414
|
className: cn(
|
|
@@ -52223,9 +52419,9 @@ var DialogFooter = (_a) => {
|
|
|
52223
52419
|
);
|
|
52224
52420
|
};
|
|
52225
52421
|
DialogFooter.displayName = "DialogFooter";
|
|
52226
|
-
var DialogTitle =
|
|
52422
|
+
var DialogTitle = React9.forwardRef((_a, ref) => {
|
|
52227
52423
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52228
|
-
return /* @__PURE__ */
|
|
52424
|
+
return /* @__PURE__ */ jsx1234(
|
|
52229
52425
|
DialogPrimitive.Title,
|
|
52230
52426
|
__spreadValues({
|
|
52231
52427
|
ref,
|
|
@@ -52234,9 +52430,9 @@ var DialogTitle = React8.forwardRef((_a, ref) => {
|
|
|
52234
52430
|
);
|
|
52235
52431
|
});
|
|
52236
52432
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
52237
|
-
var DialogDescription =
|
|
52433
|
+
var DialogDescription = React9.forwardRef((_a, ref) => {
|
|
52238
52434
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52239
|
-
return /* @__PURE__ */
|
|
52435
|
+
return /* @__PURE__ */ jsx1234(
|
|
52240
52436
|
DialogPrimitive.Description,
|
|
52241
52437
|
__spreadValues({
|
|
52242
52438
|
ref,
|
|
@@ -52247,9 +52443,9 @@ var DialogDescription = React8.forwardRef((_a, ref) => {
|
|
|
52247
52443
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
52248
52444
|
|
|
52249
52445
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
52250
|
-
import
|
|
52446
|
+
import React10 from "react";
|
|
52251
52447
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
52252
|
-
import { jsx as
|
|
52448
|
+
import { jsx as jsx1235, jsxs as jsxs1014 } from "react/jsx-runtime";
|
|
52253
52449
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
52254
52450
|
var DropdownMenuItemBase = ({
|
|
52255
52451
|
icon,
|
|
@@ -52261,7 +52457,7 @@ var DropdownMenuItemBase = ({
|
|
|
52261
52457
|
description,
|
|
52262
52458
|
hasSubNav
|
|
52263
52459
|
}) => {
|
|
52264
|
-
return /* @__PURE__ */
|
|
52460
|
+
return /* @__PURE__ */ jsxs1014(
|
|
52265
52461
|
"div",
|
|
52266
52462
|
{
|
|
52267
52463
|
className: cn(
|
|
@@ -52270,9 +52466,9 @@ var DropdownMenuItemBase = ({
|
|
|
52270
52466
|
className
|
|
52271
52467
|
),
|
|
52272
52468
|
children: [
|
|
52273
|
-
/* @__PURE__ */
|
|
52274
|
-
checkbox && /* @__PURE__ */
|
|
52275
|
-
icon &&
|
|
52469
|
+
/* @__PURE__ */ jsxs1014("div", { className: "flex items-center gap-2", children: [
|
|
52470
|
+
checkbox && /* @__PURE__ */ jsx1235(Checkbox, { checked }),
|
|
52471
|
+
icon && React10.cloneElement(icon, {
|
|
52276
52472
|
size: 16,
|
|
52277
52473
|
className: cn(
|
|
52278
52474
|
"flex-shrink-0",
|
|
@@ -52280,15 +52476,15 @@ var DropdownMenuItemBase = ({
|
|
|
52280
52476
|
icon.props.className
|
|
52281
52477
|
)
|
|
52282
52478
|
}),
|
|
52283
|
-
/* @__PURE__ */
|
|
52284
|
-
hasSubNav && /* @__PURE__ */
|
|
52479
|
+
/* @__PURE__ */ jsx1235("span", { className: "flex gap-2 grow", children }),
|
|
52480
|
+
hasSubNav && /* @__PURE__ */ jsx1235("div", { className: "inline-flex items-center justify-end", children: /* @__PURE__ */ jsx1235(ChevronRightIcon, { size: 16, className: "text-gray-1000" }) })
|
|
52285
52481
|
] }),
|
|
52286
|
-
description && /* @__PURE__ */
|
|
52482
|
+
description && /* @__PURE__ */ jsx1235("div", { className: "text-xs text-gray-700", children: description })
|
|
52287
52483
|
]
|
|
52288
52484
|
}
|
|
52289
52485
|
);
|
|
52290
52486
|
};
|
|
52291
|
-
var DropdownMenuCheckboxItem =
|
|
52487
|
+
var DropdownMenuCheckboxItem = React10.forwardRef(
|
|
52292
52488
|
(_a, forwardedRef) => {
|
|
52293
52489
|
var _b = _a, { className, children, checked, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "checked", "icon", "description", "destructive"]);
|
|
52294
52490
|
const extraProps = {
|
|
@@ -52298,20 +52494,20 @@ var DropdownMenuCheckboxItem = React9.forwardRef(
|
|
|
52298
52494
|
checked,
|
|
52299
52495
|
className
|
|
52300
52496
|
};
|
|
52301
|
-
return /* @__PURE__ */
|
|
52497
|
+
return /* @__PURE__ */ jsx1235(
|
|
52302
52498
|
DropdownMenuPrimitive.CheckboxItem,
|
|
52303
52499
|
__spreadProps(__spreadValues({
|
|
52304
52500
|
checked
|
|
52305
52501
|
}, props), {
|
|
52306
52502
|
ref: forwardedRef,
|
|
52307
52503
|
className: "outline-none select-none group",
|
|
52308
|
-
children: /* @__PURE__ */
|
|
52504
|
+
children: /* @__PURE__ */ jsx1235(DropdownMenuItemBase, __spreadProps(__spreadValues({ checkbox: true }, extraProps), { children }))
|
|
52309
52505
|
})
|
|
52310
52506
|
);
|
|
52311
52507
|
}
|
|
52312
52508
|
);
|
|
52313
52509
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
52314
|
-
var DropdownMenuContent =
|
|
52510
|
+
var DropdownMenuContent = React10.forwardRef(
|
|
52315
52511
|
(_a, forwardedRef) => {
|
|
52316
52512
|
var _b = _a, {
|
|
52317
52513
|
children,
|
|
@@ -52326,7 +52522,7 @@ var DropdownMenuContent = React9.forwardRef(
|
|
|
52326
52522
|
"sideOffset",
|
|
52327
52523
|
"align"
|
|
52328
52524
|
]);
|
|
52329
|
-
return /* @__PURE__ */
|
|
52525
|
+
return /* @__PURE__ */ jsx1235(
|
|
52330
52526
|
DropdownMenuPrimitive.Content,
|
|
52331
52527
|
__spreadProps(__spreadValues({
|
|
52332
52528
|
className: cn(
|
|
@@ -52345,7 +52541,7 @@ var DropdownMenuContent = React9.forwardRef(
|
|
|
52345
52541
|
);
|
|
52346
52542
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
52347
52543
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
52348
|
-
var DropdownMenuItem =
|
|
52544
|
+
var DropdownMenuItem = React10.forwardRef(
|
|
52349
52545
|
(_a, forwardedRef) => {
|
|
52350
52546
|
var _b = _a, { className, children, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "icon", "description", "destructive"]);
|
|
52351
52547
|
const extraProps = {
|
|
@@ -52354,20 +52550,20 @@ var DropdownMenuItem = React9.forwardRef(
|
|
|
52354
52550
|
icon,
|
|
52355
52551
|
className
|
|
52356
52552
|
};
|
|
52357
|
-
return /* @__PURE__ */
|
|
52553
|
+
return /* @__PURE__ */ jsx1235(
|
|
52358
52554
|
DropdownMenuPrimitive.Item,
|
|
52359
52555
|
__spreadProps(__spreadValues({}, props), {
|
|
52360
52556
|
ref: forwardedRef,
|
|
52361
52557
|
className: "outline-none select-none group",
|
|
52362
|
-
children: /* @__PURE__ */
|
|
52558
|
+
children: /* @__PURE__ */ jsx1235(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
52363
52559
|
})
|
|
52364
52560
|
);
|
|
52365
52561
|
}
|
|
52366
52562
|
);
|
|
52367
52563
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
52368
|
-
var DropdownMenuLabel =
|
|
52564
|
+
var DropdownMenuLabel = React10.forwardRef((_a, forwardedRef) => {
|
|
52369
52565
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52370
|
-
return /* @__PURE__ */
|
|
52566
|
+
return /* @__PURE__ */ jsx1235(
|
|
52371
52567
|
DropdownMenuPrimitive.Label,
|
|
52372
52568
|
__spreadProps(__spreadValues({
|
|
52373
52569
|
className: cn(
|
|
@@ -52382,7 +52578,7 @@ var DropdownMenuLabel = React9.forwardRef((_a, forwardedRef) => {
|
|
|
52382
52578
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
52383
52579
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
52384
52580
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
52385
|
-
var DropdownMenuRadioItem =
|
|
52581
|
+
var DropdownMenuRadioItem = React10.forwardRef(
|
|
52386
52582
|
(_a, forwardedRef) => {
|
|
52387
52583
|
var _b = _a, { className, children, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "icon", "description", "destructive"]);
|
|
52388
52584
|
const extraProps = {
|
|
@@ -52391,20 +52587,20 @@ var DropdownMenuRadioItem = React9.forwardRef(
|
|
|
52391
52587
|
icon,
|
|
52392
52588
|
className
|
|
52393
52589
|
};
|
|
52394
|
-
return /* @__PURE__ */
|
|
52590
|
+
return /* @__PURE__ */ jsx1235(
|
|
52395
52591
|
DropdownMenuPrimitive.RadioItem,
|
|
52396
52592
|
__spreadProps(__spreadValues({}, props), {
|
|
52397
52593
|
ref: forwardedRef,
|
|
52398
52594
|
className: "outline-none select-none group",
|
|
52399
|
-
children: /* @__PURE__ */
|
|
52595
|
+
children: /* @__PURE__ */ jsx1235(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
52400
52596
|
})
|
|
52401
52597
|
);
|
|
52402
52598
|
}
|
|
52403
52599
|
);
|
|
52404
52600
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
52405
|
-
var DropdownMenuSeparator =
|
|
52601
|
+
var DropdownMenuSeparator = React10.forwardRef((_a, forwardedRef) => {
|
|
52406
52602
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52407
|
-
return /* @__PURE__ */
|
|
52603
|
+
return /* @__PURE__ */ jsx1235(
|
|
52408
52604
|
DropdownMenuPrimitive.Separator,
|
|
52409
52605
|
__spreadProps(__spreadValues({
|
|
52410
52606
|
className: cn("my-1 border-b border-gray-200", className)
|
|
@@ -52415,9 +52611,9 @@ var DropdownMenuSeparator = React9.forwardRef((_a, forwardedRef) => {
|
|
|
52415
52611
|
});
|
|
52416
52612
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
52417
52613
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
52418
|
-
var DropdownMenuSubContent =
|
|
52614
|
+
var DropdownMenuSubContent = React10.forwardRef((_a, forwardedRef) => {
|
|
52419
52615
|
var _b = _a, { children, className, sideOffset = 8 } = _b, props = __objRest(_b, ["children", "className", "sideOffset"]);
|
|
52420
|
-
return /* @__PURE__ */
|
|
52616
|
+
return /* @__PURE__ */ jsx1235(
|
|
52421
52617
|
DropdownMenuPrimitive.SubContent,
|
|
52422
52618
|
__spreadProps(__spreadValues({
|
|
52423
52619
|
className: cn(
|
|
@@ -52432,7 +52628,7 @@ var DropdownMenuSubContent = React9.forwardRef((_a, forwardedRef) => {
|
|
|
52432
52628
|
);
|
|
52433
52629
|
});
|
|
52434
52630
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
52435
|
-
var DropdownMenuSubTrigger =
|
|
52631
|
+
var DropdownMenuSubTrigger = React10.forwardRef(
|
|
52436
52632
|
(_a, forwardedRef) => {
|
|
52437
52633
|
var _b = _a, { className, children, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "icon", "description", "destructive"]);
|
|
52438
52634
|
const extraProps = {
|
|
@@ -52441,12 +52637,12 @@ var DropdownMenuSubTrigger = React9.forwardRef(
|
|
|
52441
52637
|
icon,
|
|
52442
52638
|
className
|
|
52443
52639
|
};
|
|
52444
|
-
return /* @__PURE__ */
|
|
52640
|
+
return /* @__PURE__ */ jsx1235(
|
|
52445
52641
|
DropdownMenuPrimitive.SubTrigger,
|
|
52446
52642
|
__spreadProps(__spreadValues({}, props), {
|
|
52447
52643
|
ref: forwardedRef,
|
|
52448
52644
|
className: "outline-none select-none group",
|
|
52449
|
-
children: /* @__PURE__ */
|
|
52645
|
+
children: /* @__PURE__ */ jsx1235(DropdownMenuItemBase, __spreadProps(__spreadValues({ hasSubNav: true }, extraProps), { children }))
|
|
52450
52646
|
})
|
|
52451
52647
|
);
|
|
52452
52648
|
}
|
|
@@ -52455,16 +52651,16 @@ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayNam
|
|
|
52455
52651
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
52456
52652
|
|
|
52457
52653
|
// src/components/FilterButton/FilterButton.tsx
|
|
52458
|
-
import
|
|
52459
|
-
import { Fragment, jsx as
|
|
52460
|
-
var FilterButton =
|
|
52654
|
+
import React11 from "react";
|
|
52655
|
+
import { Fragment, jsx as jsx1236, jsxs as jsxs1015 } from "react/jsx-runtime";
|
|
52656
|
+
var FilterButton = React11.forwardRef(
|
|
52461
52657
|
(_a, ref) => {
|
|
52462
52658
|
var _b = _a, { selectedCount, children, size = "sm", variant = "outline" } = _b, props = __objRest(_b, ["selectedCount", "children", "size", "variant"]);
|
|
52463
|
-
return /* @__PURE__ */
|
|
52659
|
+
return /* @__PURE__ */ jsxs1015(Button, __spreadProps(__spreadValues({ ref, variant, size }, props), { children: [
|
|
52464
52660
|
children,
|
|
52465
|
-
selectedCount !== void 0 && selectedCount > 0 && /* @__PURE__ */
|
|
52466
|
-
/* @__PURE__ */
|
|
52467
|
-
/* @__PURE__ */
|
|
52661
|
+
selectedCount !== void 0 && selectedCount > 0 && /* @__PURE__ */ jsxs1015(Fragment, { children: [
|
|
52662
|
+
/* @__PURE__ */ jsx1236("span", { className: "h-4 border-l border-gray-200" }),
|
|
52663
|
+
/* @__PURE__ */ jsx1236(Badge, { variant: "fill", color: "blue", children: selectedCount })
|
|
52468
52664
|
] })
|
|
52469
52665
|
] }));
|
|
52470
52666
|
}
|
|
@@ -52472,7 +52668,7 @@ var FilterButton = React10.forwardRef(
|
|
|
52472
52668
|
FilterButton.displayName = "FilterButton";
|
|
52473
52669
|
|
|
52474
52670
|
// src/components/Form/Form.tsx
|
|
52475
|
-
import * as
|
|
52671
|
+
import * as React13 from "react";
|
|
52476
52672
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
52477
52673
|
import {
|
|
52478
52674
|
Controller,
|
|
@@ -52481,12 +52677,12 @@ import {
|
|
|
52481
52677
|
} from "react-hook-form";
|
|
52482
52678
|
|
|
52483
52679
|
// src/components/Label/Label.tsx
|
|
52484
|
-
import * as
|
|
52680
|
+
import * as React12 from "react";
|
|
52485
52681
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
52486
|
-
import { jsx as
|
|
52487
|
-
var Label2 =
|
|
52682
|
+
import { jsx as jsx1237 } from "react/jsx-runtime";
|
|
52683
|
+
var Label2 = React12.forwardRef((_a, ref) => {
|
|
52488
52684
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52489
|
-
return /* @__PURE__ */
|
|
52685
|
+
return /* @__PURE__ */ jsx1237(
|
|
52490
52686
|
LabelPrimitive.Root,
|
|
52491
52687
|
__spreadValues({
|
|
52492
52688
|
ref,
|
|
@@ -52500,24 +52696,24 @@ var Label2 = React11.forwardRef((_a, ref) => {
|
|
|
52500
52696
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
52501
52697
|
|
|
52502
52698
|
// src/components/Form/Form.tsx
|
|
52503
|
-
import { jsx as
|
|
52699
|
+
import { jsx as jsx1238 } from "react/jsx-runtime";
|
|
52504
52700
|
var Form = FormProvider;
|
|
52505
|
-
var FormFieldContext =
|
|
52701
|
+
var FormFieldContext = React13.createContext(
|
|
52506
52702
|
{}
|
|
52507
52703
|
);
|
|
52508
52704
|
var FormField = (_a) => {
|
|
52509
52705
|
var props = __objRest(_a, []);
|
|
52510
|
-
return /* @__PURE__ */
|
|
52706
|
+
return /* @__PURE__ */ jsx1238(
|
|
52511
52707
|
FormFieldContext.Provider,
|
|
52512
52708
|
{
|
|
52513
52709
|
value: { name: props.name, isDisabled: props.disabled },
|
|
52514
|
-
children: /* @__PURE__ */
|
|
52710
|
+
children: /* @__PURE__ */ jsx1238(Controller, __spreadValues({}, props))
|
|
52515
52711
|
}
|
|
52516
52712
|
);
|
|
52517
52713
|
};
|
|
52518
52714
|
var useFormField = () => {
|
|
52519
|
-
const fieldContext =
|
|
52520
|
-
const itemContext =
|
|
52715
|
+
const fieldContext = React13.useContext(FormFieldContext);
|
|
52716
|
+
const itemContext = React13.useContext(FormItemContext);
|
|
52521
52717
|
const { getFieldState, formState } = useFormContext();
|
|
52522
52718
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
52523
52719
|
if (!fieldContext) {
|
|
@@ -52533,13 +52729,13 @@ var useFormField = () => {
|
|
|
52533
52729
|
formMessageId: `${id}-form-item-message`
|
|
52534
52730
|
}, fieldState);
|
|
52535
52731
|
};
|
|
52536
|
-
var FormItemContext =
|
|
52732
|
+
var FormItemContext = React13.createContext(
|
|
52537
52733
|
{}
|
|
52538
52734
|
);
|
|
52539
|
-
var FormItem =
|
|
52735
|
+
var FormItem = React13.forwardRef((_a, ref) => {
|
|
52540
52736
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52541
|
-
const id =
|
|
52542
|
-
return /* @__PURE__ */
|
|
52737
|
+
const id = React13.useId();
|
|
52738
|
+
return /* @__PURE__ */ jsx1238(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx1238(
|
|
52543
52739
|
"div",
|
|
52544
52740
|
__spreadValues({
|
|
52545
52741
|
ref,
|
|
@@ -52548,10 +52744,10 @@ var FormItem = React12.forwardRef((_a, ref) => {
|
|
|
52548
52744
|
) });
|
|
52549
52745
|
});
|
|
52550
52746
|
FormItem.displayName = "FormItem";
|
|
52551
|
-
var FormLabel =
|
|
52747
|
+
var FormLabel = React13.forwardRef((_a, ref) => {
|
|
52552
52748
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52553
52749
|
const { isDisabled, formItemId } = useFormField();
|
|
52554
|
-
return /* @__PURE__ */
|
|
52750
|
+
return /* @__PURE__ */ jsx1238(
|
|
52555
52751
|
Label2,
|
|
52556
52752
|
__spreadValues({
|
|
52557
52753
|
ref,
|
|
@@ -52561,10 +52757,10 @@ var FormLabel = React12.forwardRef((_a, ref) => {
|
|
|
52561
52757
|
);
|
|
52562
52758
|
});
|
|
52563
52759
|
FormLabel.displayName = "FormLabel";
|
|
52564
|
-
var FormControl =
|
|
52760
|
+
var FormControl = React13.forwardRef((_a, ref) => {
|
|
52565
52761
|
var props = __objRest(_a, []);
|
|
52566
52762
|
const { error, isDisabled, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
52567
|
-
return /* @__PURE__ */
|
|
52763
|
+
return /* @__PURE__ */ jsx1238(
|
|
52568
52764
|
Slot2,
|
|
52569
52765
|
__spreadValues({
|
|
52570
52766
|
ref,
|
|
@@ -52577,10 +52773,10 @@ var FormControl = React12.forwardRef((_a, ref) => {
|
|
|
52577
52773
|
);
|
|
52578
52774
|
});
|
|
52579
52775
|
FormControl.displayName = "FormControl";
|
|
52580
|
-
var FormDescription =
|
|
52776
|
+
var FormDescription = React13.forwardRef((_a, ref) => {
|
|
52581
52777
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52582
52778
|
const { formDescriptionId, isDisabled } = useFormField();
|
|
52583
|
-
return /* @__PURE__ */
|
|
52779
|
+
return /* @__PURE__ */ jsx1238(
|
|
52584
52780
|
"p",
|
|
52585
52781
|
__spreadValues({
|
|
52586
52782
|
ref,
|
|
@@ -52594,12 +52790,12 @@ var FormDescription = React12.forwardRef((_a, ref) => {
|
|
|
52594
52790
|
);
|
|
52595
52791
|
});
|
|
52596
52792
|
FormDescription.displayName = "FormDescription";
|
|
52597
|
-
var FormMessage =
|
|
52793
|
+
var FormMessage = React13.forwardRef((_a, ref) => {
|
|
52598
52794
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
52599
52795
|
const { error, isDisabled, formMessageId } = useFormField();
|
|
52600
52796
|
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
52601
52797
|
const textColorClassName = error ? "text-red-700" : "text-gray-700";
|
|
52602
|
-
return /* @__PURE__ */
|
|
52798
|
+
return /* @__PURE__ */ jsx1238(
|
|
52603
52799
|
"p",
|
|
52604
52800
|
__spreadProps(__spreadValues({
|
|
52605
52801
|
ref,
|
|
@@ -52618,10 +52814,10 @@ var FormMessage = React12.forwardRef((_a, ref) => {
|
|
|
52618
52814
|
FormMessage.displayName = "FormMessage";
|
|
52619
52815
|
|
|
52620
52816
|
// src/components/Input/Input.tsx
|
|
52621
|
-
import * as
|
|
52817
|
+
import * as React14 from "react";
|
|
52622
52818
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
52623
|
-
import { jsx as
|
|
52624
|
-
var Input =
|
|
52819
|
+
import { jsx as jsx1239, jsxs as jsxs1016 } from "react/jsx-runtime";
|
|
52820
|
+
var Input = React14.forwardRef(
|
|
52625
52821
|
(_a, ref) => {
|
|
52626
52822
|
var _b = _a, {
|
|
52627
52823
|
className,
|
|
@@ -52639,8 +52835,8 @@ var Input = React13.forwardRef(
|
|
|
52639
52835
|
"suffixEnchancer"
|
|
52640
52836
|
]);
|
|
52641
52837
|
const isDisabled = !!props["data-is-disabled"] || disabled;
|
|
52642
|
-
return /* @__PURE__ */
|
|
52643
|
-
/* @__PURE__ */
|
|
52838
|
+
return /* @__PURE__ */ jsxs1016("div", { className: "flex gap-2", children: [
|
|
52839
|
+
/* @__PURE__ */ jsxs1016(
|
|
52644
52840
|
"div",
|
|
52645
52841
|
{
|
|
52646
52842
|
className: cn(
|
|
@@ -52652,7 +52848,7 @@ var Input = React13.forwardRef(
|
|
|
52652
52848
|
className
|
|
52653
52849
|
),
|
|
52654
52850
|
children: [
|
|
52655
|
-
prefixEnchancer && /* @__PURE__ */
|
|
52851
|
+
prefixEnchancer && /* @__PURE__ */ jsx1239(
|
|
52656
52852
|
Slot3,
|
|
52657
52853
|
{
|
|
52658
52854
|
className: cn(
|
|
@@ -52662,7 +52858,7 @@ var Input = React13.forwardRef(
|
|
|
52662
52858
|
children: prefixEnchancer
|
|
52663
52859
|
}
|
|
52664
52860
|
),
|
|
52665
|
-
/* @__PURE__ */
|
|
52861
|
+
/* @__PURE__ */ jsx1239(
|
|
52666
52862
|
"input",
|
|
52667
52863
|
__spreadProps(__spreadValues({}, props), {
|
|
52668
52864
|
disabled: isDisabled,
|
|
@@ -52671,7 +52867,7 @@ var Input = React13.forwardRef(
|
|
|
52671
52867
|
ref
|
|
52672
52868
|
})
|
|
52673
52869
|
),
|
|
52674
|
-
suffixEnchancer && /* @__PURE__ */
|
|
52870
|
+
suffixEnchancer && /* @__PURE__ */ jsx1239(
|
|
52675
52871
|
Slot3,
|
|
52676
52872
|
{
|
|
52677
52873
|
className: cn(
|
|
@@ -52684,7 +52880,7 @@ var Input = React13.forwardRef(
|
|
|
52684
52880
|
]
|
|
52685
52881
|
}
|
|
52686
52882
|
),
|
|
52687
|
-
button &&
|
|
52883
|
+
button && React14.cloneElement(button, {
|
|
52688
52884
|
size: "sm",
|
|
52689
52885
|
disabled: isDisabled,
|
|
52690
52886
|
className: cn("flex-shrink-0", button.props.className)
|
|
@@ -52695,7 +52891,7 @@ var Input = React13.forwardRef(
|
|
|
52695
52891
|
Input.displayName = "Input";
|
|
52696
52892
|
|
|
52697
52893
|
// src/components/Pagination/Pagination.tsx
|
|
52698
|
-
import { jsx as
|
|
52894
|
+
import { jsx as jsx1240, jsxs as jsxs1017 } from "react/jsx-runtime";
|
|
52699
52895
|
var PaginationPageChoice = /* @__PURE__ */ ((PaginationPageChoice2) => {
|
|
52700
52896
|
PaginationPageChoice2["FIRST"] = "FIRST";
|
|
52701
52897
|
PaginationPageChoice2["PREVIOUS"] = "PREVIOUS";
|
|
@@ -52711,12 +52907,12 @@ var Pagination = ({
|
|
|
52711
52907
|
onPageChange,
|
|
52712
52908
|
className
|
|
52713
52909
|
}) => {
|
|
52714
|
-
return /* @__PURE__ */
|
|
52715
|
-
totalRowsCaption && /* @__PURE__ */
|
|
52716
|
-
/* @__PURE__ */
|
|
52717
|
-
currentPageCation && /* @__PURE__ */
|
|
52718
|
-
/* @__PURE__ */
|
|
52719
|
-
/* @__PURE__ */
|
|
52910
|
+
return /* @__PURE__ */ jsxs1017("div", { className: cn("flex items-center justify-between px-2", className), children: [
|
|
52911
|
+
totalRowsCaption && /* @__PURE__ */ jsx1240("div", { className: "flex-1 text-sm text-gray-700", children: totalRowsCaption }),
|
|
52912
|
+
/* @__PURE__ */ jsxs1017("div", { className: "flex items-center gap-4", children: [
|
|
52913
|
+
currentPageCation && /* @__PURE__ */ jsx1240("div", { className: "flex items-center justify-center text-sm font-medium text-gray-1000", children: currentPageCation }),
|
|
52914
|
+
/* @__PURE__ */ jsxs1017("div", { className: "flex items-center gap-2", children: [
|
|
52915
|
+
/* @__PURE__ */ jsx1240(
|
|
52720
52916
|
Button,
|
|
52721
52917
|
{
|
|
52722
52918
|
variant: "outline",
|
|
@@ -52724,10 +52920,10 @@ var Pagination = ({
|
|
|
52724
52920
|
size: "sm",
|
|
52725
52921
|
onClick: () => onPageChange("FIRST" /* FIRST */),
|
|
52726
52922
|
disabled: !previousPageAvailable,
|
|
52727
|
-
children: /* @__PURE__ */
|
|
52923
|
+
children: /* @__PURE__ */ jsx1240(ChevronLeftDoubleIcon, { size: "16" })
|
|
52728
52924
|
}
|
|
52729
52925
|
),
|
|
52730
|
-
/* @__PURE__ */
|
|
52926
|
+
/* @__PURE__ */ jsx1240(
|
|
52731
52927
|
Button,
|
|
52732
52928
|
{
|
|
52733
52929
|
variant: "outline",
|
|
@@ -52735,10 +52931,10 @@ var Pagination = ({
|
|
|
52735
52931
|
size: "sm",
|
|
52736
52932
|
onClick: () => onPageChange("PREVIOUS" /* PREVIOUS */),
|
|
52737
52933
|
disabled: !previousPageAvailable,
|
|
52738
|
-
children: /* @__PURE__ */
|
|
52934
|
+
children: /* @__PURE__ */ jsx1240(ChevronLeftIcon, { size: "16" })
|
|
52739
52935
|
}
|
|
52740
52936
|
),
|
|
52741
|
-
/* @__PURE__ */
|
|
52937
|
+
/* @__PURE__ */ jsx1240(
|
|
52742
52938
|
Button,
|
|
52743
52939
|
{
|
|
52744
52940
|
variant: "outline",
|
|
@@ -52746,10 +52942,10 @@ var Pagination = ({
|
|
|
52746
52942
|
size: "sm",
|
|
52747
52943
|
onClick: () => onPageChange("NEXT" /* NEXT */),
|
|
52748
52944
|
disabled: !nextPageAvailable,
|
|
52749
|
-
children: /* @__PURE__ */
|
|
52945
|
+
children: /* @__PURE__ */ jsx1240(ChevronRightIcon, { size: "16" })
|
|
52750
52946
|
}
|
|
52751
52947
|
),
|
|
52752
|
-
/* @__PURE__ */
|
|
52948
|
+
/* @__PURE__ */ jsx1240(
|
|
52753
52949
|
Button,
|
|
52754
52950
|
{
|
|
52755
52951
|
variant: "outline",
|
|
@@ -52757,7 +52953,7 @@ var Pagination = ({
|
|
|
52757
52953
|
size: "sm",
|
|
52758
52954
|
onClick: () => onPageChange("LAST" /* LAST */),
|
|
52759
52955
|
disabled: !nextPageAvailable,
|
|
52760
|
-
children: /* @__PURE__ */
|
|
52956
|
+
children: /* @__PURE__ */ jsx1240(ChevronRightDoubleIcon, { size: "16" })
|
|
52761
52957
|
}
|
|
52762
52958
|
)
|
|
52763
52959
|
] })
|
|
@@ -52766,14 +52962,14 @@ var Pagination = ({
|
|
|
52766
52962
|
};
|
|
52767
52963
|
|
|
52768
52964
|
// src/components/Popover/Popover.tsx
|
|
52769
|
-
import * as
|
|
52965
|
+
import * as React15 from "react";
|
|
52770
52966
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
52771
|
-
import { jsx as
|
|
52967
|
+
import { jsx as jsx1241 } from "react/jsx-runtime";
|
|
52772
52968
|
var Popover = PopoverPrimitive.Root;
|
|
52773
52969
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
52774
|
-
var PopoverContent =
|
|
52970
|
+
var PopoverContent = React15.forwardRef((_a, ref) => {
|
|
52775
52971
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
52776
|
-
return /* @__PURE__ */
|
|
52972
|
+
return /* @__PURE__ */ jsx1241(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx1241(
|
|
52777
52973
|
PopoverPrimitive.Content,
|
|
52778
52974
|
__spreadValues({
|
|
52779
52975
|
ref,
|
|
@@ -52789,16 +52985,16 @@ var PopoverContent = React14.forwardRef((_a, ref) => {
|
|
|
52789
52985
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
52790
52986
|
|
|
52791
52987
|
// src/components/Select/Select.tsx
|
|
52792
|
-
import * as
|
|
52988
|
+
import * as React16 from "react";
|
|
52793
52989
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
52794
|
-
import { jsx as
|
|
52990
|
+
import { jsx as jsx1242, jsxs as jsxs1018 } from "react/jsx-runtime";
|
|
52795
52991
|
var Select = SelectPrimitive.Root;
|
|
52796
52992
|
var SelectGroup = SelectPrimitive.Group;
|
|
52797
52993
|
var SelectValue = SelectPrimitive.Value;
|
|
52798
|
-
var SelectTrigger =
|
|
52994
|
+
var SelectTrigger = React16.forwardRef((_a, ref) => {
|
|
52799
52995
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
52800
52996
|
const isDisabled = props["data-is-disabled"];
|
|
52801
|
-
return /* @__PURE__ */
|
|
52997
|
+
return /* @__PURE__ */ jsxs1018(
|
|
52802
52998
|
SelectPrimitive.Trigger,
|
|
52803
52999
|
__spreadProps(__spreadValues({
|
|
52804
53000
|
ref,
|
|
@@ -52815,15 +53011,15 @@ var SelectTrigger = React15.forwardRef((_a, ref) => {
|
|
|
52815
53011
|
}, props), {
|
|
52816
53012
|
children: [
|
|
52817
53013
|
children,
|
|
52818
|
-
/* @__PURE__ */
|
|
53014
|
+
/* @__PURE__ */ jsx1242(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx1242(ChevronSelectorVerticalIcon, { size: "16", className: "w-4 h-4 opacity-50" }) })
|
|
52819
53015
|
]
|
|
52820
53016
|
})
|
|
52821
53017
|
);
|
|
52822
53018
|
});
|
|
52823
53019
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
52824
|
-
var SelectContent =
|
|
53020
|
+
var SelectContent = React16.forwardRef((_a, ref) => {
|
|
52825
53021
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
52826
|
-
return /* @__PURE__ */
|
|
53022
|
+
return /* @__PURE__ */ jsx1242(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx1242(
|
|
52827
53023
|
SelectPrimitive.Content,
|
|
52828
53024
|
__spreadProps(__spreadValues({
|
|
52829
53025
|
ref,
|
|
@@ -52834,7 +53030,7 @@ var SelectContent = React15.forwardRef((_a, ref) => {
|
|
|
52834
53030
|
),
|
|
52835
53031
|
position
|
|
52836
53032
|
}, props), {
|
|
52837
|
-
children: /* @__PURE__ */
|
|
53033
|
+
children: /* @__PURE__ */ jsx1242(
|
|
52838
53034
|
SelectPrimitive.Viewport,
|
|
52839
53035
|
{
|
|
52840
53036
|
className: cn(
|
|
@@ -52848,9 +53044,9 @@ var SelectContent = React15.forwardRef((_a, ref) => {
|
|
|
52848
53044
|
) });
|
|
52849
53045
|
});
|
|
52850
53046
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
52851
|
-
var SelectLabel =
|
|
53047
|
+
var SelectLabel = React16.forwardRef((_a, ref) => {
|
|
52852
53048
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52853
|
-
return /* @__PURE__ */
|
|
53049
|
+
return /* @__PURE__ */ jsx1242(
|
|
52854
53050
|
SelectPrimitive.Label,
|
|
52855
53051
|
__spreadValues({
|
|
52856
53052
|
ref,
|
|
@@ -52859,9 +53055,9 @@ var SelectLabel = React15.forwardRef((_a, ref) => {
|
|
|
52859
53055
|
);
|
|
52860
53056
|
});
|
|
52861
53057
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
52862
|
-
var SelectItem =
|
|
53058
|
+
var SelectItem = React16.forwardRef((_a, ref) => {
|
|
52863
53059
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
52864
|
-
return /* @__PURE__ */
|
|
53060
|
+
return /* @__PURE__ */ jsx1242(
|
|
52865
53061
|
SelectPrimitive.Item,
|
|
52866
53062
|
__spreadProps(__spreadValues({
|
|
52867
53063
|
ref,
|
|
@@ -52870,14 +53066,14 @@ var SelectItem = React15.forwardRef((_a, ref) => {
|
|
|
52870
53066
|
className
|
|
52871
53067
|
)
|
|
52872
53068
|
}, props), {
|
|
52873
|
-
children: /* @__PURE__ */
|
|
53069
|
+
children: /* @__PURE__ */ jsx1242(SelectPrimitive.ItemText, { children })
|
|
52874
53070
|
})
|
|
52875
53071
|
);
|
|
52876
53072
|
});
|
|
52877
53073
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
52878
|
-
var SelectSeparator =
|
|
53074
|
+
var SelectSeparator = React16.forwardRef((_a, ref) => {
|
|
52879
53075
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52880
|
-
return /* @__PURE__ */
|
|
53076
|
+
return /* @__PURE__ */ jsx1242(
|
|
52881
53077
|
SelectPrimitive.Separator,
|
|
52882
53078
|
__spreadValues({
|
|
52883
53079
|
ref,
|
|
@@ -52887,13 +53083,124 @@ var SelectSeparator = React15.forwardRef((_a, ref) => {
|
|
|
52887
53083
|
});
|
|
52888
53084
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
52889
53085
|
|
|
53086
|
+
// src/components/Sheet/Sheet.tsx
|
|
53087
|
+
import * as React17 from "react";
|
|
53088
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
53089
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
53090
|
+
import { jsx as jsx1243, jsxs as jsxs1019 } from "react/jsx-runtime";
|
|
53091
|
+
var Sheet = SheetPrimitive.Root;
|
|
53092
|
+
var SheetTrigger = SheetPrimitive.Trigger;
|
|
53093
|
+
var SheetClose = React17.forwardRef((_a, ref) => {
|
|
53094
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53095
|
+
return /* @__PURE__ */ jsx1243(SheetPrimitive.Close, __spreadProps(__spreadValues({}, props), { ref, asChild: true, children: /* @__PURE__ */ jsx1243(Button, { size: "sm", variant: "secondary", icon: true, children: /* @__PURE__ */ jsx1243(XCloseIcon, { size: 16 }) }) }));
|
|
53096
|
+
});
|
|
53097
|
+
SheetClose.displayName = SheetPrimitive.Close.displayName;
|
|
53098
|
+
var SheetPortal = SheetPrimitive.Portal;
|
|
53099
|
+
var SheetOverlay = React17.forwardRef((_a, ref) => {
|
|
53100
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53101
|
+
return /* @__PURE__ */ jsx1243(
|
|
53102
|
+
SheetPrimitive.Overlay,
|
|
53103
|
+
__spreadProps(__spreadValues({
|
|
53104
|
+
className: cn(
|
|
53105
|
+
"fixed inset-0 z-50 bg-gray-1000/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
53106
|
+
className
|
|
53107
|
+
)
|
|
53108
|
+
}, props), {
|
|
53109
|
+
ref
|
|
53110
|
+
})
|
|
53111
|
+
);
|
|
53112
|
+
});
|
|
53113
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
53114
|
+
var sheetVariants = cva4(
|
|
53115
|
+
"fixed z-50 gap-4 bg-white p-6 shadow-sm border-gray-200 xl:rounded-none transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
53116
|
+
{
|
|
53117
|
+
variants: {
|
|
53118
|
+
side: {
|
|
53119
|
+
top: "inset-x-0 top-0 border-b rounded-b-3xl data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
53120
|
+
bottom: "inset-x-0 bottom-0 border-t rounded-t-3xl data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
53121
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
53122
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
53123
|
+
}
|
|
53124
|
+
},
|
|
53125
|
+
defaultVariants: {
|
|
53126
|
+
side: "right"
|
|
53127
|
+
}
|
|
53128
|
+
}
|
|
53129
|
+
);
|
|
53130
|
+
var SheetContent = React17.forwardRef(
|
|
53131
|
+
(_a, ref) => {
|
|
53132
|
+
var _b = _a, {
|
|
53133
|
+
side = "right",
|
|
53134
|
+
className,
|
|
53135
|
+
children,
|
|
53136
|
+
container,
|
|
53137
|
+
overlay = true
|
|
53138
|
+
} = _b, props = __objRest(_b, [
|
|
53139
|
+
"side",
|
|
53140
|
+
"className",
|
|
53141
|
+
"children",
|
|
53142
|
+
"container",
|
|
53143
|
+
"overlay"
|
|
53144
|
+
]);
|
|
53145
|
+
return /* @__PURE__ */ jsxs1019(SheetPortal, { container, children: [
|
|
53146
|
+
overlay && /* @__PURE__ */ jsx1243(SheetOverlay, { className: cn({ absolute: Boolean(container) }) }),
|
|
53147
|
+
/* @__PURE__ */ jsx1243(
|
|
53148
|
+
SheetPrimitive.Content,
|
|
53149
|
+
__spreadProps(__spreadValues({
|
|
53150
|
+
ref,
|
|
53151
|
+
className: cn(
|
|
53152
|
+
"flex flex-col gap-6",
|
|
53153
|
+
sheetVariants({ side }),
|
|
53154
|
+
{ absolute: Boolean(container) },
|
|
53155
|
+
className
|
|
53156
|
+
),
|
|
53157
|
+
onInteractOutside: (event) => {
|
|
53158
|
+
if (!overlay) {
|
|
53159
|
+
event.preventDefault();
|
|
53160
|
+
}
|
|
53161
|
+
}
|
|
53162
|
+
}, props), {
|
|
53163
|
+
children
|
|
53164
|
+
})
|
|
53165
|
+
)
|
|
53166
|
+
] });
|
|
53167
|
+
}
|
|
53168
|
+
);
|
|
53169
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
53170
|
+
var SheetHeader = (_a) => {
|
|
53171
|
+
var _b = _a, {
|
|
53172
|
+
className
|
|
53173
|
+
} = _b, props = __objRest(_b, [
|
|
53174
|
+
"className"
|
|
53175
|
+
]);
|
|
53176
|
+
return /* @__PURE__ */ jsx1243("div", __spreadValues({ className: cn("flex justify-between", className) }, props));
|
|
53177
|
+
};
|
|
53178
|
+
SheetHeader.displayName = "SheetHeader";
|
|
53179
|
+
var SheetTitle = React17.forwardRef((_a, ref) => {
|
|
53180
|
+
var _b = _a, { className, icon } = _b, props = __objRest(_b, ["className", "icon"]);
|
|
53181
|
+
return /* @__PURE__ */ jsxs1019("div", { className: "flex gap-3 items-center p-2 overflow-hidden", children: [
|
|
53182
|
+
icon && React17.cloneElement(icon, {
|
|
53183
|
+
size: 18,
|
|
53184
|
+
className: cn("shrink-0", icon.props.className)
|
|
53185
|
+
}),
|
|
53186
|
+
/* @__PURE__ */ jsx1243(
|
|
53187
|
+
SheetPrimitive.Title,
|
|
53188
|
+
__spreadValues({
|
|
53189
|
+
ref,
|
|
53190
|
+
className: cn("text-md font-semibold text-gray-1000 truncate", className)
|
|
53191
|
+
}, props)
|
|
53192
|
+
)
|
|
53193
|
+
] });
|
|
53194
|
+
});
|
|
53195
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
53196
|
+
|
|
52890
53197
|
// src/components/Switch/Switch.tsx
|
|
52891
|
-
import * as
|
|
53198
|
+
import * as React18 from "react";
|
|
52892
53199
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
52893
|
-
import { jsx as
|
|
52894
|
-
var Switch =
|
|
53200
|
+
import { jsx as jsx1244 } from "react/jsx-runtime";
|
|
53201
|
+
var Switch = React18.forwardRef((_a, ref) => {
|
|
52895
53202
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52896
|
-
return /* @__PURE__ */
|
|
53203
|
+
return /* @__PURE__ */ jsx1244(
|
|
52897
53204
|
SwitchPrimitive.Root,
|
|
52898
53205
|
__spreadProps(__spreadValues({
|
|
52899
53206
|
className: cn(
|
|
@@ -52902,18 +53209,18 @@ var Switch = React16.forwardRef((_a, ref) => {
|
|
|
52902
53209
|
)
|
|
52903
53210
|
}, props), {
|
|
52904
53211
|
ref,
|
|
52905
|
-
children: /* @__PURE__ */
|
|
53212
|
+
children: /* @__PURE__ */ jsx1244(SwitchPrimitive.Thumb, { className: "inline-block w-4 h-4 bg-gray-600 rounded-full translate-x-0.5 data-[state=checked]:translate-x-5 data-[state=checked]:bg-white transition-transform ease-linear will-change-transform" })
|
|
52906
53213
|
})
|
|
52907
53214
|
);
|
|
52908
53215
|
});
|
|
52909
53216
|
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
52910
53217
|
|
|
52911
53218
|
// src/components/Table/Table.tsx
|
|
52912
|
-
import * as
|
|
52913
|
-
import { jsx as
|
|
52914
|
-
var Table =
|
|
53219
|
+
import * as React19 from "react";
|
|
53220
|
+
import { jsx as jsx1245, jsxs as jsxs1020 } from "react/jsx-runtime";
|
|
53221
|
+
var Table = React19.forwardRef((_a, ref) => {
|
|
52915
53222
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52916
|
-
return /* @__PURE__ */
|
|
53223
|
+
return /* @__PURE__ */ jsx1245("div", { className: "w-full overflow-auto border rounded-lg", children: /* @__PURE__ */ jsx1245(
|
|
52917
53224
|
"table",
|
|
52918
53225
|
__spreadValues({
|
|
52919
53226
|
ref,
|
|
@@ -52922,9 +53229,9 @@ var Table = React17.forwardRef((_a, ref) => {
|
|
|
52922
53229
|
) });
|
|
52923
53230
|
});
|
|
52924
53231
|
Table.displayName = "Table";
|
|
52925
|
-
var TableHeader =
|
|
53232
|
+
var TableHeader = React19.forwardRef((_a, ref) => {
|
|
52926
53233
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52927
|
-
return /* @__PURE__ */
|
|
53234
|
+
return /* @__PURE__ */ jsx1245(
|
|
52928
53235
|
"thead",
|
|
52929
53236
|
__spreadValues({
|
|
52930
53237
|
ref,
|
|
@@ -52933,9 +53240,9 @@ var TableHeader = React17.forwardRef((_a, ref) => {
|
|
|
52933
53240
|
);
|
|
52934
53241
|
});
|
|
52935
53242
|
TableHeader.displayName = "TableHeader";
|
|
52936
|
-
var TableBody =
|
|
53243
|
+
var TableBody = React19.forwardRef((_a, ref) => {
|
|
52937
53244
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52938
|
-
return /* @__PURE__ */
|
|
53245
|
+
return /* @__PURE__ */ jsx1245(
|
|
52939
53246
|
"tbody",
|
|
52940
53247
|
__spreadValues({
|
|
52941
53248
|
ref,
|
|
@@ -52947,9 +53254,9 @@ var TableBody = React17.forwardRef((_a, ref) => {
|
|
|
52947
53254
|
);
|
|
52948
53255
|
});
|
|
52949
53256
|
TableBody.displayName = "TableBody";
|
|
52950
|
-
var TableRow =
|
|
53257
|
+
var TableRow = React19.forwardRef((_a, ref) => {
|
|
52951
53258
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52952
|
-
return /* @__PURE__ */
|
|
53259
|
+
return /* @__PURE__ */ jsx1245(
|
|
52953
53260
|
"tr",
|
|
52954
53261
|
__spreadValues({
|
|
52955
53262
|
ref,
|
|
@@ -52961,9 +53268,9 @@ var TableRow = React17.forwardRef((_a, ref) => {
|
|
|
52961
53268
|
);
|
|
52962
53269
|
});
|
|
52963
53270
|
TableRow.displayName = "TableRow";
|
|
52964
|
-
var TableHead =
|
|
53271
|
+
var TableHead = React19.forwardRef((_a, ref) => {
|
|
52965
53272
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52966
|
-
return /* @__PURE__ */
|
|
53273
|
+
return /* @__PURE__ */ jsx1245(
|
|
52967
53274
|
"th",
|
|
52968
53275
|
__spreadValues({
|
|
52969
53276
|
ref,
|
|
@@ -52975,9 +53282,9 @@ var TableHead = React17.forwardRef((_a, ref) => {
|
|
|
52975
53282
|
);
|
|
52976
53283
|
});
|
|
52977
53284
|
TableHead.displayName = "TableHead";
|
|
52978
|
-
var TableCell =
|
|
53285
|
+
var TableCell = React19.forwardRef((_a, ref) => {
|
|
52979
53286
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52980
|
-
return /* @__PURE__ */
|
|
53287
|
+
return /* @__PURE__ */ jsx1245(
|
|
52981
53288
|
"td",
|
|
52982
53289
|
__spreadValues({
|
|
52983
53290
|
ref,
|
|
@@ -52989,18 +53296,18 @@ var TableCell = React17.forwardRef((_a, ref) => {
|
|
|
52989
53296
|
);
|
|
52990
53297
|
});
|
|
52991
53298
|
TableCell.displayName = "TableCell";
|
|
52992
|
-
var TableEmpty =
|
|
53299
|
+
var TableEmpty = React19.forwardRef((_a, ref) => {
|
|
52993
53300
|
var _b = _a, { className, title, description, children } = _b, props = __objRest(_b, ["className", "title", "description", "children"]);
|
|
52994
|
-
return /* @__PURE__ */
|
|
53301
|
+
return /* @__PURE__ */ jsxs1020(
|
|
52995
53302
|
"div",
|
|
52996
53303
|
__spreadProps(__spreadValues({
|
|
52997
53304
|
ref,
|
|
52998
53305
|
className: cn("flex flex-col gap-6 items-center py-12", className)
|
|
52999
53306
|
}, props), {
|
|
53000
53307
|
children: [
|
|
53001
|
-
title && /* @__PURE__ */
|
|
53002
|
-
description && /* @__PURE__ */
|
|
53003
|
-
/* @__PURE__ */
|
|
53308
|
+
title && /* @__PURE__ */ jsx1245("span", { className: "text-lg font-semibold text-gray-1000", children: title }),
|
|
53309
|
+
description && /* @__PURE__ */ jsx1245("span", { className: "text-sm font-normal text-gray-900", children: description }),
|
|
53310
|
+
/* @__PURE__ */ jsx1245("div", { children })
|
|
53004
53311
|
]
|
|
53005
53312
|
})
|
|
53006
53313
|
);
|
|
@@ -53008,13 +53315,13 @@ var TableEmpty = React17.forwardRef((_a, ref) => {
|
|
|
53008
53315
|
TableEmpty.displayName = "TableEmpty";
|
|
53009
53316
|
|
|
53010
53317
|
// src/components/Tabs/Tabs.tsx
|
|
53011
|
-
import * as
|
|
53318
|
+
import * as React20 from "react";
|
|
53012
53319
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
53013
|
-
import { jsx as
|
|
53320
|
+
import { jsx as jsx1246 } from "react/jsx-runtime";
|
|
53014
53321
|
var Tabs = TabsPrimitive.Root;
|
|
53015
|
-
var TabsList =
|
|
53322
|
+
var TabsList = React20.forwardRef((_a, ref) => {
|
|
53016
53323
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53017
|
-
return /* @__PURE__ */
|
|
53324
|
+
return /* @__PURE__ */ jsx1246(
|
|
53018
53325
|
TabsPrimitive.List,
|
|
53019
53326
|
__spreadValues({
|
|
53020
53327
|
ref,
|
|
@@ -53026,9 +53333,9 @@ var TabsList = React18.forwardRef((_a, ref) => {
|
|
|
53026
53333
|
);
|
|
53027
53334
|
});
|
|
53028
53335
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
53029
|
-
var TabsTrigger =
|
|
53336
|
+
var TabsTrigger = React20.forwardRef((_a, ref) => {
|
|
53030
53337
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53031
|
-
return /* @__PURE__ */
|
|
53338
|
+
return /* @__PURE__ */ jsx1246(
|
|
53032
53339
|
TabsPrimitive.Trigger,
|
|
53033
53340
|
__spreadValues({
|
|
53034
53341
|
ref,
|
|
@@ -53043,9 +53350,9 @@ var TabsTrigger = React18.forwardRef((_a, ref) => {
|
|
|
53043
53350
|
);
|
|
53044
53351
|
});
|
|
53045
53352
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
53046
|
-
var TabsContent =
|
|
53353
|
+
var TabsContent = React20.forwardRef((_a, ref) => {
|
|
53047
53354
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53048
|
-
return /* @__PURE__ */
|
|
53355
|
+
return /* @__PURE__ */ jsx1246(
|
|
53049
53356
|
TabsPrimitive.Content,
|
|
53050
53357
|
__spreadValues({
|
|
53051
53358
|
ref,
|
|
@@ -53059,13 +53366,13 @@ var TabsContent = React18.forwardRef((_a, ref) => {
|
|
|
53059
53366
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
53060
53367
|
|
|
53061
53368
|
// src/components/Textarea/Textarea.tsx
|
|
53062
|
-
import * as
|
|
53063
|
-
import { jsx as
|
|
53064
|
-
var Textarea =
|
|
53369
|
+
import * as React21 from "react";
|
|
53370
|
+
import { jsx as jsx1247 } from "react/jsx-runtime";
|
|
53371
|
+
var Textarea = React21.forwardRef(
|
|
53065
53372
|
(_a, ref) => {
|
|
53066
53373
|
var _b = _a, { className, disabled } = _b, props = __objRest(_b, ["className", "disabled"]);
|
|
53067
53374
|
const isDisabled = !!props["data-is-disabled"] || disabled;
|
|
53068
|
-
return /* @__PURE__ */
|
|
53375
|
+
return /* @__PURE__ */ jsx1247("div", { className: "flex gap-2", children: /* @__PURE__ */ jsx1247(
|
|
53069
53376
|
"div",
|
|
53070
53377
|
{
|
|
53071
53378
|
className: cn(
|
|
@@ -53076,7 +53383,7 @@ var Textarea = React19.forwardRef(
|
|
|
53076
53383
|
},
|
|
53077
53384
|
className
|
|
53078
53385
|
),
|
|
53079
|
-
children: /* @__PURE__ */
|
|
53386
|
+
children: /* @__PURE__ */ jsx1247(
|
|
53080
53387
|
"textarea",
|
|
53081
53388
|
__spreadProps(__spreadValues({}, props), {
|
|
53082
53389
|
disabled: isDisabled,
|
|
@@ -53091,14 +53398,14 @@ var Textarea = React19.forwardRef(
|
|
|
53091
53398
|
Textarea.displayName = "Textarea";
|
|
53092
53399
|
|
|
53093
53400
|
// src/components/Toaster/Toast.tsx
|
|
53094
|
-
import * as
|
|
53401
|
+
import * as React22 from "react";
|
|
53095
53402
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
53096
|
-
import { cva as
|
|
53097
|
-
import { jsx as
|
|
53403
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
53404
|
+
import { jsx as jsx1248 } from "react/jsx-runtime";
|
|
53098
53405
|
var ToastProvider = ToastPrimitives.Provider;
|
|
53099
|
-
var ToastViewport =
|
|
53406
|
+
var ToastViewport = React22.forwardRef((_a, ref) => {
|
|
53100
53407
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53101
|
-
return /* @__PURE__ */
|
|
53408
|
+
return /* @__PURE__ */ jsx1248(
|
|
53102
53409
|
ToastPrimitives.Viewport,
|
|
53103
53410
|
__spreadValues({
|
|
53104
53411
|
ref,
|
|
@@ -53110,7 +53417,7 @@ var ToastViewport = React20.forwardRef((_a, ref) => {
|
|
|
53110
53417
|
);
|
|
53111
53418
|
});
|
|
53112
53419
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
53113
|
-
var toastVariants =
|
|
53420
|
+
var toastVariants = cva5(
|
|
53114
53421
|
"group pointer-events-auto relative flex w-full shadow-sm items-center justify-between gap-4 overflow-hidden rounded-md px-4 py-2 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:fade-out data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
53115
53422
|
{
|
|
53116
53423
|
variants: {
|
|
@@ -53124,9 +53431,9 @@ var toastVariants = cva4(
|
|
|
53124
53431
|
}
|
|
53125
53432
|
}
|
|
53126
53433
|
);
|
|
53127
|
-
var Toast =
|
|
53434
|
+
var Toast = React22.forwardRef((_a, ref) => {
|
|
53128
53435
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
53129
|
-
return /* @__PURE__ */
|
|
53436
|
+
return /* @__PURE__ */ jsx1248(
|
|
53130
53437
|
ToastPrimitives.Root,
|
|
53131
53438
|
__spreadValues({
|
|
53132
53439
|
ref,
|
|
@@ -53135,28 +53442,28 @@ var Toast = React20.forwardRef((_a, ref) => {
|
|
|
53135
53442
|
);
|
|
53136
53443
|
});
|
|
53137
53444
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
53138
|
-
var ToastAction =
|
|
53445
|
+
var ToastAction = React22.forwardRef((_a, ref) => {
|
|
53139
53446
|
var _b = _a, { className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
53140
|
-
return /* @__PURE__ */
|
|
53447
|
+
return /* @__PURE__ */ jsx1248(ToastPrimitives.Action, { altText, ref, asChild: true, children: /* @__PURE__ */ jsx1248(Button, __spreadValues({ size: "xs" }, props)) });
|
|
53141
53448
|
});
|
|
53142
53449
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
53143
|
-
var ToastClose =
|
|
53450
|
+
var ToastClose = React22.forwardRef((_a, ref) => {
|
|
53144
53451
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53145
|
-
return /* @__PURE__ */
|
|
53452
|
+
return /* @__PURE__ */ jsx1248(
|
|
53146
53453
|
ToastPrimitives.Close,
|
|
53147
53454
|
__spreadProps(__spreadValues({
|
|
53148
53455
|
ref,
|
|
53149
53456
|
className: cn("focus:outline-none focus:ring-1", className),
|
|
53150
53457
|
"toast-close": ""
|
|
53151
53458
|
}, props), {
|
|
53152
|
-
children: /* @__PURE__ */
|
|
53459
|
+
children: /* @__PURE__ */ jsx1248(XCloseIcon, { className: "text-white", size: 16 })
|
|
53153
53460
|
})
|
|
53154
53461
|
);
|
|
53155
53462
|
});
|
|
53156
53463
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
53157
|
-
var ToastTitle =
|
|
53464
|
+
var ToastTitle = React22.forwardRef((_a, ref) => {
|
|
53158
53465
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53159
|
-
return /* @__PURE__ */
|
|
53466
|
+
return /* @__PURE__ */ jsx1248(
|
|
53160
53467
|
ToastPrimitives.Title,
|
|
53161
53468
|
__spreadValues({
|
|
53162
53469
|
ref,
|
|
@@ -53165,9 +53472,9 @@ var ToastTitle = React20.forwardRef((_a, ref) => {
|
|
|
53165
53472
|
);
|
|
53166
53473
|
});
|
|
53167
53474
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
53168
|
-
var ToastDescription =
|
|
53475
|
+
var ToastDescription = React22.forwardRef((_a, ref) => {
|
|
53169
53476
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53170
|
-
return /* @__PURE__ */
|
|
53477
|
+
return /* @__PURE__ */ jsx1248(
|
|
53171
53478
|
ToastPrimitives.Description,
|
|
53172
53479
|
__spreadValues({
|
|
53173
53480
|
ref,
|
|
@@ -53178,10 +53485,10 @@ var ToastDescription = React20.forwardRef((_a, ref) => {
|
|
|
53178
53485
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
53179
53486
|
|
|
53180
53487
|
// src/components/Toaster/Toaster.tsx
|
|
53181
|
-
import
|
|
53488
|
+
import React24 from "react";
|
|
53182
53489
|
|
|
53183
53490
|
// src/components/Toaster/useToast.tsx
|
|
53184
|
-
import * as
|
|
53491
|
+
import * as React23 from "react";
|
|
53185
53492
|
var TOAST_LIMIT = 3;
|
|
53186
53493
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
53187
53494
|
var count = 0;
|
|
@@ -53290,8 +53597,8 @@ var toast = (parentId) => (_a) => {
|
|
|
53290
53597
|
};
|
|
53291
53598
|
};
|
|
53292
53599
|
function useToast({ toasterId = "default" } = {}) {
|
|
53293
|
-
const [state, setState] =
|
|
53294
|
-
|
|
53600
|
+
const [state, setState] = React23.useState(memoryState);
|
|
53601
|
+
React23.useEffect(() => {
|
|
53295
53602
|
listeners.push(setState);
|
|
53296
53603
|
return () => {
|
|
53297
53604
|
const index = listeners.indexOf(setState);
|
|
@@ -53307,7 +53614,7 @@ function useToast({ toasterId = "default" } = {}) {
|
|
|
53307
53614
|
}
|
|
53308
53615
|
|
|
53309
53616
|
// src/components/Toaster/Toaster.tsx
|
|
53310
|
-
import { jsx as
|
|
53617
|
+
import { jsx as jsx1249, jsxs as jsxs1021 } from "react/jsx-runtime";
|
|
53311
53618
|
var ToastContent = ({
|
|
53312
53619
|
title,
|
|
53313
53620
|
description,
|
|
@@ -53315,19 +53622,19 @@ var ToastContent = ({
|
|
|
53315
53622
|
actions,
|
|
53316
53623
|
hideClose
|
|
53317
53624
|
}) => {
|
|
53318
|
-
return /* @__PURE__ */
|
|
53319
|
-
/* @__PURE__ */
|
|
53320
|
-
/* @__PURE__ */
|
|
53321
|
-
icon &&
|
|
53625
|
+
return /* @__PURE__ */ jsxs1021("div", { className: "flex flex-col gap-2", children: [
|
|
53626
|
+
/* @__PURE__ */ jsxs1021("div", { className: "flex items-center gap-4", children: [
|
|
53627
|
+
/* @__PURE__ */ jsxs1021("div", { className: "flex items-center flex-grow gap-2", children: [
|
|
53628
|
+
icon && React24.cloneElement(icon, {
|
|
53322
53629
|
size: 16,
|
|
53323
53630
|
className: cn("shrink-0", icon.props.className)
|
|
53324
53631
|
}),
|
|
53325
|
-
title && /* @__PURE__ */
|
|
53632
|
+
title && /* @__PURE__ */ jsx1249(ToastTitle, { children: title })
|
|
53326
53633
|
] }),
|
|
53327
53634
|
actions,
|
|
53328
|
-
!hideClose && /* @__PURE__ */
|
|
53635
|
+
!hideClose && /* @__PURE__ */ jsx1249(ToastClose, {})
|
|
53329
53636
|
] }),
|
|
53330
|
-
description && /* @__PURE__ */
|
|
53637
|
+
description && /* @__PURE__ */ jsx1249(ToastDescription, { children: description })
|
|
53331
53638
|
] });
|
|
53332
53639
|
};
|
|
53333
53640
|
function Toaster(_a) {
|
|
@@ -53339,7 +53646,7 @@ function Toaster(_a) {
|
|
|
53339
53646
|
"toasterId"
|
|
53340
53647
|
]);
|
|
53341
53648
|
const { toasts } = useToast({ toasterId });
|
|
53342
|
-
return /* @__PURE__ */
|
|
53649
|
+
return /* @__PURE__ */ jsxs1021(ToastProvider, __spreadProps(__spreadValues({}, props), { children: [
|
|
53343
53650
|
toasts.filter((t) => t.parentId === toasterId).map(
|
|
53344
53651
|
(_a2) => {
|
|
53345
53652
|
var _b2 = _a2, {
|
|
@@ -53359,7 +53666,7 @@ function Toaster(_a) {
|
|
|
53359
53666
|
"icon",
|
|
53360
53667
|
"hideClose"
|
|
53361
53668
|
]);
|
|
53362
|
-
return /* @__PURE__ */
|
|
53669
|
+
return /* @__PURE__ */ jsx1249(Toast, __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ jsx1249(
|
|
53363
53670
|
ToastContent,
|
|
53364
53671
|
{
|
|
53365
53672
|
title,
|
|
@@ -53371,27 +53678,27 @@ function Toaster(_a) {
|
|
|
53371
53678
|
) }), id);
|
|
53372
53679
|
}
|
|
53373
53680
|
),
|
|
53374
|
-
/* @__PURE__ */
|
|
53681
|
+
/* @__PURE__ */ jsx1249(ToastViewport, { className })
|
|
53375
53682
|
] }));
|
|
53376
53683
|
}
|
|
53377
53684
|
|
|
53378
53685
|
// src/components/Tooltip/Tooltip.tsx
|
|
53379
|
-
import * as
|
|
53686
|
+
import * as React25 from "react";
|
|
53380
53687
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
53381
|
-
import { jsx as
|
|
53688
|
+
import { jsx as jsx1250 } from "react/jsx-runtime";
|
|
53382
53689
|
var TooltipProvider = (_a) => {
|
|
53383
53690
|
var _b = _a, {
|
|
53384
53691
|
delayDuration = 0
|
|
53385
53692
|
} = _b, props = __objRest(_b, [
|
|
53386
53693
|
"delayDuration"
|
|
53387
53694
|
]);
|
|
53388
|
-
return /* @__PURE__ */
|
|
53695
|
+
return /* @__PURE__ */ jsx1250(TooltipPrimitive.Provider, __spreadValues({ delayDuration }, props));
|
|
53389
53696
|
};
|
|
53390
53697
|
var Tooltip = TooltipPrimitive.Root;
|
|
53391
53698
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
53392
|
-
var TooltipContent =
|
|
53699
|
+
var TooltipContent = React25.forwardRef((_a, ref) => {
|
|
53393
53700
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
53394
|
-
return /* @__PURE__ */
|
|
53701
|
+
return /* @__PURE__ */ jsx1250(
|
|
53395
53702
|
TooltipPrimitive.Content,
|
|
53396
53703
|
__spreadValues({
|
|
53397
53704
|
ref,
|
|
@@ -53642,6 +53949,11 @@ export {
|
|
|
53642
53949
|
CameraPlusIcon,
|
|
53643
53950
|
Car1Icon,
|
|
53644
53951
|
Car2Icon,
|
|
53952
|
+
Carousel,
|
|
53953
|
+
CarouselContent,
|
|
53954
|
+
CarouselItem,
|
|
53955
|
+
CarouselNext,
|
|
53956
|
+
CarouselPrevious,
|
|
53645
53957
|
Certificate1Icon,
|
|
53646
53958
|
Certificate2Icon,
|
|
53647
53959
|
ChartBreakoutCircleIcon,
|
|
@@ -54471,6 +54783,12 @@ export {
|
|
|
54471
54783
|
Share7Icon,
|
|
54472
54784
|
ShareArrowIcon,
|
|
54473
54785
|
ShareIcon,
|
|
54786
|
+
Sheet,
|
|
54787
|
+
SheetClose,
|
|
54788
|
+
SheetContent,
|
|
54789
|
+
SheetHeader,
|
|
54790
|
+
SheetTitle,
|
|
54791
|
+
SheetTrigger,
|
|
54474
54792
|
Shield1Icon,
|
|
54475
54793
|
Shield2Icon,
|
|
54476
54794
|
Shield3Icon,
|