@mlw-packages/react-components 1.3.14 → 1.3.16
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.css +507 -18
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +344 -283
- package/dist/index.mjs +402 -341
- package/package.json +4 -1
package/dist/index.mjs
CHANGED
|
@@ -239,75 +239,158 @@ AvatarFallbackBase.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
239
239
|
import { add, format } from "date-fns";
|
|
240
240
|
|
|
241
241
|
// src/components/date-time-picker/calendar.tsx
|
|
242
|
-
import
|
|
242
|
+
import * as React5 from "react";
|
|
243
243
|
import { DayPicker } from "react-day-picker";
|
|
244
|
+
import { CaretLeft, CaretRight, X, Calendar } from "phosphor-react";
|
|
245
|
+
import { motion } from "framer-motion";
|
|
246
|
+
|
|
247
|
+
// src/components/ui/PopoverBase.tsx
|
|
248
|
+
import * as React4 from "react";
|
|
249
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
244
250
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
251
|
+
var PopoverBase = PopoverPrimitive.Root;
|
|
252
|
+
var PopoverTriggerBase = PopoverPrimitive.Trigger;
|
|
253
|
+
var PopoverAnchorBase = PopoverPrimitive.Anchor;
|
|
254
|
+
var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx4(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx4(
|
|
255
|
+
PopoverPrimitive.Content,
|
|
256
|
+
{
|
|
257
|
+
ref,
|
|
258
|
+
align,
|
|
259
|
+
sideOffset,
|
|
260
|
+
className: cn(
|
|
261
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground 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",
|
|
262
|
+
className
|
|
263
|
+
),
|
|
264
|
+
...props
|
|
265
|
+
}
|
|
266
|
+
) }));
|
|
267
|
+
PopoverContentBase.displayName = PopoverPrimitive.Content.displayName;
|
|
268
|
+
|
|
269
|
+
// src/components/date-time-picker/calendar.tsx
|
|
270
|
+
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
271
|
+
var variants = {
|
|
272
|
+
enter: (direction) => ({
|
|
273
|
+
opacity: 0,
|
|
274
|
+
x: direction > 0 ? 30 : -30
|
|
275
|
+
}),
|
|
276
|
+
center: {
|
|
277
|
+
opacity: 1,
|
|
278
|
+
x: 0
|
|
279
|
+
},
|
|
280
|
+
exit: (direction) => ({
|
|
281
|
+
opacity: 0,
|
|
282
|
+
x: direction > 0 ? -30 : 30
|
|
283
|
+
})
|
|
284
|
+
};
|
|
245
285
|
function CalendarBase({
|
|
246
286
|
className,
|
|
247
287
|
classNames,
|
|
248
288
|
showOutsideDays = true,
|
|
249
289
|
...props
|
|
250
290
|
}) {
|
|
251
|
-
|
|
252
|
-
|
|
291
|
+
const [month, setMonth] = React5.useState(
|
|
292
|
+
props.month || props.defaultMonth || /* @__PURE__ */ new Date()
|
|
293
|
+
);
|
|
294
|
+
const [direction, setDirection] = React5.useState(1);
|
|
295
|
+
const handleMonthChange = (newMonth) => {
|
|
296
|
+
const isNext = newMonth > month ? 1 : -1;
|
|
297
|
+
setDirection(isNext);
|
|
298
|
+
setMonth(newMonth);
|
|
299
|
+
props.onMonthChange?.(newMonth);
|
|
300
|
+
};
|
|
301
|
+
return /* @__PURE__ */ jsx5(
|
|
302
|
+
"div",
|
|
253
303
|
{
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
304
|
+
className: cn(
|
|
305
|
+
"rounded-xl border bg-background p-3 shadow-sm overflow-hidden",
|
|
306
|
+
className
|
|
307
|
+
),
|
|
308
|
+
children: /* @__PURE__ */ jsx5(
|
|
309
|
+
motion.div,
|
|
310
|
+
{
|
|
311
|
+
variants,
|
|
312
|
+
initial: "enter",
|
|
313
|
+
animate: "center",
|
|
314
|
+
exit: "exit",
|
|
315
|
+
custom: direction,
|
|
316
|
+
transition: { duration: 0.3, ease: "easeInOut" },
|
|
317
|
+
style: { position: "relative" },
|
|
318
|
+
children: /* @__PURE__ */ jsx5(
|
|
319
|
+
DayPicker,
|
|
320
|
+
{
|
|
321
|
+
showOutsideDays,
|
|
322
|
+
month,
|
|
323
|
+
onMonthChange: handleMonthChange,
|
|
324
|
+
className: "w-full",
|
|
325
|
+
classNames: {
|
|
326
|
+
months: "flex items-center flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
327
|
+
month: "space-y-4",
|
|
328
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
329
|
+
caption_label: "text-sm font-medium",
|
|
330
|
+
nav: "space-x-1 flex items-center",
|
|
331
|
+
nav_button: cn(
|
|
332
|
+
buttonVariantsBase({ variant: "outline" }),
|
|
333
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
334
|
+
),
|
|
335
|
+
nav_button_previous: "absolute left-1",
|
|
336
|
+
nav_button_next: "absolute right-1",
|
|
337
|
+
table: "w-full border-collapse space-y-1",
|
|
338
|
+
head_row: "flex",
|
|
339
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
340
|
+
row: "flex w-full mt-2",
|
|
341
|
+
cell: cn(
|
|
342
|
+
"h-9 w-9 text-center text-sm p-0 relative",
|
|
343
|
+
"[&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
344
|
+
"[&:has([aria-selected].day-range-start)]:rounded-l-md",
|
|
345
|
+
"[&:has([aria-selected].day-outside)]:bg-muted/50",
|
|
346
|
+
"[&:has([aria-selected])]:bg-muted",
|
|
347
|
+
"first:[&:has([aria-selected])]:rounded-l-md",
|
|
348
|
+
"last:[&:has([aria-selected])]:rounded-r-md",
|
|
349
|
+
"focus-within:relative focus-within:z-20"
|
|
350
|
+
),
|
|
351
|
+
day: cn(
|
|
352
|
+
buttonVariantsBase({ variant: "ghost" }),
|
|
353
|
+
"h-9 w-9 p-0 font-normal rounded-md",
|
|
354
|
+
"aria-selected:opacity-100 hover:bg-muted"
|
|
355
|
+
),
|
|
356
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary/90",
|
|
357
|
+
day_today: "bg-muted text-foreground dark:bg-muted dark:text-foreground",
|
|
358
|
+
day_outside: "day-outside text-gray-500 opacity-50 aria-selected:bg-muted/50 aria-selected:text-black",
|
|
359
|
+
day_disabled: "text-gray-500",
|
|
360
|
+
day_range_middle: "aria-selected:bg-muted aria-selected:text-foreground",
|
|
361
|
+
day_hidden: "invisible",
|
|
362
|
+
...classNames
|
|
363
|
+
},
|
|
364
|
+
components: {
|
|
365
|
+
IconLeft: () => /* @__PURE__ */ jsx5(CaretLeft, { className: "h-4 w-4" }),
|
|
366
|
+
IconRight: () => /* @__PURE__ */ jsx5(CaretRight, { className: "h-4 w-4" })
|
|
367
|
+
},
|
|
368
|
+
...props
|
|
369
|
+
}
|
|
370
|
+
)
|
|
371
|
+
},
|
|
372
|
+
month.toISOString()
|
|
373
|
+
)
|
|
291
374
|
}
|
|
292
375
|
);
|
|
293
376
|
}
|
|
294
|
-
CalendarBase.displayName = "
|
|
377
|
+
CalendarBase.displayName = "CalendarBase";
|
|
295
378
|
|
|
296
379
|
// src/components/date-time-picker/DateTimePicker.tsx
|
|
297
|
-
import { Calendar } from "phosphor-react";
|
|
380
|
+
import { Calendar as Calendar2 } from "phosphor-react";
|
|
298
381
|
import { ptBR } from "date-fns/locale";
|
|
299
|
-
import { useEffect, useState } from "react";
|
|
382
|
+
import { useEffect, useState as useState2 } from "react";
|
|
300
383
|
|
|
301
384
|
// src/components/ui/DialogBase.tsx
|
|
302
|
-
import * as
|
|
385
|
+
import * as React6 from "react";
|
|
303
386
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
304
|
-
import { X } from "phosphor-react";
|
|
305
|
-
import { jsx as
|
|
387
|
+
import { X as X2 } from "phosphor-react";
|
|
388
|
+
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
306
389
|
var DialogBase = DialogPrimitive.Root;
|
|
307
390
|
var DialogTriggerBase = DialogPrimitive.Trigger;
|
|
308
391
|
var DialogPortalBase = DialogPrimitive.Portal;
|
|
309
392
|
var DialogCloseBase = DialogPrimitive.Close;
|
|
310
|
-
var DialogOverlayBase =
|
|
393
|
+
var DialogOverlayBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
311
394
|
DialogPrimitive.Overlay,
|
|
312
395
|
{
|
|
313
396
|
ref,
|
|
@@ -319,9 +402,9 @@ var DialogOverlayBase = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
319
402
|
}
|
|
320
403
|
));
|
|
321
404
|
DialogOverlayBase.displayName = DialogPrimitive.Overlay.displayName;
|
|
322
|
-
var DialogContentBase =
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
-
/* @__PURE__ */
|
|
405
|
+
var DialogContentBase = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortalBase, { children: [
|
|
406
|
+
/* @__PURE__ */ jsx6(DialogOverlayBase, {}),
|
|
407
|
+
/* @__PURE__ */ jsxs3(
|
|
325
408
|
DialogPrimitive.Content,
|
|
326
409
|
{
|
|
327
410
|
ref,
|
|
@@ -332,9 +415,9 @@ var DialogContentBase = React4.forwardRef(({ className, children, ...props }, re
|
|
|
332
415
|
...props,
|
|
333
416
|
children: [
|
|
334
417
|
children,
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
/* @__PURE__ */
|
|
337
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ jsxs3(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
419
|
+
/* @__PURE__ */ jsx6(X2, { className: "h-4 w-4" }),
|
|
420
|
+
/* @__PURE__ */ jsx6("span", { className: "sr-only", children: "Close" })
|
|
338
421
|
] })
|
|
339
422
|
]
|
|
340
423
|
}
|
|
@@ -344,7 +427,7 @@ DialogContentBase.displayName = DialogPrimitive.Content.displayName;
|
|
|
344
427
|
var DialogHeaderBase = ({
|
|
345
428
|
className,
|
|
346
429
|
...props
|
|
347
|
-
}) => /* @__PURE__ */
|
|
430
|
+
}) => /* @__PURE__ */ jsx6(
|
|
348
431
|
"div",
|
|
349
432
|
{
|
|
350
433
|
className: cn(
|
|
@@ -358,7 +441,7 @@ DialogHeaderBase.displayName = "DialogHeader";
|
|
|
358
441
|
var DialogFooterBase = ({
|
|
359
442
|
className,
|
|
360
443
|
...props
|
|
361
|
-
}) => /* @__PURE__ */
|
|
444
|
+
}) => /* @__PURE__ */ jsx6(
|
|
362
445
|
"div",
|
|
363
446
|
{
|
|
364
447
|
className: cn(
|
|
@@ -369,7 +452,7 @@ var DialogFooterBase = ({
|
|
|
369
452
|
}
|
|
370
453
|
);
|
|
371
454
|
DialogFooterBase.displayName = "DialogFooter";
|
|
372
|
-
var DialogTitleBase =
|
|
455
|
+
var DialogTitleBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
373
456
|
DialogPrimitive.Title,
|
|
374
457
|
{
|
|
375
458
|
ref,
|
|
@@ -381,7 +464,7 @@ var DialogTitleBase = React4.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
381
464
|
}
|
|
382
465
|
));
|
|
383
466
|
DialogTitleBase.displayName = DialogPrimitive.Title.displayName;
|
|
384
|
-
var DialogDescriptionBase =
|
|
467
|
+
var DialogDescriptionBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
385
468
|
DialogPrimitive.Description,
|
|
386
469
|
{
|
|
387
470
|
ref,
|
|
@@ -392,14 +475,14 @@ var DialogDescriptionBase = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
392
475
|
DialogDescriptionBase.displayName = DialogPrimitive.Description.displayName;
|
|
393
476
|
|
|
394
477
|
// src/components/ui/LabelBase.tsx
|
|
395
|
-
import * as
|
|
478
|
+
import * as React7 from "react";
|
|
396
479
|
import { Label as RadixLabel } from "@radix-ui/react-label";
|
|
397
480
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
398
|
-
import { jsx as
|
|
399
|
-
var LabelBase =
|
|
481
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
482
|
+
var LabelBase = React7.forwardRef(
|
|
400
483
|
({ className, asChild = false, ...props }, ref) => {
|
|
401
484
|
const Comp = asChild ? Slot2 : "label";
|
|
402
|
-
return /* @__PURE__ */
|
|
485
|
+
return /* @__PURE__ */ jsx7(RadixLabel, { children: /* @__PURE__ */ jsx7(
|
|
403
486
|
Comp,
|
|
404
487
|
{
|
|
405
488
|
ref,
|
|
@@ -417,12 +500,12 @@ var LabelBase_default = LabelBase;
|
|
|
417
500
|
|
|
418
501
|
// src/components/date-time-picker/TimePicker.tsx
|
|
419
502
|
import { Clock } from "phosphor-react";
|
|
420
|
-
import * as
|
|
503
|
+
import * as React10 from "react";
|
|
421
504
|
|
|
422
505
|
// src/components/ui/InputBase.tsx
|
|
423
|
-
import * as
|
|
424
|
-
import { jsx as
|
|
425
|
-
var InputBase =
|
|
506
|
+
import * as React8 from "react";
|
|
507
|
+
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
508
|
+
var InputBase = React8.forwardRef(
|
|
426
509
|
({
|
|
427
510
|
className,
|
|
428
511
|
type = "text",
|
|
@@ -432,9 +515,9 @@ var InputBase = React6.forwardRef(
|
|
|
432
515
|
rightIcon,
|
|
433
516
|
...props
|
|
434
517
|
}, ref) => {
|
|
435
|
-
return /* @__PURE__ */
|
|
436
|
-
label && /* @__PURE__ */
|
|
437
|
-
/* @__PURE__ */
|
|
518
|
+
return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col w-full min-w-[150px]", children: [
|
|
519
|
+
label && /* @__PURE__ */ jsx8(LabelBase_default, { className: labelClassname, children: label }),
|
|
520
|
+
/* @__PURE__ */ jsxs4(
|
|
438
521
|
"div",
|
|
439
522
|
{
|
|
440
523
|
className: cn(
|
|
@@ -442,8 +525,8 @@ var InputBase = React6.forwardRef(
|
|
|
442
525
|
type !== "file" && "border"
|
|
443
526
|
),
|
|
444
527
|
children: [
|
|
445
|
-
leftIcon && /* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
528
|
+
leftIcon && /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-center px-2", children: leftIcon }),
|
|
529
|
+
/* @__PURE__ */ jsx8(
|
|
447
530
|
"input",
|
|
448
531
|
{
|
|
449
532
|
type,
|
|
@@ -455,7 +538,7 @@ var InputBase = React6.forwardRef(
|
|
|
455
538
|
...props
|
|
456
539
|
}
|
|
457
540
|
),
|
|
458
|
-
rightIcon && /* @__PURE__ */
|
|
541
|
+
rightIcon && /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-center px-2", children: rightIcon })
|
|
459
542
|
]
|
|
460
543
|
}
|
|
461
544
|
)
|
|
@@ -465,7 +548,7 @@ var InputBase = React6.forwardRef(
|
|
|
465
548
|
InputBase.displayName = "Input";
|
|
466
549
|
|
|
467
550
|
// src/components/date-time-picker/TimePickerInput.tsx
|
|
468
|
-
import
|
|
551
|
+
import React9 from "react";
|
|
469
552
|
|
|
470
553
|
// src/components/date-time-picker/time-picker-utils.ts
|
|
471
554
|
function isValidHour(value) {
|
|
@@ -607,8 +690,8 @@ function display12HourValue(hours) {
|
|
|
607
690
|
}
|
|
608
691
|
|
|
609
692
|
// src/components/date-time-picker/TimePickerInput.tsx
|
|
610
|
-
import { jsx as
|
|
611
|
-
var TimePickerInput =
|
|
693
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
694
|
+
var TimePickerInput = React9.forwardRef(
|
|
612
695
|
({
|
|
613
696
|
className,
|
|
614
697
|
type = "tel",
|
|
@@ -625,9 +708,9 @@ var TimePickerInput = React7.forwardRef(
|
|
|
625
708
|
onRightFocus,
|
|
626
709
|
...props
|
|
627
710
|
}, ref) => {
|
|
628
|
-
const [flag, setFlag] =
|
|
629
|
-
const [prevIntKey, setPrevIntKey] =
|
|
630
|
-
|
|
711
|
+
const [flag, setFlag] = React9.useState(false);
|
|
712
|
+
const [prevIntKey, setPrevIntKey] = React9.useState("0");
|
|
713
|
+
React9.useEffect(() => {
|
|
631
714
|
if (flag) {
|
|
632
715
|
const timer = setTimeout(() => {
|
|
633
716
|
setFlag(false);
|
|
@@ -635,7 +718,7 @@ var TimePickerInput = React7.forwardRef(
|
|
|
635
718
|
return () => clearTimeout(timer);
|
|
636
719
|
}
|
|
637
720
|
}, [flag]);
|
|
638
|
-
const calculatedValue =
|
|
721
|
+
const calculatedValue = React9.useMemo(() => {
|
|
639
722
|
return getDateByType(date, picker);
|
|
640
723
|
}, [date, picker]);
|
|
641
724
|
const calculateNewValue = (key) => {
|
|
@@ -666,7 +749,7 @@ var TimePickerInput = React7.forwardRef(
|
|
|
666
749
|
setDate(setDateByType(tempDate, newValue, picker, period));
|
|
667
750
|
}
|
|
668
751
|
};
|
|
669
|
-
return /* @__PURE__ */
|
|
752
|
+
return /* @__PURE__ */ jsx9(
|
|
670
753
|
InputBase,
|
|
671
754
|
{
|
|
672
755
|
ref,
|
|
@@ -695,15 +778,15 @@ var TimePickerInput = React7.forwardRef(
|
|
|
695
778
|
TimePickerInput.displayName = "TimePickerInput";
|
|
696
779
|
|
|
697
780
|
// src/components/date-time-picker/TimePicker.tsx
|
|
698
|
-
import { jsx as
|
|
781
|
+
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
699
782
|
function TimePicker({ date, setDate, hideSeconds }) {
|
|
700
|
-
const minuteRef =
|
|
701
|
-
const hourRef =
|
|
702
|
-
const secondRef =
|
|
703
|
-
return /* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
/* @__PURE__ */
|
|
706
|
-
/* @__PURE__ */
|
|
783
|
+
const minuteRef = React10.useRef(null);
|
|
784
|
+
const hourRef = React10.useRef(null);
|
|
785
|
+
const secondRef = React10.useRef(null);
|
|
786
|
+
return /* @__PURE__ */ jsxs5("div", { className: "flex items-end gap-2", children: [
|
|
787
|
+
/* @__PURE__ */ jsxs5("div", { className: "grid gap-1 text-center", children: [
|
|
788
|
+
/* @__PURE__ */ jsx10(LabelBase_default, { htmlFor: "hours", className: "text-xs", children: "Horas" }),
|
|
789
|
+
/* @__PURE__ */ jsx10(
|
|
707
790
|
TimePickerInput,
|
|
708
791
|
{
|
|
709
792
|
picker: "hours",
|
|
@@ -714,9 +797,9 @@ function TimePicker({ date, setDate, hideSeconds }) {
|
|
|
714
797
|
}
|
|
715
798
|
)
|
|
716
799
|
] }),
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ jsxs5("div", { className: "grid gap-1 text-center", children: [
|
|
801
|
+
/* @__PURE__ */ jsx10(LabelBase_default, { htmlFor: "minutes", className: "text-xs", children: "Minutos" }),
|
|
802
|
+
/* @__PURE__ */ jsx10(
|
|
720
803
|
TimePickerInput,
|
|
721
804
|
{
|
|
722
805
|
picker: "minutes",
|
|
@@ -728,9 +811,9 @@ function TimePicker({ date, setDate, hideSeconds }) {
|
|
|
728
811
|
}
|
|
729
812
|
)
|
|
730
813
|
] }),
|
|
731
|
-
!hideSeconds && /* @__PURE__ */
|
|
732
|
-
/* @__PURE__ */
|
|
733
|
-
/* @__PURE__ */
|
|
814
|
+
!hideSeconds && /* @__PURE__ */ jsxs5("div", { className: "grid gap-1 text-center", children: [
|
|
815
|
+
/* @__PURE__ */ jsx10(LabelBase_default, { htmlFor: "seconds", className: "text-xs", children: "Segundos" }),
|
|
816
|
+
/* @__PURE__ */ jsx10(
|
|
734
817
|
TimePickerInput,
|
|
735
818
|
{
|
|
736
819
|
picker: "seconds",
|
|
@@ -741,12 +824,12 @@ function TimePicker({ date, setDate, hideSeconds }) {
|
|
|
741
824
|
}
|
|
742
825
|
)
|
|
743
826
|
] }),
|
|
744
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ jsx10("div", { className: "flex h-10 items-center", children: /* @__PURE__ */ jsx10(Clock, { className: "ml-2 h-4 w-4" }) })
|
|
745
828
|
] });
|
|
746
829
|
}
|
|
747
830
|
|
|
748
831
|
// src/components/date-time-picker/DateTimePicker.tsx
|
|
749
|
-
import { Fragment, jsx as
|
|
832
|
+
import { Fragment, jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
750
833
|
function DateTimePicker({
|
|
751
834
|
label,
|
|
752
835
|
date,
|
|
@@ -757,7 +840,7 @@ function DateTimePicker({
|
|
|
757
840
|
disabled,
|
|
758
841
|
dialogTitle
|
|
759
842
|
}) {
|
|
760
|
-
const [internalDate, setInternalDate] =
|
|
843
|
+
const [internalDate, setInternalDate] = useState2(date);
|
|
761
844
|
const handleSelect = (newDay) => {
|
|
762
845
|
if (!newDay) return;
|
|
763
846
|
if (!internalDate) {
|
|
@@ -769,16 +852,16 @@ function DateTimePicker({
|
|
|
769
852
|
const newDateFull = add(internalDate, { days: Math.ceil(diffInDays) });
|
|
770
853
|
setInternalDate(newDateFull);
|
|
771
854
|
};
|
|
772
|
-
const [open, setOpen] =
|
|
855
|
+
const [open, setOpen] = useState2(false);
|
|
773
856
|
useEffect(() => {
|
|
774
857
|
if (date) {
|
|
775
858
|
setInternalDate(date);
|
|
776
859
|
}
|
|
777
860
|
}, [date, open]);
|
|
778
|
-
return /* @__PURE__ */
|
|
779
|
-
label && /* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
861
|
+
return /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
862
|
+
label && /* @__PURE__ */ jsx11(LabelBase_default, { className: "mb-[-1rem] pl-2", children: label }),
|
|
863
|
+
/* @__PURE__ */ jsxs6(DialogBase, { open, onOpenChange: setOpen, children: [
|
|
864
|
+
/* @__PURE__ */ jsx11(DialogTriggerBase, { disabled, asChild: true, children: /* @__PURE__ */ jsxs6(
|
|
782
865
|
ButtonBase,
|
|
783
866
|
{
|
|
784
867
|
variant: "default",
|
|
@@ -788,14 +871,14 @@ function DateTimePicker({
|
|
|
788
871
|
!date && "text-muted-foreground"
|
|
789
872
|
),
|
|
790
873
|
children: [
|
|
791
|
-
date ? format(date, "PPP - HH:mm", { locale: ptBR }) : /* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */
|
|
874
|
+
date ? format(date, "PPP - HH:mm", { locale: ptBR }) : /* @__PURE__ */ jsx11("span", { className: "text-zinc-400", children: "Pick a date" }),
|
|
875
|
+
/* @__PURE__ */ jsx11(Calendar2, { className: "ml-auto text-gray-500", size: 24 })
|
|
793
876
|
]
|
|
794
877
|
}
|
|
795
878
|
) }),
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ jsxs6(DialogContentBase, { children: [
|
|
880
|
+
/* @__PURE__ */ jsx11(DialogHeaderBase, { children: /* @__PURE__ */ jsx11(DialogTitleBase, { className: "text-xl font-semibold", children: dialogTitle ?? "Selecione a data" }) }),
|
|
881
|
+
/* @__PURE__ */ jsx11(
|
|
799
882
|
CalendarBase,
|
|
800
883
|
{
|
|
801
884
|
mode: "single",
|
|
@@ -807,7 +890,7 @@ function DateTimePicker({
|
|
|
807
890
|
toDate
|
|
808
891
|
}
|
|
809
892
|
),
|
|
810
|
-
/* @__PURE__ */
|
|
893
|
+
/* @__PURE__ */ jsx11("div", { className: "border-border flex justify-center border-t p-3", children: /* @__PURE__ */ jsx11(
|
|
811
894
|
TimePicker,
|
|
812
895
|
{
|
|
813
896
|
setDate: setInternalDate,
|
|
@@ -815,7 +898,7 @@ function DateTimePicker({
|
|
|
815
898
|
hideSeconds
|
|
816
899
|
}
|
|
817
900
|
) }),
|
|
818
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ jsx11(
|
|
819
902
|
ButtonBase,
|
|
820
903
|
{
|
|
821
904
|
onClick: () => {
|
|
@@ -831,11 +914,11 @@ function DateTimePicker({
|
|
|
831
914
|
}
|
|
832
915
|
|
|
833
916
|
// src/hooks/use-mobile.tsx
|
|
834
|
-
import * as
|
|
917
|
+
import * as React11 from "react";
|
|
835
918
|
var MOBILE_BREAKPOINT = 768;
|
|
836
919
|
function useIsMobile() {
|
|
837
|
-
const [isMobile, setIsMobile] =
|
|
838
|
-
|
|
920
|
+
const [isMobile, setIsMobile] = React11.useState(void 0);
|
|
921
|
+
React11.useEffect(() => {
|
|
839
922
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
840
923
|
const onChange = () => {
|
|
841
924
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -851,18 +934,18 @@ function useIsMobile() {
|
|
|
851
934
|
import { Check as Check2, Moon, Sun } from "phosphor-react";
|
|
852
935
|
|
|
853
936
|
// src/components/ui/DropDownMenuBase.tsx
|
|
854
|
-
import * as
|
|
937
|
+
import * as React12 from "react";
|
|
855
938
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
856
939
|
import { Check, CaretRight as CaretRight2, Circle } from "phosphor-react";
|
|
857
|
-
import { motion, AnimatePresence } from "framer-motion";
|
|
858
|
-
import { jsx as
|
|
940
|
+
import { motion as motion2, AnimatePresence } from "framer-motion";
|
|
941
|
+
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
859
942
|
var DropDownMenuBase = DropdownMenuPrimitive.Root;
|
|
860
943
|
var DropDownMenuTriggerBase = DropdownMenuPrimitive.Trigger;
|
|
861
944
|
var DropDownMenuGroupBase = DropdownMenuPrimitive.Group;
|
|
862
945
|
var DropDownMenuPortalBase = DropdownMenuPrimitive.Portal;
|
|
863
946
|
var DropDownMenuSubBase = DropdownMenuPrimitive.Sub;
|
|
864
947
|
var DropDownMenuRadioGroupBase = DropdownMenuPrimitive.RadioGroup;
|
|
865
|
-
var DropDownMenuSubTriggerBase =
|
|
948
|
+
var DropDownMenuSubTriggerBase = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
866
949
|
DropdownMenuPrimitive.SubTrigger,
|
|
867
950
|
{
|
|
868
951
|
ref,
|
|
@@ -874,12 +957,12 @@ var DropDownMenuSubTriggerBase = React10.forwardRef(({ className, inset, childre
|
|
|
874
957
|
...props,
|
|
875
958
|
children: [
|
|
876
959
|
children,
|
|
877
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ jsx12(CaretRight2, { className: "ml-auto" })
|
|
878
961
|
]
|
|
879
962
|
}
|
|
880
963
|
));
|
|
881
964
|
DropDownMenuSubTriggerBase.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
882
|
-
var DropDownMenuSubContentBase =
|
|
965
|
+
var DropDownMenuSubContentBase = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
883
966
|
DropdownMenuPrimitive.SubContent,
|
|
884
967
|
{
|
|
885
968
|
ref,
|
|
@@ -890,7 +973,7 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
|
|
|
890
973
|
...props
|
|
891
974
|
}
|
|
892
975
|
));
|
|
893
|
-
var DropDownMenuContentBase =
|
|
976
|
+
var DropDownMenuContentBase = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx12(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx12(
|
|
894
977
|
DropdownMenuPrimitive.Content,
|
|
895
978
|
{
|
|
896
979
|
sideOffset,
|
|
@@ -898,8 +981,8 @@ var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, .
|
|
|
898
981
|
ref,
|
|
899
982
|
className: cn("z-[9999] p-0", className),
|
|
900
983
|
...props,
|
|
901
|
-
children: /* @__PURE__ */
|
|
902
|
-
|
|
984
|
+
children: /* @__PURE__ */ jsx12(AnimatePresence, { children: /* @__PURE__ */ jsx12(
|
|
985
|
+
motion2.div,
|
|
903
986
|
{
|
|
904
987
|
initial: { opacity: 0, scale: 0.95, y: 5 },
|
|
905
988
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
@@ -915,7 +998,7 @@ var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, .
|
|
|
915
998
|
}
|
|
916
999
|
) }));
|
|
917
1000
|
DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
918
|
-
var DropDownMenuItemBase =
|
|
1001
|
+
var DropDownMenuItemBase = React12.forwardRef(({ className, inset, leftIcon, rightIcon, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
919
1002
|
DropdownMenuPrimitive.Item,
|
|
920
1003
|
{
|
|
921
1004
|
ref,
|
|
@@ -926,16 +1009,16 @@ var DropDownMenuItemBase = React10.forwardRef(({ className, inset, leftIcon, rig
|
|
|
926
1009
|
),
|
|
927
1010
|
...props,
|
|
928
1011
|
children: [
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
leftIcon && /* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-2", children: [
|
|
1013
|
+
leftIcon && /* @__PURE__ */ jsx12("span", { className: "[&>svg]:size-4", children: leftIcon }),
|
|
931
1014
|
children
|
|
932
1015
|
] }),
|
|
933
|
-
rightIcon && /* @__PURE__ */
|
|
1016
|
+
rightIcon && /* @__PURE__ */ jsx12("span", { className: "[&>svg]:size-4", children: rightIcon })
|
|
934
1017
|
]
|
|
935
1018
|
}
|
|
936
1019
|
));
|
|
937
1020
|
DropDownMenuItemBase.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
938
|
-
var DropDownMenuCheckboxItemBase =
|
|
1021
|
+
var DropDownMenuCheckboxItemBase = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
939
1022
|
DropdownMenuPrimitive.CheckboxItem,
|
|
940
1023
|
{
|
|
941
1024
|
ref,
|
|
@@ -946,13 +1029,13 @@ var DropDownMenuCheckboxItemBase = React10.forwardRef(({ className, children, ch
|
|
|
946
1029
|
checked,
|
|
947
1030
|
...props,
|
|
948
1031
|
children: [
|
|
949
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ jsx12("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx12(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx12(Check, { className: "h-4 w-4" }) }) }),
|
|
950
1033
|
children
|
|
951
1034
|
]
|
|
952
1035
|
}
|
|
953
1036
|
));
|
|
954
1037
|
DropDownMenuCheckboxItemBase.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
955
|
-
var DropDownMenuRadioItemBase =
|
|
1038
|
+
var DropDownMenuRadioItemBase = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
956
1039
|
DropdownMenuPrimitive.RadioItem,
|
|
957
1040
|
{
|
|
958
1041
|
ref,
|
|
@@ -962,13 +1045,13 @@ var DropDownMenuRadioItemBase = React10.forwardRef(({ className, children, ...pr
|
|
|
962
1045
|
),
|
|
963
1046
|
...props,
|
|
964
1047
|
children: [
|
|
965
|
-
/* @__PURE__ */
|
|
1048
|
+
/* @__PURE__ */ jsx12("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx12(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx12(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
966
1049
|
children
|
|
967
1050
|
]
|
|
968
1051
|
}
|
|
969
1052
|
));
|
|
970
1053
|
DropDownMenuRadioItemBase.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
971
|
-
var DropDownMenuLabelBase =
|
|
1054
|
+
var DropDownMenuLabelBase = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
972
1055
|
DropdownMenuPrimitive.Label,
|
|
973
1056
|
{
|
|
974
1057
|
ref,
|
|
@@ -981,7 +1064,7 @@ var DropDownMenuLabelBase = React10.forwardRef(({ className, inset, ...props },
|
|
|
981
1064
|
}
|
|
982
1065
|
));
|
|
983
1066
|
DropDownMenuLabelBase.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
984
|
-
var DropDownMenuSeparatorBase =
|
|
1067
|
+
var DropDownMenuSeparatorBase = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
985
1068
|
DropdownMenuPrimitive.Separator,
|
|
986
1069
|
{
|
|
987
1070
|
ref,
|
|
@@ -994,7 +1077,7 @@ var DropDownMenuShortcutBase = ({
|
|
|
994
1077
|
className,
|
|
995
1078
|
...props
|
|
996
1079
|
}) => {
|
|
997
|
-
return /* @__PURE__ */
|
|
1080
|
+
return /* @__PURE__ */ jsx12(
|
|
998
1081
|
"span",
|
|
999
1082
|
{
|
|
1000
1083
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -1005,8 +1088,8 @@ var DropDownMenuShortcutBase = ({
|
|
|
1005
1088
|
DropDownMenuShortcutBase.displayName = "DropDownMenuShortcutBase";
|
|
1006
1089
|
|
|
1007
1090
|
// src/components/theme-provider.tsx
|
|
1008
|
-
import { createContext, useContext, useEffect as useEffect3, useState as
|
|
1009
|
-
import { jsx as
|
|
1091
|
+
import { createContext, useContext, useEffect as useEffect3, useState as useState4 } from "react";
|
|
1092
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1010
1093
|
var initialState = {
|
|
1011
1094
|
theme: "system",
|
|
1012
1095
|
setTheme: () => null
|
|
@@ -1018,7 +1101,7 @@ function ThemeProviderBase({
|
|
|
1018
1101
|
storageKey = "vite-ui-theme",
|
|
1019
1102
|
...props
|
|
1020
1103
|
}) {
|
|
1021
|
-
const [theme, setTheme] =
|
|
1104
|
+
const [theme, setTheme] = useState4(() => defaultTheme || defaultTheme);
|
|
1022
1105
|
useEffect3(() => {
|
|
1023
1106
|
const root = window.document.documentElement;
|
|
1024
1107
|
root.classList.remove(
|
|
@@ -1046,7 +1129,7 @@ function ThemeProviderBase({
|
|
|
1046
1129
|
setTheme(theme2);
|
|
1047
1130
|
}
|
|
1048
1131
|
};
|
|
1049
|
-
return /* @__PURE__ */
|
|
1132
|
+
return /* @__PURE__ */ jsx13(ThemeProviderContext.Provider, { ...props, value, children });
|
|
1050
1133
|
}
|
|
1051
1134
|
var useTheme = () => {
|
|
1052
1135
|
const context = useContext(ThemeProviderContext);
|
|
@@ -1056,7 +1139,7 @@ var useTheme = () => {
|
|
|
1056
1139
|
};
|
|
1057
1140
|
|
|
1058
1141
|
// src/components/mode-toggle.tsx
|
|
1059
|
-
import { Fragment as Fragment2, jsx as
|
|
1142
|
+
import { Fragment as Fragment2, jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1060
1143
|
var themeLabels = {
|
|
1061
1144
|
light: "Light",
|
|
1062
1145
|
dark: "Dark",
|
|
@@ -1072,30 +1155,30 @@ function ModeToggleBase({
|
|
|
1072
1155
|
themes = ["light", "dark", "system"]
|
|
1073
1156
|
}) {
|
|
1074
1157
|
const { setTheme, theme: currentTheme } = useTheme();
|
|
1075
|
-
return /* @__PURE__ */
|
|
1076
|
-
/* @__PURE__ */
|
|
1158
|
+
return /* @__PURE__ */ jsxs8(DropDownMenuBase, { children: [
|
|
1159
|
+
/* @__PURE__ */ jsx14(DropDownMenuTriggerBase, { asChild: true, children: /* @__PURE__ */ jsxs8(
|
|
1077
1160
|
ButtonBase,
|
|
1078
1161
|
{
|
|
1079
1162
|
variant: "ghost",
|
|
1080
1163
|
size: "icon",
|
|
1081
1164
|
className: "relative overflow-hidden border-transparent",
|
|
1082
1165
|
children: [
|
|
1083
|
-
/* @__PURE__ */
|
|
1084
|
-
/* @__PURE__ */
|
|
1085
|
-
/* @__PURE__ */
|
|
1166
|
+
/* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
1167
|
+
/* @__PURE__ */ jsx14(Sun, { className: "h-[1.2rem] w-[1.2rem] transition-transform duration-300 rotate-0 scale-100" }),
|
|
1168
|
+
/* @__PURE__ */ jsx14(Moon, { className: "absolute top-0 left-0 h-[1.2rem] w-[1.2rem] transition-transform duration-300 rotate-90 scale-0" })
|
|
1086
1169
|
] }),
|
|
1087
|
-
/* @__PURE__ */
|
|
1170
|
+
/* @__PURE__ */ jsx14("span", { className: "sr-only", children: "Toggle theme" })
|
|
1088
1171
|
]
|
|
1089
1172
|
}
|
|
1090
1173
|
) }),
|
|
1091
|
-
/* @__PURE__ */
|
|
1174
|
+
/* @__PURE__ */ jsx14(DropDownMenuContentBase, { align: "end", className: "dark:border-transparent", children: themes.map((theme) => /* @__PURE__ */ jsxs8(
|
|
1092
1175
|
DropDownMenuItemBase,
|
|
1093
1176
|
{
|
|
1094
1177
|
onClick: () => setTheme(theme),
|
|
1095
1178
|
className: "flex items-center justify-between",
|
|
1096
1179
|
children: [
|
|
1097
1180
|
themeLabels[theme],
|
|
1098
|
-
currentTheme === theme && /* @__PURE__ */
|
|
1181
|
+
currentTheme === theme && /* @__PURE__ */ jsx14(Check2, { className: "h-4 w-4 opacity-100" })
|
|
1099
1182
|
]
|
|
1100
1183
|
},
|
|
1101
1184
|
theme
|
|
@@ -1107,12 +1190,12 @@ function ModeToggleBase({
|
|
|
1107
1190
|
import { useCallback, useMemo } from "react";
|
|
1108
1191
|
|
|
1109
1192
|
// src/components/ui/CommandBase.tsx
|
|
1110
|
-
import * as
|
|
1193
|
+
import * as React13 from "react";
|
|
1111
1194
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1112
1195
|
import { MagnifyingGlass } from "phosphor-react";
|
|
1113
|
-
import { motion as
|
|
1114
|
-
import { jsx as
|
|
1115
|
-
var CommandBase =
|
|
1196
|
+
import { motion as motion3, AnimatePresence as AnimatePresence2 } from "framer-motion";
|
|
1197
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1198
|
+
var CommandBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1116
1199
|
CommandPrimitive,
|
|
1117
1200
|
{
|
|
1118
1201
|
ref,
|
|
@@ -1130,8 +1213,8 @@ var dialogVariants = {
|
|
|
1130
1213
|
exit: { opacity: 0, scale: 0.95, y: -20 }
|
|
1131
1214
|
};
|
|
1132
1215
|
var CommandDialogBase = ({ children, open, ...props }) => {
|
|
1133
|
-
return /* @__PURE__ */
|
|
1134
|
-
|
|
1216
|
+
return /* @__PURE__ */ jsx15(DialogBase, { open, ...props, children: /* @__PURE__ */ jsx15(AnimatePresence2, { children: open && /* @__PURE__ */ jsx15(DialogContentBase, { asChild: true, forceMount: true, children: /* @__PURE__ */ jsx15(
|
|
1217
|
+
motion3.div,
|
|
1135
1218
|
{
|
|
1136
1219
|
initial: "hidden",
|
|
1137
1220
|
animate: "visible",
|
|
@@ -1139,14 +1222,14 @@ var CommandDialogBase = ({ children, open, ...props }) => {
|
|
|
1139
1222
|
variants: dialogVariants,
|
|
1140
1223
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
1141
1224
|
className: "overflow-hidden p-0",
|
|
1142
|
-
children: /* @__PURE__ */
|
|
1225
|
+
children: /* @__PURE__ */ jsx15(CommandBase, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
|
|
1143
1226
|
},
|
|
1144
1227
|
"command-dialog"
|
|
1145
1228
|
) }) }) });
|
|
1146
1229
|
};
|
|
1147
|
-
var CommandInputBase =
|
|
1148
|
-
/* @__PURE__ */
|
|
1149
|
-
/* @__PURE__ */
|
|
1230
|
+
var CommandInputBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs9("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1231
|
+
/* @__PURE__ */ jsx15(MagnifyingGlass, { className: "mr-2 h-4 w-4 shrink-0 text-primary" }),
|
|
1232
|
+
/* @__PURE__ */ jsx15(
|
|
1150
1233
|
CommandPrimitive.Input,
|
|
1151
1234
|
{
|
|
1152
1235
|
ref,
|
|
@@ -1159,7 +1242,7 @@ var CommandInputBase = React11.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1159
1242
|
)
|
|
1160
1243
|
] }));
|
|
1161
1244
|
CommandInputBase.displayName = CommandPrimitive.Input.displayName;
|
|
1162
|
-
var CommandListBase =
|
|
1245
|
+
var CommandListBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1163
1246
|
CommandPrimitive.List,
|
|
1164
1247
|
{
|
|
1165
1248
|
ref,
|
|
@@ -1168,9 +1251,9 @@ var CommandListBase = React11.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1168
1251
|
}
|
|
1169
1252
|
));
|
|
1170
1253
|
CommandListBase.displayName = CommandPrimitive.List.displayName;
|
|
1171
|
-
var CommandEmptyBase =
|
|
1254
|
+
var CommandEmptyBase = React13.forwardRef((props, ref) => /* @__PURE__ */ jsx15(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1172
1255
|
CommandEmptyBase.displayName = CommandPrimitive.Empty.displayName;
|
|
1173
|
-
var CommandGroupBase =
|
|
1256
|
+
var CommandGroupBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1174
1257
|
CommandPrimitive.Group,
|
|
1175
1258
|
{
|
|
1176
1259
|
ref,
|
|
@@ -1182,9 +1265,9 @@ var CommandGroupBase = React11.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1182
1265
|
}
|
|
1183
1266
|
));
|
|
1184
1267
|
CommandGroupBase.displayName = CommandPrimitive.Group.displayName;
|
|
1185
|
-
var CommandSeparatorBase =
|
|
1268
|
+
var CommandSeparatorBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(CommandPrimitive.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
1186
1269
|
CommandSeparatorBase.displayName = CommandPrimitive.Separator.displayName;
|
|
1187
|
-
var CommandItemBase =
|
|
1270
|
+
var CommandItemBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1188
1271
|
CommandPrimitive.Item,
|
|
1189
1272
|
{
|
|
1190
1273
|
ref,
|
|
@@ -1197,36 +1280,14 @@ var CommandItemBase = React11.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1197
1280
|
));
|
|
1198
1281
|
CommandItemBase.displayName = CommandPrimitive.Item.displayName;
|
|
1199
1282
|
var CommandShortcutBase = ({ className, ...props }) => {
|
|
1200
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ jsx15("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
1201
1284
|
};
|
|
1202
1285
|
CommandShortcutBase.displayName = "CommandShortcut";
|
|
1203
1286
|
|
|
1204
|
-
// src/components/ui/PopoverBase.tsx
|
|
1205
|
-
import * as React12 from "react";
|
|
1206
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1207
|
-
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1208
|
-
var PopoverBase = PopoverPrimitive.Root;
|
|
1209
|
-
var PopoverTriggerBase = PopoverPrimitive.Trigger;
|
|
1210
|
-
var PopoverAnchorBase = PopoverPrimitive.Anchor;
|
|
1211
|
-
var PopoverContentBase = React12.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx15(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx15(
|
|
1212
|
-
PopoverPrimitive.Content,
|
|
1213
|
-
{
|
|
1214
|
-
ref,
|
|
1215
|
-
align,
|
|
1216
|
-
sideOffset,
|
|
1217
|
-
className: cn(
|
|
1218
|
-
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground 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",
|
|
1219
|
-
className
|
|
1220
|
-
),
|
|
1221
|
-
...props
|
|
1222
|
-
}
|
|
1223
|
-
) }));
|
|
1224
|
-
PopoverContentBase.displayName = PopoverPrimitive.Content.displayName;
|
|
1225
|
-
|
|
1226
1287
|
// src/components/selects/ComboboxBase.tsx
|
|
1227
1288
|
import { CaretDown, Check as Check3 } from "phosphor-react";
|
|
1228
|
-
import { useState as
|
|
1229
|
-
import { jsx as jsx16, jsxs as
|
|
1289
|
+
import { useState as useState5 } from "react";
|
|
1290
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1230
1291
|
function ComboboxBase({
|
|
1231
1292
|
items,
|
|
1232
1293
|
renderSelected,
|
|
@@ -1235,14 +1296,14 @@ function ComboboxBase({
|
|
|
1235
1296
|
searchPlaceholder,
|
|
1236
1297
|
errorMessage
|
|
1237
1298
|
}) {
|
|
1238
|
-
const [open, setOpen] =
|
|
1239
|
-
return /* @__PURE__ */ jsx16("div", { className: "col-span-1 w-full", children: /* @__PURE__ */
|
|
1299
|
+
const [open, setOpen] = useState5(false);
|
|
1300
|
+
return /* @__PURE__ */ jsx16("div", { className: "col-span-1 w-full", children: /* @__PURE__ */ jsxs10(PopoverBase, { open, onOpenChange: setOpen, modal: true, children: [
|
|
1240
1301
|
/* @__PURE__ */ jsx16(
|
|
1241
1302
|
PopoverTriggerBase,
|
|
1242
1303
|
{
|
|
1243
1304
|
asChild: true,
|
|
1244
1305
|
className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]",
|
|
1245
|
-
children: /* @__PURE__ */
|
|
1306
|
+
children: /* @__PURE__ */ jsxs10(
|
|
1246
1307
|
ButtonBase,
|
|
1247
1308
|
{
|
|
1248
1309
|
variant: "outline",
|
|
@@ -1260,7 +1321,7 @@ function ComboboxBase({
|
|
|
1260
1321
|
)
|
|
1261
1322
|
}
|
|
1262
1323
|
),
|
|
1263
|
-
/* @__PURE__ */ jsx16(PopoverContentBase, { className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none", children: /* @__PURE__ */
|
|
1324
|
+
/* @__PURE__ */ jsx16(PopoverContentBase, { className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none", children: /* @__PURE__ */ jsxs10(CommandBase, { className: "dark:text-white", children: [
|
|
1264
1325
|
/* @__PURE__ */ jsx16(
|
|
1265
1326
|
CommandInputBase,
|
|
1266
1327
|
{
|
|
@@ -1268,9 +1329,9 @@ function ComboboxBase({
|
|
|
1268
1329
|
placeholder: searchPlaceholder ?? "Busque uma op\xE7\xE3o..."
|
|
1269
1330
|
}
|
|
1270
1331
|
),
|
|
1271
|
-
/* @__PURE__ */
|
|
1332
|
+
/* @__PURE__ */ jsxs10(CommandListBase, { children: [
|
|
1272
1333
|
/* @__PURE__ */ jsx16(CommandEmptyBase, { children: "Nenhum dado encontrado" }),
|
|
1273
|
-
/* @__PURE__ */ jsx16(CommandGroupBase, { children: items.map((item) => /* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ jsx16(CommandGroupBase, { children: items.map((item) => /* @__PURE__ */ jsxs10(
|
|
1274
1335
|
CommandItemBase,
|
|
1275
1336
|
{
|
|
1276
1337
|
keywords: [item.label],
|
|
@@ -1300,7 +1361,7 @@ function ComboboxBase({
|
|
|
1300
1361
|
}
|
|
1301
1362
|
|
|
1302
1363
|
// src/components/selects/Combobox.tsx
|
|
1303
|
-
import { jsx as jsx17, jsxs as
|
|
1364
|
+
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1304
1365
|
function Combobox({
|
|
1305
1366
|
items,
|
|
1306
1367
|
selected,
|
|
@@ -1325,7 +1386,7 @@ function Combobox({
|
|
|
1325
1386
|
},
|
|
1326
1387
|
[selected, onChange]
|
|
1327
1388
|
);
|
|
1328
|
-
return /* @__PURE__ */
|
|
1389
|
+
return /* @__PURE__ */ jsxs11("div", { className: cn("flex flex-col gap-1 w-full min-w-[150px]", className), children: [
|
|
1329
1390
|
label && /* @__PURE__ */ jsx17(LabelBase_default, { className: labelClassname, children: label }),
|
|
1330
1391
|
/* @__PURE__ */ jsx17(
|
|
1331
1392
|
ComboboxBase,
|
|
@@ -1342,8 +1403,8 @@ function Combobox({
|
|
|
1342
1403
|
|
|
1343
1404
|
// src/components/selects/MultiCombobox.tsx
|
|
1344
1405
|
import { useCallback as useCallback2, useMemo as useMemo2 } from "react";
|
|
1345
|
-
import { X as
|
|
1346
|
-
import { jsx as jsx18, jsxs as
|
|
1406
|
+
import { X as X3 } from "phosphor-react";
|
|
1407
|
+
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1347
1408
|
function MultiCombobox({
|
|
1348
1409
|
items,
|
|
1349
1410
|
selected,
|
|
@@ -1374,7 +1435,7 @@ function MultiCombobox({
|
|
|
1374
1435
|
if (selectedItems.length === 0) {
|
|
1375
1436
|
return /* @__PURE__ */ jsx18("span", { className: "text-gray-500", children: placeholder ?? "Selecione uma op\xE7\xE3o..." });
|
|
1376
1437
|
}
|
|
1377
|
-
const items2 = selectedItems.map((item) => /* @__PURE__ */
|
|
1438
|
+
const items2 = selectedItems.map((item) => /* @__PURE__ */ jsxs12(
|
|
1378
1439
|
"div",
|
|
1379
1440
|
{
|
|
1380
1441
|
className: "flex items-center gap-1 rounded-md border p-1",
|
|
@@ -1390,7 +1451,7 @@ function MultiCombobox({
|
|
|
1390
1451
|
handleSelection(item.value);
|
|
1391
1452
|
},
|
|
1392
1453
|
className: "cursor-pointer p-0 m-0 text-xs flex items-center justify-center hover:text-red-500 hover:scale-110 transition-all",
|
|
1393
|
-
children: /* @__PURE__ */ jsx18(
|
|
1454
|
+
children: /* @__PURE__ */ jsx18(X3, { size: 14 })
|
|
1394
1455
|
}
|
|
1395
1456
|
)
|
|
1396
1457
|
]
|
|
@@ -1399,7 +1460,7 @@ function MultiCombobox({
|
|
|
1399
1460
|
));
|
|
1400
1461
|
return /* @__PURE__ */ jsx18("div", { className: "flex w-full flex-wrap gap-2", children: items2 });
|
|
1401
1462
|
}, [handleSelection, placeholder, selectedItems]);
|
|
1402
|
-
return /* @__PURE__ */
|
|
1463
|
+
return /* @__PURE__ */ jsxs12("div", { className: cn("flex flex-col gap-1 w-full min-w-[150px]", className), children: [
|
|
1403
1464
|
label && /* @__PURE__ */ jsx18(LabelBase_default, { className: labelClassname, children: label }),
|
|
1404
1465
|
/* @__PURE__ */ jsx18(
|
|
1405
1466
|
ComboboxBase,
|
|
@@ -1415,15 +1476,15 @@ function MultiCombobox({
|
|
|
1415
1476
|
}
|
|
1416
1477
|
|
|
1417
1478
|
// src/components/ui/SelectBase.tsx
|
|
1418
|
-
import * as
|
|
1479
|
+
import * as React14 from "react";
|
|
1419
1480
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1420
1481
|
import { Check as Check4, CaretDown as CaretDown2, CaretUp } from "phosphor-react";
|
|
1421
|
-
import { motion as
|
|
1422
|
-
import { Fragment as Fragment3, jsx as jsx19, jsxs as
|
|
1482
|
+
import { motion as motion4, AnimatePresence as AnimatePresence3 } from "framer-motion";
|
|
1483
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1423
1484
|
var SelectBase = SelectPrimitive.Root;
|
|
1424
1485
|
var SelectGroupBase = SelectPrimitive.Group;
|
|
1425
1486
|
var SelectValueBase = SelectPrimitive.Value;
|
|
1426
|
-
var SelectTriggerBase =
|
|
1487
|
+
var SelectTriggerBase = React14.forwardRef(({ className, children, open, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1427
1488
|
SelectPrimitive.Trigger,
|
|
1428
1489
|
{
|
|
1429
1490
|
ref,
|
|
@@ -1435,7 +1496,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1435
1496
|
children: [
|
|
1436
1497
|
children,
|
|
1437
1498
|
/* @__PURE__ */ jsx19(
|
|
1438
|
-
|
|
1499
|
+
motion4.span,
|
|
1439
1500
|
{
|
|
1440
1501
|
animate: { rotate: open ? 180 : 0 },
|
|
1441
1502
|
transition: { duration: 0.3 },
|
|
@@ -1447,7 +1508,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1447
1508
|
}
|
|
1448
1509
|
));
|
|
1449
1510
|
SelectTriggerBase.displayName = SelectPrimitive.Trigger.displayName;
|
|
1450
|
-
var SelectScrollUpButtonBase =
|
|
1511
|
+
var SelectScrollUpButtonBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1451
1512
|
SelectPrimitive.ScrollUpButton,
|
|
1452
1513
|
{
|
|
1453
1514
|
ref,
|
|
@@ -1460,7 +1521,7 @@ var SelectScrollUpButtonBase = React13.forwardRef(({ className, ...props }, ref)
|
|
|
1460
1521
|
}
|
|
1461
1522
|
));
|
|
1462
1523
|
SelectScrollUpButtonBase.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1463
|
-
var SelectScrollDownButtonBase =
|
|
1524
|
+
var SelectScrollDownButtonBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1464
1525
|
SelectPrimitive.ScrollDownButton,
|
|
1465
1526
|
{
|
|
1466
1527
|
ref,
|
|
@@ -1473,7 +1534,7 @@ var SelectScrollDownButtonBase = React13.forwardRef(({ className, ...props }, re
|
|
|
1473
1534
|
}
|
|
1474
1535
|
));
|
|
1475
1536
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1476
|
-
var SelectContentBase =
|
|
1537
|
+
var SelectContentBase = React14.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx19(AnimatePresence3, { children: /* @__PURE__ */ jsx19(
|
|
1477
1538
|
SelectPrimitive.Content,
|
|
1478
1539
|
{
|
|
1479
1540
|
ref,
|
|
@@ -1485,13 +1546,13 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1485
1546
|
...props,
|
|
1486
1547
|
asChild: true,
|
|
1487
1548
|
children: /* @__PURE__ */ jsx19(
|
|
1488
|
-
|
|
1549
|
+
motion4.div,
|
|
1489
1550
|
{
|
|
1490
1551
|
initial: { opacity: 0, scale: 0.95 },
|
|
1491
1552
|
animate: { opacity: 1, scale: 1 },
|
|
1492
1553
|
exit: { opacity: 0, scale: 0.95 },
|
|
1493
1554
|
transition: { duration: 0.2 },
|
|
1494
|
-
children: /* @__PURE__ */
|
|
1555
|
+
children: /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
1495
1556
|
/* @__PURE__ */ jsx19(SelectScrollUpButtonBase, {}),
|
|
1496
1557
|
/* @__PURE__ */ jsx19(
|
|
1497
1558
|
SelectPrimitive.Viewport,
|
|
@@ -1510,7 +1571,7 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1510
1571
|
}
|
|
1511
1572
|
) }) }));
|
|
1512
1573
|
SelectContentBase.displayName = SelectPrimitive.Content.displayName;
|
|
1513
|
-
var SelectLabelBase =
|
|
1574
|
+
var SelectLabelBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1514
1575
|
SelectPrimitive.Label,
|
|
1515
1576
|
{
|
|
1516
1577
|
ref,
|
|
@@ -1519,7 +1580,7 @@ var SelectLabelBase = React13.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1519
1580
|
}
|
|
1520
1581
|
));
|
|
1521
1582
|
SelectLabelBase.displayName = SelectPrimitive.Label.displayName;
|
|
1522
|
-
var SelectItemBase =
|
|
1583
|
+
var SelectItemBase = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1523
1584
|
SelectPrimitive.Item,
|
|
1524
1585
|
{
|
|
1525
1586
|
ref,
|
|
@@ -1535,7 +1596,7 @@ var SelectItemBase = React13.forwardRef(({ className, children, ...props }, ref)
|
|
|
1535
1596
|
}
|
|
1536
1597
|
));
|
|
1537
1598
|
SelectItemBase.displayName = SelectPrimitive.Item.displayName;
|
|
1538
|
-
var SelectSeparatorBase =
|
|
1599
|
+
var SelectSeparatorBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1539
1600
|
SelectPrimitive.Separator,
|
|
1540
1601
|
{
|
|
1541
1602
|
ref,
|
|
@@ -1546,10 +1607,10 @@ var SelectSeparatorBase = React13.forwardRef(({ className, ...props }, ref) => /
|
|
|
1546
1607
|
SelectSeparatorBase.displayName = SelectPrimitive.Separator.displayName;
|
|
1547
1608
|
|
|
1548
1609
|
// src/components/ui/ScrollareaBase.tsx
|
|
1549
|
-
import * as
|
|
1610
|
+
import * as React15 from "react";
|
|
1550
1611
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
1551
|
-
import { jsx as jsx20, jsxs as
|
|
1552
|
-
var ScrollAreaBase =
|
|
1612
|
+
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1613
|
+
var ScrollAreaBase = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
1553
1614
|
ScrollAreaPrimitive.Root,
|
|
1554
1615
|
{
|
|
1555
1616
|
ref,
|
|
@@ -1563,7 +1624,7 @@ var ScrollAreaBase = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
1563
1624
|
}
|
|
1564
1625
|
));
|
|
1565
1626
|
ScrollAreaBase.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
1566
|
-
var ScrollBarBase =
|
|
1627
|
+
var ScrollBarBase = React15.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1567
1628
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1568
1629
|
{
|
|
1569
1630
|
ref,
|
|
@@ -1581,7 +1642,7 @@ var ScrollBarBase = React14.forwardRef(({ className, orientation = "vertical", .
|
|
|
1581
1642
|
ScrollBarBase.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
1582
1643
|
|
|
1583
1644
|
// src/components/selects/Select.tsx
|
|
1584
|
-
import { Fragment as Fragment4, jsx as jsx21, jsxs as
|
|
1645
|
+
import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1585
1646
|
function Select({
|
|
1586
1647
|
items,
|
|
1587
1648
|
groupItems,
|
|
@@ -1589,8 +1650,8 @@ function Select({
|
|
|
1589
1650
|
onChange,
|
|
1590
1651
|
errorMessage
|
|
1591
1652
|
}) {
|
|
1592
|
-
return /* @__PURE__ */
|
|
1593
|
-
/* @__PURE__ */
|
|
1653
|
+
return /* @__PURE__ */ jsxs15("div", { children: [
|
|
1654
|
+
/* @__PURE__ */ jsxs15(SelectBase, { onValueChange: onChange, children: [
|
|
1594
1655
|
/* @__PURE__ */ jsx21(
|
|
1595
1656
|
SelectTriggerBase,
|
|
1596
1657
|
{
|
|
@@ -1601,7 +1662,7 @@ function Select({
|
|
|
1601
1662
|
children: /* @__PURE__ */ jsx21(SelectValueBase, { placeholder })
|
|
1602
1663
|
}
|
|
1603
1664
|
),
|
|
1604
|
-
/* @__PURE__ */ jsx21(ScrollAreaBase, { children: /* @__PURE__ */ jsx21(SelectContentBase, { children: groupItems ? /* @__PURE__ */ jsx21(Fragment4, { children: Object.keys(groupItems).map((key) => /* @__PURE__ */
|
|
1665
|
+
/* @__PURE__ */ jsx21(ScrollAreaBase, { children: /* @__PURE__ */ jsx21(SelectContentBase, { children: groupItems ? /* @__PURE__ */ jsx21(Fragment4, { children: Object.keys(groupItems).map((key) => /* @__PURE__ */ jsxs15(SelectGroupBase, { children: [
|
|
1605
1666
|
/* @__PURE__ */ jsx21(SelectLabelBase, { children: key }),
|
|
1606
1667
|
groupItems[key].map((item) => /* @__PURE__ */ jsx21(SelectItemBase, { value: item.value, children: item.label }, item.value))
|
|
1607
1668
|
] }, key)) }) : /* @__PURE__ */ jsx21(SelectGroupBase, { children: items.map((item) => /* @__PURE__ */ jsx21(SelectItemBase, { value: item.value, children: item.label }, item.value)) }) }) })
|
|
@@ -1624,7 +1685,7 @@ function CalendarBase2({
|
|
|
1624
1685
|
DayPicker2,
|
|
1625
1686
|
{
|
|
1626
1687
|
showOutsideDays,
|
|
1627
|
-
className: cn("bg-
|
|
1688
|
+
className: cn("bg-background p-3", className),
|
|
1628
1689
|
classNames: {
|
|
1629
1690
|
months: "flex items-center flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
1630
1691
|
month: "space-y-4",
|
|
@@ -1632,7 +1693,7 @@ function CalendarBase2({
|
|
|
1632
1693
|
caption_label: "text-sm font-medium",
|
|
1633
1694
|
nav: "space-x-1 flex items-center",
|
|
1634
1695
|
nav_button: cn(
|
|
1635
|
-
|
|
1696
|
+
buttonVariantsBase({ variant: "outline" }),
|
|
1636
1697
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
1637
1698
|
),
|
|
1638
1699
|
nav_button_previous: "absolute left-1",
|
|
@@ -1643,15 +1704,15 @@ function CalendarBase2({
|
|
|
1643
1704
|
row: "flex w-full mt-2",
|
|
1644
1705
|
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-slate-100/50 [&:has([aria-selected])]:bg-slate-100 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20 dark:[&:has([aria-selected].day-outside)]:bg-slate-800/50 dark:[&:has([aria-selected])]:bg-slate-800",
|
|
1645
1706
|
day: cn(
|
|
1646
|
-
|
|
1707
|
+
buttonVariantsBase({ variant: "ghost" }),
|
|
1647
1708
|
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
1648
1709
|
),
|
|
1649
1710
|
day_range_end: "day-range-end",
|
|
1650
|
-
day_selected: "bg-purple text-slate-50 hover:bg-
|
|
1651
|
-
day_today: "bg-slate-100 text-slate-900 dark:bg-
|
|
1711
|
+
day_selected: "bg-purple text-slate-50 hover:bg-primary hover:text-slate-50 focus:bg-purple-500 focus:text-slate-50 dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-50 dark:hover:text-slate-900 dark:focus:bg-slate-50 dark:focus:text-slate-900",
|
|
1712
|
+
day_today: "bg-slate-100 text-slate-900 dark:bg-primary dark:text-slate-50",
|
|
1652
1713
|
day_outside: "day-outside text-slate-500 opacity-50 aria-selected:bg-slate-100/50 aria-selected:text-slate-500 aria-selected:opacity-30 dark:text-slate-400 dark:aria-selected:bg-slate-800/50 dark:aria-selected:text-slate-400",
|
|
1653
1714
|
day_disabled: "text-slate-500 opacity-50 dark:text-slate-400",
|
|
1654
|
-
day_range_middle: "aria-selected:bg-slate-100 aria-selected:text-slate-900 dark:aria-selected:bg-
|
|
1715
|
+
day_range_middle: "aria-selected:bg-slate-100 aria-selected:text-slate-900 dark:aria-selected:bg-primary dark:aria-selected:text-primary",
|
|
1655
1716
|
day_hidden: "invisible",
|
|
1656
1717
|
...classNames
|
|
1657
1718
|
},
|
|
@@ -1663,12 +1724,12 @@ function CalendarBase2({
|
|
|
1663
1724
|
}
|
|
1664
1725
|
);
|
|
1665
1726
|
}
|
|
1666
|
-
CalendarBase2.displayName = "
|
|
1727
|
+
CalendarBase2.displayName = "Calendar";
|
|
1667
1728
|
|
|
1668
1729
|
// src/components/ui/CardBase.tsx
|
|
1669
|
-
import * as
|
|
1730
|
+
import * as React16 from "react";
|
|
1670
1731
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1671
|
-
var CardBase =
|
|
1732
|
+
var CardBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1672
1733
|
"div",
|
|
1673
1734
|
{
|
|
1674
1735
|
ref,
|
|
@@ -1680,7 +1741,7 @@ var CardBase = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1680
1741
|
}
|
|
1681
1742
|
));
|
|
1682
1743
|
CardBase.displayName = "Card";
|
|
1683
|
-
var CardHeaderBase =
|
|
1744
|
+
var CardHeaderBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1684
1745
|
"div",
|
|
1685
1746
|
{
|
|
1686
1747
|
ref,
|
|
@@ -1689,7 +1750,7 @@ var CardHeaderBase = React15.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1689
1750
|
}
|
|
1690
1751
|
));
|
|
1691
1752
|
CardHeaderBase.displayName = "CardHeader";
|
|
1692
|
-
var CardTitleBase =
|
|
1753
|
+
var CardTitleBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1693
1754
|
"div",
|
|
1694
1755
|
{
|
|
1695
1756
|
ref,
|
|
@@ -1698,7 +1759,7 @@ var CardTitleBase = React15.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1698
1759
|
}
|
|
1699
1760
|
));
|
|
1700
1761
|
CardTitleBase.displayName = "CardTitle";
|
|
1701
|
-
var CardDescriptionBase =
|
|
1762
|
+
var CardDescriptionBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1702
1763
|
"div",
|
|
1703
1764
|
{
|
|
1704
1765
|
ref,
|
|
@@ -1707,9 +1768,9 @@ var CardDescriptionBase = React15.forwardRef(({ className, ...props }, ref) => /
|
|
|
1707
1768
|
}
|
|
1708
1769
|
));
|
|
1709
1770
|
CardDescriptionBase.displayName = "CardDescription";
|
|
1710
|
-
var CardContentBase =
|
|
1771
|
+
var CardContentBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1711
1772
|
CardContentBase.displayName = "CardContent";
|
|
1712
|
-
var CardFooterBase =
|
|
1773
|
+
var CardFooterBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1713
1774
|
"div",
|
|
1714
1775
|
{
|
|
1715
1776
|
ref,
|
|
@@ -1720,12 +1781,12 @@ var CardFooterBase = React15.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1720
1781
|
CardFooterBase.displayName = "CardFooter";
|
|
1721
1782
|
|
|
1722
1783
|
// src/components/ui/CheckBoxBase.tsx
|
|
1723
|
-
import * as
|
|
1784
|
+
import * as React17 from "react";
|
|
1724
1785
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1725
1786
|
import { Check as Check5 } from "phosphor-react";
|
|
1726
|
-
import { motion as
|
|
1787
|
+
import { motion as motion5 } from "framer-motion";
|
|
1727
1788
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1728
|
-
var CheckboxBase =
|
|
1789
|
+
var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1729
1790
|
CheckboxPrimitive.Root,
|
|
1730
1791
|
{
|
|
1731
1792
|
ref,
|
|
@@ -1735,7 +1796,7 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1735
1796
|
),
|
|
1736
1797
|
...props,
|
|
1737
1798
|
children: /* @__PURE__ */ jsx24(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ jsx24(
|
|
1738
|
-
|
|
1799
|
+
motion5.div,
|
|
1739
1800
|
{
|
|
1740
1801
|
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
1741
1802
|
animate: { scale: 1, opacity: 1, rotate: 0 },
|
|
@@ -1750,7 +1811,7 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1750
1811
|
CheckboxBase.displayName = CheckboxPrimitive.Root.displayName;
|
|
1751
1812
|
|
|
1752
1813
|
// src/components/ui/FormBase.tsx
|
|
1753
|
-
import * as
|
|
1814
|
+
import * as React18 from "react";
|
|
1754
1815
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
1755
1816
|
import {
|
|
1756
1817
|
Controller,
|
|
@@ -1759,7 +1820,7 @@ import {
|
|
|
1759
1820
|
} from "react-hook-form";
|
|
1760
1821
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1761
1822
|
var FormBase = FormProvider;
|
|
1762
|
-
var FormFieldBaseContext =
|
|
1823
|
+
var FormFieldBaseContext = React18.createContext(
|
|
1763
1824
|
{}
|
|
1764
1825
|
);
|
|
1765
1826
|
var FormFieldBase = ({
|
|
@@ -1768,8 +1829,8 @@ var FormFieldBase = ({
|
|
|
1768
1829
|
return /* @__PURE__ */ jsx25(FormFieldBaseContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx25(Controller, { ...props }) });
|
|
1769
1830
|
};
|
|
1770
1831
|
var useFormFieldBase = () => {
|
|
1771
|
-
const fieldContext =
|
|
1772
|
-
const itemContext =
|
|
1832
|
+
const fieldContext = React18.useContext(FormFieldBaseContext);
|
|
1833
|
+
const itemContext = React18.useContext(FormItemBaseContext);
|
|
1773
1834
|
const { getFieldState, formState } = useFormContext();
|
|
1774
1835
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1775
1836
|
if (!fieldContext) {
|
|
@@ -1785,15 +1846,15 @@ var useFormFieldBase = () => {
|
|
|
1785
1846
|
...fieldState
|
|
1786
1847
|
};
|
|
1787
1848
|
};
|
|
1788
|
-
var FormItemBaseContext =
|
|
1849
|
+
var FormItemBaseContext = React18.createContext(
|
|
1789
1850
|
{}
|
|
1790
1851
|
);
|
|
1791
|
-
var FormItemBase =
|
|
1792
|
-
const id =
|
|
1852
|
+
var FormItemBase = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1853
|
+
const id = React18.useId();
|
|
1793
1854
|
return /* @__PURE__ */ jsx25(FormItemBaseContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx25("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1794
1855
|
});
|
|
1795
1856
|
FormItemBase.displayName = "FormItemBase";
|
|
1796
|
-
var FormLabelBase =
|
|
1857
|
+
var FormLabelBase = React18.forwardRef(
|
|
1797
1858
|
({ className, ...props }, ref) => {
|
|
1798
1859
|
const { error, FormItemId } = useFormFieldBase();
|
|
1799
1860
|
return /* @__PURE__ */ jsx25(
|
|
@@ -1808,7 +1869,7 @@ var FormLabelBase = React17.forwardRef(
|
|
|
1808
1869
|
}
|
|
1809
1870
|
);
|
|
1810
1871
|
FormLabelBase.displayName = "FormLabelBase";
|
|
1811
|
-
var FormControlBase =
|
|
1872
|
+
var FormControlBase = React18.forwardRef(({ ...props }, ref) => {
|
|
1812
1873
|
const { error, FormItemId, FormDescriptionId, FormMessageId } = useFormFieldBase();
|
|
1813
1874
|
return /* @__PURE__ */ jsx25(
|
|
1814
1875
|
Slot3,
|
|
@@ -1822,7 +1883,7 @@ var FormControlBase = React17.forwardRef(({ ...props }, ref) => {
|
|
|
1822
1883
|
);
|
|
1823
1884
|
});
|
|
1824
1885
|
FormControlBase.displayName = "FormControlBase";
|
|
1825
|
-
var FormDescriptionBase =
|
|
1886
|
+
var FormDescriptionBase = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1826
1887
|
const { FormDescriptionId } = useFormFieldBase();
|
|
1827
1888
|
return /* @__PURE__ */ jsx25(
|
|
1828
1889
|
"p",
|
|
@@ -1835,7 +1896,7 @@ var FormDescriptionBase = React17.forwardRef(({ className, ...props }, ref) => {
|
|
|
1835
1896
|
);
|
|
1836
1897
|
});
|
|
1837
1898
|
FormDescriptionBase.displayName = "FormDescriptionBase";
|
|
1838
|
-
var FormMessageBase =
|
|
1899
|
+
var FormMessageBase = React18.forwardRef(({ className, children, ...props }, ref) => {
|
|
1839
1900
|
const { error, FormMessageId } = useFormFieldBase();
|
|
1840
1901
|
const body = error ? String(error?.message) : children;
|
|
1841
1902
|
if (!body) {
|
|
@@ -1855,13 +1916,13 @@ var FormMessageBase = React17.forwardRef(({ className, children, ...props }, ref
|
|
|
1855
1916
|
FormMessageBase.displayName = "FormMessageBase";
|
|
1856
1917
|
|
|
1857
1918
|
// src/components/ui/ProgressBase.tsx
|
|
1858
|
-
import * as
|
|
1919
|
+
import * as React19 from "react";
|
|
1859
1920
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
1860
|
-
import { jsx as jsx26, jsxs as
|
|
1861
|
-
var ProgressBase =
|
|
1862
|
-
return /* @__PURE__ */
|
|
1921
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1922
|
+
var ProgressBase = React19.forwardRef(({ className, value, label, leftIcon, rightIcon, ...props }, ref) => {
|
|
1923
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
|
|
1863
1924
|
label && /* @__PURE__ */ jsx26(LabelBase_default, { className: "py-2", children: label }),
|
|
1864
|
-
/* @__PURE__ */
|
|
1925
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
|
|
1865
1926
|
leftIcon && /* @__PURE__ */ jsx26("div", { className: "flex items-center justify-center", children: leftIcon }),
|
|
1866
1927
|
/* @__PURE__ */ jsx26(
|
|
1867
1928
|
ProgressPrimitive.Root,
|
|
@@ -1893,7 +1954,7 @@ var ProgressSegmentsBase = ({
|
|
|
1893
1954
|
value
|
|
1894
1955
|
}) => {
|
|
1895
1956
|
const filled = Math.round(value / 100 * segments);
|
|
1896
|
-
return /* @__PURE__ */
|
|
1957
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
|
|
1897
1958
|
label && /* @__PURE__ */ jsx26(LabelBase_default, { className: "py-2", children: label }),
|
|
1898
1959
|
/* @__PURE__ */ jsx26("div", { className: "flex gap-1 w-full", children: Array.from({ length: segments }).map((_, idx) => /* @__PURE__ */ jsx26(
|
|
1899
1960
|
"div",
|
|
@@ -1924,13 +1985,13 @@ var ProgressPanelsBase = ({
|
|
|
1924
1985
|
steps,
|
|
1925
1986
|
currentStep
|
|
1926
1987
|
}) => {
|
|
1927
|
-
return /* @__PURE__ */
|
|
1988
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1 w-full", children: [
|
|
1928
1989
|
label && /* @__PURE__ */ jsx26(LabelBase_default, { className: "py-2", children: label }),
|
|
1929
1990
|
/* @__PURE__ */ jsx26("div", { className: "flex w-full gap-1 rounded-lg overflow-hidden", children: steps.map((step, idx) => {
|
|
1930
1991
|
const isActive = idx === currentStep;
|
|
1931
1992
|
const isLast = idx === steps.length - 1;
|
|
1932
|
-
return /* @__PURE__ */
|
|
1933
|
-
/* @__PURE__ */
|
|
1993
|
+
return /* @__PURE__ */ jsxs16(React19.Fragment, { children: [
|
|
1994
|
+
/* @__PURE__ */ jsxs16(
|
|
1934
1995
|
"div",
|
|
1935
1996
|
{
|
|
1936
1997
|
className: cn(
|
|
@@ -1956,9 +2017,9 @@ var ProgressCirclesBase = ({
|
|
|
1956
2017
|
steps,
|
|
1957
2018
|
currentStep
|
|
1958
2019
|
}) => {
|
|
1959
|
-
return /* @__PURE__ */
|
|
2020
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
1960
2021
|
label && /* @__PURE__ */ jsx26("label", { className: "py-2 text-base font-semibold text-gray-700 dark:text-gray-300", children: label }),
|
|
1961
|
-
/* @__PURE__ */
|
|
2022
|
+
/* @__PURE__ */ jsxs16("div", { className: "relative flex items-center justify-between w-full", children: [
|
|
1962
2023
|
/* @__PURE__ */ jsx26("div", { className: "absolute top-5 left-0 w-full h-1 bg-zinc-200 dark:bg-zinc-700" }),
|
|
1963
2024
|
/* @__PURE__ */ jsx26(
|
|
1964
2025
|
"div",
|
|
@@ -1971,7 +2032,7 @@ var ProgressCirclesBase = ({
|
|
|
1971
2032
|
),
|
|
1972
2033
|
steps.map((step, idx) => {
|
|
1973
2034
|
const isActive = idx <= currentStep;
|
|
1974
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsxs16(
|
|
1975
2036
|
"div",
|
|
1976
2037
|
{
|
|
1977
2038
|
className: "relative flex flex-col items-center w-10",
|
|
@@ -1998,11 +2059,11 @@ var ProgressCirclesBase = ({
|
|
|
1998
2059
|
};
|
|
1999
2060
|
|
|
2000
2061
|
// src/components/ui/SeparatorBase.tsx
|
|
2001
|
-
import * as
|
|
2062
|
+
import * as React20 from "react";
|
|
2002
2063
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2003
|
-
import { motion as
|
|
2064
|
+
import { motion as motion6 } from "framer-motion";
|
|
2004
2065
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2005
|
-
var SeparatorBase =
|
|
2066
|
+
var SeparatorBase = React20.forwardRef(
|
|
2006
2067
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
2007
2068
|
const isHorizontal = orientation === "horizontal";
|
|
2008
2069
|
return /* @__PURE__ */ jsx27(
|
|
@@ -2014,7 +2075,7 @@ var SeparatorBase = React19.forwardRef(
|
|
|
2014
2075
|
asChild: true,
|
|
2015
2076
|
...props,
|
|
2016
2077
|
children: /* @__PURE__ */ jsx27(
|
|
2017
|
-
|
|
2078
|
+
motion6.div,
|
|
2018
2079
|
{
|
|
2019
2080
|
className: cn(
|
|
2020
2081
|
"shrink-0 bg-border",
|
|
@@ -2033,16 +2094,16 @@ var SeparatorBase = React19.forwardRef(
|
|
|
2033
2094
|
SeparatorBase.displayName = SeparatorPrimitive.Root.displayName;
|
|
2034
2095
|
|
|
2035
2096
|
// src/components/ui/SheetBase.tsx
|
|
2036
|
-
import * as
|
|
2097
|
+
import * as React21 from "react";
|
|
2037
2098
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2038
2099
|
import { cva as cva2 } from "class-variance-authority";
|
|
2039
|
-
import { X as
|
|
2040
|
-
import { jsx as jsx28, jsxs as
|
|
2100
|
+
import { X as X4 } from "phosphor-react";
|
|
2101
|
+
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2041
2102
|
var SheetBase = SheetPrimitive.Root;
|
|
2042
2103
|
var SheetTriggerBase = SheetPrimitive.Trigger;
|
|
2043
2104
|
var SheetCloseBase = SheetPrimitive.Close;
|
|
2044
2105
|
var SheetPortalBase = SheetPrimitive.Portal;
|
|
2045
|
-
var SheetOverlayBase =
|
|
2106
|
+
var SheetOverlayBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
2046
2107
|
SheetPrimitive.Overlay,
|
|
2047
2108
|
{
|
|
2048
2109
|
className: cn(
|
|
@@ -2070,17 +2131,17 @@ var sheetVariants = cva2(
|
|
|
2070
2131
|
}
|
|
2071
2132
|
}
|
|
2072
2133
|
);
|
|
2073
|
-
var SheetContentBase =
|
|
2134
|
+
var SheetContentBase = React21.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(SheetPortalBase, { children: [
|
|
2074
2135
|
/* @__PURE__ */ jsx28(SheetOverlayBase, {}),
|
|
2075
|
-
/* @__PURE__ */
|
|
2136
|
+
/* @__PURE__ */ jsxs17(
|
|
2076
2137
|
SheetPrimitive.Content,
|
|
2077
2138
|
{
|
|
2078
2139
|
ref,
|
|
2079
2140
|
className: cn(sheetVariants({ side }), className),
|
|
2080
2141
|
...props,
|
|
2081
2142
|
children: [
|
|
2082
|
-
/* @__PURE__ */
|
|
2083
|
-
/* @__PURE__ */ jsx28(
|
|
2143
|
+
/* @__PURE__ */ jsxs17(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
2144
|
+
/* @__PURE__ */ jsx28(X4, { className: "h-4 w-4" }),
|
|
2084
2145
|
/* @__PURE__ */ jsx28("span", { className: "sr-only", children: "Close" })
|
|
2085
2146
|
] }),
|
|
2086
2147
|
children
|
|
@@ -2117,7 +2178,7 @@ var SheetFooterBase = ({
|
|
|
2117
2178
|
}
|
|
2118
2179
|
);
|
|
2119
2180
|
SheetFooterBase.displayName = "SheetFooterBase";
|
|
2120
|
-
var SheetTitleBase =
|
|
2181
|
+
var SheetTitleBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
2121
2182
|
SheetPrimitive.Title,
|
|
2122
2183
|
{
|
|
2123
2184
|
ref,
|
|
@@ -2126,7 +2187,7 @@ var SheetTitleBase = React20.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2126
2187
|
}
|
|
2127
2188
|
));
|
|
2128
2189
|
SheetTitleBase.displayName = SheetPrimitive.Title.displayName;
|
|
2129
|
-
var SheetDescriptionBase =
|
|
2190
|
+
var SheetDescriptionBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
2130
2191
|
SheetPrimitive.Description,
|
|
2131
2192
|
{
|
|
2132
2193
|
ref,
|
|
@@ -2137,7 +2198,7 @@ var SheetDescriptionBase = React20.forwardRef(({ className, ...props }, ref) =>
|
|
|
2137
2198
|
SheetDescriptionBase.displayName = SheetPrimitive.Description.displayName;
|
|
2138
2199
|
|
|
2139
2200
|
// src/components/ui/SidebarBase.tsx
|
|
2140
|
-
import * as
|
|
2201
|
+
import * as React23 from "react";
|
|
2141
2202
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2142
2203
|
import { cva as cva3 } from "class-variance-authority";
|
|
2143
2204
|
|
|
@@ -2160,13 +2221,13 @@ function SkeletonBase({
|
|
|
2160
2221
|
import { SidebarSimple } from "phosphor-react";
|
|
2161
2222
|
|
|
2162
2223
|
// src/components/ui/TooltipBase.tsx
|
|
2163
|
-
import * as
|
|
2224
|
+
import * as React22 from "react";
|
|
2164
2225
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2165
2226
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2166
2227
|
var TooltipProviderBase = TooltipPrimitive.Provider;
|
|
2167
2228
|
var TooltipBase = TooltipPrimitive.Root;
|
|
2168
2229
|
var TooltipTriggerBase = TooltipPrimitive.Trigger;
|
|
2169
|
-
var TooltipContentBase =
|
|
2230
|
+
var TooltipContentBase = React22.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx30(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx30(
|
|
2170
2231
|
TooltipPrimitive.Content,
|
|
2171
2232
|
{
|
|
2172
2233
|
ref,
|
|
@@ -2181,16 +2242,16 @@ var TooltipContentBase = React21.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
2181
2242
|
TooltipContentBase.displayName = TooltipPrimitive.Content.displayName;
|
|
2182
2243
|
|
|
2183
2244
|
// src/components/ui/SidebarBase.tsx
|
|
2184
|
-
import { jsx as jsx31, jsxs as
|
|
2245
|
+
import { jsx as jsx31, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2185
2246
|
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
2186
2247
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2187
2248
|
var SIDEBAR_WIDTH = "16rem";
|
|
2188
2249
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2189
2250
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2190
2251
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2191
|
-
var SidebarContext =
|
|
2252
|
+
var SidebarContext = React23.createContext(null);
|
|
2192
2253
|
function UseSideBarBase() {
|
|
2193
|
-
const context =
|
|
2254
|
+
const context = React23.useContext(SidebarContext);
|
|
2194
2255
|
if (!context) {
|
|
2195
2256
|
throw new Error(
|
|
2196
2257
|
"UseSideBarBase must be used within a SidebarProviderBase."
|
|
@@ -2198,7 +2259,7 @@ function UseSideBarBase() {
|
|
|
2198
2259
|
}
|
|
2199
2260
|
return context;
|
|
2200
2261
|
}
|
|
2201
|
-
var SidebarProviderBase =
|
|
2262
|
+
var SidebarProviderBase = React23.forwardRef(
|
|
2202
2263
|
({
|
|
2203
2264
|
defaultOpen = true,
|
|
2204
2265
|
open: openProp,
|
|
@@ -2209,10 +2270,10 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2209
2270
|
...props
|
|
2210
2271
|
}, ref) => {
|
|
2211
2272
|
const isMobile = useIsMobile();
|
|
2212
|
-
const [openMobile, setOpenMobile] =
|
|
2213
|
-
const [_open, _setOpen] =
|
|
2273
|
+
const [openMobile, setOpenMobile] = React23.useState(false);
|
|
2274
|
+
const [_open, _setOpen] = React23.useState(defaultOpen);
|
|
2214
2275
|
const open = openProp ?? _open;
|
|
2215
|
-
const setOpen =
|
|
2276
|
+
const setOpen = React23.useCallback(
|
|
2216
2277
|
(value) => {
|
|
2217
2278
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2218
2279
|
if (setOpenProp) {
|
|
@@ -2224,10 +2285,10 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2224
2285
|
},
|
|
2225
2286
|
[setOpenProp, open]
|
|
2226
2287
|
);
|
|
2227
|
-
const toggleSidebar =
|
|
2288
|
+
const toggleSidebar = React23.useCallback(() => {
|
|
2228
2289
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2229
2290
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2230
|
-
|
|
2291
|
+
React23.useEffect(() => {
|
|
2231
2292
|
const handleKeyDown = (event) => {
|
|
2232
2293
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2233
2294
|
event.preventDefault();
|
|
@@ -2238,7 +2299,7 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2238
2299
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2239
2300
|
}, [toggleSidebar]);
|
|
2240
2301
|
const state = open ? "expanded" : "collapsed";
|
|
2241
|
-
const contextValue =
|
|
2302
|
+
const contextValue = React23.useMemo(
|
|
2242
2303
|
() => ({
|
|
2243
2304
|
state,
|
|
2244
2305
|
open,
|
|
@@ -2270,7 +2331,7 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2270
2331
|
}
|
|
2271
2332
|
);
|
|
2272
2333
|
SidebarProviderBase.displayName = "SidebarProviderBase";
|
|
2273
|
-
var SidebarBase =
|
|
2334
|
+
var SidebarBase = React23.forwardRef(
|
|
2274
2335
|
({
|
|
2275
2336
|
side = "left",
|
|
2276
2337
|
variant = "sidebar",
|
|
@@ -2309,7 +2370,7 @@ var SidebarBase = React22.forwardRef(
|
|
|
2309
2370
|
}
|
|
2310
2371
|
) });
|
|
2311
2372
|
}
|
|
2312
|
-
return /* @__PURE__ */
|
|
2373
|
+
return /* @__PURE__ */ jsxs18(
|
|
2313
2374
|
"div",
|
|
2314
2375
|
{
|
|
2315
2376
|
ref,
|
|
@@ -2357,9 +2418,9 @@ var SidebarBase = React22.forwardRef(
|
|
|
2357
2418
|
}
|
|
2358
2419
|
);
|
|
2359
2420
|
SidebarBase.displayName = "SidebarBase";
|
|
2360
|
-
var SidebarTriggerBase =
|
|
2421
|
+
var SidebarTriggerBase = React23.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
2361
2422
|
const { toggleSidebar } = UseSideBarBase();
|
|
2362
|
-
return /* @__PURE__ */ jsx31("div", { children: /* @__PURE__ */
|
|
2423
|
+
return /* @__PURE__ */ jsx31("div", { children: /* @__PURE__ */ jsxs18(
|
|
2363
2424
|
ButtonBase,
|
|
2364
2425
|
{
|
|
2365
2426
|
ref,
|
|
@@ -2380,7 +2441,7 @@ var SidebarTriggerBase = React22.forwardRef(({ className, onClick, ...props }, r
|
|
|
2380
2441
|
) });
|
|
2381
2442
|
});
|
|
2382
2443
|
SidebarTriggerBase.displayName = "SidebarTriggerBase";
|
|
2383
|
-
var SidebarRailBase =
|
|
2444
|
+
var SidebarRailBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2384
2445
|
const { toggleSidebar } = UseSideBarBase();
|
|
2385
2446
|
return /* @__PURE__ */ jsx31(
|
|
2386
2447
|
"button",
|
|
@@ -2405,7 +2466,7 @@ var SidebarRailBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2405
2466
|
);
|
|
2406
2467
|
});
|
|
2407
2468
|
SidebarRailBase.displayName = "SidebarRailBase";
|
|
2408
|
-
var SidebarInsetBase =
|
|
2469
|
+
var SidebarInsetBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2409
2470
|
return /* @__PURE__ */ jsx31(
|
|
2410
2471
|
"main",
|
|
2411
2472
|
{
|
|
@@ -2420,7 +2481,7 @@ var SidebarInsetBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2420
2481
|
);
|
|
2421
2482
|
});
|
|
2422
2483
|
SidebarInsetBase.displayName = "SidebarInsetBase";
|
|
2423
|
-
var SidebarInputBase =
|
|
2484
|
+
var SidebarInputBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2424
2485
|
return /* @__PURE__ */ jsx31(
|
|
2425
2486
|
InputBase,
|
|
2426
2487
|
{
|
|
@@ -2435,7 +2496,7 @@ var SidebarInputBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2435
2496
|
);
|
|
2436
2497
|
});
|
|
2437
2498
|
SidebarInputBase.displayName = "SidebarInputBase";
|
|
2438
|
-
var SidebarHeaderBase =
|
|
2499
|
+
var SidebarHeaderBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2439
2500
|
return /* @__PURE__ */ jsx31(
|
|
2440
2501
|
"div",
|
|
2441
2502
|
{
|
|
@@ -2447,7 +2508,7 @@ var SidebarHeaderBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2447
2508
|
);
|
|
2448
2509
|
});
|
|
2449
2510
|
SidebarHeaderBase.displayName = "SidebarHeaderBase";
|
|
2450
|
-
var SidebarFooterBase =
|
|
2511
|
+
var SidebarFooterBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2451
2512
|
return /* @__PURE__ */ jsx31(
|
|
2452
2513
|
"div",
|
|
2453
2514
|
{
|
|
@@ -2459,7 +2520,7 @@ var SidebarFooterBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2459
2520
|
);
|
|
2460
2521
|
});
|
|
2461
2522
|
SidebarFooterBase.displayName = "SidebarFooterBase";
|
|
2462
|
-
var SidebarSeparatorBase =
|
|
2523
|
+
var SidebarSeparatorBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2463
2524
|
return /* @__PURE__ */ jsx31(
|
|
2464
2525
|
SeparatorBase,
|
|
2465
2526
|
{
|
|
@@ -2471,7 +2532,7 @@ var SidebarSeparatorBase = React22.forwardRef(({ className, ...props }, ref) =>
|
|
|
2471
2532
|
);
|
|
2472
2533
|
});
|
|
2473
2534
|
SidebarSeparatorBase.displayName = "SidebarSeparatorBase";
|
|
2474
|
-
var SidebarContentBase =
|
|
2535
|
+
var SidebarContentBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2475
2536
|
return /* @__PURE__ */ jsx31(
|
|
2476
2537
|
"div",
|
|
2477
2538
|
{
|
|
@@ -2486,7 +2547,7 @@ var SidebarContentBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2486
2547
|
);
|
|
2487
2548
|
});
|
|
2488
2549
|
SidebarContentBase.displayName = "SidebarContentBase";
|
|
2489
|
-
var SidebarGroupBase =
|
|
2550
|
+
var SidebarGroupBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2490
2551
|
return /* @__PURE__ */ jsx31(
|
|
2491
2552
|
"div",
|
|
2492
2553
|
{
|
|
@@ -2498,7 +2559,7 @@ var SidebarGroupBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2498
2559
|
);
|
|
2499
2560
|
});
|
|
2500
2561
|
SidebarGroupBase.displayName = "SidebarGroupBase";
|
|
2501
|
-
var SidebarGroupLabelBase =
|
|
2562
|
+
var SidebarGroupLabelBase = React23.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
2502
2563
|
const Comp = asChild ? Slot4 : "div";
|
|
2503
2564
|
return /* @__PURE__ */ jsx31(
|
|
2504
2565
|
Comp,
|
|
@@ -2515,7 +2576,7 @@ var SidebarGroupLabelBase = React22.forwardRef(({ className, asChild = false, ..
|
|
|
2515
2576
|
);
|
|
2516
2577
|
});
|
|
2517
2578
|
SidebarGroupLabelBase.displayName = "SidebarGroupLabelBase";
|
|
2518
|
-
var SidebarGroupActionBase =
|
|
2579
|
+
var SidebarGroupActionBase = React23.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
2519
2580
|
const Comp = asChild ? Slot4 : "button";
|
|
2520
2581
|
return /* @__PURE__ */ jsx31(
|
|
2521
2582
|
Comp,
|
|
@@ -2534,7 +2595,7 @@ var SidebarGroupActionBase = React22.forwardRef(({ className, asChild = false, .
|
|
|
2534
2595
|
);
|
|
2535
2596
|
});
|
|
2536
2597
|
SidebarGroupActionBase.displayName = "SidebarGroupActionBase";
|
|
2537
|
-
var SidebarGroupContentBase =
|
|
2598
|
+
var SidebarGroupContentBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2538
2599
|
"div",
|
|
2539
2600
|
{
|
|
2540
2601
|
ref,
|
|
@@ -2544,7 +2605,7 @@ var SidebarGroupContentBase = React22.forwardRef(({ className, ...props }, ref)
|
|
|
2544
2605
|
}
|
|
2545
2606
|
));
|
|
2546
2607
|
SidebarGroupContentBase.displayName = "SidebarGroupContentBase";
|
|
2547
|
-
var SidebarMenuBase =
|
|
2608
|
+
var SidebarMenuBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2548
2609
|
"ul",
|
|
2549
2610
|
{
|
|
2550
2611
|
ref,
|
|
@@ -2554,7 +2615,7 @@ var SidebarMenuBase = React22.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2554
2615
|
}
|
|
2555
2616
|
));
|
|
2556
2617
|
SidebarMenuBase.displayName = "SidebarMenuBase";
|
|
2557
|
-
var SidebarMenuItemBase =
|
|
2618
|
+
var SidebarMenuItemBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2558
2619
|
"li",
|
|
2559
2620
|
{
|
|
2560
2621
|
ref,
|
|
@@ -2584,7 +2645,7 @@ var sidebarMenuButtonVariants = cva3(
|
|
|
2584
2645
|
}
|
|
2585
2646
|
}
|
|
2586
2647
|
);
|
|
2587
|
-
var SidebarMenuButtonBase =
|
|
2648
|
+
var SidebarMenuButtonBase = React23.forwardRef(
|
|
2588
2649
|
({
|
|
2589
2650
|
asChild = false,
|
|
2590
2651
|
isActive = false,
|
|
@@ -2615,7 +2676,7 @@ var SidebarMenuButtonBase = React22.forwardRef(
|
|
|
2615
2676
|
children: tooltip
|
|
2616
2677
|
};
|
|
2617
2678
|
}
|
|
2618
|
-
return /* @__PURE__ */
|
|
2679
|
+
return /* @__PURE__ */ jsxs18(TooltipBase, { children: [
|
|
2619
2680
|
/* @__PURE__ */ jsx31(TooltipTriggerBase, { asChild: true, children: button }),
|
|
2620
2681
|
/* @__PURE__ */ jsx31(
|
|
2621
2682
|
TooltipContentBase,
|
|
@@ -2630,7 +2691,7 @@ var SidebarMenuButtonBase = React22.forwardRef(
|
|
|
2630
2691
|
}
|
|
2631
2692
|
);
|
|
2632
2693
|
SidebarMenuButtonBase.displayName = "SidebarMenuButtonBase";
|
|
2633
|
-
var SidebarMenuActionBase =
|
|
2694
|
+
var SidebarMenuActionBase = React23.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
2634
2695
|
const Comp = asChild ? Slot4 : "button";
|
|
2635
2696
|
return /* @__PURE__ */ jsx31(
|
|
2636
2697
|
Comp,
|
|
@@ -2653,7 +2714,7 @@ var SidebarMenuActionBase = React22.forwardRef(({ className, asChild = false, sh
|
|
|
2653
2714
|
);
|
|
2654
2715
|
});
|
|
2655
2716
|
SidebarMenuActionBase.displayName = "SidebarMenuActionBase";
|
|
2656
|
-
var SidebarMenuBadgeBase =
|
|
2717
|
+
var SidebarMenuBadgeBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2657
2718
|
"div",
|
|
2658
2719
|
{
|
|
2659
2720
|
ref,
|
|
@@ -2671,11 +2732,11 @@ var SidebarMenuBadgeBase = React22.forwardRef(({ className, ...props }, ref) =>
|
|
|
2671
2732
|
}
|
|
2672
2733
|
));
|
|
2673
2734
|
SidebarMenuBadgeBase.displayName = "SidebarMenuBadgeBase";
|
|
2674
|
-
var SidebarMenuSkeletonBase =
|
|
2675
|
-
const width =
|
|
2735
|
+
var SidebarMenuSkeletonBase = React23.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
2736
|
+
const width = React23.useMemo(() => {
|
|
2676
2737
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2677
2738
|
}, []);
|
|
2678
|
-
return /* @__PURE__ */
|
|
2739
|
+
return /* @__PURE__ */ jsxs18(
|
|
2679
2740
|
"div",
|
|
2680
2741
|
{
|
|
2681
2742
|
ref,
|
|
@@ -2705,7 +2766,7 @@ var SidebarMenuSkeletonBase = React22.forwardRef(({ className, showIcon = false,
|
|
|
2705
2766
|
);
|
|
2706
2767
|
});
|
|
2707
2768
|
SidebarMenuSkeletonBase.displayName = "SidebarMenuSkeletonBase";
|
|
2708
|
-
var SidebarMenuSubBase =
|
|
2769
|
+
var SidebarMenuSubBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2709
2770
|
"ul",
|
|
2710
2771
|
{
|
|
2711
2772
|
ref,
|
|
@@ -2719,9 +2780,9 @@ var SidebarMenuSubBase = React22.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2719
2780
|
}
|
|
2720
2781
|
));
|
|
2721
2782
|
SidebarMenuSubBase.displayName = "SidebarMenuSubBase";
|
|
2722
|
-
var SidebarMenuSubItemBase =
|
|
2783
|
+
var SidebarMenuSubItemBase = React23.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx31("li", { ref, ...props }));
|
|
2723
2784
|
SidebarMenuSubItemBase.displayName = "SidebarMenuSubItemBase";
|
|
2724
|
-
var SidebarMenuSubButtonBase =
|
|
2785
|
+
var SidebarMenuSubButtonBase = React23.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
2725
2786
|
const Comp = asChild ? Slot4 : "a";
|
|
2726
2787
|
return /* @__PURE__ */ jsx31(
|
|
2727
2788
|
Comp,
|
|
@@ -2745,10 +2806,10 @@ var SidebarMenuSubButtonBase = React22.forwardRef(({ asChild = false, size = "md
|
|
|
2745
2806
|
SidebarMenuSubButtonBase.displayName = "SidebarMenuSubButtonBase";
|
|
2746
2807
|
|
|
2747
2808
|
// src/components/ui/SliderBase.tsx
|
|
2748
|
-
import * as
|
|
2809
|
+
import * as React24 from "react";
|
|
2749
2810
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
2750
|
-
import { jsx as jsx32, jsxs as
|
|
2751
|
-
var SlideBase =
|
|
2811
|
+
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2812
|
+
var SlideBase = React24.forwardRef(
|
|
2752
2813
|
({
|
|
2753
2814
|
className,
|
|
2754
2815
|
orientation = "horizontal",
|
|
@@ -2758,7 +2819,7 @@ var SlideBase = React23.forwardRef(
|
|
|
2758
2819
|
...props
|
|
2759
2820
|
}, ref) => {
|
|
2760
2821
|
const isVertical = orientation === "vertical";
|
|
2761
|
-
return /* @__PURE__ */
|
|
2822
|
+
return /* @__PURE__ */ jsxs19(
|
|
2762
2823
|
"div",
|
|
2763
2824
|
{
|
|
2764
2825
|
className: cn(
|
|
@@ -2767,7 +2828,7 @@ var SlideBase = React23.forwardRef(
|
|
|
2767
2828
|
),
|
|
2768
2829
|
children: [
|
|
2769
2830
|
label && /* @__PURE__ */ jsx32(LabelBase_default, { className: "py-2", children: label }),
|
|
2770
|
-
/* @__PURE__ */
|
|
2831
|
+
/* @__PURE__ */ jsxs19(
|
|
2771
2832
|
"div",
|
|
2772
2833
|
{
|
|
2773
2834
|
className: cn(
|
|
@@ -2776,7 +2837,7 @@ var SlideBase = React23.forwardRef(
|
|
|
2776
2837
|
),
|
|
2777
2838
|
children: [
|
|
2778
2839
|
leftIcon && /* @__PURE__ */ jsx32("div", { className: "flex items-center justify-center", children: leftIcon }),
|
|
2779
|
-
/* @__PURE__ */
|
|
2840
|
+
/* @__PURE__ */ jsxs19(
|
|
2780
2841
|
SliderPrimitive.Root,
|
|
2781
2842
|
{
|
|
2782
2843
|
ref,
|
|
@@ -2854,14 +2915,14 @@ var Toaster = ({ ...props }) => {
|
|
|
2854
2915
|
bg-white
|
|
2855
2916
|
text-neutral-800
|
|
2856
2917
|
shadow-lg rounded-md
|
|
2857
|
-
border-l-
|
|
2918
|
+
border-l-4
|
|
2858
2919
|
border-neutral-200
|
|
2859
2920
|
flex items-center gap-3
|
|
2860
2921
|
|
|
2861
|
-
data-[type=success]:border-l-green-500 data-[type=success]:bg-green-50 data-[type=success]:text-green-800
|
|
2862
|
-
data-[type=error]:border-l-red-500 data-[type=error]:bg-red-50 data-[type=error]:text-red-800
|
|
2863
|
-
data-[type=warning]:border-l-yellow-500 data-[type=warning]:bg-yellow-50 data-[type=warning]:text-yellow-800
|
|
2864
|
-
data-[type=info]:border-l-blue-500 data-[type=info]:bg-blue-50 data-[type=info]:text-blue-800
|
|
2922
|
+
data-[type=success]:border-l-green-500 data-[type=success]:bg-green-50 data-[type=success]:text-green-800 data-[type=success]:border-green-500
|
|
2923
|
+
data-[type=error]:border-l-red-500 data-[type=error]:bg-red-50 data-[type=error]:text-red-800 data-[type=error]:border-red-500
|
|
2924
|
+
data-[type=warning]:border-l-yellow-500 data-[type=warning]:bg-yellow-50 data-[type=warning]:text-yellow-800 data-[type=warning]:border-yellow-500
|
|
2925
|
+
data-[type=info]:border-l-blue-500 data-[type=info]:bg-blue-50 data-[type=info]:text-blue-800 data-[type=info]:border-blue-500
|
|
2865
2926
|
`,
|
|
2866
2927
|
description: `
|
|
2867
2928
|
text-sm
|
|
@@ -2912,10 +2973,10 @@ var toast = {
|
|
|
2912
2973
|
};
|
|
2913
2974
|
|
|
2914
2975
|
// src/components/ui/SwitchBase.tsx
|
|
2915
|
-
import * as
|
|
2976
|
+
import * as React25 from "react";
|
|
2916
2977
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
2917
2978
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2918
|
-
var SwitchBase =
|
|
2979
|
+
var SwitchBase = React25.forwardRef(({ className, ...props }, ref) => {
|
|
2919
2980
|
return /* @__PURE__ */ jsx34(
|
|
2920
2981
|
SwitchPrimitives.Root,
|
|
2921
2982
|
{
|
|
@@ -2943,9 +3004,9 @@ var SwitchBase = React24.forwardRef(({ className, ...props }, ref) => {
|
|
|
2943
3004
|
SwitchBase.displayName = SwitchPrimitives.Root.displayName;
|
|
2944
3005
|
|
|
2945
3006
|
// src/components/ui/TableBase.tsx
|
|
2946
|
-
import * as
|
|
3007
|
+
import * as React26 from "react";
|
|
2947
3008
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2948
|
-
var TableBase =
|
|
3009
|
+
var TableBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx35(
|
|
2949
3010
|
"table",
|
|
2950
3011
|
{
|
|
2951
3012
|
ref,
|
|
@@ -2954,9 +3015,9 @@ var TableBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
2954
3015
|
}
|
|
2955
3016
|
) }));
|
|
2956
3017
|
TableBase.displayName = "TableBase";
|
|
2957
|
-
var TableHeaderBase =
|
|
3018
|
+
var TableHeaderBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
2958
3019
|
TableHeaderBase.displayName = "TableHeaderBase";
|
|
2959
|
-
var TableBodyBase =
|
|
3020
|
+
var TableBodyBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2960
3021
|
"tbody",
|
|
2961
3022
|
{
|
|
2962
3023
|
ref,
|
|
@@ -2965,7 +3026,7 @@ var TableBodyBase = React25.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2965
3026
|
}
|
|
2966
3027
|
));
|
|
2967
3028
|
TableBodyBase.displayName = "TableBodyBase";
|
|
2968
|
-
var TableFooterBase =
|
|
3029
|
+
var TableFooterBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2969
3030
|
"tfoot",
|
|
2970
3031
|
{
|
|
2971
3032
|
ref,
|
|
@@ -2977,7 +3038,7 @@ var TableFooterBase = React25.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2977
3038
|
}
|
|
2978
3039
|
));
|
|
2979
3040
|
TableFooterBase.displayName = "TableFooterBase";
|
|
2980
|
-
var TableRowBase =
|
|
3041
|
+
var TableRowBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2981
3042
|
"tr",
|
|
2982
3043
|
{
|
|
2983
3044
|
ref,
|
|
@@ -2989,7 +3050,7 @@ var TableRowBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2989
3050
|
}
|
|
2990
3051
|
));
|
|
2991
3052
|
TableRowBase.displayName = "TableRowBase";
|
|
2992
|
-
var TableHeadBase =
|
|
3053
|
+
var TableHeadBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2993
3054
|
"th",
|
|
2994
3055
|
{
|
|
2995
3056
|
ref,
|
|
@@ -3001,7 +3062,7 @@ var TableHeadBase = React25.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3001
3062
|
}
|
|
3002
3063
|
));
|
|
3003
3064
|
TableHeadBase.displayName = "TableHeadBase";
|
|
3004
|
-
var TableCellBase =
|
|
3065
|
+
var TableCellBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
3005
3066
|
"td",
|
|
3006
3067
|
{
|
|
3007
3068
|
ref,
|
|
@@ -3013,7 +3074,7 @@ var TableCellBase = React25.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3013
3074
|
}
|
|
3014
3075
|
));
|
|
3015
3076
|
TableCellBase.displayName = "TableCellBase";
|
|
3016
|
-
var TableCaptionBase =
|
|
3077
|
+
var TableCaptionBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
3017
3078
|
"caption",
|
|
3018
3079
|
{
|
|
3019
3080
|
ref,
|
|
@@ -3024,11 +3085,11 @@ var TableCaptionBase = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3024
3085
|
TableCaptionBase.displayName = "TableCaptionBase";
|
|
3025
3086
|
|
|
3026
3087
|
// src/components/ui/TabsBase.tsx
|
|
3027
|
-
import * as
|
|
3088
|
+
import * as React27 from "react";
|
|
3028
3089
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3029
3090
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3030
3091
|
var TabsBase = TabsPrimitive.Root;
|
|
3031
|
-
var TabsListBase =
|
|
3092
|
+
var TabsListBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
3032
3093
|
TabsPrimitive.List,
|
|
3033
3094
|
{
|
|
3034
3095
|
ref,
|
|
@@ -3040,7 +3101,7 @@ var TabsListBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3040
3101
|
}
|
|
3041
3102
|
));
|
|
3042
3103
|
TabsListBase.displayName = TabsPrimitive.List.displayName;
|
|
3043
|
-
var TabsTriggerBase =
|
|
3104
|
+
var TabsTriggerBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
3044
3105
|
TabsPrimitive.Trigger,
|
|
3045
3106
|
{
|
|
3046
3107
|
ref,
|
|
@@ -3058,7 +3119,7 @@ var TabsTriggerBase = React26.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3058
3119
|
...props
|
|
3059
3120
|
}
|
|
3060
3121
|
));
|
|
3061
|
-
var TabsContentBase =
|
|
3122
|
+
var TabsContentBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
3062
3123
|
TabsPrimitive.Content,
|
|
3063
3124
|
{
|
|
3064
3125
|
ref,
|
|
@@ -3073,9 +3134,9 @@ var TabsContentBase = React26.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3073
3134
|
TabsContentBase.displayName = TabsPrimitive.Content.displayName;
|
|
3074
3135
|
|
|
3075
3136
|
// src/components/ui/TextAreaBase.tsx
|
|
3076
|
-
import * as
|
|
3137
|
+
import * as React28 from "react";
|
|
3077
3138
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3078
|
-
var TextAreaBase =
|
|
3139
|
+
var TextAreaBase = React28.forwardRef(({ className, ...props }, ref) => {
|
|
3079
3140
|
return /* @__PURE__ */ jsx37(
|
|
3080
3141
|
"textarea",
|
|
3081
3142
|
{
|