@yuva-devlab/ui 1.4.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -128
- package/dist/components/accordion/accordion.mdx +18 -0
- package/dist/components/alert/alert.css +2 -2
- package/dist/components/alert-dialog/alert-dialog.mdx +18 -0
- package/dist/components/aspect-ratio/aspect-ratio.mdx +22 -0
- package/dist/components/breadcrumb/breadcrumb.mdx +18 -0
- package/dist/components/calendar/calendar-nav.css +111 -0
- package/dist/components/calendar/calendar.css +183 -0
- package/dist/components/calendar/calendar.mdx +18 -0
- package/dist/components/card/card.css +4 -4
- package/dist/components/carousel/carousel.css +4 -4
- package/dist/components/carousel/carousel.mdx +18 -0
- package/dist/components/chart/chart.css +86 -0
- package/dist/components/chart/chart.mdx +18 -0
- package/dist/components/checkbox/checkbox.css +11 -0
- package/dist/components/collapsible/collapsible.mdx +18 -0
- package/dist/components/command/command.css +3 -3
- package/dist/components/command/command.mdx +18 -0
- package/dist/components/confirm-dialog/confirm-dialog.mdx +18 -0
- package/dist/components/context-menu/context-menu.mdx +18 -0
- package/dist/components/copy-button/copy-button.css +2 -0
- package/dist/components/copy-button/copy-button.mdx +18 -0
- package/dist/components/date-picker/date-picker.css +11 -5
- package/dist/components/date-picker/date-picker.mdx +18 -0
- package/dist/components/dialog/dialog.css +6 -6
- package/dist/components/drawer/drawer.mdx +18 -0
- package/dist/components/dropdown-menu/dropdown-menu.css +18 -0
- package/dist/components/dropdown-menu/dropdown-menu.mdx +18 -0
- package/dist/components/empty-state/empty-state.css +67 -0
- package/dist/components/empty-state/empty-state.mdx +18 -0
- package/dist/components/form/form.mdx +18 -0
- package/dist/components/hover-card/hover-card.mdx +18 -0
- package/dist/components/input-otp/input-otp.mdx +18 -0
- package/dist/components/label/label.mdx +18 -0
- package/dist/components/layout/layout.css +158 -0
- package/dist/components/layout/layout.mdx +30 -0
- package/dist/components/loading-state/loading-state.css +11 -0
- package/dist/components/loading-state/loading-state.mdx +18 -0
- package/dist/components/menubar/menubar.css +4 -4
- package/dist/components/menubar/menubar.mdx +18 -0
- package/dist/components/metric-card/metric-card.mdx +18 -0
- package/dist/components/navigation-menu/navigation-menu.css +2 -2
- package/dist/components/navigation-menu/navigation-menu.mdx +18 -0
- package/dist/components/pagination/pagination.css +8 -2
- package/dist/components/pagination/pagination.mdx +18 -0
- package/dist/components/panel/panel.mdx +18 -0
- package/dist/components/popover/popover.css +7 -2
- package/dist/components/popover/popover.mdx +18 -0
- package/dist/components/radio-group/radio-group.mdx +18 -0
- package/dist/components/resizable/resizable.mdx +18 -0
- package/dist/components/scroll-area/scroll-area.mdx +18 -0
- package/dist/components/searchable-select/searchable-select.css +26 -3
- package/dist/components/searchable-select/searchable-select.mdx +18 -0
- package/dist/components/secret-reveal-card/secret-reveal-card.css +9 -0
- package/dist/components/secret-reveal-card/secret-reveal-card.mdx +18 -0
- package/dist/components/select/select.css +16 -1
- package/dist/components/separator/separator.mdx +18 -0
- package/dist/components/sheet/sheet.css +5 -1
- package/dist/components/sheet/sheet.mdx +18 -0
- package/dist/components/sidebar/sidebar-menu.css +183 -0
- package/dist/components/sidebar/sidebar-submenu.css +69 -0
- package/dist/components/sidebar/sidebar.css +171 -4
- package/dist/components/sidebar/sidebar.mdx +18 -0
- package/dist/components/slider/slider.mdx +18 -0
- package/dist/components/status-chip/status-chip.mdx +18 -0
- package/dist/components/table/table.css +5 -3
- package/dist/components/tabs/tabs.css +3 -3
- package/dist/components/textarea/textarea.css +3 -3
- package/dist/components/textarea/textarea.mdx +18 -0
- package/dist/components/toggle/toggle.css +9 -9
- package/dist/components/toggle/toggle.mdx +18 -0
- package/dist/components/toggle-group/toggle-group.mdx +18 -0
- package/dist/components/tooltip/tooltip.mdx +18 -0
- package/dist/components/typography/heading.mdx +36 -0
- package/dist/components/typography/text.mdx +34 -0
- package/dist/components/typography/typography.css +98 -0
- package/dist/components.css +1366 -118
- package/dist/index.cjs +1239 -1008
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +662 -197
- package/dist/index.d.ts +662 -197
- package/dist/index.js +1220 -1011
- package/dist/index.js.map +1 -1
- package/dist/preset.css +2 -4
- package/dist/styles/components.css +1366 -118
- package/dist/styles/preset.css +2 -4
- package/dist/styles/styles.css +7 -4
- package/dist/styles/utilities.css +137 -0
- package/dist/styles.css +7 -4
- package/dist/utilities.css +137 -0
- package/package.json +22 -4
package/dist/index.js
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
// src/lib/utils.ts
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
function cx(...inputs) {
|
|
6
|
+
return clsx(inputs);
|
|
7
|
+
}
|
|
6
8
|
function cn(...inputs) {
|
|
7
|
-
return
|
|
9
|
+
return clsx(inputs);
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
// src/theme-provider.tsx
|
|
@@ -461,130 +463,83 @@ function Calendar({
|
|
|
461
463
|
DayPicker,
|
|
462
464
|
{
|
|
463
465
|
showOutsideDays,
|
|
464
|
-
className: cn(
|
|
465
|
-
"group/calendar p-3 [--cell-size:2rem] in-data-[slot=card-content]:bg-transparent",
|
|
466
|
-
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
467
|
-
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
468
|
-
className
|
|
469
|
-
),
|
|
466
|
+
className: cn("dl-calendar", className),
|
|
470
467
|
captionLayout,
|
|
471
468
|
formatters: {
|
|
472
469
|
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
473
470
|
...formatters
|
|
474
471
|
},
|
|
475
472
|
classNames: {
|
|
476
|
-
root: cn("
|
|
477
|
-
months: cn(
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
),
|
|
481
|
-
month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
|
|
482
|
-
nav: cn(
|
|
483
|
-
"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
|
|
484
|
-
defaultClassNames.nav
|
|
485
|
-
),
|
|
473
|
+
root: cn("dl-calendar", defaultClassNames.root),
|
|
474
|
+
months: cn("dl-calendar__months", defaultClassNames.months),
|
|
475
|
+
month: cn("dl-calendar__month", defaultClassNames.month),
|
|
476
|
+
nav: cn("dl-calendar__nav", defaultClassNames.nav),
|
|
486
477
|
button_previous: cn(
|
|
487
|
-
buttonVariants({ variant: buttonVariant }),
|
|
488
|
-
"
|
|
478
|
+
buttonVariants({ variant: buttonVariant, size: "icon" }),
|
|
479
|
+
"dl-calendar__nav-button",
|
|
489
480
|
defaultClassNames.button_previous
|
|
490
481
|
),
|
|
491
482
|
button_next: cn(
|
|
492
|
-
buttonVariants({ variant: buttonVariant }),
|
|
493
|
-
"
|
|
483
|
+
buttonVariants({ variant: buttonVariant, size: "icon" }),
|
|
484
|
+
"dl-calendar__nav-button",
|
|
494
485
|
defaultClassNames.button_next
|
|
495
486
|
),
|
|
496
487
|
month_caption: cn(
|
|
497
|
-
"
|
|
488
|
+
"dl-calendar__month-caption",
|
|
498
489
|
defaultClassNames.month_caption
|
|
499
490
|
),
|
|
500
|
-
dropdowns: cn(
|
|
501
|
-
"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",
|
|
502
|
-
defaultClassNames.dropdowns
|
|
503
|
-
),
|
|
491
|
+
dropdowns: cn("dl-calendar__dropdowns", defaultClassNames.dropdowns),
|
|
504
492
|
dropdown_root: cn(
|
|
505
|
-
"
|
|
493
|
+
"dl-calendar__dropdown-root",
|
|
506
494
|
defaultClassNames.dropdown_root
|
|
507
495
|
),
|
|
508
|
-
dropdown: cn(
|
|
509
|
-
"bg-popover absolute inset-0 opacity-0",
|
|
510
|
-
defaultClassNames.dropdown
|
|
511
|
-
),
|
|
496
|
+
dropdown: cn("dl-calendar__dropdown", defaultClassNames.dropdown),
|
|
512
497
|
caption_label: cn(
|
|
513
|
-
"
|
|
514
|
-
captionLayout
|
|
498
|
+
"dl-calendar__caption-label",
|
|
499
|
+
captionLayout !== "label" && "dl-calendar__caption-label--interactive",
|
|
515
500
|
defaultClassNames.caption_label
|
|
516
501
|
),
|
|
517
|
-
table: "
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
defaultClassNames.week_number
|
|
531
|
-
),
|
|
532
|
-
day: cn(
|
|
533
|
-
"group/day relative aspect-square select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md size-full",
|
|
534
|
-
defaultClassNames.day
|
|
535
|
-
),
|
|
536
|
-
range_start: cn(
|
|
537
|
-
"bg-accent rounded-l-md",
|
|
538
|
-
defaultClassNames.range_start
|
|
539
|
-
),
|
|
540
|
-
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
541
|
-
range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
|
|
542
|
-
today: cn(
|
|
543
|
-
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
544
|
-
defaultClassNames.today
|
|
545
|
-
),
|
|
546
|
-
outside: cn(
|
|
547
|
-
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
548
|
-
defaultClassNames.outside
|
|
549
|
-
),
|
|
550
|
-
disabled: cn(
|
|
551
|
-
"text-muted-foreground opacity-50",
|
|
552
|
-
defaultClassNames.disabled
|
|
553
|
-
),
|
|
554
|
-
hidden: cn("invisible", defaultClassNames.hidden),
|
|
502
|
+
table: cn("dl-calendar__table", defaultClassNames.month_grid),
|
|
503
|
+
month_grid: cn("dl-calendar__table", defaultClassNames.month_grid),
|
|
504
|
+
weekdays: defaultClassNames.weekdays,
|
|
505
|
+
weekday: defaultClassNames.weekday,
|
|
506
|
+
week: defaultClassNames.week,
|
|
507
|
+
day: defaultClassNames.day,
|
|
508
|
+
range_start: defaultClassNames.range_start,
|
|
509
|
+
range_middle: defaultClassNames.range_middle,
|
|
510
|
+
range_end: defaultClassNames.range_end,
|
|
511
|
+
today: defaultClassNames.today,
|
|
512
|
+
outside: defaultClassNames.outside,
|
|
513
|
+
disabled: defaultClassNames.disabled,
|
|
514
|
+
hidden: defaultClassNames.hidden,
|
|
555
515
|
...classNames
|
|
556
516
|
},
|
|
557
517
|
components: {
|
|
558
|
-
Root: ({ className:
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
518
|
+
Root: ({ className: rootClassName, rootRef, ...rootProps }) => /* @__PURE__ */ jsx9(
|
|
519
|
+
"div",
|
|
520
|
+
{
|
|
521
|
+
"data-slot": "calendar",
|
|
522
|
+
ref: rootRef,
|
|
523
|
+
className: cn("dl-calendar", rootClassName),
|
|
524
|
+
...rootProps
|
|
525
|
+
}
|
|
526
|
+
),
|
|
527
|
+
Chevron: ({
|
|
528
|
+
className: chevronClassName,
|
|
529
|
+
orientation,
|
|
530
|
+
...chevronProps
|
|
531
|
+
}) => {
|
|
532
|
+
const chevronClass = cn("dl-calendar__chevron", chevronClassName);
|
|
570
533
|
if (orientation === "left") {
|
|
571
|
-
return /* @__PURE__ */ jsx9(ChevronLeftIcon, { className:
|
|
534
|
+
return /* @__PURE__ */ jsx9(ChevronLeftIcon, { className: chevronClass, ...chevronProps });
|
|
572
535
|
}
|
|
573
536
|
if (orientation === "right") {
|
|
574
|
-
return /* @__PURE__ */ jsx9(
|
|
575
|
-
ChevronRightIcon,
|
|
576
|
-
{
|
|
577
|
-
className: cn("size-4", className2),
|
|
578
|
-
...props2
|
|
579
|
-
}
|
|
580
|
-
);
|
|
537
|
+
return /* @__PURE__ */ jsx9(ChevronRightIcon, { className: chevronClass, ...chevronProps });
|
|
581
538
|
}
|
|
582
|
-
return /* @__PURE__ */ jsx9(ChevronDownIcon, { className:
|
|
539
|
+
return /* @__PURE__ */ jsx9(ChevronDownIcon, { className: chevronClass, ...chevronProps });
|
|
583
540
|
},
|
|
584
541
|
DayButton: CalendarDayButton,
|
|
585
|
-
WeekNumber: ({ children, ...
|
|
586
|
-
return /* @__PURE__ */ jsx9("td", { ...props2, children: /* @__PURE__ */ jsx9("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
587
|
-
},
|
|
542
|
+
WeekNumber: ({ children, ...weekProps }) => /* @__PURE__ */ jsx9("td", { ...weekProps, children: /* @__PURE__ */ jsx9("div", { className: "dl-calendar__week-number", children }) }),
|
|
588
543
|
...components
|
|
589
544
|
},
|
|
590
545
|
...props
|
|
@@ -606,16 +561,17 @@ function CalendarDayButton({
|
|
|
606
561
|
Button,
|
|
607
562
|
{
|
|
608
563
|
ref,
|
|
609
|
-
variant: "ghost",
|
|
564
|
+
variant: modifiers["selected"] ? "default" : "ghost",
|
|
610
565
|
size: "icon",
|
|
611
566
|
"data-day": day.date.toLocaleDateString(),
|
|
567
|
+
"data-selected": modifiers["selected"] ? "true" : void 0,
|
|
612
568
|
"data-selected-single": modifiers["selected"] && !modifiers["range_start"] && !modifiers["range_end"] && !modifiers["range_middle"],
|
|
613
569
|
"data-range-start": modifiers["range_start"],
|
|
614
570
|
"data-range-end": modifiers["range_end"],
|
|
615
571
|
"data-range-middle": modifiers["range_middle"],
|
|
616
572
|
className: cn(
|
|
617
|
-
"
|
|
618
|
-
defaultClassNames.
|
|
573
|
+
"dl-calendar__day-button",
|
|
574
|
+
defaultClassNames.day_button,
|
|
619
575
|
className
|
|
620
576
|
),
|
|
621
577
|
...props
|
|
@@ -649,12 +605,13 @@ var CardFooter = React10.forwardRef(
|
|
|
649
605
|
);
|
|
650
606
|
CardFooter.displayName = "CardFooter";
|
|
651
607
|
|
|
652
|
-
// src/components/carousel/carousel.tsx
|
|
608
|
+
// src/components/carousel/carousel-context.tsx
|
|
653
609
|
import * as React11 from "react";
|
|
654
610
|
import useEmblaCarousel from "embla-carousel-react";
|
|
655
|
-
import {
|
|
656
|
-
|
|
657
|
-
|
|
611
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
612
|
+
var CarouselContext = React11.createContext(
|
|
613
|
+
null
|
|
614
|
+
);
|
|
658
615
|
function useCarousel() {
|
|
659
616
|
const context = React11.useContext(CarouselContext);
|
|
660
617
|
if (!context) {
|
|
@@ -740,28 +697,31 @@ var Carousel = React11.forwardRef(
|
|
|
740
697
|
}
|
|
741
698
|
);
|
|
742
699
|
Carousel.displayName = "Carousel";
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
700
|
+
|
|
701
|
+
// src/components/carousel/carousel-items.tsx
|
|
702
|
+
import * as React12 from "react";
|
|
703
|
+
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
704
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
705
|
+
var CarouselContent = React12.forwardRef(({ className, ...props }, ref) => {
|
|
706
|
+
const { carouselRef, orientation } = useCarousel();
|
|
707
|
+
return /* @__PURE__ */ jsx12("div", { ref: carouselRef, className: "dl-carousel-viewport", children: /* @__PURE__ */ jsx12(
|
|
708
|
+
"div",
|
|
709
|
+
{
|
|
710
|
+
ref,
|
|
711
|
+
className: cn(
|
|
712
|
+
"dl-carousel-track",
|
|
713
|
+
orientation === "horizontal" ? "dl-carousel-track--horizontal" : "dl-carousel-track--vertical",
|
|
714
|
+
className
|
|
715
|
+
),
|
|
716
|
+
...props
|
|
717
|
+
}
|
|
718
|
+
) });
|
|
719
|
+
});
|
|
760
720
|
CarouselContent.displayName = "CarouselContent";
|
|
761
|
-
var CarouselItem =
|
|
721
|
+
var CarouselItem = React12.forwardRef(
|
|
762
722
|
({ className, ...props }, ref) => {
|
|
763
723
|
const { orientation } = useCarousel();
|
|
764
|
-
return /* @__PURE__ */
|
|
724
|
+
return /* @__PURE__ */ jsx12(
|
|
765
725
|
"div",
|
|
766
726
|
{
|
|
767
727
|
ref,
|
|
@@ -778,7 +738,7 @@ var CarouselItem = React11.forwardRef(
|
|
|
778
738
|
}
|
|
779
739
|
);
|
|
780
740
|
CarouselItem.displayName = "CarouselItem";
|
|
781
|
-
var CarouselPrevious =
|
|
741
|
+
var CarouselPrevious = React12.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
782
742
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
783
743
|
return /* @__PURE__ */ jsxs4(
|
|
784
744
|
Button,
|
|
@@ -795,81 +755,78 @@ var CarouselPrevious = React11.forwardRef(({ className, variant = "outline", siz
|
|
|
795
755
|
onClick: scrollPrev,
|
|
796
756
|
...props,
|
|
797
757
|
children: [
|
|
798
|
-
/* @__PURE__ */
|
|
799
|
-
/* @__PURE__ */
|
|
758
|
+
/* @__PURE__ */ jsx12(ArrowLeft, {}),
|
|
759
|
+
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Previous slide" })
|
|
800
760
|
]
|
|
801
761
|
}
|
|
802
762
|
);
|
|
803
763
|
});
|
|
804
764
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
805
|
-
var CarouselNext =
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
}
|
|
829
|
-
);
|
|
765
|
+
var CarouselNext = React12.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
766
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
767
|
+
return /* @__PURE__ */ jsxs4(
|
|
768
|
+
Button,
|
|
769
|
+
{
|
|
770
|
+
ref,
|
|
771
|
+
variant,
|
|
772
|
+
size,
|
|
773
|
+
className: cn(
|
|
774
|
+
"dl-carousel-btn",
|
|
775
|
+
orientation === "horizontal" ? "dl-carousel-btn--next-horizontal" : "dl-carousel-btn--next-vertical",
|
|
776
|
+
className
|
|
777
|
+
),
|
|
778
|
+
disabled: !canScrollNext,
|
|
779
|
+
onClick: scrollNext,
|
|
780
|
+
...props,
|
|
781
|
+
children: [
|
|
782
|
+
/* @__PURE__ */ jsx12(ArrowRight, {}),
|
|
783
|
+
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Next slide" })
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
);
|
|
787
|
+
});
|
|
830
788
|
CarouselNext.displayName = "CarouselNext";
|
|
831
789
|
|
|
832
|
-
// src/components/chart/chart.tsx
|
|
833
|
-
import * as
|
|
834
|
-
import * as RechartsPrimitive from "recharts";
|
|
835
|
-
import { Fragment, jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
790
|
+
// src/components/chart/chart-context.tsx
|
|
791
|
+
import * as React13 from "react";
|
|
836
792
|
var THEMES = { light: "", dark: ".dark" };
|
|
837
|
-
var ChartContext =
|
|
793
|
+
var ChartContext = React13.createContext(null);
|
|
838
794
|
function useChart() {
|
|
839
|
-
const context =
|
|
795
|
+
const context = React13.useContext(ChartContext);
|
|
840
796
|
if (!context) {
|
|
841
797
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
842
798
|
}
|
|
843
799
|
return context;
|
|
844
800
|
}
|
|
845
|
-
|
|
846
|
-
(
|
|
847
|
-
|
|
848
|
-
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
849
|
-
return /* @__PURE__ */ jsx12(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs5(
|
|
850
|
-
"div",
|
|
851
|
-
{
|
|
852
|
-
"data-chart": chartId,
|
|
853
|
-
ref,
|
|
854
|
-
className: cn("dl-chart-container", className),
|
|
855
|
-
...props,
|
|
856
|
-
children: [
|
|
857
|
-
/* @__PURE__ */ jsx12(ChartStyle, { id: chartId, config }),
|
|
858
|
-
/* @__PURE__ */ jsx12(RechartsPrimitive.ResponsiveContainer, { children })
|
|
859
|
-
]
|
|
860
|
-
}
|
|
861
|
-
) });
|
|
801
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
802
|
+
if (typeof payload !== "object" || payload === null) {
|
|
803
|
+
return void 0;
|
|
862
804
|
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
805
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
806
|
+
let configLabelKey = key;
|
|
807
|
+
if (key in payload && typeof payload[key] === "string") {
|
|
808
|
+
configLabelKey = payload[key];
|
|
809
|
+
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
810
|
+
configLabelKey = payloadPayload[key];
|
|
811
|
+
}
|
|
812
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
// src/components/chart/chart-container.tsx
|
|
816
|
+
import * as React14 from "react";
|
|
817
|
+
import * as RechartsPrimitive from "recharts";
|
|
818
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
819
|
+
var ChartStyle = ({
|
|
820
|
+
id,
|
|
821
|
+
config
|
|
822
|
+
}) => {
|
|
866
823
|
const colorConfig = Object.entries(config).filter(
|
|
867
|
-
([,
|
|
824
|
+
([, itemConfig]) => itemConfig.theme || itemConfig.color
|
|
868
825
|
);
|
|
869
826
|
if (!colorConfig.length) {
|
|
870
827
|
return null;
|
|
871
828
|
}
|
|
872
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ jsx13(
|
|
873
830
|
"style",
|
|
874
831
|
{
|
|
875
832
|
dangerouslySetInnerHTML: {
|
|
@@ -887,8 +844,31 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
887
844
|
}
|
|
888
845
|
);
|
|
889
846
|
};
|
|
890
|
-
var
|
|
891
|
-
|
|
847
|
+
var ChartContainer = React14.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
848
|
+
const uniqueId = React14.useId();
|
|
849
|
+
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
850
|
+
return /* @__PURE__ */ jsx13(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs5(
|
|
851
|
+
"div",
|
|
852
|
+
{
|
|
853
|
+
"data-chart": chartId,
|
|
854
|
+
ref,
|
|
855
|
+
className: cn("dl-chart-container", className),
|
|
856
|
+
...props,
|
|
857
|
+
children: [
|
|
858
|
+
/* @__PURE__ */ jsx13(ChartStyle, { id: chartId, config }),
|
|
859
|
+
/* @__PURE__ */ jsx13(RechartsPrimitive.ResponsiveContainer, { children })
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
) });
|
|
863
|
+
});
|
|
864
|
+
ChartContainer.displayName = "Chart";
|
|
865
|
+
|
|
866
|
+
// src/components/chart/chart-tooltip.tsx
|
|
867
|
+
import * as React15 from "react";
|
|
868
|
+
import * as RechartsPrimitive2 from "recharts";
|
|
869
|
+
import { Fragment, jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
870
|
+
var ChartTooltip = RechartsPrimitive2.Tooltip;
|
|
871
|
+
var ChartTooltipContent = React15.forwardRef(
|
|
892
872
|
({
|
|
893
873
|
active,
|
|
894
874
|
payload,
|
|
@@ -905,7 +885,7 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
905
885
|
labelKey
|
|
906
886
|
}, ref) => {
|
|
907
887
|
const { config } = useChart();
|
|
908
|
-
const tooltipLabel =
|
|
888
|
+
const tooltipLabel = React15.useMemo(() => {
|
|
909
889
|
if (hideLabel || !payload?.length) {
|
|
910
890
|
return null;
|
|
911
891
|
}
|
|
@@ -914,12 +894,12 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
914
894
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
915
895
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
916
896
|
if (labelFormatter) {
|
|
917
|
-
return /* @__PURE__ */
|
|
897
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("dl-chart-tooltip__label", labelClassName), children: labelFormatter(value, payload) });
|
|
918
898
|
}
|
|
919
899
|
if (!value) {
|
|
920
900
|
return null;
|
|
921
901
|
}
|
|
922
|
-
return /* @__PURE__ */
|
|
902
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("dl-chart-tooltip__label", labelClassName), children: value });
|
|
923
903
|
}, [
|
|
924
904
|
label,
|
|
925
905
|
labelFormatter,
|
|
@@ -933,31 +913,29 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
933
913
|
return null;
|
|
934
914
|
}
|
|
935
915
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
936
|
-
return /* @__PURE__ */
|
|
916
|
+
return /* @__PURE__ */ jsxs6("div", { ref, className: cn("dl-chart-tooltip", className), children: [
|
|
937
917
|
!nestLabel ? tooltipLabel : null,
|
|
938
|
-
/* @__PURE__ */
|
|
918
|
+
/* @__PURE__ */ jsx14("div", { className: "dl-chart-tooltip__grid", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
939
919
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
940
920
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
941
921
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
942
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ jsx14(
|
|
943
923
|
"div",
|
|
944
924
|
{
|
|
945
925
|
className: cn(
|
|
946
|
-
"
|
|
947
|
-
indicator === "dot" && "
|
|
926
|
+
"dl-chart-tooltip__item",
|
|
927
|
+
indicator === "dot" && "dl-chart-tooltip__item--center"
|
|
948
928
|
),
|
|
949
|
-
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
950
|
-
itemConfig?.icon ? /* @__PURE__ */
|
|
929
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
930
|
+
itemConfig?.icon ? /* @__PURE__ */ jsx14(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx14(
|
|
951
931
|
"div",
|
|
952
932
|
{
|
|
953
933
|
className: cn(
|
|
954
|
-
"
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
"my-0.5": nestLabel && indicator === "dashed"
|
|
960
|
-
}
|
|
934
|
+
"dl-chart-tooltip__indicator",
|
|
935
|
+
indicator === "dot" && "dl-chart-tooltip__indicator--dot",
|
|
936
|
+
indicator === "line" && "dl-chart-tooltip__indicator--line",
|
|
937
|
+
indicator === "dashed" && "dl-chart-tooltip__indicator--dashed",
|
|
938
|
+
nestLabel && indicator === "dashed" && "dl-chart-tooltip__indicator--nested"
|
|
961
939
|
),
|
|
962
940
|
style: {
|
|
963
941
|
"--color-bg": indicatorColor,
|
|
@@ -965,19 +943,19 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
965
943
|
}
|
|
966
944
|
}
|
|
967
945
|
),
|
|
968
|
-
/* @__PURE__ */
|
|
946
|
+
/* @__PURE__ */ jsxs6(
|
|
969
947
|
"div",
|
|
970
948
|
{
|
|
971
949
|
className: cn(
|
|
972
|
-
"
|
|
973
|
-
nestLabel
|
|
950
|
+
"dl-chart-tooltip__row",
|
|
951
|
+
nestLabel && "dl-chart-tooltip__row--end"
|
|
974
952
|
),
|
|
975
953
|
children: [
|
|
976
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ jsxs6("div", { className: "dl-chart-tooltip__grid", children: [
|
|
977
955
|
nestLabel ? tooltipLabel : null,
|
|
978
|
-
/* @__PURE__ */
|
|
956
|
+
/* @__PURE__ */ jsx14("span", { className: "dl-chart-tooltip__item-label", children: itemConfig?.label || item.name })
|
|
979
957
|
] }),
|
|
980
|
-
item.value && /* @__PURE__ */
|
|
958
|
+
item.value && /* @__PURE__ */ jsx14("span", { className: "dl-chart-tooltip__item-value", children: item.value.toLocaleString() })
|
|
981
959
|
]
|
|
982
960
|
}
|
|
983
961
|
)
|
|
@@ -990,78 +968,59 @@ var ChartTooltipContent = React12.forwardRef(
|
|
|
990
968
|
}
|
|
991
969
|
);
|
|
992
970
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
993
|
-
|
|
994
|
-
|
|
971
|
+
|
|
972
|
+
// src/components/chart/chart-legend.tsx
|
|
973
|
+
import * as React16 from "react";
|
|
974
|
+
import * as RechartsPrimitive3 from "recharts";
|
|
975
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
976
|
+
var ChartLegend = RechartsPrimitive3.Legend;
|
|
977
|
+
var ChartLegendContent = React16.forwardRef(
|
|
995
978
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
996
979
|
const { config } = useChart();
|
|
997
980
|
if (!payload?.length) {
|
|
998
981
|
return null;
|
|
999
982
|
}
|
|
1000
|
-
return /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ jsx15(
|
|
1001
984
|
"div",
|
|
1002
985
|
{
|
|
1003
986
|
ref,
|
|
1004
987
|
className: cn(
|
|
1005
988
|
"dl-chart-legend",
|
|
1006
|
-
verticalAlign === "top" ? "
|
|
989
|
+
verticalAlign === "top" ? "dl-chart-legend--top" : "dl-chart-legend--bottom",
|
|
1007
990
|
className
|
|
1008
991
|
),
|
|
1009
992
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1010
993
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1011
994
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1012
|
-
return /* @__PURE__ */
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
"
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
className: "shrink-0 rounded-xs size-2",
|
|
1023
|
-
style: {
|
|
1024
|
-
backgroundColor: item.color
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
),
|
|
1028
|
-
itemConfig?.label
|
|
1029
|
-
]
|
|
1030
|
-
},
|
|
1031
|
-
item.value
|
|
1032
|
-
);
|
|
995
|
+
return /* @__PURE__ */ jsxs7("div", { className: "dl-chart-legend__item", children: [
|
|
996
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx15(itemConfig.icon, {}) : /* @__PURE__ */ jsx15(
|
|
997
|
+
"div",
|
|
998
|
+
{
|
|
999
|
+
className: "dl-chart-legend__indicator",
|
|
1000
|
+
style: { backgroundColor: item.color }
|
|
1001
|
+
}
|
|
1002
|
+
),
|
|
1003
|
+
itemConfig?.label
|
|
1004
|
+
] }, item.value);
|
|
1033
1005
|
})
|
|
1034
1006
|
}
|
|
1035
1007
|
);
|
|
1036
1008
|
}
|
|
1037
1009
|
);
|
|
1038
1010
|
ChartLegendContent.displayName = "ChartLegend";
|
|
1039
|
-
function getPayloadConfigFromPayload(config, payload, key) {
|
|
1040
|
-
if (typeof payload !== "object" || payload === null) {
|
|
1041
|
-
return void 0;
|
|
1042
|
-
}
|
|
1043
|
-
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
1044
|
-
let configLabelKey = key;
|
|
1045
|
-
if (key in payload && typeof payload[key] === "string") {
|
|
1046
|
-
configLabelKey = payload[key];
|
|
1047
|
-
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
1048
|
-
configLabelKey = payloadPayload[key];
|
|
1049
|
-
}
|
|
1050
|
-
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1051
|
-
}
|
|
1052
1011
|
|
|
1053
1012
|
// src/components/checkbox/checkbox.tsx
|
|
1054
|
-
import * as
|
|
1013
|
+
import * as React17 from "react";
|
|
1055
1014
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1056
1015
|
import { Check } from "lucide-react";
|
|
1057
|
-
import { jsx as
|
|
1058
|
-
var Checkbox =
|
|
1016
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1017
|
+
var Checkbox = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1059
1018
|
CheckboxPrimitive.Root,
|
|
1060
1019
|
{
|
|
1061
1020
|
ref,
|
|
1062
1021
|
className: cn("dl-checkbox", className),
|
|
1063
1022
|
...props,
|
|
1064
|
-
children: /* @__PURE__ */
|
|
1023
|
+
children: /* @__PURE__ */ jsx16(CheckboxPrimitive.Indicator, { className: "dl-checkbox-indicator", children: /* @__PURE__ */ jsx16(Check, { className: "dl-checkbox-icon" }) })
|
|
1065
1024
|
}
|
|
1066
1025
|
));
|
|
1067
1026
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
@@ -1073,20 +1032,20 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
1073
1032
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
1074
1033
|
|
|
1075
1034
|
// src/components/command/command.tsx
|
|
1076
|
-
import * as
|
|
1035
|
+
import * as React19 from "react";
|
|
1077
1036
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1078
1037
|
import { Search } from "lucide-react";
|
|
1079
1038
|
|
|
1080
1039
|
// src/components/dialog/dialog.tsx
|
|
1081
|
-
import * as
|
|
1040
|
+
import * as React18 from "react";
|
|
1082
1041
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1083
1042
|
import { X } from "lucide-react";
|
|
1084
|
-
import { jsx as
|
|
1043
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1085
1044
|
var Dialog = DialogPrimitive.Root;
|
|
1086
1045
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1087
1046
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1088
1047
|
var DialogClose = DialogPrimitive.Close;
|
|
1089
|
-
var DialogOverlay =
|
|
1048
|
+
var DialogOverlay = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1090
1049
|
DialogPrimitive.Overlay,
|
|
1091
1050
|
{
|
|
1092
1051
|
ref,
|
|
@@ -1095,9 +1054,9 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1095
1054
|
}
|
|
1096
1055
|
));
|
|
1097
1056
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1098
|
-
var DialogContent =
|
|
1099
|
-
/* @__PURE__ */
|
|
1100
|
-
/* @__PURE__ */
|
|
1057
|
+
var DialogContent = React18.forwardRef(({ className, children, size = "md", ...props }, ref) => /* @__PURE__ */ jsxs8(DialogPortal, { children: [
|
|
1058
|
+
/* @__PURE__ */ jsx17(DialogOverlay, {}),
|
|
1059
|
+
/* @__PURE__ */ jsxs8(
|
|
1101
1060
|
DialogPrimitive.Content,
|
|
1102
1061
|
{
|
|
1103
1062
|
ref,
|
|
@@ -1109,9 +1068,9 @@ var DialogContent = React14.forwardRef(({ className, children, size = "md", ...p
|
|
|
1109
1068
|
...props,
|
|
1110
1069
|
children: [
|
|
1111
1070
|
children,
|
|
1112
|
-
/* @__PURE__ */
|
|
1113
|
-
/* @__PURE__ */
|
|
1114
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ jsxs8(DialogPrimitive.Close, { className: "dl-dialog-close", children: [
|
|
1072
|
+
/* @__PURE__ */ jsx17(X, {}),
|
|
1073
|
+
/* @__PURE__ */ jsx17("span", { className: "dl-dialog-sr-only", children: "Close" })
|
|
1115
1074
|
] })
|
|
1116
1075
|
]
|
|
1117
1076
|
}
|
|
@@ -1121,19 +1080,19 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
1121
1080
|
var DialogHeader = ({
|
|
1122
1081
|
className,
|
|
1123
1082
|
...props
|
|
1124
|
-
}) => /* @__PURE__ */
|
|
1083
|
+
}) => /* @__PURE__ */ jsx17("div", { className: cn("dl-dialog__header", className), ...props });
|
|
1125
1084
|
DialogHeader.displayName = "DialogHeader";
|
|
1126
1085
|
var DialogBody = ({
|
|
1127
1086
|
className,
|
|
1128
1087
|
...props
|
|
1129
|
-
}) => /* @__PURE__ */
|
|
1088
|
+
}) => /* @__PURE__ */ jsx17("div", { className: cn("dl-dialog__body", className), ...props });
|
|
1130
1089
|
DialogBody.displayName = "DialogBody";
|
|
1131
1090
|
var DialogFooter = ({
|
|
1132
1091
|
className,
|
|
1133
1092
|
...props
|
|
1134
|
-
}) => /* @__PURE__ */
|
|
1093
|
+
}) => /* @__PURE__ */ jsx17("div", { className: cn("dl-dialog__footer", className), ...props });
|
|
1135
1094
|
DialogFooter.displayName = "DialogFooter";
|
|
1136
|
-
var DialogTitle =
|
|
1095
|
+
var DialogTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1137
1096
|
DialogPrimitive.Title,
|
|
1138
1097
|
{
|
|
1139
1098
|
ref,
|
|
@@ -1142,7 +1101,7 @@ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1142
1101
|
}
|
|
1143
1102
|
));
|
|
1144
1103
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1145
|
-
var DialogDescription =
|
|
1104
|
+
var DialogDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1146
1105
|
DialogPrimitive.Description,
|
|
1147
1106
|
{
|
|
1148
1107
|
ref,
|
|
@@ -1153,8 +1112,8 @@ var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1153
1112
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1154
1113
|
|
|
1155
1114
|
// src/components/command/command.tsx
|
|
1156
|
-
import { jsx as
|
|
1157
|
-
var Command =
|
|
1115
|
+
import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1116
|
+
var Command = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1158
1117
|
CommandPrimitive,
|
|
1159
1118
|
{
|
|
1160
1119
|
ref,
|
|
@@ -1164,11 +1123,11 @@ var Command = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1164
1123
|
));
|
|
1165
1124
|
Command.displayName = CommandPrimitive.displayName;
|
|
1166
1125
|
var CommandDialog = ({ children, ...props }) => {
|
|
1167
|
-
return /* @__PURE__ */
|
|
1126
|
+
return /* @__PURE__ */ jsx18(Dialog, { ...props, children: /* @__PURE__ */ jsx18(DialogContent, { className: "dl-command-dialog-content", children: /* @__PURE__ */ jsx18(Command, { children }) }) });
|
|
1168
1127
|
};
|
|
1169
|
-
var CommandInput =
|
|
1170
|
-
/* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1128
|
+
var CommandInput = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs9("div", { className: "dl-command-input-wrapper", "cmdk-input-wrapper": "", children: [
|
|
1129
|
+
/* @__PURE__ */ jsx18(Search, { className: "dl-command-input-icon" }),
|
|
1130
|
+
/* @__PURE__ */ jsx18(
|
|
1172
1131
|
CommandPrimitive.Input,
|
|
1173
1132
|
{
|
|
1174
1133
|
ref,
|
|
@@ -1178,7 +1137,7 @@ var CommandInput = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1178
1137
|
)
|
|
1179
1138
|
] }));
|
|
1180
1139
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1181
|
-
var CommandList =
|
|
1140
|
+
var CommandList = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1182
1141
|
CommandPrimitive.List,
|
|
1183
1142
|
{
|
|
1184
1143
|
ref,
|
|
@@ -1187,9 +1146,9 @@ var CommandList = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1187
1146
|
}
|
|
1188
1147
|
));
|
|
1189
1148
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1190
|
-
var CommandEmpty =
|
|
1149
|
+
var CommandEmpty = React19.forwardRef((props, ref) => /* @__PURE__ */ jsx18(CommandPrimitive.Empty, { ref, className: "dl-command-empty", ...props }));
|
|
1191
1150
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1192
|
-
var CommandGroup =
|
|
1151
|
+
var CommandGroup = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1193
1152
|
CommandPrimitive.Group,
|
|
1194
1153
|
{
|
|
1195
1154
|
ref,
|
|
@@ -1198,7 +1157,7 @@ var CommandGroup = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1198
1157
|
}
|
|
1199
1158
|
));
|
|
1200
1159
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1201
|
-
var CommandSeparator =
|
|
1160
|
+
var CommandSeparator = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1202
1161
|
CommandPrimitive.Separator,
|
|
1203
1162
|
{
|
|
1204
1163
|
ref,
|
|
@@ -1207,7 +1166,7 @@ var CommandSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1207
1166
|
}
|
|
1208
1167
|
));
|
|
1209
1168
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1210
|
-
var CommandItem =
|
|
1169
|
+
var CommandItem = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1211
1170
|
CommandPrimitive.Item,
|
|
1212
1171
|
{
|
|
1213
1172
|
ref,
|
|
@@ -1217,12 +1176,12 @@ var CommandItem = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1217
1176
|
));
|
|
1218
1177
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1219
1178
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1220
|
-
return /* @__PURE__ */
|
|
1179
|
+
return /* @__PURE__ */ jsx18("span", { className: cn("dl-command-shortcut", className), ...props });
|
|
1221
1180
|
};
|
|
1222
1181
|
CommandShortcut.displayName = "CommandShortcut";
|
|
1223
1182
|
|
|
1224
1183
|
// src/components/confirm-dialog/confirm-dialog.tsx
|
|
1225
|
-
import { jsx as
|
|
1184
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1226
1185
|
function ConfirmDialog({
|
|
1227
1186
|
open,
|
|
1228
1187
|
onOpenChange,
|
|
@@ -1233,14 +1192,14 @@ function ConfirmDialog({
|
|
|
1233
1192
|
cancelText = "Cancel",
|
|
1234
1193
|
destructive = false
|
|
1235
1194
|
}) {
|
|
1236
|
-
return /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
/* @__PURE__ */
|
|
1195
|
+
return /* @__PURE__ */ jsx19(AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs10(AlertDialogContent, { children: [
|
|
1196
|
+
/* @__PURE__ */ jsxs10(AlertDialogHeader, { children: [
|
|
1197
|
+
/* @__PURE__ */ jsx19(AlertDialogTitle, { children: title }),
|
|
1198
|
+
/* @__PURE__ */ jsx19(AlertDialogDescription, { children: description })
|
|
1240
1199
|
] }),
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ jsxs10(AlertDialogFooter, { children: [
|
|
1201
|
+
/* @__PURE__ */ jsx19(AlertDialogCancel, { children: cancelText }),
|
|
1202
|
+
/* @__PURE__ */ jsx19(
|
|
1244
1203
|
AlertDialogAction,
|
|
1245
1204
|
{
|
|
1246
1205
|
onClick: onConfirm,
|
|
@@ -1252,35 +1211,35 @@ function ConfirmDialog({
|
|
|
1252
1211
|
] }) });
|
|
1253
1212
|
}
|
|
1254
1213
|
|
|
1255
|
-
// src/components/context-menu/context-menu.tsx
|
|
1256
|
-
import * as
|
|
1214
|
+
// src/components/context-menu/context-menu-primitives.tsx
|
|
1215
|
+
import * as React20 from "react";
|
|
1257
1216
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
1258
|
-
import {
|
|
1259
|
-
import { jsx as
|
|
1217
|
+
import { ChevronRight as ChevronRight2 } from "lucide-react";
|
|
1218
|
+
import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1260
1219
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
1261
1220
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
1262
1221
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
1263
1222
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1264
1223
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
1265
1224
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1266
|
-
var ContextMenuSubTrigger =
|
|
1225
|
+
var ContextMenuSubTrigger = React20.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
1267
1226
|
ContextMenuPrimitive.SubTrigger,
|
|
1268
1227
|
{
|
|
1269
1228
|
ref,
|
|
1270
1229
|
className: cn(
|
|
1271
1230
|
"dl-menu-item dl-menu-sub-trigger",
|
|
1272
|
-
inset && "
|
|
1231
|
+
inset && "dl-menu-item--inset",
|
|
1273
1232
|
className
|
|
1274
1233
|
),
|
|
1275
1234
|
...props,
|
|
1276
1235
|
children: [
|
|
1277
1236
|
children,
|
|
1278
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ jsx20(ChevronRight2, { className: "dl-menu-item__chevron" })
|
|
1279
1238
|
]
|
|
1280
1239
|
}
|
|
1281
1240
|
));
|
|
1282
1241
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1283
|
-
var ContextMenuSubContent =
|
|
1242
|
+
var ContextMenuSubContent = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1284
1243
|
ContextMenuPrimitive.SubContent,
|
|
1285
1244
|
{
|
|
1286
1245
|
ref,
|
|
@@ -1289,7 +1248,7 @@ var ContextMenuSubContent = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
1289
1248
|
}
|
|
1290
1249
|
));
|
|
1291
1250
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1292
|
-
var ContextMenuContent =
|
|
1251
|
+
var ContextMenuContent = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx20(
|
|
1293
1252
|
ContextMenuPrimitive.Content,
|
|
1294
1253
|
{
|
|
1295
1254
|
ref,
|
|
@@ -1298,80 +1257,86 @@ var ContextMenuContent = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1298
1257
|
}
|
|
1299
1258
|
) }));
|
|
1300
1259
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1301
|
-
|
|
1302
|
-
|
|
1260
|
+
|
|
1261
|
+
// src/components/context-menu/context-menu-items.tsx
|
|
1262
|
+
import * as React21 from "react";
|
|
1263
|
+
import * as ContextMenuPrimitive2 from "@radix-ui/react-context-menu";
|
|
1264
|
+
import { Check as Check2, Circle } from "lucide-react";
|
|
1265
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1266
|
+
var ContextMenuItem = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1267
|
+
ContextMenuPrimitive2.Item,
|
|
1303
1268
|
{
|
|
1304
1269
|
ref,
|
|
1305
|
-
className: cn("dl-menu-item", inset && "
|
|
1270
|
+
className: cn("dl-menu-item", inset && "dl-menu-item--inset", className),
|
|
1306
1271
|
...props
|
|
1307
1272
|
}
|
|
1308
1273
|
));
|
|
1309
|
-
ContextMenuItem.displayName =
|
|
1310
|
-
var ContextMenuCheckboxItem =
|
|
1311
|
-
|
|
1274
|
+
ContextMenuItem.displayName = ContextMenuPrimitive2.Item.displayName;
|
|
1275
|
+
var ContextMenuCheckboxItem = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
1276
|
+
ContextMenuPrimitive2.CheckboxItem,
|
|
1312
1277
|
{
|
|
1313
1278
|
ref,
|
|
1314
1279
|
className: cn("dl-menu-item dl-menu-checkbox-item", className),
|
|
1315
1280
|
...props,
|
|
1316
1281
|
children: [
|
|
1317
|
-
/* @__PURE__ */
|
|
1282
|
+
/* @__PURE__ */ jsx21("span", { className: "dl-menu-checkbox-item__indicator", children: /* @__PURE__ */ jsx21(ContextMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ jsx21(Check2, { className: "dl-menu-item__icon" }) }) }),
|
|
1318
1283
|
children
|
|
1319
1284
|
]
|
|
1320
1285
|
}
|
|
1321
1286
|
));
|
|
1322
|
-
ContextMenuCheckboxItem.displayName =
|
|
1323
|
-
var ContextMenuRadioItem =
|
|
1324
|
-
|
|
1287
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive2.CheckboxItem.displayName;
|
|
1288
|
+
var ContextMenuRadioItem = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
1289
|
+
ContextMenuPrimitive2.RadioItem,
|
|
1325
1290
|
{
|
|
1326
1291
|
ref,
|
|
1327
1292
|
className: cn("dl-menu-item dl-menu-radio-item", className),
|
|
1328
1293
|
...props,
|
|
1329
1294
|
children: [
|
|
1330
|
-
/* @__PURE__ */
|
|
1295
|
+
/* @__PURE__ */ jsx21("span", { className: "dl-menu-radio-item__indicator", children: /* @__PURE__ */ jsx21(ContextMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ jsx21(Circle, { className: "dl-menu-item__radio-dot" }) }) }),
|
|
1331
1296
|
children
|
|
1332
1297
|
]
|
|
1333
1298
|
}
|
|
1334
1299
|
));
|
|
1335
|
-
ContextMenuRadioItem.displayName =
|
|
1336
|
-
var ContextMenuLabel =
|
|
1337
|
-
|
|
1300
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive2.RadioItem.displayName;
|
|
1301
|
+
var ContextMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1302
|
+
ContextMenuPrimitive2.Label,
|
|
1338
1303
|
{
|
|
1339
1304
|
ref,
|
|
1340
|
-
className: cn("dl-menu-label", inset && "
|
|
1305
|
+
className: cn("dl-menu-label", inset && "dl-menu-label--inset", className),
|
|
1341
1306
|
...props
|
|
1342
1307
|
}
|
|
1343
1308
|
));
|
|
1344
|
-
ContextMenuLabel.displayName =
|
|
1345
|
-
var ContextMenuSeparator =
|
|
1346
|
-
|
|
1309
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive2.Label.displayName;
|
|
1310
|
+
var ContextMenuSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1311
|
+
ContextMenuPrimitive2.Separator,
|
|
1347
1312
|
{
|
|
1348
1313
|
ref,
|
|
1349
1314
|
className: cn("dl-menu-separator", className),
|
|
1350
1315
|
...props
|
|
1351
1316
|
}
|
|
1352
1317
|
));
|
|
1353
|
-
ContextMenuSeparator.displayName =
|
|
1318
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive2.Separator.displayName;
|
|
1354
1319
|
var ContextMenuShortcut = ({
|
|
1355
1320
|
className,
|
|
1356
1321
|
...props
|
|
1357
1322
|
}) => {
|
|
1358
|
-
return /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ jsx21("span", { className: cn("dl-menu-shortcut", className), ...props });
|
|
1359
1324
|
};
|
|
1360
1325
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
1361
1326
|
|
|
1362
1327
|
// src/components/date-picker/date-picker.tsx
|
|
1363
|
-
import * as
|
|
1328
|
+
import * as React23 from "react";
|
|
1364
1329
|
import { format } from "date-fns";
|
|
1365
1330
|
import { Calendar as CalendarIcon } from "lucide-react";
|
|
1366
1331
|
|
|
1367
1332
|
// src/components/popover/popover.tsx
|
|
1368
|
-
import * as
|
|
1333
|
+
import * as React22 from "react";
|
|
1369
1334
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1370
|
-
import { jsx as
|
|
1335
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1371
1336
|
var Popover = PopoverPrimitive.Root;
|
|
1372
1337
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1373
1338
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
1374
|
-
var PopoverContent =
|
|
1339
|
+
var PopoverContent = React22.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx22(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
|
|
1375
1340
|
PopoverPrimitive.Content,
|
|
1376
1341
|
{
|
|
1377
1342
|
ref,
|
|
@@ -1384,7 +1349,7 @@ var PopoverContent = React17.forwardRef(({ className, align = "center", sideOffs
|
|
|
1384
1349
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1385
1350
|
|
|
1386
1351
|
// src/components/date-picker/date-picker.tsx
|
|
1387
|
-
import { jsx as
|
|
1352
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1388
1353
|
function DatePicker({
|
|
1389
1354
|
value,
|
|
1390
1355
|
onChange,
|
|
@@ -1392,7 +1357,7 @@ function DatePicker({
|
|
|
1392
1357
|
className,
|
|
1393
1358
|
disabled
|
|
1394
1359
|
}) {
|
|
1395
|
-
const date =
|
|
1360
|
+
const date = React23.useMemo(() => {
|
|
1396
1361
|
if (!value) return void 0;
|
|
1397
1362
|
const parts = value.split("-");
|
|
1398
1363
|
if (parts.length !== 3) {
|
|
@@ -1404,8 +1369,8 @@ function DatePicker({
|
|
|
1404
1369
|
const day = parseInt(parts[2], 10);
|
|
1405
1370
|
return new Date(year, month, day, 12, 0, 0);
|
|
1406
1371
|
}, [value]);
|
|
1407
|
-
return /* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1372
|
+
return /* @__PURE__ */ jsxs13(Popover, { children: [
|
|
1373
|
+
/* @__PURE__ */ jsx23(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs13(
|
|
1409
1374
|
Button,
|
|
1410
1375
|
{
|
|
1411
1376
|
variant: "outline",
|
|
@@ -1417,31 +1382,31 @@ function DatePicker({
|
|
|
1417
1382
|
className
|
|
1418
1383
|
),
|
|
1419
1384
|
children: [
|
|
1420
|
-
/* @__PURE__ */
|
|
1421
|
-
date && !isNaN(date.getTime()) ? format(date, "PPP") : /* @__PURE__ */
|
|
1385
|
+
/* @__PURE__ */ jsx23(CalendarIcon, { className: "dl-date-picker-icon" }),
|
|
1386
|
+
date && !isNaN(date.getTime()) ? format(date, "PPP") : /* @__PURE__ */ jsx23("span", { children: placeholder })
|
|
1422
1387
|
]
|
|
1423
1388
|
}
|
|
1424
1389
|
) }),
|
|
1425
|
-
/* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ jsx23(PopoverContent, { className: "dl-date-picker-content", align: "start", children: /* @__PURE__ */ jsx23(
|
|
1426
1391
|
Calendar,
|
|
1427
1392
|
{
|
|
1428
1393
|
mode: "single",
|
|
1429
1394
|
selected: date,
|
|
1430
1395
|
onSelect: (selectedDate) => onChange?.(selectedDate ? format(selectedDate, "yyyy-MM-dd") : ""),
|
|
1431
|
-
|
|
1396
|
+
autoFocus: true
|
|
1432
1397
|
}
|
|
1433
1398
|
) })
|
|
1434
1399
|
] });
|
|
1435
1400
|
}
|
|
1436
1401
|
|
|
1437
1402
|
// src/components/drawer/drawer.tsx
|
|
1438
|
-
import * as
|
|
1403
|
+
import * as React24 from "react";
|
|
1439
1404
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
1440
|
-
import { jsx as
|
|
1405
|
+
import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1441
1406
|
var Drawer = ({
|
|
1442
1407
|
shouldScaleBackground = true,
|
|
1443
1408
|
...props
|
|
1444
|
-
}) => /* @__PURE__ */
|
|
1409
|
+
}) => /* @__PURE__ */ jsx24(
|
|
1445
1410
|
DrawerPrimitive.Root,
|
|
1446
1411
|
{
|
|
1447
1412
|
shouldScaleBackground,
|
|
@@ -1452,7 +1417,7 @@ Drawer.displayName = "Drawer";
|
|
|
1452
1417
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
1453
1418
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
1454
1419
|
var DrawerClose = DrawerPrimitive.Close;
|
|
1455
|
-
var DrawerOverlay =
|
|
1420
|
+
var DrawerOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1456
1421
|
DrawerPrimitive.Overlay,
|
|
1457
1422
|
{
|
|
1458
1423
|
ref,
|
|
@@ -1461,16 +1426,16 @@ var DrawerOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1461
1426
|
}
|
|
1462
1427
|
));
|
|
1463
1428
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
1464
|
-
var DrawerContent =
|
|
1465
|
-
/* @__PURE__ */
|
|
1466
|
-
/* @__PURE__ */
|
|
1429
|
+
var DrawerContent = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(DrawerPortal, { children: [
|
|
1430
|
+
/* @__PURE__ */ jsx24(DrawerOverlay, {}),
|
|
1431
|
+
/* @__PURE__ */ jsxs14(
|
|
1467
1432
|
DrawerPrimitive.Content,
|
|
1468
1433
|
{
|
|
1469
1434
|
ref,
|
|
1470
1435
|
className: cn("dl-drawer-content", className),
|
|
1471
1436
|
...props,
|
|
1472
1437
|
children: [
|
|
1473
|
-
/* @__PURE__ */
|
|
1438
|
+
/* @__PURE__ */ jsx24("div", { className: "dl-drawer-handle" }),
|
|
1474
1439
|
children
|
|
1475
1440
|
]
|
|
1476
1441
|
}
|
|
@@ -1480,14 +1445,14 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
1480
1445
|
var DrawerHeader = ({
|
|
1481
1446
|
className,
|
|
1482
1447
|
...props
|
|
1483
|
-
}) => /* @__PURE__ */
|
|
1448
|
+
}) => /* @__PURE__ */ jsx24("div", { className: cn("dl-drawer-header", className), ...props });
|
|
1484
1449
|
DrawerHeader.displayName = "DrawerHeader";
|
|
1485
1450
|
var DrawerFooter = ({
|
|
1486
1451
|
className,
|
|
1487
1452
|
...props
|
|
1488
|
-
}) => /* @__PURE__ */
|
|
1453
|
+
}) => /* @__PURE__ */ jsx24("div", { className: cn("dl-drawer-footer", className), ...props });
|
|
1489
1454
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1490
|
-
var DrawerTitle =
|
|
1455
|
+
var DrawerTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1491
1456
|
DrawerPrimitive.Title,
|
|
1492
1457
|
{
|
|
1493
1458
|
ref,
|
|
@@ -1496,7 +1461,7 @@ var DrawerTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1496
1461
|
}
|
|
1497
1462
|
));
|
|
1498
1463
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
1499
|
-
var DrawerDescription =
|
|
1464
|
+
var DrawerDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1500
1465
|
DrawerPrimitive.Description,
|
|
1501
1466
|
{
|
|
1502
1467
|
ref,
|
|
@@ -1506,40 +1471,35 @@ var DrawerDescription = React19.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1506
1471
|
));
|
|
1507
1472
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
1508
1473
|
|
|
1509
|
-
// src/components/dropdown-menu/dropdown-menu.tsx
|
|
1510
|
-
import * as
|
|
1474
|
+
// src/components/dropdown-menu/dropdown-menu-primitives.tsx
|
|
1475
|
+
import * as React25 from "react";
|
|
1511
1476
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1512
|
-
import {
|
|
1513
|
-
import { jsx as
|
|
1477
|
+
import { ChevronRight as ChevronRight3 } from "lucide-react";
|
|
1478
|
+
import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1514
1479
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1515
1480
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1516
1481
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1517
1482
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1518
1483
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1519
1484
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1520
|
-
var DropdownMenuSubTrigger =
|
|
1485
|
+
var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs15(
|
|
1521
1486
|
DropdownMenuPrimitive.SubTrigger,
|
|
1522
1487
|
{
|
|
1523
1488
|
ref,
|
|
1524
1489
|
className: cn(
|
|
1525
1490
|
"dl-menu-item dl-menu-sub-trigger",
|
|
1526
|
-
inset && "
|
|
1491
|
+
inset && "dl-menu-item--inset",
|
|
1527
1492
|
className
|
|
1528
1493
|
),
|
|
1529
1494
|
...props,
|
|
1530
1495
|
children: [
|
|
1531
1496
|
children,
|
|
1532
|
-
/* @__PURE__ */
|
|
1533
|
-
ChevronRight3,
|
|
1534
|
-
{
|
|
1535
|
-
style: { marginLeft: "auto", width: "1rem", height: "1rem" }
|
|
1536
|
-
}
|
|
1537
|
-
)
|
|
1497
|
+
/* @__PURE__ */ jsx25(ChevronRight3, { className: "dl-menu-item__chevron" })
|
|
1538
1498
|
]
|
|
1539
1499
|
}
|
|
1540
1500
|
));
|
|
1541
1501
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1542
|
-
var DropdownMenuSubContent =
|
|
1502
|
+
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1543
1503
|
DropdownMenuPrimitive.SubContent,
|
|
1544
1504
|
{
|
|
1545
1505
|
ref,
|
|
@@ -1548,7 +1508,7 @@ var DropdownMenuSubContent = React20.forwardRef(({ className, ...props }, ref) =
|
|
|
1548
1508
|
}
|
|
1549
1509
|
));
|
|
1550
1510
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1551
|
-
var DropdownMenuContent =
|
|
1511
|
+
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx25(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx25(
|
|
1552
1512
|
DropdownMenuPrimitive.Content,
|
|
1553
1513
|
{
|
|
1554
1514
|
ref,
|
|
@@ -1558,74 +1518,91 @@ var DropdownMenuContent = React20.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1558
1518
|
}
|
|
1559
1519
|
) }));
|
|
1560
1520
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1561
|
-
|
|
1562
|
-
|
|
1521
|
+
|
|
1522
|
+
// src/components/dropdown-menu/dropdown-menu-items.tsx
|
|
1523
|
+
import * as React26 from "react";
|
|
1524
|
+
import * as DropdownMenuPrimitive2 from "@radix-ui/react-dropdown-menu";
|
|
1525
|
+
import { Check as Check3, Circle as Circle2 } from "lucide-react";
|
|
1526
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1527
|
+
var DropdownMenuItem = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1528
|
+
DropdownMenuPrimitive2.Item,
|
|
1563
1529
|
{
|
|
1564
1530
|
ref,
|
|
1565
|
-
className: cn("dl-menu-item", inset && "
|
|
1531
|
+
className: cn("dl-menu-item", inset && "dl-menu-item--inset", className),
|
|
1566
1532
|
...props
|
|
1567
1533
|
}
|
|
1568
1534
|
));
|
|
1569
|
-
DropdownMenuItem.displayName =
|
|
1570
|
-
var DropdownMenuCheckboxItem =
|
|
1571
|
-
|
|
1535
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive2.Item.displayName;
|
|
1536
|
+
var DropdownMenuCheckboxItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
1537
|
+
DropdownMenuPrimitive2.CheckboxItem,
|
|
1572
1538
|
{
|
|
1573
1539
|
ref,
|
|
1574
1540
|
className: cn("dl-menu-item dl-menu-checkbox-item", className),
|
|
1575
1541
|
...props,
|
|
1576
1542
|
children: [
|
|
1577
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ jsx26("span", { className: "dl-menu-checkbox-item__indicator", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ jsx26(Check3, { className: "dl-menu-item__icon" }) }) }),
|
|
1578
1544
|
children
|
|
1579
1545
|
]
|
|
1580
1546
|
}
|
|
1581
1547
|
));
|
|
1582
|
-
DropdownMenuCheckboxItem.displayName =
|
|
1583
|
-
var DropdownMenuRadioItem =
|
|
1584
|
-
|
|
1548
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive2.CheckboxItem.displayName;
|
|
1549
|
+
var DropdownMenuRadioItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
1550
|
+
DropdownMenuPrimitive2.RadioItem,
|
|
1585
1551
|
{
|
|
1586
1552
|
ref,
|
|
1587
1553
|
className: cn("dl-menu-item dl-menu-radio-item", className),
|
|
1588
1554
|
...props,
|
|
1589
1555
|
children: [
|
|
1590
|
-
/* @__PURE__ */
|
|
1591
|
-
Circle2,
|
|
1592
|
-
{
|
|
1593
|
-
style: { width: "0.5rem", height: "0.5rem", fill: "currentColor" }
|
|
1594
|
-
}
|
|
1595
|
-
) }) }),
|
|
1556
|
+
/* @__PURE__ */ jsx26("span", { className: "dl-menu-radio-item__indicator", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ jsx26(Circle2, { className: "dl-menu-item__radio-dot" }) }) }),
|
|
1596
1557
|
children
|
|
1597
1558
|
]
|
|
1598
1559
|
}
|
|
1599
1560
|
));
|
|
1600
|
-
DropdownMenuRadioItem.displayName =
|
|
1601
|
-
var DropdownMenuLabel =
|
|
1602
|
-
|
|
1561
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive2.RadioItem.displayName;
|
|
1562
|
+
var DropdownMenuLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1563
|
+
DropdownMenuPrimitive2.Label,
|
|
1603
1564
|
{
|
|
1604
1565
|
ref,
|
|
1605
|
-
className: cn("dl-menu-label", inset && "
|
|
1566
|
+
className: cn("dl-menu-label", inset && "dl-menu-label--inset", className),
|
|
1606
1567
|
...props
|
|
1607
1568
|
}
|
|
1608
1569
|
));
|
|
1609
|
-
DropdownMenuLabel.displayName =
|
|
1610
|
-
var DropdownMenuSeparator =
|
|
1611
|
-
|
|
1570
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive2.Label.displayName;
|
|
1571
|
+
var DropdownMenuSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1572
|
+
DropdownMenuPrimitive2.Separator,
|
|
1612
1573
|
{
|
|
1613
1574
|
ref,
|
|
1614
1575
|
className: cn("dl-menu-separator", className),
|
|
1615
1576
|
...props
|
|
1616
1577
|
}
|
|
1617
1578
|
));
|
|
1618
|
-
DropdownMenuSeparator.displayName =
|
|
1579
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive2.Separator.displayName;
|
|
1619
1580
|
var DropdownMenuShortcut = ({
|
|
1620
1581
|
className,
|
|
1621
1582
|
...props
|
|
1622
1583
|
}) => {
|
|
1623
|
-
return /* @__PURE__ */
|
|
1584
|
+
return /* @__PURE__ */ jsx26("span", { className: cn("dl-menu-shortcut", className), ...props });
|
|
1624
1585
|
};
|
|
1625
1586
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1626
1587
|
|
|
1588
|
+
// src/components/empty-state/empty-state.tsx
|
|
1589
|
+
import * as React27 from "react";
|
|
1590
|
+
import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1591
|
+
var EmptyState = React27.forwardRef(
|
|
1592
|
+
({ title, description, icon, action, children, className, ...props }, ref) => {
|
|
1593
|
+
return /* @__PURE__ */ jsxs17("div", { ref, className: cn("dl-empty-state", className), ...props, children: [
|
|
1594
|
+
icon && /* @__PURE__ */ jsx27("div", { className: "dl-empty-state__icon-box", children: icon }),
|
|
1595
|
+
/* @__PURE__ */ jsx27("h3", { className: "dl-empty-state__title", children: title }),
|
|
1596
|
+
description && /* @__PURE__ */ jsx27("p", { className: "dl-empty-state__description", children: description }),
|
|
1597
|
+
children,
|
|
1598
|
+
action && /* @__PURE__ */ jsx27("div", { className: "dl-empty-state__actions", children: action })
|
|
1599
|
+
] });
|
|
1600
|
+
}
|
|
1601
|
+
);
|
|
1602
|
+
EmptyState.displayName = "EmptyState";
|
|
1603
|
+
|
|
1627
1604
|
// src/components/form/form.tsx
|
|
1628
|
-
import * as
|
|
1605
|
+
import * as React29 from "react";
|
|
1629
1606
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
1630
1607
|
import {
|
|
1631
1608
|
Controller,
|
|
@@ -1634,12 +1611,12 @@ import {
|
|
|
1634
1611
|
} from "react-hook-form";
|
|
1635
1612
|
|
|
1636
1613
|
// src/components/label/label.tsx
|
|
1637
|
-
import * as
|
|
1614
|
+
import * as React28 from "react";
|
|
1638
1615
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
1639
1616
|
import { cva as cva4 } from "class-variance-authority";
|
|
1640
|
-
import { jsx as
|
|
1617
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1641
1618
|
var labelVariants = cva4("dl-label");
|
|
1642
|
-
var Label3 =
|
|
1619
|
+
var Label3 = React28.forwardRef(({ className, children, required = false, ...props }, ref) => /* @__PURE__ */ jsxs18(
|
|
1643
1620
|
LabelPrimitive.Root,
|
|
1644
1621
|
{
|
|
1645
1622
|
ref,
|
|
@@ -1647,26 +1624,26 @@ var Label3 = React21.forwardRef(({ className, children, required = false, ...pro
|
|
|
1647
1624
|
...props,
|
|
1648
1625
|
children: [
|
|
1649
1626
|
children,
|
|
1650
|
-
required && /* @__PURE__ */
|
|
1627
|
+
required && /* @__PURE__ */ jsx28("span", { className: "dl-label-required", children: "*" })
|
|
1651
1628
|
]
|
|
1652
1629
|
}
|
|
1653
1630
|
));
|
|
1654
1631
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
1655
1632
|
|
|
1656
1633
|
// src/components/form/form.tsx
|
|
1657
|
-
import { jsx as
|
|
1634
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1658
1635
|
var Form = FormProvider;
|
|
1659
|
-
var FormFieldContext =
|
|
1636
|
+
var FormFieldContext = React29.createContext(
|
|
1660
1637
|
null
|
|
1661
1638
|
);
|
|
1662
1639
|
var FormField = ({
|
|
1663
1640
|
...props
|
|
1664
1641
|
}) => {
|
|
1665
|
-
return /* @__PURE__ */
|
|
1642
|
+
return /* @__PURE__ */ jsx29(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx29(Controller, { ...props }) });
|
|
1666
1643
|
};
|
|
1667
1644
|
var useFormField = () => {
|
|
1668
|
-
const fieldContext =
|
|
1669
|
-
const itemContext =
|
|
1645
|
+
const fieldContext = React29.useContext(FormFieldContext);
|
|
1646
|
+
const itemContext = React29.useContext(FormItemContext);
|
|
1670
1647
|
const { getFieldState, formState } = useFormContext();
|
|
1671
1648
|
if (!fieldContext) {
|
|
1672
1649
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -1685,15 +1662,15 @@ var useFormField = () => {
|
|
|
1685
1662
|
...fieldState
|
|
1686
1663
|
};
|
|
1687
1664
|
};
|
|
1688
|
-
var FormItemContext =
|
|
1689
|
-
var FormItem =
|
|
1690
|
-
const id =
|
|
1691
|
-
return /* @__PURE__ */
|
|
1665
|
+
var FormItemContext = React29.createContext(null);
|
|
1666
|
+
var FormItem = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1667
|
+
const id = React29.useId();
|
|
1668
|
+
return /* @__PURE__ */ jsx29(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx29("div", { ref, className: cn("dl-form-item", className), ...props }) });
|
|
1692
1669
|
});
|
|
1693
1670
|
FormItem.displayName = "FormItem";
|
|
1694
|
-
var FormLabel =
|
|
1671
|
+
var FormLabel = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1695
1672
|
const { error, formItemId } = useFormField();
|
|
1696
|
-
return /* @__PURE__ */
|
|
1673
|
+
return /* @__PURE__ */ jsx29(
|
|
1697
1674
|
Label3,
|
|
1698
1675
|
{
|
|
1699
1676
|
ref,
|
|
@@ -1704,9 +1681,9 @@ var FormLabel = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
1704
1681
|
);
|
|
1705
1682
|
});
|
|
1706
1683
|
FormLabel.displayName = "FormLabel";
|
|
1707
|
-
var FormControl =
|
|
1684
|
+
var FormControl = React29.forwardRef(({ ...props }, ref) => {
|
|
1708
1685
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1709
|
-
return /* @__PURE__ */
|
|
1686
|
+
return /* @__PURE__ */ jsx29(
|
|
1710
1687
|
Slot3,
|
|
1711
1688
|
{
|
|
1712
1689
|
ref,
|
|
@@ -1718,9 +1695,9 @@ var FormControl = React22.forwardRef(({ ...props }, ref) => {
|
|
|
1718
1695
|
);
|
|
1719
1696
|
});
|
|
1720
1697
|
FormControl.displayName = "FormControl";
|
|
1721
|
-
var FormDescription =
|
|
1698
|
+
var FormDescription = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1722
1699
|
const { formDescriptionId } = useFormField();
|
|
1723
|
-
return /* @__PURE__ */
|
|
1700
|
+
return /* @__PURE__ */ jsx29(
|
|
1724
1701
|
"p",
|
|
1725
1702
|
{
|
|
1726
1703
|
ref,
|
|
@@ -1731,13 +1708,13 @@ var FormDescription = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
1731
1708
|
);
|
|
1732
1709
|
});
|
|
1733
1710
|
FormDescription.displayName = "FormDescription";
|
|
1734
|
-
var FormMessage =
|
|
1711
|
+
var FormMessage = React29.forwardRef(({ className, children, ...props }, ref) => {
|
|
1735
1712
|
const { error, formMessageId } = useFormField();
|
|
1736
1713
|
const body = error ? String(error?.message ?? "") : children;
|
|
1737
1714
|
if (!body) {
|
|
1738
1715
|
return null;
|
|
1739
1716
|
}
|
|
1740
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx29(
|
|
1741
1718
|
"p",
|
|
1742
1719
|
{
|
|
1743
1720
|
ref,
|
|
@@ -1751,12 +1728,12 @@ var FormMessage = React22.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1751
1728
|
FormMessage.displayName = "FormMessage";
|
|
1752
1729
|
|
|
1753
1730
|
// src/components/hover-card/hover-card.tsx
|
|
1754
|
-
import * as
|
|
1731
|
+
import * as React30 from "react";
|
|
1755
1732
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
1756
|
-
import { jsx as
|
|
1733
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1757
1734
|
var HoverCard = HoverCardPrimitive.Root;
|
|
1758
1735
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
1759
|
-
var HoverCardContent =
|
|
1736
|
+
var HoverCardContent = React30.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1760
1737
|
HoverCardPrimitive.Content,
|
|
1761
1738
|
{
|
|
1762
1739
|
ref,
|
|
@@ -1769,11 +1746,11 @@ var HoverCardContent = React23.forwardRef(({ className, align = "center", sideOf
|
|
|
1769
1746
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
1770
1747
|
|
|
1771
1748
|
// src/components/input/input.tsx
|
|
1772
|
-
import * as
|
|
1773
|
-
import { jsx as
|
|
1774
|
-
var Input =
|
|
1749
|
+
import * as React31 from "react";
|
|
1750
|
+
import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1751
|
+
var Input = React31.forwardRef(
|
|
1775
1752
|
({ className, type, startIcon, endIcon, ...props }, ref) => {
|
|
1776
|
-
const inputEl = /* @__PURE__ */
|
|
1753
|
+
const inputEl = /* @__PURE__ */ jsx31(
|
|
1777
1754
|
"input",
|
|
1778
1755
|
{
|
|
1779
1756
|
type,
|
|
@@ -1790,21 +1767,21 @@ var Input = React24.forwardRef(
|
|
|
1790
1767
|
if (!startIcon && !endIcon) {
|
|
1791
1768
|
return inputEl;
|
|
1792
1769
|
}
|
|
1793
|
-
return /* @__PURE__ */
|
|
1794
|
-
startIcon && /* @__PURE__ */
|
|
1770
|
+
return /* @__PURE__ */ jsxs19("div", { className: "dl-input-wrapper", children: [
|
|
1771
|
+
startIcon && /* @__PURE__ */ jsx31("span", { className: "dl-input-icon dl-input-icon--start", children: startIcon }),
|
|
1795
1772
|
inputEl,
|
|
1796
|
-
endIcon && /* @__PURE__ */
|
|
1773
|
+
endIcon && /* @__PURE__ */ jsx31("span", { className: "dl-input-icon dl-input-icon--end", children: endIcon })
|
|
1797
1774
|
] });
|
|
1798
1775
|
}
|
|
1799
1776
|
);
|
|
1800
1777
|
Input.displayName = "Input";
|
|
1801
1778
|
|
|
1802
1779
|
// src/components/input-otp/input-otp.tsx
|
|
1803
|
-
import * as
|
|
1780
|
+
import * as React32 from "react";
|
|
1804
1781
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
1805
1782
|
import { Minus } from "lucide-react";
|
|
1806
|
-
import { jsx as
|
|
1807
|
-
var InputOTP =
|
|
1783
|
+
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1784
|
+
var InputOTP = React32.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
1808
1785
|
OTPInput,
|
|
1809
1786
|
{
|
|
1810
1787
|
ref,
|
|
@@ -1814,16 +1791,16 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
|
|
|
1814
1791
|
}
|
|
1815
1792
|
));
|
|
1816
1793
|
InputOTP.displayName = "InputOTP";
|
|
1817
|
-
var InputOTPGroup =
|
|
1794
|
+
var InputOTPGroup = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32("div", { ref, className: cn("dl-input-otp-group", className), ...props }));
|
|
1818
1795
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1819
|
-
var InputOTPSlot =
|
|
1820
|
-
const inputOTPContext =
|
|
1796
|
+
var InputOTPSlot = React32.forwardRef(({ index, className, ...props }, ref) => {
|
|
1797
|
+
const inputOTPContext = React32.useContext(OTPInputContext);
|
|
1821
1798
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index] ?? {
|
|
1822
1799
|
char: null,
|
|
1823
1800
|
hasFakeCaret: false,
|
|
1824
1801
|
isActive: false
|
|
1825
1802
|
};
|
|
1826
|
-
return /* @__PURE__ */
|
|
1803
|
+
return /* @__PURE__ */ jsxs20(
|
|
1827
1804
|
"div",
|
|
1828
1805
|
{
|
|
1829
1806
|
ref,
|
|
@@ -1835,23 +1812,23 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
1835
1812
|
...props,
|
|
1836
1813
|
children: [
|
|
1837
1814
|
char,
|
|
1838
|
-
hasFakeCaret && /* @__PURE__ */
|
|
1815
|
+
hasFakeCaret && /* @__PURE__ */ jsx32("div", { className: "dl-input-otp-caret", children: /* @__PURE__ */ jsx32("div", { className: "dl-input-otp-caret__line" }) })
|
|
1839
1816
|
]
|
|
1840
1817
|
}
|
|
1841
1818
|
);
|
|
1842
1819
|
});
|
|
1843
1820
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1844
|
-
var InputOTPSeparator =
|
|
1821
|
+
var InputOTPSeparator = React32.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx32("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx32(Minus, {}) }));
|
|
1845
1822
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1846
1823
|
|
|
1847
1824
|
// src/components/skeleton/skeleton.tsx
|
|
1848
|
-
import { jsx as
|
|
1825
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1849
1826
|
function Skeleton({ className, ...props }) {
|
|
1850
|
-
return /* @__PURE__ */
|
|
1827
|
+
return /* @__PURE__ */ jsx33("div", { className: cn("dl-skeleton", className), ...props });
|
|
1851
1828
|
}
|
|
1852
1829
|
|
|
1853
1830
|
// src/components/loading-state/loading-state.tsx
|
|
1854
|
-
import { jsx as
|
|
1831
|
+
import { jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1855
1832
|
function LoadingState({
|
|
1856
1833
|
rows = 3,
|
|
1857
1834
|
message,
|
|
@@ -1859,8 +1836,8 @@ function LoadingState({
|
|
|
1859
1836
|
...props
|
|
1860
1837
|
}) {
|
|
1861
1838
|
if (message) {
|
|
1862
|
-
return /* @__PURE__ */
|
|
1863
|
-
/* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsxs21("div", { className: cn("dl-loading", className), ...props, children: [
|
|
1840
|
+
/* @__PURE__ */ jsx34(
|
|
1864
1841
|
"svg",
|
|
1865
1842
|
{
|
|
1866
1843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1872,49 +1849,39 @@ function LoadingState({
|
|
|
1872
1849
|
strokeWidth: "2",
|
|
1873
1850
|
strokeLinecap: "round",
|
|
1874
1851
|
strokeLinejoin: "round",
|
|
1875
|
-
children: /* @__PURE__ */
|
|
1852
|
+
children: /* @__PURE__ */ jsx34("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
1876
1853
|
}
|
|
1877
1854
|
),
|
|
1878
|
-
/* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ jsx34("span", { children: message })
|
|
1879
1856
|
] });
|
|
1880
1857
|
}
|
|
1881
|
-
return /* @__PURE__ */
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
Skeleton,
|
|
1885
|
-
{
|
|
1886
|
-
style: {
|
|
1887
|
-
height: "4rem",
|
|
1888
|
-
width: "100%",
|
|
1889
|
-
borderRadius: "var(--radius-lg, 0.75rem)"
|
|
1890
|
-
}
|
|
1891
|
-
},
|
|
1892
|
-
i
|
|
1893
|
-
)) })
|
|
1858
|
+
return /* @__PURE__ */ jsxs21("div", { className: cn("dl-loading-skeleton", className), ...props, children: [
|
|
1859
|
+
/* @__PURE__ */ jsx34(Skeleton, { className: "dl-loading-skeleton__header" }),
|
|
1860
|
+
/* @__PURE__ */ jsx34("div", { className: "dl-loading-skeleton__list", children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsx34(Skeleton, { className: "dl-loading-skeleton__row" }, i)) })
|
|
1894
1861
|
] });
|
|
1895
1862
|
}
|
|
1896
1863
|
|
|
1897
|
-
// src/components/menubar/menubar.tsx
|
|
1898
|
-
import * as
|
|
1864
|
+
// src/components/menubar/menubar-primitives.tsx
|
|
1865
|
+
import * as React33 from "react";
|
|
1899
1866
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
1900
|
-
import {
|
|
1901
|
-
import { jsx as
|
|
1867
|
+
import { ChevronRight as ChevronRight4 } from "lucide-react";
|
|
1868
|
+
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1902
1869
|
function MenubarMenu(props) {
|
|
1903
|
-
return /* @__PURE__ */
|
|
1870
|
+
return /* @__PURE__ */ jsx35(MenubarPrimitive.Menu, { ...props });
|
|
1904
1871
|
}
|
|
1905
1872
|
function MenubarGroup(props) {
|
|
1906
|
-
return /* @__PURE__ */
|
|
1873
|
+
return /* @__PURE__ */ jsx35(MenubarPrimitive.Group, { ...props });
|
|
1907
1874
|
}
|
|
1908
1875
|
function MenubarPortal(props) {
|
|
1909
|
-
return /* @__PURE__ */
|
|
1876
|
+
return /* @__PURE__ */ jsx35(MenubarPrimitive.Portal, { ...props });
|
|
1910
1877
|
}
|
|
1911
1878
|
function MenubarRadioGroup(props) {
|
|
1912
|
-
return /* @__PURE__ */
|
|
1879
|
+
return /* @__PURE__ */ jsx35(MenubarPrimitive.RadioGroup, { ...props });
|
|
1913
1880
|
}
|
|
1914
1881
|
function MenubarSub(props) {
|
|
1915
|
-
return /* @__PURE__ */
|
|
1882
|
+
return /* @__PURE__ */ jsx35(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
1916
1883
|
}
|
|
1917
|
-
var Menubar =
|
|
1884
|
+
var Menubar = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1918
1885
|
MenubarPrimitive.Root,
|
|
1919
1886
|
{
|
|
1920
1887
|
ref,
|
|
@@ -1923,7 +1890,7 @@ var Menubar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1923
1890
|
}
|
|
1924
1891
|
));
|
|
1925
1892
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
1926
|
-
var MenubarTrigger =
|
|
1893
|
+
var MenubarTrigger = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1927
1894
|
MenubarPrimitive.Trigger,
|
|
1928
1895
|
{
|
|
1929
1896
|
ref,
|
|
@@ -1932,24 +1899,24 @@ var MenubarTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1932
1899
|
}
|
|
1933
1900
|
));
|
|
1934
1901
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
1935
|
-
var MenubarSubTrigger =
|
|
1902
|
+
var MenubarSubTrigger = React33.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs22(
|
|
1936
1903
|
MenubarPrimitive.SubTrigger,
|
|
1937
1904
|
{
|
|
1938
1905
|
ref,
|
|
1939
1906
|
className: cn(
|
|
1940
1907
|
"dl-menu-item dl-menu-sub-trigger",
|
|
1941
|
-
inset && "
|
|
1908
|
+
inset && "dl-menu-item--inset",
|
|
1942
1909
|
className
|
|
1943
1910
|
),
|
|
1944
1911
|
...props,
|
|
1945
1912
|
children: [
|
|
1946
1913
|
children,
|
|
1947
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ jsx35(ChevronRight4, { className: "dl-menu-item__chevron" })
|
|
1948
1915
|
]
|
|
1949
1916
|
}
|
|
1950
1917
|
));
|
|
1951
1918
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
1952
|
-
var MenubarSubContent =
|
|
1919
|
+
var MenubarSubContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1953
1920
|
MenubarPrimitive.SubContent,
|
|
1954
1921
|
{
|
|
1955
1922
|
ref,
|
|
@@ -1958,8 +1925,8 @@ var MenubarSubContent = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1958
1925
|
}
|
|
1959
1926
|
));
|
|
1960
1927
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
1961
|
-
var MenubarContent =
|
|
1962
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
|
1928
|
+
var MenubarContent = React33.forwardRef(
|
|
1929
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx35(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx35(
|
|
1963
1930
|
MenubarPrimitive.Content,
|
|
1964
1931
|
{
|
|
1965
1932
|
ref,
|
|
@@ -1972,72 +1939,81 @@ var MenubarContent = React26.forwardRef(
|
|
|
1972
1939
|
) })
|
|
1973
1940
|
);
|
|
1974
1941
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
1975
|
-
|
|
1976
|
-
|
|
1942
|
+
|
|
1943
|
+
// src/components/menubar/menubar-items.tsx
|
|
1944
|
+
import * as React34 from "react";
|
|
1945
|
+
import * as MenubarPrimitive2 from "@radix-ui/react-menubar";
|
|
1946
|
+
import { Check as Check4, Circle as Circle3 } from "lucide-react";
|
|
1947
|
+
import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1948
|
+
var MenubarItem = React34.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1949
|
+
MenubarPrimitive2.Item,
|
|
1977
1950
|
{
|
|
1978
1951
|
ref,
|
|
1979
|
-
className: cn("dl-menu-item", inset && "
|
|
1952
|
+
className: cn("dl-menu-item", inset && "dl-menu-item--inset", className),
|
|
1980
1953
|
...props
|
|
1981
1954
|
}
|
|
1982
1955
|
));
|
|
1983
|
-
MenubarItem.displayName =
|
|
1984
|
-
var MenubarCheckboxItem =
|
|
1985
|
-
|
|
1956
|
+
MenubarItem.displayName = MenubarPrimitive2.Item.displayName;
|
|
1957
|
+
var MenubarCheckboxItem = React34.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs23(
|
|
1958
|
+
MenubarPrimitive2.CheckboxItem,
|
|
1986
1959
|
{
|
|
1987
1960
|
ref,
|
|
1988
1961
|
className: cn("dl-menu-item dl-menu-checkbox-item", className),
|
|
1989
1962
|
checked,
|
|
1990
1963
|
...props,
|
|
1991
1964
|
children: [
|
|
1992
|
-
/* @__PURE__ */
|
|
1965
|
+
/* @__PURE__ */ jsx36("span", { className: "dl-menu-checkbox-item__indicator", children: /* @__PURE__ */ jsx36(MenubarPrimitive2.ItemIndicator, { children: /* @__PURE__ */ jsx36(Check4, { className: "dl-menu-item__icon" }) }) }),
|
|
1993
1966
|
children
|
|
1994
1967
|
]
|
|
1995
1968
|
}
|
|
1996
1969
|
));
|
|
1997
|
-
MenubarCheckboxItem.displayName =
|
|
1998
|
-
var MenubarRadioItem =
|
|
1999
|
-
|
|
1970
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive2.CheckboxItem.displayName;
|
|
1971
|
+
var MenubarRadioItem = React34.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs23(
|
|
1972
|
+
MenubarPrimitive2.RadioItem,
|
|
2000
1973
|
{
|
|
2001
1974
|
ref,
|
|
2002
1975
|
className: cn("dl-menu-item dl-menu-radio-item", className),
|
|
2003
1976
|
...props,
|
|
2004
1977
|
children: [
|
|
2005
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ jsx36("span", { className: "dl-menu-radio-item__indicator", children: /* @__PURE__ */ jsx36(MenubarPrimitive2.ItemIndicator, { children: /* @__PURE__ */ jsx36(Circle3, { className: "dl-menu-item__radio-dot" }) }) }),
|
|
2006
1979
|
children
|
|
2007
1980
|
]
|
|
2008
1981
|
}
|
|
2009
1982
|
));
|
|
2010
|
-
MenubarRadioItem.displayName =
|
|
2011
|
-
var MenubarLabel =
|
|
2012
|
-
|
|
1983
|
+
MenubarRadioItem.displayName = MenubarPrimitive2.RadioItem.displayName;
|
|
1984
|
+
var MenubarLabel = React34.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1985
|
+
MenubarPrimitive2.Label,
|
|
2013
1986
|
{
|
|
2014
1987
|
ref,
|
|
2015
|
-
className: cn("dl-menu-label", inset && "
|
|
1988
|
+
className: cn("dl-menu-label", inset && "dl-menu-label--inset", className),
|
|
2016
1989
|
...props
|
|
2017
1990
|
}
|
|
2018
1991
|
));
|
|
2019
|
-
MenubarLabel.displayName =
|
|
2020
|
-
var MenubarSeparator =
|
|
2021
|
-
|
|
1992
|
+
MenubarLabel.displayName = MenubarPrimitive2.Label.displayName;
|
|
1993
|
+
var MenubarSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1994
|
+
MenubarPrimitive2.Separator,
|
|
2022
1995
|
{
|
|
2023
1996
|
ref,
|
|
2024
1997
|
className: cn("dl-menu-separator", className),
|
|
2025
1998
|
...props
|
|
2026
1999
|
}
|
|
2027
2000
|
));
|
|
2028
|
-
MenubarSeparator.displayName =
|
|
2029
|
-
var MenubarShortcut = ({
|
|
2030
|
-
|
|
2001
|
+
MenubarSeparator.displayName = MenubarPrimitive2.Separator.displayName;
|
|
2002
|
+
var MenubarShortcut = ({
|
|
2003
|
+
className,
|
|
2004
|
+
...props
|
|
2005
|
+
}) => {
|
|
2006
|
+
return /* @__PURE__ */ jsx36("span", { className: cn("dl-menu-shortcut", className), ...props });
|
|
2031
2007
|
};
|
|
2032
2008
|
MenubarShortcut.displayName = "MenubarShortcut";
|
|
2033
2009
|
|
|
2034
2010
|
// src/components/navigation-menu/navigation-menu.tsx
|
|
2035
|
-
import * as
|
|
2011
|
+
import * as React35 from "react";
|
|
2036
2012
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
2037
2013
|
import { cva as cva5 } from "class-variance-authority";
|
|
2038
2014
|
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
2039
|
-
import { jsx as
|
|
2040
|
-
var NavigationMenu =
|
|
2015
|
+
import { jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2016
|
+
var NavigationMenu = React35.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs24(
|
|
2041
2017
|
NavigationMenuPrimitive.Root,
|
|
2042
2018
|
{
|
|
2043
2019
|
ref,
|
|
@@ -2045,12 +2021,12 @@ var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
2045
2021
|
...props,
|
|
2046
2022
|
children: [
|
|
2047
2023
|
children,
|
|
2048
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ jsx37(NavigationMenuViewport, {})
|
|
2049
2025
|
]
|
|
2050
2026
|
}
|
|
2051
2027
|
));
|
|
2052
2028
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2053
|
-
var NavigationMenuList =
|
|
2029
|
+
var NavigationMenuList = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
2054
2030
|
NavigationMenuPrimitive.List,
|
|
2055
2031
|
{
|
|
2056
2032
|
ref,
|
|
@@ -2061,7 +2037,7 @@ var NavigationMenuList = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2061
2037
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
2062
2038
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
2063
2039
|
var navigationMenuTriggerStyle = cva5("dl-navigation-menu-trigger");
|
|
2064
|
-
var NavigationMenuTrigger =
|
|
2040
|
+
var NavigationMenuTrigger = React35.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs24(
|
|
2065
2041
|
NavigationMenuPrimitive.Trigger,
|
|
2066
2042
|
{
|
|
2067
2043
|
ref,
|
|
@@ -2070,12 +2046,12 @@ var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props
|
|
|
2070
2046
|
children: [
|
|
2071
2047
|
children,
|
|
2072
2048
|
" ",
|
|
2073
|
-
/* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ jsx37(ChevronDown2, { className: "dl-navigation-menu-chevron", "aria-hidden": "true" })
|
|
2074
2050
|
]
|
|
2075
2051
|
}
|
|
2076
2052
|
));
|
|
2077
2053
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2078
|
-
var NavigationMenuContent =
|
|
2054
|
+
var NavigationMenuContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
2079
2055
|
NavigationMenuPrimitive.Content,
|
|
2080
2056
|
{
|
|
2081
2057
|
ref,
|
|
@@ -2085,7 +2061,7 @@ var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
2085
2061
|
));
|
|
2086
2062
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2087
2063
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2088
|
-
var NavigationMenuViewport =
|
|
2064
|
+
var NavigationMenuViewport = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { className: "dl-navigation-menu-viewport-wrapper", children: /* @__PURE__ */ jsx37(
|
|
2089
2065
|
NavigationMenuPrimitive.Viewport,
|
|
2090
2066
|
{
|
|
2091
2067
|
className: cn("dl-navigation-menu-viewport", className),
|
|
@@ -2094,22 +2070,22 @@ var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
2094
2070
|
}
|
|
2095
2071
|
) }));
|
|
2096
2072
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2097
|
-
var NavigationMenuIndicator =
|
|
2073
|
+
var NavigationMenuIndicator = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
2098
2074
|
NavigationMenuPrimitive.Indicator,
|
|
2099
2075
|
{
|
|
2100
2076
|
ref,
|
|
2101
2077
|
className: cn("dl-navigation-menu-indicator", className),
|
|
2102
2078
|
...props,
|
|
2103
|
-
children: /* @__PURE__ */
|
|
2079
|
+
children: /* @__PURE__ */ jsx37("div", { className: "dl-navigation-menu-indicator__arrow" })
|
|
2104
2080
|
}
|
|
2105
2081
|
));
|
|
2106
2082
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
2107
2083
|
|
|
2108
2084
|
// src/components/pagination/pagination.tsx
|
|
2109
|
-
import * as
|
|
2085
|
+
import * as React36 from "react";
|
|
2110
2086
|
import { ChevronLeft, ChevronRight as ChevronRight5, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
2111
|
-
import { jsx as
|
|
2112
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */
|
|
2087
|
+
import { jsx as jsx38, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2088
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx38(
|
|
2113
2089
|
"nav",
|
|
2114
2090
|
{
|
|
2115
2091
|
role: "navigation",
|
|
@@ -2119,10 +2095,10 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx31(
|
|
|
2119
2095
|
}
|
|
2120
2096
|
);
|
|
2121
2097
|
Pagination.displayName = "Pagination";
|
|
2122
|
-
var PaginationContent =
|
|
2098
|
+
var PaginationContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38("ul", { ref, className: cn("dl-pagination-content", className), ...props }));
|
|
2123
2099
|
PaginationContent.displayName = "PaginationContent";
|
|
2124
|
-
var PaginationItem =
|
|
2125
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2100
|
+
var PaginationItem = React36.forwardRef(
|
|
2101
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx38("li", { ref, className: cn("dl-pagination-item", className), ...props })
|
|
2126
2102
|
);
|
|
2127
2103
|
PaginationItem.displayName = "PaginationItem";
|
|
2128
2104
|
var PaginationLink = ({
|
|
@@ -2130,7 +2106,7 @@ var PaginationLink = ({
|
|
|
2130
2106
|
isActive,
|
|
2131
2107
|
size = "icon",
|
|
2132
2108
|
...props
|
|
2133
|
-
}) => /* @__PURE__ */
|
|
2109
|
+
}) => /* @__PURE__ */ jsx38(
|
|
2134
2110
|
"a",
|
|
2135
2111
|
{
|
|
2136
2112
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -2148,7 +2124,7 @@ PaginationLink.displayName = "PaginationLink";
|
|
|
2148
2124
|
var PaginationPrevious = ({
|
|
2149
2125
|
className,
|
|
2150
2126
|
...props
|
|
2151
|
-
}) => /* @__PURE__ */
|
|
2127
|
+
}) => /* @__PURE__ */ jsxs25(
|
|
2152
2128
|
PaginationLink,
|
|
2153
2129
|
{
|
|
2154
2130
|
"aria-label": "Go to previous page",
|
|
@@ -2156,13 +2132,13 @@ var PaginationPrevious = ({
|
|
|
2156
2132
|
className: cn("dl-pagination-prev", className),
|
|
2157
2133
|
...props,
|
|
2158
2134
|
children: [
|
|
2159
|
-
/* @__PURE__ */
|
|
2160
|
-
/* @__PURE__ */
|
|
2135
|
+
/* @__PURE__ */ jsx38(ChevronLeft, { className: "dl-pagination-icon" }),
|
|
2136
|
+
/* @__PURE__ */ jsx38("span", { children: "Previous" })
|
|
2161
2137
|
]
|
|
2162
2138
|
}
|
|
2163
2139
|
);
|
|
2164
2140
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
2165
|
-
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */
|
|
2141
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs25(
|
|
2166
2142
|
PaginationLink,
|
|
2167
2143
|
{
|
|
2168
2144
|
"aria-label": "Go to next page",
|
|
@@ -2170,8 +2146,8 @@ var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs19(
|
|
|
2170
2146
|
className: cn("dl-pagination-next", className),
|
|
2171
2147
|
...props,
|
|
2172
2148
|
children: [
|
|
2173
|
-
/* @__PURE__ */
|
|
2174
|
-
/* @__PURE__ */
|
|
2149
|
+
/* @__PURE__ */ jsx38("span", { children: "Next" }),
|
|
2150
|
+
/* @__PURE__ */ jsx38(ChevronRight5, { className: "dl-pagination-icon" })
|
|
2175
2151
|
]
|
|
2176
2152
|
}
|
|
2177
2153
|
);
|
|
@@ -2179,29 +2155,29 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
2179
2155
|
var PaginationEllipsis = ({
|
|
2180
2156
|
className,
|
|
2181
2157
|
...props
|
|
2182
|
-
}) => /* @__PURE__ */
|
|
2158
|
+
}) => /* @__PURE__ */ jsxs25(
|
|
2183
2159
|
"span",
|
|
2184
2160
|
{
|
|
2185
2161
|
"aria-hidden": true,
|
|
2186
2162
|
className: cn("dl-pagination-ellipsis", className),
|
|
2187
2163
|
...props,
|
|
2188
2164
|
children: [
|
|
2189
|
-
/* @__PURE__ */
|
|
2190
|
-
/* @__PURE__ */
|
|
2165
|
+
/* @__PURE__ */ jsx38(MoreHorizontal2, {}),
|
|
2166
|
+
/* @__PURE__ */ jsx38("span", { className: "sr-only", children: "More pages" })
|
|
2191
2167
|
]
|
|
2192
2168
|
}
|
|
2193
2169
|
);
|
|
2194
2170
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
2195
2171
|
|
|
2196
2172
|
// src/components/panel/panel.tsx
|
|
2197
|
-
import * as
|
|
2198
|
-
import { jsx as
|
|
2199
|
-
var Panel =
|
|
2173
|
+
import * as React37 from "react";
|
|
2174
|
+
import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2175
|
+
var Panel = React37.forwardRef(
|
|
2200
2176
|
({ title, meta, children, className, ...props }, ref) => {
|
|
2201
|
-
return /* @__PURE__ */
|
|
2202
|
-
title ? /* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
2204
|
-
meta ? /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ jsxs26("section", { ref, className: cn("dl-panel", className), ...props, children: [
|
|
2178
|
+
title ? /* @__PURE__ */ jsxs26("div", { className: "dl-panel__header", children: [
|
|
2179
|
+
/* @__PURE__ */ jsx39("h2", { className: "dl-panel__title", children: title }),
|
|
2180
|
+
meta ? /* @__PURE__ */ jsx39("div", { className: "dl-panel__meta", children: meta }) : null
|
|
2205
2181
|
] }) : null,
|
|
2206
2182
|
children
|
|
2207
2183
|
] });
|
|
@@ -2210,16 +2186,16 @@ var Panel = React29.forwardRef(
|
|
|
2210
2186
|
Panel.displayName = "Panel";
|
|
2211
2187
|
|
|
2212
2188
|
// src/components/progress/progress.tsx
|
|
2213
|
-
import * as
|
|
2189
|
+
import * as React38 from "react";
|
|
2214
2190
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2215
|
-
import { jsx as
|
|
2216
|
-
var Progress =
|
|
2191
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2192
|
+
var Progress = React38.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
2217
2193
|
ProgressPrimitive.Root,
|
|
2218
2194
|
{
|
|
2219
2195
|
ref,
|
|
2220
2196
|
className: cn("dl-progress", className),
|
|
2221
2197
|
...props,
|
|
2222
|
-
children: /* @__PURE__ */
|
|
2198
|
+
children: /* @__PURE__ */ jsx40(
|
|
2223
2199
|
ProgressPrimitive.Indicator,
|
|
2224
2200
|
{
|
|
2225
2201
|
className: "dl-progress__indicator",
|
|
@@ -2231,12 +2207,12 @@ var Progress = React30.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2231
2207
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2232
2208
|
|
|
2233
2209
|
// src/components/radio-group/radio-group.tsx
|
|
2234
|
-
import * as
|
|
2210
|
+
import * as React39 from "react";
|
|
2235
2211
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
2236
2212
|
import { Circle as Circle4 } from "lucide-react";
|
|
2237
|
-
import { jsx as
|
|
2238
|
-
var RadioGroup4 =
|
|
2239
|
-
return /* @__PURE__ */
|
|
2213
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2214
|
+
var RadioGroup4 = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2215
|
+
return /* @__PURE__ */ jsx41(
|
|
2240
2216
|
RadioGroupPrimitive.Root,
|
|
2241
2217
|
{
|
|
2242
2218
|
className: cn("dl-radio-group", className),
|
|
@@ -2246,14 +2222,14 @@ var RadioGroup4 = React31.forwardRef(({ className, ...props }, ref) => {
|
|
|
2246
2222
|
);
|
|
2247
2223
|
});
|
|
2248
2224
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2249
|
-
var RadioGroupItem =
|
|
2250
|
-
return /* @__PURE__ */
|
|
2225
|
+
var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2226
|
+
return /* @__PURE__ */ jsx41(
|
|
2251
2227
|
RadioGroupPrimitive.Item,
|
|
2252
2228
|
{
|
|
2253
2229
|
ref,
|
|
2254
2230
|
className: cn("dl-radio-item", className),
|
|
2255
2231
|
...props,
|
|
2256
|
-
children: /* @__PURE__ */
|
|
2232
|
+
children: /* @__PURE__ */ jsx41(RadioGroupPrimitive.Indicator, { className: "dl-radio-item__indicator", children: /* @__PURE__ */ jsx41(Circle4, { "aria-hidden": "true" }) })
|
|
2257
2233
|
}
|
|
2258
2234
|
);
|
|
2259
2235
|
});
|
|
@@ -2262,72 +2238,67 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
|
2262
2238
|
// src/components/resizable/resizable.tsx
|
|
2263
2239
|
import { GripVertical } from "lucide-react";
|
|
2264
2240
|
import { Group as Group4, Panel as Panel2, Separator as Separator4 } from "react-resizable-panels";
|
|
2265
|
-
import { jsx as
|
|
2241
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2266
2242
|
var ResizablePanelGroup = ({
|
|
2267
2243
|
className,
|
|
2268
2244
|
...props
|
|
2269
|
-
}) => /* @__PURE__ */
|
|
2245
|
+
}) => /* @__PURE__ */ jsx42(Group4, { className: cn("dl-resizable-group", className), ...props });
|
|
2270
2246
|
var ResizablePanel = Panel2;
|
|
2271
2247
|
var ResizableHandle = ({
|
|
2272
2248
|
withHandle,
|
|
2273
2249
|
className,
|
|
2274
2250
|
...props
|
|
2275
|
-
}) => /* @__PURE__ */
|
|
2251
|
+
}) => /* @__PURE__ */ jsx42(Separator4, { className: cn("dl-resizable-handle", className), ...props, children: withHandle && /* @__PURE__ */ jsx42("div", { className: "dl-resizable-grip", children: /* @__PURE__ */ jsx42(GripVertical, {}) }) });
|
|
2276
2252
|
|
|
2277
2253
|
// src/components/scroll-area/scroll-area.tsx
|
|
2278
|
-
import * as
|
|
2254
|
+
import * as React40 from "react";
|
|
2279
2255
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
2280
|
-
import { jsx as
|
|
2281
|
-
var ScrollArea =
|
|
2256
|
+
import { jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2257
|
+
var ScrollArea = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs27(
|
|
2282
2258
|
ScrollAreaPrimitive.Root,
|
|
2283
2259
|
{
|
|
2284
2260
|
ref,
|
|
2285
2261
|
className: cn("dl-scroll-area", className),
|
|
2286
2262
|
...props,
|
|
2287
2263
|
children: [
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
/* @__PURE__ */
|
|
2290
|
-
/* @__PURE__ */
|
|
2264
|
+
/* @__PURE__ */ jsx43(ScrollAreaPrimitive.Viewport, { className: "dl-scroll-area__viewport", children }),
|
|
2265
|
+
/* @__PURE__ */ jsx43(ScrollBar, {}),
|
|
2266
|
+
/* @__PURE__ */ jsx43(ScrollAreaPrimitive.Corner, {})
|
|
2291
2267
|
]
|
|
2292
2268
|
}
|
|
2293
2269
|
));
|
|
2294
2270
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2295
|
-
var ScrollBar =
|
|
2271
|
+
var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
2296
2272
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2297
2273
|
{
|
|
2298
2274
|
ref,
|
|
2299
2275
|
orientation,
|
|
2300
2276
|
className: cn("dl-scroll-area__bar", className),
|
|
2301
2277
|
...props,
|
|
2302
|
-
children: /* @__PURE__ */
|
|
2278
|
+
children: /* @__PURE__ */ jsx43(ScrollAreaPrimitive.ScrollAreaThumb, { className: "dl-scroll-area__thumb" })
|
|
2303
2279
|
}
|
|
2304
2280
|
));
|
|
2305
2281
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2306
2282
|
|
|
2307
2283
|
// src/components/searchable-select/searchable-select.tsx
|
|
2308
|
-
import * as React33 from "react";
|
|
2309
2284
|
import { Search as Search2, Plus, Check as Check5, ChevronDown as ChevronDown3 } from "lucide-react";
|
|
2310
|
-
|
|
2311
|
-
|
|
2285
|
+
|
|
2286
|
+
// src/components/searchable-select/use-searchable-select.ts
|
|
2287
|
+
import * as React41 from "react";
|
|
2288
|
+
function useSearchableSelect({
|
|
2312
2289
|
options,
|
|
2313
2290
|
value,
|
|
2314
2291
|
onChange,
|
|
2315
|
-
|
|
2316
|
-
searchPlaceholder = "Search...",
|
|
2317
|
-
onAddNew,
|
|
2318
|
-
addNewLabel = "Add new",
|
|
2319
|
-
disabled = false,
|
|
2320
|
-
className,
|
|
2321
|
-
id
|
|
2292
|
+
onAddNew
|
|
2322
2293
|
}) {
|
|
2323
|
-
const [open, setOpen] =
|
|
2324
|
-
const [search, setSearch] =
|
|
2325
|
-
const [highlightedIndex, setHighlightedIndex] =
|
|
2326
|
-
const listRef =
|
|
2327
|
-
const selectedOption =
|
|
2294
|
+
const [open, setOpen] = React41.useState(false);
|
|
2295
|
+
const [search, setSearch] = React41.useState("");
|
|
2296
|
+
const [highlightedIndex, setHighlightedIndex] = React41.useState(0);
|
|
2297
|
+
const listRef = React41.useRef(null);
|
|
2298
|
+
const selectedOption = React41.useMemo(() => {
|
|
2328
2299
|
return options.find((opt) => opt.value === value);
|
|
2329
2300
|
}, [options, value]);
|
|
2330
|
-
const filteredOptions =
|
|
2301
|
+
const filteredOptions = React41.useMemo(() => {
|
|
2331
2302
|
if (!search.trim()) return options;
|
|
2332
2303
|
const q = search.toLowerCase();
|
|
2333
2304
|
return options.filter(
|
|
@@ -2347,7 +2318,7 @@ function SearchableSelect({
|
|
|
2347
2318
|
setSearch(q);
|
|
2348
2319
|
setHighlightedIndex(0);
|
|
2349
2320
|
};
|
|
2350
|
-
|
|
2321
|
+
React41.useEffect(() => {
|
|
2351
2322
|
if (open && listRef.current) {
|
|
2352
2323
|
const activeEl = listRef.current.querySelector(
|
|
2353
2324
|
"[data-highlighted='true']"
|
|
@@ -2357,7 +2328,7 @@ function SearchableSelect({
|
|
|
2357
2328
|
}
|
|
2358
2329
|
}
|
|
2359
2330
|
}, [highlightedIndex, open]);
|
|
2360
|
-
const groupedOptions =
|
|
2331
|
+
const groupedOptions = React41.useMemo(() => {
|
|
2361
2332
|
const hasGroups = filteredOptions.some((opt) => opt.group);
|
|
2362
2333
|
if (!hasGroups) return { Default: filteredOptions };
|
|
2363
2334
|
return filteredOptions.reduce(
|
|
@@ -2414,38 +2385,84 @@ function SearchableSelect({
|
|
|
2414
2385
|
break;
|
|
2415
2386
|
}
|
|
2416
2387
|
};
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2388
|
+
return {
|
|
2389
|
+
open,
|
|
2390
|
+
search,
|
|
2391
|
+
highlightedIndex,
|
|
2392
|
+
setHighlightedIndex,
|
|
2393
|
+
listRef,
|
|
2394
|
+
selectedOption,
|
|
2395
|
+
filteredOptions,
|
|
2396
|
+
groupedOptions,
|
|
2397
|
+
handleOpenChange,
|
|
2398
|
+
handleSearchChange,
|
|
2399
|
+
handleSelect,
|
|
2400
|
+
handleAddNew,
|
|
2401
|
+
handleKeyDown
|
|
2402
|
+
};
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
// src/components/searchable-select/searchable-select.tsx
|
|
2406
|
+
import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2407
|
+
function SearchableSelect({
|
|
2408
|
+
options,
|
|
2409
|
+
value,
|
|
2410
|
+
onChange,
|
|
2411
|
+
placeholder = "Select an option...",
|
|
2412
|
+
searchPlaceholder = "Search...",
|
|
2413
|
+
onAddNew,
|
|
2414
|
+
addNewLabel = "Add new",
|
|
2415
|
+
disabled = false,
|
|
2416
|
+
className,
|
|
2417
|
+
id
|
|
2418
|
+
}) {
|
|
2419
|
+
const {
|
|
2420
|
+
open,
|
|
2421
|
+
search,
|
|
2422
|
+
highlightedIndex,
|
|
2423
|
+
setHighlightedIndex,
|
|
2424
|
+
listRef,
|
|
2425
|
+
selectedOption,
|
|
2426
|
+
filteredOptions,
|
|
2427
|
+
groupedOptions,
|
|
2428
|
+
handleOpenChange,
|
|
2429
|
+
handleSearchChange,
|
|
2430
|
+
handleSelect,
|
|
2431
|
+
handleAddNew,
|
|
2432
|
+
handleKeyDown
|
|
2433
|
+
} = useSearchableSelect({ options, value, onChange, onAddNew });
|
|
2434
|
+
let currentIndex = 0;
|
|
2435
|
+
return /* @__PURE__ */ jsxs28(Popover, { open, onOpenChange: handleOpenChange, children: [
|
|
2436
|
+
/* @__PURE__ */ jsx44(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs28(
|
|
2437
|
+
Button,
|
|
2438
|
+
{
|
|
2439
|
+
id,
|
|
2440
|
+
variant: "outline",
|
|
2441
|
+
role: "combobox",
|
|
2442
|
+
"aria-expanded": open,
|
|
2443
|
+
disabled,
|
|
2444
|
+
onKeyDown: handleKeyDown,
|
|
2445
|
+
className: cn(
|
|
2446
|
+
"dl-searchable-select-trigger",
|
|
2447
|
+
!selectedOption && "dl-searchable-select-trigger--placeholder",
|
|
2448
|
+
className
|
|
2449
|
+
),
|
|
2450
|
+
children: [
|
|
2451
|
+
/* @__PURE__ */ jsx44("span", { className: "dl-searchable-select-truncate", children: selectedOption ? selectedOption.label : placeholder }),
|
|
2452
|
+
/* @__PURE__ */ jsx44(ChevronDown3, { className: "dl-select-icon" })
|
|
2436
2453
|
]
|
|
2437
2454
|
}
|
|
2438
2455
|
) }),
|
|
2439
|
-
/* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ jsxs28(
|
|
2440
2457
|
PopoverContent,
|
|
2441
2458
|
{
|
|
2442
2459
|
align: "start",
|
|
2443
2460
|
className: "dl-searchable-select-content",
|
|
2444
2461
|
onKeyDown: handleKeyDown,
|
|
2445
2462
|
children: [
|
|
2446
|
-
/* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2448
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ jsxs28("div", { className: "dl-searchable-select-search", children: [
|
|
2464
|
+
/* @__PURE__ */ jsx44(Search2, { className: "dl-searchable-select-search-icon" }),
|
|
2465
|
+
/* @__PURE__ */ jsx44(
|
|
2449
2466
|
Input,
|
|
2450
2467
|
{
|
|
2451
2468
|
placeholder: searchPlaceholder,
|
|
@@ -2456,19 +2473,19 @@ function SearchableSelect({
|
|
|
2456
2473
|
}
|
|
2457
2474
|
)
|
|
2458
2475
|
] }),
|
|
2459
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ jsx44(
|
|
2460
2477
|
"div",
|
|
2461
2478
|
{
|
|
2462
2479
|
ref: listRef,
|
|
2463
2480
|
onWheel: (e) => e.stopPropagation(),
|
|
2464
2481
|
className: "dl-searchable-select-list",
|
|
2465
|
-
children: Object.keys(groupedOptions).length === 0 || filteredOptions.length === 0 && !onAddNew ? /* @__PURE__ */
|
|
2466
|
-
groupName !== "Default" && /* @__PURE__ */
|
|
2482
|
+
children: Object.keys(groupedOptions).length === 0 || filteredOptions.length === 0 && !onAddNew ? /* @__PURE__ */ jsx44("div", { className: "dl-searchable-select-empty", children: "No matching options found." }) : Object.entries(groupedOptions).map(([groupName, groupOpts]) => /* @__PURE__ */ jsxs28("div", { className: "dl-searchable-select-group", children: [
|
|
2483
|
+
groupName !== "Default" && /* @__PURE__ */ jsx44("div", { className: "dl-searchable-select-group-header", children: groupName }),
|
|
2467
2484
|
groupOpts.map((option) => {
|
|
2468
2485
|
const isSelected = option.value === value;
|
|
2469
2486
|
const itemIndex = currentIndex++;
|
|
2470
2487
|
const isHighlighted = itemIndex === highlightedIndex;
|
|
2471
|
-
return /* @__PURE__ */
|
|
2488
|
+
return /* @__PURE__ */ jsxs28(
|
|
2472
2489
|
"div",
|
|
2473
2490
|
{
|
|
2474
2491
|
"data-highlighted": isHighlighted,
|
|
@@ -2480,8 +2497,8 @@ function SearchableSelect({
|
|
|
2480
2497
|
isSelected && !isHighlighted && "dl-searchable-select-item--selected"
|
|
2481
2498
|
),
|
|
2482
2499
|
children: [
|
|
2483
|
-
/* @__PURE__ */
|
|
2484
|
-
isSelected && /* @__PURE__ */
|
|
2500
|
+
/* @__PURE__ */ jsx44("span", { className: "dl-searchable-select-item-text", children: option.label }),
|
|
2501
|
+
isSelected && /* @__PURE__ */ jsx44(Check5, { className: "dl-select-check" })
|
|
2485
2502
|
]
|
|
2486
2503
|
},
|
|
2487
2504
|
option.value
|
|
@@ -2490,15 +2507,15 @@ function SearchableSelect({
|
|
|
2490
2507
|
] }, groupName))
|
|
2491
2508
|
}
|
|
2492
2509
|
),
|
|
2493
|
-
onAddNew && /* @__PURE__ */
|
|
2510
|
+
onAddNew && /* @__PURE__ */ jsx44("div", { className: "dl-searchable-select-add", children: /* @__PURE__ */ jsxs28(
|
|
2494
2511
|
"button",
|
|
2495
2512
|
{
|
|
2496
2513
|
type: "button",
|
|
2497
2514
|
onClick: handleAddNew,
|
|
2498
2515
|
className: "dl-searchable-select-add-btn",
|
|
2499
2516
|
children: [
|
|
2500
|
-
/* @__PURE__ */
|
|
2501
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ jsx44(Plus, { className: "dl-searchable-select-add-icon" }),
|
|
2518
|
+
/* @__PURE__ */ jsx44("span", { className: "dl-searchable-select-truncate", children: search.trim() ? `${addNewLabel} "${search.trim()}"` : addNewLabel })
|
|
2502
2519
|
]
|
|
2503
2520
|
}
|
|
2504
2521
|
) })
|
|
@@ -2509,14 +2526,14 @@ function SearchableSelect({
|
|
|
2509
2526
|
}
|
|
2510
2527
|
|
|
2511
2528
|
// src/components/select/select.tsx
|
|
2512
|
-
import * as
|
|
2529
|
+
import * as React42 from "react";
|
|
2513
2530
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2514
2531
|
import { Check as Check6, ChevronDown as ChevronDown4, ChevronUp } from "lucide-react";
|
|
2515
|
-
import { jsx as
|
|
2532
|
+
import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2516
2533
|
var Select = SelectPrimitive.Root;
|
|
2517
2534
|
var SelectGroup = SelectPrimitive.Group;
|
|
2518
2535
|
var SelectValue = SelectPrimitive.Value;
|
|
2519
|
-
var SelectTrigger =
|
|
2536
|
+
var SelectTrigger = React42.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs29(
|
|
2520
2537
|
SelectPrimitive.Trigger,
|
|
2521
2538
|
{
|
|
2522
2539
|
ref,
|
|
@@ -2524,32 +2541,32 @@ var SelectTrigger = React34.forwardRef(({ className, children, ...props }, ref)
|
|
|
2524
2541
|
...props,
|
|
2525
2542
|
children: [
|
|
2526
2543
|
children,
|
|
2527
|
-
/* @__PURE__ */
|
|
2544
|
+
/* @__PURE__ */ jsx45(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx45(ChevronDown4, {}) })
|
|
2528
2545
|
]
|
|
2529
2546
|
}
|
|
2530
2547
|
));
|
|
2531
2548
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2532
|
-
var SelectScrollUpButton =
|
|
2549
|
+
var SelectScrollUpButton = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2533
2550
|
SelectPrimitive.ScrollUpButton,
|
|
2534
2551
|
{
|
|
2535
2552
|
ref,
|
|
2536
2553
|
className: cn("dl-select-scroll-btn", className),
|
|
2537
2554
|
...props,
|
|
2538
|
-
children: /* @__PURE__ */
|
|
2555
|
+
children: /* @__PURE__ */ jsx45(ChevronUp, {})
|
|
2539
2556
|
}
|
|
2540
2557
|
));
|
|
2541
2558
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2542
|
-
var SelectScrollDownButton =
|
|
2559
|
+
var SelectScrollDownButton = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2543
2560
|
SelectPrimitive.ScrollDownButton,
|
|
2544
2561
|
{
|
|
2545
2562
|
ref,
|
|
2546
2563
|
className: cn("dl-select-scroll-btn", className),
|
|
2547
2564
|
...props,
|
|
2548
|
-
children: /* @__PURE__ */
|
|
2565
|
+
children: /* @__PURE__ */ jsx45(ChevronDown4, {})
|
|
2549
2566
|
}
|
|
2550
2567
|
));
|
|
2551
2568
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2552
|
-
var SelectContent =
|
|
2569
|
+
var SelectContent = React42.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx45(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs29(
|
|
2553
2570
|
SelectPrimitive.Content,
|
|
2554
2571
|
{
|
|
2555
2572
|
ref,
|
|
@@ -2557,14 +2574,14 @@ var SelectContent = React34.forwardRef(({ className, children, position = "poppe
|
|
|
2557
2574
|
position,
|
|
2558
2575
|
...props,
|
|
2559
2576
|
children: [
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__PURE__ */
|
|
2562
|
-
/* @__PURE__ */
|
|
2577
|
+
/* @__PURE__ */ jsx45(SelectScrollUpButton, {}),
|
|
2578
|
+
/* @__PURE__ */ jsx45(SelectPrimitive.Viewport, { className: "dl-select-viewport", children }),
|
|
2579
|
+
/* @__PURE__ */ jsx45(SelectScrollDownButton, {})
|
|
2563
2580
|
]
|
|
2564
2581
|
}
|
|
2565
2582
|
) }));
|
|
2566
2583
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2567
|
-
var SelectLabel =
|
|
2584
|
+
var SelectLabel = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2568
2585
|
SelectPrimitive.Label,
|
|
2569
2586
|
{
|
|
2570
2587
|
ref,
|
|
@@ -2573,20 +2590,20 @@ var SelectLabel = React34.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2573
2590
|
}
|
|
2574
2591
|
));
|
|
2575
2592
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2576
|
-
var SelectItem =
|
|
2593
|
+
var SelectItem = React42.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs29(
|
|
2577
2594
|
SelectPrimitive.Item,
|
|
2578
2595
|
{
|
|
2579
2596
|
ref,
|
|
2580
2597
|
className: cn("dl-select-item", className),
|
|
2581
2598
|
...props,
|
|
2582
2599
|
children: [
|
|
2583
|
-
/* @__PURE__ */
|
|
2584
|
-
/* @__PURE__ */
|
|
2600
|
+
/* @__PURE__ */ jsx45("span", { className: "dl-select-item__indicator", children: /* @__PURE__ */ jsx45(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx45(Check6, {}) }) }),
|
|
2601
|
+
/* @__PURE__ */ jsx45(SelectPrimitive.ItemText, { children })
|
|
2585
2602
|
]
|
|
2586
2603
|
}
|
|
2587
2604
|
));
|
|
2588
2605
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2589
|
-
var SelectSeparator =
|
|
2606
|
+
var SelectSeparator = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2590
2607
|
SelectPrimitive.Separator,
|
|
2591
2608
|
{
|
|
2592
2609
|
ref,
|
|
@@ -2597,11 +2614,11 @@ var SelectSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2597
2614
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2598
2615
|
|
|
2599
2616
|
// src/components/separator/separator.tsx
|
|
2600
|
-
import * as
|
|
2617
|
+
import * as React43 from "react";
|
|
2601
2618
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2602
|
-
import { jsx as
|
|
2603
|
-
var Separator6 =
|
|
2604
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
2619
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2620
|
+
var Separator6 = React43.forwardRef(
|
|
2621
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
2605
2622
|
SeparatorPrimitive.Root,
|
|
2606
2623
|
{
|
|
2607
2624
|
ref,
|
|
@@ -2615,16 +2632,16 @@ var Separator6 = React35.forwardRef(
|
|
|
2615
2632
|
Separator6.displayName = SeparatorPrimitive.Root.displayName;
|
|
2616
2633
|
|
|
2617
2634
|
// src/components/sheet/sheet.tsx
|
|
2618
|
-
import * as
|
|
2635
|
+
import * as React44 from "react";
|
|
2619
2636
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2620
2637
|
import { cva as cva6 } from "class-variance-authority";
|
|
2621
2638
|
import { X as X2 } from "lucide-react";
|
|
2622
|
-
import { jsx as
|
|
2639
|
+
import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2623
2640
|
var Sheet = SheetPrimitive.Root;
|
|
2624
2641
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2625
2642
|
var SheetClose = SheetPrimitive.Close;
|
|
2626
2643
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2627
|
-
var SheetOverlay =
|
|
2644
|
+
var SheetOverlay = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
2628
2645
|
SheetPrimitive.Overlay,
|
|
2629
2646
|
{
|
|
2630
2647
|
className: cn("dl-dialog-overlay", className),
|
|
@@ -2646,9 +2663,9 @@ var sheetVariants = cva6("dl-sheet-content", {
|
|
|
2646
2663
|
side: "right"
|
|
2647
2664
|
}
|
|
2648
2665
|
});
|
|
2649
|
-
var SheetContent =
|
|
2650
|
-
/* @__PURE__ */
|
|
2651
|
-
/* @__PURE__ */
|
|
2666
|
+
var SheetContent = React44.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs30(SheetPortal, { children: [
|
|
2667
|
+
/* @__PURE__ */ jsx47(SheetOverlay, {}),
|
|
2668
|
+
/* @__PURE__ */ jsxs30(
|
|
2652
2669
|
SheetPrimitive.Content,
|
|
2653
2670
|
{
|
|
2654
2671
|
ref,
|
|
@@ -2656,9 +2673,9 @@ var SheetContent = React36.forwardRef(({ side = "right", className, children, ..
|
|
|
2656
2673
|
"data-side": side,
|
|
2657
2674
|
...props,
|
|
2658
2675
|
children: [
|
|
2659
|
-
/* @__PURE__ */
|
|
2660
|
-
/* @__PURE__ */
|
|
2661
|
-
/* @__PURE__ */
|
|
2676
|
+
/* @__PURE__ */ jsxs30(SheetPrimitive.Close, { className: "dl-sheet-close", children: [
|
|
2677
|
+
/* @__PURE__ */ jsx47(X2, {}),
|
|
2678
|
+
/* @__PURE__ */ jsx47("span", { className: "sr-only", children: "Close" })
|
|
2662
2679
|
] }),
|
|
2663
2680
|
children
|
|
2664
2681
|
]
|
|
@@ -2669,14 +2686,14 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
2669
2686
|
var SheetHeader = ({
|
|
2670
2687
|
className,
|
|
2671
2688
|
...props
|
|
2672
|
-
}) => /* @__PURE__ */
|
|
2689
|
+
}) => /* @__PURE__ */ jsx47("div", { className: cn("dl-sheet__header", className), ...props });
|
|
2673
2690
|
SheetHeader.displayName = "SheetHeader";
|
|
2674
2691
|
var SheetFooter = ({
|
|
2675
2692
|
className,
|
|
2676
2693
|
...props
|
|
2677
|
-
}) => /* @__PURE__ */
|
|
2694
|
+
}) => /* @__PURE__ */ jsx47("div", { className: cn("dl-sheet__footer", className), ...props });
|
|
2678
2695
|
SheetFooter.displayName = "SheetFooter";
|
|
2679
|
-
var SheetTitle =
|
|
2696
|
+
var SheetTitle = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
2680
2697
|
SheetPrimitive.Title,
|
|
2681
2698
|
{
|
|
2682
2699
|
ref,
|
|
@@ -2685,7 +2702,7 @@ var SheetTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2685
2702
|
}
|
|
2686
2703
|
));
|
|
2687
2704
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2688
|
-
var SheetDescription =
|
|
2705
|
+
var SheetDescription = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
2689
2706
|
SheetPrimitive.Description,
|
|
2690
2707
|
{
|
|
2691
2708
|
ref,
|
|
@@ -2695,20 +2712,17 @@ var SheetDescription = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2695
2712
|
));
|
|
2696
2713
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
2697
2714
|
|
|
2698
|
-
// src/components/sidebar/sidebar.tsx
|
|
2699
|
-
import * as
|
|
2700
|
-
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2701
|
-
import { cva as cva7 } from "class-variance-authority";
|
|
2702
|
-
import { PanelLeft } from "lucide-react";
|
|
2715
|
+
// src/components/sidebar/sidebar-context.tsx
|
|
2716
|
+
import * as React46 from "react";
|
|
2703
2717
|
|
|
2704
2718
|
// src/components/tooltip/tooltip.tsx
|
|
2705
|
-
import * as
|
|
2719
|
+
import * as React45 from "react";
|
|
2706
2720
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2707
|
-
import { jsx as
|
|
2721
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2708
2722
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
2709
2723
|
var Tooltip2 = TooltipPrimitive.Root;
|
|
2710
2724
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
2711
|
-
var TooltipContent =
|
|
2725
|
+
var TooltipContent = React45.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx48(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx48(
|
|
2712
2726
|
TooltipPrimitive.Content,
|
|
2713
2727
|
{
|
|
2714
2728
|
ref,
|
|
@@ -2719,23 +2733,25 @@ var TooltipContent = React37.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
2719
2733
|
) }));
|
|
2720
2734
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
2721
2735
|
|
|
2722
|
-
// src/components/sidebar/sidebar.tsx
|
|
2723
|
-
import { jsx as
|
|
2736
|
+
// src/components/sidebar/sidebar-context.tsx
|
|
2737
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2724
2738
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2725
2739
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2726
2740
|
var SIDEBAR_WIDTH = "16rem";
|
|
2727
2741
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2728
2742
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2729
2743
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2730
|
-
var SidebarContext =
|
|
2744
|
+
var SidebarContext = React46.createContext(
|
|
2745
|
+
null
|
|
2746
|
+
);
|
|
2731
2747
|
function useSidebar() {
|
|
2732
|
-
const context =
|
|
2748
|
+
const context = React46.useContext(SidebarContext);
|
|
2733
2749
|
if (!context) {
|
|
2734
2750
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2735
2751
|
}
|
|
2736
2752
|
return context;
|
|
2737
2753
|
}
|
|
2738
|
-
var SidebarProvider =
|
|
2754
|
+
var SidebarProvider = React46.forwardRef(
|
|
2739
2755
|
({
|
|
2740
2756
|
defaultOpen = true,
|
|
2741
2757
|
open: openProp,
|
|
@@ -2746,10 +2762,10 @@ var SidebarProvider = React38.forwardRef(
|
|
|
2746
2762
|
...props
|
|
2747
2763
|
}, ref) => {
|
|
2748
2764
|
const isMobile = useIsMobile();
|
|
2749
|
-
const [openMobile, setOpenMobile] =
|
|
2750
|
-
const [_open, _setOpen] =
|
|
2765
|
+
const [openMobile, setOpenMobile] = React46.useState(false);
|
|
2766
|
+
const [_open, _setOpen] = React46.useState(defaultOpen);
|
|
2751
2767
|
const open = openProp ?? _open;
|
|
2752
|
-
const setOpen =
|
|
2768
|
+
const setOpen = React46.useCallback(
|
|
2753
2769
|
(value) => {
|
|
2754
2770
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2755
2771
|
if (setOpenProp) {
|
|
@@ -2761,10 +2777,10 @@ var SidebarProvider = React38.forwardRef(
|
|
|
2761
2777
|
},
|
|
2762
2778
|
[setOpenProp, open]
|
|
2763
2779
|
);
|
|
2764
|
-
const toggleSidebar =
|
|
2765
|
-
return isMobile ? setOpenMobile((
|
|
2780
|
+
const toggleSidebar = React46.useCallback(() => {
|
|
2781
|
+
return isMobile ? setOpenMobile((prev) => !prev) : setOpen((prev) => !prev);
|
|
2766
2782
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2767
|
-
|
|
2783
|
+
React46.useEffect(() => {
|
|
2768
2784
|
const handleKeyDown = (event) => {
|
|
2769
2785
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2770
2786
|
event.preventDefault();
|
|
@@ -2775,7 +2791,7 @@ var SidebarProvider = React38.forwardRef(
|
|
|
2775
2791
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2776
2792
|
}, [toggleSidebar]);
|
|
2777
2793
|
const state = open ? "expanded" : "collapsed";
|
|
2778
|
-
const contextValue =
|
|
2794
|
+
const contextValue = React46.useMemo(
|
|
2779
2795
|
() => ({
|
|
2780
2796
|
state,
|
|
2781
2797
|
open,
|
|
@@ -2795,7 +2811,7 @@ var SidebarProvider = React38.forwardRef(
|
|
|
2795
2811
|
toggleSidebar
|
|
2796
2812
|
]
|
|
2797
2813
|
);
|
|
2798
|
-
return /* @__PURE__ */
|
|
2814
|
+
return /* @__PURE__ */ jsx49(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx49(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx49(
|
|
2799
2815
|
"div",
|
|
2800
2816
|
{
|
|
2801
2817
|
style: {
|
|
@@ -2803,10 +2819,7 @@ var SidebarProvider = React38.forwardRef(
|
|
|
2803
2819
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
2804
2820
|
...style
|
|
2805
2821
|
},
|
|
2806
|
-
className: cn(
|
|
2807
|
-
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
2808
|
-
className
|
|
2809
|
-
),
|
|
2822
|
+
className: cn("dl-sidebar-wrapper", className),
|
|
2810
2823
|
ref,
|
|
2811
2824
|
...props,
|
|
2812
2825
|
children
|
|
@@ -2815,7 +2828,11 @@ var SidebarProvider = React38.forwardRef(
|
|
|
2815
2828
|
}
|
|
2816
2829
|
);
|
|
2817
2830
|
SidebarProvider.displayName = "SidebarProvider";
|
|
2818
|
-
|
|
2831
|
+
|
|
2832
|
+
// src/components/sidebar/sidebar-layout.tsx
|
|
2833
|
+
import * as React47 from "react";
|
|
2834
|
+
import { jsx as jsx50, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2835
|
+
var Sidebar = React47.forwardRef(
|
|
2819
2836
|
({
|
|
2820
2837
|
side = "left",
|
|
2821
2838
|
variant = "sidebar",
|
|
@@ -2826,13 +2843,10 @@ var Sidebar = React38.forwardRef(
|
|
|
2826
2843
|
}, ref) => {
|
|
2827
2844
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2828
2845
|
if (collapsible === "none") {
|
|
2829
|
-
return /* @__PURE__ */
|
|
2846
|
+
return /* @__PURE__ */ jsx50(
|
|
2830
2847
|
"div",
|
|
2831
2848
|
{
|
|
2832
|
-
className: cn(
|
|
2833
|
-
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
2834
|
-
className
|
|
2835
|
-
),
|
|
2849
|
+
className: cn("dl-sidebar dl-sidebar--static", className),
|
|
2836
2850
|
ref,
|
|
2837
2851
|
...props,
|
|
2838
2852
|
children
|
|
@@ -2840,315 +2854,196 @@ var Sidebar = React38.forwardRef(
|
|
|
2840
2854
|
);
|
|
2841
2855
|
}
|
|
2842
2856
|
if (isMobile) {
|
|
2843
|
-
return /* @__PURE__ */
|
|
2857
|
+
return /* @__PURE__ */ jsx50(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs31(
|
|
2844
2858
|
SheetContent,
|
|
2845
2859
|
{
|
|
2846
2860
|
"data-sidebar": "sidebar",
|
|
2847
2861
|
"data-mobile": "true",
|
|
2848
|
-
className: "
|
|
2862
|
+
className: "dl-sidebar-mobile [&>button]:hidden",
|
|
2849
2863
|
style: {
|
|
2850
2864
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
2851
2865
|
},
|
|
2852
2866
|
side,
|
|
2853
2867
|
children: [
|
|
2854
|
-
/* @__PURE__ */
|
|
2855
|
-
/* @__PURE__ */
|
|
2856
|
-
/* @__PURE__ */
|
|
2868
|
+
/* @__PURE__ */ jsxs31(SheetHeader, { className: "sr-only", children: [
|
|
2869
|
+
/* @__PURE__ */ jsx50(SheetTitle, { children: "Sidebar" }),
|
|
2870
|
+
/* @__PURE__ */ jsx50(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
2857
2871
|
] }),
|
|
2858
|
-
/* @__PURE__ */
|
|
2872
|
+
/* @__PURE__ */ jsx50("div", { className: "dl-sidebar-mobile-content", children })
|
|
2859
2873
|
]
|
|
2860
2874
|
}
|
|
2861
2875
|
) });
|
|
2862
2876
|
}
|
|
2863
|
-
return /* @__PURE__ */
|
|
2877
|
+
return /* @__PURE__ */ jsxs31(
|
|
2864
2878
|
"div",
|
|
2865
2879
|
{
|
|
2866
2880
|
ref,
|
|
2867
|
-
className: "
|
|
2881
|
+
className: cn("dl-sidebar", className),
|
|
2868
2882
|
"data-state": state,
|
|
2869
2883
|
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
2870
2884
|
"data-variant": variant,
|
|
2871
2885
|
"data-side": side,
|
|
2872
2886
|
children: [
|
|
2873
|
-
/* @__PURE__ */
|
|
2874
|
-
|
|
2875
|
-
{
|
|
2876
|
-
className: cn(
|
|
2877
|
-
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
2878
|
-
"group-data-[collapsible=offcanvas]:w-0",
|
|
2879
|
-
"group-data-[side=right]:rotate-180",
|
|
2880
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
2881
|
-
)
|
|
2882
|
-
}
|
|
2883
|
-
),
|
|
2884
|
-
/* @__PURE__ */ jsx42(
|
|
2885
|
-
"div",
|
|
2886
|
-
{
|
|
2887
|
-
className: cn(
|
|
2888
|
-
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
2889
|
-
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:-left-(--sidebar-width)" : "right-0 group-data-[collapsible=offcanvas]:-right-(--sidebar-width)",
|
|
2890
|
-
// Adjust the padding for floating and inset variants.
|
|
2891
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
2892
|
-
className
|
|
2893
|
-
),
|
|
2894
|
-
...props,
|
|
2895
|
-
children: /* @__PURE__ */ jsx42(
|
|
2896
|
-
"div",
|
|
2897
|
-
{
|
|
2898
|
-
"data-sidebar": "sidebar",
|
|
2899
|
-
className: "flex flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow size-full",
|
|
2900
|
-
children
|
|
2901
|
-
}
|
|
2902
|
-
)
|
|
2903
|
-
}
|
|
2904
|
-
)
|
|
2887
|
+
/* @__PURE__ */ jsx50("div", { className: "dl-sidebar-desktop-spacer" }),
|
|
2888
|
+
/* @__PURE__ */ jsx50("div", { className: "dl-sidebar-fixed", ...props, children: /* @__PURE__ */ jsx50("div", { "data-sidebar": "sidebar", className: "dl-sidebar-inner", children }) })
|
|
2905
2889
|
]
|
|
2906
2890
|
}
|
|
2907
2891
|
);
|
|
2908
2892
|
}
|
|
2909
2893
|
);
|
|
2910
2894
|
Sidebar.displayName = "Sidebar";
|
|
2911
|
-
var
|
|
2895
|
+
var SidebarRail = React47.forwardRef(({ className, ...props }, ref) => {
|
|
2912
2896
|
const { toggleSidebar } = useSidebar();
|
|
2913
|
-
return /* @__PURE__ */
|
|
2914
|
-
|
|
2897
|
+
return /* @__PURE__ */ jsx50(
|
|
2898
|
+
"button",
|
|
2915
2899
|
{
|
|
2916
2900
|
ref,
|
|
2917
|
-
"data-sidebar": "
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
},
|
|
2925
|
-
...props,
|
|
2926
|
-
children: [
|
|
2927
|
-
/* @__PURE__ */ jsx42(PanelLeft, {}),
|
|
2928
|
-
/* @__PURE__ */ jsx42("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2929
|
-
]
|
|
2901
|
+
"data-sidebar": "rail",
|
|
2902
|
+
"aria-label": "Toggle Sidebar",
|
|
2903
|
+
tabIndex: -1,
|
|
2904
|
+
onClick: toggleSidebar,
|
|
2905
|
+
title: "Toggle Sidebar",
|
|
2906
|
+
className: cn("dl-sidebar-rail", className),
|
|
2907
|
+
...props
|
|
2930
2908
|
}
|
|
2931
2909
|
);
|
|
2932
2910
|
});
|
|
2933
|
-
SidebarTrigger.displayName = "SidebarTrigger";
|
|
2934
|
-
var SidebarRail = React38.forwardRef(
|
|
2935
|
-
({ className, ...props }, ref) => {
|
|
2936
|
-
const { toggleSidebar } = useSidebar();
|
|
2937
|
-
return /* @__PURE__ */ jsx42(
|
|
2938
|
-
"button",
|
|
2939
|
-
{
|
|
2940
|
-
ref,
|
|
2941
|
-
"data-sidebar": "rail",
|
|
2942
|
-
"aria-label": "Toggle Sidebar",
|
|
2943
|
-
tabIndex: -1,
|
|
2944
|
-
onClick: toggleSidebar,
|
|
2945
|
-
title: "Toggle Sidebar",
|
|
2946
|
-
className: cn(
|
|
2947
|
-
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
2948
|
-
"in-data-[side=right]:cursor-e-resize",
|
|
2949
|
-
"[[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
2950
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
|
2951
|
-
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
2952
|
-
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
2953
|
-
className
|
|
2954
|
-
),
|
|
2955
|
-
...props
|
|
2956
|
-
}
|
|
2957
|
-
);
|
|
2958
|
-
}
|
|
2959
|
-
);
|
|
2960
2911
|
SidebarRail.displayName = "SidebarRail";
|
|
2961
|
-
var SidebarInset =
|
|
2962
|
-
({ className, ...props }, ref) => {
|
|
2963
|
-
return /* @__PURE__ */ jsx42(
|
|
2964
|
-
"main",
|
|
2965
|
-
{
|
|
2966
|
-
ref,
|
|
2967
|
-
className: cn(
|
|
2968
|
-
"relative flex w-full flex-1 flex-col bg-background",
|
|
2969
|
-
"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
2970
|
-
className
|
|
2971
|
-
),
|
|
2972
|
-
...props
|
|
2973
|
-
}
|
|
2974
|
-
);
|
|
2975
|
-
}
|
|
2912
|
+
var SidebarInset = React47.forwardRef(
|
|
2913
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx50("main", { ref, className: cn("dl-sidebar-inset", className), ...props })
|
|
2976
2914
|
);
|
|
2977
2915
|
SidebarInset.displayName = "SidebarInset";
|
|
2978
|
-
var
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
...props
|
|
2986
|
-
}
|
|
2987
|
-
);
|
|
2988
|
-
});
|
|
2989
|
-
SidebarInput.displayName = "SidebarInput";
|
|
2990
|
-
var SidebarHeader = React38.forwardRef(
|
|
2991
|
-
({ className, ...props }, ref) => {
|
|
2992
|
-
return /* @__PURE__ */ jsx42(
|
|
2993
|
-
"div",
|
|
2994
|
-
{
|
|
2995
|
-
ref,
|
|
2996
|
-
"data-sidebar": "header",
|
|
2997
|
-
className: cn("flex flex-col gap-2 p-2", className),
|
|
2998
|
-
...props
|
|
2999
|
-
}
|
|
3000
|
-
);
|
|
2916
|
+
var SidebarHeader = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
2917
|
+
"div",
|
|
2918
|
+
{
|
|
2919
|
+
ref,
|
|
2920
|
+
"data-sidebar": "header",
|
|
2921
|
+
className: cn("dl-sidebar-header", className),
|
|
2922
|
+
...props
|
|
3001
2923
|
}
|
|
3002
|
-
);
|
|
2924
|
+
));
|
|
3003
2925
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3004
|
-
var SidebarFooter =
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
className: cn("flex flex-col gap-2 p-2", className),
|
|
3012
|
-
...props
|
|
3013
|
-
}
|
|
3014
|
-
);
|
|
2926
|
+
var SidebarFooter = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
2927
|
+
"div",
|
|
2928
|
+
{
|
|
2929
|
+
ref,
|
|
2930
|
+
"data-sidebar": "footer",
|
|
2931
|
+
className: cn("dl-sidebar-footer", className),
|
|
2932
|
+
...props
|
|
3015
2933
|
}
|
|
3016
|
-
);
|
|
2934
|
+
));
|
|
3017
2935
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3018
|
-
var
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
...props
|
|
3026
|
-
}
|
|
3027
|
-
);
|
|
3028
|
-
});
|
|
3029
|
-
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3030
|
-
var SidebarContent = React38.forwardRef(
|
|
3031
|
-
({ className, ...props }, ref) => {
|
|
3032
|
-
return /* @__PURE__ */ jsx42(
|
|
3033
|
-
"div",
|
|
3034
|
-
{
|
|
3035
|
-
ref,
|
|
3036
|
-
"data-sidebar": "content",
|
|
3037
|
-
className: cn(
|
|
3038
|
-
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto",
|
|
3039
|
-
className
|
|
3040
|
-
),
|
|
3041
|
-
...props
|
|
3042
|
-
}
|
|
3043
|
-
);
|
|
2936
|
+
var SidebarContent = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
2937
|
+
"div",
|
|
2938
|
+
{
|
|
2939
|
+
ref,
|
|
2940
|
+
"data-sidebar": "content",
|
|
2941
|
+
className: cn("dl-sidebar-content", className),
|
|
2942
|
+
...props
|
|
3044
2943
|
}
|
|
3045
|
-
);
|
|
2944
|
+
));
|
|
3046
2945
|
SidebarContent.displayName = "SidebarContent";
|
|
3047
|
-
|
|
2946
|
+
|
|
2947
|
+
// src/components/sidebar/sidebar-group.tsx
|
|
2948
|
+
import * as React48 from "react";
|
|
2949
|
+
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2950
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2951
|
+
var SidebarGroup = React48.forwardRef(
|
|
3048
2952
|
({ className, ...props }, ref) => {
|
|
3049
|
-
return /* @__PURE__ */
|
|
2953
|
+
return /* @__PURE__ */ jsx51(
|
|
3050
2954
|
"div",
|
|
3051
2955
|
{
|
|
3052
2956
|
ref,
|
|
3053
2957
|
"data-sidebar": "group",
|
|
3054
|
-
className: cn("
|
|
2958
|
+
className: cn("dl-sidebar-group", className),
|
|
3055
2959
|
...props
|
|
3056
2960
|
}
|
|
3057
2961
|
);
|
|
3058
2962
|
}
|
|
3059
2963
|
);
|
|
3060
2964
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3061
|
-
var SidebarGroupLabel =
|
|
2965
|
+
var SidebarGroupLabel = React48.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3062
2966
|
const Comp = asChild ? Slot4 : "div";
|
|
3063
|
-
return /* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ jsx51(
|
|
3064
2968
|
Comp,
|
|
3065
2969
|
{
|
|
3066
2970
|
ref,
|
|
3067
2971
|
"data-sidebar": "group-label",
|
|
3068
|
-
className: cn(
|
|
3069
|
-
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4",
|
|
3070
|
-
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
3071
|
-
className
|
|
3072
|
-
),
|
|
2972
|
+
className: cn("dl-sidebar-group-label", className),
|
|
3073
2973
|
...props
|
|
3074
2974
|
}
|
|
3075
2975
|
);
|
|
3076
2976
|
});
|
|
3077
2977
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3078
|
-
var SidebarGroupAction =
|
|
2978
|
+
var SidebarGroupAction = React48.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3079
2979
|
const Comp = asChild ? Slot4 : "button";
|
|
3080
|
-
return /* @__PURE__ */
|
|
2980
|
+
return /* @__PURE__ */ jsx51(
|
|
3081
2981
|
Comp,
|
|
3082
2982
|
{
|
|
3083
2983
|
ref,
|
|
3084
2984
|
"data-sidebar": "group-action",
|
|
3085
|
-
className: cn(
|
|
3086
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring cursor-pointer transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3087
|
-
// Increases the hit area of the button on mobile.
|
|
3088
|
-
"after:absolute after:-inset-2 after:md:hidden",
|
|
3089
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3090
|
-
className
|
|
3091
|
-
),
|
|
2985
|
+
className: cn("dl-sidebar-group-action", className),
|
|
3092
2986
|
...props
|
|
3093
2987
|
}
|
|
3094
2988
|
);
|
|
3095
2989
|
});
|
|
3096
2990
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3097
|
-
var SidebarGroupContent =
|
|
2991
|
+
var SidebarGroupContent = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx51(
|
|
3098
2992
|
"div",
|
|
3099
2993
|
{
|
|
3100
2994
|
ref,
|
|
3101
2995
|
"data-sidebar": "group-content",
|
|
3102
|
-
className: cn("
|
|
2996
|
+
className: cn("dl-sidebar-group-content", className),
|
|
3103
2997
|
...props
|
|
3104
2998
|
}
|
|
3105
2999
|
));
|
|
3106
3000
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3107
|
-
|
|
3108
|
-
|
|
3001
|
+
|
|
3002
|
+
// src/components/sidebar/sidebar-menu.tsx
|
|
3003
|
+
import * as React49 from "react";
|
|
3004
|
+
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
3005
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
3006
|
+
import { jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3007
|
+
var sidebarMenuButtonVariants = cva7("dl-sidebar-menu-button", {
|
|
3008
|
+
variants: {
|
|
3009
|
+
variant: {
|
|
3010
|
+
default: "dl-sidebar-menu-button--default",
|
|
3011
|
+
outline: "dl-sidebar-menu-button--outline"
|
|
3012
|
+
},
|
|
3013
|
+
size: {
|
|
3014
|
+
default: "dl-sidebar-menu-button--md",
|
|
3015
|
+
sm: "dl-sidebar-menu-button--sm",
|
|
3016
|
+
lg: "dl-sidebar-menu-button--lg"
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
defaultVariants: {
|
|
3020
|
+
variant: "default",
|
|
3021
|
+
size: "default"
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
3024
|
+
var SidebarMenu = React49.forwardRef(
|
|
3025
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
3109
3026
|
"ul",
|
|
3110
3027
|
{
|
|
3111
3028
|
ref,
|
|
3112
3029
|
"data-sidebar": "menu",
|
|
3113
|
-
className: cn("
|
|
3030
|
+
className: cn("dl-sidebar-menu", className),
|
|
3114
3031
|
...props
|
|
3115
3032
|
}
|
|
3116
3033
|
)
|
|
3117
3034
|
);
|
|
3118
3035
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3119
|
-
var SidebarMenuItem =
|
|
3120
|
-
|
|
3121
|
-
"li",
|
|
3122
|
-
{
|
|
3123
|
-
ref,
|
|
3124
|
-
"data-sidebar": "menu-item",
|
|
3125
|
-
className: cn("group/menu-item relative", className),
|
|
3126
|
-
...props
|
|
3127
|
-
}
|
|
3128
|
-
)
|
|
3129
|
-
);
|
|
3130
|
-
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
3131
|
-
var sidebarMenuButtonVariants = cva7(
|
|
3132
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring cursor-pointer transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3036
|
+
var SidebarMenuItem = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
3037
|
+
"li",
|
|
3133
3038
|
{
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
},
|
|
3139
|
-
size: {
|
|
3140
|
-
default: "h-8 text-sm",
|
|
3141
|
-
sm: "h-7 text-xs",
|
|
3142
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
3143
|
-
}
|
|
3144
|
-
},
|
|
3145
|
-
defaultVariants: {
|
|
3146
|
-
variant: "default",
|
|
3147
|
-
size: "default"
|
|
3148
|
-
}
|
|
3039
|
+
ref,
|
|
3040
|
+
"data-sidebar": "menu-item",
|
|
3041
|
+
className: cn("dl-sidebar-menu-item", className),
|
|
3042
|
+
...props
|
|
3149
3043
|
}
|
|
3150
|
-
);
|
|
3151
|
-
|
|
3044
|
+
));
|
|
3045
|
+
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
3046
|
+
var SidebarMenuButton = React49.forwardRef(
|
|
3152
3047
|
({
|
|
3153
3048
|
asChild = false,
|
|
3154
3049
|
isActive = false,
|
|
@@ -3158,14 +3053,15 @@ var SidebarMenuButton = React38.forwardRef(
|
|
|
3158
3053
|
className,
|
|
3159
3054
|
...props
|
|
3160
3055
|
}, ref) => {
|
|
3161
|
-
const Comp = asChild ?
|
|
3056
|
+
const Comp = asChild ? Slot5 : "button";
|
|
3162
3057
|
const { isMobile, state } = useSidebar();
|
|
3163
|
-
const button = /* @__PURE__ */
|
|
3058
|
+
const button = /* @__PURE__ */ jsx52(
|
|
3164
3059
|
Comp,
|
|
3165
3060
|
{
|
|
3166
3061
|
ref,
|
|
3167
3062
|
"data-sidebar": "menu-button",
|
|
3168
3063
|
"data-size": size,
|
|
3064
|
+
"data-variant": variant,
|
|
3169
3065
|
"data-active": isActive,
|
|
3170
3066
|
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
3171
3067
|
...props
|
|
@@ -3174,42 +3070,33 @@ var SidebarMenuButton = React38.forwardRef(
|
|
|
3174
3070
|
if (!tooltip) {
|
|
3175
3071
|
return button;
|
|
3176
3072
|
}
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
}
|
|
3182
|
-
return /* @__PURE__ */ jsxs25(Tooltip2, { children: [
|
|
3183
|
-
/* @__PURE__ */ jsx42(TooltipTrigger, { asChild: true, children: button }),
|
|
3184
|
-
/* @__PURE__ */ jsx42(
|
|
3073
|
+
const tooltipProps = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
3074
|
+
return /* @__PURE__ */ jsxs32(Tooltip2, { children: [
|
|
3075
|
+
/* @__PURE__ */ jsx52(TooltipTrigger, { asChild: true, children: button }),
|
|
3076
|
+
/* @__PURE__ */ jsx52(
|
|
3185
3077
|
TooltipContent,
|
|
3186
3078
|
{
|
|
3187
3079
|
side: "right",
|
|
3188
3080
|
align: "center",
|
|
3189
3081
|
hidden: state !== "collapsed" || isMobile,
|
|
3190
|
-
...
|
|
3082
|
+
...tooltipProps
|
|
3191
3083
|
}
|
|
3192
3084
|
)
|
|
3193
3085
|
] });
|
|
3194
3086
|
}
|
|
3195
3087
|
);
|
|
3196
3088
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
3197
|
-
var SidebarMenuAction =
|
|
3198
|
-
const Comp = asChild ?
|
|
3199
|
-
return /* @__PURE__ */
|
|
3089
|
+
var SidebarMenuAction = React49.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
3090
|
+
const Comp = asChild ? Slot5 : "button";
|
|
3091
|
+
return /* @__PURE__ */ jsx52(
|
|
3200
3092
|
Comp,
|
|
3201
3093
|
{
|
|
3202
3094
|
ref,
|
|
3203
3095
|
"data-sidebar": "menu-action",
|
|
3096
|
+
"data-show-on-hover": showOnHover ? "true" : void 0,
|
|
3204
3097
|
className: cn(
|
|
3205
|
-
"
|
|
3206
|
-
|
|
3207
|
-
"after:absolute after:-inset-2 after:md:hidden",
|
|
3208
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
3209
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
3210
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
3211
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3212
|
-
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
|
|
3098
|
+
"dl-sidebar-menu-action",
|
|
3099
|
+
showOnHover && "dl-sidebar-menu-action--hover-only",
|
|
3213
3100
|
className
|
|
3214
3101
|
),
|
|
3215
3102
|
...props
|
|
@@ -3217,51 +3104,46 @@ var SidebarMenuAction = React38.forwardRef(({ className, asChild = false, showOn
|
|
|
3217
3104
|
);
|
|
3218
3105
|
});
|
|
3219
3106
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
3220
|
-
var SidebarMenuBadge =
|
|
3107
|
+
var SidebarMenuBadge = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
3221
3108
|
"div",
|
|
3222
3109
|
{
|
|
3223
3110
|
ref,
|
|
3224
3111
|
"data-sidebar": "menu-badge",
|
|
3225
|
-
className: cn(
|
|
3226
|
-
"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
|
|
3227
|
-
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
3228
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
3229
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
3230
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
3231
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3232
|
-
className
|
|
3233
|
-
),
|
|
3112
|
+
className: cn("dl-sidebar-menu-badge", className),
|
|
3234
3113
|
...props
|
|
3235
3114
|
}
|
|
3236
3115
|
));
|
|
3237
3116
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
3238
|
-
|
|
3239
|
-
|
|
3117
|
+
|
|
3118
|
+
// src/components/sidebar/sidebar-submenu.tsx
|
|
3119
|
+
import * as React50 from "react";
|
|
3120
|
+
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
3121
|
+
import { jsx as jsx53, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3122
|
+
var SidebarMenuSkeleton = React50.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
3123
|
+
const width = React50.useMemo(() => {
|
|
3240
3124
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3241
3125
|
}, []);
|
|
3242
|
-
return /* @__PURE__ */
|
|
3126
|
+
return /* @__PURE__ */ jsxs33(
|
|
3243
3127
|
"div",
|
|
3244
3128
|
{
|
|
3245
3129
|
ref,
|
|
3246
3130
|
"data-sidebar": "menu-skeleton",
|
|
3247
|
-
className: cn("
|
|
3131
|
+
className: cn("dl-sidebar-menu-skeleton", className),
|
|
3248
3132
|
...props,
|
|
3249
3133
|
children: [
|
|
3250
|
-
showIcon && /* @__PURE__ */
|
|
3134
|
+
showIcon && /* @__PURE__ */ jsx53(
|
|
3251
3135
|
Skeleton,
|
|
3252
3136
|
{
|
|
3253
|
-
className: "
|
|
3137
|
+
className: "dl-sidebar-menu-skeleton-icon",
|
|
3254
3138
|
"data-sidebar": "menu-skeleton-icon"
|
|
3255
3139
|
}
|
|
3256
3140
|
),
|
|
3257
|
-
/* @__PURE__ */
|
|
3141
|
+
/* @__PURE__ */ jsx53(
|
|
3258
3142
|
Skeleton,
|
|
3259
3143
|
{
|
|
3260
|
-
className: "
|
|
3144
|
+
className: "dl-sidebar-menu-skeleton-text",
|
|
3261
3145
|
"data-sidebar": "menu-skeleton-text",
|
|
3262
|
-
style: {
|
|
3263
|
-
"--skeleton-width": width
|
|
3264
|
-
}
|
|
3146
|
+
style: { "--skeleton-width": width }
|
|
3265
3147
|
}
|
|
3266
3148
|
)
|
|
3267
3149
|
]
|
|
@@ -3269,27 +3151,21 @@ var SidebarMenuSkeleton = React38.forwardRef(({ className, showIcon = false, ...
|
|
|
3269
3151
|
);
|
|
3270
3152
|
});
|
|
3271
3153
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
3272
|
-
var SidebarMenuSub =
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
className
|
|
3282
|
-
),
|
|
3283
|
-
...props
|
|
3284
|
-
}
|
|
3285
|
-
)
|
|
3286
|
-
);
|
|
3154
|
+
var SidebarMenuSub = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx53(
|
|
3155
|
+
"ul",
|
|
3156
|
+
{
|
|
3157
|
+
ref,
|
|
3158
|
+
"data-sidebar": "menu-sub",
|
|
3159
|
+
className: cn("dl-sidebar-menu-sub", className),
|
|
3160
|
+
...props
|
|
3161
|
+
}
|
|
3162
|
+
));
|
|
3287
3163
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
3288
|
-
var SidebarMenuSubItem =
|
|
3164
|
+
var SidebarMenuSubItem = React50.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx53("li", { ref, ...props }));
|
|
3289
3165
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
3290
|
-
var SidebarMenuSubButton =
|
|
3291
|
-
const Comp = asChild ?
|
|
3292
|
-
return /* @__PURE__ */
|
|
3166
|
+
var SidebarMenuSubButton = React50.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
3167
|
+
const Comp = asChild ? Slot6 : "a";
|
|
3168
|
+
return /* @__PURE__ */ jsx53(
|
|
3293
3169
|
Comp,
|
|
3294
3170
|
{
|
|
3295
3171
|
ref,
|
|
@@ -3297,11 +3173,8 @@ var SidebarMenuSubButton = React38.forwardRef(({ asChild = false, size = "md", i
|
|
|
3297
3173
|
"data-size": size,
|
|
3298
3174
|
"data-active": isActive,
|
|
3299
3175
|
className: cn(
|
|
3300
|
-
"
|
|
3301
|
-
"
|
|
3302
|
-
size === "sm" && "text-xs",
|
|
3303
|
-
size === "md" && "text-sm",
|
|
3304
|
-
"group-data-[collapsible=icon]:hidden",
|
|
3176
|
+
"dl-sidebar-menu-sub-button",
|
|
3177
|
+
size === "sm" && "dl-sidebar-menu-sub-button--sm",
|
|
3305
3178
|
className
|
|
3306
3179
|
),
|
|
3307
3180
|
...props
|
|
@@ -3310,19 +3183,71 @@ var SidebarMenuSubButton = React38.forwardRef(({ asChild = false, size = "md", i
|
|
|
3310
3183
|
});
|
|
3311
3184
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
3312
3185
|
|
|
3186
|
+
// src/components/sidebar/sidebar-controls.tsx
|
|
3187
|
+
import * as React51 from "react";
|
|
3188
|
+
import { PanelLeft } from "lucide-react";
|
|
3189
|
+
import { jsx as jsx54, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3190
|
+
var SidebarTrigger = React51.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3191
|
+
const { toggleSidebar } = useSidebar();
|
|
3192
|
+
return /* @__PURE__ */ jsxs34(
|
|
3193
|
+
Button,
|
|
3194
|
+
{
|
|
3195
|
+
ref,
|
|
3196
|
+
"data-sidebar": "trigger",
|
|
3197
|
+
variant: "ghost",
|
|
3198
|
+
size: "icon",
|
|
3199
|
+
className: cn("dl-sidebar-trigger", className),
|
|
3200
|
+
onClick: (event) => {
|
|
3201
|
+
onClick?.(event);
|
|
3202
|
+
toggleSidebar();
|
|
3203
|
+
},
|
|
3204
|
+
...props,
|
|
3205
|
+
children: [
|
|
3206
|
+
/* @__PURE__ */ jsx54(PanelLeft, {}),
|
|
3207
|
+
/* @__PURE__ */ jsx54("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
3208
|
+
]
|
|
3209
|
+
}
|
|
3210
|
+
);
|
|
3211
|
+
});
|
|
3212
|
+
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3213
|
+
var SidebarSeparator = React51.forwardRef(({ className, ...props }, ref) => {
|
|
3214
|
+
return /* @__PURE__ */ jsx54(
|
|
3215
|
+
Separator6,
|
|
3216
|
+
{
|
|
3217
|
+
ref,
|
|
3218
|
+
"data-sidebar": "separator",
|
|
3219
|
+
className: cn("dl-sidebar-separator", className),
|
|
3220
|
+
...props
|
|
3221
|
+
}
|
|
3222
|
+
);
|
|
3223
|
+
});
|
|
3224
|
+
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3225
|
+
var SidebarInput = React51.forwardRef(({ className, ...props }, ref) => {
|
|
3226
|
+
return /* @__PURE__ */ jsx54(
|
|
3227
|
+
Input,
|
|
3228
|
+
{
|
|
3229
|
+
ref,
|
|
3230
|
+
"data-sidebar": "input",
|
|
3231
|
+
className: cn("dl-sidebar-input", className),
|
|
3232
|
+
...props
|
|
3233
|
+
}
|
|
3234
|
+
);
|
|
3235
|
+
});
|
|
3236
|
+
SidebarInput.displayName = "SidebarInput";
|
|
3237
|
+
|
|
3313
3238
|
// src/components/slider/slider.tsx
|
|
3314
|
-
import * as
|
|
3239
|
+
import * as React52 from "react";
|
|
3315
3240
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
3316
|
-
import { jsx as
|
|
3317
|
-
var Slider =
|
|
3241
|
+
import { jsx as jsx55, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3242
|
+
var Slider = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs35(
|
|
3318
3243
|
SliderPrimitive.Root,
|
|
3319
3244
|
{
|
|
3320
3245
|
ref,
|
|
3321
3246
|
className: cn("dl-slider", className),
|
|
3322
3247
|
...props,
|
|
3323
3248
|
children: [
|
|
3324
|
-
/* @__PURE__ */
|
|
3325
|
-
/* @__PURE__ */
|
|
3249
|
+
/* @__PURE__ */ jsx55(SliderPrimitive.Track, { className: "dl-slider__track", children: /* @__PURE__ */ jsx55(SliderPrimitive.Range, { className: "dl-slider__range" }) }),
|
|
3250
|
+
/* @__PURE__ */ jsx55(SliderPrimitive.Thumb, { className: "dl-slider__thumb" })
|
|
3326
3251
|
]
|
|
3327
3252
|
}
|
|
3328
3253
|
));
|
|
@@ -3331,7 +3256,7 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
3331
3256
|
// src/components/sonner/sonner.tsx
|
|
3332
3257
|
import { useEffect as useEffect7, useState as useState6 } from "react";
|
|
3333
3258
|
import { Toaster as Sonner, toast } from "sonner";
|
|
3334
|
-
import { jsx as
|
|
3259
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
3335
3260
|
var Toaster = ({ theme: propTheme, ...props }) => {
|
|
3336
3261
|
const [resolvedTheme, setResolvedTheme] = useState6("system");
|
|
3337
3262
|
useEffect7(() => {
|
|
@@ -3356,7 +3281,7 @@ var Toaster = ({ theme: propTheme, ...props }) => {
|
|
|
3356
3281
|
});
|
|
3357
3282
|
return () => observer.disconnect();
|
|
3358
3283
|
}, [propTheme]);
|
|
3359
|
-
return /* @__PURE__ */
|
|
3284
|
+
return /* @__PURE__ */ jsx56(
|
|
3360
3285
|
Sonner,
|
|
3361
3286
|
{
|
|
3362
3287
|
theme: propTheme ?? resolvedTheme,
|
|
@@ -3375,8 +3300,8 @@ var Toaster = ({ theme: propTheme, ...props }) => {
|
|
|
3375
3300
|
};
|
|
3376
3301
|
|
|
3377
3302
|
// src/components/status-badge/status-badge.tsx
|
|
3378
|
-
import * as
|
|
3379
|
-
import { jsx as
|
|
3303
|
+
import * as React54 from "react";
|
|
3304
|
+
import { jsx as jsx57, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3380
3305
|
var statusCategoryMap = {
|
|
3381
3306
|
Completed: "dl-status-badge--success",
|
|
3382
3307
|
COMPLETED: "dl-status-badge--success",
|
|
@@ -3396,18 +3321,18 @@ var statusCategoryMap = {
|
|
|
3396
3321
|
DISABLED: "dl-status-badge--muted",
|
|
3397
3322
|
IDLE: "dl-status-badge--muted"
|
|
3398
3323
|
};
|
|
3399
|
-
var StatusBadge =
|
|
3324
|
+
var StatusBadge = React54.forwardRef(
|
|
3400
3325
|
({ status, className, ...props }, ref) => {
|
|
3401
3326
|
const normalizedStatus = status?.trim() ?? "";
|
|
3402
3327
|
const colorClass = statusCategoryMap[normalizedStatus] ?? "dl-status-badge--muted";
|
|
3403
|
-
return /* @__PURE__ */
|
|
3328
|
+
return /* @__PURE__ */ jsxs36(
|
|
3404
3329
|
"span",
|
|
3405
3330
|
{
|
|
3406
3331
|
ref,
|
|
3407
3332
|
className: cn("dl-status-badge", colorClass, className),
|
|
3408
3333
|
...props,
|
|
3409
3334
|
children: [
|
|
3410
|
-
/* @__PURE__ */
|
|
3335
|
+
/* @__PURE__ */ jsx57("span", { className: "dl-status-badge__dot" }),
|
|
3411
3336
|
normalizedStatus
|
|
3412
3337
|
]
|
|
3413
3338
|
}
|
|
@@ -3417,8 +3342,8 @@ var StatusBadge = React41.forwardRef(
|
|
|
3417
3342
|
StatusBadge.displayName = "StatusBadge";
|
|
3418
3343
|
|
|
3419
3344
|
// src/components/status-chip/status-chip.tsx
|
|
3420
|
-
import * as
|
|
3421
|
-
import { jsx as
|
|
3345
|
+
import * as React55 from "react";
|
|
3346
|
+
import { jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
3422
3347
|
var statusToneMap = {
|
|
3423
3348
|
active: "dl-status-chip--primary",
|
|
3424
3349
|
running: "dl-status-chip--primary",
|
|
@@ -3440,17 +3365,17 @@ var statusToneMap = {
|
|
|
3440
3365
|
error: "dl-status-chip--destructive",
|
|
3441
3366
|
offline: "dl-status-chip--destructive"
|
|
3442
3367
|
};
|
|
3443
|
-
var StatusChip =
|
|
3368
|
+
var StatusChip = React55.forwardRef(
|
|
3444
3369
|
({ status, className, ...props }, ref) => {
|
|
3445
3370
|
const toneClass = statusToneMap[status] ?? "dl-status-chip--muted";
|
|
3446
|
-
return /* @__PURE__ */
|
|
3371
|
+
return /* @__PURE__ */ jsxs37(
|
|
3447
3372
|
"span",
|
|
3448
3373
|
{
|
|
3449
3374
|
ref,
|
|
3450
3375
|
className: cn("dl-status-chip", toneClass, className),
|
|
3451
3376
|
...props,
|
|
3452
3377
|
children: [
|
|
3453
|
-
/* @__PURE__ */
|
|
3378
|
+
/* @__PURE__ */ jsx58("span", { className: "dl-status-chip__dot" }),
|
|
3454
3379
|
status
|
|
3455
3380
|
]
|
|
3456
3381
|
}
|
|
@@ -3460,52 +3385,52 @@ var StatusChip = React42.forwardRef(
|
|
|
3460
3385
|
StatusChip.displayName = "StatusChip";
|
|
3461
3386
|
|
|
3462
3387
|
// src/components/switch/switch.tsx
|
|
3463
|
-
import * as
|
|
3388
|
+
import * as React56 from "react";
|
|
3464
3389
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
3465
|
-
import { jsx as
|
|
3466
|
-
var Switch =
|
|
3390
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
3391
|
+
var Switch = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
3467
3392
|
SwitchPrimitives.Root,
|
|
3468
3393
|
{
|
|
3469
3394
|
className: cn("dl-switch", className),
|
|
3470
3395
|
...props,
|
|
3471
3396
|
ref,
|
|
3472
|
-
children: /* @__PURE__ */
|
|
3397
|
+
children: /* @__PURE__ */ jsx59(SwitchPrimitives.Thumb, { className: "dl-switch__thumb" })
|
|
3473
3398
|
}
|
|
3474
3399
|
));
|
|
3475
3400
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
3476
3401
|
|
|
3477
3402
|
// src/components/table/table.tsx
|
|
3478
|
-
import * as
|
|
3479
|
-
import { jsx as
|
|
3480
|
-
var Table =
|
|
3481
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3403
|
+
import * as React57 from "react";
|
|
3404
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
3405
|
+
var Table = React57.forwardRef(
|
|
3406
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx60("div", { className: "dl-table-wrapper", children: /* @__PURE__ */ jsx60("table", { ref, className: cn("dl-table", className), ...props }) })
|
|
3482
3407
|
);
|
|
3483
3408
|
Table.displayName = "Table";
|
|
3484
|
-
var TableHeader =
|
|
3485
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3409
|
+
var TableHeader = React57.forwardRef(
|
|
3410
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx60("thead", { ref, className: cn("dl-table__head", className), ...props })
|
|
3486
3411
|
);
|
|
3487
3412
|
TableHeader.displayName = "TableHeader";
|
|
3488
|
-
var TableBody =
|
|
3489
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3413
|
+
var TableBody = React57.forwardRef(
|
|
3414
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx60("tbody", { ref, className: cn("dl-table__body", className), ...props })
|
|
3490
3415
|
);
|
|
3491
3416
|
TableBody.displayName = "TableBody";
|
|
3492
|
-
var TableFooter =
|
|
3493
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3417
|
+
var TableFooter = React57.forwardRef(
|
|
3418
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx60("tfoot", { ref, className: cn("dl-table__foot", className), ...props })
|
|
3494
3419
|
);
|
|
3495
3420
|
TableFooter.displayName = "TableFooter";
|
|
3496
|
-
var TableRow =
|
|
3497
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3421
|
+
var TableRow = React57.forwardRef(
|
|
3422
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx60("tr", { ref, className: cn("dl-table__row", className), ...props })
|
|
3498
3423
|
);
|
|
3499
3424
|
TableRow.displayName = "TableRow";
|
|
3500
|
-
var TableHead =
|
|
3501
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3425
|
+
var TableHead = React57.forwardRef(
|
|
3426
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx60("th", { ref, className: cn("dl-table__head-cell", className), ...props })
|
|
3502
3427
|
);
|
|
3503
3428
|
TableHead.displayName = "TableHead";
|
|
3504
|
-
var TableCell =
|
|
3505
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3429
|
+
var TableCell = React57.forwardRef(
|
|
3430
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx60("td", { ref, className: cn("dl-table__cell", className), ...props })
|
|
3506
3431
|
);
|
|
3507
3432
|
TableCell.displayName = "TableCell";
|
|
3508
|
-
var TableCaption =
|
|
3433
|
+
var TableCaption = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx60(
|
|
3509
3434
|
"caption",
|
|
3510
3435
|
{
|
|
3511
3436
|
ref,
|
|
@@ -3516,11 +3441,11 @@ var TableCaption = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3516
3441
|
TableCaption.displayName = "TableCaption";
|
|
3517
3442
|
|
|
3518
3443
|
// src/components/tabs/tabs.tsx
|
|
3519
|
-
import * as
|
|
3444
|
+
import * as React58 from "react";
|
|
3520
3445
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3521
|
-
import { jsx as
|
|
3446
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
3522
3447
|
var Tabs = TabsPrimitive.Root;
|
|
3523
|
-
var TabsList =
|
|
3448
|
+
var TabsList = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx61(
|
|
3524
3449
|
TabsPrimitive.List,
|
|
3525
3450
|
{
|
|
3526
3451
|
ref,
|
|
@@ -3529,7 +3454,7 @@ var TabsList = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3529
3454
|
}
|
|
3530
3455
|
));
|
|
3531
3456
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3532
|
-
var TabsTrigger =
|
|
3457
|
+
var TabsTrigger = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx61(
|
|
3533
3458
|
TabsPrimitive.Trigger,
|
|
3534
3459
|
{
|
|
3535
3460
|
ref,
|
|
@@ -3538,7 +3463,7 @@ var TabsTrigger = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3538
3463
|
}
|
|
3539
3464
|
));
|
|
3540
3465
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3541
|
-
var TabsContent =
|
|
3466
|
+
var TabsContent = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx61(
|
|
3542
3467
|
TabsPrimitive.Content,
|
|
3543
3468
|
{
|
|
3544
3469
|
ref,
|
|
@@ -3549,18 +3474,18 @@ var TabsContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3549
3474
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
3550
3475
|
|
|
3551
3476
|
// src/components/textarea/textarea.tsx
|
|
3552
|
-
import * as
|
|
3553
|
-
import { jsx as
|
|
3554
|
-
var Textarea =
|
|
3555
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3477
|
+
import * as React59 from "react";
|
|
3478
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
3479
|
+
var Textarea = React59.forwardRef(
|
|
3480
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx62("textarea", { className: cn("dl-textarea", className), ref, ...props })
|
|
3556
3481
|
);
|
|
3557
3482
|
Textarea.displayName = "Textarea";
|
|
3558
3483
|
|
|
3559
3484
|
// src/components/toggle/toggle.tsx
|
|
3560
|
-
import * as
|
|
3485
|
+
import * as React60 from "react";
|
|
3561
3486
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
3562
3487
|
import { cva as cva8 } from "class-variance-authority";
|
|
3563
|
-
import { jsx as
|
|
3488
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
3564
3489
|
var toggleVariants = cva8("dl-toggle", {
|
|
3565
3490
|
variants: {
|
|
3566
3491
|
variant: {
|
|
@@ -3578,7 +3503,7 @@ var toggleVariants = cva8("dl-toggle", {
|
|
|
3578
3503
|
size: "default"
|
|
3579
3504
|
}
|
|
3580
3505
|
});
|
|
3581
|
-
var Toggle =
|
|
3506
|
+
var Toggle = React60.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx63(
|
|
3582
3507
|
TogglePrimitive.Root,
|
|
3583
3508
|
{
|
|
3584
3509
|
ref,
|
|
@@ -3589,26 +3514,26 @@ var Toggle = React47.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
3589
3514
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3590
3515
|
|
|
3591
3516
|
// src/components/toggle-group/toggle-group.tsx
|
|
3592
|
-
import * as
|
|
3517
|
+
import * as React61 from "react";
|
|
3593
3518
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3594
|
-
import { jsx as
|
|
3595
|
-
var ToggleGroupContext =
|
|
3519
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
3520
|
+
var ToggleGroupContext = React61.createContext({
|
|
3596
3521
|
size: "default",
|
|
3597
3522
|
variant: "default"
|
|
3598
3523
|
});
|
|
3599
|
-
var ToggleGroup =
|
|
3524
|
+
var ToggleGroup = React61.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx64(
|
|
3600
3525
|
ToggleGroupPrimitive.Root,
|
|
3601
3526
|
{
|
|
3602
3527
|
ref,
|
|
3603
3528
|
className: cn("dl-toggle-group", className),
|
|
3604
3529
|
...props,
|
|
3605
|
-
children: /* @__PURE__ */
|
|
3530
|
+
children: /* @__PURE__ */ jsx64(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
3606
3531
|
}
|
|
3607
3532
|
));
|
|
3608
3533
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
3609
|
-
var ToggleGroupItem =
|
|
3610
|
-
const context =
|
|
3611
|
-
return /* @__PURE__ */
|
|
3534
|
+
var ToggleGroupItem = React61.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
3535
|
+
const context = React61.useContext(ToggleGroupContext);
|
|
3536
|
+
return /* @__PURE__ */ jsx64(
|
|
3612
3537
|
ToggleGroupPrimitive.Item,
|
|
3613
3538
|
{
|
|
3614
3539
|
ref,
|
|
@@ -3627,17 +3552,17 @@ var ToggleGroupItem = React48.forwardRef(({ className, children, variant, size,
|
|
|
3627
3552
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
3628
3553
|
|
|
3629
3554
|
// src/components/metric-card/metric-card.tsx
|
|
3630
|
-
import * as
|
|
3631
|
-
import { jsx as
|
|
3632
|
-
var MetricCard =
|
|
3555
|
+
import * as React62 from "react";
|
|
3556
|
+
import { jsx as jsx65, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
3557
|
+
var MetricCard = React62.forwardRef(
|
|
3633
3558
|
({ label, value, note, positive, icon, className, ...props }, ref) => {
|
|
3634
|
-
return /* @__PURE__ */
|
|
3635
|
-
/* @__PURE__ */
|
|
3636
|
-
/* @__PURE__ */
|
|
3637
|
-
icon && /* @__PURE__ */
|
|
3559
|
+
return /* @__PURE__ */ jsxs38("div", { ref, className: cn("dl-metric-card", className), ...props, children: [
|
|
3560
|
+
/* @__PURE__ */ jsxs38("div", { className: "dl-metric-card__header", children: [
|
|
3561
|
+
/* @__PURE__ */ jsx65("span", { className: "dl-metric-card__label", children: label }),
|
|
3562
|
+
icon && /* @__PURE__ */ jsx65("span", { className: "dl-metric-card__icon", children: icon })
|
|
3638
3563
|
] }),
|
|
3639
|
-
/* @__PURE__ */
|
|
3640
|
-
note && /* @__PURE__ */
|
|
3564
|
+
/* @__PURE__ */ jsx65("div", { className: "dl-metric-card__value-row", children: /* @__PURE__ */ jsx65("span", { className: "dl-metric-card__value", children: value }) }),
|
|
3565
|
+
note && /* @__PURE__ */ jsx65(
|
|
3641
3566
|
"div",
|
|
3642
3567
|
{
|
|
3643
3568
|
className: cn(
|
|
@@ -3652,18 +3577,18 @@ var MetricCard = React49.forwardRef(
|
|
|
3652
3577
|
}
|
|
3653
3578
|
);
|
|
3654
3579
|
MetricCard.displayName = "MetricCard";
|
|
3655
|
-
var MetricsGrid =
|
|
3580
|
+
var MetricsGrid = React62.forwardRef(
|
|
3656
3581
|
({ children, className, ...props }, ref) => {
|
|
3657
|
-
return /* @__PURE__ */
|
|
3582
|
+
return /* @__PURE__ */ jsx65("div", { ref, className: cn("dl-metrics-grid", className), ...props, children });
|
|
3658
3583
|
}
|
|
3659
3584
|
);
|
|
3660
3585
|
MetricsGrid.displayName = "MetricsGrid";
|
|
3661
3586
|
|
|
3662
3587
|
// src/components/copy-button/copy-button.tsx
|
|
3663
|
-
import * as
|
|
3588
|
+
import * as React63 from "react";
|
|
3664
3589
|
import { Check as Check7, Copy } from "lucide-react";
|
|
3665
|
-
import { jsx as
|
|
3666
|
-
var CopyButton =
|
|
3590
|
+
import { jsx as jsx66, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3591
|
+
var CopyButton = React63.forwardRef(
|
|
3667
3592
|
({
|
|
3668
3593
|
textToCopy,
|
|
3669
3594
|
label = "Copy",
|
|
@@ -3673,7 +3598,7 @@ var CopyButton = React50.forwardRef(
|
|
|
3673
3598
|
onClick,
|
|
3674
3599
|
...props
|
|
3675
3600
|
}, ref) => {
|
|
3676
|
-
const [isCopied, setIsCopied] =
|
|
3601
|
+
const [isCopied, setIsCopied] = React63.useState(false);
|
|
3677
3602
|
const handleCopy = async (e) => {
|
|
3678
3603
|
onClick?.(e);
|
|
3679
3604
|
if (e.defaultPrevented) return;
|
|
@@ -3684,7 +3609,7 @@ var CopyButton = React50.forwardRef(
|
|
|
3684
3609
|
} catch {
|
|
3685
3610
|
}
|
|
3686
3611
|
};
|
|
3687
|
-
return /* @__PURE__ */
|
|
3612
|
+
return /* @__PURE__ */ jsxs39(
|
|
3688
3613
|
"button",
|
|
3689
3614
|
{
|
|
3690
3615
|
ref,
|
|
@@ -3697,8 +3622,8 @@ var CopyButton = React50.forwardRef(
|
|
|
3697
3622
|
onClick: handleCopy,
|
|
3698
3623
|
...props,
|
|
3699
3624
|
children: [
|
|
3700
|
-
isCopied ? /* @__PURE__ */
|
|
3701
|
-
/* @__PURE__ */
|
|
3625
|
+
isCopied ? /* @__PURE__ */ jsx66(Check7, { className: "dl-copy-button__icon" }) : /* @__PURE__ */ jsx66(Copy, { className: "dl-copy-button__icon" }),
|
|
3626
|
+
/* @__PURE__ */ jsx66("span", { children: isCopied ? copiedLabel : label })
|
|
3702
3627
|
]
|
|
3703
3628
|
}
|
|
3704
3629
|
);
|
|
@@ -3707,10 +3632,10 @@ var CopyButton = React50.forwardRef(
|
|
|
3707
3632
|
CopyButton.displayName = "CopyButton";
|
|
3708
3633
|
|
|
3709
3634
|
// src/components/secret-reveal-card/secret-reveal-card.tsx
|
|
3710
|
-
import * as
|
|
3635
|
+
import * as React64 from "react";
|
|
3711
3636
|
import { AlertTriangle } from "lucide-react";
|
|
3712
|
-
import { jsx as
|
|
3713
|
-
var SecretRevealCard =
|
|
3637
|
+
import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3638
|
+
var SecretRevealCard = React64.forwardRef(
|
|
3714
3639
|
({
|
|
3715
3640
|
secret,
|
|
3716
3641
|
warningMessage = "One-time reveal. Please copy and store this credential securely before closing.",
|
|
@@ -3718,19 +3643,281 @@ var SecretRevealCard = React51.forwardRef(
|
|
|
3718
3643
|
className,
|
|
3719
3644
|
...props
|
|
3720
3645
|
}, ref) => {
|
|
3721
|
-
return /* @__PURE__ */
|
|
3722
|
-
warningMessage && /* @__PURE__ */
|
|
3723
|
-
/* @__PURE__ */
|
|
3724
|
-
/* @__PURE__ */
|
|
3646
|
+
return /* @__PURE__ */ jsxs40("div", { ref, className: cn("dl-secret-reveal", className), ...props, children: [
|
|
3647
|
+
warningMessage && /* @__PURE__ */ jsxs40("div", { className: "dl-secret-reveal__warning", children: [
|
|
3648
|
+
/* @__PURE__ */ jsx67(AlertTriangle, {}),
|
|
3649
|
+
/* @__PURE__ */ jsx67("span", { children: warningMessage })
|
|
3725
3650
|
] }),
|
|
3726
|
-
/* @__PURE__ */
|
|
3727
|
-
/* @__PURE__ */
|
|
3728
|
-
/* @__PURE__ */
|
|
3651
|
+
/* @__PURE__ */ jsxs40("div", { className: "dl-secret-reveal__code-wrap", children: [
|
|
3652
|
+
/* @__PURE__ */ jsx67("code", { className: "dl-secret-reveal__code", children: secret }),
|
|
3653
|
+
/* @__PURE__ */ jsx67(CopyButton, { textToCopy: secret, label: copyLabel })
|
|
3729
3654
|
] })
|
|
3730
3655
|
] });
|
|
3731
3656
|
}
|
|
3732
3657
|
);
|
|
3733
3658
|
SecretRevealCard.displayName = "SecretRevealCard";
|
|
3659
|
+
|
|
3660
|
+
// src/components/typography/heading.tsx
|
|
3661
|
+
import { forwardRef as forwardRef58 } from "react";
|
|
3662
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
3663
|
+
function resolveDefaultTag(size) {
|
|
3664
|
+
if (size === "display") return "h1";
|
|
3665
|
+
if (size === "h1" || size === "h2" || size === "h3" || size === "h4" || size === "h5" || size === "h6") {
|
|
3666
|
+
return size;
|
|
3667
|
+
}
|
|
3668
|
+
return "h2";
|
|
3669
|
+
}
|
|
3670
|
+
var Heading = forwardRef58(
|
|
3671
|
+
function Heading2({
|
|
3672
|
+
as,
|
|
3673
|
+
size = "h2",
|
|
3674
|
+
color = "default",
|
|
3675
|
+
weight,
|
|
3676
|
+
align = "left",
|
|
3677
|
+
truncate = false,
|
|
3678
|
+
className,
|
|
3679
|
+
children,
|
|
3680
|
+
...props
|
|
3681
|
+
}, ref) {
|
|
3682
|
+
const Component = as ?? resolveDefaultTag(size);
|
|
3683
|
+
return /* @__PURE__ */ jsx68(
|
|
3684
|
+
Component,
|
|
3685
|
+
{
|
|
3686
|
+
ref,
|
|
3687
|
+
className: cn("dl-heading", `dl-${size}`, className),
|
|
3688
|
+
"data-typography-color": color !== "default" ? color : void 0,
|
|
3689
|
+
"data-typography-align": align !== "left" ? align : void 0,
|
|
3690
|
+
"data-typography-weight": weight,
|
|
3691
|
+
"data-typography-truncate": truncate ? "true" : void 0,
|
|
3692
|
+
...props,
|
|
3693
|
+
children
|
|
3694
|
+
}
|
|
3695
|
+
);
|
|
3696
|
+
}
|
|
3697
|
+
);
|
|
3698
|
+
Heading.displayName = "Heading";
|
|
3699
|
+
|
|
3700
|
+
// src/components/typography/text.tsx
|
|
3701
|
+
import { forwardRef as forwardRef59 } from "react";
|
|
3702
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
3703
|
+
var Text = forwardRef59(function Text2({
|
|
3704
|
+
as: Component = "p",
|
|
3705
|
+
variant = "body",
|
|
3706
|
+
color = "default",
|
|
3707
|
+
weight,
|
|
3708
|
+
align = "left",
|
|
3709
|
+
truncate = false,
|
|
3710
|
+
className,
|
|
3711
|
+
children,
|
|
3712
|
+
...props
|
|
3713
|
+
}, ref) {
|
|
3714
|
+
const Element = Component;
|
|
3715
|
+
return /* @__PURE__ */ jsx69(
|
|
3716
|
+
Element,
|
|
3717
|
+
{
|
|
3718
|
+
ref,
|
|
3719
|
+
className: cn("dl-text", `dl-${variant}`, className),
|
|
3720
|
+
"data-typography-color": color !== "default" ? color : void 0,
|
|
3721
|
+
"data-typography-align": align !== "left" ? align : void 0,
|
|
3722
|
+
"data-typography-weight": weight,
|
|
3723
|
+
"data-typography-truncate": truncate ? "true" : void 0,
|
|
3724
|
+
...props,
|
|
3725
|
+
children
|
|
3726
|
+
}
|
|
3727
|
+
);
|
|
3728
|
+
});
|
|
3729
|
+
Text.displayName = "Text";
|
|
3730
|
+
|
|
3731
|
+
// src/components/layout/box.tsx
|
|
3732
|
+
import * as React65 from "react";
|
|
3733
|
+
import { Slot as Slot7 } from "@radix-ui/react-slot";
|
|
3734
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
3735
|
+
var Box = React65.forwardRef(
|
|
3736
|
+
({
|
|
3737
|
+
className,
|
|
3738
|
+
asChild = false,
|
|
3739
|
+
as,
|
|
3740
|
+
p,
|
|
3741
|
+
px,
|
|
3742
|
+
py,
|
|
3743
|
+
radius,
|
|
3744
|
+
shadow,
|
|
3745
|
+
border = false,
|
|
3746
|
+
bg,
|
|
3747
|
+
style,
|
|
3748
|
+
...props
|
|
3749
|
+
}, ref) => {
|
|
3750
|
+
const Comp = asChild ? Slot7 : as || "div";
|
|
3751
|
+
const inlineStyles = { ...style };
|
|
3752
|
+
if (p) inlineStyles.padding = `var(--space-${p})`;
|
|
3753
|
+
if (px) {
|
|
3754
|
+
inlineStyles.paddingLeft = `var(--space-${px})`;
|
|
3755
|
+
inlineStyles.paddingRight = `var(--space-${px})`;
|
|
3756
|
+
}
|
|
3757
|
+
if (py) {
|
|
3758
|
+
inlineStyles.paddingTop = `var(--space-${py})`;
|
|
3759
|
+
inlineStyles.paddingBottom = `var(--space-${py})`;
|
|
3760
|
+
}
|
|
3761
|
+
if (radius && radius !== "none") {
|
|
3762
|
+
inlineStyles.borderRadius = `var(--radius-${radius}, var(--radius))`;
|
|
3763
|
+
}
|
|
3764
|
+
if (border) {
|
|
3765
|
+
inlineStyles.border = "1px solid var(--border)";
|
|
3766
|
+
}
|
|
3767
|
+
if (bg) {
|
|
3768
|
+
inlineStyles.backgroundColor = `var(--${bg})`;
|
|
3769
|
+
}
|
|
3770
|
+
return /* @__PURE__ */ jsx70(
|
|
3771
|
+
Comp,
|
|
3772
|
+
{
|
|
3773
|
+
ref,
|
|
3774
|
+
className: cn(
|
|
3775
|
+
"dl-box",
|
|
3776
|
+
shadow && shadow !== "none" && `dl-shadow-${shadow}`,
|
|
3777
|
+
className
|
|
3778
|
+
),
|
|
3779
|
+
style: inlineStyles,
|
|
3780
|
+
...props
|
|
3781
|
+
}
|
|
3782
|
+
);
|
|
3783
|
+
}
|
|
3784
|
+
);
|
|
3785
|
+
Box.displayName = "Box";
|
|
3786
|
+
|
|
3787
|
+
// src/components/layout/flex.tsx
|
|
3788
|
+
import * as React66 from "react";
|
|
3789
|
+
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
3790
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
3791
|
+
var Flex = React66.forwardRef(
|
|
3792
|
+
({
|
|
3793
|
+
className,
|
|
3794
|
+
asChild = false,
|
|
3795
|
+
as,
|
|
3796
|
+
direction = "row",
|
|
3797
|
+
justify,
|
|
3798
|
+
align,
|
|
3799
|
+
wrap = false,
|
|
3800
|
+
gap,
|
|
3801
|
+
inline = false,
|
|
3802
|
+
...props
|
|
3803
|
+
}, ref) => {
|
|
3804
|
+
const Comp = asChild ? Slot8 : as || "div";
|
|
3805
|
+
return /* @__PURE__ */ jsx71(
|
|
3806
|
+
Comp,
|
|
3807
|
+
{
|
|
3808
|
+
ref,
|
|
3809
|
+
className: cn(
|
|
3810
|
+
"dl-flex",
|
|
3811
|
+
inline && "dl-flex--inline",
|
|
3812
|
+
direction && `dl-flex--${direction}`,
|
|
3813
|
+
justify && `dl-flex--justify-${justify}`,
|
|
3814
|
+
align && `dl-flex--align-${align}`,
|
|
3815
|
+
(wrap === true || wrap === "wrap") && "dl-flex--wrap",
|
|
3816
|
+
wrap === "nowrap" && "dl-flex--nowrap",
|
|
3817
|
+
wrap === "reverse" && "dl-flex--wrap-reverse",
|
|
3818
|
+
gap !== void 0 && `dl-gap-${gap}`,
|
|
3819
|
+
className
|
|
3820
|
+
),
|
|
3821
|
+
...props
|
|
3822
|
+
}
|
|
3823
|
+
);
|
|
3824
|
+
}
|
|
3825
|
+
);
|
|
3826
|
+
Flex.displayName = "Flex";
|
|
3827
|
+
|
|
3828
|
+
// src/components/layout/stack.tsx
|
|
3829
|
+
import * as React67 from "react";
|
|
3830
|
+
import { Slot as Slot9 } from "@radix-ui/react-slot";
|
|
3831
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
3832
|
+
var Stack = React67.forwardRef(
|
|
3833
|
+
({
|
|
3834
|
+
className,
|
|
3835
|
+
asChild = false,
|
|
3836
|
+
as,
|
|
3837
|
+
direction = "col",
|
|
3838
|
+
gap = "3",
|
|
3839
|
+
align = "stretch",
|
|
3840
|
+
...props
|
|
3841
|
+
}, ref) => {
|
|
3842
|
+
const Comp = asChild ? Slot9 : as || "div";
|
|
3843
|
+
return /* @__PURE__ */ jsx72(
|
|
3844
|
+
Comp,
|
|
3845
|
+
{
|
|
3846
|
+
ref,
|
|
3847
|
+
className: cn(
|
|
3848
|
+
"dl-stack",
|
|
3849
|
+
`dl-stack--${direction}`,
|
|
3850
|
+
`dl-flex--align-${align}`,
|
|
3851
|
+
gap !== void 0 && `dl-gap-${gap}`,
|
|
3852
|
+
className
|
|
3853
|
+
),
|
|
3854
|
+
...props
|
|
3855
|
+
}
|
|
3856
|
+
);
|
|
3857
|
+
}
|
|
3858
|
+
);
|
|
3859
|
+
Stack.displayName = "Stack";
|
|
3860
|
+
|
|
3861
|
+
// src/components/layout/grid.tsx
|
|
3862
|
+
import * as React68 from "react";
|
|
3863
|
+
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
3864
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
3865
|
+
var Grid = React68.forwardRef(
|
|
3866
|
+
({
|
|
3867
|
+
className,
|
|
3868
|
+
asChild = false,
|
|
3869
|
+
as,
|
|
3870
|
+
cols,
|
|
3871
|
+
columns,
|
|
3872
|
+
gap = "4",
|
|
3873
|
+
inline = false,
|
|
3874
|
+
style,
|
|
3875
|
+
...props
|
|
3876
|
+
}, ref) => {
|
|
3877
|
+
const Comp = asChild ? Slot10 : as || "div";
|
|
3878
|
+
const resolvedCols = cols ?? columns ?? 1;
|
|
3879
|
+
const inlineStyles = { ...style };
|
|
3880
|
+
if (typeof resolvedCols === "number") {
|
|
3881
|
+
inlineStyles.gridTemplateColumns = `repeat(${resolvedCols}, minmax(0, 1fr))`;
|
|
3882
|
+
} else if (typeof resolvedCols === "string") {
|
|
3883
|
+
inlineStyles.gridTemplateColumns = `repeat(auto-fit, minmax(${resolvedCols}, 1fr))`;
|
|
3884
|
+
}
|
|
3885
|
+
return /* @__PURE__ */ jsx73(
|
|
3886
|
+
Comp,
|
|
3887
|
+
{
|
|
3888
|
+
ref,
|
|
3889
|
+
className: cn(
|
|
3890
|
+
"dl-grid",
|
|
3891
|
+
inline && "dl-grid--inline",
|
|
3892
|
+
gap !== void 0 && `dl-gap-${gap}`,
|
|
3893
|
+
className
|
|
3894
|
+
),
|
|
3895
|
+
style: inlineStyles,
|
|
3896
|
+
...props
|
|
3897
|
+
}
|
|
3898
|
+
);
|
|
3899
|
+
}
|
|
3900
|
+
);
|
|
3901
|
+
Grid.displayName = "Grid";
|
|
3902
|
+
|
|
3903
|
+
// src/components/layout/container.tsx
|
|
3904
|
+
import * as React69 from "react";
|
|
3905
|
+
import { Slot as Slot11 } from "@radix-ui/react-slot";
|
|
3906
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3907
|
+
var Container = React69.forwardRef(
|
|
3908
|
+
({ className, asChild = false, as, size = "xl", ...props }, ref) => {
|
|
3909
|
+
const Comp = asChild ? Slot11 : as || "div";
|
|
3910
|
+
return /* @__PURE__ */ jsx74(
|
|
3911
|
+
Comp,
|
|
3912
|
+
{
|
|
3913
|
+
ref,
|
|
3914
|
+
className: cn("dl-container", `dl-container--${size}`, className),
|
|
3915
|
+
...props
|
|
3916
|
+
}
|
|
3917
|
+
);
|
|
3918
|
+
}
|
|
3919
|
+
);
|
|
3920
|
+
Container.displayName = "Container";
|
|
3734
3921
|
export {
|
|
3735
3922
|
Accordion,
|
|
3736
3923
|
AccordionContent,
|
|
@@ -3755,6 +3942,7 @@ export {
|
|
|
3755
3942
|
AvatarFallback,
|
|
3756
3943
|
AvatarImage,
|
|
3757
3944
|
Badge,
|
|
3945
|
+
Box,
|
|
3758
3946
|
Breadcrumb,
|
|
3759
3947
|
BreadcrumbEllipsis,
|
|
3760
3948
|
BreadcrumbItem,
|
|
@@ -3773,10 +3961,12 @@ export {
|
|
|
3773
3961
|
CardTitle,
|
|
3774
3962
|
Carousel,
|
|
3775
3963
|
CarouselContent,
|
|
3964
|
+
CarouselContext,
|
|
3776
3965
|
CarouselItem,
|
|
3777
3966
|
CarouselNext,
|
|
3778
3967
|
CarouselPrevious,
|
|
3779
3968
|
ChartContainer,
|
|
3969
|
+
ChartContext,
|
|
3780
3970
|
ChartLegend,
|
|
3781
3971
|
ChartLegendContent,
|
|
3782
3972
|
ChartStyle,
|
|
@@ -3797,6 +3987,7 @@ export {
|
|
|
3797
3987
|
CommandShortcut,
|
|
3798
3988
|
ConfigProvider,
|
|
3799
3989
|
ConfirmDialog,
|
|
3990
|
+
Container,
|
|
3800
3991
|
ContextMenu,
|
|
3801
3992
|
ContextMenuCheckboxItem,
|
|
3802
3993
|
ContextMenuContent,
|
|
@@ -3850,6 +4041,8 @@ export {
|
|
|
3850
4041
|
DropdownMenuSubContent,
|
|
3851
4042
|
DropdownMenuSubTrigger,
|
|
3852
4043
|
DropdownMenuTrigger,
|
|
4044
|
+
EmptyState,
|
|
4045
|
+
Flex,
|
|
3853
4046
|
Form,
|
|
3854
4047
|
FormControl,
|
|
3855
4048
|
FormDescription,
|
|
@@ -3857,6 +4050,8 @@ export {
|
|
|
3857
4050
|
FormItem,
|
|
3858
4051
|
FormLabel,
|
|
3859
4052
|
FormMessage,
|
|
4053
|
+
Grid,
|
|
4054
|
+
Heading,
|
|
3860
4055
|
HoverCard,
|
|
3861
4056
|
HoverCardContent,
|
|
3862
4057
|
HoverCardTrigger,
|
|
@@ -3911,6 +4106,12 @@ export {
|
|
|
3911
4106
|
ResizableHandle,
|
|
3912
4107
|
ResizablePanel,
|
|
3913
4108
|
ResizablePanelGroup,
|
|
4109
|
+
SIDEBAR_COOKIE_MAX_AGE,
|
|
4110
|
+
SIDEBAR_COOKIE_NAME,
|
|
4111
|
+
SIDEBAR_KEYBOARD_SHORTCUT,
|
|
4112
|
+
SIDEBAR_WIDTH,
|
|
4113
|
+
SIDEBAR_WIDTH_ICON,
|
|
4114
|
+
SIDEBAR_WIDTH_MOBILE,
|
|
3914
4115
|
ScrollArea,
|
|
3915
4116
|
ScrollBar,
|
|
3916
4117
|
SearchableSelect,
|
|
@@ -3938,6 +4139,7 @@ export {
|
|
|
3938
4139
|
SheetTrigger,
|
|
3939
4140
|
Sidebar,
|
|
3940
4141
|
SidebarContent,
|
|
4142
|
+
SidebarContext,
|
|
3941
4143
|
SidebarFooter,
|
|
3942
4144
|
SidebarGroup,
|
|
3943
4145
|
SidebarGroupAction,
|
|
@@ -3961,9 +4163,11 @@ export {
|
|
|
3961
4163
|
SidebarTrigger,
|
|
3962
4164
|
Skeleton,
|
|
3963
4165
|
Slider,
|
|
4166
|
+
Stack,
|
|
3964
4167
|
StatusBadge,
|
|
3965
4168
|
StatusChip,
|
|
3966
4169
|
Switch,
|
|
4170
|
+
THEMES,
|
|
3967
4171
|
Table,
|
|
3968
4172
|
TableBody,
|
|
3969
4173
|
TableCaption,
|
|
@@ -3976,6 +4180,7 @@ export {
|
|
|
3976
4180
|
TabsContent,
|
|
3977
4181
|
TabsList,
|
|
3978
4182
|
TabsTrigger,
|
|
4183
|
+
Text,
|
|
3979
4184
|
Textarea,
|
|
3980
4185
|
ThemeProvider,
|
|
3981
4186
|
Toaster,
|
|
@@ -3990,12 +4195,16 @@ export {
|
|
|
3990
4195
|
badgeVariants,
|
|
3991
4196
|
buttonVariants,
|
|
3992
4197
|
cn,
|
|
4198
|
+
cx,
|
|
4199
|
+
getPayloadConfigFromPayload,
|
|
3993
4200
|
labelVariants,
|
|
3994
4201
|
navigationMenuTriggerStyle,
|
|
3995
4202
|
sheetVariants,
|
|
4203
|
+
sidebarMenuButtonVariants,
|
|
3996
4204
|
toast,
|
|
3997
4205
|
toggleVariants,
|
|
3998
4206
|
useCarousel,
|
|
4207
|
+
useChart,
|
|
3999
4208
|
useConfig,
|
|
4000
4209
|
useFormField,
|
|
4001
4210
|
useIsMobile,
|