@alexgorbatchev/shadcn 0.0.103 → 0.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-n593jqmw.js → chunk-19bkeafb.js} +645 -475
- package/dist/{chunk-p8bdmafq.js → chunk-j7fvvgyp.js} +2 -2
- package/dist/components/ActionBar.d.ts +31 -0
- package/dist/components/DescriptionList.d.ts +18 -0
- package/dist/components/ErrorSummary.d.ts +21 -0
- package/dist/components/Outline.d.ts +20 -0
- package/dist/components/json-render/JsonDropdownMenu.d.ts +4 -0
- package/dist/components/json-render/JsonForm.d.ts +90 -0
- package/dist/components/json-render/catalog.js +1 -1
- package/dist/components/json-render/index.d.ts +2 -0
- package/dist/components/json-render/index.js +485 -227
- package/dist/index.d.ts +7 -0
- package/dist/index.js +23 -1
- package/dist/prototype.js +1 -1
- package/llms/components/data-display/DescriptionList.md +56 -0
- package/llms/components/data-display/JsonRenderForm.md +99 -0
- package/llms/components/feedback/ErrorSummary.md +46 -0
- package/llms/components/layout/ActionBar.md +65 -0
- package/llms/components/navigation/Outline.md +42 -0
- package/llms.txt +5 -0
- package/package.json +1 -1
|
@@ -612,9 +612,145 @@ function PageMessage2({ title, description, children }) {
|
|
|
612
612
|
})
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
|
+
// src/components/ActionBar.tsx
|
|
616
|
+
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
617
|
+
function ActionBar2({
|
|
618
|
+
sticky = false,
|
|
619
|
+
stuck = false,
|
|
620
|
+
surface = "background",
|
|
621
|
+
progress,
|
|
622
|
+
className,
|
|
623
|
+
children,
|
|
624
|
+
...props
|
|
625
|
+
}) {
|
|
626
|
+
return /* @__PURE__ */ jsxs7("div", {
|
|
627
|
+
"data-slot": "action-bar",
|
|
628
|
+
"data-stuck": stuck || undefined,
|
|
629
|
+
className: cn2("relative flex flex-col border-t border-border", sticky && "sticky bottom-0 z-10", surface === "card" ? "bg-card" : "bg-background", stuck ? "gap-1 py-2" : "gap-2 pt-panel", className),
|
|
630
|
+
...props,
|
|
631
|
+
children: [
|
|
632
|
+
progress !== undefined && /* @__PURE__ */ jsx9("span", {
|
|
633
|
+
"aria-hidden": "true",
|
|
634
|
+
"data-slot": "action-bar-meter",
|
|
635
|
+
className: "absolute -top-px start-0 h-0.5 bg-primary forced-colors:bg-[CanvasText]",
|
|
636
|
+
style: { width: `${Math.round(Math.min(1, Math.max(0, progress)) * 100)}%` }
|
|
637
|
+
}),
|
|
638
|
+
children
|
|
639
|
+
]
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
function ActionBarRow2({
|
|
643
|
+
justify = "start",
|
|
644
|
+
align = "center",
|
|
645
|
+
wrap = true,
|
|
646
|
+
className,
|
|
647
|
+
...props
|
|
648
|
+
}) {
|
|
649
|
+
return /* @__PURE__ */ jsx9("div", {
|
|
650
|
+
"data-slot": "action-bar-row",
|
|
651
|
+
className: cn2("flex min-w-0 gap-x-4 gap-y-1 text-xs", wrap ? "flex-wrap" : "flex-nowrap", align === "end" ? "items-end" : "items-center", justify === "between" ? "justify-between" : justify === "end" ? "justify-end" : "justify-start", className),
|
|
652
|
+
...props
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
// src/components/ErrorSummary.tsx
|
|
656
|
+
import { useId as useId3 } from "react";
|
|
657
|
+
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
658
|
+
function ErrorSummary2({ title, headingLevel = 2, className, children, ...props }) {
|
|
659
|
+
const titleId = useId3();
|
|
660
|
+
const Heading = `h${headingLevel}`;
|
|
661
|
+
return /* @__PURE__ */ jsxs8("section", {
|
|
662
|
+
"aria-labelledby": titleId,
|
|
663
|
+
"data-slot": "error-summary",
|
|
664
|
+
"data-scroll": "none",
|
|
665
|
+
className: cn2("flex flex-col gap-2 rounded-md border border-destructive p-panel text-sm forced-colors:border-[CanvasText]", className),
|
|
666
|
+
...props,
|
|
667
|
+
children: [
|
|
668
|
+
/* @__PURE__ */ jsx10(Heading, {
|
|
669
|
+
id: titleId,
|
|
670
|
+
className: "font-medium text-destructive",
|
|
671
|
+
children: title
|
|
672
|
+
}),
|
|
673
|
+
/* @__PURE__ */ jsx10("ul", {
|
|
674
|
+
className: "flex flex-col gap-1",
|
|
675
|
+
children
|
|
676
|
+
})
|
|
677
|
+
]
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
function ErrorSummaryItem2({ onSelect, children }) {
|
|
681
|
+
return /* @__PURE__ */ jsx10("li", {
|
|
682
|
+
"data-slot": "error-summary-item",
|
|
683
|
+
children: /* @__PURE__ */ jsx10(Button2, {
|
|
684
|
+
type: "button",
|
|
685
|
+
variant: "link",
|
|
686
|
+
size: "inline",
|
|
687
|
+
className: "text-start whitespace-normal",
|
|
688
|
+
onClick: onSelect,
|
|
689
|
+
children
|
|
690
|
+
})
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
// src/components/Outline.tsx
|
|
694
|
+
import { useId as useId4 } from "react";
|
|
695
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
696
|
+
function Outline2({ className, ...props }) {
|
|
697
|
+
return /* @__PURE__ */ jsx11("div", {
|
|
698
|
+
"data-slot": "outline",
|
|
699
|
+
className: cn2("flex min-w-0 flex-col gap-3 text-sm", className),
|
|
700
|
+
...props
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
function OutlineSection2({ title, meta, children }) {
|
|
704
|
+
const titleId = useId4();
|
|
705
|
+
return /* @__PURE__ */ jsxs9("section", {
|
|
706
|
+
"aria-labelledby": titleId,
|
|
707
|
+
"data-slot": "outline-section",
|
|
708
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
709
|
+
children: [
|
|
710
|
+
/* @__PURE__ */ jsxs9("div", {
|
|
711
|
+
className: "flex min-w-0 items-baseline justify-between gap-2",
|
|
712
|
+
children: [
|
|
713
|
+
/* @__PURE__ */ jsx11("p", {
|
|
714
|
+
id: titleId,
|
|
715
|
+
className: "min-w-0 truncate font-medium",
|
|
716
|
+
children: title
|
|
717
|
+
}),
|
|
718
|
+
meta != null && /* @__PURE__ */ jsx11("span", {
|
|
719
|
+
className: "shrink-0 text-xs text-muted-foreground",
|
|
720
|
+
children: meta
|
|
721
|
+
})
|
|
722
|
+
]
|
|
723
|
+
}),
|
|
724
|
+
/* @__PURE__ */ jsx11("ul", {
|
|
725
|
+
className: "flex flex-col",
|
|
726
|
+
children
|
|
727
|
+
})
|
|
728
|
+
]
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
function OutlineItem2({ label, state, onSelect }) {
|
|
732
|
+
return /* @__PURE__ */ jsx11("li", {
|
|
733
|
+
"data-slot": "outline-item",
|
|
734
|
+
children: /* @__PURE__ */ jsxs9("button", {
|
|
735
|
+
type: "button",
|
|
736
|
+
className: "flex w-full min-w-0 items-baseline justify-between gap-2 rounded-sm px-1.5 py-1 text-start outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-1 focus-visible:ring-ring",
|
|
737
|
+
onClick: onSelect,
|
|
738
|
+
children: [
|
|
739
|
+
/* @__PURE__ */ jsx11("span", {
|
|
740
|
+
className: "min-w-0",
|
|
741
|
+
children: label
|
|
742
|
+
}),
|
|
743
|
+
state != null && /* @__PURE__ */ jsx11("span", {
|
|
744
|
+
className: "shrink-0 text-xs text-muted-foreground",
|
|
745
|
+
children: state
|
|
746
|
+
})
|
|
747
|
+
]
|
|
748
|
+
})
|
|
749
|
+
});
|
|
750
|
+
}
|
|
615
751
|
// src/components/DataViewer.tsx
|
|
616
752
|
import { Fragment as Fragment2 } from "react";
|
|
617
|
-
import { jsx as
|
|
753
|
+
import { jsx as jsx12, jsxs as jsxs10, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
618
754
|
var ACRONYMS = new Map([
|
|
619
755
|
["api", "API"],
|
|
620
756
|
["http", "HTTP"],
|
|
@@ -637,7 +773,7 @@ function isNested(value) {
|
|
|
637
773
|
return Array.isArray(value) || isRecord(value);
|
|
638
774
|
}
|
|
639
775
|
function Placeholder({ children }) {
|
|
640
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ jsx12("span", {
|
|
641
777
|
className: "text-muted-foreground italic",
|
|
642
778
|
children
|
|
643
779
|
});
|
|
@@ -645,23 +781,23 @@ function Placeholder({ children }) {
|
|
|
645
781
|
function DataValue({ value, formatLabel }) {
|
|
646
782
|
if (Array.isArray(value)) {
|
|
647
783
|
if (value.length === 0)
|
|
648
|
-
return /* @__PURE__ */
|
|
784
|
+
return /* @__PURE__ */ jsx12(Placeholder, {
|
|
649
785
|
children: "None"
|
|
650
786
|
});
|
|
651
|
-
return value.some(isNested) ? /* @__PURE__ */
|
|
787
|
+
return value.some(isNested) ? /* @__PURE__ */ jsx12("ol", {
|
|
652
788
|
className: "flex list-decimal flex-col gap-2 pl-5 marker:text-muted-foreground",
|
|
653
|
-
children: value.map((item, index) => /* @__PURE__ */
|
|
789
|
+
children: value.map((item, index) => /* @__PURE__ */ jsx12("li", {
|
|
654
790
|
className: "min-w-0",
|
|
655
|
-
children: /* @__PURE__ */
|
|
791
|
+
children: /* @__PURE__ */ jsx12(DataValue, {
|
|
656
792
|
value: item,
|
|
657
793
|
formatLabel
|
|
658
794
|
})
|
|
659
795
|
}, index))
|
|
660
|
-
}) : /* @__PURE__ */
|
|
796
|
+
}) : /* @__PURE__ */ jsx12("ul", {
|
|
661
797
|
className: "flex flex-wrap gap-x-3 gap-y-1",
|
|
662
|
-
children: value.map((item, index) => /* @__PURE__ */
|
|
798
|
+
children: value.map((item, index) => /* @__PURE__ */ jsx12("li", {
|
|
663
799
|
className: "min-w-0 break-words",
|
|
664
|
-
children: /* @__PURE__ */
|
|
800
|
+
children: /* @__PURE__ */ jsx12(DataValue, {
|
|
665
801
|
value: item,
|
|
666
802
|
formatLabel
|
|
667
803
|
})
|
|
@@ -671,20 +807,20 @@ function DataValue({ value, formatLabel }) {
|
|
|
671
807
|
if (isRecord(value)) {
|
|
672
808
|
const entries = Object.entries(value);
|
|
673
809
|
if (entries.length === 0)
|
|
674
|
-
return /* @__PURE__ */
|
|
810
|
+
return /* @__PURE__ */ jsx12(Placeholder, {
|
|
675
811
|
children: "None"
|
|
676
812
|
});
|
|
677
|
-
return /* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ jsx12("dl", {
|
|
678
814
|
className: "grid grid-cols-[minmax(0,max-content)_minmax(0,1fr)] gap-x-4 gap-y-1",
|
|
679
|
-
children: entries.map(([key, item]) => /* @__PURE__ */
|
|
815
|
+
children: entries.map(([key, item]) => /* @__PURE__ */ jsxs10(Fragment2, {
|
|
680
816
|
children: [
|
|
681
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ jsx12("dt", {
|
|
682
818
|
className: "min-w-0 break-words text-muted-foreground",
|
|
683
819
|
children: formatLabel(key)
|
|
684
820
|
}),
|
|
685
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ jsx12("dd", {
|
|
686
822
|
className: cn2("min-w-0 break-words", isRecord(item) && "border-l border-border pl-3"),
|
|
687
|
-
children: /* @__PURE__ */
|
|
823
|
+
children: /* @__PURE__ */ jsx12(DataValue, {
|
|
688
824
|
value: item,
|
|
689
825
|
formatLabel
|
|
690
826
|
})
|
|
@@ -694,18 +830,18 @@ function DataValue({ value, formatLabel }) {
|
|
|
694
830
|
});
|
|
695
831
|
}
|
|
696
832
|
if (value === null || value === undefined)
|
|
697
|
-
return /* @__PURE__ */
|
|
833
|
+
return /* @__PURE__ */ jsx12(Placeholder, {
|
|
698
834
|
children: "None"
|
|
699
835
|
});
|
|
700
836
|
if (typeof value === "boolean")
|
|
701
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ jsx12(Fragment3, {
|
|
702
838
|
children: value ? "Yes" : "No"
|
|
703
839
|
});
|
|
704
840
|
if (value === "")
|
|
705
|
-
return /* @__PURE__ */
|
|
841
|
+
return /* @__PURE__ */ jsx12(Placeholder, {
|
|
706
842
|
children: "Empty"
|
|
707
843
|
});
|
|
708
|
-
return /* @__PURE__ */
|
|
844
|
+
return /* @__PURE__ */ jsx12(Fragment3, {
|
|
709
845
|
children: String(value)
|
|
710
846
|
});
|
|
711
847
|
}
|
|
@@ -717,22 +853,22 @@ function DataViewer2({
|
|
|
717
853
|
className,
|
|
718
854
|
...props
|
|
719
855
|
}) {
|
|
720
|
-
return /* @__PURE__ */
|
|
856
|
+
return /* @__PURE__ */ jsx12("section", {
|
|
721
857
|
"aria-label": label,
|
|
722
858
|
"data-density": density,
|
|
723
859
|
"data-slot": "data-viewer",
|
|
724
860
|
className: cn2("min-w-0 text-sm", className),
|
|
725
861
|
...props,
|
|
726
|
-
children: /* @__PURE__ */
|
|
862
|
+
children: /* @__PURE__ */ jsx12(DataValue, {
|
|
727
863
|
value,
|
|
728
864
|
formatLabel
|
|
729
865
|
})
|
|
730
866
|
});
|
|
731
867
|
}
|
|
732
868
|
// src/components/JsonViewer.tsx
|
|
733
|
-
import { jsx as
|
|
869
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
734
870
|
function JsonViewer2({ value, label = "JSON", rows = 12 }) {
|
|
735
|
-
return /* @__PURE__ */
|
|
871
|
+
return /* @__PURE__ */ jsx13(Textarea2, {
|
|
736
872
|
readOnly: true,
|
|
737
873
|
rows,
|
|
738
874
|
"aria-label": label,
|
|
@@ -742,21 +878,21 @@ function JsonViewer2({ value, label = "JSON", rows = 12 }) {
|
|
|
742
878
|
// src/components/AlertDialog.tsx
|
|
743
879
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
744
880
|
import { useDirection as useDirection3 } from "@base-ui/react/direction-provider";
|
|
745
|
-
import { jsx as
|
|
881
|
+
import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
746
882
|
"use client";
|
|
747
883
|
function AlertDialog2({
|
|
748
884
|
analytics,
|
|
749
885
|
...props
|
|
750
886
|
}) {
|
|
751
887
|
const trackedOnOpenChange = useAnalyticsCallback("AlertDialog", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
752
|
-
return /* @__PURE__ */
|
|
888
|
+
return /* @__PURE__ */ jsx14(AlertDialogPrimitive.Root, {
|
|
753
889
|
"data-slot": "alert-dialog",
|
|
754
890
|
...props,
|
|
755
891
|
onOpenChange: trackedOnOpenChange
|
|
756
892
|
});
|
|
757
893
|
}
|
|
758
894
|
function AlertDialogTrigger2({ ...props }) {
|
|
759
|
-
return /* @__PURE__ */
|
|
895
|
+
return /* @__PURE__ */ jsx14(AlertDialogPrimitive.Trigger, {
|
|
760
896
|
"data-slot": "alert-dialog-trigger",
|
|
761
897
|
...props
|
|
762
898
|
});
|
|
@@ -764,12 +900,12 @@ function AlertDialogTrigger2({ ...props }) {
|
|
|
764
900
|
function AlertDialogPortal2({ container, ref, children, ...props }) {
|
|
765
901
|
const resolvedContainer = usePortalContainer2(container);
|
|
766
902
|
const portal = usePortalNode(ref);
|
|
767
|
-
return /* @__PURE__ */
|
|
903
|
+
return /* @__PURE__ */ jsx14(AlertDialogPrimitive.Portal, {
|
|
768
904
|
"data-slot": "alert-dialog-portal",
|
|
769
905
|
container: resolvedContainer,
|
|
770
906
|
ref: portal.ref,
|
|
771
907
|
...props,
|
|
772
|
-
children: /* @__PURE__ */
|
|
908
|
+
children: /* @__PURE__ */ jsx14(PortalProvider2, {
|
|
773
909
|
container: portal.node,
|
|
774
910
|
children
|
|
775
911
|
})
|
|
@@ -777,7 +913,7 @@ function AlertDialogPortal2({ container, ref, children, ...props }) {
|
|
|
777
913
|
}
|
|
778
914
|
function AlertDialogOverlay2({ density, className, ...props }) {
|
|
779
915
|
const resolvedDensity = useDensity(density);
|
|
780
|
-
return /* @__PURE__ */
|
|
916
|
+
return /* @__PURE__ */ jsx14(AlertDialogPrimitive.Backdrop, {
|
|
781
917
|
"data-density": resolvedDensity,
|
|
782
918
|
"data-slot": "alert-dialog-overlay",
|
|
783
919
|
className: (state) => cn2("fixed inset-0 isolate bg-backdrop duration-120 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none", typeof className === "function" ? className(state) : className),
|
|
@@ -787,10 +923,10 @@ function AlertDialogOverlay2({ density, className, ...props }) {
|
|
|
787
923
|
function AlertDialogContent2({ density, className, size = "default", ...props }) {
|
|
788
924
|
const resolvedDensity = useDensity(density);
|
|
789
925
|
const direction = useDirection3();
|
|
790
|
-
return /* @__PURE__ */
|
|
926
|
+
return /* @__PURE__ */ jsxs11(AlertDialogPortal2, {
|
|
791
927
|
children: [
|
|
792
|
-
/* @__PURE__ */
|
|
793
|
-
/* @__PURE__ */
|
|
928
|
+
/* @__PURE__ */ jsx14(AlertDialogOverlay2, {}),
|
|
929
|
+
/* @__PURE__ */ jsx14(AlertDialogPrimitive.Popup, {
|
|
794
930
|
dir: direction,
|
|
795
931
|
"data-density": resolvedDensity,
|
|
796
932
|
"data-slot": "alert-dialog-content",
|
|
@@ -803,7 +939,7 @@ function AlertDialogContent2({ density, className, size = "default", ...props })
|
|
|
803
939
|
});
|
|
804
940
|
}
|
|
805
941
|
function AlertDialogHeader2({ density, className, ...props }) {
|
|
806
|
-
return /* @__PURE__ */
|
|
942
|
+
return /* @__PURE__ */ jsx14("div", {
|
|
807
943
|
"data-density": density,
|
|
808
944
|
"data-slot": "alert-dialog-header",
|
|
809
945
|
className: cn2("grid shrink-0 grid-rows-[auto_1fr] place-items-center gap-control-gap text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
|
|
@@ -811,7 +947,7 @@ function AlertDialogHeader2({ density, className, ...props }) {
|
|
|
811
947
|
});
|
|
812
948
|
}
|
|
813
949
|
function AlertDialogFooter2({ density, className, ...props }) {
|
|
814
|
-
return /* @__PURE__ */
|
|
950
|
+
return /* @__PURE__ */ jsx14("div", {
|
|
815
951
|
"data-density": density,
|
|
816
952
|
"data-slot": "alert-dialog-footer",
|
|
817
953
|
className: cn2("-mx-panel -mb-panel flex shrink-0 flex-col-reverse gap-2 rounded-b-md border-t bg-muted/50 p-panel group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className),
|
|
@@ -819,7 +955,7 @@ function AlertDialogFooter2({ density, className, ...props }) {
|
|
|
819
955
|
});
|
|
820
956
|
}
|
|
821
957
|
function AlertDialogMedia2({ density, className, ...props }) {
|
|
822
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */ jsx14("div", {
|
|
823
959
|
"data-density": density,
|
|
824
960
|
"data-slot": "alert-dialog-media",
|
|
825
961
|
className: cn2("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-control-xs", className),
|
|
@@ -827,7 +963,7 @@ function AlertDialogMedia2({ density, className, ...props }) {
|
|
|
827
963
|
});
|
|
828
964
|
}
|
|
829
965
|
function AlertDialogTitle2({ density, className, ...props }) {
|
|
830
|
-
return /* @__PURE__ */
|
|
966
|
+
return /* @__PURE__ */ jsx14(AlertDialogPrimitive.Title, {
|
|
831
967
|
"data-density": density,
|
|
832
968
|
"data-slot": "alert-dialog-title",
|
|
833
969
|
className: (state) => cn2("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", typeof className === "function" ? className(state) : className),
|
|
@@ -835,7 +971,7 @@ function AlertDialogTitle2({ density, className, ...props }) {
|
|
|
835
971
|
});
|
|
836
972
|
}
|
|
837
973
|
function AlertDialogDescription2({ density, className, ...props }) {
|
|
838
|
-
return /* @__PURE__ */
|
|
974
|
+
return /* @__PURE__ */ jsx14(AlertDialogPrimitive.Description, {
|
|
839
975
|
"data-density": density,
|
|
840
976
|
"data-slot": "alert-dialog-description",
|
|
841
977
|
className: (state) => cn2("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", typeof className === "function" ? className(state) : className),
|
|
@@ -843,7 +979,7 @@ function AlertDialogDescription2({ density, className, ...props }) {
|
|
|
843
979
|
});
|
|
844
980
|
}
|
|
845
981
|
function AlertDialogAction2({ density, className, ...props }) {
|
|
846
|
-
return /* @__PURE__ */
|
|
982
|
+
return /* @__PURE__ */ jsx14(Button2, {
|
|
847
983
|
"data-density": density,
|
|
848
984
|
"data-slot": "alert-dialog-action",
|
|
849
985
|
className,
|
|
@@ -857,11 +993,11 @@ function AlertDialogCancel2({
|
|
|
857
993
|
size = "default",
|
|
858
994
|
...props
|
|
859
995
|
}) {
|
|
860
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx14(AlertDialogPrimitive.Close, {
|
|
861
997
|
"data-density": density,
|
|
862
998
|
"data-slot": "alert-dialog-cancel",
|
|
863
999
|
className,
|
|
864
|
-
render: /* @__PURE__ */
|
|
1000
|
+
render: /* @__PURE__ */ jsx14(Button2, {
|
|
865
1001
|
variant,
|
|
866
1002
|
size
|
|
867
1003
|
}),
|
|
@@ -871,7 +1007,7 @@ function AlertDialogCancel2({
|
|
|
871
1007
|
// src/components/DensityProvider.tsx
|
|
872
1008
|
import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
|
|
873
1009
|
import { useRender as useRender2 } from "@base-ui/react/use-render";
|
|
874
|
-
import { jsx as
|
|
1010
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
875
1011
|
function DensityProvider2({
|
|
876
1012
|
density = "comfortable",
|
|
877
1013
|
className,
|
|
@@ -884,7 +1020,7 @@ function DensityProvider2({
|
|
|
884
1020
|
render,
|
|
885
1021
|
state: { slot: "density-provider", density }
|
|
886
1022
|
});
|
|
887
|
-
return /* @__PURE__ */
|
|
1023
|
+
return /* @__PURE__ */ jsx15(DensityContext.Provider, {
|
|
888
1024
|
value: density,
|
|
889
1025
|
children: element
|
|
890
1026
|
});
|
|
@@ -1197,7 +1333,7 @@ function ScrollGuard2({ ownerDocument }) {
|
|
|
1197
1333
|
}
|
|
1198
1334
|
|
|
1199
1335
|
// src/components/ThemeProvider.tsx
|
|
1200
|
-
import { jsx as
|
|
1336
|
+
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1201
1337
|
function StoredThemeProvider({
|
|
1202
1338
|
children,
|
|
1203
1339
|
defaultTheme = "system",
|
|
@@ -1209,7 +1345,7 @@ function StoredThemeProvider({
|
|
|
1209
1345
|
defaultValue: defaultTheme,
|
|
1210
1346
|
localStorageKey: storageKey
|
|
1211
1347
|
});
|
|
1212
|
-
return /* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ jsx16(ThemePalette, {
|
|
1213
1349
|
preset,
|
|
1214
1350
|
theme: forcedTheme ?? ternaryDarkMode,
|
|
1215
1351
|
resolvedTheme: forcedTheme ?? (isDarkMode ? "dark" : "light"),
|
|
@@ -1230,11 +1366,11 @@ function ThemePalette({
|
|
|
1230
1366
|
document.documentElement.style.colorScheme = resolvedTheme;
|
|
1231
1367
|
}, [resolvedTheme, preset]);
|
|
1232
1368
|
const value = useMemo(() => ({ theme, resolvedTheme, setTheme, preset }), [theme, resolvedTheme, setTheme, preset]);
|
|
1233
|
-
return /* @__PURE__ */
|
|
1369
|
+
return /* @__PURE__ */ jsxs12(ThemeContext.Provider, {
|
|
1234
1370
|
value,
|
|
1235
1371
|
children: [
|
|
1236
|
-
/* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1372
|
+
/* @__PURE__ */ jsx16(ScrollGuard2, {}),
|
|
1373
|
+
/* @__PURE__ */ jsx16(LayoutGuard2, {}),
|
|
1238
1374
|
children
|
|
1239
1375
|
]
|
|
1240
1376
|
});
|
|
@@ -1248,7 +1384,7 @@ function ControlledThemeProvider({
|
|
|
1248
1384
|
const isDark = useMediaQuery("(prefers-color-scheme: dark)");
|
|
1249
1385
|
const { theme, setTheme } = controlledTheme;
|
|
1250
1386
|
const resolvedTheme = forcedTheme ?? (theme === "system" ? isDark ? "dark" : "light" : theme);
|
|
1251
|
-
return /* @__PURE__ */
|
|
1387
|
+
return /* @__PURE__ */ jsx16(ThemePalette, {
|
|
1252
1388
|
theme: forcedTheme ?? theme,
|
|
1253
1389
|
resolvedTheme,
|
|
1254
1390
|
setTheme,
|
|
@@ -1258,18 +1394,18 @@ function ControlledThemeProvider({
|
|
|
1258
1394
|
}
|
|
1259
1395
|
function ThemeProvider2(props) {
|
|
1260
1396
|
if (props.controlledTheme)
|
|
1261
|
-
return /* @__PURE__ */
|
|
1397
|
+
return /* @__PURE__ */ jsx16(ControlledThemeProvider, {
|
|
1262
1398
|
...props,
|
|
1263
1399
|
controlledTheme: props.controlledTheme
|
|
1264
1400
|
});
|
|
1265
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ jsx16(StoredThemeProvider, {
|
|
1266
1402
|
...props
|
|
1267
1403
|
});
|
|
1268
1404
|
}
|
|
1269
1405
|
// src/components/AspectRatio.tsx
|
|
1270
|
-
import { jsx as
|
|
1406
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1271
1407
|
function AspectRatio2({ ratio, className, style, ...props }) {
|
|
1272
|
-
return /* @__PURE__ */
|
|
1408
|
+
return /* @__PURE__ */ jsx17("div", {
|
|
1273
1409
|
"data-slot": "aspect-ratio",
|
|
1274
1410
|
className: cn2("relative", className),
|
|
1275
1411
|
style: { aspectRatio: ratio, ...style },
|
|
@@ -1280,9 +1416,9 @@ function AspectRatio2({ ratio, className, style, ...props }) {
|
|
|
1280
1416
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
1281
1417
|
import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
|
|
1282
1418
|
import { useRender as useRender3 } from "@base-ui/react/use-render";
|
|
1283
|
-
import { jsx as
|
|
1419
|
+
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1284
1420
|
function Breadcrumb2({ density, className, ...props }) {
|
|
1285
|
-
return /* @__PURE__ */
|
|
1421
|
+
return /* @__PURE__ */ jsx18("nav", {
|
|
1286
1422
|
"aria-label": "breadcrumb",
|
|
1287
1423
|
"data-density": density,
|
|
1288
1424
|
"data-slot": "breadcrumb",
|
|
@@ -1291,7 +1427,7 @@ function Breadcrumb2({ density, className, ...props }) {
|
|
|
1291
1427
|
});
|
|
1292
1428
|
}
|
|
1293
1429
|
function BreadcrumbList2({ density, overflow = "wrap", className, ...props }) {
|
|
1294
|
-
return /* @__PURE__ */
|
|
1430
|
+
return /* @__PURE__ */ jsx18("ol", {
|
|
1295
1431
|
"data-density": density,
|
|
1296
1432
|
"data-slot": "breadcrumb-list",
|
|
1297
1433
|
"data-overflow": overflow,
|
|
@@ -1300,7 +1436,7 @@ function BreadcrumbList2({ density, overflow = "wrap", className, ...props }) {
|
|
|
1300
1436
|
});
|
|
1301
1437
|
}
|
|
1302
1438
|
function BreadcrumbItem2({ density, className, ...props }) {
|
|
1303
|
-
return /* @__PURE__ */
|
|
1439
|
+
return /* @__PURE__ */ jsx18("li", {
|
|
1304
1440
|
"data-density": density,
|
|
1305
1441
|
"data-slot": "breadcrumb-item",
|
|
1306
1442
|
className: cn2("inline-flex items-center gap-1", className),
|
|
@@ -1322,7 +1458,7 @@ function BreadcrumbLink2({ analytics, density, className, render, ...props }) {
|
|
|
1322
1458
|
});
|
|
1323
1459
|
}
|
|
1324
1460
|
function BreadcrumbPage2({ density, className, ...props }) {
|
|
1325
|
-
return /* @__PURE__ */
|
|
1461
|
+
return /* @__PURE__ */ jsx18("span", {
|
|
1326
1462
|
"data-density": density,
|
|
1327
1463
|
"data-slot": "breadcrumb-page",
|
|
1328
1464
|
role: "link",
|
|
@@ -1333,20 +1469,20 @@ function BreadcrumbPage2({ density, className, ...props }) {
|
|
|
1333
1469
|
});
|
|
1334
1470
|
}
|
|
1335
1471
|
function BreadcrumbSeparator2({ density, children, className, ...props }) {
|
|
1336
|
-
return /* @__PURE__ */
|
|
1472
|
+
return /* @__PURE__ */ jsx18("li", {
|
|
1337
1473
|
"data-density": density,
|
|
1338
1474
|
"data-slot": "breadcrumb-separator",
|
|
1339
1475
|
role: "presentation",
|
|
1340
1476
|
"aria-hidden": "true",
|
|
1341
1477
|
className: cn2("[&>svg]:size-3.5", className),
|
|
1342
1478
|
...props,
|
|
1343
|
-
children: children ?? /* @__PURE__ */
|
|
1479
|
+
children: children ?? /* @__PURE__ */ jsx18(ChevronRightIcon, {
|
|
1344
1480
|
className: "rtl:rotate-180"
|
|
1345
1481
|
})
|
|
1346
1482
|
});
|
|
1347
1483
|
}
|
|
1348
1484
|
function BreadcrumbEllipsis2({ density, className, ...props }) {
|
|
1349
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ jsxs13("span", {
|
|
1350
1486
|
"data-density": density,
|
|
1351
1487
|
"data-slot": "breadcrumb-ellipsis",
|
|
1352
1488
|
role: "presentation",
|
|
@@ -1354,8 +1490,8 @@ function BreadcrumbEllipsis2({ density, className, ...props }) {
|
|
|
1354
1490
|
className: cn2("flex size-5 items-center justify-center [&>svg]:size-4", className),
|
|
1355
1491
|
...props,
|
|
1356
1492
|
children: [
|
|
1357
|
-
/* @__PURE__ */
|
|
1358
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ jsx18(MoreHorizontalIcon, {}),
|
|
1494
|
+
/* @__PURE__ */ jsx18("span", {
|
|
1359
1495
|
className: "sr-only",
|
|
1360
1496
|
children: "More"
|
|
1361
1497
|
})
|
|
@@ -1366,7 +1502,7 @@ function BreadcrumbEllipsis2({ density, className, ...props }) {
|
|
|
1366
1502
|
import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
|
|
1367
1503
|
import { useRender as useRender4 } from "@base-ui/react/use-render";
|
|
1368
1504
|
import { cva } from "class-variance-authority";
|
|
1369
|
-
import { jsx as
|
|
1505
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1370
1506
|
var buttonGroupVariants2 = cva("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-sm [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
1371
1507
|
variants: {
|
|
1372
1508
|
layout: {
|
|
@@ -1389,7 +1525,7 @@ function ButtonGroup2({
|
|
|
1389
1525
|
layout = "content",
|
|
1390
1526
|
...props
|
|
1391
1527
|
}) {
|
|
1392
|
-
return /* @__PURE__ */
|
|
1528
|
+
return /* @__PURE__ */ jsx19("div", {
|
|
1393
1529
|
role: "group",
|
|
1394
1530
|
"data-density": density,
|
|
1395
1531
|
"data-slot": "button-group",
|
|
@@ -1417,7 +1553,7 @@ function ButtonGroupSeparator2({
|
|
|
1417
1553
|
orientation = "vertical",
|
|
1418
1554
|
...props
|
|
1419
1555
|
}) {
|
|
1420
|
-
return /* @__PURE__ */
|
|
1556
|
+
return /* @__PURE__ */ jsx19(Separator2, {
|
|
1421
1557
|
"data-density": density,
|
|
1422
1558
|
"data-slot": "button-group-separator",
|
|
1423
1559
|
orientation,
|
|
@@ -1425,13 +1561,47 @@ function ButtonGroupSeparator2({
|
|
|
1425
1561
|
...props
|
|
1426
1562
|
});
|
|
1427
1563
|
}
|
|
1564
|
+
// src/components/DescriptionList.tsx
|
|
1565
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1566
|
+
function DescriptionList2({ density, className, ...props }) {
|
|
1567
|
+
return /* @__PURE__ */ jsx20("dl", {
|
|
1568
|
+
"data-density": density,
|
|
1569
|
+
"data-slot": "description-list",
|
|
1570
|
+
className: cn2("flex w-full min-w-0 flex-col gap-panel text-sm", className),
|
|
1571
|
+
...props
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
function DescriptionListItem2({ density, className, ...props }) {
|
|
1575
|
+
return /* @__PURE__ */ jsx20("div", {
|
|
1576
|
+
"data-density": density,
|
|
1577
|
+
"data-slot": "description-list-item",
|
|
1578
|
+
className: cn2("flex min-w-0 flex-col gap-1", className),
|
|
1579
|
+
...props
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
function DescriptionTerm2({ density, className, ...props }) {
|
|
1583
|
+
return /* @__PURE__ */ jsx20("dt", {
|
|
1584
|
+
"data-density": density,
|
|
1585
|
+
"data-slot": "description-term",
|
|
1586
|
+
className: cn2("min-w-0 font-medium break-words text-muted-foreground", className),
|
|
1587
|
+
...props
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
function DescriptionDetails2({ density, className, ...props }) {
|
|
1591
|
+
return /* @__PURE__ */ jsx20("dd", {
|
|
1592
|
+
"data-density": density,
|
|
1593
|
+
"data-slot": "description-details",
|
|
1594
|
+
className: cn2("min-w-0 break-words whitespace-pre-wrap text-foreground", className),
|
|
1595
|
+
...props
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1428
1598
|
// src/components/Item.tsx
|
|
1429
1599
|
import { mergeProps as mergeProps5 } from "@base-ui/react/merge-props";
|
|
1430
1600
|
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
1431
1601
|
import { cva as cva2 } from "class-variance-authority";
|
|
1432
|
-
import { jsx as
|
|
1602
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1433
1603
|
function ItemGroup2({ density, className, ...props }) {
|
|
1434
|
-
return /* @__PURE__ */
|
|
1604
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1435
1605
|
role: "list",
|
|
1436
1606
|
"data-density": density,
|
|
1437
1607
|
"data-slot": "item-group",
|
|
@@ -1440,7 +1610,7 @@ function ItemGroup2({ density, className, ...props }) {
|
|
|
1440
1610
|
});
|
|
1441
1611
|
}
|
|
1442
1612
|
function ItemSeparator2({ density, className, ...props }) {
|
|
1443
|
-
return /* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ jsx21(Separator2, {
|
|
1444
1614
|
"data-density": density,
|
|
1445
1615
|
"data-slot": "item-separator",
|
|
1446
1616
|
orientation: "horizontal",
|
|
@@ -1501,7 +1671,7 @@ var itemMediaVariants = cva2("flex shrink-0 items-center justify-center gap-2 gr
|
|
|
1501
1671
|
}
|
|
1502
1672
|
});
|
|
1503
1673
|
function ItemMedia2({ density, className, variant = "default", ...props }) {
|
|
1504
|
-
return /* @__PURE__ */
|
|
1674
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1505
1675
|
"data-density": density,
|
|
1506
1676
|
"data-slot": "item-media",
|
|
1507
1677
|
"data-variant": variant,
|
|
@@ -1510,7 +1680,7 @@ function ItemMedia2({ density, className, variant = "default", ...props }) {
|
|
|
1510
1680
|
});
|
|
1511
1681
|
}
|
|
1512
1682
|
function ItemContent2({ density, className, ...props }) {
|
|
1513
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1514
1684
|
"data-density": density,
|
|
1515
1685
|
"data-slot": "item-content",
|
|
1516
1686
|
className: cn2("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", className),
|
|
@@ -1518,7 +1688,7 @@ function ItemContent2({ density, className, ...props }) {
|
|
|
1518
1688
|
});
|
|
1519
1689
|
}
|
|
1520
1690
|
function ItemTitle2({ density, className, wrap = false, ...props }) {
|
|
1521
|
-
return /* @__PURE__ */
|
|
1691
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1522
1692
|
"data-density": density,
|
|
1523
1693
|
"data-slot": "item-title",
|
|
1524
1694
|
className: cn2(!wrap && "line-clamp-1", "flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", wrap && "min-w-0 max-w-full wrap-anywhere", className),
|
|
@@ -1526,7 +1696,7 @@ function ItemTitle2({ density, className, wrap = false, ...props }) {
|
|
|
1526
1696
|
});
|
|
1527
1697
|
}
|
|
1528
1698
|
function ItemDescription2({ density, className, ...props }) {
|
|
1529
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ jsx21("p", {
|
|
1530
1700
|
"data-density": density,
|
|
1531
1701
|
"data-slot": "item-description",
|
|
1532
1702
|
className: cn2("line-clamp-2 text-start text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
@@ -1534,7 +1704,7 @@ function ItemDescription2({ density, className, ...props }) {
|
|
|
1534
1704
|
});
|
|
1535
1705
|
}
|
|
1536
1706
|
function ItemActions2({ density, className, ...props }) {
|
|
1537
|
-
return /* @__PURE__ */
|
|
1707
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1538
1708
|
"data-density": density,
|
|
1539
1709
|
"data-slot": "item-actions",
|
|
1540
1710
|
className: cn2("flex items-center gap-2", className),
|
|
@@ -1542,7 +1712,7 @@ function ItemActions2({ density, className, ...props }) {
|
|
|
1542
1712
|
});
|
|
1543
1713
|
}
|
|
1544
1714
|
function ItemHeader2({ density, className, ...props }) {
|
|
1545
|
-
return /* @__PURE__ */
|
|
1715
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1546
1716
|
"data-density": density,
|
|
1547
1717
|
"data-slot": "item-header",
|
|
1548
1718
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1550,7 +1720,7 @@ function ItemHeader2({ density, className, ...props }) {
|
|
|
1550
1720
|
});
|
|
1551
1721
|
}
|
|
1552
1722
|
function ItemFooter2({ density, className, ...props }) {
|
|
1553
|
-
return /* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1554
1724
|
"data-density": density,
|
|
1555
1725
|
"data-slot": "item-footer",
|
|
1556
1726
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1559,9 +1729,9 @@ function ItemFooter2({ density, className, ...props }) {
|
|
|
1559
1729
|
}
|
|
1560
1730
|
// src/components/Pagination.tsx
|
|
1561
1731
|
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
1562
|
-
import { jsx as
|
|
1732
|
+
import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1563
1733
|
function Pagination2({ density, className, ...props }) {
|
|
1564
|
-
return /* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ jsx22("nav", {
|
|
1565
1735
|
role: "navigation",
|
|
1566
1736
|
"aria-label": "pagination",
|
|
1567
1737
|
"data-density": density,
|
|
@@ -1571,7 +1741,7 @@ function Pagination2({ density, className, ...props }) {
|
|
|
1571
1741
|
});
|
|
1572
1742
|
}
|
|
1573
1743
|
function PaginationContent2({ density, className, ...props }) {
|
|
1574
|
-
return /* @__PURE__ */
|
|
1744
|
+
return /* @__PURE__ */ jsx22("ul", {
|
|
1575
1745
|
"data-density": density,
|
|
1576
1746
|
"data-slot": "pagination-content",
|
|
1577
1747
|
className: cn2("flex items-center gap-0.5", className),
|
|
@@ -1579,7 +1749,7 @@ function PaginationContent2({ density, className, ...props }) {
|
|
|
1579
1749
|
});
|
|
1580
1750
|
}
|
|
1581
1751
|
function PaginationItem2({ ...props }) {
|
|
1582
|
-
return /* @__PURE__ */
|
|
1752
|
+
return /* @__PURE__ */ jsx22("li", {
|
|
1583
1753
|
"data-slot": "pagination-item",
|
|
1584
1754
|
...props
|
|
1585
1755
|
});
|
|
@@ -1592,7 +1762,7 @@ function PaginationLink2({
|
|
|
1592
1762
|
size = "icon",
|
|
1593
1763
|
...props
|
|
1594
1764
|
}) {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1765
|
+
return /* @__PURE__ */ jsx22(AnalyticsLink, {
|
|
1596
1766
|
component: "PaginationLink",
|
|
1597
1767
|
analytics,
|
|
1598
1768
|
"data-density": density,
|
|
@@ -1609,18 +1779,18 @@ function PaginationPrevious2({
|
|
|
1609
1779
|
text = "Previous",
|
|
1610
1780
|
...props
|
|
1611
1781
|
}) {
|
|
1612
|
-
return /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ jsxs14(PaginationLink2, {
|
|
1613
1783
|
density,
|
|
1614
1784
|
"aria-label": "Go to previous page",
|
|
1615
1785
|
size: "default",
|
|
1616
1786
|
className: cn2("ps-1.5!", className),
|
|
1617
1787
|
...props,
|
|
1618
1788
|
children: [
|
|
1619
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ jsx22(ChevronLeftIcon, {
|
|
1620
1790
|
"data-icon": "inline-start",
|
|
1621
1791
|
className: "rtl:rotate-180"
|
|
1622
1792
|
}),
|
|
1623
|
-
/* @__PURE__ */
|
|
1793
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1624
1794
|
className: "hidden sm:block",
|
|
1625
1795
|
children: text
|
|
1626
1796
|
})
|
|
@@ -1628,18 +1798,18 @@ function PaginationPrevious2({
|
|
|
1628
1798
|
});
|
|
1629
1799
|
}
|
|
1630
1800
|
function PaginationNext2({ density, className, text = "Next", ...props }) {
|
|
1631
|
-
return /* @__PURE__ */
|
|
1801
|
+
return /* @__PURE__ */ jsxs14(PaginationLink2, {
|
|
1632
1802
|
density,
|
|
1633
1803
|
"aria-label": "Go to next page",
|
|
1634
1804
|
size: "default",
|
|
1635
1805
|
className: cn2("pe-1.5!", className),
|
|
1636
1806
|
...props,
|
|
1637
1807
|
children: [
|
|
1638
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1639
1809
|
className: "hidden sm:block",
|
|
1640
1810
|
children: text
|
|
1641
1811
|
}),
|
|
1642
|
-
/* @__PURE__ */
|
|
1812
|
+
/* @__PURE__ */ jsx22(ChevronRightIcon2, {
|
|
1643
1813
|
"data-icon": "inline-end",
|
|
1644
1814
|
className: "rtl:rotate-180"
|
|
1645
1815
|
})
|
|
@@ -1647,15 +1817,15 @@ function PaginationNext2({ density, className, text = "Next", ...props }) {
|
|
|
1647
1817
|
});
|
|
1648
1818
|
}
|
|
1649
1819
|
function PaginationEllipsis2({ density, className, ...props }) {
|
|
1650
|
-
return /* @__PURE__ */
|
|
1820
|
+
return /* @__PURE__ */ jsxs14("span", {
|
|
1651
1821
|
"aria-hidden": true,
|
|
1652
1822
|
"data-density": density,
|
|
1653
1823
|
"data-slot": "pagination-ellipsis",
|
|
1654
1824
|
className: cn2("flex size-control items-center justify-center [&_svg:not([class*='size-'])]:size-4", className),
|
|
1655
1825
|
...props,
|
|
1656
1826
|
children: [
|
|
1657
|
-
/* @__PURE__ */
|
|
1658
|
-
/* @__PURE__ */
|
|
1827
|
+
/* @__PURE__ */ jsx22(MoreHorizontalIcon2, {}),
|
|
1828
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1659
1829
|
className: "sr-only",
|
|
1660
1830
|
children: "More pages"
|
|
1661
1831
|
})
|
|
@@ -1666,9 +1836,9 @@ function PaginationEllipsis2({ density, className, ...props }) {
|
|
|
1666
1836
|
import { CheckIcon } from "lucide-react";
|
|
1667
1837
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1668
1838
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
1669
|
-
import { jsx as
|
|
1839
|
+
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1670
1840
|
function Menubar2({ density, className, ...props }) {
|
|
1671
|
-
return /* @__PURE__ */
|
|
1841
|
+
return /* @__PURE__ */ jsx23(MenubarPrimitive, {
|
|
1672
1842
|
"data-density": density,
|
|
1673
1843
|
"data-slot": "menubar",
|
|
1674
1844
|
className: (state) => cn2("flex h-control items-center gap-0.5 rounded-sm border p-px", typeof className === "function" ? className(state) : className),
|
|
@@ -1680,26 +1850,26 @@ function MenubarMenu2({
|
|
|
1680
1850
|
...props
|
|
1681
1851
|
}) {
|
|
1682
1852
|
const trackedOnOpenChange = useAnalyticsCallback("MenubarMenu", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
1683
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsx23(DropdownMenu2, {
|
|
1684
1854
|
"data-slot": "menubar-menu",
|
|
1685
1855
|
...props,
|
|
1686
1856
|
onOpenChange: trackedOnOpenChange
|
|
1687
1857
|
});
|
|
1688
1858
|
}
|
|
1689
1859
|
function MenubarGroup2({ ...props }) {
|
|
1690
|
-
return /* @__PURE__ */
|
|
1860
|
+
return /* @__PURE__ */ jsx23(MenuGroup2, {
|
|
1691
1861
|
"data-slot": "menubar-group",
|
|
1692
1862
|
...props
|
|
1693
1863
|
});
|
|
1694
1864
|
}
|
|
1695
1865
|
function MenubarPortal2({ ...props }) {
|
|
1696
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsx23(MenuPortal, {
|
|
1697
1867
|
"data-slot": "menubar-portal",
|
|
1698
1868
|
...props
|
|
1699
1869
|
});
|
|
1700
1870
|
}
|
|
1701
1871
|
function MenubarTrigger2({ density, className, ...props }) {
|
|
1702
|
-
return /* @__PURE__ */
|
|
1872
|
+
return /* @__PURE__ */ jsx23(DropdownMenuTrigger2, {
|
|
1703
1873
|
"data-density": density,
|
|
1704
1874
|
"data-slot": "menubar-trigger",
|
|
1705
1875
|
className: (state) => cn2("flex h-full items-center rounded-sm px-control-x text-sm leading-none font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted", typeof className === "function" ? className(state) : className),
|
|
@@ -1714,7 +1884,7 @@ function MenubarContent2({
|
|
|
1714
1884
|
sideOffset = 8,
|
|
1715
1885
|
...props
|
|
1716
1886
|
}) {
|
|
1717
|
-
return /* @__PURE__ */
|
|
1887
|
+
return /* @__PURE__ */ jsx23(MenuPopup, {
|
|
1718
1888
|
density,
|
|
1719
1889
|
"data-slot": "menubar-content",
|
|
1720
1890
|
align,
|
|
@@ -1733,7 +1903,7 @@ function MenubarItem2({
|
|
|
1733
1903
|
...props
|
|
1734
1904
|
}) {
|
|
1735
1905
|
const trackedOnClick = useAnalyticsCallback("MenubarItem", analytics, { name: "ui.activate" }, props.onClick);
|
|
1736
|
-
return /* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ jsx23(MenuItem2, {
|
|
1737
1907
|
density,
|
|
1738
1908
|
"data-slot": "menubar-item",
|
|
1739
1909
|
inset,
|
|
@@ -1753,7 +1923,7 @@ function MenubarCheckboxItem2({
|
|
|
1753
1923
|
...props
|
|
1754
1924
|
}) {
|
|
1755
1925
|
const trackedOnCheckedChange = useAnalyticsCallback("MenubarCheckboxItem", analytics, { name: "ui.change-request" }, props.onCheckedChange);
|
|
1756
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ jsxs15(MenuPrimitive.CheckboxItem, {
|
|
1757
1927
|
"data-density": density,
|
|
1758
1928
|
"data-slot": "menubar-checkbox-item",
|
|
1759
1929
|
"data-inset": inset,
|
|
@@ -1762,10 +1932,10 @@ function MenubarCheckboxItem2({
|
|
|
1762
1932
|
...props,
|
|
1763
1933
|
onCheckedChange: trackedOnCheckedChange,
|
|
1764
1934
|
children: [
|
|
1765
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ jsx23("span", {
|
|
1766
1936
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1767
|
-
children: /* @__PURE__ */
|
|
1768
|
-
children: /* @__PURE__ */
|
|
1937
|
+
children: /* @__PURE__ */ jsx23(MenuPrimitive.CheckboxItemIndicator, {
|
|
1938
|
+
children: /* @__PURE__ */ jsx23(CheckIcon, {})
|
|
1769
1939
|
})
|
|
1770
1940
|
}),
|
|
1771
1941
|
children
|
|
@@ -1773,23 +1943,23 @@ function MenubarCheckboxItem2({
|
|
|
1773
1943
|
});
|
|
1774
1944
|
}
|
|
1775
1945
|
function MenubarRadioGroup2({ ...props }) {
|
|
1776
|
-
return /* @__PURE__ */
|
|
1946
|
+
return /* @__PURE__ */ jsx23(MenuRadioGroup2, {
|
|
1777
1947
|
"data-slot": "menubar-radio-group",
|
|
1778
1948
|
...props
|
|
1779
1949
|
});
|
|
1780
1950
|
}
|
|
1781
1951
|
function MenubarRadioItem2({ density, className, children, inset, ...props }) {
|
|
1782
|
-
return /* @__PURE__ */
|
|
1952
|
+
return /* @__PURE__ */ jsxs15(MenuPrimitive.RadioItem, {
|
|
1783
1953
|
"data-density": density,
|
|
1784
1954
|
"data-slot": "menubar-radio-item",
|
|
1785
1955
|
"data-inset": inset,
|
|
1786
1956
|
className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-1.5 ps-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
1787
1957
|
...props,
|
|
1788
1958
|
children: [
|
|
1789
|
-
/* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ jsx23("span", {
|
|
1790
1960
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1791
|
-
children: /* @__PURE__ */
|
|
1792
|
-
children: /* @__PURE__ */
|
|
1961
|
+
children: /* @__PURE__ */ jsx23(MenuPrimitive.RadioItemIndicator, {
|
|
1962
|
+
children: /* @__PURE__ */ jsx23(CheckIcon, {})
|
|
1793
1963
|
})
|
|
1794
1964
|
}),
|
|
1795
1965
|
children
|
|
@@ -1797,7 +1967,7 @@ function MenubarRadioItem2({ density, className, children, inset, ...props }) {
|
|
|
1797
1967
|
});
|
|
1798
1968
|
}
|
|
1799
1969
|
function MenubarLabel2({ density, className, inset, ...props }) {
|
|
1800
|
-
return /* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ jsx23(MenuLabel2, {
|
|
1801
1971
|
density,
|
|
1802
1972
|
"data-slot": "menubar-label",
|
|
1803
1973
|
inset,
|
|
@@ -1806,7 +1976,7 @@ function MenubarLabel2({ density, className, inset, ...props }) {
|
|
|
1806
1976
|
});
|
|
1807
1977
|
}
|
|
1808
1978
|
function MenubarSeparator2({ density, className, ...props }) {
|
|
1809
|
-
return /* @__PURE__ */
|
|
1979
|
+
return /* @__PURE__ */ jsx23(MenuSeparator2, {
|
|
1810
1980
|
density,
|
|
1811
1981
|
"data-slot": "menubar-separator",
|
|
1812
1982
|
className: (state) => cn2("-mx-1 my-1 h-px bg-border", typeof className === "function" ? className(state) : className),
|
|
@@ -1814,7 +1984,7 @@ function MenubarSeparator2({ density, className, ...props }) {
|
|
|
1814
1984
|
});
|
|
1815
1985
|
}
|
|
1816
1986
|
function MenubarShortcut2({ density, className, ...props }) {
|
|
1817
|
-
return /* @__PURE__ */
|
|
1987
|
+
return /* @__PURE__ */ jsx23(MenuShortcut2, {
|
|
1818
1988
|
"data-density": density,
|
|
1819
1989
|
"data-slot": "menubar-shortcut",
|
|
1820
1990
|
className: cn2("ms-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground", className),
|
|
@@ -1822,13 +1992,13 @@ function MenubarShortcut2({ density, className, ...props }) {
|
|
|
1822
1992
|
});
|
|
1823
1993
|
}
|
|
1824
1994
|
function MenubarSub2({ ...props }) {
|
|
1825
|
-
return /* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ jsx23(MenuSub2, {
|
|
1826
1996
|
"data-slot": "menubar-sub",
|
|
1827
1997
|
...props
|
|
1828
1998
|
});
|
|
1829
1999
|
}
|
|
1830
2000
|
function MenubarSubTrigger2({ density, className, inset, ...props }) {
|
|
1831
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ jsx23(MenuSubTrigger2, {
|
|
1832
2002
|
density,
|
|
1833
2003
|
"data-slot": "menubar-sub-trigger",
|
|
1834
2004
|
inset,
|
|
@@ -1837,7 +2007,7 @@ function MenubarSubTrigger2({ density, className, inset, ...props }) {
|
|
|
1837
2007
|
});
|
|
1838
2008
|
}
|
|
1839
2009
|
function MenubarSubContent2({ density, className, ...props }) {
|
|
1840
|
-
return /* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ jsx23(MenuSubContent2, {
|
|
1841
2011
|
density,
|
|
1842
2012
|
"data-slot": "menubar-sub-content",
|
|
1843
2013
|
className: (state) => cn2(" min-w-32 rounded-sm bg-popover p-1 text-popover-foreground shadow-frame border border-frame-edge border border-frame-edge shadow-frame duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 ", typeof className === "function" ? className(state) : className),
|
|
@@ -1848,7 +2018,7 @@ function MenubarSubContent2({ density, className, ...props }) {
|
|
|
1848
2018
|
import { ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
|
|
1849
2019
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
1850
2020
|
import { cva as cva3 } from "class-variance-authority";
|
|
1851
|
-
import { jsx as
|
|
2021
|
+
import { jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1852
2022
|
function NavigationMenu2({
|
|
1853
2023
|
analytics,
|
|
1854
2024
|
density,
|
|
@@ -1859,7 +2029,7 @@ function NavigationMenu2({
|
|
|
1859
2029
|
}) {
|
|
1860
2030
|
const trackedOnValueChange = useAnalyticsCallback("NavigationMenu", analytics, { name: "ui.change-request" }, props.onValueChange);
|
|
1861
2031
|
const resolvedDensity = useDensity(density);
|
|
1862
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsxs16(NavigationMenuPrimitive.Root, {
|
|
1863
2033
|
"data-density": resolvedDensity,
|
|
1864
2034
|
"data-slot": "navigation-menu",
|
|
1865
2035
|
className: (state) => cn2("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", typeof className === "function" ? className(state) : className),
|
|
@@ -1867,7 +2037,7 @@ function NavigationMenu2({
|
|
|
1867
2037
|
onValueChange: trackedOnValueChange,
|
|
1868
2038
|
children: [
|
|
1869
2039
|
children,
|
|
1870
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ jsx24(NavigationMenuPositioner2, {
|
|
1871
2041
|
density: resolvedDensity,
|
|
1872
2042
|
align
|
|
1873
2043
|
})
|
|
@@ -1875,7 +2045,7 @@ function NavigationMenu2({
|
|
|
1875
2045
|
});
|
|
1876
2046
|
}
|
|
1877
2047
|
function NavigationMenuList2({ density, className, ...props }) {
|
|
1878
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.List, {
|
|
1879
2049
|
"data-density": density,
|
|
1880
2050
|
"data-slot": "navigation-menu-list",
|
|
1881
2051
|
className: (state) => cn2("group flex flex-1 list-none items-center justify-center gap-0", typeof className === "function" ? className(state) : className),
|
|
@@ -1883,7 +2053,7 @@ function NavigationMenuList2({ density, className, ...props }) {
|
|
|
1883
2053
|
});
|
|
1884
2054
|
}
|
|
1885
2055
|
function NavigationMenuItem2({ density, className, ...props }) {
|
|
1886
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Item, {
|
|
1887
2057
|
"data-density": density,
|
|
1888
2058
|
"data-slot": "navigation-menu-item",
|
|
1889
2059
|
className: (state) => cn2("relative", typeof className === "function" ? className(state) : className),
|
|
@@ -1892,7 +2062,7 @@ function NavigationMenuItem2({ density, className, ...props }) {
|
|
|
1892
2062
|
}
|
|
1893
2063
|
var navigationMenuTriggerStyle2 = cva3("group/navigation-menu-trigger inline-flex h-control-lg w-max items-center justify-center rounded-sm px-control-x py-1.5 text-sm font-medium transition-colors outline-none hover:bg-muted focus:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");
|
|
1894
2064
|
function NavigationMenuTrigger2({ density, className, children, ...props }) {
|
|
1895
|
-
return /* @__PURE__ */
|
|
2065
|
+
return /* @__PURE__ */ jsxs16(NavigationMenuPrimitive.Trigger, {
|
|
1896
2066
|
"data-density": density,
|
|
1897
2067
|
"data-slot": "navigation-menu-trigger",
|
|
1898
2068
|
className: (state) => cn2(navigationMenuTriggerStyle2(), "group", typeof className === "function" ? className(state) : className),
|
|
@@ -1900,12 +2070,12 @@ function NavigationMenuTrigger2({ density, className, children, ...props }) {
|
|
|
1900
2070
|
children: [
|
|
1901
2071
|
children,
|
|
1902
2072
|
" ",
|
|
1903
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ jsx24(NavigationMenuIndicator2, {})
|
|
1904
2074
|
]
|
|
1905
2075
|
});
|
|
1906
2076
|
}
|
|
1907
2077
|
function NavigationMenuContent2({ density, className, ...props }) {
|
|
1908
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Content, {
|
|
1909
2079
|
"data-density": density,
|
|
1910
2080
|
"data-slot": "navigation-menu-content",
|
|
1911
2081
|
className: (state) => cn2("data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:opacity-0 data-starting-style:opacity-0 ", typeof className === "function" ? className(state) : className),
|
|
@@ -1925,12 +2095,12 @@ function NavigationMenuPositioner2({
|
|
|
1925
2095
|
const direction = useDirection2();
|
|
1926
2096
|
const container = usePortalContainer2();
|
|
1927
2097
|
const portal = usePortalNode();
|
|
1928
|
-
return /* @__PURE__ */
|
|
2098
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Portal, {
|
|
1929
2099
|
container,
|
|
1930
2100
|
ref: portal.ref,
|
|
1931
|
-
children: /* @__PURE__ */
|
|
2101
|
+
children: /* @__PURE__ */ jsx24(PortalProvider2, {
|
|
1932
2102
|
container: portal.node,
|
|
1933
|
-
children: /* @__PURE__ */
|
|
2103
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Positioner, {
|
|
1934
2104
|
dir: direction,
|
|
1935
2105
|
side,
|
|
1936
2106
|
sideOffset,
|
|
@@ -1938,11 +2108,11 @@ function NavigationMenuPositioner2({
|
|
|
1938
2108
|
alignOffset,
|
|
1939
2109
|
className: (state) => cn2("isolate h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0", typeof className === "function" ? className(state) : className),
|
|
1940
2110
|
...props,
|
|
1941
|
-
children: /* @__PURE__ */
|
|
2111
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Popup, {
|
|
1942
2112
|
"data-density": resolvedDensity,
|
|
1943
2113
|
"data-slot": "navigation-menu-popup",
|
|
1944
2114
|
className: "data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-sm bg-popover text-popover-foreground border border-frame-edge shadow-frame transition-[opacity,transform,width,height,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:opacity-0",
|
|
1945
|
-
children: /* @__PURE__ */
|
|
2115
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Viewport, {
|
|
1946
2116
|
className: "relative size-full overflow-hidden"
|
|
1947
2117
|
})
|
|
1948
2118
|
})
|
|
@@ -1952,7 +2122,7 @@ function NavigationMenuPositioner2({
|
|
|
1952
2122
|
}
|
|
1953
2123
|
function NavigationMenuLink2({ analytics, density, className, ...props }) {
|
|
1954
2124
|
const trackedOnClick = useAnalyticsCallback("NavigationMenuLink", analytics, { name: "ui.activate" }, props.onClick);
|
|
1955
|
-
return /* @__PURE__ */
|
|
2125
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Link, {
|
|
1956
2126
|
"data-density": density,
|
|
1957
2127
|
"data-slot": "navigation-menu-link",
|
|
1958
2128
|
className: (state) => cn2("flex items-center gap-2 rounded-sm p-2 text-sm transition-colors outline-none hover:bg-muted focus:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
@@ -1966,32 +2136,32 @@ function NavigationMenuIndicator2({
|
|
|
1966
2136
|
children,
|
|
1967
2137
|
...props
|
|
1968
2138
|
}) {
|
|
1969
|
-
return /* @__PURE__ */
|
|
2139
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Icon, {
|
|
1970
2140
|
"data-density": density,
|
|
1971
2141
|
"data-slot": "navigation-menu-indicator",
|
|
1972
2142
|
className: (state) => cn2("ms-1 inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-120 data-popup-open:rotate-180 [&_svg]:size-full", typeof className === "function" ? className(state) : className),
|
|
1973
2143
|
...props,
|
|
1974
|
-
children: children ?? /* @__PURE__ */
|
|
2144
|
+
children: children ?? /* @__PURE__ */ jsx24(ChevronDownIcon2, {})
|
|
1975
2145
|
});
|
|
1976
2146
|
}
|
|
1977
2147
|
// src/components/Toast.tsx
|
|
1978
2148
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
1979
2149
|
import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, LoaderCircleIcon, XIcon } from "lucide-react";
|
|
1980
|
-
import { jsx as
|
|
2150
|
+
import { jsx as jsx25, jsxs as jsxs17, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
1981
2151
|
function ToastProvider2(props) {
|
|
1982
|
-
return /* @__PURE__ */
|
|
2152
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Provider, {
|
|
1983
2153
|
...props
|
|
1984
2154
|
});
|
|
1985
2155
|
}
|
|
1986
2156
|
function ToastPortal2({ container, ref, children, ...props }) {
|
|
1987
2157
|
const resolvedContainer = usePortalContainer2(container);
|
|
1988
2158
|
const portal = usePortalNode(ref);
|
|
1989
|
-
return /* @__PURE__ */
|
|
2159
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Portal, {
|
|
1990
2160
|
"data-slot": "toast-portal",
|
|
1991
2161
|
container: resolvedContainer,
|
|
1992
2162
|
ref: portal.ref,
|
|
1993
2163
|
...props,
|
|
1994
|
-
children: /* @__PURE__ */
|
|
2164
|
+
children: /* @__PURE__ */ jsx25(PortalProvider2, {
|
|
1995
2165
|
container: portal.node,
|
|
1996
2166
|
children
|
|
1997
2167
|
})
|
|
@@ -2000,7 +2170,7 @@ function ToastPortal2({ container, ref, children, ...props }) {
|
|
|
2000
2170
|
function ToastViewport2({ density, dir, className, ...props }) {
|
|
2001
2171
|
const resolvedDensity = useDensity(density);
|
|
2002
2172
|
const inheritedDirection = useDirection2();
|
|
2003
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Viewport, {
|
|
2004
2174
|
dir: dir ?? inheritedDirection,
|
|
2005
2175
|
"data-density": resolvedDensity,
|
|
2006
2176
|
"data-slot": "toast-viewport",
|
|
@@ -2009,7 +2179,7 @@ function ToastViewport2({ density, dir, className, ...props }) {
|
|
|
2009
2179
|
});
|
|
2010
2180
|
}
|
|
2011
2181
|
function Toast2({ density, className, ...props }) {
|
|
2012
|
-
return /* @__PURE__ */
|
|
2182
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Root, {
|
|
2013
2183
|
"data-density": density,
|
|
2014
2184
|
"data-slot": "toast",
|
|
2015
2185
|
className: (state) => cn2("group/toast pointer-events-auto absolute right-0 bottom-0 w-full rounded-md border border-frame-edge bg-popover text-popover-foreground shadow-frame outline-none select-none focus-visible:ring-1 focus-visible:ring-ring [--offset-y:calc(var(--toast-offset-y)*-1-var(--toast-index)*var(--spacing-panel))] [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)+var(--toast-swipe-movement-y)))] transition-[transform,opacity] duration-120 ease-out data-limited:opacity-0 data-starting-style:opacity-0 data-ending-style:opacity-0 motion-reduce:transition-none", typeof className === "function" ? className(state) : className),
|
|
@@ -2017,21 +2187,21 @@ function Toast2({ density, className, ...props }) {
|
|
|
2017
2187
|
});
|
|
2018
2188
|
}
|
|
2019
2189
|
function ToastContent2({ className, ...props }) {
|
|
2020
|
-
return /* @__PURE__ */
|
|
2190
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Content, {
|
|
2021
2191
|
"data-slot": "toast-content",
|
|
2022
2192
|
className: (state) => cn2("flex items-center gap-control-gap p-panel", typeof className === "function" ? className(state) : className),
|
|
2023
2193
|
...props
|
|
2024
2194
|
});
|
|
2025
2195
|
}
|
|
2026
2196
|
function ToastTitle2({ className, ...props }) {
|
|
2027
|
-
return /* @__PURE__ */
|
|
2197
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Title, {
|
|
2028
2198
|
"data-slot": "toast-title",
|
|
2029
2199
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
2030
2200
|
...props
|
|
2031
2201
|
});
|
|
2032
2202
|
}
|
|
2033
2203
|
function ToastDescription2({ className, ...props }) {
|
|
2034
|
-
return /* @__PURE__ */
|
|
2204
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Description, {
|
|
2035
2205
|
"data-slot": "toast-description",
|
|
2036
2206
|
className: (state) => cn2("text-sm text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
2037
2207
|
...props
|
|
@@ -2040,14 +2210,14 @@ function ToastDescription2({ className, ...props }) {
|
|
|
2040
2210
|
function ToastAction2({
|
|
2041
2211
|
analytics,
|
|
2042
2212
|
className,
|
|
2043
|
-
render = /* @__PURE__ */
|
|
2213
|
+
render = /* @__PURE__ */ jsx25(Button2, {
|
|
2044
2214
|
variant: "outline",
|
|
2045
2215
|
size: "sm"
|
|
2046
2216
|
}),
|
|
2047
2217
|
...props
|
|
2048
2218
|
}) {
|
|
2049
2219
|
const trackedOnClick = useAnalyticsCallback("ToastAction", analytics, { name: "ui.activate" }, props.onClick);
|
|
2050
|
-
return /* @__PURE__ */
|
|
2220
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Action, {
|
|
2051
2221
|
"data-slot": "toast-action",
|
|
2052
2222
|
render,
|
|
2053
2223
|
className: (state) => cn2("shrink-0", typeof className === "function" ? className(state) : className),
|
|
@@ -2059,21 +2229,21 @@ function ToastClose2({
|
|
|
2059
2229
|
analytics,
|
|
2060
2230
|
className,
|
|
2061
2231
|
children,
|
|
2062
|
-
render = /* @__PURE__ */
|
|
2232
|
+
render = /* @__PURE__ */ jsx25(Button2, {
|
|
2063
2233
|
variant: "ghost",
|
|
2064
2234
|
size: "icon-sm"
|
|
2065
2235
|
}),
|
|
2066
2236
|
...props
|
|
2067
2237
|
}) {
|
|
2068
2238
|
const trackedOnClick = useAnalyticsCallback("ToastClose", analytics, { name: "ui.activate" }, props.onClick);
|
|
2069
|
-
return /* @__PURE__ */
|
|
2239
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Close, {
|
|
2070
2240
|
"data-slot": "toast-close",
|
|
2071
2241
|
"aria-label": "Close toast",
|
|
2072
2242
|
render,
|
|
2073
2243
|
className: (state) => cn2("relative shrink-0 text-muted-foreground hover:text-foreground", typeof className === "function" ? className(state) : className),
|
|
2074
2244
|
...props,
|
|
2075
2245
|
onClick: trackedOnClick,
|
|
2076
|
-
children: children ?? /* @__PURE__ */
|
|
2246
|
+
children: children ?? /* @__PURE__ */ jsx25(XIcon, {
|
|
2077
2247
|
"aria-hidden": "true"
|
|
2078
2248
|
})
|
|
2079
2249
|
});
|
|
@@ -2081,24 +2251,24 @@ function ToastClose2({
|
|
|
2081
2251
|
function ToastIcon({ type }) {
|
|
2082
2252
|
switch (type) {
|
|
2083
2253
|
case "success":
|
|
2084
|
-
return /* @__PURE__ */
|
|
2254
|
+
return /* @__PURE__ */ jsx25(CircleCheckIcon, {
|
|
2085
2255
|
"aria-hidden": "true"
|
|
2086
2256
|
});
|
|
2087
2257
|
case "info":
|
|
2088
|
-
return /* @__PURE__ */
|
|
2258
|
+
return /* @__PURE__ */ jsx25(InfoIcon, {
|
|
2089
2259
|
"aria-hidden": "true"
|
|
2090
2260
|
});
|
|
2091
2261
|
case "warning":
|
|
2092
|
-
return /* @__PURE__ */
|
|
2262
|
+
return /* @__PURE__ */ jsx25(TriangleAlertIcon, {
|
|
2093
2263
|
"aria-hidden": "true"
|
|
2094
2264
|
});
|
|
2095
2265
|
case "error":
|
|
2096
|
-
return /* @__PURE__ */
|
|
2266
|
+
return /* @__PURE__ */ jsx25(OctagonXIcon, {
|
|
2097
2267
|
"aria-hidden": "true",
|
|
2098
2268
|
className: "text-destructive"
|
|
2099
2269
|
});
|
|
2100
2270
|
case "loading":
|
|
2101
|
-
return /* @__PURE__ */
|
|
2271
|
+
return /* @__PURE__ */ jsx25(LoaderCircleIcon, {
|
|
2102
2272
|
"aria-hidden": "true",
|
|
2103
2273
|
className: "animate-spin motion-reduce:animate-none"
|
|
2104
2274
|
});
|
|
@@ -2108,41 +2278,41 @@ function ToastIcon({ type }) {
|
|
|
2108
2278
|
}
|
|
2109
2279
|
function ToastList() {
|
|
2110
2280
|
const { toasts } = ToastPrimitive.useToastManager();
|
|
2111
|
-
return /* @__PURE__ */
|
|
2112
|
-
children: toasts.map((toastItem) => /* @__PURE__ */
|
|
2281
|
+
return /* @__PURE__ */ jsx25(Fragment4, {
|
|
2282
|
+
children: toasts.map((toastItem) => /* @__PURE__ */ jsx25(Toast2, {
|
|
2113
2283
|
toast: toastItem,
|
|
2114
|
-
children: /* @__PURE__ */
|
|
2284
|
+
children: /* @__PURE__ */ jsxs17(ToastContent2, {
|
|
2115
2285
|
children: [
|
|
2116
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ jsx25("span", {
|
|
2117
2287
|
"data-slot": "toast-icon",
|
|
2118
2288
|
className: "shrink-0 empty:hidden [&_svg]:size-4",
|
|
2119
|
-
children: /* @__PURE__ */
|
|
2289
|
+
children: /* @__PURE__ */ jsx25(ToastIcon, {
|
|
2120
2290
|
type: toastItem.type
|
|
2121
2291
|
})
|
|
2122
2292
|
}),
|
|
2123
|
-
/* @__PURE__ */
|
|
2293
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
2124
2294
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
2125
2295
|
children: [
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ jsx25(ToastTitle2, {}),
|
|
2297
|
+
/* @__PURE__ */ jsx25(ToastDescription2, {})
|
|
2128
2298
|
]
|
|
2129
2299
|
}),
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
/* @__PURE__ */
|
|
2300
|
+
/* @__PURE__ */ jsx25(ToastAction2, {}),
|
|
2301
|
+
/* @__PURE__ */ jsx25(ToastClose2, {})
|
|
2132
2302
|
]
|
|
2133
2303
|
})
|
|
2134
2304
|
}, toastItem.id))
|
|
2135
2305
|
});
|
|
2136
2306
|
}
|
|
2137
2307
|
function ToastToaster2({ children, density, ...props }) {
|
|
2138
|
-
return /* @__PURE__ */
|
|
2308
|
+
return /* @__PURE__ */ jsxs17(ToastProvider2, {
|
|
2139
2309
|
...props,
|
|
2140
2310
|
children: [
|
|
2141
2311
|
children,
|
|
2142
|
-
/* @__PURE__ */
|
|
2143
|
-
children: /* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ jsx25(ToastPortal2, {
|
|
2313
|
+
children: /* @__PURE__ */ jsx25(ToastViewport2, {
|
|
2144
2314
|
density,
|
|
2145
|
-
children: /* @__PURE__ */
|
|
2315
|
+
children: /* @__PURE__ */ jsx25(ToastList, {})
|
|
2146
2316
|
})
|
|
2147
2317
|
})
|
|
2148
2318
|
]
|
|
@@ -2158,7 +2328,7 @@ function useToastManager2() {
|
|
|
2158
2328
|
import { mergeProps as mergeProps6 } from "@base-ui/react/merge-props";
|
|
2159
2329
|
import { useRender as useRender6 } from "@base-ui/react/use-render";
|
|
2160
2330
|
import { cva as cva4 } from "class-variance-authority";
|
|
2161
|
-
import { jsx as
|
|
2331
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2162
2332
|
var markerVariants2 = cva4("group/marker relative flex min-h-4 w-full items-center gap-control-gap text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground [&:is(a,button)]:outline-none [&:is(a,button)]:focus-visible:outline-1 [&:is(a,button)]:focus-visible:outline-ring", {
|
|
2163
2333
|
variants: {
|
|
2164
2334
|
variant: {
|
|
@@ -2177,7 +2347,7 @@ function Marker2({ density, className, variant = "default", render, ...props })
|
|
|
2177
2347
|
});
|
|
2178
2348
|
}
|
|
2179
2349
|
function MarkerIcon2({ density, className, ...props }) {
|
|
2180
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2181
2351
|
"data-density": density,
|
|
2182
2352
|
"data-slot": "marker-icon",
|
|
2183
2353
|
"aria-hidden": "true",
|
|
@@ -2186,7 +2356,7 @@ function MarkerIcon2({ density, className, ...props }) {
|
|
|
2186
2356
|
});
|
|
2187
2357
|
}
|
|
2188
2358
|
function MarkerContent2({ density, className, ...props }) {
|
|
2189
|
-
return /* @__PURE__ */
|
|
2359
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2190
2360
|
"data-density": density,
|
|
2191
2361
|
"data-slot": "marker-content",
|
|
2192
2362
|
className: cn2("min-w-0 wrap-break-word group-data-[variant=separator]/marker:text-center [&>a]:underline [&>a]:underline-offset-3 [&>a:hover]:text-foreground", className),
|
|
@@ -2197,9 +2367,9 @@ function MarkerContent2({ density, className, ...props }) {
|
|
|
2197
2367
|
import { mergeProps as mergeProps7 } from "@base-ui/react/merge-props";
|
|
2198
2368
|
import { useRender as useRender7 } from "@base-ui/react/use-render";
|
|
2199
2369
|
import { cva as cva5 } from "class-variance-authority";
|
|
2200
|
-
import { jsx as
|
|
2370
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2201
2371
|
function BubbleGroup2({ density, className, ...props }) {
|
|
2202
|
-
return /* @__PURE__ */
|
|
2372
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2203
2373
|
"data-density": density,
|
|
2204
2374
|
"data-slot": "bubble-group",
|
|
2205
2375
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2221,7 +2391,7 @@ var bubbleVariants = cva5("group/bubble relative flex w-fit max-w-[80%] min-w-0
|
|
|
2221
2391
|
defaultVariants: { variant: "default" }
|
|
2222
2392
|
});
|
|
2223
2393
|
function Bubble2({ density, variant = "default", align = "start", className, ...props }) {
|
|
2224
|
-
return /* @__PURE__ */
|
|
2394
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2225
2395
|
"data-density": density,
|
|
2226
2396
|
"data-slot": "bubble",
|
|
2227
2397
|
"data-variant": variant,
|
|
@@ -2254,7 +2424,7 @@ function BubbleReactions2({
|
|
|
2254
2424
|
className,
|
|
2255
2425
|
...props
|
|
2256
2426
|
}) {
|
|
2257
|
-
return /* @__PURE__ */
|
|
2427
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2258
2428
|
"data-density": density,
|
|
2259
2429
|
"data-slot": "bubble-reactions",
|
|
2260
2430
|
"data-align": align,
|
|
@@ -2273,9 +2443,9 @@ var MessageContext = createContext2(null);
|
|
|
2273
2443
|
|
|
2274
2444
|
// src/components/Message.tsx
|
|
2275
2445
|
import { ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
2276
|
-
import { jsx as
|
|
2446
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2277
2447
|
function MessageGroup2({ density, className, ...props }) {
|
|
2278
|
-
return /* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2279
2449
|
"data-density": density,
|
|
2280
2450
|
"data-slot": "message-group",
|
|
2281
2451
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2286,9 +2456,9 @@ function Message2({ density, className, align = "start", style, ...props }) {
|
|
|
2286
2456
|
const [footerOffset, setFooterOffset] = useState(0);
|
|
2287
2457
|
const context = useMemo2(() => ({ setFooterOffset }), []);
|
|
2288
2458
|
const messageStyle = { ...style, "--message-footer-offset": `${footerOffset}px` };
|
|
2289
|
-
return /* @__PURE__ */
|
|
2459
|
+
return /* @__PURE__ */ jsx28(MessageContext.Provider, {
|
|
2290
2460
|
value: context,
|
|
2291
|
-
children: /* @__PURE__ */
|
|
2461
|
+
children: /* @__PURE__ */ jsx28("div", {
|
|
2292
2462
|
"data-density": density,
|
|
2293
2463
|
"data-slot": "message",
|
|
2294
2464
|
"data-align": align,
|
|
@@ -2299,7 +2469,7 @@ function Message2({ density, className, align = "start", style, ...props }) {
|
|
|
2299
2469
|
});
|
|
2300
2470
|
}
|
|
2301
2471
|
function MessageAvatar2({ density, className, ...props }) {
|
|
2302
|
-
return /* @__PURE__ */
|
|
2472
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2303
2473
|
"data-density": density,
|
|
2304
2474
|
"data-slot": "message-avatar",
|
|
2305
2475
|
className: cn2("flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-(--message-footer-offset)", className),
|
|
@@ -2307,7 +2477,7 @@ function MessageAvatar2({ density, className, ...props }) {
|
|
|
2307
2477
|
});
|
|
2308
2478
|
}
|
|
2309
2479
|
function MessageContent2({ density, className, ...props }) {
|
|
2310
|
-
return /* @__PURE__ */
|
|
2480
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2311
2481
|
"data-density": density,
|
|
2312
2482
|
"data-slot": "message-content",
|
|
2313
2483
|
className: cn2("flex w-full min-w-0 flex-col gap-control-gap wrap-break-word group-data-[align=end]/message:[&>[data-slot]:not([data-slot=message-header])]:self-end", className),
|
|
@@ -2315,7 +2485,7 @@ function MessageContent2({ density, className, ...props }) {
|
|
|
2315
2485
|
});
|
|
2316
2486
|
}
|
|
2317
2487
|
function MessageHeader2({ density, className, ...props }) {
|
|
2318
|
-
return /* @__PURE__ */
|
|
2488
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2319
2489
|
"data-density": density,
|
|
2320
2490
|
"data-slot": "message-header",
|
|
2321
2491
|
className: cn2("flex max-w-full min-w-0 items-center px-control-x text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0", className),
|
|
@@ -2354,7 +2524,7 @@ function MessageFooter2({ density, className, ...props }) {
|
|
|
2354
2524
|
});
|
|
2355
2525
|
}
|
|
2356
2526
|
function MessageThread2({ density, className, ...props }) {
|
|
2357
|
-
return /* @__PURE__ */
|
|
2527
|
+
return /* @__PURE__ */ jsx28(Collapsible2, {
|
|
2358
2528
|
"data-density": density,
|
|
2359
2529
|
"data-slot": "message-thread",
|
|
2360
2530
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2362,13 +2532,13 @@ function MessageThread2({ density, className, ...props }) {
|
|
|
2362
2532
|
});
|
|
2363
2533
|
}
|
|
2364
2534
|
function MessageThreadSummary2({ density, className, children, ...props }) {
|
|
2365
|
-
return /* @__PURE__ */
|
|
2535
|
+
return /* @__PURE__ */ jsxs18(CollapsibleTrigger2, {
|
|
2366
2536
|
"data-density": density,
|
|
2367
2537
|
"data-slot": "message-thread-summary",
|
|
2368
2538
|
className: cn2(buttonVariants2({ variant: "link", size: "inline" }), "group/message-thread-summary w-fit max-w-full justify-start text-xs whitespace-normal text-muted-foreground", className),
|
|
2369
2539
|
...props,
|
|
2370
2540
|
children: [
|
|
2371
|
-
/* @__PURE__ */
|
|
2541
|
+
/* @__PURE__ */ jsx28(ChevronRightIcon3, {
|
|
2372
2542
|
"aria-hidden": "true",
|
|
2373
2543
|
className: "size-3 shrink-0 group-aria-expanded/message-thread-summary:rotate-90 motion-reduce:transition-none"
|
|
2374
2544
|
}),
|
|
@@ -2377,7 +2547,7 @@ function MessageThreadSummary2({ density, className, children, ...props }) {
|
|
|
2377
2547
|
});
|
|
2378
2548
|
}
|
|
2379
2549
|
function MessageThreadReplies2({ density, className, ...props }) {
|
|
2380
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ jsx28(CollapsibleContent2, {
|
|
2381
2551
|
"data-density": density,
|
|
2382
2552
|
"data-slot": "message-thread-replies",
|
|
2383
2553
|
className: cn2("min-w-0", className),
|
|
@@ -2388,7 +2558,7 @@ function MessageThreadReplies2({ density, className, ...props }) {
|
|
|
2388
2558
|
import { mergeProps as mergeProps8 } from "@base-ui/react/merge-props";
|
|
2389
2559
|
import { useRender as useRender9 } from "@base-ui/react/use-render";
|
|
2390
2560
|
import { cva as cva6 } from "class-variance-authority";
|
|
2391
|
-
import { jsx as
|
|
2561
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2392
2562
|
var attachmentVariants = cva6("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-md border bg-card text-card-foreground transition-colors motion-reduce:transition-none focus-within:ring-1 focus-within:ring-ring has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive data-[state=idle]:border-dashed", {
|
|
2393
2563
|
variants: {
|
|
2394
2564
|
size: {
|
|
@@ -2410,7 +2580,7 @@ function Attachment2({
|
|
|
2410
2580
|
orientation = "horizontal",
|
|
2411
2581
|
...props
|
|
2412
2582
|
}) {
|
|
2413
|
-
return /* @__PURE__ */
|
|
2583
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2414
2584
|
"data-slot": "attachment",
|
|
2415
2585
|
"data-density": density,
|
|
2416
2586
|
"data-state": state,
|
|
@@ -2430,7 +2600,7 @@ var attachmentMediaVariants = cva6("relative flex aspect-square w-10 shrink-0 it
|
|
|
2430
2600
|
defaultVariants: { variant: "icon" }
|
|
2431
2601
|
});
|
|
2432
2602
|
function AttachmentMedia2({ density, className, variant = "icon", ...props }) {
|
|
2433
|
-
return /* @__PURE__ */
|
|
2603
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2434
2604
|
"data-slot": "attachment-media",
|
|
2435
2605
|
"data-density": density,
|
|
2436
2606
|
"data-variant": variant,
|
|
@@ -2439,7 +2609,7 @@ function AttachmentMedia2({ density, className, variant = "icon", ...props }) {
|
|
|
2439
2609
|
});
|
|
2440
2610
|
}
|
|
2441
2611
|
function AttachmentContent2({ density, className, ...props }) {
|
|
2442
|
-
return /* @__PURE__ */
|
|
2612
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2443
2613
|
"data-slot": "attachment-content",
|
|
2444
2614
|
"data-density": density,
|
|
2445
2615
|
className: cn2("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
@@ -2447,7 +2617,7 @@ function AttachmentContent2({ density, className, ...props }) {
|
|
|
2447
2617
|
});
|
|
2448
2618
|
}
|
|
2449
2619
|
function AttachmentTitle2({ density, className, ...props }) {
|
|
2450
|
-
return /* @__PURE__ */
|
|
2620
|
+
return /* @__PURE__ */ jsx29("span", {
|
|
2451
2621
|
"data-slot": "attachment-title",
|
|
2452
2622
|
"data-density": density,
|
|
2453
2623
|
className: cn2("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer", className),
|
|
@@ -2455,7 +2625,7 @@ function AttachmentTitle2({ density, className, ...props }) {
|
|
|
2455
2625
|
});
|
|
2456
2626
|
}
|
|
2457
2627
|
function AttachmentDescription2({ density, className, ...props }) {
|
|
2458
|
-
return /* @__PURE__ */
|
|
2628
|
+
return /* @__PURE__ */ jsx29("span", {
|
|
2459
2629
|
"data-slot": "attachment-description",
|
|
2460
2630
|
"data-density": density,
|
|
2461
2631
|
className: cn2("mt-0.5 block max-w-full min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive", className),
|
|
@@ -2463,7 +2633,7 @@ function AttachmentDescription2({ density, className, ...props }) {
|
|
|
2463
2633
|
});
|
|
2464
2634
|
}
|
|
2465
2635
|
function AttachmentActions2({ density, className, ...props }) {
|
|
2466
|
-
return /* @__PURE__ */
|
|
2636
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2467
2637
|
"data-slot": "attachment-actions",
|
|
2468
2638
|
"data-density": density,
|
|
2469
2639
|
className: cn2("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
@@ -2476,7 +2646,7 @@ function AttachmentAction2({
|
|
|
2476
2646
|
size = "icon-xs",
|
|
2477
2647
|
...props
|
|
2478
2648
|
}) {
|
|
2479
|
-
return /* @__PURE__ */
|
|
2649
|
+
return /* @__PURE__ */ jsx29(Button2, {
|
|
2480
2650
|
"data-slot": "attachment-action",
|
|
2481
2651
|
variant,
|
|
2482
2652
|
size,
|
|
@@ -2501,7 +2671,7 @@ function AttachmentTrigger2({
|
|
|
2501
2671
|
});
|
|
2502
2672
|
}
|
|
2503
2673
|
function AttachmentGroup2({ density, className, ...props }) {
|
|
2504
|
-
return /* @__PURE__ */
|
|
2674
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2505
2675
|
"data-slot": "attachment-group",
|
|
2506
2676
|
"data-density": density,
|
|
2507
2677
|
className: cn2("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 no-scrollbar gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
|
|
@@ -2509,8 +2679,8 @@ function AttachmentGroup2({ density, className, ...props }) {
|
|
|
2509
2679
|
});
|
|
2510
2680
|
}
|
|
2511
2681
|
// src/components/InlineEdit.tsx
|
|
2512
|
-
import { useEffect as useEffect2, useId as
|
|
2513
|
-
import { jsx as
|
|
2682
|
+
import { useEffect as useEffect2, useId as useId5, useRef as useRef2, useState as useState2 } from "react";
|
|
2683
|
+
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2514
2684
|
function InlineEdit2({
|
|
2515
2685
|
analytics,
|
|
2516
2686
|
label,
|
|
@@ -2525,7 +2695,7 @@ function InlineEdit2({
|
|
|
2525
2695
|
onCancel
|
|
2526
2696
|
}) {
|
|
2527
2697
|
const track = useAnalytics2("InlineEdit", analytics);
|
|
2528
|
-
const triggerId =
|
|
2698
|
+
const triggerId = useId5();
|
|
2529
2699
|
const errorId = `${triggerId}-error`;
|
|
2530
2700
|
const input = useRef2(null);
|
|
2531
2701
|
const isFinished = useRef2(false);
|
|
@@ -2560,22 +2730,22 @@ function InlineEdit2({
|
|
|
2560
2730
|
setSaving(false);
|
|
2561
2731
|
}
|
|
2562
2732
|
};
|
|
2563
|
-
return /* @__PURE__ */
|
|
2733
|
+
return /* @__PURE__ */ jsxs19("form", {
|
|
2564
2734
|
className: "min-w-0",
|
|
2565
2735
|
onSubmit: (event) => {
|
|
2566
2736
|
event.preventDefault();
|
|
2567
2737
|
save();
|
|
2568
2738
|
},
|
|
2569
2739
|
children: [
|
|
2570
|
-
/* @__PURE__ */
|
|
2740
|
+
/* @__PURE__ */ jsxs19(Tooltip2, {
|
|
2571
2741
|
open: Boolean(error) && isErrorOpen,
|
|
2572
2742
|
onOpenChange: setErrorOpen,
|
|
2573
2743
|
disableHoverablePopup: true,
|
|
2574
2744
|
triggerId,
|
|
2575
2745
|
children: [
|
|
2576
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ jsx30(TooltipTrigger2, {
|
|
2577
2747
|
id: triggerId,
|
|
2578
|
-
render: /* @__PURE__ */
|
|
2748
|
+
render: /* @__PURE__ */ jsx30(Input2, {
|
|
2579
2749
|
analytics: false,
|
|
2580
2750
|
ref: input,
|
|
2581
2751
|
density,
|
|
@@ -2607,20 +2777,20 @@ function InlineEdit2({
|
|
|
2607
2777
|
}
|
|
2608
2778
|
})
|
|
2609
2779
|
}),
|
|
2610
|
-
error && /* @__PURE__ */
|
|
2780
|
+
error && /* @__PURE__ */ jsx30(TooltipContent2, {
|
|
2611
2781
|
density,
|
|
2612
2782
|
side: "bottom",
|
|
2613
2783
|
align: "start",
|
|
2614
2784
|
"data-testid": "InlineEdit--error-popup",
|
|
2615
2785
|
"aria-hidden": true,
|
|
2616
|
-
children: /* @__PURE__ */
|
|
2786
|
+
children: /* @__PURE__ */ jsx30("p", {
|
|
2617
2787
|
className: "text-destructive",
|
|
2618
2788
|
children: error
|
|
2619
2789
|
})
|
|
2620
2790
|
})
|
|
2621
2791
|
]
|
|
2622
2792
|
}),
|
|
2623
|
-
error && /* @__PURE__ */
|
|
2793
|
+
error && /* @__PURE__ */ jsx30("p", {
|
|
2624
2794
|
id: errorId,
|
|
2625
2795
|
role: "alert",
|
|
2626
2796
|
className: "sr-only",
|
|
@@ -2633,7 +2803,7 @@ function InlineEdit2({
|
|
|
2633
2803
|
import { useState as useState3 } from "react";
|
|
2634
2804
|
import { Radio } from "@base-ui/react/radio";
|
|
2635
2805
|
import { StarIcon, CircleOffIcon } from "lucide-react";
|
|
2636
|
-
import { jsx as
|
|
2806
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2637
2807
|
var ITEM_SIZES = { comfortable: "size-5", compact: "size-4" };
|
|
2638
2808
|
var STAR_SIZES = { comfortable: "size-3.5", compact: "size-3" };
|
|
2639
2809
|
var CLEAR_SIZES = { comfortable: "size-3", compact: "size-2.5" };
|
|
@@ -2670,7 +2840,7 @@ function StarRating2({
|
|
|
2670
2840
|
onValueChange(draft);
|
|
2671
2841
|
setDraft(null);
|
|
2672
2842
|
};
|
|
2673
|
-
return /* @__PURE__ */
|
|
2843
|
+
return /* @__PURE__ */ jsx31(RadioGroup2, {
|
|
2674
2844
|
analytics,
|
|
2675
2845
|
"aria-label": label,
|
|
2676
2846
|
"aria-busy": busy || undefined,
|
|
@@ -2680,7 +2850,7 @@ function StarRating2({
|
|
|
2680
2850
|
className: "inline-flex w-fit shrink-0 items-center gap-0.5",
|
|
2681
2851
|
onValueChange: isConfirm ? (next) => setDraft(next) : onValueChange,
|
|
2682
2852
|
onBlur,
|
|
2683
|
-
children: [1, 2, 3, 4, 5, ...clearable ? [0] : []].map((star) => /* @__PURE__ */
|
|
2853
|
+
children: [1, 2, 3, 4, 5, ...clearable ? [0] : []].map((star) => /* @__PURE__ */ jsx31(Radio.Root, {
|
|
2684
2854
|
value: star,
|
|
2685
2855
|
nativeButton: true,
|
|
2686
2856
|
...focusable ? {} : { tabIndex: -1 },
|
|
@@ -2691,17 +2861,17 @@ function StarRating2({
|
|
|
2691
2861
|
confirm(star);
|
|
2692
2862
|
}
|
|
2693
2863
|
},
|
|
2694
|
-
render: /* @__PURE__ */
|
|
2864
|
+
render: /* @__PURE__ */ jsx31(AnalyticsButton, {
|
|
2695
2865
|
component: "StarRating",
|
|
2696
2866
|
type: "button"
|
|
2697
2867
|
}),
|
|
2698
2868
|
"aria-label": star === 0 ? "Unrated" : `${star} ${star === 1 ? "star" : "stars"}`,
|
|
2699
2869
|
title: star === 0 ? "Clear rating" : `${star} stars`,
|
|
2700
2870
|
className: cn2("inline-flex shrink-0 items-center justify-center rounded-sm text-muted-foreground outline-none hover:text-primary focus-visible:ring-1 focus-visible:ring-ring data-disabled:cursor-not-allowed data-disabled:opacity-50", ITEM_SIZES[density]),
|
|
2701
|
-
children: star === 0 ? /* @__PURE__ */
|
|
2871
|
+
children: star === 0 ? /* @__PURE__ */ jsx31(CircleOffIcon, {
|
|
2702
2872
|
"aria-hidden": "true",
|
|
2703
2873
|
className: CLEAR_SIZES[density]
|
|
2704
|
-
}) : /* @__PURE__ */
|
|
2874
|
+
}) : /* @__PURE__ */ jsx31(StarIcon, {
|
|
2705
2875
|
"aria-hidden": "true",
|
|
2706
2876
|
className: star <= shown ? cn2(STAR_SIZES[density], "fill-primary text-primary") : STAR_SIZES[density]
|
|
2707
2877
|
})
|
|
@@ -2711,7 +2881,7 @@ function StarRating2({
|
|
|
2711
2881
|
// src/components/ReviewList.tsx
|
|
2712
2882
|
import { useRef as useRef3, useState as useState4 } from "react";
|
|
2713
2883
|
import { ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
2714
|
-
import { jsx as
|
|
2884
|
+
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2715
2885
|
var TOGGLE_KEYS = new Set(["x", "X"]);
|
|
2716
2886
|
function isMod(event) {
|
|
2717
2887
|
return event.metaKey || event.ctrlKey;
|
|
@@ -2794,7 +2964,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2794
2964
|
setCursor({ row: index, cell });
|
|
2795
2965
|
};
|
|
2796
2966
|
const isTree = rows.some((row) => row.level !== undefined);
|
|
2797
|
-
return /* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ jsx32("div", {
|
|
2798
2968
|
"data-slot": "review-list",
|
|
2799
2969
|
role: isTree ? "treegrid" : "grid",
|
|
2800
2970
|
"aria-label": label,
|
|
@@ -2811,7 +2981,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2811
2981
|
cellsRef.current.delete(key);
|
|
2812
2982
|
};
|
|
2813
2983
|
const tabIndex = (cell) => isCursorRow && cursor.cell === cell ? 0 : -1;
|
|
2814
|
-
return /* @__PURE__ */
|
|
2984
|
+
return /* @__PURE__ */ jsxs20("div", {
|
|
2815
2985
|
role: "row",
|
|
2816
2986
|
"aria-rowindex": index + 1,
|
|
2817
2987
|
"aria-level": isTree ? row.level ?? 1 : undefined,
|
|
@@ -2819,13 +2989,13 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2819
2989
|
"data-included": row.isIncluded || undefined,
|
|
2820
2990
|
className: cn2("flex min-w-0 items-start gap-2 rounded-sm px-1 py-0.5 focus-within:bg-accent/50", !row.isIncluded && "text-muted-foreground"),
|
|
2821
2991
|
children: [
|
|
2822
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ jsx32("div", {
|
|
2823
2993
|
ref: cellRef(0),
|
|
2824
2994
|
role: "gridcell",
|
|
2825
2995
|
tabIndex: tabIndex(0),
|
|
2826
2996
|
className: "flex shrink-0 items-center pt-0.5 outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
2827
2997
|
onClick: (event) => onRowClick(event, row, index, 0),
|
|
2828
|
-
children: /* @__PURE__ */
|
|
2998
|
+
children: /* @__PURE__ */ jsx32(Checkbox2, {
|
|
2829
2999
|
"aria-label": row.checkboxLabel,
|
|
2830
3000
|
checked: row.isIncluded,
|
|
2831
3001
|
indeterminate: row.isIndeterminate,
|
|
@@ -2838,7 +3008,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2838
3008
|
}
|
|
2839
3009
|
})
|
|
2840
3010
|
}),
|
|
2841
|
-
/* @__PURE__ */
|
|
3011
|
+
/* @__PURE__ */ jsxs20("div", {
|
|
2842
3012
|
ref: cellRef(1),
|
|
2843
3013
|
role: "gridcell",
|
|
2844
3014
|
tabIndex: tabIndex(1),
|
|
@@ -2846,9 +3016,9 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2846
3016
|
style: isTree ? { paddingInlineStart: `${((row.level ?? 1) - 1) * 1.25}rem` } : undefined,
|
|
2847
3017
|
onClick: (event) => onRowClick(event, row, index, 1),
|
|
2848
3018
|
children: [
|
|
2849
|
-
isTree && /* @__PURE__ */
|
|
3019
|
+
isTree && /* @__PURE__ */ jsx32("span", {
|
|
2850
3020
|
className: "flex size-5 shrink-0 items-center justify-center",
|
|
2851
|
-
children: row.isExpanded !== undefined && /* @__PURE__ */
|
|
3021
|
+
children: row.isExpanded !== undefined && /* @__PURE__ */ jsx32("button", {
|
|
2852
3022
|
type: "button",
|
|
2853
3023
|
tabIndex: -1,
|
|
2854
3024
|
"aria-hidden": "true",
|
|
@@ -2859,18 +3029,18 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2859
3029
|
setCursor({ row: index, cell: 1 });
|
|
2860
3030
|
onExpandedChange?.(row.id, !row.isExpanded);
|
|
2861
3031
|
},
|
|
2862
|
-
children: /* @__PURE__ */
|
|
3032
|
+
children: /* @__PURE__ */ jsx32(ChevronRightIcon4, {
|
|
2863
3033
|
className: cn2("size-4 transition-transform", row.isExpanded && "rotate-90")
|
|
2864
3034
|
})
|
|
2865
3035
|
})
|
|
2866
3036
|
}),
|
|
2867
|
-
/* @__PURE__ */
|
|
3037
|
+
/* @__PURE__ */ jsx32("div", {
|
|
2868
3038
|
className: "min-w-0 flex-1",
|
|
2869
3039
|
children: row.content
|
|
2870
3040
|
})
|
|
2871
3041
|
]
|
|
2872
3042
|
}),
|
|
2873
|
-
row.cells?.map((cell, offset) => /* @__PURE__ */
|
|
3043
|
+
row.cells?.map((cell, offset) => /* @__PURE__ */ jsx32("div", {
|
|
2874
3044
|
ref: cellRef(offset + 2),
|
|
2875
3045
|
role: "gridcell",
|
|
2876
3046
|
tabIndex: tabIndex(offset + 2),
|
|
@@ -2885,10 +3055,10 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2885
3055
|
}
|
|
2886
3056
|
// src/components/ChoiceTable.tsx
|
|
2887
3057
|
import {
|
|
2888
|
-
useId as
|
|
3058
|
+
useId as useId6,
|
|
2889
3059
|
useRef as useRef4
|
|
2890
3060
|
} from "react";
|
|
2891
|
-
import { jsx as
|
|
3061
|
+
import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2892
3062
|
function isModified(event) {
|
|
2893
3063
|
return event.altKey || event.metaKey || event.ctrlKey || event.shiftKey;
|
|
2894
3064
|
}
|
|
@@ -2901,7 +3071,7 @@ function ChoiceTable2({
|
|
|
2901
3071
|
onConfirm,
|
|
2902
3072
|
ref
|
|
2903
3073
|
}) {
|
|
2904
|
-
const baseId =
|
|
3074
|
+
const baseId = useId6();
|
|
2905
3075
|
const rowsRef = useRef4(new Map);
|
|
2906
3076
|
const chosenIndex = rows.findIndex((row) => row.id === value);
|
|
2907
3077
|
const rowId = (id) => `${baseId}-${id}`;
|
|
@@ -2940,7 +3110,7 @@ function ChoiceTable2({
|
|
|
2940
3110
|
onValueChange(row.id);
|
|
2941
3111
|
event.currentTarget.closest("[role='grid']")?.focus({ preventScroll: true });
|
|
2942
3112
|
};
|
|
2943
|
-
return /* @__PURE__ */
|
|
3113
|
+
return /* @__PURE__ */ jsxs21("div", {
|
|
2944
3114
|
ref,
|
|
2945
3115
|
"data-slot": "choice-table",
|
|
2946
3116
|
role: "grid",
|
|
@@ -2952,12 +3122,12 @@ function ChoiceTable2({
|
|
|
2952
3122
|
className: "group/choice flex min-w-0 flex-col rounded-md text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2953
3123
|
onKeyDown,
|
|
2954
3124
|
children: [
|
|
2955
|
-
/* @__PURE__ */
|
|
3125
|
+
/* @__PURE__ */ jsx33("div", {
|
|
2956
3126
|
role: "row",
|
|
2957
3127
|
"aria-rowindex": 1,
|
|
2958
3128
|
style: template,
|
|
2959
3129
|
className: "grid items-end gap-x-3 border-b px-3 py-1.5 text-xs text-muted-foreground",
|
|
2960
|
-
children: columns.map((column) => /* @__PURE__ */
|
|
3130
|
+
children: columns.map((column) => /* @__PURE__ */ jsx33("div", {
|
|
2961
3131
|
role: "columnheader",
|
|
2962
3132
|
className: cn2("min-w-0", column.isEnd && "text-end"),
|
|
2963
3133
|
children: column.header
|
|
@@ -2965,7 +3135,7 @@ function ChoiceTable2({
|
|
|
2965
3135
|
}),
|
|
2966
3136
|
rows.map((row, index) => {
|
|
2967
3137
|
const isChosen = index === chosenIndex;
|
|
2968
|
-
return /* @__PURE__ */
|
|
3138
|
+
return /* @__PURE__ */ jsxs21("div", {
|
|
2969
3139
|
id: rowId(row.id),
|
|
2970
3140
|
ref: (element) => {
|
|
2971
3141
|
if (element)
|
|
@@ -2982,12 +3152,12 @@ function ChoiceTable2({
|
|
|
2982
3152
|
className: cn2("grid cursor-default items-start gap-x-3 gap-y-2 border-b border-l-2 border-l-transparent px-3 py-2", isChosen && "border-l-primary bg-accent/60 group-focus-visible/choice:bg-accent"),
|
|
2983
3153
|
onClick: (event) => onRowClick(event, row),
|
|
2984
3154
|
children: [
|
|
2985
|
-
row.cells.map((cell, cellIndex) => /* @__PURE__ */
|
|
3155
|
+
row.cells.map((cell, cellIndex) => /* @__PURE__ */ jsx33("div", {
|
|
2986
3156
|
role: "gridcell",
|
|
2987
3157
|
className: cn2("min-w-0 break-words", columns[cellIndex]?.isEnd && "text-end"),
|
|
2988
3158
|
children: cell
|
|
2989
3159
|
}, cellIndex)),
|
|
2990
|
-
row.detail !== undefined && /* @__PURE__ */
|
|
3160
|
+
row.detail !== undefined && /* @__PURE__ */ jsx33("div", {
|
|
2991
3161
|
"data-slot": "choice-table-detail",
|
|
2992
3162
|
role: "gridcell",
|
|
2993
3163
|
className: "col-span-full min-w-0",
|
|
@@ -3001,7 +3171,7 @@ function ChoiceTable2({
|
|
|
3001
3171
|
}
|
|
3002
3172
|
// src/components/ConfirmationDialog.tsx
|
|
3003
3173
|
import { useState as useState5 } from "react";
|
|
3004
|
-
import { jsx as
|
|
3174
|
+
import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3005
3175
|
function ConfirmationDialog2({
|
|
3006
3176
|
open,
|
|
3007
3177
|
title,
|
|
@@ -3013,7 +3183,7 @@ function ConfirmationDialog2({
|
|
|
3013
3183
|
}) {
|
|
3014
3184
|
const [isPending, setPending] = useState5(false);
|
|
3015
3185
|
const [error, setError] = useState5(null);
|
|
3016
|
-
return /* @__PURE__ */
|
|
3186
|
+
return /* @__PURE__ */ jsx34(AlertDialog2, {
|
|
3017
3187
|
open,
|
|
3018
3188
|
onOpenChange: (next, details) => {
|
|
3019
3189
|
if (isPending)
|
|
@@ -3023,33 +3193,33 @@ function ConfirmationDialog2({
|
|
|
3023
3193
|
onOpenChange(next);
|
|
3024
3194
|
}
|
|
3025
3195
|
},
|
|
3026
|
-
children: /* @__PURE__ */
|
|
3196
|
+
children: /* @__PURE__ */ jsxs22(AlertDialogContent2, {
|
|
3027
3197
|
children: [
|
|
3028
|
-
/* @__PURE__ */
|
|
3029
|
-
children: /* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx34(AlertDialogHeader2, {
|
|
3199
|
+
children: /* @__PURE__ */ jsx34(AlertDialogTitle2, {
|
|
3030
3200
|
children: title
|
|
3031
3201
|
})
|
|
3032
3202
|
}),
|
|
3033
|
-
/* @__PURE__ */
|
|
3203
|
+
/* @__PURE__ */ jsxs22(ScrollArea2, {
|
|
3034
3204
|
children: [
|
|
3035
|
-
/* @__PURE__ */
|
|
3205
|
+
/* @__PURE__ */ jsx34(AlertDialogDescription2, {
|
|
3036
3206
|
children: description
|
|
3037
3207
|
}),
|
|
3038
|
-
error && /* @__PURE__ */
|
|
3208
|
+
error && /* @__PURE__ */ jsx34(Alert2, {
|
|
3039
3209
|
variant: "destructive",
|
|
3040
|
-
children: /* @__PURE__ */
|
|
3210
|
+
children: /* @__PURE__ */ jsx34(AlertDescription2, {
|
|
3041
3211
|
children: error
|
|
3042
3212
|
})
|
|
3043
3213
|
})
|
|
3044
3214
|
]
|
|
3045
3215
|
}),
|
|
3046
|
-
/* @__PURE__ */
|
|
3216
|
+
/* @__PURE__ */ jsxs22(AlertDialogFooter2, {
|
|
3047
3217
|
children: [
|
|
3048
|
-
/* @__PURE__ */
|
|
3218
|
+
/* @__PURE__ */ jsx34(AlertDialogCancel2, {
|
|
3049
3219
|
disabled: isPending,
|
|
3050
3220
|
children: "Cancel"
|
|
3051
3221
|
}),
|
|
3052
|
-
/* @__PURE__ */
|
|
3222
|
+
/* @__PURE__ */ jsx34(Button2, {
|
|
3053
3223
|
variant: "destructive",
|
|
3054
3224
|
disabled: isPending,
|
|
3055
3225
|
onClick: async () => {
|
|
@@ -3093,7 +3263,7 @@ function useObjectURL(file) {
|
|
|
3093
3263
|
}
|
|
3094
3264
|
|
|
3095
3265
|
// src/components/ImagePicker.tsx
|
|
3096
|
-
import { jsx as
|
|
3266
|
+
import { jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3097
3267
|
function ImagePicker2({
|
|
3098
3268
|
analytics,
|
|
3099
3269
|
src,
|
|
@@ -3107,27 +3277,27 @@ function ImagePicker2({
|
|
|
3107
3277
|
const input = useRef5(null);
|
|
3108
3278
|
const preview = useObjectURL(file);
|
|
3109
3279
|
const image = file === null ? undefined : preview ?? src;
|
|
3110
|
-
return /* @__PURE__ */
|
|
3280
|
+
return /* @__PURE__ */ jsxs23("figure", {
|
|
3111
3281
|
className: "flex min-w-0 flex-col items-center gap-3",
|
|
3112
3282
|
"aria-label": label,
|
|
3113
3283
|
children: [
|
|
3114
|
-
/* @__PURE__ */
|
|
3284
|
+
/* @__PURE__ */ jsxs23(Avatar2, {
|
|
3115
3285
|
size: "preview",
|
|
3116
3286
|
shape: "square",
|
|
3117
3287
|
children: [
|
|
3118
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx35(AvatarImage2, {
|
|
3119
3289
|
src: image,
|
|
3120
3290
|
alt: label
|
|
3121
3291
|
}),
|
|
3122
|
-
/* @__PURE__ */
|
|
3123
|
-
children: /* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx35(AvatarFallback2, {
|
|
3293
|
+
children: /* @__PURE__ */ jsx35(ImageIcon, {
|
|
3124
3294
|
className: "size-12",
|
|
3125
3295
|
"aria-hidden": "true"
|
|
3126
3296
|
})
|
|
3127
3297
|
})
|
|
3128
3298
|
]
|
|
3129
3299
|
}),
|
|
3130
|
-
/* @__PURE__ */
|
|
3300
|
+
/* @__PURE__ */ jsx35("input", {
|
|
3131
3301
|
ref: input,
|
|
3132
3302
|
hidden: true,
|
|
3133
3303
|
type: "file",
|
|
@@ -3143,22 +3313,22 @@ function ImagePicker2({
|
|
|
3143
3313
|
event.currentTarget.value = "";
|
|
3144
3314
|
}
|
|
3145
3315
|
}),
|
|
3146
|
-
/* @__PURE__ */
|
|
3316
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3147
3317
|
className: "flex flex-wrap justify-center gap-2",
|
|
3148
3318
|
children: [
|
|
3149
|
-
/* @__PURE__ */
|
|
3319
|
+
/* @__PURE__ */ jsxs23(Button2, {
|
|
3150
3320
|
type: "button",
|
|
3151
3321
|
variant: "outline",
|
|
3152
3322
|
disabled,
|
|
3153
3323
|
onClick: () => input.current?.click(),
|
|
3154
3324
|
children: [
|
|
3155
|
-
/* @__PURE__ */
|
|
3325
|
+
/* @__PURE__ */ jsx35(UploadIcon, {
|
|
3156
3326
|
"data-icon": "inline-start"
|
|
3157
3327
|
}),
|
|
3158
3328
|
"Upload image"
|
|
3159
3329
|
]
|
|
3160
3330
|
}),
|
|
3161
|
-
/* @__PURE__ */
|
|
3331
|
+
/* @__PURE__ */ jsx35(Button2, {
|
|
3162
3332
|
type: "button",
|
|
3163
3333
|
variant: "outline",
|
|
3164
3334
|
disabled: disabled || !image,
|
|
@@ -3172,9 +3342,9 @@ function ImagePicker2({
|
|
|
3172
3342
|
}
|
|
3173
3343
|
// src/components/Meter.tsx
|
|
3174
3344
|
import { Meter as MeterPrimitive } from "@base-ui/react/meter";
|
|
3175
|
-
import { jsx as
|
|
3345
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3176
3346
|
function Meter2({ density, className, ...props }) {
|
|
3177
|
-
return /* @__PURE__ */
|
|
3347
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Root, {
|
|
3178
3348
|
"data-density": density,
|
|
3179
3349
|
"data-slot": "meter",
|
|
3180
3350
|
className: (state) => cn2("flex min-w-0 flex-wrap items-center gap-field-gap", typeof className === "function" ? className(state) : className),
|
|
@@ -3182,7 +3352,7 @@ function Meter2({ density, className, ...props }) {
|
|
|
3182
3352
|
});
|
|
3183
3353
|
}
|
|
3184
3354
|
function MeterLabel2({ density, className, ...props }) {
|
|
3185
|
-
return /* @__PURE__ */
|
|
3355
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Label, {
|
|
3186
3356
|
"data-density": density,
|
|
3187
3357
|
"data-slot": "meter-label",
|
|
3188
3358
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
@@ -3190,7 +3360,7 @@ function MeterLabel2({ density, className, ...props }) {
|
|
|
3190
3360
|
});
|
|
3191
3361
|
}
|
|
3192
3362
|
function MeterValue2({ density, className, ...props }) {
|
|
3193
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Value, {
|
|
3194
3364
|
"data-density": density,
|
|
3195
3365
|
"data-slot": "meter-value",
|
|
3196
3366
|
className: (state) => cn2("ms-auto text-sm text-muted-foreground tabular-nums", typeof className === "function" ? className(state) : className),
|
|
@@ -3198,7 +3368,7 @@ function MeterValue2({ density, className, ...props }) {
|
|
|
3198
3368
|
});
|
|
3199
3369
|
}
|
|
3200
3370
|
function MeterTrack2({ density, className, ...props }) {
|
|
3201
|
-
return /* @__PURE__ */
|
|
3371
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Track, {
|
|
3202
3372
|
"data-density": density,
|
|
3203
3373
|
"data-slot": "meter-track",
|
|
3204
3374
|
className: (state) => cn2("h-1 w-full overflow-hidden rounded-sm bg-muted", typeof className === "function" ? className(state) : className),
|
|
@@ -3210,7 +3380,7 @@ function MeterIndicator2({
|
|
|
3210
3380
|
className,
|
|
3211
3381
|
...props
|
|
3212
3382
|
}) {
|
|
3213
|
-
return /* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Indicator, {
|
|
3214
3384
|
"data-density": density,
|
|
3215
3385
|
"data-slot": "meter-indicator",
|
|
3216
3386
|
className: (state) => cn2("h-full bg-primary transition-[width] motion-reduce:transition-none", typeof className === "function" ? className(state) : className),
|
|
@@ -3218,9 +3388,9 @@ function MeterIndicator2({
|
|
|
3218
3388
|
});
|
|
3219
3389
|
}
|
|
3220
3390
|
// src/components/ToolbarToggleChip.tsx
|
|
3221
|
-
import { useId as
|
|
3391
|
+
import { useId as useId7 } from "react";
|
|
3222
3392
|
import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
|
|
3223
|
-
import { jsx as
|
|
3393
|
+
import { jsx as jsx37, jsxs as jsxs24, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3224
3394
|
function pressedLabel(pressed) {
|
|
3225
3395
|
if (pressed === "mixed")
|
|
3226
3396
|
return "mixed";
|
|
@@ -3241,7 +3411,7 @@ function ToolbarToggleChip2({
|
|
|
3241
3411
|
spaceActivates = true,
|
|
3242
3412
|
className
|
|
3243
3413
|
}) {
|
|
3244
|
-
const reasonId =
|
|
3414
|
+
const reasonId = useId7();
|
|
3245
3415
|
const trackedChange = useAnalyticsCallback("ToolbarToggleChip", analytics, { name: "ui.change-request" }, onPressedChange);
|
|
3246
3416
|
const isDisabled = Boolean(disabledReason);
|
|
3247
3417
|
const onMouseDown = (event) => {
|
|
@@ -3257,7 +3427,7 @@ function ToolbarToggleChip2({
|
|
|
3257
3427
|
if (!spaceActivates && event.key === " ")
|
|
3258
3428
|
event.preventDefault();
|
|
3259
3429
|
};
|
|
3260
|
-
const button = /* @__PURE__ */
|
|
3430
|
+
const button = /* @__PURE__ */ jsxs24(ToolbarPrimitive.Button, {
|
|
3261
3431
|
"data-density": density,
|
|
3262
3432
|
"data-slot": "toolbar-toggle-chip",
|
|
3263
3433
|
"data-pressed": pressedLabel(pressed),
|
|
@@ -3276,17 +3446,17 @@ function ToolbarToggleChip2({
|
|
|
3276
3446
|
trackedChange(pressed !== true);
|
|
3277
3447
|
},
|
|
3278
3448
|
children: [
|
|
3279
|
-
swatch && /* @__PURE__ */
|
|
3449
|
+
swatch && /* @__PURE__ */ jsx37("span", {
|
|
3280
3450
|
"aria-hidden": "true",
|
|
3281
3451
|
"data-slot": "toolbar-toggle-chip-swatch",
|
|
3282
3452
|
className: "size-3 shrink-0 rounded-sm border border-border",
|
|
3283
3453
|
style: { backgroundColor: swatch }
|
|
3284
3454
|
}),
|
|
3285
|
-
/* @__PURE__ */
|
|
3455
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3286
3456
|
className: hideLabel ? "sr-only" : "min-w-0 truncate",
|
|
3287
3457
|
children
|
|
3288
3458
|
}),
|
|
3289
|
-
detail !== undefined && /* @__PURE__ */
|
|
3459
|
+
detail !== undefined && /* @__PURE__ */ jsxs24("span", {
|
|
3290
3460
|
"data-slot": "toolbar-toggle-chip-detail",
|
|
3291
3461
|
className: "text-xs text-muted-foreground",
|
|
3292
3462
|
children: [
|
|
@@ -3294,28 +3464,28 @@ function ToolbarToggleChip2({
|
|
|
3294
3464
|
detail
|
|
3295
3465
|
]
|
|
3296
3466
|
}),
|
|
3297
|
-
shortcut && !hideLabel && /* @__PURE__ */
|
|
3467
|
+
shortcut && !hideLabel && /* @__PURE__ */ jsx37(Kbd2, {
|
|
3298
3468
|
"aria-hidden": "true",
|
|
3299
3469
|
className: "ms-1",
|
|
3300
3470
|
children: shortcut.toUpperCase()
|
|
3301
3471
|
})
|
|
3302
3472
|
]
|
|
3303
3473
|
});
|
|
3304
|
-
return /* @__PURE__ */
|
|
3474
|
+
return /* @__PURE__ */ jsxs24(Fragment5, {
|
|
3305
3475
|
children: [
|
|
3306
|
-
disabledReason && /* @__PURE__ */
|
|
3476
|
+
disabledReason && /* @__PURE__ */ jsx37("span", {
|
|
3307
3477
|
id: reasonId,
|
|
3308
3478
|
className: "sr-only",
|
|
3309
3479
|
children: disabledReason
|
|
3310
3480
|
}),
|
|
3311
|
-
/* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ jsxs24(Tooltip2, {
|
|
3312
3482
|
disabled: !disabledReason && !hideLabel,
|
|
3313
3483
|
children: [
|
|
3314
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ jsx37(TooltipTrigger2, {
|
|
3315
3485
|
render: button,
|
|
3316
3486
|
closeOnClick: false
|
|
3317
3487
|
}),
|
|
3318
|
-
(disabledReason || hideLabel) && /* @__PURE__ */
|
|
3488
|
+
(disabledReason || hideLabel) && /* @__PURE__ */ jsxs24(TooltipContent2, {
|
|
3319
3489
|
children: [
|
|
3320
3490
|
hideLabel ? children : null,
|
|
3321
3491
|
hideLabel && shortcut ? ` · ${shortcut.toUpperCase()}` : null,
|
|
@@ -3331,9 +3501,9 @@ function ToolbarToggleChip2({
|
|
|
3331
3501
|
// src/components/Stepper.tsx
|
|
3332
3502
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
3333
3503
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3334
|
-
import { jsx as
|
|
3504
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3335
3505
|
function Stepper2({ density, className, ...props }) {
|
|
3336
|
-
return /* @__PURE__ */
|
|
3506
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.Root, {
|
|
3337
3507
|
"data-density": density,
|
|
3338
3508
|
"data-slot": "stepper",
|
|
3339
3509
|
className: (state) => cn2("group/stepper flex min-w-0 flex-col gap-panel data-[orientation=vertical]:flex-row", typeof className === "function" ? className(state) : className),
|
|
@@ -3346,7 +3516,7 @@ function StepperList2({
|
|
|
3346
3516
|
activateOnFocus = false,
|
|
3347
3517
|
...props
|
|
3348
3518
|
}) {
|
|
3349
|
-
return /* @__PURE__ */
|
|
3519
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.List, {
|
|
3350
3520
|
"data-density": density,
|
|
3351
3521
|
"data-slot": "stepper-list",
|
|
3352
3522
|
activateOnFocus,
|
|
@@ -3355,7 +3525,7 @@ function StepperList2({
|
|
|
3355
3525
|
});
|
|
3356
3526
|
}
|
|
3357
3527
|
function StepperTrigger2({ density, className, ...props }) {
|
|
3358
|
-
return /* @__PURE__ */
|
|
3528
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.Tab, {
|
|
3359
3529
|
"data-density": density,
|
|
3360
3530
|
"data-slot": "stepper-trigger",
|
|
3361
3531
|
className: (state) => cn2("group/step flex min-h-control items-center gap-control-gap rounded-sm text-sm text-muted-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring data-active:text-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:opacity-50", typeof className === "function" ? className(state) : className),
|
|
@@ -3363,17 +3533,17 @@ function StepperTrigger2({ density, className, ...props }) {
|
|
|
3363
3533
|
});
|
|
3364
3534
|
}
|
|
3365
3535
|
function StepperIndicator2({ completed = false, children, className, ...props }) {
|
|
3366
|
-
return /* @__PURE__ */
|
|
3536
|
+
return /* @__PURE__ */ jsx38("span", {
|
|
3367
3537
|
"aria-hidden": "true",
|
|
3368
3538
|
"data-slot": "stepper-indicator",
|
|
3369
3539
|
"data-completed": completed || undefined,
|
|
3370
3540
|
className: cn2("flex size-control shrink-0 items-center justify-center rounded-sm border border-input bg-secondary text-sm tabular-nums group-data-active/step:border-primary group-data-active/step:bg-primary group-data-active/step:text-primary-foreground data-completed:border-primary data-completed:text-primary [&_svg]:size-3.5", className),
|
|
3371
3541
|
...props,
|
|
3372
|
-
children: completed ? /* @__PURE__ */
|
|
3542
|
+
children: completed ? /* @__PURE__ */ jsx38(CheckIcon2, {}) : children
|
|
3373
3543
|
});
|
|
3374
3544
|
}
|
|
3375
3545
|
function StepperContent2({ density, className, ...props }) {
|
|
3376
|
-
return /* @__PURE__ */
|
|
3546
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.Panel, {
|
|
3377
3547
|
"data-density": density,
|
|
3378
3548
|
"data-slot": "stepper-content",
|
|
3379
3549
|
className: (state) => cn2("min-w-0 flex-1 outline-none focus-visible:ring-1 focus-visible:ring-ring", typeof className === "function" ? className(state) : className),
|
|
@@ -3381,7 +3551,7 @@ function StepperContent2({ density, className, ...props }) {
|
|
|
3381
3551
|
});
|
|
3382
3552
|
}
|
|
3383
3553
|
// src/components/AppShell.tsx
|
|
3384
|
-
import { jsx as
|
|
3554
|
+
import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3385
3555
|
function AppShell2({
|
|
3386
3556
|
navigation,
|
|
3387
3557
|
brand,
|
|
@@ -3395,28 +3565,28 @@ function AppShell2({
|
|
|
3395
3565
|
content = "scroll",
|
|
3396
3566
|
density
|
|
3397
3567
|
}) {
|
|
3398
|
-
return /* @__PURE__ */
|
|
3568
|
+
return /* @__PURE__ */ jsxs25(SidebarProvider2, {
|
|
3399
3569
|
density,
|
|
3400
3570
|
defaultOpen: defaultSidebarOpen,
|
|
3401
3571
|
className: "relative min-h-0",
|
|
3402
3572
|
style: { height },
|
|
3403
3573
|
"data-scroll": "none",
|
|
3404
3574
|
children: [
|
|
3405
|
-
/* @__PURE__ */
|
|
3575
|
+
/* @__PURE__ */ jsxs25(Sidebar2, {
|
|
3406
3576
|
collapsible: "icon",
|
|
3407
3577
|
position: "container",
|
|
3408
3578
|
children: [
|
|
3409
|
-
/* @__PURE__ */
|
|
3579
|
+
/* @__PURE__ */ jsx39(SidebarHeader2, {
|
|
3410
3580
|
children: brand
|
|
3411
3581
|
}),
|
|
3412
|
-
/* @__PURE__ */
|
|
3413
|
-
children: /* @__PURE__ */
|
|
3582
|
+
/* @__PURE__ */ jsx39(SidebarContent2, {
|
|
3583
|
+
children: /* @__PURE__ */ jsx39("nav", {
|
|
3414
3584
|
"aria-label": "Primary navigation",
|
|
3415
|
-
children: /* @__PURE__ */
|
|
3416
|
-
children: /* @__PURE__ */
|
|
3417
|
-
children: navigation.map((item) => /* @__PURE__ */
|
|
3418
|
-
children: /* @__PURE__ */
|
|
3419
|
-
render: /* @__PURE__ */
|
|
3585
|
+
children: /* @__PURE__ */ jsx39(SidebarGroup2, {
|
|
3586
|
+
children: /* @__PURE__ */ jsx39(SidebarMenu2, {
|
|
3587
|
+
children: navigation.map((item) => /* @__PURE__ */ jsx39(SidebarMenuItem2, {
|
|
3588
|
+
children: /* @__PURE__ */ jsxs25(SidebarMenuButton2, {
|
|
3589
|
+
render: /* @__PURE__ */ jsx39(AnalyticsLink, {
|
|
3420
3590
|
component: "AppShell",
|
|
3421
3591
|
render: item.render,
|
|
3422
3592
|
...item.href === undefined ? {} : { href: item.href },
|
|
@@ -3426,7 +3596,7 @@ function AppShell2({
|
|
|
3426
3596
|
tooltip: item.label,
|
|
3427
3597
|
children: [
|
|
3428
3598
|
item.icon,
|
|
3429
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ jsx39("span", {
|
|
3430
3600
|
children: item.label
|
|
3431
3601
|
})
|
|
3432
3602
|
]
|
|
@@ -3436,41 +3606,41 @@ function AppShell2({
|
|
|
3436
3606
|
})
|
|
3437
3607
|
})
|
|
3438
3608
|
}),
|
|
3439
|
-
sidebarFooter && /* @__PURE__ */
|
|
3609
|
+
sidebarFooter && /* @__PURE__ */ jsx39(SidebarFooter2, {
|
|
3440
3610
|
children: sidebarFooter
|
|
3441
3611
|
})
|
|
3442
3612
|
]
|
|
3443
3613
|
}),
|
|
3444
|
-
/* @__PURE__ */
|
|
3614
|
+
/* @__PURE__ */ jsxs25(SidebarInset2, {
|
|
3445
3615
|
"aria-label": label,
|
|
3446
3616
|
className: "min-h-0 min-w-0",
|
|
3447
3617
|
"data-scroll": "none",
|
|
3448
3618
|
children: [
|
|
3449
|
-
/* @__PURE__ */
|
|
3619
|
+
/* @__PURE__ */ jsxs25("header", {
|
|
3450
3620
|
"data-scroll": "none",
|
|
3451
3621
|
className: "flex shrink-0 items-center gap-control-gap border-b border-border p-panel",
|
|
3452
3622
|
children: [
|
|
3453
|
-
/* @__PURE__ */
|
|
3454
|
-
/* @__PURE__ */
|
|
3623
|
+
/* @__PURE__ */ jsx39(SidebarTrigger2, {}),
|
|
3624
|
+
/* @__PURE__ */ jsx39(Separator2, {
|
|
3455
3625
|
orientation: "vertical",
|
|
3456
3626
|
className: "h-control"
|
|
3457
3627
|
}),
|
|
3458
3628
|
header
|
|
3459
3629
|
]
|
|
3460
3630
|
}),
|
|
3461
|
-
content === "fill" ? /* @__PURE__ */
|
|
3631
|
+
content === "fill" ? /* @__PURE__ */ jsx39("div", {
|
|
3462
3632
|
"data-slot": "app-shell-content",
|
|
3463
3633
|
"data-scroll": "none",
|
|
3464
3634
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
3465
3635
|
children
|
|
3466
|
-
}) : /* @__PURE__ */
|
|
3636
|
+
}) : /* @__PURE__ */ jsx39(ScrollArea2, {
|
|
3467
3637
|
className: "min-h-0 flex-1",
|
|
3468
|
-
children: /* @__PURE__ */
|
|
3638
|
+
children: /* @__PURE__ */ jsx39("div", {
|
|
3469
3639
|
className: "flex min-w-0 flex-col gap-panel p-panel",
|
|
3470
3640
|
children
|
|
3471
3641
|
})
|
|
3472
3642
|
}),
|
|
3473
|
-
footer && /* @__PURE__ */
|
|
3643
|
+
footer && /* @__PURE__ */ jsx39("footer", {
|
|
3474
3644
|
className: "shrink-0 border-t border-border p-panel",
|
|
3475
3645
|
"data-scroll": "none",
|
|
3476
3646
|
children: footer
|
|
@@ -3820,7 +3990,7 @@ import {
|
|
|
3820
3990
|
DropletIcon,
|
|
3821
3991
|
SunIcon
|
|
3822
3992
|
} from "lucide-react";
|
|
3823
|
-
import { jsx as
|
|
3993
|
+
import { jsx as jsx40, jsxs as jsxs26, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3824
3994
|
var CONDITION_ICONS = {
|
|
3825
3995
|
clear: SunIcon,
|
|
3826
3996
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -3872,43 +4042,43 @@ function WeatherSummary2({
|
|
|
3872
4042
|
defaultTagName: "div",
|
|
3873
4043
|
props: mergeProps14({
|
|
3874
4044
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
3875
|
-
children: /* @__PURE__ */
|
|
4045
|
+
children: /* @__PURE__ */ jsxs26(Fragment6, {
|
|
3876
4046
|
children: [
|
|
3877
|
-
/* @__PURE__ */
|
|
4047
|
+
/* @__PURE__ */ jsx40(ConditionIcon, {
|
|
3878
4048
|
"aria-hidden": "true",
|
|
3879
4049
|
"data-slot": "weather-summary-icon",
|
|
3880
4050
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
3881
4051
|
}),
|
|
3882
|
-
/* @__PURE__ */
|
|
4052
|
+
/* @__PURE__ */ jsxs26("div", {
|
|
3883
4053
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
3884
4054
|
children: [
|
|
3885
|
-
/* @__PURE__ */
|
|
4055
|
+
/* @__PURE__ */ jsx40("div", {
|
|
3886
4056
|
className: "text-sm font-medium break-words",
|
|
3887
4057
|
children: label
|
|
3888
4058
|
}),
|
|
3889
|
-
/* @__PURE__ */
|
|
4059
|
+
/* @__PURE__ */ jsx40("div", {
|
|
3890
4060
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
3891
4061
|
children: conditionLabel
|
|
3892
4062
|
}),
|
|
3893
|
-
/* @__PURE__ */
|
|
4063
|
+
/* @__PURE__ */ jsxs26("div", {
|
|
3894
4064
|
className: "flex flex-wrap items-baseline gap-x-2 text-sm tabular-nums",
|
|
3895
4065
|
children: [
|
|
3896
|
-
/* @__PURE__ */
|
|
4066
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
3897
4067
|
children: [
|
|
3898
|
-
/* @__PURE__ */
|
|
4068
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3899
4069
|
className: "sr-only",
|
|
3900
4070
|
children: "High "
|
|
3901
4071
|
}),
|
|
3902
|
-
/* @__PURE__ */
|
|
4072
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3903
4073
|
className: "font-medium",
|
|
3904
4074
|
children: highText
|
|
3905
4075
|
})
|
|
3906
4076
|
]
|
|
3907
4077
|
}),
|
|
3908
|
-
/* @__PURE__ */
|
|
4078
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
3909
4079
|
className: "text-muted-foreground",
|
|
3910
4080
|
children: [
|
|
3911
|
-
/* @__PURE__ */
|
|
4081
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3912
4082
|
className: "sr-only",
|
|
3913
4083
|
children: "Low "
|
|
3914
4084
|
}),
|
|
@@ -3917,17 +4087,17 @@ function WeatherSummary2({
|
|
|
3917
4087
|
})
|
|
3918
4088
|
]
|
|
3919
4089
|
}),
|
|
3920
|
-
probabilityText !== undefined && /* @__PURE__ */
|
|
4090
|
+
probabilityText !== undefined && /* @__PURE__ */ jsxs26("div", {
|
|
3921
4091
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
3922
4092
|
children: [
|
|
3923
|
-
/* @__PURE__ */
|
|
4093
|
+
/* @__PURE__ */ jsx40(DropletIcon, {
|
|
3924
4094
|
"aria-hidden": "true",
|
|
3925
4095
|
className: "size-3 shrink-0"
|
|
3926
4096
|
}),
|
|
3927
|
-
/* @__PURE__ */
|
|
4097
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
3928
4098
|
children: [
|
|
3929
4099
|
probabilityText,
|
|
3930
|
-
/* @__PURE__ */
|
|
4100
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3931
4101
|
className: "sr-only",
|
|
3932
4102
|
children: " chance of precipitation"
|
|
3933
4103
|
})
|
|
@@ -3945,7 +4115,7 @@ function WeatherSummary2({
|
|
|
3945
4115
|
});
|
|
3946
4116
|
}
|
|
3947
4117
|
// src/components/WeatherForecast.tsx
|
|
3948
|
-
import { jsx as
|
|
4118
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3949
4119
|
function WeatherForecast2({
|
|
3950
4120
|
days,
|
|
3951
4121
|
label,
|
|
@@ -3956,52 +4126,52 @@ function WeatherForecast2({
|
|
|
3956
4126
|
className,
|
|
3957
4127
|
...props
|
|
3958
4128
|
}) {
|
|
3959
|
-
return /* @__PURE__ */
|
|
4129
|
+
return /* @__PURE__ */ jsx41("ul", {
|
|
3960
4130
|
"aria-label": label,
|
|
3961
4131
|
"data-slot": "weather-forecast",
|
|
3962
4132
|
"data-density": density,
|
|
3963
4133
|
className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
|
|
3964
4134
|
...props,
|
|
3965
|
-
children: days.map(({ id, ...day }) => /* @__PURE__ */
|
|
4135
|
+
children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx41(WeatherSummary2, {
|
|
3966
4136
|
...day,
|
|
3967
4137
|
unit,
|
|
3968
4138
|
locale,
|
|
3969
4139
|
variant: variant === "strip" ? "compact" : "default",
|
|
3970
|
-
render: /* @__PURE__ */
|
|
4140
|
+
render: /* @__PURE__ */ jsx41("li", {})
|
|
3971
4141
|
}, id))
|
|
3972
4142
|
});
|
|
3973
4143
|
}
|
|
3974
4144
|
// src/components/PageHeader.tsx
|
|
3975
|
-
import { jsx as
|
|
4145
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3976
4146
|
function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, density }) {
|
|
3977
|
-
return /* @__PURE__ */
|
|
4147
|
+
return /* @__PURE__ */ jsxs27("header", {
|
|
3978
4148
|
"data-density": density,
|
|
3979
4149
|
"data-slot": "page-header",
|
|
3980
4150
|
"data-scroll": "none",
|
|
3981
4151
|
className: "flex min-w-0 flex-col gap-field-gap",
|
|
3982
4152
|
children: [
|
|
3983
4153
|
breadcrumbs,
|
|
3984
|
-
/* @__PURE__ */
|
|
4154
|
+
/* @__PURE__ */ jsxs27("div", {
|
|
3985
4155
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-panel",
|
|
3986
4156
|
children: [
|
|
3987
|
-
/* @__PURE__ */
|
|
4157
|
+
/* @__PURE__ */ jsxs27("div", {
|
|
3988
4158
|
className: "min-w-0",
|
|
3989
4159
|
children: [
|
|
3990
|
-
eyebrow != null && /* @__PURE__ */
|
|
4160
|
+
eyebrow != null && /* @__PURE__ */ jsx42("div", {
|
|
3991
4161
|
className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
|
|
3992
4162
|
children: eyebrow
|
|
3993
4163
|
}),
|
|
3994
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ jsx42("h1", {
|
|
3995
4165
|
className: "text-xl font-semibold text-foreground",
|
|
3996
4166
|
children: title
|
|
3997
4167
|
}),
|
|
3998
|
-
description && /* @__PURE__ */
|
|
4168
|
+
description && /* @__PURE__ */ jsx42("div", {
|
|
3999
4169
|
className: "mt-1 text-sm text-muted-foreground",
|
|
4000
4170
|
children: description
|
|
4001
4171
|
})
|
|
4002
4172
|
]
|
|
4003
4173
|
}),
|
|
4004
|
-
actions && /* @__PURE__ */
|
|
4174
|
+
actions && /* @__PURE__ */ jsx42("div", {
|
|
4005
4175
|
className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4006
4176
|
children: actions
|
|
4007
4177
|
})
|
|
@@ -4011,46 +4181,46 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
4011
4181
|
});
|
|
4012
4182
|
}
|
|
4013
4183
|
// src/components/PageIntro.tsx
|
|
4014
|
-
import { jsx as
|
|
4184
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4015
4185
|
function PageIntro2({ title, description, eyebrow, icon, actions, highlights, density }) {
|
|
4016
|
-
return /* @__PURE__ */
|
|
4186
|
+
return /* @__PURE__ */ jsx43("header", {
|
|
4017
4187
|
"data-density": density,
|
|
4018
4188
|
"data-slot": "page-intro",
|
|
4019
4189
|
"data-scroll": "none",
|
|
4020
4190
|
className: "@container/page-intro min-w-0",
|
|
4021
|
-
children: /* @__PURE__ */
|
|
4191
|
+
children: /* @__PURE__ */ jsxs28(Card2, {
|
|
4022
4192
|
variant: "hero",
|
|
4023
4193
|
className: "gap-0 py-0",
|
|
4024
4194
|
children: [
|
|
4025
|
-
/* @__PURE__ */
|
|
4195
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4026
4196
|
"aria-hidden": "true",
|
|
4027
4197
|
"data-slot": "page-intro-wash",
|
|
4028
4198
|
className: "pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(ellipse_90%_140%_at_100%_0%,color-mix(in_oklab,var(--primary)_16%,transparent),transparent_65%)]"
|
|
4029
4199
|
}),
|
|
4030
|
-
/* @__PURE__ */
|
|
4200
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4031
4201
|
className: "flex min-w-0 flex-col gap-panel p-(--card-spacing) @2xl/page-intro:flex-row @2xl/page-intro:items-start @2xl/page-intro:justify-between",
|
|
4032
4202
|
children: [
|
|
4033
|
-
/* @__PURE__ */
|
|
4203
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4034
4204
|
className: "flex min-w-0 gap-panel",
|
|
4035
4205
|
children: [
|
|
4036
|
-
icon != null && /* @__PURE__ */
|
|
4206
|
+
icon != null && /* @__PURE__ */ jsx43("div", {
|
|
4037
4207
|
"aria-hidden": "true",
|
|
4038
4208
|
"data-slot": "page-intro-icon",
|
|
4039
4209
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
4040
4210
|
children: icon
|
|
4041
4211
|
}),
|
|
4042
|
-
/* @__PURE__ */
|
|
4212
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4043
4213
|
className: "min-w-0",
|
|
4044
4214
|
children: [
|
|
4045
|
-
eyebrow != null && /* @__PURE__ */
|
|
4215
|
+
eyebrow != null && /* @__PURE__ */ jsx43("div", {
|
|
4046
4216
|
className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4047
4217
|
children: eyebrow
|
|
4048
4218
|
}),
|
|
4049
|
-
/* @__PURE__ */
|
|
4219
|
+
/* @__PURE__ */ jsx43("h1", {
|
|
4050
4220
|
className: "text-2xl font-semibold text-foreground",
|
|
4051
4221
|
children: title
|
|
4052
4222
|
}),
|
|
4053
|
-
/* @__PURE__ */
|
|
4223
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4054
4224
|
className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
|
|
4055
4225
|
children: description
|
|
4056
4226
|
})
|
|
@@ -4058,33 +4228,33 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4058
4228
|
})
|
|
4059
4229
|
]
|
|
4060
4230
|
}),
|
|
4061
|
-
actions != null && /* @__PURE__ */
|
|
4231
|
+
actions != null && /* @__PURE__ */ jsx43("div", {
|
|
4062
4232
|
className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4063
4233
|
children: actions
|
|
4064
4234
|
})
|
|
4065
4235
|
]
|
|
4066
4236
|
}),
|
|
4067
|
-
highlights != null && highlights.length > 0 && /* @__PURE__ */
|
|
4237
|
+
highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx43("ul", {
|
|
4068
4238
|
"aria-label": `What you can do in ${title}`,
|
|
4069
4239
|
"data-slot": "page-intro-highlights",
|
|
4070
4240
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
4071
|
-
children: highlights.map((highlight) => /* @__PURE__ */
|
|
4241
|
+
children: highlights.map((highlight) => /* @__PURE__ */ jsxs28("li", {
|
|
4072
4242
|
"data-slot": "page-intro-highlight",
|
|
4073
4243
|
className: "flex min-w-0 gap-2",
|
|
4074
4244
|
children: [
|
|
4075
|
-
highlight.icon != null && /* @__PURE__ */
|
|
4245
|
+
highlight.icon != null && /* @__PURE__ */ jsx43("span", {
|
|
4076
4246
|
"aria-hidden": "true",
|
|
4077
4247
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
4078
4248
|
children: highlight.icon
|
|
4079
4249
|
}),
|
|
4080
|
-
/* @__PURE__ */
|
|
4250
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4081
4251
|
className: "min-w-0",
|
|
4082
4252
|
children: [
|
|
4083
|
-
/* @__PURE__ */
|
|
4253
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4084
4254
|
className: "text-sm font-medium text-foreground",
|
|
4085
4255
|
children: highlight.title
|
|
4086
4256
|
}),
|
|
4087
|
-
/* @__PURE__ */
|
|
4257
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4088
4258
|
className: "mt-0.5 text-sm text-muted-foreground",
|
|
4089
4259
|
children: highlight.description
|
|
4090
4260
|
})
|
|
@@ -4098,7 +4268,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4098
4268
|
});
|
|
4099
4269
|
}
|
|
4100
4270
|
// src/components/WorkspaceSwitcher.tsx
|
|
4101
|
-
import { jsx as
|
|
4271
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4102
4272
|
function WorkspaceSwitcher2({
|
|
4103
4273
|
workspaces,
|
|
4104
4274
|
value,
|
|
@@ -4108,7 +4278,7 @@ function WorkspaceSwitcher2({
|
|
|
4108
4278
|
label = "Workspace",
|
|
4109
4279
|
density
|
|
4110
4280
|
}) {
|
|
4111
|
-
return /* @__PURE__ */
|
|
4281
|
+
return /* @__PURE__ */ jsxs29(Select2, {
|
|
4112
4282
|
items: workspaces,
|
|
4113
4283
|
value,
|
|
4114
4284
|
defaultValue: defaultValue ?? workspaces[0]?.value,
|
|
@@ -4118,15 +4288,15 @@ function WorkspaceSwitcher2({
|
|
|
4118
4288
|
},
|
|
4119
4289
|
disabled,
|
|
4120
4290
|
children: [
|
|
4121
|
-
/* @__PURE__ */
|
|
4291
|
+
/* @__PURE__ */ jsx44(SelectTrigger2, {
|
|
4122
4292
|
"aria-label": label,
|
|
4123
4293
|
density,
|
|
4124
|
-
children: /* @__PURE__ */
|
|
4294
|
+
children: /* @__PURE__ */ jsx44(SelectValue2, {})
|
|
4125
4295
|
}),
|
|
4126
|
-
/* @__PURE__ */
|
|
4296
|
+
/* @__PURE__ */ jsx44(SelectContent2, {
|
|
4127
4297
|
density,
|
|
4128
|
-
children: /* @__PURE__ */
|
|
4129
|
-
children: workspaces.map((workspace) => /* @__PURE__ */
|
|
4298
|
+
children: /* @__PURE__ */ jsx44(SelectGroup2, {
|
|
4299
|
+
children: workspaces.map((workspace) => /* @__PURE__ */ jsx44(SelectItem2, {
|
|
4130
4300
|
value: workspace.value,
|
|
4131
4301
|
children: workspace.label
|
|
4132
4302
|
}, workspace.value))
|
|
@@ -4136,52 +4306,52 @@ function WorkspaceSwitcher2({
|
|
|
4136
4306
|
});
|
|
4137
4307
|
}
|
|
4138
4308
|
// src/components/AccountMenu.tsx
|
|
4139
|
-
import { jsx as
|
|
4309
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4140
4310
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
4141
|
-
return /* @__PURE__ */
|
|
4311
|
+
return /* @__PURE__ */ jsxs30(DropdownMenu2, {
|
|
4142
4312
|
children: [
|
|
4143
|
-
/* @__PURE__ */
|
|
4144
|
-
render: /* @__PURE__ */
|
|
4313
|
+
/* @__PURE__ */ jsxs30(DropdownMenuTrigger2, {
|
|
4314
|
+
render: /* @__PURE__ */ jsx45(Button2, {
|
|
4145
4315
|
variant: "ghost",
|
|
4146
4316
|
density
|
|
4147
4317
|
}),
|
|
4148
4318
|
"aria-label": `Account menu for ${name}`,
|
|
4149
4319
|
children: [
|
|
4150
|
-
/* @__PURE__ */
|
|
4320
|
+
/* @__PURE__ */ jsxs30(Avatar2, {
|
|
4151
4321
|
className: "size-control",
|
|
4152
4322
|
children: [
|
|
4153
|
-
/* @__PURE__ */
|
|
4323
|
+
/* @__PURE__ */ jsx45(AvatarImage2, {
|
|
4154
4324
|
src: image,
|
|
4155
4325
|
alt: ""
|
|
4156
4326
|
}),
|
|
4157
|
-
/* @__PURE__ */
|
|
4327
|
+
/* @__PURE__ */ jsx45(AvatarFallback2, {
|
|
4158
4328
|
children: name.slice(0, 2).toUpperCase()
|
|
4159
4329
|
})
|
|
4160
4330
|
]
|
|
4161
4331
|
}),
|
|
4162
|
-
/* @__PURE__ */
|
|
4332
|
+
/* @__PURE__ */ jsx45("span", {
|
|
4163
4333
|
children: name
|
|
4164
4334
|
})
|
|
4165
4335
|
]
|
|
4166
4336
|
}),
|
|
4167
|
-
/* @__PURE__ */
|
|
4337
|
+
/* @__PURE__ */ jsx45(MenuPopup, {
|
|
4168
4338
|
density,
|
|
4169
4339
|
align: "end",
|
|
4170
|
-
children: /* @__PURE__ */
|
|
4340
|
+
children: /* @__PURE__ */ jsxs30(MenuGroup2, {
|
|
4171
4341
|
children: [
|
|
4172
|
-
/* @__PURE__ */
|
|
4342
|
+
/* @__PURE__ */ jsx45(MenuLabel2, {
|
|
4173
4343
|
children: email ?? name
|
|
4174
4344
|
}),
|
|
4175
|
-
/* @__PURE__ */
|
|
4345
|
+
/* @__PURE__ */ jsx45(MenuItem2, {
|
|
4176
4346
|
onClick: () => onAction("profile"),
|
|
4177
4347
|
children: "Profile"
|
|
4178
4348
|
}),
|
|
4179
|
-
/* @__PURE__ */
|
|
4349
|
+
/* @__PURE__ */ jsx45(MenuItem2, {
|
|
4180
4350
|
onClick: () => onAction("settings"),
|
|
4181
4351
|
children: "Settings"
|
|
4182
4352
|
}),
|
|
4183
|
-
/* @__PURE__ */
|
|
4184
|
-
/* @__PURE__ */
|
|
4353
|
+
/* @__PURE__ */ jsx45(MenuSeparator2, {}),
|
|
4354
|
+
/* @__PURE__ */ jsx45(MenuItem2, {
|
|
4185
4355
|
onClick: () => onAction("sign-out"),
|
|
4186
4356
|
children: "Sign out"
|
|
4187
4357
|
})
|
|
@@ -4192,7 +4362,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4192
4362
|
});
|
|
4193
4363
|
}
|
|
4194
4364
|
// src/components/StatCard.tsx
|
|
4195
|
-
import { jsx as
|
|
4365
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4196
4366
|
function StatCard2({
|
|
4197
4367
|
label,
|
|
4198
4368
|
value,
|
|
@@ -4203,48 +4373,48 @@ function StatCard2({
|
|
|
4203
4373
|
loading = false,
|
|
4204
4374
|
density
|
|
4205
4375
|
}) {
|
|
4206
|
-
return /* @__PURE__ */
|
|
4376
|
+
return /* @__PURE__ */ jsxs31(Card2, {
|
|
4207
4377
|
density,
|
|
4208
4378
|
"aria-label": label,
|
|
4209
4379
|
"aria-busy": loading,
|
|
4210
4380
|
children: [
|
|
4211
|
-
/* @__PURE__ */
|
|
4381
|
+
/* @__PURE__ */ jsxs31(CardHeader2, {
|
|
4212
4382
|
children: [
|
|
4213
|
-
/* @__PURE__ */
|
|
4383
|
+
/* @__PURE__ */ jsx46(CardTitle2, {
|
|
4214
4384
|
children: label
|
|
4215
4385
|
}),
|
|
4216
|
-
description && /* @__PURE__ */
|
|
4386
|
+
description && /* @__PURE__ */ jsx46(CardDescription2, {
|
|
4217
4387
|
children: description
|
|
4218
4388
|
})
|
|
4219
4389
|
]
|
|
4220
4390
|
}),
|
|
4221
|
-
/* @__PURE__ */
|
|
4222
|
-
children: /* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ jsx46(CardContent2, {
|
|
4392
|
+
children: /* @__PURE__ */ jsxs31("div", {
|
|
4223
4393
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4224
4394
|
children: [
|
|
4225
|
-
loading ? /* @__PURE__ */
|
|
4395
|
+
loading ? /* @__PURE__ */ jsx46(Skeleton2, {
|
|
4226
4396
|
className: "h-8 w-24",
|
|
4227
4397
|
"aria-label": `Loading ${label}`
|
|
4228
|
-
}) : /* @__PURE__ */
|
|
4398
|
+
}) : /* @__PURE__ */ jsx46("div", {
|
|
4229
4399
|
className: "text-2xl font-semibold tabular-nums",
|
|
4230
4400
|
children: value
|
|
4231
4401
|
}),
|
|
4232
|
-
change && /* @__PURE__ */
|
|
4402
|
+
change && /* @__PURE__ */ jsx46(Badge2, {
|
|
4233
4403
|
variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
|
|
4234
4404
|
children: change
|
|
4235
4405
|
})
|
|
4236
4406
|
]
|
|
4237
4407
|
})
|
|
4238
4408
|
}),
|
|
4239
|
-
children && /* @__PURE__ */
|
|
4409
|
+
children && /* @__PURE__ */ jsx46(CardFooter2, {
|
|
4240
4410
|
children
|
|
4241
4411
|
})
|
|
4242
4412
|
]
|
|
4243
4413
|
});
|
|
4244
4414
|
}
|
|
4245
4415
|
// src/components/AuthForm.tsx
|
|
4246
|
-
import { useId as
|
|
4247
|
-
import { jsx as
|
|
4416
|
+
import { useId as useId8, useState as useState7 } from "react";
|
|
4417
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4248
4418
|
function AuthForm2({
|
|
4249
4419
|
mode = "sign-in",
|
|
4250
4420
|
onSubmit,
|
|
@@ -4253,7 +4423,7 @@ function AuthForm2({
|
|
|
4253
4423
|
disabled = false,
|
|
4254
4424
|
density
|
|
4255
4425
|
}) {
|
|
4256
|
-
const id =
|
|
4426
|
+
const id = useId8();
|
|
4257
4427
|
const [pending, setPending] = useState7(false);
|
|
4258
4428
|
const [error, setError] = useState7("");
|
|
4259
4429
|
const title = mode === "sign-up" ? "Create an account" : mode === "reset-password" ? "Reset your password" : "Sign in";
|
|
@@ -4274,33 +4444,33 @@ function AuthForm2({
|
|
|
4274
4444
|
setPending(false);
|
|
4275
4445
|
}
|
|
4276
4446
|
}
|
|
4277
|
-
return /* @__PURE__ */
|
|
4447
|
+
return /* @__PURE__ */ jsxs32(Card2, {
|
|
4278
4448
|
density,
|
|
4279
4449
|
children: [
|
|
4280
|
-
/* @__PURE__ */
|
|
4450
|
+
/* @__PURE__ */ jsxs32(CardHeader2, {
|
|
4281
4451
|
children: [
|
|
4282
|
-
/* @__PURE__ */
|
|
4452
|
+
/* @__PURE__ */ jsx47(CardTitle2, {
|
|
4283
4453
|
children: title
|
|
4284
4454
|
}),
|
|
4285
|
-
/* @__PURE__ */
|
|
4455
|
+
/* @__PURE__ */ jsx47(CardDescription2, {
|
|
4286
4456
|
children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
|
|
4287
4457
|
})
|
|
4288
4458
|
]
|
|
4289
4459
|
}),
|
|
4290
|
-
/* @__PURE__ */
|
|
4291
|
-
children: /* @__PURE__ */
|
|
4460
|
+
/* @__PURE__ */ jsx47(CardContent2, {
|
|
4461
|
+
children: /* @__PURE__ */ jsx47("form", {
|
|
4292
4462
|
onSubmit: submit,
|
|
4293
4463
|
"aria-label": title,
|
|
4294
4464
|
"aria-busy": pending,
|
|
4295
|
-
children: /* @__PURE__ */
|
|
4465
|
+
children: /* @__PURE__ */ jsxs32(FieldGroup2, {
|
|
4296
4466
|
children: [
|
|
4297
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4467
|
+
mode === "sign-up" && /* @__PURE__ */ jsxs32(Field2, {
|
|
4298
4468
|
children: [
|
|
4299
|
-
/* @__PURE__ */
|
|
4469
|
+
/* @__PURE__ */ jsx47(FieldLabel2, {
|
|
4300
4470
|
htmlFor: id + "-name",
|
|
4301
4471
|
children: "Name"
|
|
4302
4472
|
}),
|
|
4303
|
-
/* @__PURE__ */
|
|
4473
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4304
4474
|
id: id + "-name",
|
|
4305
4475
|
name: "name",
|
|
4306
4476
|
autoComplete: "name",
|
|
@@ -4309,13 +4479,13 @@ function AuthForm2({
|
|
|
4309
4479
|
})
|
|
4310
4480
|
]
|
|
4311
4481
|
}),
|
|
4312
|
-
/* @__PURE__ */
|
|
4482
|
+
/* @__PURE__ */ jsxs32(Field2, {
|
|
4313
4483
|
children: [
|
|
4314
|
-
/* @__PURE__ */
|
|
4484
|
+
/* @__PURE__ */ jsx47(FieldLabel2, {
|
|
4315
4485
|
htmlFor: id + "-email",
|
|
4316
4486
|
children: "Email"
|
|
4317
4487
|
}),
|
|
4318
|
-
/* @__PURE__ */
|
|
4488
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4319
4489
|
id: id + "-email",
|
|
4320
4490
|
name: "email",
|
|
4321
4491
|
type: "email",
|
|
@@ -4325,13 +4495,13 @@ function AuthForm2({
|
|
|
4325
4495
|
})
|
|
4326
4496
|
]
|
|
4327
4497
|
}),
|
|
4328
|
-
mode !== "reset-password" && /* @__PURE__ */
|
|
4498
|
+
mode !== "reset-password" && /* @__PURE__ */ jsxs32(Field2, {
|
|
4329
4499
|
children: [
|
|
4330
|
-
/* @__PURE__ */
|
|
4500
|
+
/* @__PURE__ */ jsx47(FieldLabel2, {
|
|
4331
4501
|
htmlFor: id + "-password",
|
|
4332
4502
|
children: "Password"
|
|
4333
4503
|
}),
|
|
4334
|
-
/* @__PURE__ */
|
|
4504
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4335
4505
|
id: id + "-password",
|
|
4336
4506
|
name: "password",
|
|
4337
4507
|
type: "password",
|
|
@@ -4340,27 +4510,27 @@ function AuthForm2({
|
|
|
4340
4510
|
required: true,
|
|
4341
4511
|
disabled: disabled || pending
|
|
4342
4512
|
}),
|
|
4343
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4513
|
+
mode === "sign-up" && /* @__PURE__ */ jsx47(FieldDescription2, {
|
|
4344
4514
|
children: "Use at least eight characters."
|
|
4345
4515
|
})
|
|
4346
4516
|
]
|
|
4347
4517
|
}),
|
|
4348
|
-
error && /* @__PURE__ */
|
|
4518
|
+
error && /* @__PURE__ */ jsxs32(Alert2, {
|
|
4349
4519
|
variant: "destructive",
|
|
4350
4520
|
children: [
|
|
4351
|
-
/* @__PURE__ */
|
|
4521
|
+
/* @__PURE__ */ jsx47(AlertTitle2, {
|
|
4352
4522
|
children: "Request failed"
|
|
4353
4523
|
}),
|
|
4354
|
-
/* @__PURE__ */
|
|
4524
|
+
/* @__PURE__ */ jsx47(AlertDescription2, {
|
|
4355
4525
|
children: error
|
|
4356
4526
|
})
|
|
4357
4527
|
]
|
|
4358
4528
|
}),
|
|
4359
|
-
/* @__PURE__ */
|
|
4529
|
+
/* @__PURE__ */ jsxs32(Button2, {
|
|
4360
4530
|
type: "submit",
|
|
4361
4531
|
disabled: disabled || pending,
|
|
4362
4532
|
children: [
|
|
4363
|
-
pending && /* @__PURE__ */
|
|
4533
|
+
pending && /* @__PURE__ */ jsx47(Spinner2, {
|
|
4364
4534
|
"data-icon": "inline-start"
|
|
4365
4535
|
}),
|
|
4366
4536
|
mode === "reset-password" ? "Send reset link" : title
|
|
@@ -4371,14 +4541,14 @@ function AuthForm2({
|
|
|
4371
4541
|
})
|
|
4372
4542
|
})
|
|
4373
4543
|
}),
|
|
4374
|
-
footer && /* @__PURE__ */
|
|
4544
|
+
footer && /* @__PURE__ */ jsx47(CardFooter2, {
|
|
4375
4545
|
children: footer
|
|
4376
4546
|
})
|
|
4377
4547
|
]
|
|
4378
4548
|
});
|
|
4379
4549
|
}
|
|
4380
4550
|
// src/components/SettingsSection.tsx
|
|
4381
|
-
import { jsx as
|
|
4551
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4382
4552
|
function SettingsSection2({
|
|
4383
4553
|
title,
|
|
4384
4554
|
description,
|
|
@@ -4391,48 +4561,48 @@ function SettingsSection2({
|
|
|
4391
4561
|
destructive = false,
|
|
4392
4562
|
density
|
|
4393
4563
|
}) {
|
|
4394
|
-
return /* @__PURE__ */
|
|
4564
|
+
return /* @__PURE__ */ jsx48("form", {
|
|
4395
4565
|
"aria-label": title,
|
|
4396
4566
|
onSubmit,
|
|
4397
4567
|
"aria-busy": pending,
|
|
4398
|
-
children: /* @__PURE__ */
|
|
4568
|
+
children: /* @__PURE__ */ jsxs33(Card2, {
|
|
4399
4569
|
density,
|
|
4400
4570
|
children: [
|
|
4401
|
-
/* @__PURE__ */
|
|
4571
|
+
/* @__PURE__ */ jsxs33(CardHeader2, {
|
|
4402
4572
|
children: [
|
|
4403
|
-
/* @__PURE__ */
|
|
4573
|
+
/* @__PURE__ */ jsx48(CardTitle2, {
|
|
4404
4574
|
children: title
|
|
4405
4575
|
}),
|
|
4406
|
-
description && /* @__PURE__ */
|
|
4576
|
+
description && /* @__PURE__ */ jsx48(CardDescription2, {
|
|
4407
4577
|
children: description
|
|
4408
4578
|
})
|
|
4409
4579
|
]
|
|
4410
4580
|
}),
|
|
4411
|
-
/* @__PURE__ */
|
|
4412
|
-
children: /* @__PURE__ */
|
|
4581
|
+
/* @__PURE__ */ jsx48(CardContent2, {
|
|
4582
|
+
children: /* @__PURE__ */ jsxs33("fieldset", {
|
|
4413
4583
|
disabled: disabled || pending,
|
|
4414
4584
|
className: "min-w-0 border-0 p-0",
|
|
4415
4585
|
children: [
|
|
4416
|
-
/* @__PURE__ */
|
|
4586
|
+
/* @__PURE__ */ jsx48("legend", {
|
|
4417
4587
|
className: "sr-only",
|
|
4418
4588
|
children: title
|
|
4419
4589
|
}),
|
|
4420
|
-
/* @__PURE__ */
|
|
4590
|
+
/* @__PURE__ */ jsx48(FieldGroup2, {
|
|
4421
4591
|
children
|
|
4422
4592
|
})
|
|
4423
4593
|
]
|
|
4424
4594
|
})
|
|
4425
4595
|
}),
|
|
4426
|
-
/* @__PURE__ */
|
|
4596
|
+
/* @__PURE__ */ jsxs33(CardFooter2, {
|
|
4427
4597
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4428
4598
|
children: [
|
|
4429
4599
|
footer,
|
|
4430
|
-
/* @__PURE__ */
|
|
4600
|
+
/* @__PURE__ */ jsxs33(Button2, {
|
|
4431
4601
|
type: "submit",
|
|
4432
4602
|
variant: destructive ? "destructive" : "default",
|
|
4433
4603
|
disabled: disabled || pending,
|
|
4434
4604
|
children: [
|
|
4435
|
-
pending && /* @__PURE__ */
|
|
4605
|
+
pending && /* @__PURE__ */ jsx48(Spinner2, {
|
|
4436
4606
|
"data-icon": "inline-start"
|
|
4437
4607
|
}),
|
|
4438
4608
|
saveLabel
|
|
@@ -4445,7 +4615,7 @@ function SettingsSection2({
|
|
|
4445
4615
|
});
|
|
4446
4616
|
}
|
|
4447
4617
|
// src/components/TagInput.tsx
|
|
4448
|
-
import { jsx as
|
|
4618
|
+
import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4449
4619
|
function TagInput2({
|
|
4450
4620
|
label,
|
|
4451
4621
|
options,
|
|
@@ -4458,7 +4628,7 @@ function TagInput2({
|
|
|
4458
4628
|
density
|
|
4459
4629
|
}) {
|
|
4460
4630
|
const anchor = useComboboxAnchor2();
|
|
4461
|
-
return /* @__PURE__ */
|
|
4631
|
+
return /* @__PURE__ */ jsxs34(Combobox2, {
|
|
4462
4632
|
items: options,
|
|
4463
4633
|
multiple: true,
|
|
4464
4634
|
value,
|
|
@@ -4467,33 +4637,33 @@ function TagInput2({
|
|
|
4467
4637
|
disabled,
|
|
4468
4638
|
name,
|
|
4469
4639
|
children: [
|
|
4470
|
-
/* @__PURE__ */
|
|
4640
|
+
/* @__PURE__ */ jsxs34(ComboboxChips2, {
|
|
4471
4641
|
ref: anchor,
|
|
4472
4642
|
density,
|
|
4473
4643
|
children: [
|
|
4474
|
-
/* @__PURE__ */
|
|
4475
|
-
children: (values) => values.map((item) => /* @__PURE__ */
|
|
4644
|
+
/* @__PURE__ */ jsx49(ComboboxValue2, {
|
|
4645
|
+
children: (values) => values.map((item) => /* @__PURE__ */ jsx49(ComboboxChip2, {
|
|
4476
4646
|
removeLabel: `Remove ${item}`,
|
|
4477
4647
|
children: item
|
|
4478
4648
|
}, item))
|
|
4479
4649
|
}),
|
|
4480
|
-
/* @__PURE__ */
|
|
4650
|
+
/* @__PURE__ */ jsx49(ComboboxChipsInput2, {
|
|
4481
4651
|
"aria-label": label,
|
|
4482
4652
|
placeholder
|
|
4483
4653
|
})
|
|
4484
4654
|
]
|
|
4485
4655
|
}),
|
|
4486
|
-
/* @__PURE__ */
|
|
4656
|
+
/* @__PURE__ */ jsxs34(ComboboxContent2, {
|
|
4487
4657
|
anchor,
|
|
4488
4658
|
density,
|
|
4489
4659
|
children: [
|
|
4490
|
-
/* @__PURE__ */
|
|
4660
|
+
/* @__PURE__ */ jsx49(ComboboxEmpty2, {
|
|
4491
4661
|
children: "No matching tags."
|
|
4492
4662
|
}),
|
|
4493
|
-
/* @__PURE__ */
|
|
4494
|
-
children: /* @__PURE__ */
|
|
4495
|
-
children: /* @__PURE__ */
|
|
4496
|
-
children: (item) => /* @__PURE__ */
|
|
4663
|
+
/* @__PURE__ */ jsx49(ComboboxList2, {
|
|
4664
|
+
children: /* @__PURE__ */ jsx49(ComboboxGroup2, {
|
|
4665
|
+
children: /* @__PURE__ */ jsx49(ComboboxCollection2, {
|
|
4666
|
+
children: (item) => /* @__PURE__ */ jsx49(ComboboxItem2, {
|
|
4497
4667
|
value: item,
|
|
4498
4668
|
children: item
|
|
4499
4669
|
}, item)
|
|
@@ -4506,9 +4676,9 @@ function TagInput2({
|
|
|
4506
4676
|
});
|
|
4507
4677
|
}
|
|
4508
4678
|
// src/components/FilterChip.tsx
|
|
4509
|
-
import { useId as
|
|
4679
|
+
import { useId as useId9 } from "react";
|
|
4510
4680
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
4511
|
-
import { jsx as
|
|
4681
|
+
import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4512
4682
|
function FilterChip2({
|
|
4513
4683
|
density,
|
|
4514
4684
|
className,
|
|
@@ -4518,8 +4688,8 @@ function FilterChip2({
|
|
|
4518
4688
|
onKeyDown,
|
|
4519
4689
|
...props
|
|
4520
4690
|
}) {
|
|
4521
|
-
const labelId =
|
|
4522
|
-
return /* @__PURE__ */
|
|
4691
|
+
const labelId = useId9();
|
|
4692
|
+
return /* @__PURE__ */ jsxs35("div", {
|
|
4523
4693
|
role: "group",
|
|
4524
4694
|
"aria-labelledby": labelId,
|
|
4525
4695
|
"data-density": density,
|
|
@@ -4535,13 +4705,13 @@ function FilterChip2({
|
|
|
4535
4705
|
},
|
|
4536
4706
|
...props,
|
|
4537
4707
|
children: [
|
|
4538
|
-
/* @__PURE__ */
|
|
4708
|
+
/* @__PURE__ */ jsx50("span", {
|
|
4539
4709
|
id: labelId,
|
|
4540
4710
|
"data-slot": "filter-chip-label",
|
|
4541
4711
|
className: "min-w-0 py-1 break-words",
|
|
4542
4712
|
children
|
|
4543
4713
|
}),
|
|
4544
|
-
/* @__PURE__ */
|
|
4714
|
+
/* @__PURE__ */ jsxs35(Button2, {
|
|
4545
4715
|
type: "button",
|
|
4546
4716
|
variant: "ghost",
|
|
4547
4717
|
size: "xs",
|
|
@@ -4549,7 +4719,7 @@ function FilterChip2({
|
|
|
4549
4719
|
onClick: onClear,
|
|
4550
4720
|
children: [
|
|
4551
4721
|
clearLabel,
|
|
4552
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ jsx50(XIcon2, {
|
|
4553
4723
|
"aria-hidden": "true",
|
|
4554
4724
|
"data-icon": "inline-end"
|
|
4555
4725
|
})
|
|
@@ -4559,7 +4729,7 @@ function FilterChip2({
|
|
|
4559
4729
|
});
|
|
4560
4730
|
}
|
|
4561
4731
|
// src/components/FilterBar.tsx
|
|
4562
|
-
import { jsx as
|
|
4732
|
+
import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4563
4733
|
function FilterBar2({
|
|
4564
4734
|
label,
|
|
4565
4735
|
search,
|
|
@@ -4570,26 +4740,26 @@ function FilterBar2({
|
|
|
4570
4740
|
disabled,
|
|
4571
4741
|
density
|
|
4572
4742
|
}) {
|
|
4573
|
-
return /* @__PURE__ */
|
|
4743
|
+
return /* @__PURE__ */ jsxs36("fieldset", {
|
|
4574
4744
|
"aria-label": label,
|
|
4575
4745
|
disabled,
|
|
4576
4746
|
"data-density": density,
|
|
4577
4747
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4578
4748
|
children: [
|
|
4579
|
-
/* @__PURE__ */
|
|
4749
|
+
/* @__PURE__ */ jsx51(Input2, {
|
|
4580
4750
|
"aria-label": `Search ${label}`,
|
|
4581
4751
|
type: "search",
|
|
4582
4752
|
value: search,
|
|
4583
4753
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4584
4754
|
className: "min-w-40 flex-1"
|
|
4585
4755
|
}),
|
|
4586
|
-
filters.map((filter) => /* @__PURE__ */
|
|
4756
|
+
filters.map((filter) => /* @__PURE__ */ jsx51(OptionSelect2, {
|
|
4587
4757
|
"aria-label": filter.label,
|
|
4588
4758
|
value: value[filter.id] ?? "",
|
|
4589
4759
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4590
4760
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4591
4761
|
}, filter.id)),
|
|
4592
|
-
/* @__PURE__ */
|
|
4762
|
+
/* @__PURE__ */ jsx51(Button2, {
|
|
4593
4763
|
type: "button",
|
|
4594
4764
|
variant: "ghost",
|
|
4595
4765
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4603,7 +4773,7 @@ function FilterBar2({
|
|
|
4603
4773
|
});
|
|
4604
4774
|
}
|
|
4605
4775
|
// src/components/BarList.tsx
|
|
4606
|
-
import { jsx as
|
|
4776
|
+
import { jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4607
4777
|
function BarList2({
|
|
4608
4778
|
label,
|
|
4609
4779
|
items,
|
|
@@ -4612,14 +4782,14 @@ function BarList2({
|
|
|
4612
4782
|
density
|
|
4613
4783
|
}) {
|
|
4614
4784
|
const max = Math.max(1, ...items.map((item) => item.value));
|
|
4615
|
-
return /* @__PURE__ */
|
|
4785
|
+
return /* @__PURE__ */ jsxs37("section", {
|
|
4616
4786
|
"aria-label": label,
|
|
4617
4787
|
"data-density": density,
|
|
4618
4788
|
children: [
|
|
4619
|
-
/* @__PURE__ */
|
|
4789
|
+
/* @__PURE__ */ jsx52("ul", {
|
|
4620
4790
|
className: "grid gap-3",
|
|
4621
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4622
|
-
children: /* @__PURE__ */
|
|
4791
|
+
children: items.map((item) => /* @__PURE__ */ jsx52("li", {
|
|
4792
|
+
children: /* @__PURE__ */ jsxs37(Meter2, {
|
|
4623
4793
|
min: 0,
|
|
4624
4794
|
max,
|
|
4625
4795
|
value: item.value,
|
|
@@ -4627,11 +4797,11 @@ function BarList2({
|
|
|
4627
4797
|
format: { maximumFractionDigits: 2 },
|
|
4628
4798
|
className: "gap-y-1",
|
|
4629
4799
|
children: [
|
|
4630
|
-
/* @__PURE__ */
|
|
4800
|
+
/* @__PURE__ */ jsxs37("div", {
|
|
4631
4801
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4632
4802
|
children: [
|
|
4633
|
-
/* @__PURE__ */
|
|
4634
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
4803
|
+
/* @__PURE__ */ jsx52(MeterLabel2, {
|
|
4804
|
+
children: onItemSelect ? /* @__PURE__ */ jsx52(Button2, {
|
|
4635
4805
|
type: "button",
|
|
4636
4806
|
variant: "link",
|
|
4637
4807
|
className: "h-auto p-0",
|
|
@@ -4639,19 +4809,19 @@ function BarList2({
|
|
|
4639
4809
|
children: item.label
|
|
4640
4810
|
}) : item.label
|
|
4641
4811
|
}),
|
|
4642
|
-
/* @__PURE__ */
|
|
4812
|
+
/* @__PURE__ */ jsx52(MeterValue2, {
|
|
4643
4813
|
children: () => valueFormatter(item.value)
|
|
4644
4814
|
})
|
|
4645
4815
|
]
|
|
4646
4816
|
}),
|
|
4647
|
-
/* @__PURE__ */
|
|
4648
|
-
children: /* @__PURE__ */
|
|
4817
|
+
/* @__PURE__ */ jsx52(MeterTrack2, {
|
|
4818
|
+
children: /* @__PURE__ */ jsx52(MeterIndicator2, {})
|
|
4649
4819
|
})
|
|
4650
4820
|
]
|
|
4651
4821
|
})
|
|
4652
4822
|
}, item.id))
|
|
4653
4823
|
}),
|
|
4654
|
-
!items.length && /* @__PURE__ */
|
|
4824
|
+
!items.length && /* @__PURE__ */ jsx52("p", {
|
|
4655
4825
|
role: "status",
|
|
4656
4826
|
className: "text-sm text-muted-foreground",
|
|
4657
4827
|
children: "No data available."
|
|
@@ -4660,23 +4830,23 @@ function BarList2({
|
|
|
4660
4830
|
});
|
|
4661
4831
|
}
|
|
4662
4832
|
// src/components/StatusTracker.tsx
|
|
4663
|
-
import { jsx as
|
|
4833
|
+
import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4664
4834
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4665
4835
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4666
|
-
return /* @__PURE__ */
|
|
4667
|
-
children: /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ jsx53(TooltipProvider2, {
|
|
4837
|
+
children: /* @__PURE__ */ jsx53("div", {
|
|
4668
4838
|
role: "group",
|
|
4669
4839
|
"aria-label": label,
|
|
4670
4840
|
"data-density": density,
|
|
4671
4841
|
className: "flex min-w-0 gap-1",
|
|
4672
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4842
|
+
children: items.map((item) => /* @__PURE__ */ jsxs38(Tooltip2, {
|
|
4673
4843
|
children: [
|
|
4674
|
-
/* @__PURE__ */
|
|
4844
|
+
/* @__PURE__ */ jsx53(TooltipTrigger2, {
|
|
4675
4845
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4676
4846
|
onClick: () => onItemSelect?.(item),
|
|
4677
4847
|
className: cn2("h-8 min-w-2 flex-1 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", statusClasses[item.status])
|
|
4678
4848
|
}),
|
|
4679
|
-
/* @__PURE__ */
|
|
4849
|
+
/* @__PURE__ */ jsxs38(TooltipContent2, {
|
|
4680
4850
|
children: [
|
|
4681
4851
|
item.label,
|
|
4682
4852
|
": ",
|
|
@@ -4689,7 +4859,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4689
4859
|
});
|
|
4690
4860
|
}
|
|
4691
4861
|
// src/components/DashboardLayout.tsx
|
|
4692
|
-
import { jsx as
|
|
4862
|
+
import { jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4693
4863
|
function DashboardLayout2({
|
|
4694
4864
|
title,
|
|
4695
4865
|
description,
|
|
@@ -4700,24 +4870,24 @@ function DashboardLayout2({
|
|
|
4700
4870
|
footer,
|
|
4701
4871
|
density
|
|
4702
4872
|
}) {
|
|
4703
|
-
return /* @__PURE__ */
|
|
4873
|
+
return /* @__PURE__ */ jsxs39("div", {
|
|
4704
4874
|
"data-density": density,
|
|
4705
4875
|
"data-scroll": "none",
|
|
4706
4876
|
className: "grid min-w-0 gap-6",
|
|
4707
4877
|
children: [
|
|
4708
|
-
/* @__PURE__ */
|
|
4878
|
+
/* @__PURE__ */ jsx54(PageHeader2, {
|
|
4709
4879
|
title,
|
|
4710
4880
|
description,
|
|
4711
4881
|
actions
|
|
4712
4882
|
}),
|
|
4713
4883
|
filters,
|
|
4714
|
-
stats.length > 0 && /* @__PURE__ */
|
|
4884
|
+
stats.length > 0 && /* @__PURE__ */ jsx54("div", {
|
|
4715
4885
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4716
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
4886
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx54(StatCard2, {
|
|
4717
4887
|
...stat
|
|
4718
4888
|
}, id))
|
|
4719
4889
|
}),
|
|
4720
|
-
/* @__PURE__ */
|
|
4890
|
+
/* @__PURE__ */ jsx54("div", {
|
|
4721
4891
|
className: "grid min-w-0 gap-4",
|
|
4722
4892
|
children
|
|
4723
4893
|
}),
|
|
@@ -4726,18 +4896,18 @@ function DashboardLayout2({
|
|
|
4726
4896
|
});
|
|
4727
4897
|
}
|
|
4728
4898
|
// src/components/BillingUsage.tsx
|
|
4729
|
-
import { jsx as
|
|
4899
|
+
import { jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4730
4900
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4731
|
-
return /* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ jsxs40(Card2, {
|
|
4732
4902
|
density,
|
|
4733
4903
|
"aria-label": "Billing and usage",
|
|
4734
4904
|
children: [
|
|
4735
|
-
/* @__PURE__ */
|
|
4905
|
+
/* @__PURE__ */ jsxs40(CardHeader2, {
|
|
4736
4906
|
children: [
|
|
4737
|
-
/* @__PURE__ */
|
|
4907
|
+
/* @__PURE__ */ jsx55(CardTitle2, {
|
|
4738
4908
|
children: plan
|
|
4739
4909
|
}),
|
|
4740
|
-
/* @__PURE__ */
|
|
4910
|
+
/* @__PURE__ */ jsxs40(CardDescription2, {
|
|
4741
4911
|
children: [
|
|
4742
4912
|
price,
|
|
4743
4913
|
" · ",
|
|
@@ -4746,32 +4916,32 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4746
4916
|
})
|
|
4747
4917
|
]
|
|
4748
4918
|
}),
|
|
4749
|
-
/* @__PURE__ */
|
|
4919
|
+
/* @__PURE__ */ jsx55(CardContent2, {
|
|
4750
4920
|
className: "grid gap-4",
|
|
4751
|
-
children: metrics.map((metric) => /* @__PURE__ */
|
|
4921
|
+
children: metrics.map((metric) => /* @__PURE__ */ jsxs40(Meter2, {
|
|
4752
4922
|
value: metric.used,
|
|
4753
4923
|
max: metric.limit,
|
|
4754
4924
|
"aria-label": metric.label,
|
|
4755
4925
|
children: [
|
|
4756
|
-
/* @__PURE__ */
|
|
4926
|
+
/* @__PURE__ */ jsxs40("div", {
|
|
4757
4927
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4758
4928
|
children: [
|
|
4759
|
-
/* @__PURE__ */
|
|
4929
|
+
/* @__PURE__ */ jsx55(MeterLabel2, {
|
|
4760
4930
|
children: metric.label
|
|
4761
4931
|
}),
|
|
4762
|
-
/* @__PURE__ */
|
|
4932
|
+
/* @__PURE__ */ jsx55(MeterValue2, {
|
|
4763
4933
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
4764
4934
|
})
|
|
4765
4935
|
]
|
|
4766
4936
|
}),
|
|
4767
|
-
/* @__PURE__ */
|
|
4768
|
-
children: /* @__PURE__ */
|
|
4937
|
+
/* @__PURE__ */ jsx55(MeterTrack2, {
|
|
4938
|
+
children: /* @__PURE__ */ jsx55(MeterIndicator2, {})
|
|
4769
4939
|
})
|
|
4770
4940
|
]
|
|
4771
4941
|
}, metric.id))
|
|
4772
4942
|
}),
|
|
4773
|
-
/* @__PURE__ */
|
|
4774
|
-
children: /* @__PURE__ */
|
|
4943
|
+
/* @__PURE__ */ jsx55(CardFooter2, {
|
|
4944
|
+
children: /* @__PURE__ */ jsx55(Button2, {
|
|
4775
4945
|
type: "button",
|
|
4776
4946
|
variant: "outline",
|
|
4777
4947
|
onClick: onManage,
|
|
@@ -4782,4 +4952,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4782
4952
|
]
|
|
4783
4953
|
});
|
|
4784
4954
|
}
|
|
4785
|
-
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, MessageThread2, MessageThreadSummary2, MessageThreadReplies2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, WeatherSummary2, WeatherForecast2, PageHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|
|
4955
|
+
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, ActionBar2, ActionBarRow2, ErrorSummary2, ErrorSummaryItem2, Outline2, OutlineSection2, OutlineItem2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, DescriptionList2, DescriptionListItem2, DescriptionTerm2, DescriptionDetails2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, MessageThread2, MessageThreadSummary2, MessageThreadReplies2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, WeatherSummary2, WeatherForecast2, PageHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|