@snapcall/design-system 1.1.1 → 1.2.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 +55 -4
- package/dist/index.d.ts +55 -4
- package/dist/index.js +442 -58
- package/dist/index.mjs +545 -184
- package/dist/tailwind.config.js +1 -1
- package/dist/tailwind.css +1 -1
- package/package.json +28 -22
package/dist/index.js
CHANGED
|
@@ -61,6 +61,15 @@ var src_exports = {};
|
|
|
61
61
|
__export(src_exports, {
|
|
62
62
|
ActivityIcon: () => ActivityIcon,
|
|
63
63
|
AlertCircleIcon: () => AlertCircleIcon,
|
|
64
|
+
AlertDialog: () => AlertDialog,
|
|
65
|
+
AlertDialogAction: () => AlertDialogAction,
|
|
66
|
+
AlertDialogCancel: () => AlertDialogCancel,
|
|
67
|
+
AlertDialogContent: () => AlertDialogContent,
|
|
68
|
+
AlertDialogDescription: () => AlertDialogDescription,
|
|
69
|
+
AlertDialogFooter: () => AlertDialogFooter,
|
|
70
|
+
AlertDialogHeader: () => AlertDialogHeader,
|
|
71
|
+
AlertDialogTitle: () => AlertDialogTitle,
|
|
72
|
+
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
64
73
|
ArrowDownIcon: () => ArrowDownIcon,
|
|
65
74
|
ArrowLeftIcon: () => ArrowLeftIcon,
|
|
66
75
|
ArrowRightIcon: () => ArrowRightIcon,
|
|
@@ -68,6 +77,7 @@ __export(src_exports, {
|
|
|
68
77
|
Badge: () => Badge,
|
|
69
78
|
BellIcon: () => BellIcon,
|
|
70
79
|
Button: () => Button,
|
|
80
|
+
Calendar: () => Calendar,
|
|
71
81
|
CalendarCheckIcon: () => CalendarCheckIcon,
|
|
72
82
|
CalendarIcon: () => CalendarIcon,
|
|
73
83
|
CalendarPlusIcon: () => CalendarPlusIcon,
|
|
@@ -80,6 +90,13 @@ __export(src_exports, {
|
|
|
80
90
|
ChevronUpIcon: () => ChevronUpIcon,
|
|
81
91
|
CopyIcon: () => CopyIcon,
|
|
82
92
|
CursorClickIcon: () => CursorClickIcon,
|
|
93
|
+
Dialog: () => Dialog,
|
|
94
|
+
DialogContent: () => DialogContent,
|
|
95
|
+
DialogDescription: () => DialogDescription,
|
|
96
|
+
DialogFooter: () => DialogFooter,
|
|
97
|
+
DialogHeader: () => DialogHeader,
|
|
98
|
+
DialogTitle: () => DialogTitle,
|
|
99
|
+
DialogTrigger: () => DialogTrigger,
|
|
83
100
|
DownloadIcon: () => DownloadIcon,
|
|
84
101
|
EditIcon: () => EditIcon,
|
|
85
102
|
ExpandIcon: () => ExpandIcon,
|
|
@@ -110,6 +127,9 @@ __export(src_exports, {
|
|
|
110
127
|
PlayCircleIcon: () => PlayCircleIcon,
|
|
111
128
|
PlusCircleIcon: () => PlusCircleIcon,
|
|
112
129
|
PlusIcon: () => PlusIcon,
|
|
130
|
+
Popover: () => Popover,
|
|
131
|
+
PopoverContent: () => PopoverContent,
|
|
132
|
+
PopoverTrigger: () => PopoverTrigger,
|
|
113
133
|
PuzzlePieceIcon: () => PuzzlePieceIcon,
|
|
114
134
|
QrCodeIcon: () => QrCodeIcon,
|
|
115
135
|
ReceiptCheckIcon: () => ReceiptCheckIcon,
|
|
@@ -143,14 +163,16 @@ __export(src_exports, {
|
|
|
143
163
|
VolumeMaxIcon: () => VolumeMaxIcon,
|
|
144
164
|
VolumeXIcon: () => VolumeXIcon,
|
|
145
165
|
XCircleIcon: () => XCircleIcon,
|
|
146
|
-
XCloseIcon: () => XCloseIcon
|
|
166
|
+
XCloseIcon: () => XCloseIcon,
|
|
167
|
+
buttonSizes: () => buttonSizes,
|
|
168
|
+
buttonVariants: () => buttonVariants,
|
|
169
|
+
iconButtonSizes: () => iconButtonSizes
|
|
147
170
|
});
|
|
148
171
|
module.exports = __toCommonJS(src_exports);
|
|
149
172
|
|
|
150
|
-
// src/components/
|
|
151
|
-
var
|
|
152
|
-
var
|
|
153
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
173
|
+
// src/components/AlertDialog/AlertDialog.tsx
|
|
174
|
+
var React2 = __toESM(require("react"));
|
|
175
|
+
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
|
|
154
176
|
|
|
155
177
|
// src/utils/cn.ts
|
|
156
178
|
var import_clsx = require("clsx");
|
|
@@ -160,6 +182,9 @@ function cn(...inputs) {
|
|
|
160
182
|
}
|
|
161
183
|
|
|
162
184
|
// src/components/Button/Button.tsx
|
|
185
|
+
var React = __toESM(require("react"));
|
|
186
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
187
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
163
188
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
164
189
|
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
165
190
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-40",
|
|
@@ -228,6 +253,139 @@ var Button = React.forwardRef(
|
|
|
228
253
|
);
|
|
229
254
|
Button.displayName = "Button";
|
|
230
255
|
|
|
256
|
+
// src/components/AlertDialog/AlertDialog.tsx
|
|
257
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
258
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
259
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
260
|
+
var AlertDialogPortal = (_a) => {
|
|
261
|
+
var _b = _a, {
|
|
262
|
+
className
|
|
263
|
+
} = _b, props = __objRest(_b, [
|
|
264
|
+
"className"
|
|
265
|
+
]);
|
|
266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AlertDialogPrimitive.Portal, __spreadValues({ className: cn(className) }, props));
|
|
267
|
+
};
|
|
268
|
+
AlertDialogPortal.displayName = AlertDialogPrimitive.Portal.displayName;
|
|
269
|
+
var AlertDialogOverlay = React2.forwardRef((_a, ref) => {
|
|
270
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
272
|
+
AlertDialogPrimitive.Overlay,
|
|
273
|
+
__spreadProps(__spreadValues({
|
|
274
|
+
className: cn(
|
|
275
|
+
"fixed inset-0 z-50 bg-black/25 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
276
|
+
className
|
|
277
|
+
)
|
|
278
|
+
}, props), {
|
|
279
|
+
ref
|
|
280
|
+
})
|
|
281
|
+
);
|
|
282
|
+
});
|
|
283
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
284
|
+
var AlertDialogContent = React2.forwardRef((_a, ref) => {
|
|
285
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AlertDialogPortal, { children: [
|
|
287
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AlertDialogOverlay, {}),
|
|
288
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
289
|
+
AlertDialogPrimitive.Content,
|
|
290
|
+
__spreadValues({
|
|
291
|
+
ref,
|
|
292
|
+
className: cn(
|
|
293
|
+
"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%] sm:rounded-xl md:w-full",
|
|
294
|
+
className
|
|
295
|
+
)
|
|
296
|
+
}, props)
|
|
297
|
+
)
|
|
298
|
+
] });
|
|
299
|
+
});
|
|
300
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
301
|
+
var AlertDialogHeader = (_a) => {
|
|
302
|
+
var _b = _a, {
|
|
303
|
+
className
|
|
304
|
+
} = _b, props = __objRest(_b, [
|
|
305
|
+
"className"
|
|
306
|
+
]);
|
|
307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
308
|
+
"div",
|
|
309
|
+
__spreadValues({
|
|
310
|
+
className: cn(
|
|
311
|
+
"flex flex-col space-y-5 text-center sm:text-left",
|
|
312
|
+
className
|
|
313
|
+
)
|
|
314
|
+
}, props)
|
|
315
|
+
);
|
|
316
|
+
};
|
|
317
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
318
|
+
var AlertDialogFooter = (_a) => {
|
|
319
|
+
var _b = _a, {
|
|
320
|
+
className
|
|
321
|
+
} = _b, props = __objRest(_b, [
|
|
322
|
+
"className"
|
|
323
|
+
]);
|
|
324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
325
|
+
"div",
|
|
326
|
+
__spreadValues({
|
|
327
|
+
className: cn(
|
|
328
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
329
|
+
className
|
|
330
|
+
)
|
|
331
|
+
}, props)
|
|
332
|
+
);
|
|
333
|
+
};
|
|
334
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
335
|
+
var AlertDialogTitle = React2.forwardRef((_a, ref) => {
|
|
336
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
338
|
+
AlertDialogPrimitive.Title,
|
|
339
|
+
__spreadValues({
|
|
340
|
+
ref,
|
|
341
|
+
className: cn("text-lg text-gray-1000 font-semibold", className)
|
|
342
|
+
}, props)
|
|
343
|
+
);
|
|
344
|
+
});
|
|
345
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
346
|
+
var AlertDialogDescription = React2.forwardRef((_a, ref) => {
|
|
347
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
349
|
+
AlertDialogPrimitive.Description,
|
|
350
|
+
__spreadValues({
|
|
351
|
+
ref,
|
|
352
|
+
className: cn("text-sm text-gray-700", className)
|
|
353
|
+
}, props)
|
|
354
|
+
);
|
|
355
|
+
});
|
|
356
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
357
|
+
var AlertDialogAction = React2.forwardRef((_a, ref) => {
|
|
358
|
+
var _b = _a, { className, variant = "primary" } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
360
|
+
AlertDialogPrimitive.Action,
|
|
361
|
+
__spreadValues({
|
|
362
|
+
ref,
|
|
363
|
+
className: cn(
|
|
364
|
+
buttonVariants({ variant }),
|
|
365
|
+
buttonSizes({ size: "md" }),
|
|
366
|
+
className
|
|
367
|
+
)
|
|
368
|
+
}, props)
|
|
369
|
+
);
|
|
370
|
+
});
|
|
371
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
372
|
+
var AlertDialogCancel = React2.forwardRef((_a, ref) => {
|
|
373
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
375
|
+
AlertDialogPrimitive.Cancel,
|
|
376
|
+
__spreadValues({
|
|
377
|
+
ref,
|
|
378
|
+
className: cn(
|
|
379
|
+
buttonVariants({ variant: "outline" }),
|
|
380
|
+
buttonSizes({ size: "md" }),
|
|
381
|
+
"mt-2 sm:mt-0",
|
|
382
|
+
className
|
|
383
|
+
)
|
|
384
|
+
}, props)
|
|
385
|
+
);
|
|
386
|
+
});
|
|
387
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
388
|
+
|
|
231
389
|
// src/components/Badge/Badge.tsx
|
|
232
390
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
233
391
|
|
|
@@ -257,7 +415,7 @@ var randomPickFromArray = ({
|
|
|
257
415
|
};
|
|
258
416
|
|
|
259
417
|
// src/components/Badge/Badge.tsx
|
|
260
|
-
var
|
|
418
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
261
419
|
var colors = {
|
|
262
420
|
gray: "text-gray-900",
|
|
263
421
|
green: "text-green-700",
|
|
@@ -392,7 +550,7 @@ function Badge(_a) {
|
|
|
392
550
|
array: colorsArray
|
|
393
551
|
});
|
|
394
552
|
}
|
|
395
|
-
return /* @__PURE__ */ (0,
|
|
553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
396
554
|
"div",
|
|
397
555
|
__spreadValues({
|
|
398
556
|
className: cn(badgeVariants({ variant, color }), className)
|
|
@@ -400,56 +558,8 @@ function Badge(_a) {
|
|
|
400
558
|
);
|
|
401
559
|
}
|
|
402
560
|
|
|
403
|
-
// src/components/
|
|
404
|
-
var
|
|
405
|
-
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
406
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
407
|
-
var Tabs = TabsPrimitive.Root;
|
|
408
|
-
var TabsList = React3.forwardRef((_a, ref) => {
|
|
409
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
410
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
411
|
-
TabsPrimitive.List,
|
|
412
|
-
__spreadValues({
|
|
413
|
-
ref,
|
|
414
|
-
className: cn(
|
|
415
|
-
"inline-flex items-center justify-center gap-2 rounded-lg p-1.5 bg-gray-50 text-gray-700",
|
|
416
|
-
className
|
|
417
|
-
)
|
|
418
|
-
}, props)
|
|
419
|
-
);
|
|
420
|
-
});
|
|
421
|
-
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
422
|
-
var TabsTrigger = React3.forwardRef((_a, ref) => {
|
|
423
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
424
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
425
|
-
TabsPrimitive.Trigger,
|
|
426
|
-
__spreadValues({
|
|
427
|
-
ref,
|
|
428
|
-
className: cn(
|
|
429
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-semibold ring-offset-white transition-all",
|
|
430
|
-
"hover:bg-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
431
|
-
"data-[state=active]:bg-white data-[state=active]:text-blue-700 data-[state=active]:shadow-sm",
|
|
432
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
433
|
-
className
|
|
434
|
-
)
|
|
435
|
-
}, props)
|
|
436
|
-
);
|
|
437
|
-
});
|
|
438
|
-
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
439
|
-
var TabsContent = React3.forwardRef((_a, ref) => {
|
|
440
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
441
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
442
|
-
TabsPrimitive.Content,
|
|
443
|
-
__spreadValues({
|
|
444
|
-
ref,
|
|
445
|
-
className: cn(
|
|
446
|
-
"mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
447
|
-
className
|
|
448
|
-
)
|
|
449
|
-
}, props)
|
|
450
|
-
);
|
|
451
|
-
});
|
|
452
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
561
|
+
// src/components/Calendar/Calendar.tsx
|
|
562
|
+
var import_react_day_picker = require("react-day-picker");
|
|
453
563
|
|
|
454
564
|
// src/icons/activity.tsx
|
|
455
565
|
var import_react2 = require("react");
|
|
@@ -3664,10 +3774,270 @@ var XCloseIcon = (0, import_react80.forwardRef)(
|
|
|
3664
3774
|
);
|
|
3665
3775
|
}
|
|
3666
3776
|
);
|
|
3777
|
+
|
|
3778
|
+
// src/components/Calendar/Calendar.tsx
|
|
3779
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3780
|
+
function Calendar(_a) {
|
|
3781
|
+
var _b = _a, {
|
|
3782
|
+
className,
|
|
3783
|
+
classNames,
|
|
3784
|
+
showOutsideDays = true
|
|
3785
|
+
} = _b, props = __objRest(_b, [
|
|
3786
|
+
"className",
|
|
3787
|
+
"classNames",
|
|
3788
|
+
"showOutsideDays"
|
|
3789
|
+
]);
|
|
3790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3791
|
+
import_react_day_picker.DayPicker,
|
|
3792
|
+
__spreadValues({
|
|
3793
|
+
showOutsideDays,
|
|
3794
|
+
className: cn("p-4", className),
|
|
3795
|
+
classNames: __spreadValues({
|
|
3796
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
3797
|
+
month: "space-y-4",
|
|
3798
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
3799
|
+
caption_label: "text-sm font-medium",
|
|
3800
|
+
nav: "space-x-1 flex items-center",
|
|
3801
|
+
nav_button: cn(
|
|
3802
|
+
buttonVariants({ variant: "outline" }),
|
|
3803
|
+
iconButtonSizes({ size: "xs" })
|
|
3804
|
+
),
|
|
3805
|
+
nav_button_previous: "absolute left-1",
|
|
3806
|
+
nav_button_next: "absolute right-1",
|
|
3807
|
+
table: "w-full border-collapse space-y-1",
|
|
3808
|
+
head_row: "flex",
|
|
3809
|
+
head_cell: "text-xs text-gray-700 rounded-md w-8 font-normal",
|
|
3810
|
+
row: "flex w-full mt-2",
|
|
3811
|
+
cell: "text-center text-sm text-gray-1000 p-0 relative [&:has([aria-selected])]:bg-blue-100 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
3812
|
+
day: "h-8 w-8 p-0 cursor-pointer rounded-md [&:not([aria-selected])]:hover:bg-gray-100 aria-selected:opacity-100",
|
|
3813
|
+
day_selected: "bg-blue-700 text-white hover:bg-blue-700 hover:text-white",
|
|
3814
|
+
day_outside: "text-gray-700 opacity-50",
|
|
3815
|
+
day_disabled: "text-gray-700 opacity-50",
|
|
3816
|
+
day_range_middle: "aria-selected:bg-blue-100 aria-selected:text-blue-700",
|
|
3817
|
+
day_hidden: "invisible"
|
|
3818
|
+
}, classNames),
|
|
3819
|
+
components: {
|
|
3820
|
+
IconLeft: (_a2) => {
|
|
3821
|
+
var props2 = __objRest(_a2, []);
|
|
3822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronLeftIcon, { className: "h-3 w-3" });
|
|
3823
|
+
},
|
|
3824
|
+
IconRight: (_b2) => {
|
|
3825
|
+
var props2 = __objRest(_b2, []);
|
|
3826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronRightIcon, { className: "h-3 w-3" });
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
}, props)
|
|
3830
|
+
);
|
|
3831
|
+
}
|
|
3832
|
+
Calendar.displayName = "Calendar";
|
|
3833
|
+
|
|
3834
|
+
// src/components/Dialog/Dialog.tsx
|
|
3835
|
+
var React4 = __toESM(require("react"));
|
|
3836
|
+
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
3837
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
3838
|
+
var Dialog = DialogPrimitive.Root;
|
|
3839
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
3840
|
+
var DialogPortal = (_a) => {
|
|
3841
|
+
var _b = _a, {
|
|
3842
|
+
className
|
|
3843
|
+
} = _b, props = __objRest(_b, [
|
|
3844
|
+
"className"
|
|
3845
|
+
]);
|
|
3846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DialogPrimitive.Portal, __spreadValues({ className: cn(className) }, props));
|
|
3847
|
+
};
|
|
3848
|
+
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
3849
|
+
var DialogOverlay = React4.forwardRef((_a, ref) => {
|
|
3850
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3852
|
+
DialogPrimitive.Overlay,
|
|
3853
|
+
__spreadValues({
|
|
3854
|
+
ref,
|
|
3855
|
+
className: cn(
|
|
3856
|
+
"fixed inset-0 z-50 bg-gray-1000/25 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
3857
|
+
className
|
|
3858
|
+
)
|
|
3859
|
+
}, props)
|
|
3860
|
+
);
|
|
3861
|
+
});
|
|
3862
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
3863
|
+
var DialogContent = React4.forwardRef((_a, ref) => {
|
|
3864
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
3865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(DialogPortal, { children: [
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DialogOverlay, {}),
|
|
3867
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
3868
|
+
DialogPrimitive.Content,
|
|
3869
|
+
__spreadProps(__spreadValues({
|
|
3870
|
+
ref,
|
|
3871
|
+
className: cn(
|
|
3872
|
+
"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%] sm:rounded-lg md:w-full",
|
|
3873
|
+
className
|
|
3874
|
+
)
|
|
3875
|
+
}, props), {
|
|
3876
|
+
children: [
|
|
3877
|
+
children,
|
|
3878
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
3879
|
+
DialogPrimitive.Close,
|
|
3880
|
+
{
|
|
3881
|
+
className: cn(
|
|
3882
|
+
buttonVariants({ variant: "secondary" }),
|
|
3883
|
+
iconButtonSizes({ size: "xs" }),
|
|
3884
|
+
"absolute right-6 top-6"
|
|
3885
|
+
),
|
|
3886
|
+
children: [
|
|
3887
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(XCloseIcon, { className: "h-3 w-3" }),
|
|
3888
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "sr-only", children: "Close" })
|
|
3889
|
+
]
|
|
3890
|
+
}
|
|
3891
|
+
)
|
|
3892
|
+
]
|
|
3893
|
+
})
|
|
3894
|
+
)
|
|
3895
|
+
] });
|
|
3896
|
+
});
|
|
3897
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
3898
|
+
var DialogHeader = (_a) => {
|
|
3899
|
+
var _b = _a, {
|
|
3900
|
+
className
|
|
3901
|
+
} = _b, props = __objRest(_b, [
|
|
3902
|
+
"className"
|
|
3903
|
+
]);
|
|
3904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3905
|
+
"div",
|
|
3906
|
+
__spreadValues({
|
|
3907
|
+
className: cn(
|
|
3908
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
3909
|
+
className
|
|
3910
|
+
)
|
|
3911
|
+
}, props)
|
|
3912
|
+
);
|
|
3913
|
+
};
|
|
3914
|
+
DialogHeader.displayName = "DialogHeader";
|
|
3915
|
+
var DialogFooter = (_a) => {
|
|
3916
|
+
var _b = _a, {
|
|
3917
|
+
className
|
|
3918
|
+
} = _b, props = __objRest(_b, [
|
|
3919
|
+
"className"
|
|
3920
|
+
]);
|
|
3921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3922
|
+
"div",
|
|
3923
|
+
__spreadValues({
|
|
3924
|
+
className: cn(
|
|
3925
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
3926
|
+
className
|
|
3927
|
+
)
|
|
3928
|
+
}, props)
|
|
3929
|
+
);
|
|
3930
|
+
};
|
|
3931
|
+
DialogFooter.displayName = "DialogFooter";
|
|
3932
|
+
var DialogTitle = React4.forwardRef((_a, ref) => {
|
|
3933
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3935
|
+
DialogPrimitive.Title,
|
|
3936
|
+
__spreadValues({
|
|
3937
|
+
ref,
|
|
3938
|
+
className: cn("text-lg text-gray-1000 font-semibold", className)
|
|
3939
|
+
}, props)
|
|
3940
|
+
);
|
|
3941
|
+
});
|
|
3942
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
3943
|
+
var DialogDescription = React4.forwardRef((_a, ref) => {
|
|
3944
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3946
|
+
DialogPrimitive.Description,
|
|
3947
|
+
__spreadValues({
|
|
3948
|
+
ref,
|
|
3949
|
+
className: cn("text-sm text-gray-700", className)
|
|
3950
|
+
}, props)
|
|
3951
|
+
);
|
|
3952
|
+
});
|
|
3953
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
3954
|
+
|
|
3955
|
+
// src/components/Popover/Popover.tsx
|
|
3956
|
+
var React5 = __toESM(require("react"));
|
|
3957
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
3958
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
3959
|
+
var Popover = PopoverPrimitive.Root;
|
|
3960
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3961
|
+
var PopoverContent = React5.forwardRef((_a, ref) => {
|
|
3962
|
+
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
3963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
3964
|
+
PopoverPrimitive.Content,
|
|
3965
|
+
__spreadValues({
|
|
3966
|
+
ref,
|
|
3967
|
+
align,
|
|
3968
|
+
sideOffset,
|
|
3969
|
+
className: cn(
|
|
3970
|
+
"z-50 w-72 rounded-md border bg-white p-4 text-gray-1000 shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
3971
|
+
className
|
|
3972
|
+
)
|
|
3973
|
+
}, props)
|
|
3974
|
+
) });
|
|
3975
|
+
});
|
|
3976
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
3977
|
+
|
|
3978
|
+
// src/components/Tabs/Tabs.tsx
|
|
3979
|
+
var React6 = __toESM(require("react"));
|
|
3980
|
+
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
3981
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
3982
|
+
var Tabs = TabsPrimitive.Root;
|
|
3983
|
+
var TabsList = React6.forwardRef((_a, ref) => {
|
|
3984
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3986
|
+
TabsPrimitive.List,
|
|
3987
|
+
__spreadValues({
|
|
3988
|
+
ref,
|
|
3989
|
+
className: cn(
|
|
3990
|
+
"inline-flex items-center justify-center gap-2 rounded-lg p-1.5 bg-gray-50 text-gray-700",
|
|
3991
|
+
className
|
|
3992
|
+
)
|
|
3993
|
+
}, props)
|
|
3994
|
+
);
|
|
3995
|
+
});
|
|
3996
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3997
|
+
var TabsTrigger = React6.forwardRef((_a, ref) => {
|
|
3998
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4000
|
+
TabsPrimitive.Trigger,
|
|
4001
|
+
__spreadValues({
|
|
4002
|
+
ref,
|
|
4003
|
+
className: cn(
|
|
4004
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-semibold ring-offset-white transition-all",
|
|
4005
|
+
"hover:bg-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
4006
|
+
"data-[state=active]:bg-white data-[state=active]:text-blue-700 data-[state=active]:shadow-sm",
|
|
4007
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
4008
|
+
className
|
|
4009
|
+
)
|
|
4010
|
+
}, props)
|
|
4011
|
+
);
|
|
4012
|
+
});
|
|
4013
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4014
|
+
var TabsContent = React6.forwardRef((_a, ref) => {
|
|
4015
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4017
|
+
TabsPrimitive.Content,
|
|
4018
|
+
__spreadValues({
|
|
4019
|
+
ref,
|
|
4020
|
+
className: cn(
|
|
4021
|
+
"mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
4022
|
+
className
|
|
4023
|
+
)
|
|
4024
|
+
}, props)
|
|
4025
|
+
);
|
|
4026
|
+
});
|
|
4027
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
3667
4028
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3668
4029
|
0 && (module.exports = {
|
|
3669
4030
|
ActivityIcon,
|
|
3670
4031
|
AlertCircleIcon,
|
|
4032
|
+
AlertDialog,
|
|
4033
|
+
AlertDialogAction,
|
|
4034
|
+
AlertDialogCancel,
|
|
4035
|
+
AlertDialogContent,
|
|
4036
|
+
AlertDialogDescription,
|
|
4037
|
+
AlertDialogFooter,
|
|
4038
|
+
AlertDialogHeader,
|
|
4039
|
+
AlertDialogTitle,
|
|
4040
|
+
AlertDialogTrigger,
|
|
3671
4041
|
ArrowDownIcon,
|
|
3672
4042
|
ArrowLeftIcon,
|
|
3673
4043
|
ArrowRightIcon,
|
|
@@ -3675,6 +4045,7 @@ var XCloseIcon = (0, import_react80.forwardRef)(
|
|
|
3675
4045
|
Badge,
|
|
3676
4046
|
BellIcon,
|
|
3677
4047
|
Button,
|
|
4048
|
+
Calendar,
|
|
3678
4049
|
CalendarCheckIcon,
|
|
3679
4050
|
CalendarIcon,
|
|
3680
4051
|
CalendarPlusIcon,
|
|
@@ -3687,6 +4058,13 @@ var XCloseIcon = (0, import_react80.forwardRef)(
|
|
|
3687
4058
|
ChevronUpIcon,
|
|
3688
4059
|
CopyIcon,
|
|
3689
4060
|
CursorClickIcon,
|
|
4061
|
+
Dialog,
|
|
4062
|
+
DialogContent,
|
|
4063
|
+
DialogDescription,
|
|
4064
|
+
DialogFooter,
|
|
4065
|
+
DialogHeader,
|
|
4066
|
+
DialogTitle,
|
|
4067
|
+
DialogTrigger,
|
|
3690
4068
|
DownloadIcon,
|
|
3691
4069
|
EditIcon,
|
|
3692
4070
|
ExpandIcon,
|
|
@@ -3717,6 +4095,9 @@ var XCloseIcon = (0, import_react80.forwardRef)(
|
|
|
3717
4095
|
PlayCircleIcon,
|
|
3718
4096
|
PlusCircleIcon,
|
|
3719
4097
|
PlusIcon,
|
|
4098
|
+
Popover,
|
|
4099
|
+
PopoverContent,
|
|
4100
|
+
PopoverTrigger,
|
|
3720
4101
|
PuzzlePieceIcon,
|
|
3721
4102
|
QrCodeIcon,
|
|
3722
4103
|
ReceiptCheckIcon,
|
|
@@ -3750,5 +4131,8 @@ var XCloseIcon = (0, import_react80.forwardRef)(
|
|
|
3750
4131
|
VolumeMaxIcon,
|
|
3751
4132
|
VolumeXIcon,
|
|
3752
4133
|
XCircleIcon,
|
|
3753
|
-
XCloseIcon
|
|
4134
|
+
XCloseIcon,
|
|
4135
|
+
buttonSizes,
|
|
4136
|
+
buttonVariants,
|
|
4137
|
+
iconButtonSizes
|
|
3754
4138
|
});
|