@snapcall/design-system 1.15.0 → 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 +557 -252
- package/dist/index.mjs +568 -274
- package/dist/tailwind.css +1 -1
- package/package.json +44 -41
package/dist/index.js
CHANGED
|
@@ -296,6 +296,11 @@ __export(src_exports, {
|
|
|
296
296
|
CameraPlusIcon: () => CameraPlusIcon,
|
|
297
297
|
Car1Icon: () => Car1Icon,
|
|
298
298
|
Car2Icon: () => Car2Icon,
|
|
299
|
+
Carousel: () => Carousel,
|
|
300
|
+
CarouselContent: () => CarouselContent,
|
|
301
|
+
CarouselItem: () => CarouselItem,
|
|
302
|
+
CarouselNext: () => CarouselNext,
|
|
303
|
+
CarouselPrevious: () => CarouselPrevious,
|
|
299
304
|
Certificate1Icon: () => Certificate1Icon,
|
|
300
305
|
Certificate2Icon: () => Certificate2Icon,
|
|
301
306
|
ChartBreakoutCircleIcon: () => ChartBreakoutCircleIcon,
|
|
@@ -1125,6 +1130,12 @@ __export(src_exports, {
|
|
|
1125
1130
|
Share7Icon: () => Share7Icon,
|
|
1126
1131
|
ShareArrowIcon: () => ShareArrowIcon,
|
|
1127
1132
|
ShareIcon: () => ShareIcon,
|
|
1133
|
+
Sheet: () => Sheet,
|
|
1134
|
+
SheetClose: () => SheetClose,
|
|
1135
|
+
SheetContent: () => SheetContent,
|
|
1136
|
+
SheetHeader: () => SheetHeader,
|
|
1137
|
+
SheetTitle: () => SheetTitle,
|
|
1138
|
+
SheetTrigger: () => SheetTrigger,
|
|
1128
1139
|
Shield1Icon: () => Shield1Icon,
|
|
1129
1140
|
Shield2Icon: () => Shield2Icon,
|
|
1130
1141
|
Shield3Icon: () => Shield3Icon,
|
|
@@ -1562,15 +1573,6 @@ Button.displayName = "Button";
|
|
|
1562
1573
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1563
1574
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1564
1575
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1565
|
-
var AlertDialogPortal = (_a) => {
|
|
1566
|
-
var _b = _a, {
|
|
1567
|
-
className
|
|
1568
|
-
} = _b, props = __objRest(_b, [
|
|
1569
|
-
"className"
|
|
1570
|
-
]);
|
|
1571
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AlertDialogPrimitive.Portal, __spreadValues({ className: cn(className) }, props));
|
|
1572
|
-
};
|
|
1573
|
-
AlertDialogPortal.displayName = AlertDialogPrimitive.Portal.displayName;
|
|
1574
1576
|
var AlertDialogOverlay = React3.forwardRef((_a, ref) => {
|
|
1575
1577
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
1576
1578
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -1588,14 +1590,14 @@ var AlertDialogOverlay = React3.forwardRef((_a, ref) => {
|
|
|
1588
1590
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
1589
1591
|
var AlertDialogContent = React3.forwardRef((_a, ref) => {
|
|
1590
1592
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1591
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(AlertDialogPrimitive.Portal, { children: [
|
|
1592
1594
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AlertDialogOverlay, {}),
|
|
1593
1595
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1594
1596
|
AlertDialogPrimitive.Content,
|
|
1595
1597
|
__spreadValues({
|
|
1596
1598
|
ref,
|
|
1597
1599
|
className: cn(
|
|
1598
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] translate-x-[-50%] translate-y-[-50%] gap-6 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]
|
|
1600
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] translate-x-[-50%] translate-y-[-50%] gap-6 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl md:w-full",
|
|
1599
1601
|
className
|
|
1600
1602
|
)
|
|
1601
1603
|
}, props)
|
|
@@ -1612,10 +1614,7 @@ var AlertDialogHeader = (_a) => {
|
|
|
1612
1614
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1613
1615
|
"div",
|
|
1614
1616
|
__spreadValues({
|
|
1615
|
-
className: cn(
|
|
1616
|
-
"flex flex-col space-y-5 text-center sm:text-left",
|
|
1617
|
-
className
|
|
1618
|
-
)
|
|
1617
|
+
className: cn("flex flex-col space-y-5 text-left", className)
|
|
1619
1618
|
}, props)
|
|
1620
1619
|
);
|
|
1621
1620
|
};
|
|
@@ -53150,13 +53149,209 @@ function Calendar(_a) {
|
|
|
53150
53149
|
}
|
|
53151
53150
|
Calendar.displayName = "Calendar";
|
|
53152
53151
|
|
|
53153
|
-
// src/components/
|
|
53152
|
+
// src/components/Carousel/Carousel.tsx
|
|
53154
53153
|
var React5 = __toESM(require("react"));
|
|
53155
|
-
var
|
|
53154
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
53156
53155
|
var import_jsx_runtime1230 = require("react/jsx-runtime");
|
|
53157
|
-
var
|
|
53156
|
+
var CarouselContext = React5.createContext(null);
|
|
53157
|
+
function useCarousel() {
|
|
53158
|
+
const context = React5.useContext(CarouselContext);
|
|
53159
|
+
if (!context) {
|
|
53160
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
53161
|
+
}
|
|
53162
|
+
return context;
|
|
53163
|
+
}
|
|
53164
|
+
var Carousel = React5.forwardRef(
|
|
53165
|
+
(_a, ref) => {
|
|
53166
|
+
var _b = _a, {
|
|
53167
|
+
orientation = "horizontal",
|
|
53168
|
+
opts,
|
|
53169
|
+
setApi,
|
|
53170
|
+
plugins,
|
|
53171
|
+
className,
|
|
53172
|
+
children
|
|
53173
|
+
} = _b, props = __objRest(_b, [
|
|
53174
|
+
"orientation",
|
|
53175
|
+
"opts",
|
|
53176
|
+
"setApi",
|
|
53177
|
+
"plugins",
|
|
53178
|
+
"className",
|
|
53179
|
+
"children"
|
|
53180
|
+
]);
|
|
53181
|
+
const [carouselRef, api] = (0, import_embla_carousel_react.default)(
|
|
53182
|
+
__spreadProps(__spreadValues({}, opts), {
|
|
53183
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
53184
|
+
}),
|
|
53185
|
+
plugins
|
|
53186
|
+
);
|
|
53187
|
+
const [canScrollPrev, setCanScrollPrev] = React5.useState(false);
|
|
53188
|
+
const [canScrollNext, setCanScrollNext] = React5.useState(false);
|
|
53189
|
+
const onSelect = React5.useCallback((api2) => {
|
|
53190
|
+
if (!api2) {
|
|
53191
|
+
return;
|
|
53192
|
+
}
|
|
53193
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
53194
|
+
setCanScrollNext(api2.canScrollNext());
|
|
53195
|
+
}, []);
|
|
53196
|
+
const scrollPrev = React5.useCallback(() => {
|
|
53197
|
+
api == null ? void 0 : api.scrollPrev();
|
|
53198
|
+
}, [api]);
|
|
53199
|
+
const scrollNext = React5.useCallback(() => {
|
|
53200
|
+
api == null ? void 0 : api.scrollNext();
|
|
53201
|
+
}, [api]);
|
|
53202
|
+
const handleKeyDown = React5.useCallback(
|
|
53203
|
+
(event) => {
|
|
53204
|
+
if (event.key === "ArrowLeft") {
|
|
53205
|
+
event.preventDefault();
|
|
53206
|
+
scrollPrev();
|
|
53207
|
+
} else if (event.key === "ArrowRight") {
|
|
53208
|
+
event.preventDefault();
|
|
53209
|
+
scrollNext();
|
|
53210
|
+
}
|
|
53211
|
+
},
|
|
53212
|
+
[scrollPrev, scrollNext]
|
|
53213
|
+
);
|
|
53214
|
+
React5.useEffect(() => {
|
|
53215
|
+
if (!api || !setApi) {
|
|
53216
|
+
return;
|
|
53217
|
+
}
|
|
53218
|
+
setApi(api);
|
|
53219
|
+
}, [api, setApi]);
|
|
53220
|
+
React5.useEffect(() => {
|
|
53221
|
+
if (!api) {
|
|
53222
|
+
return;
|
|
53223
|
+
}
|
|
53224
|
+
onSelect(api);
|
|
53225
|
+
api.on("reInit", onSelect);
|
|
53226
|
+
api.on("select", onSelect);
|
|
53227
|
+
return () => {
|
|
53228
|
+
api == null ? void 0 : api.off("select", onSelect);
|
|
53229
|
+
};
|
|
53230
|
+
}, [api, onSelect]);
|
|
53231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(
|
|
53232
|
+
CarouselContext.Provider,
|
|
53233
|
+
{
|
|
53234
|
+
value: {
|
|
53235
|
+
carouselRef,
|
|
53236
|
+
api,
|
|
53237
|
+
opts,
|
|
53238
|
+
orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
|
|
53239
|
+
scrollPrev,
|
|
53240
|
+
scrollNext,
|
|
53241
|
+
canScrollPrev,
|
|
53242
|
+
canScrollNext
|
|
53243
|
+
},
|
|
53244
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(
|
|
53245
|
+
"div",
|
|
53246
|
+
__spreadProps(__spreadValues({
|
|
53247
|
+
ref,
|
|
53248
|
+
onKeyDownCapture: handleKeyDown,
|
|
53249
|
+
className: cn("relative", className),
|
|
53250
|
+
role: "region",
|
|
53251
|
+
"aria-roledescription": "carousel"
|
|
53252
|
+
}, props), {
|
|
53253
|
+
children
|
|
53254
|
+
})
|
|
53255
|
+
)
|
|
53256
|
+
}
|
|
53257
|
+
);
|
|
53258
|
+
}
|
|
53259
|
+
);
|
|
53260
|
+
Carousel.displayName = "Carousel";
|
|
53261
|
+
var CarouselContent = React5.forwardRef((_a, ref) => {
|
|
53262
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53263
|
+
const { carouselRef, orientation } = useCarousel();
|
|
53264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(
|
|
53265
|
+
"div",
|
|
53266
|
+
__spreadValues({
|
|
53267
|
+
ref,
|
|
53268
|
+
className: cn(
|
|
53269
|
+
"flex",
|
|
53270
|
+
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
53271
|
+
className
|
|
53272
|
+
)
|
|
53273
|
+
}, props)
|
|
53274
|
+
) });
|
|
53275
|
+
});
|
|
53276
|
+
CarouselContent.displayName = "CarouselContent";
|
|
53277
|
+
var CarouselItem = React5.forwardRef((_a, ref) => {
|
|
53158
53278
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53279
|
+
const { orientation } = useCarousel();
|
|
53159
53280
|
return /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(
|
|
53281
|
+
"div",
|
|
53282
|
+
__spreadValues({
|
|
53283
|
+
ref,
|
|
53284
|
+
role: "group",
|
|
53285
|
+
"aria-roledescription": "slide",
|
|
53286
|
+
className: cn(
|
|
53287
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
53288
|
+
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
53289
|
+
className
|
|
53290
|
+
)
|
|
53291
|
+
}, props)
|
|
53292
|
+
);
|
|
53293
|
+
});
|
|
53294
|
+
CarouselItem.displayName = "CarouselItem";
|
|
53295
|
+
var CarouselPrevious = React5.forwardRef((_a, ref) => {
|
|
53296
|
+
var _b = _a, { className, variant = "outline" } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
53297
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
53298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1230.jsxs)(
|
|
53299
|
+
Button,
|
|
53300
|
+
__spreadProps(__spreadValues({
|
|
53301
|
+
ref,
|
|
53302
|
+
variant,
|
|
53303
|
+
size: "sm",
|
|
53304
|
+
icon: true,
|
|
53305
|
+
className: cn(
|
|
53306
|
+
"absolute",
|
|
53307
|
+
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2",
|
|
53308
|
+
className
|
|
53309
|
+
),
|
|
53310
|
+
disabled: !canScrollPrev,
|
|
53311
|
+
onClick: scrollPrev
|
|
53312
|
+
}, props), {
|
|
53313
|
+
children: [
|
|
53314
|
+
orientation === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(ArrowLeftIcon, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(ArrowUpIcon, { size: 16 }),
|
|
53315
|
+
/* @__PURE__ */ (0, import_jsx_runtime1230.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
53316
|
+
]
|
|
53317
|
+
})
|
|
53318
|
+
);
|
|
53319
|
+
});
|
|
53320
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
53321
|
+
var CarouselNext = React5.forwardRef((_a, ref) => {
|
|
53322
|
+
var _b = _a, { className, variant = "outline" } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
53323
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
53324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1230.jsxs)(
|
|
53325
|
+
Button,
|
|
53326
|
+
__spreadProps(__spreadValues({
|
|
53327
|
+
ref,
|
|
53328
|
+
variant,
|
|
53329
|
+
size: "sm",
|
|
53330
|
+
icon: true,
|
|
53331
|
+
className: cn(
|
|
53332
|
+
"absolute",
|
|
53333
|
+
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2",
|
|
53334
|
+
className
|
|
53335
|
+
),
|
|
53336
|
+
disabled: !canScrollNext,
|
|
53337
|
+
onClick: scrollNext
|
|
53338
|
+
}, props), {
|
|
53339
|
+
children: [
|
|
53340
|
+
orientation === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(ArrowRightIcon, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime1230.jsx)(ArrowDownIcon, { size: 16 }),
|
|
53341
|
+
/* @__PURE__ */ (0, import_jsx_runtime1230.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
53342
|
+
]
|
|
53343
|
+
})
|
|
53344
|
+
);
|
|
53345
|
+
});
|
|
53346
|
+
CarouselNext.displayName = "CarouselNext";
|
|
53347
|
+
|
|
53348
|
+
// src/components/Checkbox/Checkbox.tsx
|
|
53349
|
+
var React6 = __toESM(require("react"));
|
|
53350
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
53351
|
+
var import_jsx_runtime1231 = require("react/jsx-runtime");
|
|
53352
|
+
var Checkbox = React6.forwardRef((_a, ref) => {
|
|
53353
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1231.jsx)(
|
|
53160
53355
|
CheckboxPrimitive.Root,
|
|
53161
53356
|
__spreadProps(__spreadValues({
|
|
53162
53357
|
className: cn(
|
|
@@ -53165,20 +53360,20 @@ var Checkbox = React5.forwardRef((_a, ref) => {
|
|
|
53165
53360
|
)
|
|
53166
53361
|
}, props), {
|
|
53167
53362
|
ref,
|
|
53168
|
-
children: /* @__PURE__ */ (0,
|
|
53363
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1231.jsx)(CheckboxPrimitive.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime1231.jsx)(CheckIcon, { size: 10, className: "text-white" }) })
|
|
53169
53364
|
})
|
|
53170
53365
|
);
|
|
53171
53366
|
});
|
|
53172
53367
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
53173
53368
|
|
|
53174
53369
|
// src/components/Command/Command.tsx
|
|
53175
|
-
var
|
|
53370
|
+
var React7 = __toESM(require("react"));
|
|
53176
53371
|
var import_react1227 = require("react");
|
|
53177
53372
|
var import_cmdk = require("cmdk");
|
|
53178
|
-
var
|
|
53179
|
-
var Command =
|
|
53373
|
+
var import_jsx_runtime1232 = require("react/jsx-runtime");
|
|
53374
|
+
var Command = React7.forwardRef((_a, ref) => {
|
|
53180
53375
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53181
|
-
return /* @__PURE__ */ (0,
|
|
53376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(
|
|
53182
53377
|
import_cmdk.Command,
|
|
53183
53378
|
__spreadValues({
|
|
53184
53379
|
ref,
|
|
@@ -53190,21 +53385,21 @@ var Command = React6.forwardRef((_a, ref) => {
|
|
|
53190
53385
|
);
|
|
53191
53386
|
});
|
|
53192
53387
|
Command.displayName = import_cmdk.Command.displayName;
|
|
53193
|
-
var CommandInput =
|
|
53388
|
+
var CommandInput = React7.forwardRef((_a, ref) => {
|
|
53194
53389
|
var _b = _a, { className, value, onValueChange } = _b, props = __objRest(_b, ["className", "value", "onValueChange"]);
|
|
53195
53390
|
const [val, setVal] = (0, import_react1227.useState)(value);
|
|
53196
53391
|
const clearInput = () => {
|
|
53197
53392
|
setVal("");
|
|
53198
53393
|
onValueChange && onValueChange("");
|
|
53199
53394
|
};
|
|
53200
|
-
return /* @__PURE__ */ (0,
|
|
53395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsxs)(
|
|
53201
53396
|
"div",
|
|
53202
53397
|
{
|
|
53203
53398
|
className: "flex items-center gap-2 px-3 border-b border-gray-200",
|
|
53204
53399
|
"cmdk-input-wrapper": "",
|
|
53205
53400
|
children: [
|
|
53206
|
-
/* @__PURE__ */ (0,
|
|
53207
|
-
/* @__PURE__ */ (0,
|
|
53401
|
+
/* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(SearchMdIcon, { size: 16, className: "text-gray-900 shrink-0" }),
|
|
53402
|
+
/* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(
|
|
53208
53403
|
import_cmdk.Command.Input,
|
|
53209
53404
|
__spreadValues({
|
|
53210
53405
|
ref,
|
|
@@ -53219,7 +53414,7 @@ var CommandInput = React6.forwardRef((_a, ref) => {
|
|
|
53219
53414
|
}
|
|
53220
53415
|
}, props)
|
|
53221
53416
|
),
|
|
53222
|
-
value !== "" && /* @__PURE__ */ (0,
|
|
53417
|
+
value !== "" && /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(Button, { variant: "ghostGray", size: "xs", icon: true, className: "-mr-2", children: /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(
|
|
53223
53418
|
XCloseIcon,
|
|
53224
53419
|
{
|
|
53225
53420
|
size: "16",
|
|
@@ -53234,9 +53429,9 @@ var CommandInput = React6.forwardRef((_a, ref) => {
|
|
|
53234
53429
|
);
|
|
53235
53430
|
});
|
|
53236
53431
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
53237
|
-
var CommandList =
|
|
53432
|
+
var CommandList = React7.forwardRef((_a, ref) => {
|
|
53238
53433
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53239
|
-
return /* @__PURE__ */ (0,
|
|
53434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(
|
|
53240
53435
|
import_cmdk.Command.List,
|
|
53241
53436
|
__spreadValues({
|
|
53242
53437
|
ref,
|
|
@@ -53248,33 +53443,33 @@ var CommandList = React6.forwardRef((_a, ref) => {
|
|
|
53248
53443
|
);
|
|
53249
53444
|
});
|
|
53250
53445
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
53251
|
-
var CommandEmpty =
|
|
53446
|
+
var CommandEmpty = React7.forwardRef((_a, ref) => {
|
|
53252
53447
|
var _b = _a, { children, title, description } = _b, props = __objRest(_b, ["children", "title", "description"]);
|
|
53253
|
-
return /* @__PURE__ */ (0,
|
|
53448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsxs)(
|
|
53254
53449
|
import_cmdk.Command.Empty,
|
|
53255
53450
|
__spreadProps(__spreadValues({
|
|
53256
53451
|
ref,
|
|
53257
53452
|
className: "flex flex-col gap-4 p-4 text-center"
|
|
53258
53453
|
}, props), {
|
|
53259
53454
|
children: [
|
|
53260
|
-
(title || description) && /* @__PURE__ */ (0,
|
|
53261
|
-
title && /* @__PURE__ */ (0,
|
|
53262
|
-
description && /* @__PURE__ */ (0,
|
|
53455
|
+
(title || description) && /* @__PURE__ */ (0, import_jsx_runtime1232.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
53456
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)("span", { className: "text-sm font-medium text-gray-1000", children: title }),
|
|
53457
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)("span", { className: "text-sm font-normal text-gray-700", children: description })
|
|
53263
53458
|
] }),
|
|
53264
|
-
children && /* @__PURE__ */ (0,
|
|
53459
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)("div", { children })
|
|
53265
53460
|
]
|
|
53266
53461
|
})
|
|
53267
53462
|
);
|
|
53268
53463
|
});
|
|
53269
53464
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
53270
|
-
var CommandLoading =
|
|
53465
|
+
var CommandLoading = React7.forwardRef((_a, ref) => {
|
|
53271
53466
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
53272
|
-
return /* @__PURE__ */ (0,
|
|
53467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(import_cmdk.Command.Loading, __spreadProps(__spreadValues({ ref }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)("div", { className: "flex justify-center p-4 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(SpinnerIcon, { className: "text-blue-700 animate-spin" }) }) }));
|
|
53273
53468
|
});
|
|
53274
53469
|
CommandLoading.displayName = import_cmdk.Command.Loading.displayName;
|
|
53275
|
-
var CommandGroup =
|
|
53470
|
+
var CommandGroup = React7.forwardRef((_a, ref) => {
|
|
53276
53471
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53277
|
-
return /* @__PURE__ */ (0,
|
|
53472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(
|
|
53278
53473
|
import_cmdk.Command.Group,
|
|
53279
53474
|
__spreadValues({
|
|
53280
53475
|
ref,
|
|
@@ -53286,9 +53481,9 @@ var CommandGroup = React6.forwardRef((_a, ref) => {
|
|
|
53286
53481
|
);
|
|
53287
53482
|
});
|
|
53288
53483
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
53289
|
-
var CommandSeparator =
|
|
53484
|
+
var CommandSeparator = React7.forwardRef((_a, ref) => {
|
|
53290
53485
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53291
|
-
return /* @__PURE__ */ (0,
|
|
53486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(
|
|
53292
53487
|
import_cmdk.Command.Separator,
|
|
53293
53488
|
__spreadValues({
|
|
53294
53489
|
ref,
|
|
@@ -53297,10 +53492,10 @@ var CommandSeparator = React6.forwardRef((_a, ref) => {
|
|
|
53297
53492
|
);
|
|
53298
53493
|
});
|
|
53299
53494
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
53300
|
-
var CommandItem =
|
|
53495
|
+
var CommandItem = React7.forwardRef(
|
|
53301
53496
|
(_a, ref) => {
|
|
53302
53497
|
var _b = _a, { icon, checkbox, className, checked, children, description } = _b, props = __objRest(_b, ["icon", "checkbox", "className", "checked", "children", "description"]);
|
|
53303
|
-
return /* @__PURE__ */ (0,
|
|
53498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1232.jsxs)(
|
|
53304
53499
|
import_cmdk.Command.Item,
|
|
53305
53500
|
__spreadProps(__spreadValues({
|
|
53306
53501
|
ref,
|
|
@@ -53310,15 +53505,15 @@ var CommandItem = React6.forwardRef(
|
|
|
53310
53505
|
)
|
|
53311
53506
|
}, props), {
|
|
53312
53507
|
children: [
|
|
53313
|
-
/* @__PURE__ */ (0,
|
|
53314
|
-
checkbox && /* @__PURE__ */ (0,
|
|
53315
|
-
icon &&
|
|
53508
|
+
/* @__PURE__ */ (0, import_jsx_runtime1232.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
53509
|
+
checkbox && /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)(Checkbox, { checked }),
|
|
53510
|
+
icon && React7.cloneElement(icon, {
|
|
53316
53511
|
size: 16,
|
|
53317
53512
|
className: cn("flex-shrink-0", icon.props.className)
|
|
53318
53513
|
}),
|
|
53319
53514
|
children
|
|
53320
53515
|
] }),
|
|
53321
|
-
description && /* @__PURE__ */ (0,
|
|
53516
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime1232.jsx)("div", { className: "text-xs text-gray-700", children: description })
|
|
53322
53517
|
]
|
|
53323
53518
|
})
|
|
53324
53519
|
);
|
|
@@ -53329,7 +53524,7 @@ CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
|
53329
53524
|
// src/components/CreatableSelect/CreatableSelect.tsx
|
|
53330
53525
|
var import_react1228 = require("react");
|
|
53331
53526
|
var import_cmdk2 = require("cmdk");
|
|
53332
|
-
var
|
|
53527
|
+
var import_jsx_runtime1233 = require("react/jsx-runtime");
|
|
53333
53528
|
function CreatableSelect(_a) {
|
|
53334
53529
|
var _b = _a, {
|
|
53335
53530
|
isLoading,
|
|
@@ -53394,13 +53589,13 @@ function CreatableSelect(_a) {
|
|
|
53394
53589
|
if (!inputValue && !items && open) {
|
|
53395
53590
|
setOpen(false);
|
|
53396
53591
|
}
|
|
53397
|
-
return /* @__PURE__ */ (0,
|
|
53592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1233.jsxs)(
|
|
53398
53593
|
Command,
|
|
53399
53594
|
{
|
|
53400
53595
|
onKeyDown: handleKeyDown,
|
|
53401
53596
|
className: "overflow-visible bg-transparent",
|
|
53402
53597
|
children: [
|
|
53403
|
-
/* @__PURE__ */ (0,
|
|
53598
|
+
/* @__PURE__ */ (0, import_jsx_runtime1233.jsx)(
|
|
53404
53599
|
"div",
|
|
53405
53600
|
{
|
|
53406
53601
|
className: cn(
|
|
@@ -53409,10 +53604,10 @@ function CreatableSelect(_a) {
|
|
|
53409
53604
|
"border-red-700 focus-within:border-gray-200 focus-within:outline-red-700": !!props["data-has-error"]
|
|
53410
53605
|
}
|
|
53411
53606
|
),
|
|
53412
|
-
children: /* @__PURE__ */ (0,
|
|
53413
|
-
multiple && value.map((it) => /* @__PURE__ */ (0,
|
|
53607
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1233.jsxs)("div", { className: "flex flex-wrap w-full gap-1", children: [
|
|
53608
|
+
multiple && value.map((it) => /* @__PURE__ */ (0, import_jsx_runtime1233.jsxs)(Badge, { color: "blue", children: [
|
|
53414
53609
|
it,
|
|
53415
|
-
/* @__PURE__ */ (0,
|
|
53610
|
+
/* @__PURE__ */ (0, import_jsx_runtime1233.jsx)(
|
|
53416
53611
|
"button",
|
|
53417
53612
|
{
|
|
53418
53613
|
className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
@@ -53422,12 +53617,12 @@ function CreatableSelect(_a) {
|
|
|
53422
53617
|
e.stopPropagation();
|
|
53423
53618
|
},
|
|
53424
53619
|
onClick: () => handleUnselect(it),
|
|
53425
|
-
children: /* @__PURE__ */ (0,
|
|
53620
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1233.jsx)(XCloseIcon, { size: 12, className: "text-current" })
|
|
53426
53621
|
}
|
|
53427
53622
|
)
|
|
53428
53623
|
] }, it)),
|
|
53429
|
-
!multiple && value.map((it) => /* @__PURE__ */ (0,
|
|
53430
|
-
/* @__PURE__ */ (0,
|
|
53624
|
+
!multiple && value.map((it) => /* @__PURE__ */ (0, import_jsx_runtime1233.jsx)("span", { className: "text-sm", children: it }, it)),
|
|
53625
|
+
/* @__PURE__ */ (0, import_jsx_runtime1233.jsx)(
|
|
53431
53626
|
import_cmdk2.Command.Input,
|
|
53432
53627
|
{
|
|
53433
53628
|
ref: inputRef,
|
|
@@ -53457,10 +53652,10 @@ function CreatableSelect(_a) {
|
|
|
53457
53652
|
] })
|
|
53458
53653
|
}
|
|
53459
53654
|
),
|
|
53460
|
-
/* @__PURE__ */ (0,
|
|
53655
|
+
/* @__PURE__ */ (0, import_jsx_runtime1233.jsx)("div", { className: "relative", children: open && /* @__PURE__ */ (0, import_jsx_runtime1233.jsx)("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__ */ (0, import_jsx_runtime1233.jsx)(CommandLoading, {}) : selectables && selectables.length < 1 ? /* @__PURE__ */ (0, import_jsx_runtime1233.jsx)("span", { className: "flex flex-col gap-4 p-4 text-center text-gray-700", children: nothingFoundLabel }) : /* @__PURE__ */ (0, import_jsx_runtime1233.jsxs)(CommandList, { className: "h-full max-h-[180px] overflow-auto", children: [
|
|
53461
53656
|
items && (selectables == null ? void 0 : selectables.map((it) => {
|
|
53462
53657
|
const itemProps = getItemProps(it);
|
|
53463
|
-
return /* @__PURE__ */ (0,
|
|
53658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1233.jsx)(
|
|
53464
53659
|
CommandItem,
|
|
53465
53660
|
__spreadValues({
|
|
53466
53661
|
onMouseDown: (e) => {
|
|
@@ -53478,7 +53673,7 @@ function CreatableSelect(_a) {
|
|
|
53478
53673
|
it[valueKey]
|
|
53479
53674
|
);
|
|
53480
53675
|
})),
|
|
53481
|
-
inputValue && !value.includes(inputValue) && /* @__PURE__ */ (0,
|
|
53676
|
+
inputValue && !value.includes(inputValue) && /* @__PURE__ */ (0, import_jsx_runtime1233.jsx)(
|
|
53482
53677
|
CommandItem,
|
|
53483
53678
|
{
|
|
53484
53679
|
value: inputValue,
|
|
@@ -53501,23 +53696,14 @@ function CreatableSelect(_a) {
|
|
|
53501
53696
|
}
|
|
53502
53697
|
|
|
53503
53698
|
// src/components/Dialog/Dialog.tsx
|
|
53504
|
-
var
|
|
53699
|
+
var React9 = __toESM(require("react"));
|
|
53505
53700
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
53506
|
-
var
|
|
53701
|
+
var import_jsx_runtime1234 = require("react/jsx-runtime");
|
|
53507
53702
|
var Dialog = DialogPrimitive.Root;
|
|
53508
53703
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
53509
|
-
var
|
|
53510
|
-
var _b = _a, {
|
|
53511
|
-
className
|
|
53512
|
-
} = _b, props = __objRest(_b, [
|
|
53513
|
-
"className"
|
|
53514
|
-
]);
|
|
53515
|
-
return /* @__PURE__ */ (0, import_jsx_runtime1233.jsx)(DialogPrimitive.Portal, __spreadValues({ className: cn(className) }, props));
|
|
53516
|
-
};
|
|
53517
|
-
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
53518
|
-
var DialogOverlay = React8.forwardRef((_a, ref) => {
|
|
53704
|
+
var DialogOverlay = React9.forwardRef((_a, ref) => {
|
|
53519
53705
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53520
|
-
return /* @__PURE__ */ (0,
|
|
53706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(
|
|
53521
53707
|
DialogPrimitive.Overlay,
|
|
53522
53708
|
__spreadValues({
|
|
53523
53709
|
ref,
|
|
@@ -53529,11 +53715,11 @@ var DialogOverlay = React8.forwardRef((_a, ref) => {
|
|
|
53529
53715
|
);
|
|
53530
53716
|
});
|
|
53531
53717
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
53532
|
-
var DialogContent =
|
|
53718
|
+
var DialogContent = React9.forwardRef((_a, ref) => {
|
|
53533
53719
|
var _b = _a, { className, children, bottomSheet = false } = _b, props = __objRest(_b, ["className", "children", "bottomSheet"]);
|
|
53534
|
-
return /* @__PURE__ */ (0,
|
|
53535
|
-
/* @__PURE__ */ (0,
|
|
53536
|
-
/* @__PURE__ */ (0,
|
|
53720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(DialogPrimitive.Portal, { children: [
|
|
53721
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(DialogOverlay, {}),
|
|
53722
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(
|
|
53537
53723
|
DialogPrimitive.Content,
|
|
53538
53724
|
__spreadProps(__spreadValues({
|
|
53539
53725
|
ref,
|
|
@@ -53543,14 +53729,14 @@ var DialogContent = React8.forwardRef((_a, ref) => {
|
|
|
53543
53729
|
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] data-[state=open]:slide-in-from-left-[50%] data-[state=closed]:slide-out-to-left-[50%] rounded-t-3xl": bottomSheet
|
|
53544
53730
|
},
|
|
53545
53731
|
{
|
|
53546
|
-
"duration-200 rounded-
|
|
53732
|
+
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]": !bottomSheet
|
|
53547
53733
|
},
|
|
53548
53734
|
className
|
|
53549
53735
|
)
|
|
53550
53736
|
}, props), {
|
|
53551
53737
|
children: [
|
|
53552
53738
|
children,
|
|
53553
|
-
/* @__PURE__ */ (0,
|
|
53739
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(
|
|
53554
53740
|
DialogPrimitive.Close,
|
|
53555
53741
|
{
|
|
53556
53742
|
className: cn(
|
|
@@ -53559,8 +53745,8 @@ var DialogContent = React8.forwardRef((_a, ref) => {
|
|
|
53559
53745
|
"absolute right-6 top-6"
|
|
53560
53746
|
),
|
|
53561
53747
|
children: [
|
|
53562
|
-
/* @__PURE__ */ (0,
|
|
53563
|
-
/* @__PURE__ */ (0,
|
|
53748
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(XCloseIcon, { className: "w-3 h-3" }),
|
|
53749
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)("span", { className: "sr-only", children: "Close" })
|
|
53564
53750
|
]
|
|
53565
53751
|
}
|
|
53566
53752
|
)
|
|
@@ -53576,13 +53762,10 @@ var DialogHeader = (_a) => {
|
|
|
53576
53762
|
} = _b, props = __objRest(_b, [
|
|
53577
53763
|
"className"
|
|
53578
53764
|
]);
|
|
53579
|
-
return /* @__PURE__ */ (0,
|
|
53765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(
|
|
53580
53766
|
"div",
|
|
53581
53767
|
__spreadValues({
|
|
53582
|
-
className: cn(
|
|
53583
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
53584
|
-
className
|
|
53585
|
-
)
|
|
53768
|
+
className: cn("flex flex-col space-y-1.5 text-left", className)
|
|
53586
53769
|
}, props)
|
|
53587
53770
|
);
|
|
53588
53771
|
};
|
|
@@ -53593,7 +53776,7 @@ var DialogFooter = (_a) => {
|
|
|
53593
53776
|
} = _b, props = __objRest(_b, [
|
|
53594
53777
|
"className"
|
|
53595
53778
|
]);
|
|
53596
|
-
return /* @__PURE__ */ (0,
|
|
53779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(
|
|
53597
53780
|
"div",
|
|
53598
53781
|
__spreadValues({
|
|
53599
53782
|
className: cn(
|
|
@@ -53604,9 +53787,9 @@ var DialogFooter = (_a) => {
|
|
|
53604
53787
|
);
|
|
53605
53788
|
};
|
|
53606
53789
|
DialogFooter.displayName = "DialogFooter";
|
|
53607
|
-
var DialogTitle =
|
|
53790
|
+
var DialogTitle = React9.forwardRef((_a, ref) => {
|
|
53608
53791
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53609
|
-
return /* @__PURE__ */ (0,
|
|
53792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(
|
|
53610
53793
|
DialogPrimitive.Title,
|
|
53611
53794
|
__spreadValues({
|
|
53612
53795
|
ref,
|
|
@@ -53615,9 +53798,9 @@ var DialogTitle = React8.forwardRef((_a, ref) => {
|
|
|
53615
53798
|
);
|
|
53616
53799
|
});
|
|
53617
53800
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
53618
|
-
var DialogDescription =
|
|
53801
|
+
var DialogDescription = React9.forwardRef((_a, ref) => {
|
|
53619
53802
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53620
|
-
return /* @__PURE__ */ (0,
|
|
53803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(
|
|
53621
53804
|
DialogPrimitive.Description,
|
|
53622
53805
|
__spreadValues({
|
|
53623
53806
|
ref,
|
|
@@ -53630,7 +53813,7 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
|
53630
53813
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
53631
53814
|
var import_react1229 = __toESM(require("react"));
|
|
53632
53815
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
53633
|
-
var
|
|
53816
|
+
var import_jsx_runtime1235 = require("react/jsx-runtime");
|
|
53634
53817
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
53635
53818
|
var DropdownMenuItemBase = ({
|
|
53636
53819
|
icon,
|
|
@@ -53642,7 +53825,7 @@ var DropdownMenuItemBase = ({
|
|
|
53642
53825
|
description,
|
|
53643
53826
|
hasSubNav
|
|
53644
53827
|
}) => {
|
|
53645
|
-
return /* @__PURE__ */ (0,
|
|
53828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsxs)(
|
|
53646
53829
|
"div",
|
|
53647
53830
|
{
|
|
53648
53831
|
className: cn(
|
|
@@ -53651,8 +53834,8 @@ var DropdownMenuItemBase = ({
|
|
|
53651
53834
|
className
|
|
53652
53835
|
),
|
|
53653
53836
|
children: [
|
|
53654
|
-
/* @__PURE__ */ (0,
|
|
53655
|
-
checkbox && /* @__PURE__ */ (0,
|
|
53837
|
+
/* @__PURE__ */ (0, import_jsx_runtime1235.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
53838
|
+
checkbox && /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(Checkbox, { checked }),
|
|
53656
53839
|
icon && import_react1229.default.cloneElement(icon, {
|
|
53657
53840
|
size: 16,
|
|
53658
53841
|
className: cn(
|
|
@@ -53661,10 +53844,10 @@ var DropdownMenuItemBase = ({
|
|
|
53661
53844
|
icon.props.className
|
|
53662
53845
|
)
|
|
53663
53846
|
}),
|
|
53664
|
-
/* @__PURE__ */ (0,
|
|
53665
|
-
hasSubNav && /* @__PURE__ */ (0,
|
|
53847
|
+
/* @__PURE__ */ (0, import_jsx_runtime1235.jsx)("span", { className: "flex gap-2 grow", children }),
|
|
53848
|
+
hasSubNav && /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)("div", { className: "inline-flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(ChevronRightIcon, { size: 16, className: "text-gray-1000" }) })
|
|
53666
53849
|
] }),
|
|
53667
|
-
description && /* @__PURE__ */ (0,
|
|
53850
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)("div", { className: "text-xs text-gray-700", children: description })
|
|
53668
53851
|
]
|
|
53669
53852
|
}
|
|
53670
53853
|
);
|
|
@@ -53679,14 +53862,14 @@ var DropdownMenuCheckboxItem = import_react1229.default.forwardRef(
|
|
|
53679
53862
|
checked,
|
|
53680
53863
|
className
|
|
53681
53864
|
};
|
|
53682
|
-
return /* @__PURE__ */ (0,
|
|
53865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53683
53866
|
DropdownMenuPrimitive.CheckboxItem,
|
|
53684
53867
|
__spreadProps(__spreadValues({
|
|
53685
53868
|
checked
|
|
53686
53869
|
}, props), {
|
|
53687
53870
|
ref: forwardedRef,
|
|
53688
53871
|
className: "outline-none select-none group",
|
|
53689
|
-
children: /* @__PURE__ */ (0,
|
|
53872
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({ checkbox: true }, extraProps), { children }))
|
|
53690
53873
|
})
|
|
53691
53874
|
);
|
|
53692
53875
|
}
|
|
@@ -53707,7 +53890,7 @@ var DropdownMenuContent = import_react1229.default.forwardRef(
|
|
|
53707
53890
|
"sideOffset",
|
|
53708
53891
|
"align"
|
|
53709
53892
|
]);
|
|
53710
|
-
return /* @__PURE__ */ (0,
|
|
53893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53711
53894
|
DropdownMenuPrimitive.Content,
|
|
53712
53895
|
__spreadProps(__spreadValues({
|
|
53713
53896
|
className: cn(
|
|
@@ -53735,12 +53918,12 @@ var DropdownMenuItem = import_react1229.default.forwardRef(
|
|
|
53735
53918
|
icon,
|
|
53736
53919
|
className
|
|
53737
53920
|
};
|
|
53738
|
-
return /* @__PURE__ */ (0,
|
|
53921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53739
53922
|
DropdownMenuPrimitive.Item,
|
|
53740
53923
|
__spreadProps(__spreadValues({}, props), {
|
|
53741
53924
|
ref: forwardedRef,
|
|
53742
53925
|
className: "outline-none select-none group",
|
|
53743
|
-
children: /* @__PURE__ */ (0,
|
|
53926
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
53744
53927
|
})
|
|
53745
53928
|
);
|
|
53746
53929
|
}
|
|
@@ -53748,7 +53931,7 @@ var DropdownMenuItem = import_react1229.default.forwardRef(
|
|
|
53748
53931
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
53749
53932
|
var DropdownMenuLabel = import_react1229.default.forwardRef((_a, forwardedRef) => {
|
|
53750
53933
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53751
|
-
return /* @__PURE__ */ (0,
|
|
53934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53752
53935
|
DropdownMenuPrimitive.Label,
|
|
53753
53936
|
__spreadProps(__spreadValues({
|
|
53754
53937
|
className: cn(
|
|
@@ -53772,12 +53955,12 @@ var DropdownMenuRadioItem = import_react1229.default.forwardRef(
|
|
|
53772
53955
|
icon,
|
|
53773
53956
|
className
|
|
53774
53957
|
};
|
|
53775
|
-
return /* @__PURE__ */ (0,
|
|
53958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53776
53959
|
DropdownMenuPrimitive.RadioItem,
|
|
53777
53960
|
__spreadProps(__spreadValues({}, props), {
|
|
53778
53961
|
ref: forwardedRef,
|
|
53779
53962
|
className: "outline-none select-none group",
|
|
53780
|
-
children: /* @__PURE__ */ (0,
|
|
53963
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
53781
53964
|
})
|
|
53782
53965
|
);
|
|
53783
53966
|
}
|
|
@@ -53785,7 +53968,7 @@ var DropdownMenuRadioItem = import_react1229.default.forwardRef(
|
|
|
53785
53968
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
53786
53969
|
var DropdownMenuSeparator = import_react1229.default.forwardRef((_a, forwardedRef) => {
|
|
53787
53970
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53788
|
-
return /* @__PURE__ */ (0,
|
|
53971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53789
53972
|
DropdownMenuPrimitive.Separator,
|
|
53790
53973
|
__spreadProps(__spreadValues({
|
|
53791
53974
|
className: cn("my-1 border-b border-gray-200", className)
|
|
@@ -53798,7 +53981,7 @@ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
|
53798
53981
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
53799
53982
|
var DropdownMenuSubContent = import_react1229.default.forwardRef((_a, forwardedRef) => {
|
|
53800
53983
|
var _b = _a, { children, className, sideOffset = 8 } = _b, props = __objRest(_b, ["children", "className", "sideOffset"]);
|
|
53801
|
-
return /* @__PURE__ */ (0,
|
|
53984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53802
53985
|
DropdownMenuPrimitive.SubContent,
|
|
53803
53986
|
__spreadProps(__spreadValues({
|
|
53804
53987
|
className: cn(
|
|
@@ -53822,12 +54005,12 @@ var DropdownMenuSubTrigger = import_react1229.default.forwardRef(
|
|
|
53822
54005
|
icon,
|
|
53823
54006
|
className
|
|
53824
54007
|
};
|
|
53825
|
-
return /* @__PURE__ */ (0,
|
|
54008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(
|
|
53826
54009
|
DropdownMenuPrimitive.SubTrigger,
|
|
53827
54010
|
__spreadProps(__spreadValues({}, props), {
|
|
53828
54011
|
ref: forwardedRef,
|
|
53829
54012
|
className: "outline-none select-none group",
|
|
53830
|
-
children: /* @__PURE__ */ (0,
|
|
54013
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1235.jsx)(DropdownMenuItemBase, __spreadProps(__spreadValues({ hasSubNav: true }, extraProps), { children }))
|
|
53831
54014
|
})
|
|
53832
54015
|
);
|
|
53833
54016
|
}
|
|
@@ -53837,15 +54020,15 @@ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
|
53837
54020
|
|
|
53838
54021
|
// src/components/FilterButton/FilterButton.tsx
|
|
53839
54022
|
var import_react1230 = __toESM(require("react"));
|
|
53840
|
-
var
|
|
54023
|
+
var import_jsx_runtime1236 = require("react/jsx-runtime");
|
|
53841
54024
|
var FilterButton = import_react1230.default.forwardRef(
|
|
53842
54025
|
(_a, ref) => {
|
|
53843
54026
|
var _b = _a, { selectedCount, children, size = "sm", variant = "outline" } = _b, props = __objRest(_b, ["selectedCount", "children", "size", "variant"]);
|
|
53844
|
-
return /* @__PURE__ */ (0,
|
|
54027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1236.jsxs)(Button, __spreadProps(__spreadValues({ ref, variant, size }, props), { children: [
|
|
53845
54028
|
children,
|
|
53846
|
-
selectedCount !== void 0 && selectedCount > 0 && /* @__PURE__ */ (0,
|
|
53847
|
-
/* @__PURE__ */ (0,
|
|
53848
|
-
/* @__PURE__ */ (0,
|
|
54029
|
+
selectedCount !== void 0 && selectedCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime1236.jsxs)(import_jsx_runtime1236.Fragment, { children: [
|
|
54030
|
+
/* @__PURE__ */ (0, import_jsx_runtime1236.jsx)("span", { className: "h-4 border-l border-gray-200" }),
|
|
54031
|
+
/* @__PURE__ */ (0, import_jsx_runtime1236.jsx)(Badge, { variant: "fill", color: "blue", children: selectedCount })
|
|
53849
54032
|
] })
|
|
53850
54033
|
] }));
|
|
53851
54034
|
}
|
|
@@ -53853,17 +54036,17 @@ var FilterButton = import_react1230.default.forwardRef(
|
|
|
53853
54036
|
FilterButton.displayName = "FilterButton";
|
|
53854
54037
|
|
|
53855
54038
|
// src/components/Form/Form.tsx
|
|
53856
|
-
var
|
|
54039
|
+
var React13 = __toESM(require("react"));
|
|
53857
54040
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
53858
54041
|
var import_react_hook_form = require("react-hook-form");
|
|
53859
54042
|
|
|
53860
54043
|
// src/components/Label/Label.tsx
|
|
53861
|
-
var
|
|
54044
|
+
var React12 = __toESM(require("react"));
|
|
53862
54045
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
53863
|
-
var
|
|
53864
|
-
var Label2 =
|
|
54046
|
+
var import_jsx_runtime1237 = require("react/jsx-runtime");
|
|
54047
|
+
var Label2 = React12.forwardRef((_a, ref) => {
|
|
53865
54048
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53866
|
-
return /* @__PURE__ */ (0,
|
|
54049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1237.jsx)(
|
|
53867
54050
|
LabelPrimitive.Root,
|
|
53868
54051
|
__spreadValues({
|
|
53869
54052
|
ref,
|
|
@@ -53877,24 +54060,24 @@ var Label2 = React11.forwardRef((_a, ref) => {
|
|
|
53877
54060
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
53878
54061
|
|
|
53879
54062
|
// src/components/Form/Form.tsx
|
|
53880
|
-
var
|
|
54063
|
+
var import_jsx_runtime1238 = require("react/jsx-runtime");
|
|
53881
54064
|
var Form = import_react_hook_form.FormProvider;
|
|
53882
|
-
var FormFieldContext =
|
|
54065
|
+
var FormFieldContext = React13.createContext(
|
|
53883
54066
|
{}
|
|
53884
54067
|
);
|
|
53885
54068
|
var FormField = (_a) => {
|
|
53886
54069
|
var props = __objRest(_a, []);
|
|
53887
|
-
return /* @__PURE__ */ (0,
|
|
54070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(
|
|
53888
54071
|
FormFieldContext.Provider,
|
|
53889
54072
|
{
|
|
53890
54073
|
value: { name: props.name, isDisabled: props.disabled },
|
|
53891
|
-
children: /* @__PURE__ */ (0,
|
|
54074
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(import_react_hook_form.Controller, __spreadValues({}, props))
|
|
53892
54075
|
}
|
|
53893
54076
|
);
|
|
53894
54077
|
};
|
|
53895
54078
|
var useFormField = () => {
|
|
53896
|
-
const fieldContext =
|
|
53897
|
-
const itemContext =
|
|
54079
|
+
const fieldContext = React13.useContext(FormFieldContext);
|
|
54080
|
+
const itemContext = React13.useContext(FormItemContext);
|
|
53898
54081
|
const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
|
|
53899
54082
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
53900
54083
|
if (!fieldContext) {
|
|
@@ -53910,13 +54093,13 @@ var useFormField = () => {
|
|
|
53910
54093
|
formMessageId: `${id}-form-item-message`
|
|
53911
54094
|
}, fieldState);
|
|
53912
54095
|
};
|
|
53913
|
-
var FormItemContext =
|
|
54096
|
+
var FormItemContext = React13.createContext(
|
|
53914
54097
|
{}
|
|
53915
54098
|
);
|
|
53916
|
-
var FormItem =
|
|
54099
|
+
var FormItem = React13.forwardRef((_a, ref) => {
|
|
53917
54100
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53918
|
-
const id =
|
|
53919
|
-
return /* @__PURE__ */ (0,
|
|
54101
|
+
const id = React13.useId();
|
|
54102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(
|
|
53920
54103
|
"div",
|
|
53921
54104
|
__spreadValues({
|
|
53922
54105
|
ref,
|
|
@@ -53925,10 +54108,10 @@ var FormItem = React12.forwardRef((_a, ref) => {
|
|
|
53925
54108
|
) });
|
|
53926
54109
|
});
|
|
53927
54110
|
FormItem.displayName = "FormItem";
|
|
53928
|
-
var FormLabel =
|
|
54111
|
+
var FormLabel = React13.forwardRef((_a, ref) => {
|
|
53929
54112
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53930
54113
|
const { isDisabled, formItemId } = useFormField();
|
|
53931
|
-
return /* @__PURE__ */ (0,
|
|
54114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(
|
|
53932
54115
|
Label2,
|
|
53933
54116
|
__spreadValues({
|
|
53934
54117
|
ref,
|
|
@@ -53938,10 +54121,10 @@ var FormLabel = React12.forwardRef((_a, ref) => {
|
|
|
53938
54121
|
);
|
|
53939
54122
|
});
|
|
53940
54123
|
FormLabel.displayName = "FormLabel";
|
|
53941
|
-
var FormControl =
|
|
54124
|
+
var FormControl = React13.forwardRef((_a, ref) => {
|
|
53942
54125
|
var props = __objRest(_a, []);
|
|
53943
54126
|
const { error, isDisabled, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
53944
|
-
return /* @__PURE__ */ (0,
|
|
54127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(
|
|
53945
54128
|
import_react_slot2.Slot,
|
|
53946
54129
|
__spreadValues({
|
|
53947
54130
|
ref,
|
|
@@ -53954,10 +54137,10 @@ var FormControl = React12.forwardRef((_a, ref) => {
|
|
|
53954
54137
|
);
|
|
53955
54138
|
});
|
|
53956
54139
|
FormControl.displayName = "FormControl";
|
|
53957
|
-
var FormDescription =
|
|
54140
|
+
var FormDescription = React13.forwardRef((_a, ref) => {
|
|
53958
54141
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53959
54142
|
const { formDescriptionId, isDisabled } = useFormField();
|
|
53960
|
-
return /* @__PURE__ */ (0,
|
|
54143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(
|
|
53961
54144
|
"p",
|
|
53962
54145
|
__spreadValues({
|
|
53963
54146
|
ref,
|
|
@@ -53971,12 +54154,12 @@ var FormDescription = React12.forwardRef((_a, ref) => {
|
|
|
53971
54154
|
);
|
|
53972
54155
|
});
|
|
53973
54156
|
FormDescription.displayName = "FormDescription";
|
|
53974
|
-
var FormMessage =
|
|
54157
|
+
var FormMessage = React13.forwardRef((_a, ref) => {
|
|
53975
54158
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
53976
54159
|
const { error, isDisabled, formMessageId } = useFormField();
|
|
53977
54160
|
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
53978
54161
|
const textColorClassName = error ? "text-red-700" : "text-gray-700";
|
|
53979
|
-
return /* @__PURE__ */ (0,
|
|
54162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1238.jsx)(
|
|
53980
54163
|
"p",
|
|
53981
54164
|
__spreadProps(__spreadValues({
|
|
53982
54165
|
ref,
|
|
@@ -53995,10 +54178,10 @@ var FormMessage = React12.forwardRef((_a, ref) => {
|
|
|
53995
54178
|
FormMessage.displayName = "FormMessage";
|
|
53996
54179
|
|
|
53997
54180
|
// src/components/Input/Input.tsx
|
|
53998
|
-
var
|
|
54181
|
+
var React14 = __toESM(require("react"));
|
|
53999
54182
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
54000
|
-
var
|
|
54001
|
-
var Input =
|
|
54183
|
+
var import_jsx_runtime1239 = require("react/jsx-runtime");
|
|
54184
|
+
var Input = React14.forwardRef(
|
|
54002
54185
|
(_a, ref) => {
|
|
54003
54186
|
var _b = _a, {
|
|
54004
54187
|
className,
|
|
@@ -54016,8 +54199,8 @@ var Input = React13.forwardRef(
|
|
|
54016
54199
|
"suffixEnchancer"
|
|
54017
54200
|
]);
|
|
54018
54201
|
const isDisabled = !!props["data-is-disabled"] || disabled;
|
|
54019
|
-
return /* @__PURE__ */ (0,
|
|
54020
|
-
/* @__PURE__ */ (0,
|
|
54202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1239.jsxs)("div", { className: "flex gap-2", children: [
|
|
54203
|
+
/* @__PURE__ */ (0, import_jsx_runtime1239.jsxs)(
|
|
54021
54204
|
"div",
|
|
54022
54205
|
{
|
|
54023
54206
|
className: cn(
|
|
@@ -54029,7 +54212,7 @@ var Input = React13.forwardRef(
|
|
|
54029
54212
|
className
|
|
54030
54213
|
),
|
|
54031
54214
|
children: [
|
|
54032
|
-
prefixEnchancer && /* @__PURE__ */ (0,
|
|
54215
|
+
prefixEnchancer && /* @__PURE__ */ (0, import_jsx_runtime1239.jsx)(
|
|
54033
54216
|
import_react_slot3.Slot,
|
|
54034
54217
|
{
|
|
54035
54218
|
className: cn(
|
|
@@ -54039,7 +54222,7 @@ var Input = React13.forwardRef(
|
|
|
54039
54222
|
children: prefixEnchancer
|
|
54040
54223
|
}
|
|
54041
54224
|
),
|
|
54042
|
-
/* @__PURE__ */ (0,
|
|
54225
|
+
/* @__PURE__ */ (0, import_jsx_runtime1239.jsx)(
|
|
54043
54226
|
"input",
|
|
54044
54227
|
__spreadProps(__spreadValues({}, props), {
|
|
54045
54228
|
disabled: isDisabled,
|
|
@@ -54048,7 +54231,7 @@ var Input = React13.forwardRef(
|
|
|
54048
54231
|
ref
|
|
54049
54232
|
})
|
|
54050
54233
|
),
|
|
54051
|
-
suffixEnchancer && /* @__PURE__ */ (0,
|
|
54234
|
+
suffixEnchancer && /* @__PURE__ */ (0, import_jsx_runtime1239.jsx)(
|
|
54052
54235
|
import_react_slot3.Slot,
|
|
54053
54236
|
{
|
|
54054
54237
|
className: cn(
|
|
@@ -54061,7 +54244,7 @@ var Input = React13.forwardRef(
|
|
|
54061
54244
|
]
|
|
54062
54245
|
}
|
|
54063
54246
|
),
|
|
54064
|
-
button &&
|
|
54247
|
+
button && React14.cloneElement(button, {
|
|
54065
54248
|
size: "sm",
|
|
54066
54249
|
disabled: isDisabled,
|
|
54067
54250
|
className: cn("flex-shrink-0", button.props.className)
|
|
@@ -54072,7 +54255,7 @@ var Input = React13.forwardRef(
|
|
|
54072
54255
|
Input.displayName = "Input";
|
|
54073
54256
|
|
|
54074
54257
|
// src/components/Pagination/Pagination.tsx
|
|
54075
|
-
var
|
|
54258
|
+
var import_jsx_runtime1240 = require("react/jsx-runtime");
|
|
54076
54259
|
var PaginationPageChoice = /* @__PURE__ */ ((PaginationPageChoice2) => {
|
|
54077
54260
|
PaginationPageChoice2["FIRST"] = "FIRST";
|
|
54078
54261
|
PaginationPageChoice2["PREVIOUS"] = "PREVIOUS";
|
|
@@ -54088,12 +54271,12 @@ var Pagination = ({
|
|
|
54088
54271
|
onPageChange,
|
|
54089
54272
|
className
|
|
54090
54273
|
}) => {
|
|
54091
|
-
return /* @__PURE__ */ (0,
|
|
54092
|
-
totalRowsCaption && /* @__PURE__ */ (0,
|
|
54093
|
-
/* @__PURE__ */ (0,
|
|
54094
|
-
currentPageCation && /* @__PURE__ */ (0,
|
|
54095
|
-
/* @__PURE__ */ (0,
|
|
54096
|
-
/* @__PURE__ */ (0,
|
|
54274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1240.jsxs)("div", { className: cn("flex items-center justify-between px-2", className), children: [
|
|
54275
|
+
totalRowsCaption && /* @__PURE__ */ (0, import_jsx_runtime1240.jsx)("div", { className: "flex-1 text-sm text-gray-700", children: totalRowsCaption }),
|
|
54276
|
+
/* @__PURE__ */ (0, import_jsx_runtime1240.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
54277
|
+
currentPageCation && /* @__PURE__ */ (0, import_jsx_runtime1240.jsx)("div", { className: "flex items-center justify-center text-sm font-medium text-gray-1000", children: currentPageCation }),
|
|
54278
|
+
/* @__PURE__ */ (0, import_jsx_runtime1240.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
54279
|
+
/* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(
|
|
54097
54280
|
Button,
|
|
54098
54281
|
{
|
|
54099
54282
|
variant: "outline",
|
|
@@ -54101,10 +54284,10 @@ var Pagination = ({
|
|
|
54101
54284
|
size: "sm",
|
|
54102
54285
|
onClick: () => onPageChange("FIRST" /* FIRST */),
|
|
54103
54286
|
disabled: !previousPageAvailable,
|
|
54104
|
-
children: /* @__PURE__ */ (0,
|
|
54287
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(ChevronLeftDoubleIcon, { size: "16" })
|
|
54105
54288
|
}
|
|
54106
54289
|
),
|
|
54107
|
-
/* @__PURE__ */ (0,
|
|
54290
|
+
/* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(
|
|
54108
54291
|
Button,
|
|
54109
54292
|
{
|
|
54110
54293
|
variant: "outline",
|
|
@@ -54112,10 +54295,10 @@ var Pagination = ({
|
|
|
54112
54295
|
size: "sm",
|
|
54113
54296
|
onClick: () => onPageChange("PREVIOUS" /* PREVIOUS */),
|
|
54114
54297
|
disabled: !previousPageAvailable,
|
|
54115
|
-
children: /* @__PURE__ */ (0,
|
|
54298
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(ChevronLeftIcon, { size: "16" })
|
|
54116
54299
|
}
|
|
54117
54300
|
),
|
|
54118
|
-
/* @__PURE__ */ (0,
|
|
54301
|
+
/* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(
|
|
54119
54302
|
Button,
|
|
54120
54303
|
{
|
|
54121
54304
|
variant: "outline",
|
|
@@ -54123,10 +54306,10 @@ var Pagination = ({
|
|
|
54123
54306
|
size: "sm",
|
|
54124
54307
|
onClick: () => onPageChange("NEXT" /* NEXT */),
|
|
54125
54308
|
disabled: !nextPageAvailable,
|
|
54126
|
-
children: /* @__PURE__ */ (0,
|
|
54309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(ChevronRightIcon, { size: "16" })
|
|
54127
54310
|
}
|
|
54128
54311
|
),
|
|
54129
|
-
/* @__PURE__ */ (0,
|
|
54312
|
+
/* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(
|
|
54130
54313
|
Button,
|
|
54131
54314
|
{
|
|
54132
54315
|
variant: "outline",
|
|
@@ -54134,7 +54317,7 @@ var Pagination = ({
|
|
|
54134
54317
|
size: "sm",
|
|
54135
54318
|
onClick: () => onPageChange("LAST" /* LAST */),
|
|
54136
54319
|
disabled: !nextPageAvailable,
|
|
54137
|
-
children: /* @__PURE__ */ (0,
|
|
54320
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1240.jsx)(ChevronRightDoubleIcon, { size: "16" })
|
|
54138
54321
|
}
|
|
54139
54322
|
)
|
|
54140
54323
|
] })
|
|
@@ -54143,14 +54326,14 @@ var Pagination = ({
|
|
|
54143
54326
|
};
|
|
54144
54327
|
|
|
54145
54328
|
// src/components/Popover/Popover.tsx
|
|
54146
|
-
var
|
|
54329
|
+
var React15 = __toESM(require("react"));
|
|
54147
54330
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
54148
|
-
var
|
|
54331
|
+
var import_jsx_runtime1241 = require("react/jsx-runtime");
|
|
54149
54332
|
var Popover = PopoverPrimitive.Root;
|
|
54150
54333
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
54151
|
-
var PopoverContent =
|
|
54334
|
+
var PopoverContent = React15.forwardRef((_a, ref) => {
|
|
54152
54335
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
54153
|
-
return /* @__PURE__ */ (0,
|
|
54336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1241.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime1241.jsx)(
|
|
54154
54337
|
PopoverPrimitive.Content,
|
|
54155
54338
|
__spreadValues({
|
|
54156
54339
|
ref,
|
|
@@ -54166,16 +54349,16 @@ var PopoverContent = React14.forwardRef((_a, ref) => {
|
|
|
54166
54349
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
54167
54350
|
|
|
54168
54351
|
// src/components/Select/Select.tsx
|
|
54169
|
-
var
|
|
54352
|
+
var React16 = __toESM(require("react"));
|
|
54170
54353
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
54171
|
-
var
|
|
54354
|
+
var import_jsx_runtime1242 = require("react/jsx-runtime");
|
|
54172
54355
|
var Select = SelectPrimitive.Root;
|
|
54173
54356
|
var SelectGroup = SelectPrimitive.Group;
|
|
54174
54357
|
var SelectValue = SelectPrimitive.Value;
|
|
54175
|
-
var SelectTrigger =
|
|
54358
|
+
var SelectTrigger = React16.forwardRef((_a, ref) => {
|
|
54176
54359
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
54177
54360
|
const isDisabled = props["data-is-disabled"];
|
|
54178
|
-
return /* @__PURE__ */ (0,
|
|
54361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1242.jsxs)(
|
|
54179
54362
|
SelectPrimitive.Trigger,
|
|
54180
54363
|
__spreadProps(__spreadValues({
|
|
54181
54364
|
ref,
|
|
@@ -54192,15 +54375,15 @@ var SelectTrigger = React15.forwardRef((_a, ref) => {
|
|
|
54192
54375
|
}, props), {
|
|
54193
54376
|
children: [
|
|
54194
54377
|
children,
|
|
54195
|
-
/* @__PURE__ */ (0,
|
|
54378
|
+
/* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(ChevronSelectorVerticalIcon, { size: "16", className: "w-4 h-4 opacity-50" }) })
|
|
54196
54379
|
]
|
|
54197
54380
|
})
|
|
54198
54381
|
);
|
|
54199
54382
|
});
|
|
54200
54383
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
54201
|
-
var SelectContent =
|
|
54384
|
+
var SelectContent = React16.forwardRef((_a, ref) => {
|
|
54202
54385
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
54203
|
-
return /* @__PURE__ */ (0,
|
|
54386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(
|
|
54204
54387
|
SelectPrimitive.Content,
|
|
54205
54388
|
__spreadProps(__spreadValues({
|
|
54206
54389
|
ref,
|
|
@@ -54211,7 +54394,7 @@ var SelectContent = React15.forwardRef((_a, ref) => {
|
|
|
54211
54394
|
),
|
|
54212
54395
|
position
|
|
54213
54396
|
}, props), {
|
|
54214
|
-
children: /* @__PURE__ */ (0,
|
|
54397
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(
|
|
54215
54398
|
SelectPrimitive.Viewport,
|
|
54216
54399
|
{
|
|
54217
54400
|
className: cn(
|
|
@@ -54225,9 +54408,9 @@ var SelectContent = React15.forwardRef((_a, ref) => {
|
|
|
54225
54408
|
) });
|
|
54226
54409
|
});
|
|
54227
54410
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
54228
|
-
var SelectLabel =
|
|
54411
|
+
var SelectLabel = React16.forwardRef((_a, ref) => {
|
|
54229
54412
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54230
|
-
return /* @__PURE__ */ (0,
|
|
54413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(
|
|
54231
54414
|
SelectPrimitive.Label,
|
|
54232
54415
|
__spreadValues({
|
|
54233
54416
|
ref,
|
|
@@ -54236,9 +54419,9 @@ var SelectLabel = React15.forwardRef((_a, ref) => {
|
|
|
54236
54419
|
);
|
|
54237
54420
|
});
|
|
54238
54421
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
54239
|
-
var SelectItem =
|
|
54422
|
+
var SelectItem = React16.forwardRef((_a, ref) => {
|
|
54240
54423
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
54241
|
-
return /* @__PURE__ */ (0,
|
|
54424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(
|
|
54242
54425
|
SelectPrimitive.Item,
|
|
54243
54426
|
__spreadProps(__spreadValues({
|
|
54244
54427
|
ref,
|
|
@@ -54247,14 +54430,14 @@ var SelectItem = React15.forwardRef((_a, ref) => {
|
|
|
54247
54430
|
className
|
|
54248
54431
|
)
|
|
54249
54432
|
}, props), {
|
|
54250
|
-
children: /* @__PURE__ */ (0,
|
|
54433
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(SelectPrimitive.ItemText, { children })
|
|
54251
54434
|
})
|
|
54252
54435
|
);
|
|
54253
54436
|
});
|
|
54254
54437
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
54255
|
-
var SelectSeparator =
|
|
54438
|
+
var SelectSeparator = React16.forwardRef((_a, ref) => {
|
|
54256
54439
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54257
|
-
return /* @__PURE__ */ (0,
|
|
54440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1242.jsx)(
|
|
54258
54441
|
SelectPrimitive.Separator,
|
|
54259
54442
|
__spreadValues({
|
|
54260
54443
|
ref,
|
|
@@ -54264,13 +54447,124 @@ var SelectSeparator = React15.forwardRef((_a, ref) => {
|
|
|
54264
54447
|
});
|
|
54265
54448
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
54266
54449
|
|
|
54450
|
+
// src/components/Sheet/Sheet.tsx
|
|
54451
|
+
var React17 = __toESM(require("react"));
|
|
54452
|
+
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
54453
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
54454
|
+
var import_jsx_runtime1243 = require("react/jsx-runtime");
|
|
54455
|
+
var Sheet = SheetPrimitive.Root;
|
|
54456
|
+
var SheetTrigger = SheetPrimitive.Trigger;
|
|
54457
|
+
var SheetClose = React17.forwardRef((_a, ref) => {
|
|
54458
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1243.jsx)(SheetPrimitive.Close, __spreadProps(__spreadValues({}, props), { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime1243.jsx)(Button, { size: "sm", variant: "secondary", icon: true, children: /* @__PURE__ */ (0, import_jsx_runtime1243.jsx)(XCloseIcon, { size: 16 }) }) }));
|
|
54460
|
+
});
|
|
54461
|
+
SheetClose.displayName = SheetPrimitive.Close.displayName;
|
|
54462
|
+
var SheetPortal = SheetPrimitive.Portal;
|
|
54463
|
+
var SheetOverlay = React17.forwardRef((_a, ref) => {
|
|
54464
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1243.jsx)(
|
|
54466
|
+
SheetPrimitive.Overlay,
|
|
54467
|
+
__spreadProps(__spreadValues({
|
|
54468
|
+
className: cn(
|
|
54469
|
+
"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",
|
|
54470
|
+
className
|
|
54471
|
+
)
|
|
54472
|
+
}, props), {
|
|
54473
|
+
ref
|
|
54474
|
+
})
|
|
54475
|
+
);
|
|
54476
|
+
});
|
|
54477
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
54478
|
+
var sheetVariants = (0, import_class_variance_authority4.cva)(
|
|
54479
|
+
"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",
|
|
54480
|
+
{
|
|
54481
|
+
variants: {
|
|
54482
|
+
side: {
|
|
54483
|
+
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",
|
|
54484
|
+
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",
|
|
54485
|
+
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",
|
|
54486
|
+
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"
|
|
54487
|
+
}
|
|
54488
|
+
},
|
|
54489
|
+
defaultVariants: {
|
|
54490
|
+
side: "right"
|
|
54491
|
+
}
|
|
54492
|
+
}
|
|
54493
|
+
);
|
|
54494
|
+
var SheetContent = React17.forwardRef(
|
|
54495
|
+
(_a, ref) => {
|
|
54496
|
+
var _b = _a, {
|
|
54497
|
+
side = "right",
|
|
54498
|
+
className,
|
|
54499
|
+
children,
|
|
54500
|
+
container,
|
|
54501
|
+
overlay = true
|
|
54502
|
+
} = _b, props = __objRest(_b, [
|
|
54503
|
+
"side",
|
|
54504
|
+
"className",
|
|
54505
|
+
"children",
|
|
54506
|
+
"container",
|
|
54507
|
+
"overlay"
|
|
54508
|
+
]);
|
|
54509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1243.jsxs)(SheetPortal, { container, children: [
|
|
54510
|
+
overlay && /* @__PURE__ */ (0, import_jsx_runtime1243.jsx)(SheetOverlay, { className: cn({ absolute: Boolean(container) }) }),
|
|
54511
|
+
/* @__PURE__ */ (0, import_jsx_runtime1243.jsx)(
|
|
54512
|
+
SheetPrimitive.Content,
|
|
54513
|
+
__spreadProps(__spreadValues({
|
|
54514
|
+
ref,
|
|
54515
|
+
className: cn(
|
|
54516
|
+
"flex flex-col gap-6",
|
|
54517
|
+
sheetVariants({ side }),
|
|
54518
|
+
{ absolute: Boolean(container) },
|
|
54519
|
+
className
|
|
54520
|
+
),
|
|
54521
|
+
onInteractOutside: (event) => {
|
|
54522
|
+
if (!overlay) {
|
|
54523
|
+
event.preventDefault();
|
|
54524
|
+
}
|
|
54525
|
+
}
|
|
54526
|
+
}, props), {
|
|
54527
|
+
children
|
|
54528
|
+
})
|
|
54529
|
+
)
|
|
54530
|
+
] });
|
|
54531
|
+
}
|
|
54532
|
+
);
|
|
54533
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
54534
|
+
var SheetHeader = (_a) => {
|
|
54535
|
+
var _b = _a, {
|
|
54536
|
+
className
|
|
54537
|
+
} = _b, props = __objRest(_b, [
|
|
54538
|
+
"className"
|
|
54539
|
+
]);
|
|
54540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1243.jsx)("div", __spreadValues({ className: cn("flex justify-between", className) }, props));
|
|
54541
|
+
};
|
|
54542
|
+
SheetHeader.displayName = "SheetHeader";
|
|
54543
|
+
var SheetTitle = React17.forwardRef((_a, ref) => {
|
|
54544
|
+
var _b = _a, { className, icon } = _b, props = __objRest(_b, ["className", "icon"]);
|
|
54545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1243.jsxs)("div", { className: "flex gap-3 items-center p-2 overflow-hidden", children: [
|
|
54546
|
+
icon && React17.cloneElement(icon, {
|
|
54547
|
+
size: 18,
|
|
54548
|
+
className: cn("shrink-0", icon.props.className)
|
|
54549
|
+
}),
|
|
54550
|
+
/* @__PURE__ */ (0, import_jsx_runtime1243.jsx)(
|
|
54551
|
+
SheetPrimitive.Title,
|
|
54552
|
+
__spreadValues({
|
|
54553
|
+
ref,
|
|
54554
|
+
className: cn("text-md font-semibold text-gray-1000 truncate", className)
|
|
54555
|
+
}, props)
|
|
54556
|
+
)
|
|
54557
|
+
] });
|
|
54558
|
+
});
|
|
54559
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
54560
|
+
|
|
54267
54561
|
// src/components/Switch/Switch.tsx
|
|
54268
|
-
var
|
|
54562
|
+
var React18 = __toESM(require("react"));
|
|
54269
54563
|
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"));
|
|
54270
|
-
var
|
|
54271
|
-
var Switch =
|
|
54564
|
+
var import_jsx_runtime1244 = require("react/jsx-runtime");
|
|
54565
|
+
var Switch = React18.forwardRef((_a, ref) => {
|
|
54272
54566
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54273
|
-
return /* @__PURE__ */ (0,
|
|
54567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1244.jsx)(
|
|
54274
54568
|
SwitchPrimitive.Root,
|
|
54275
54569
|
__spreadProps(__spreadValues({
|
|
54276
54570
|
className: cn(
|
|
@@ -54279,18 +54573,18 @@ var Switch = React16.forwardRef((_a, ref) => {
|
|
|
54279
54573
|
)
|
|
54280
54574
|
}, props), {
|
|
54281
54575
|
ref,
|
|
54282
|
-
children: /* @__PURE__ */ (0,
|
|
54576
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1244.jsx)(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" })
|
|
54283
54577
|
})
|
|
54284
54578
|
);
|
|
54285
54579
|
});
|
|
54286
54580
|
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
54287
54581
|
|
|
54288
54582
|
// src/components/Table/Table.tsx
|
|
54289
|
-
var
|
|
54290
|
-
var
|
|
54291
|
-
var Table =
|
|
54583
|
+
var React19 = __toESM(require("react"));
|
|
54584
|
+
var import_jsx_runtime1245 = require("react/jsx-runtime");
|
|
54585
|
+
var Table = React19.forwardRef((_a, ref) => {
|
|
54292
54586
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54293
|
-
return /* @__PURE__ */ (0,
|
|
54587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)("div", { className: "w-full overflow-auto border rounded-lg", children: /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)(
|
|
54294
54588
|
"table",
|
|
54295
54589
|
__spreadValues({
|
|
54296
54590
|
ref,
|
|
@@ -54299,9 +54593,9 @@ var Table = React17.forwardRef((_a, ref) => {
|
|
|
54299
54593
|
) });
|
|
54300
54594
|
});
|
|
54301
54595
|
Table.displayName = "Table";
|
|
54302
|
-
var TableHeader =
|
|
54596
|
+
var TableHeader = React19.forwardRef((_a, ref) => {
|
|
54303
54597
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54304
|
-
return /* @__PURE__ */ (0,
|
|
54598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)(
|
|
54305
54599
|
"thead",
|
|
54306
54600
|
__spreadValues({
|
|
54307
54601
|
ref,
|
|
@@ -54310,9 +54604,9 @@ var TableHeader = React17.forwardRef((_a, ref) => {
|
|
|
54310
54604
|
);
|
|
54311
54605
|
});
|
|
54312
54606
|
TableHeader.displayName = "TableHeader";
|
|
54313
|
-
var TableBody =
|
|
54607
|
+
var TableBody = React19.forwardRef((_a, ref) => {
|
|
54314
54608
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54315
|
-
return /* @__PURE__ */ (0,
|
|
54609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)(
|
|
54316
54610
|
"tbody",
|
|
54317
54611
|
__spreadValues({
|
|
54318
54612
|
ref,
|
|
@@ -54324,9 +54618,9 @@ var TableBody = React17.forwardRef((_a, ref) => {
|
|
|
54324
54618
|
);
|
|
54325
54619
|
});
|
|
54326
54620
|
TableBody.displayName = "TableBody";
|
|
54327
|
-
var TableRow =
|
|
54621
|
+
var TableRow = React19.forwardRef((_a, ref) => {
|
|
54328
54622
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54329
|
-
return /* @__PURE__ */ (0,
|
|
54623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)(
|
|
54330
54624
|
"tr",
|
|
54331
54625
|
__spreadValues({
|
|
54332
54626
|
ref,
|
|
@@ -54338,9 +54632,9 @@ var TableRow = React17.forwardRef((_a, ref) => {
|
|
|
54338
54632
|
);
|
|
54339
54633
|
});
|
|
54340
54634
|
TableRow.displayName = "TableRow";
|
|
54341
|
-
var TableHead =
|
|
54635
|
+
var TableHead = React19.forwardRef((_a, ref) => {
|
|
54342
54636
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54343
|
-
return /* @__PURE__ */ (0,
|
|
54637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)(
|
|
54344
54638
|
"th",
|
|
54345
54639
|
__spreadValues({
|
|
54346
54640
|
ref,
|
|
@@ -54352,9 +54646,9 @@ var TableHead = React17.forwardRef((_a, ref) => {
|
|
|
54352
54646
|
);
|
|
54353
54647
|
});
|
|
54354
54648
|
TableHead.displayName = "TableHead";
|
|
54355
|
-
var TableCell =
|
|
54649
|
+
var TableCell = React19.forwardRef((_a, ref) => {
|
|
54356
54650
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54357
|
-
return /* @__PURE__ */ (0,
|
|
54651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)(
|
|
54358
54652
|
"td",
|
|
54359
54653
|
__spreadValues({
|
|
54360
54654
|
ref,
|
|
@@ -54366,18 +54660,18 @@ var TableCell = React17.forwardRef((_a, ref) => {
|
|
|
54366
54660
|
);
|
|
54367
54661
|
});
|
|
54368
54662
|
TableCell.displayName = "TableCell";
|
|
54369
|
-
var TableEmpty =
|
|
54663
|
+
var TableEmpty = React19.forwardRef((_a, ref) => {
|
|
54370
54664
|
var _b = _a, { className, title, description, children } = _b, props = __objRest(_b, ["className", "title", "description", "children"]);
|
|
54371
|
-
return /* @__PURE__ */ (0,
|
|
54665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1245.jsxs)(
|
|
54372
54666
|
"div",
|
|
54373
54667
|
__spreadProps(__spreadValues({
|
|
54374
54668
|
ref,
|
|
54375
54669
|
className: cn("flex flex-col gap-6 items-center py-12", className)
|
|
54376
54670
|
}, props), {
|
|
54377
54671
|
children: [
|
|
54378
|
-
title && /* @__PURE__ */ (0,
|
|
54379
|
-
description && /* @__PURE__ */ (0,
|
|
54380
|
-
/* @__PURE__ */ (0,
|
|
54672
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)("span", { className: "text-lg font-semibold text-gray-1000", children: title }),
|
|
54673
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime1245.jsx)("span", { className: "text-sm font-normal text-gray-900", children: description }),
|
|
54674
|
+
/* @__PURE__ */ (0, import_jsx_runtime1245.jsx)("div", { children })
|
|
54381
54675
|
]
|
|
54382
54676
|
})
|
|
54383
54677
|
);
|
|
@@ -54385,13 +54679,13 @@ var TableEmpty = React17.forwardRef((_a, ref) => {
|
|
|
54385
54679
|
TableEmpty.displayName = "TableEmpty";
|
|
54386
54680
|
|
|
54387
54681
|
// src/components/Tabs/Tabs.tsx
|
|
54388
|
-
var
|
|
54682
|
+
var React20 = __toESM(require("react"));
|
|
54389
54683
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
54390
|
-
var
|
|
54684
|
+
var import_jsx_runtime1246 = require("react/jsx-runtime");
|
|
54391
54685
|
var Tabs = TabsPrimitive.Root;
|
|
54392
|
-
var TabsList =
|
|
54686
|
+
var TabsList = React20.forwardRef((_a, ref) => {
|
|
54393
54687
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54394
|
-
return /* @__PURE__ */ (0,
|
|
54688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1246.jsx)(
|
|
54395
54689
|
TabsPrimitive.List,
|
|
54396
54690
|
__spreadValues({
|
|
54397
54691
|
ref,
|
|
@@ -54403,9 +54697,9 @@ var TabsList = React18.forwardRef((_a, ref) => {
|
|
|
54403
54697
|
);
|
|
54404
54698
|
});
|
|
54405
54699
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
54406
|
-
var TabsTrigger =
|
|
54700
|
+
var TabsTrigger = React20.forwardRef((_a, ref) => {
|
|
54407
54701
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54408
|
-
return /* @__PURE__ */ (0,
|
|
54702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1246.jsx)(
|
|
54409
54703
|
TabsPrimitive.Trigger,
|
|
54410
54704
|
__spreadValues({
|
|
54411
54705
|
ref,
|
|
@@ -54420,9 +54714,9 @@ var TabsTrigger = React18.forwardRef((_a, ref) => {
|
|
|
54420
54714
|
);
|
|
54421
54715
|
});
|
|
54422
54716
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
54423
|
-
var TabsContent =
|
|
54717
|
+
var TabsContent = React20.forwardRef((_a, ref) => {
|
|
54424
54718
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54425
|
-
return /* @__PURE__ */ (0,
|
|
54719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1246.jsx)(
|
|
54426
54720
|
TabsPrimitive.Content,
|
|
54427
54721
|
__spreadValues({
|
|
54428
54722
|
ref,
|
|
@@ -54436,13 +54730,13 @@ var TabsContent = React18.forwardRef((_a, ref) => {
|
|
|
54436
54730
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
54437
54731
|
|
|
54438
54732
|
// src/components/Textarea/Textarea.tsx
|
|
54439
|
-
var
|
|
54440
|
-
var
|
|
54441
|
-
var Textarea =
|
|
54733
|
+
var React21 = __toESM(require("react"));
|
|
54734
|
+
var import_jsx_runtime1247 = require("react/jsx-runtime");
|
|
54735
|
+
var Textarea = React21.forwardRef(
|
|
54442
54736
|
(_a, ref) => {
|
|
54443
54737
|
var _b = _a, { className, disabled } = _b, props = __objRest(_b, ["className", "disabled"]);
|
|
54444
54738
|
const isDisabled = !!props["data-is-disabled"] || disabled;
|
|
54445
|
-
return /* @__PURE__ */ (0,
|
|
54739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1247.jsx)("div", { className: "flex gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime1247.jsx)(
|
|
54446
54740
|
"div",
|
|
54447
54741
|
{
|
|
54448
54742
|
className: cn(
|
|
@@ -54453,7 +54747,7 @@ var Textarea = React19.forwardRef(
|
|
|
54453
54747
|
},
|
|
54454
54748
|
className
|
|
54455
54749
|
),
|
|
54456
|
-
children: /* @__PURE__ */ (0,
|
|
54750
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1247.jsx)(
|
|
54457
54751
|
"textarea",
|
|
54458
54752
|
__spreadProps(__spreadValues({}, props), {
|
|
54459
54753
|
disabled: isDisabled,
|
|
@@ -54468,14 +54762,14 @@ var Textarea = React19.forwardRef(
|
|
|
54468
54762
|
Textarea.displayName = "Textarea";
|
|
54469
54763
|
|
|
54470
54764
|
// src/components/Toaster/Toast.tsx
|
|
54471
|
-
var
|
|
54765
|
+
var React22 = __toESM(require("react"));
|
|
54472
54766
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
54473
|
-
var
|
|
54474
|
-
var
|
|
54767
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
54768
|
+
var import_jsx_runtime1248 = require("react/jsx-runtime");
|
|
54475
54769
|
var ToastProvider = ToastPrimitives.Provider;
|
|
54476
|
-
var ToastViewport =
|
|
54770
|
+
var ToastViewport = React22.forwardRef((_a, ref) => {
|
|
54477
54771
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54478
|
-
return /* @__PURE__ */ (0,
|
|
54772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(
|
|
54479
54773
|
ToastPrimitives.Viewport,
|
|
54480
54774
|
__spreadValues({
|
|
54481
54775
|
ref,
|
|
@@ -54487,7 +54781,7 @@ var ToastViewport = React20.forwardRef((_a, ref) => {
|
|
|
54487
54781
|
);
|
|
54488
54782
|
});
|
|
54489
54783
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
54490
|
-
var toastVariants = (0,
|
|
54784
|
+
var toastVariants = (0, import_class_variance_authority5.cva)(
|
|
54491
54785
|
"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",
|
|
54492
54786
|
{
|
|
54493
54787
|
variants: {
|
|
@@ -54501,9 +54795,9 @@ var toastVariants = (0, import_class_variance_authority4.cva)(
|
|
|
54501
54795
|
}
|
|
54502
54796
|
}
|
|
54503
54797
|
);
|
|
54504
|
-
var Toast =
|
|
54798
|
+
var Toast = React22.forwardRef((_a, ref) => {
|
|
54505
54799
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
54506
|
-
return /* @__PURE__ */ (0,
|
|
54800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(
|
|
54507
54801
|
ToastPrimitives.Root,
|
|
54508
54802
|
__spreadValues({
|
|
54509
54803
|
ref,
|
|
@@ -54512,28 +54806,28 @@ var Toast = React20.forwardRef((_a, ref) => {
|
|
|
54512
54806
|
);
|
|
54513
54807
|
});
|
|
54514
54808
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
54515
|
-
var ToastAction =
|
|
54809
|
+
var ToastAction = React22.forwardRef((_a, ref) => {
|
|
54516
54810
|
var _b = _a, { className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
54517
|
-
return /* @__PURE__ */ (0,
|
|
54811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(ToastPrimitives.Action, { altText, ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(Button, __spreadValues({ size: "xs" }, props)) });
|
|
54518
54812
|
});
|
|
54519
54813
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
54520
|
-
var ToastClose =
|
|
54814
|
+
var ToastClose = React22.forwardRef((_a, ref) => {
|
|
54521
54815
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54522
|
-
return /* @__PURE__ */ (0,
|
|
54816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(
|
|
54523
54817
|
ToastPrimitives.Close,
|
|
54524
54818
|
__spreadProps(__spreadValues({
|
|
54525
54819
|
ref,
|
|
54526
54820
|
className: cn("focus:outline-none focus:ring-1", className),
|
|
54527
54821
|
"toast-close": ""
|
|
54528
54822
|
}, props), {
|
|
54529
|
-
children: /* @__PURE__ */ (0,
|
|
54823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(XCloseIcon, { className: "text-white", size: 16 })
|
|
54530
54824
|
})
|
|
54531
54825
|
);
|
|
54532
54826
|
});
|
|
54533
54827
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
54534
|
-
var ToastTitle =
|
|
54828
|
+
var ToastTitle = React22.forwardRef((_a, ref) => {
|
|
54535
54829
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54536
|
-
return /* @__PURE__ */ (0,
|
|
54830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(
|
|
54537
54831
|
ToastPrimitives.Title,
|
|
54538
54832
|
__spreadValues({
|
|
54539
54833
|
ref,
|
|
@@ -54542,9 +54836,9 @@ var ToastTitle = React20.forwardRef((_a, ref) => {
|
|
|
54542
54836
|
);
|
|
54543
54837
|
});
|
|
54544
54838
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
54545
|
-
var ToastDescription =
|
|
54839
|
+
var ToastDescription = React22.forwardRef((_a, ref) => {
|
|
54546
54840
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54547
|
-
return /* @__PURE__ */ (0,
|
|
54841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1248.jsx)(
|
|
54548
54842
|
ToastPrimitives.Description,
|
|
54549
54843
|
__spreadValues({
|
|
54550
54844
|
ref,
|
|
@@ -54558,7 +54852,7 @@ ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
|
54558
54852
|
var import_react1231 = __toESM(require("react"));
|
|
54559
54853
|
|
|
54560
54854
|
// src/components/Toaster/useToast.tsx
|
|
54561
|
-
var
|
|
54855
|
+
var React23 = __toESM(require("react"));
|
|
54562
54856
|
var TOAST_LIMIT = 3;
|
|
54563
54857
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
54564
54858
|
var count = 0;
|
|
@@ -54667,8 +54961,8 @@ var toast = (parentId) => (_a) => {
|
|
|
54667
54961
|
};
|
|
54668
54962
|
};
|
|
54669
54963
|
function useToast({ toasterId = "default" } = {}) {
|
|
54670
|
-
const [state, setState] =
|
|
54671
|
-
|
|
54964
|
+
const [state, setState] = React23.useState(memoryState);
|
|
54965
|
+
React23.useEffect(() => {
|
|
54672
54966
|
listeners.push(setState);
|
|
54673
54967
|
return () => {
|
|
54674
54968
|
const index = listeners.indexOf(setState);
|
|
@@ -54684,7 +54978,7 @@ function useToast({ toasterId = "default" } = {}) {
|
|
|
54684
54978
|
}
|
|
54685
54979
|
|
|
54686
54980
|
// src/components/Toaster/Toaster.tsx
|
|
54687
|
-
var
|
|
54981
|
+
var import_jsx_runtime1249 = require("react/jsx-runtime");
|
|
54688
54982
|
var ToastContent = ({
|
|
54689
54983
|
title,
|
|
54690
54984
|
description,
|
|
@@ -54692,19 +54986,19 @@ var ToastContent = ({
|
|
|
54692
54986
|
actions,
|
|
54693
54987
|
hideClose
|
|
54694
54988
|
}) => {
|
|
54695
|
-
return /* @__PURE__ */ (0,
|
|
54696
|
-
/* @__PURE__ */ (0,
|
|
54697
|
-
/* @__PURE__ */ (0,
|
|
54989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1249.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
54990
|
+
/* @__PURE__ */ (0, import_jsx_runtime1249.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
54991
|
+
/* @__PURE__ */ (0, import_jsx_runtime1249.jsxs)("div", { className: "flex items-center flex-grow gap-2", children: [
|
|
54698
54992
|
icon && import_react1231.default.cloneElement(icon, {
|
|
54699
54993
|
size: 16,
|
|
54700
54994
|
className: cn("shrink-0", icon.props.className)
|
|
54701
54995
|
}),
|
|
54702
|
-
title && /* @__PURE__ */ (0,
|
|
54996
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime1249.jsx)(ToastTitle, { children: title })
|
|
54703
54997
|
] }),
|
|
54704
54998
|
actions,
|
|
54705
|
-
!hideClose && /* @__PURE__ */ (0,
|
|
54999
|
+
!hideClose && /* @__PURE__ */ (0, import_jsx_runtime1249.jsx)(ToastClose, {})
|
|
54706
55000
|
] }),
|
|
54707
|
-
description && /* @__PURE__ */ (0,
|
|
55001
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime1249.jsx)(ToastDescription, { children: description })
|
|
54708
55002
|
] });
|
|
54709
55003
|
};
|
|
54710
55004
|
function Toaster(_a) {
|
|
@@ -54716,7 +55010,7 @@ function Toaster(_a) {
|
|
|
54716
55010
|
"toasterId"
|
|
54717
55011
|
]);
|
|
54718
55012
|
const { toasts } = useToast({ toasterId });
|
|
54719
|
-
return /* @__PURE__ */ (0,
|
|
55013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1249.jsxs)(ToastProvider, __spreadProps(__spreadValues({}, props), { children: [
|
|
54720
55014
|
toasts.filter((t) => t.parentId === toasterId).map(
|
|
54721
55015
|
(_a2) => {
|
|
54722
55016
|
var _b2 = _a2, {
|
|
@@ -54736,7 +55030,7 @@ function Toaster(_a) {
|
|
|
54736
55030
|
"icon",
|
|
54737
55031
|
"hideClose"
|
|
54738
55032
|
]);
|
|
54739
|
-
return /* @__PURE__ */ (0,
|
|
55033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1249.jsx)(Toast, __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ (0, import_jsx_runtime1249.jsx)(
|
|
54740
55034
|
ToastContent,
|
|
54741
55035
|
{
|
|
54742
55036
|
title,
|
|
@@ -54748,27 +55042,27 @@ function Toaster(_a) {
|
|
|
54748
55042
|
) }), id);
|
|
54749
55043
|
}
|
|
54750
55044
|
),
|
|
54751
|
-
/* @__PURE__ */ (0,
|
|
55045
|
+
/* @__PURE__ */ (0, import_jsx_runtime1249.jsx)(ToastViewport, { className })
|
|
54752
55046
|
] }));
|
|
54753
55047
|
}
|
|
54754
55048
|
|
|
54755
55049
|
// src/components/Tooltip/Tooltip.tsx
|
|
54756
|
-
var
|
|
55050
|
+
var React25 = __toESM(require("react"));
|
|
54757
55051
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
54758
|
-
var
|
|
55052
|
+
var import_jsx_runtime1250 = require("react/jsx-runtime");
|
|
54759
55053
|
var TooltipProvider = (_a) => {
|
|
54760
55054
|
var _b = _a, {
|
|
54761
55055
|
delayDuration = 0
|
|
54762
55056
|
} = _b, props = __objRest(_b, [
|
|
54763
55057
|
"delayDuration"
|
|
54764
55058
|
]);
|
|
54765
|
-
return /* @__PURE__ */ (0,
|
|
55059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1250.jsx)(TooltipPrimitive.Provider, __spreadValues({ delayDuration }, props));
|
|
54766
55060
|
};
|
|
54767
55061
|
var Tooltip = TooltipPrimitive.Root;
|
|
54768
55062
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
54769
|
-
var TooltipContent =
|
|
55063
|
+
var TooltipContent = React25.forwardRef((_a, ref) => {
|
|
54770
55064
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
54771
|
-
return /* @__PURE__ */ (0,
|
|
55065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1250.jsx)(
|
|
54772
55066
|
TooltipPrimitive.Content,
|
|
54773
55067
|
__spreadValues({
|
|
54774
55068
|
ref,
|
|
@@ -55020,6 +55314,11 @@ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
|
55020
55314
|
CameraPlusIcon,
|
|
55021
55315
|
Car1Icon,
|
|
55022
55316
|
Car2Icon,
|
|
55317
|
+
Carousel,
|
|
55318
|
+
CarouselContent,
|
|
55319
|
+
CarouselItem,
|
|
55320
|
+
CarouselNext,
|
|
55321
|
+
CarouselPrevious,
|
|
55023
55322
|
Certificate1Icon,
|
|
55024
55323
|
Certificate2Icon,
|
|
55025
55324
|
ChartBreakoutCircleIcon,
|
|
@@ -55849,6 +56148,12 @@ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
|
55849
56148
|
Share7Icon,
|
|
55850
56149
|
ShareArrowIcon,
|
|
55851
56150
|
ShareIcon,
|
|
56151
|
+
Sheet,
|
|
56152
|
+
SheetClose,
|
|
56153
|
+
SheetContent,
|
|
56154
|
+
SheetHeader,
|
|
56155
|
+
SheetTitle,
|
|
56156
|
+
SheetTrigger,
|
|
55852
56157
|
Shield1Icon,
|
|
55853
56158
|
Shield2Icon,
|
|
55854
56159
|
Shield3Icon,
|